Skip to content

Commit d3d6f2b

Browse files
author
awstools
committed
feat(client-cloudwatch-logs): We are pleased to announce that our logs transformation csv processor now has a destination field, allowing you to specify under which parent node parsed columns be placed under.
1 parent 522c454 commit d3d6f2b

File tree

9 files changed

+56
-25
lines changed

9 files changed

+56
-25
lines changed

clients/client-cloudwatch-logs/src/commands/GetTransformerCommand.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ export interface GetTransformerCommandOutput extends GetTransformerResponse, __M
7878
* // "STRING_VALUE",
7979
* // ],
8080
* // source: "STRING_VALUE",
81+
* // destination: "STRING_VALUE",
8182
* // },
8283
* // dateTimeConverter: { // DateTimeConverter
8384
* // source: "STRING_VALUE", // required

clients/client-cloudwatch-logs/src/commands/PutTransformerCommand.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@ export interface PutTransformerCommandOutput extends __MetadataBearer {}
9393
* "STRING_VALUE",
9494
* ],
9595
* source: "STRING_VALUE",
96+
* destination: "STRING_VALUE",
9697
* },
9798
* dateTimeConverter: { // DateTimeConverter
9899
* source: "STRING_VALUE", // required

clients/client-cloudwatch-logs/src/commands/TestTransformerCommand.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ export interface TestTransformerCommandOutput extends TestTransformerResponse, _
7070
* "STRING_VALUE",
7171
* ],
7272
* source: "STRING_VALUE",
73+
* destination: "STRING_VALUE",
7374
* },
7475
* dateTimeConverter: { // DateTimeConverter
7576
* source: "STRING_VALUE", // required

clients/client-cloudwatch-logs/src/models/models_0.ts

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1313,13 +1313,13 @@ export interface S3Configuration {
13131313
roleArn: string | undefined;
13141314

13151315
/**
1316-
* <p>The AWS accountId for the bucket owning account.</p>
1316+
* <p>The Amazon Web Services accountId for the bucket owning account.</p>
13171317
* @public
13181318
*/
13191319
ownerAccountId?: string | undefined;
13201320

13211321
/**
1322-
* <p>The Amazon Resource Name (ARN) of the KMS encryption key. Must belong to the same AWS Region
1322+
* <p>The Amazon Resource Name (ARN) of the KMS encryption key. Must belong to the same Amazon Web Services Region
13231323
* as the destination Amazon S3 bucket.</p>
13241324
* @public
13251325
*/
@@ -1497,6 +1497,13 @@ export interface CSV {
14971497
* @public
14981498
*/
14991499
source?: string | undefined;
1500+
1501+
/**
1502+
* <p>The path to the parent field to put transformed key value pairs under.
1503+
* If you omit this value, the key value pairs will be placed under the root node.</p>
1504+
* @public
1505+
*/
1506+
destination?: string | undefined;
15001507
}
15011508

15021509
/**
@@ -7785,6 +7792,9 @@ export interface PutDeliverySourceRequest {
77857792
* <p>For CloudFront, the valid value is <code>ACCESS_LOGS</code>.</p>
77867793
* </li>
77877794
* <li>
7795+
* <p>For DevOps Agent, the valid value is <code>APPLICATION_LOGS</code>.</p>
7796+
* </li>
7797+
* <li>
77887798
* <p>For Amazon CodeWhisperer, the valid value is <code>EVENT_LOGS</code>.</p>
77897799
* </li>
77907800
* <li>

clients/client-cloudwatch-logs/src/schemas/schemas_0.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1223,8 +1223,8 @@ export var CreateScheduledQueryResponse$: StaticStructureSchema = [3, n0, _CSQRr
12231223
];
12241224
export var CSV$: StaticStructureSchema = [3, n0, _CSV,
12251225
0,
1226-
[_qC, _del, _co, _so],
1227-
[0, 0, 64 | 0, 0]
1226+
[_qC, _del, _co, _so, _des],
1227+
[0, 0, 64 | 0, 0, 0]
12281228
];
12291229
export var DataSource$: StaticStructureSchema = [3, n0, _DS,
12301230
0,

clients/client-cloudwatch-logs/test/snapshots/req/PutTransformer.txt

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@ POST https://logs.us-east-1.amazonaws.com
33

44
content-type: application/x-amz-json-1.1
55
x-amz-target: Logs_20140328.PutTransformer
6-
content-length: 9048
6+
content-length: 9144
77
x-amz-user-agent: aws-sdk-js/3.___._
88
user-agent: aws-sdk-js/3.___._ ua/2.1 lang/js md/nodejs#_.__ md/tsc#_.__ api/cloudwatch-logs#_.__ m/E,e
99
host: logs.us-east-1.amazonaws.com
1010
amz-sdk-invocation-id: 1111abcd-uuid-uuid-uuid-000000001111
1111
amz-sdk-request: attempt=1; max=3
1212
x-amz-date: 19991231T235959Z
13-
x-amz-content-sha256: 6409757cc43e3fe54e118de5fdd5773665e05e99a4dfa6a27f3245c9ed641d6e
13+
x-amz-content-sha256: abab3719e496c9180ed59d24845e33df263c90ad83729855d4f500b6417b098d
1414
authorization: AWS4-HMAC-SHA256 Credential=***/19991231/us-east-1/logs/aws4_request, SignedHeaders=amz-sdk-invocation-id;amz-sdk-request;content-length;content-type;host;x-amz-content-sha256;x-amz-date;x-amz-target;x-amz-user-agent, Signature=***
1515

1616
[string (json)]
@@ -64,7 +64,8 @@ authorization: AWS4-HMAC-SHA256 Credential=***/19991231/us-east-1/logs/aws4_requ
6464
"__member__",
6565
"__member__"
6666
],
67-
"source": "__source__"
67+
"source": "__source__",
68+
"destination": "__destination__"
6869
},
6970
"dateTimeConverter": {
7071
"source": "__source__",
@@ -290,7 +291,8 @@ authorization: AWS4-HMAC-SHA256 Credential=***/19991231/us-east-1/logs/aws4_requ
290291
"__member__",
291292
"__member__"
292293
],
293-
"source": "__source__"
294+
"source": "__source__",
295+
"destination": "__destination__"
294296
},
295297
"dateTimeConverter": {
296298
"source": "__source__",
@@ -516,7 +518,8 @@ authorization: AWS4-HMAC-SHA256 Credential=***/19991231/us-east-1/logs/aws4_requ
516518
"__member__",
517519
"__member__"
518520
],
519-
"source": "__source__"
521+
"source": "__source__",
522+
"destination": "__destination__"
520523
},
521524
"dateTimeConverter": {
522525
"source": "__source__",

clients/client-cloudwatch-logs/test/snapshots/req/TestTransformer.txt

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@ POST https://logs.us-east-1.amazonaws.com
33

44
content-type: application/x-amz-json-1.1
55
x-amz-target: Logs_20140328.TestTransformer
6-
content-length: 9062
6+
content-length: 9158
77
x-amz-user-agent: aws-sdk-js/3.___._
88
user-agent: aws-sdk-js/3.___._ ua/2.1 lang/js md/nodejs#_.__ md/tsc#_.__ api/cloudwatch-logs#_.__ m/E,e
99
host: logs.us-east-1.amazonaws.com
1010
amz-sdk-invocation-id: 1111abcd-uuid-uuid-uuid-000000001111
1111
amz-sdk-request: attempt=1; max=3
1212
x-amz-date: 19991231T235959Z
13-
x-amz-content-sha256: f6bd87c25475e7189b8c98348dd7136110bf66288bbc2c493d4cda121b15e5f7
13+
x-amz-content-sha256: 174f326a62e81c9295ca8b302bfbd09af161ebe70468924f35ad16de17c8e12d
1414
authorization: AWS4-HMAC-SHA256 Credential=***/19991231/us-east-1/logs/aws4_request, SignedHeaders=amz-sdk-invocation-id;amz-sdk-request;content-length;content-type;host;x-amz-content-sha256;x-amz-date;x-amz-target;x-amz-user-agent, Signature=***
1515

1616
[string (json)]
@@ -63,7 +63,8 @@ authorization: AWS4-HMAC-SHA256 Credential=***/19991231/us-east-1/logs/aws4_requ
6363
"__member__",
6464
"__member__"
6565
],
66-
"source": "__source__"
66+
"source": "__source__",
67+
"destination": "__destination__"
6768
},
6869
"dateTimeConverter": {
6970
"source": "__source__",
@@ -289,7 +290,8 @@ authorization: AWS4-HMAC-SHA256 Credential=***/19991231/us-east-1/logs/aws4_requ
289290
"__member__",
290291
"__member__"
291292
],
292-
"source": "__source__"
293+
"source": "__source__",
294+
"destination": "__destination__"
293295
},
294296
"dateTimeConverter": {
295297
"source": "__source__",
@@ -515,7 +517,8 @@ authorization: AWS4-HMAC-SHA256 Credential=***/19991231/us-east-1/logs/aws4_requ
515517
"__member__",
516518
"__member__"
517519
],
518-
"source": "__source__"
520+
"source": "__source__",
521+
"destination": "__destination__"
519522
},
520523
"dateTimeConverter": {
521524
"source": "__source__",

clients/client-cloudwatch-logs/test/snapshots/res/GetTransformer.txt

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,8 @@ x-amzn-requestid: 1111amzn-requ-stid-uuid-000000001111
7979
"__member__",
8080
"__member__"
8181
],
82-
"source": "__source__"
82+
"source": "__source__",
83+
"destination": "__destination__"
8384
},
8485
"dateTimeConverter": {
8586
"source": "__source__",
@@ -305,7 +306,8 @@ x-amzn-requestid: 1111amzn-requ-stid-uuid-000000001111
305306
"__member__",
306307
"__member__"
307308
],
308-
"source": "__source__"
309+
"source": "__source__",
310+
"destination": "__destination__"
309311
},
310312
"dateTimeConverter": {
311313
"source": "__source__",
@@ -531,7 +533,8 @@ x-amzn-requestid: 1111amzn-requ-stid-uuid-000000001111
531533
"__member__",
532534
"__member__"
533535
],
534-
"source": "__source__"
536+
"source": "__source__",
537+
"destination": "__destination__"
535538
},
536539
"dateTimeConverter": {
537540
"source": "__source__",
@@ -767,7 +770,8 @@ x-amzn-requestid: 1111amzn-requ-stid-uuid-000000001111
767770
"__member__",
768771
"__member__"
769772
],
770-
source: "__source__"
773+
source: "__source__",
774+
destination: "__destination__"
771775
},
772776
dateTimeConverter: {
773777
source: "__source__",
@@ -993,7 +997,8 @@ x-amzn-requestid: 1111amzn-requ-stid-uuid-000000001111
993997
"__member__",
994998
"__member__"
995999
],
996-
source: "__source__"
1000+
source: "__source__",
1001+
destination: "__destination__"
9971002
},
9981003
dateTimeConverter: {
9991004
source: "__source__",
@@ -1219,7 +1224,8 @@ x-amzn-requestid: 1111amzn-requ-stid-uuid-000000001111
12191224
"__member__",
12201225
"__member__"
12211226
],
1222-
source: "__source__"
1227+
source: "__source__",
1228+
destination: "__destination__"
12231229
},
12241230
dateTimeConverter: {
12251231
source: "__source__",

0 commit comments

Comments
 (0)