@aws-sdk/client-cloudwatch-logs 3.847.0 → 3.849.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -652,6 +652,14 @@ GetLogGroupFields
652
652
 
653
653
  [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/cloudwatch-logs/command/GetLogGroupFieldsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-cloudwatch-logs/Interface/GetLogGroupFieldsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-cloudwatch-logs/Interface/GetLogGroupFieldsCommandOutput/)
654
654
 
655
+ </details>
656
+ <details>
657
+ <summary>
658
+ GetLogObject
659
+ </summary>
660
+
661
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/cloudwatch-logs/command/GetLogObjectCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-cloudwatch-logs/Interface/GetLogObjectCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-cloudwatch-logs/Interface/GetLogObjectCommandOutput/)
662
+
655
663
  </details>
656
664
  <details>
657
665
  <summary>
package/dist-cjs/index.js CHANGED
@@ -88,6 +88,10 @@ __export(index_exports, {
88
88
  GetLogAnomalyDetectorCommand: () => GetLogAnomalyDetectorCommand,
89
89
  GetLogEventsCommand: () => GetLogEventsCommand,
90
90
  GetLogGroupFieldsCommand: () => GetLogGroupFieldsCommand,
91
+ GetLogObjectCommand: () => GetLogObjectCommand,
92
+ GetLogObjectResponseFilterSensitiveLog: () => GetLogObjectResponseFilterSensitiveLog,
93
+ GetLogObjectResponseStream: () => GetLogObjectResponseStream,
94
+ GetLogObjectResponseStreamFilterSensitiveLog: () => GetLogObjectResponseStreamFilterSensitiveLog,
91
95
  GetLogRecordCommand: () => GetLogRecordCommand,
92
96
  GetQueryResultsCommand: () => GetQueryResultsCommand,
93
97
  GetTransformerCommand: () => GetTransformerCommand,
@@ -96,6 +100,7 @@ __export(index_exports, {
96
100
  IntegrationDetails: () => IntegrationDetails,
97
101
  IntegrationStatus: () => IntegrationStatus,
98
102
  IntegrationType: () => IntegrationType,
103
+ InternalStreamingException: () => InternalStreamingException,
99
104
  InvalidOperationException: () => InvalidOperationException,
100
105
  InvalidParameterException: () => InvalidParameterException,
101
106
  InvalidSequenceTokenException: () => InvalidSequenceTokenException,
@@ -379,6 +384,7 @@ var AccessDeniedException = class _AccessDeniedException extends CloudWatchLogsS
379
384
  var PolicyType = {
380
385
  DATA_PROTECTION_POLICY: "DATA_PROTECTION_POLICY",
381
386
  FIELD_INDEX_POLICY: "FIELD_INDEX_POLICY",
387
+ METRIC_EXTRACTION_POLICY: "METRIC_EXTRACTION_POLICY",
382
388
  SUBSCRIPTION_FILTER_POLICY: "SUBSCRIPTION_FILTER_POLICY",
383
389
  TRANSFORMER_POLICY: "TRANSFORMER_POLICY"
384
390
  };
@@ -759,6 +765,33 @@ var IntegrationStatus = {
759
765
  var IntegrationType = {
760
766
  OPENSEARCH: "OPENSEARCH"
761
767
  };
768
+ var InternalStreamingException = class _InternalStreamingException extends CloudWatchLogsServiceException {
769
+ static {
770
+ __name(this, "InternalStreamingException");
771
+ }
772
+ name = "InternalStreamingException";
773
+ $fault = "client";
774
+ /**
775
+ * @internal
776
+ */
777
+ constructor(opts) {
778
+ super({
779
+ name: "InternalStreamingException",
780
+ $fault: "client",
781
+ ...opts
782
+ });
783
+ Object.setPrototypeOf(this, _InternalStreamingException.prototype);
784
+ }
785
+ };
786
+ var GetLogObjectResponseStream;
787
+ ((GetLogObjectResponseStream3) => {
788
+ GetLogObjectResponseStream3.visit = /* @__PURE__ */ __name((value, visitor) => {
789
+ if (value.fields !== void 0) return visitor.fields(value.fields);
790
+ if (value.InternalStreamingException !== void 0)
791
+ return visitor.InternalStreamingException(value.InternalStreamingException);
792
+ return visitor._(value.$unknown[0], value.$unknown[1]);
793
+ }, "visit");
794
+ })(GetLogObjectResponseStream || (GetLogObjectResponseStream = {}));
762
795
  var OCSFVersion = {
763
796
  V1_1: "V1.1"
764
797
  };
@@ -923,6 +956,16 @@ var SuppressionType = {
923
956
  INFINITE: "INFINITE",
924
957
  LIMITED: "LIMITED"
925
958
  };
959
+ var GetLogObjectResponseStreamFilterSensitiveLog = /* @__PURE__ */ __name((obj) => {
960
+ if (obj.fields !== void 0) return { fields: obj.fields };
961
+ if (obj.InternalStreamingException !== void 0)
962
+ return { InternalStreamingException: obj.InternalStreamingException };
963
+ if (obj.$unknown !== void 0) return { [obj.$unknown[0]]: "UNKNOWN" };
964
+ }, "GetLogObjectResponseStreamFilterSensitiveLog");
965
+ var GetLogObjectResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
966
+ ...obj,
967
+ ...obj.fieldStream && { fieldStream: "STREAMING_CONTENT" }
968
+ }), "GetLogObjectResponseFilterSensitiveLog");
926
969
  var StartLiveTailResponseStreamFilterSensitiveLog = /* @__PURE__ */ __name((obj) => {
927
970
  if (obj.sessionStart !== void 0) return { sessionStart: obj.sessionStart };
928
971
  if (obj.sessionUpdate !== void 0) return { sessionUpdate: obj.sessionUpdate };
@@ -1248,6 +1291,19 @@ var se_GetLogGroupFieldsCommand = /* @__PURE__ */ __name(async (input, context)
1248
1291
  body = JSON.stringify((0, import_smithy_client._json)(input));
1249
1292
  return buildHttpRpcRequest(context, headers, "/", void 0, body);
1250
1293
  }, "se_GetLogGroupFieldsCommand");
1294
+ var se_GetLogObjectCommand = /* @__PURE__ */ __name(async (input, context) => {
1295
+ const headers = sharedHeaders("GetLogObject");
1296
+ let body;
1297
+ body = JSON.stringify((0, import_smithy_client._json)(input));
1298
+ let { hostname: resolvedHostname } = await context.endpoint();
1299
+ if (context.disableHostPrefix !== true) {
1300
+ resolvedHostname = "streaming-" + resolvedHostname;
1301
+ if (!(0, import_protocol_http.isValidHostname)(resolvedHostname)) {
1302
+ throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
1303
+ }
1304
+ }
1305
+ return buildHttpRpcRequest(context, headers, "/", resolvedHostname, body);
1306
+ }, "se_GetLogObjectCommand");
1251
1307
  var se_GetLogRecordCommand = /* @__PURE__ */ __name(async (input, context) => {
1252
1308
  const headers = sharedHeaders("GetLogRecord");
1253
1309
  let body;
@@ -2099,6 +2155,17 @@ var de_GetLogGroupFieldsCommand = /* @__PURE__ */ __name(async (output, context)
2099
2155
  };
2100
2156
  return response;
2101
2157
  }, "de_GetLogGroupFieldsCommand");
2158
+ var de_GetLogObjectCommand = /* @__PURE__ */ __name(async (output, context) => {
2159
+ if (output.statusCode >= 300) {
2160
+ return de_CommandError(output, context);
2161
+ }
2162
+ const contents = { fieldStream: de_GetLogObjectResponseStream(output.body, context) };
2163
+ const response = {
2164
+ $metadata: deserializeMetadata(output),
2165
+ ...contents
2166
+ };
2167
+ return response;
2168
+ }, "de_GetLogObjectCommand");
2102
2169
  var de_GetLogRecordCommand = /* @__PURE__ */ __name(async (output, context) => {
2103
2170
  if (output.statusCode >= 300) {
2104
2171
  return de_CommandError(output, context);
@@ -2778,6 +2845,24 @@ var de_ValidationExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, cont
2778
2845
  });
2779
2846
  return (0, import_smithy_client.decorateServiceException)(exception, body);
2780
2847
  }, "de_ValidationExceptionRes");
2848
+ var de_GetLogObjectResponseStream = /* @__PURE__ */ __name((output, context) => {
2849
+ return context.eventStreamMarshaller.deserialize(output, async (event) => {
2850
+ if (event["fields"] != null) {
2851
+ return {
2852
+ fields: await de_FieldsData_event(event["fields"], context)
2853
+ };
2854
+ }
2855
+ if (event["InternalStreamingException"] != null) {
2856
+ return {
2857
+ InternalStreamingException: await de_InternalStreamingException_event(
2858
+ event["InternalStreamingException"],
2859
+ context
2860
+ )
2861
+ };
2862
+ }
2863
+ return { $unknown: event };
2864
+ });
2865
+ }, "de_GetLogObjectResponseStream");
2781
2866
  var de_StartLiveTailResponseStream = /* @__PURE__ */ __name((output, context) => {
2782
2867
  return context.eventStreamMarshaller.deserialize(output, async (event) => {
2783
2868
  if (event["sessionStart"] != null) {
@@ -2806,6 +2891,19 @@ var de_StartLiveTailResponseStream = /* @__PURE__ */ __name((output, context) =>
2806
2891
  return { $unknown: event };
2807
2892
  });
2808
2893
  }, "de_StartLiveTailResponseStream");
2894
+ var de_FieldsData_event = /* @__PURE__ */ __name(async (output, context) => {
2895
+ const contents = {};
2896
+ const data = await (0, import_core2.parseJsonBody)(output.body, context);
2897
+ Object.assign(contents, de_FieldsData(data, context));
2898
+ return contents;
2899
+ }, "de_FieldsData_event");
2900
+ var de_InternalStreamingException_event = /* @__PURE__ */ __name(async (output, context) => {
2901
+ const parsedOutput = {
2902
+ ...output,
2903
+ body: await (0, import_core2.parseJsonBody)(output.body, context)
2904
+ };
2905
+ return de_InternalStreamingExceptionRes(parsedOutput, context);
2906
+ }, "de_InternalStreamingException_event");
2809
2907
  var de_LiveTailSessionStart_event = /* @__PURE__ */ __name(async (output, context) => {
2810
2908
  const contents = {};
2811
2909
  const data = await (0, import_core2.parseJsonBody)(output.body, context);
@@ -2832,6 +2930,15 @@ var de_SessionTimeoutException_event = /* @__PURE__ */ __name(async (output, con
2832
2930
  };
2833
2931
  return de_SessionTimeoutExceptionRes(parsedOutput, context);
2834
2932
  }, "de_SessionTimeoutException_event");
2933
+ var de_InternalStreamingExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
2934
+ const body = parsedOutput.body;
2935
+ const deserialized = (0, import_smithy_client._json)(body);
2936
+ const exception = new InternalStreamingException({
2937
+ $metadata: deserializeMetadata(parsedOutput),
2938
+ ...deserialized
2939
+ });
2940
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
2941
+ }, "de_InternalStreamingExceptionRes");
2835
2942
  var de_SessionStreamingExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
2836
2943
  const body = parsedOutput.body;
2837
2944
  const deserialized = (0, import_smithy_client._json)(body);
@@ -2890,6 +2997,11 @@ var de_DescribeMetricFiltersResponse = /* @__PURE__ */ __name((output, context)
2890
2997
  nextToken: import_smithy_client.expectString
2891
2998
  });
2892
2999
  }, "de_DescribeMetricFiltersResponse");
3000
+ var de_FieldsData = /* @__PURE__ */ __name((output, context) => {
3001
+ return (0, import_smithy_client.take)(output, {
3002
+ data: context.base64Decoder
3003
+ });
3004
+ }, "de_FieldsData");
2893
3005
  var de_GetQueryResultsResponse = /* @__PURE__ */ __name((output, context) => {
2894
3006
  return (0, import_smithy_client.take)(output, {
2895
3007
  encryptionKey: import_smithy_client.expectString,
@@ -3751,6 +3863,28 @@ var GetLogGroupFieldsCommand = class extends import_smithy_client.Command.classB
3751
3863
  }
3752
3864
  };
3753
3865
 
3866
+ // src/commands/GetLogObjectCommand.ts
3867
+
3868
+
3869
+
3870
+ var GetLogObjectCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
3871
+ return [
3872
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
3873
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
3874
+ ];
3875
+ }).s("Logs_20140328", "GetLogObject", {
3876
+ /**
3877
+ * @internal
3878
+ */
3879
+ eventStream: {
3880
+ output: true
3881
+ }
3882
+ }).n("CloudWatchLogsClient", "GetLogObjectCommand").f(void 0, GetLogObjectResponseFilterSensitiveLog).ser(se_GetLogObjectCommand).de(de_GetLogObjectCommand).build() {
3883
+ static {
3884
+ __name(this, "GetLogObjectCommand");
3885
+ }
3886
+ };
3887
+
3754
3888
  // src/commands/GetLogRecordCommand.ts
3755
3889
 
3756
3890
 
@@ -4382,6 +4516,7 @@ var commands = {
4382
4516
  GetLogAnomalyDetectorCommand,
4383
4517
  GetLogEventsCommand,
4384
4518
  GetLogGroupFieldsCommand,
4519
+ GetLogObjectCommand,
4385
4520
  GetLogRecordCommand,
4386
4521
  GetQueryResultsCommand,
4387
4522
  GetTransformerCommand,
@@ -4543,6 +4678,7 @@ var paginateListLogGroupsForQuery = (0, import_core.createPaginator)(CloudWatchL
4543
4678
  GetLogAnomalyDetectorCommand,
4544
4679
  GetLogEventsCommand,
4545
4680
  GetLogGroupFieldsCommand,
4681
+ GetLogObjectCommand,
4546
4682
  GetLogRecordCommand,
4547
4683
  GetQueryResultsCommand,
4548
4684
  GetTransformerCommand,
@@ -4633,6 +4769,8 @@ var paginateListLogGroupsForQuery = (0, import_core.createPaginator)(CloudWatchL
4633
4769
  IntegrationDetails,
4634
4770
  IntegrationStatus,
4635
4771
  IntegrationType,
4772
+ InternalStreamingException,
4773
+ GetLogObjectResponseStream,
4636
4774
  OCSFVersion,
4637
4775
  Type,
4638
4776
  InvalidSequenceTokenException,
@@ -4646,6 +4784,8 @@ var paginateListLogGroupsForQuery = (0, import_core.createPaginator)(CloudWatchL
4646
4784
  TooManyTagsException,
4647
4785
  SuppressionUnit,
4648
4786
  SuppressionType,
4787
+ GetLogObjectResponseStreamFilterSensitiveLog,
4788
+ GetLogObjectResponseFilterSensitiveLog,
4649
4789
  StartLiveTailResponseStreamFilterSensitiveLog,
4650
4790
  StartLiveTailResponseFilterSensitiveLog
4651
4791
  });
@@ -52,6 +52,7 @@ import { GetIntegrationCommand, } from "./commands/GetIntegrationCommand";
52
52
  import { GetLogAnomalyDetectorCommand, } from "./commands/GetLogAnomalyDetectorCommand";
53
53
  import { GetLogEventsCommand, } from "./commands/GetLogEventsCommand";
54
54
  import { GetLogGroupFieldsCommand, } from "./commands/GetLogGroupFieldsCommand";
55
+ import { GetLogObjectCommand, } from "./commands/GetLogObjectCommand";
55
56
  import { GetLogRecordCommand, } from "./commands/GetLogRecordCommand";
56
57
  import { GetQueryResultsCommand, } from "./commands/GetQueryResultsCommand";
57
58
  import { GetTransformerCommand, } from "./commands/GetTransformerCommand";
@@ -143,6 +144,7 @@ const commands = {
143
144
  GetLogAnomalyDetectorCommand,
144
145
  GetLogEventsCommand,
145
146
  GetLogGroupFieldsCommand,
147
+ GetLogObjectCommand,
146
148
  GetLogRecordCommand,
147
149
  GetQueryResultsCommand,
148
150
  GetTransformerCommand,
@@ -0,0 +1,27 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
+ import { GetLogObjectResponseFilterSensitiveLog } from "../models/models_0";
6
+ import { de_GetLogObjectCommand, se_GetLogObjectCommand } from "../protocols/Aws_json1_1";
7
+ export { $Command };
8
+ export class GetLogObjectCommand extends $Command
9
+ .classBuilder()
10
+ .ep(commonParams)
11
+ .m(function (Command, cs, config, o) {
12
+ return [
13
+ getSerdePlugin(config, this.serialize, this.deserialize),
14
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
15
+ ];
16
+ })
17
+ .s("Logs_20140328", "GetLogObject", {
18
+ eventStream: {
19
+ output: true,
20
+ },
21
+ })
22
+ .n("CloudWatchLogsClient", "GetLogObjectCommand")
23
+ .f(void 0, GetLogObjectResponseFilterSensitiveLog)
24
+ .ser(se_GetLogObjectCommand)
25
+ .de(de_GetLogObjectCommand)
26
+ .build() {
27
+ }
@@ -50,6 +50,7 @@ export * from "./GetIntegrationCommand";
50
50
  export * from "./GetLogAnomalyDetectorCommand";
51
51
  export * from "./GetLogEventsCommand";
52
52
  export * from "./GetLogGroupFieldsCommand";
53
+ export * from "./GetLogObjectCommand";
53
54
  export * from "./GetLogRecordCommand";
54
55
  export * from "./GetQueryResultsCommand";
55
56
  export * from "./GetTransformerCommand";
@@ -14,6 +14,7 @@ export class AccessDeniedException extends __BaseException {
14
14
  export const PolicyType = {
15
15
  DATA_PROTECTION_POLICY: "DATA_PROTECTION_POLICY",
16
16
  FIELD_INDEX_POLICY: "FIELD_INDEX_POLICY",
17
+ METRIC_EXTRACTION_POLICY: "METRIC_EXTRACTION_POLICY",
17
18
  SUBSCRIPTION_FILTER_POLICY: "SUBSCRIPTION_FILTER_POLICY",
18
19
  TRANSFORMER_POLICY: "TRANSFORMER_POLICY",
19
20
  };
@@ -322,6 +323,28 @@ export const IntegrationStatus = {
322
323
  export const IntegrationType = {
323
324
  OPENSEARCH: "OPENSEARCH",
324
325
  };
326
+ export class InternalStreamingException extends __BaseException {
327
+ name = "InternalStreamingException";
328
+ $fault = "client";
329
+ constructor(opts) {
330
+ super({
331
+ name: "InternalStreamingException",
332
+ $fault: "client",
333
+ ...opts,
334
+ });
335
+ Object.setPrototypeOf(this, InternalStreamingException.prototype);
336
+ }
337
+ }
338
+ export var GetLogObjectResponseStream;
339
+ (function (GetLogObjectResponseStream) {
340
+ GetLogObjectResponseStream.visit = (value, visitor) => {
341
+ if (value.fields !== undefined)
342
+ return visitor.fields(value.fields);
343
+ if (value.InternalStreamingException !== undefined)
344
+ return visitor.InternalStreamingException(value.InternalStreamingException);
345
+ return visitor._(value.$unknown[0], value.$unknown[1]);
346
+ };
347
+ })(GetLogObjectResponseStream || (GetLogObjectResponseStream = {}));
325
348
  export const OCSFVersion = {
326
349
  V1_1: "V1.1",
327
350
  };
@@ -444,6 +467,18 @@ export const SuppressionType = {
444
467
  INFINITE: "INFINITE",
445
468
  LIMITED: "LIMITED",
446
469
  };
470
+ export const GetLogObjectResponseStreamFilterSensitiveLog = (obj) => {
471
+ if (obj.fields !== undefined)
472
+ return { fields: obj.fields };
473
+ if (obj.InternalStreamingException !== undefined)
474
+ return { InternalStreamingException: obj.InternalStreamingException };
475
+ if (obj.$unknown !== undefined)
476
+ return { [obj.$unknown[0]]: "UNKNOWN" };
477
+ };
478
+ export const GetLogObjectResponseFilterSensitiveLog = (obj) => ({
479
+ ...obj,
480
+ ...(obj.fieldStream && { fieldStream: "STREAMING_CONTENT" }),
481
+ });
447
482
  export const StartLiveTailResponseStreamFilterSensitiveLog = (obj) => {
448
483
  if (obj.sessionStart !== undefined)
449
484
  return { sessionStart: obj.sessionStart };
@@ -3,7 +3,7 @@ import { HttpRequest as __HttpRequest, isValidHostname as __isValidHostname, } f
3
3
  import { _json, collectBody, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectLong as __expectLong, expectString as __expectString, limitedParseDouble as __limitedParseDouble, serializeFloat as __serializeFloat, take, withBaseException, } from "@smithy/smithy-client";
4
4
  import { v4 as generateIdempotencyToken } from "uuid";
5
5
  import { CloudWatchLogsServiceException as __BaseException } from "../models/CloudWatchLogsServiceException";
6
- import { AccessDeniedException, ConflictException, DataAlreadyAcceptedException, InvalidOperationException, InvalidParameterException, InvalidSequenceTokenException, LimitExceededException, MalformedQueryException, OperationAbortedException, ResourceAlreadyExistsException, ResourceNotFoundException, ServiceQuotaExceededException, ServiceUnavailableException, SessionStreamingException, SessionTimeoutException, ThrottlingException, TooManyTagsException, UnrecognizedClientException, ValidationException, } from "../models/models_0";
6
+ import { AccessDeniedException, ConflictException, DataAlreadyAcceptedException, InternalStreamingException, InvalidOperationException, InvalidParameterException, InvalidSequenceTokenException, LimitExceededException, MalformedQueryException, OperationAbortedException, ResourceAlreadyExistsException, ResourceNotFoundException, ServiceQuotaExceededException, ServiceUnavailableException, SessionStreamingException, SessionTimeoutException, ThrottlingException, TooManyTagsException, UnrecognizedClientException, ValidationException, } from "../models/models_0";
7
7
  export const se_AssociateKmsKeyCommand = async (input, context) => {
8
8
  const headers = sharedHeaders("AssociateKmsKey");
9
9
  let body;
@@ -316,6 +316,19 @@ export const se_GetLogGroupFieldsCommand = async (input, context) => {
316
316
  body = JSON.stringify(_json(input));
317
317
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
318
318
  };
319
+ export const se_GetLogObjectCommand = async (input, context) => {
320
+ const headers = sharedHeaders("GetLogObject");
321
+ let body;
322
+ body = JSON.stringify(_json(input));
323
+ let { hostname: resolvedHostname } = await context.endpoint();
324
+ if (context.disableHostPrefix !== true) {
325
+ resolvedHostname = "streaming-" + resolvedHostname;
326
+ if (!__isValidHostname(resolvedHostname)) {
327
+ throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
328
+ }
329
+ }
330
+ return buildHttpRpcRequest(context, headers, "/", resolvedHostname, body);
331
+ };
319
332
  export const se_GetLogRecordCommand = async (input, context) => {
320
333
  const headers = sharedHeaders("GetLogRecord");
321
334
  let body;
@@ -1167,6 +1180,17 @@ export const de_GetLogGroupFieldsCommand = async (output, context) => {
1167
1180
  };
1168
1181
  return response;
1169
1182
  };
1183
+ export const de_GetLogObjectCommand = async (output, context) => {
1184
+ if (output.statusCode >= 300) {
1185
+ return de_CommandError(output, context);
1186
+ }
1187
+ const contents = { fieldStream: de_GetLogObjectResponseStream(output.body, context) };
1188
+ const response = {
1189
+ $metadata: deserializeMetadata(output),
1190
+ ...contents,
1191
+ };
1192
+ return response;
1193
+ };
1170
1194
  export const de_GetLogRecordCommand = async (output, context) => {
1171
1195
  if (output.statusCode >= 300) {
1172
1196
  return de_CommandError(output, context);
@@ -1846,6 +1870,21 @@ const de_ValidationExceptionRes = async (parsedOutput, context) => {
1846
1870
  });
1847
1871
  return __decorateServiceException(exception, body);
1848
1872
  };
1873
+ const de_GetLogObjectResponseStream = (output, context) => {
1874
+ return context.eventStreamMarshaller.deserialize(output, async (event) => {
1875
+ if (event["fields"] != null) {
1876
+ return {
1877
+ fields: await de_FieldsData_event(event["fields"], context),
1878
+ };
1879
+ }
1880
+ if (event["InternalStreamingException"] != null) {
1881
+ return {
1882
+ InternalStreamingException: await de_InternalStreamingException_event(event["InternalStreamingException"], context),
1883
+ };
1884
+ }
1885
+ return { $unknown: event };
1886
+ });
1887
+ };
1849
1888
  const de_StartLiveTailResponseStream = (output, context) => {
1850
1889
  return context.eventStreamMarshaller.deserialize(output, async (event) => {
1851
1890
  if (event["sessionStart"] != null) {
@@ -1871,6 +1910,19 @@ const de_StartLiveTailResponseStream = (output, context) => {
1871
1910
  return { $unknown: event };
1872
1911
  });
1873
1912
  };
1913
+ const de_FieldsData_event = async (output, context) => {
1914
+ const contents = {};
1915
+ const data = await parseBody(output.body, context);
1916
+ Object.assign(contents, de_FieldsData(data, context));
1917
+ return contents;
1918
+ };
1919
+ const de_InternalStreamingException_event = async (output, context) => {
1920
+ const parsedOutput = {
1921
+ ...output,
1922
+ body: await parseBody(output.body, context),
1923
+ };
1924
+ return de_InternalStreamingExceptionRes(parsedOutput, context);
1925
+ };
1874
1926
  const de_LiveTailSessionStart_event = async (output, context) => {
1875
1927
  const contents = {};
1876
1928
  const data = await parseBody(output.body, context);
@@ -1897,6 +1949,15 @@ const de_SessionTimeoutException_event = async (output, context) => {
1897
1949
  };
1898
1950
  return de_SessionTimeoutExceptionRes(parsedOutput, context);
1899
1951
  };
1952
+ const de_InternalStreamingExceptionRes = async (parsedOutput, context) => {
1953
+ const body = parsedOutput.body;
1954
+ const deserialized = _json(body);
1955
+ const exception = new InternalStreamingException({
1956
+ $metadata: deserializeMetadata(parsedOutput),
1957
+ ...deserialized,
1958
+ });
1959
+ return __decorateServiceException(exception, body);
1960
+ };
1900
1961
  const de_SessionStreamingExceptionRes = async (parsedOutput, context) => {
1901
1962
  const body = parsedOutput.body;
1902
1963
  const deserialized = _json(body);
@@ -1957,6 +2018,11 @@ const de_DescribeMetricFiltersResponse = (output, context) => {
1957
2018
  nextToken: __expectString,
1958
2019
  });
1959
2020
  };
2021
+ const de_FieldsData = (output, context) => {
2022
+ return take(output, {
2023
+ data: context.base64Decoder,
2024
+ });
2025
+ };
1960
2026
  const de_GetQueryResultsResponse = (output, context) => {
1961
2027
  return take(output, {
1962
2028
  encryptionKey: __expectString,
@@ -52,6 +52,7 @@ import { GetIntegrationCommandInput, GetIntegrationCommandOutput } from "./comma
52
52
  import { GetLogAnomalyDetectorCommandInput, GetLogAnomalyDetectorCommandOutput } from "./commands/GetLogAnomalyDetectorCommand";
53
53
  import { GetLogEventsCommandInput, GetLogEventsCommandOutput } from "./commands/GetLogEventsCommand";
54
54
  import { GetLogGroupFieldsCommandInput, GetLogGroupFieldsCommandOutput } from "./commands/GetLogGroupFieldsCommand";
55
+ import { GetLogObjectCommandInput, GetLogObjectCommandOutput } from "./commands/GetLogObjectCommand";
55
56
  import { GetLogRecordCommandInput, GetLogRecordCommandOutput } from "./commands/GetLogRecordCommand";
56
57
  import { GetQueryResultsCommandInput, GetQueryResultsCommandOutput } from "./commands/GetQueryResultsCommand";
57
58
  import { GetTransformerCommandInput, GetTransformerCommandOutput } from "./commands/GetTransformerCommand";
@@ -419,6 +420,12 @@ export interface CloudWatchLogs {
419
420
  getLogGroupFields(args: GetLogGroupFieldsCommandInput, options?: __HttpHandlerOptions): Promise<GetLogGroupFieldsCommandOutput>;
420
421
  getLogGroupFields(args: GetLogGroupFieldsCommandInput, cb: (err: any, data?: GetLogGroupFieldsCommandOutput) => void): void;
421
422
  getLogGroupFields(args: GetLogGroupFieldsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetLogGroupFieldsCommandOutput) => void): void;
423
+ /**
424
+ * @see {@link GetLogObjectCommand}
425
+ */
426
+ getLogObject(args: GetLogObjectCommandInput, options?: __HttpHandlerOptions): Promise<GetLogObjectCommandOutput>;
427
+ getLogObject(args: GetLogObjectCommandInput, cb: (err: any, data?: GetLogObjectCommandOutput) => void): void;
428
+ getLogObject(args: GetLogObjectCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetLogObjectCommandOutput) => void): void;
422
429
  /**
423
430
  * @see {@link GetLogRecordCommand}
424
431
  */
@@ -60,6 +60,7 @@ import { GetIntegrationCommandInput, GetIntegrationCommandOutput } from "./comma
60
60
  import { GetLogAnomalyDetectorCommandInput, GetLogAnomalyDetectorCommandOutput } from "./commands/GetLogAnomalyDetectorCommand";
61
61
  import { GetLogEventsCommandInput, GetLogEventsCommandOutput } from "./commands/GetLogEventsCommand";
62
62
  import { GetLogGroupFieldsCommandInput, GetLogGroupFieldsCommandOutput } from "./commands/GetLogGroupFieldsCommand";
63
+ import { GetLogObjectCommandInput, GetLogObjectCommandOutput } from "./commands/GetLogObjectCommand";
63
64
  import { GetLogRecordCommandInput, GetLogRecordCommandOutput } from "./commands/GetLogRecordCommand";
64
65
  import { GetQueryResultsCommandInput, GetQueryResultsCommandOutput } from "./commands/GetQueryResultsCommand";
65
66
  import { GetTransformerCommandInput, GetTransformerCommandOutput } from "./commands/GetTransformerCommand";
@@ -104,11 +105,11 @@ export { __Client };
104
105
  /**
105
106
  * @public
106
107
  */
107
- export type ServiceInputTypes = AssociateKmsKeyCommandInput | CancelExportTaskCommandInput | CreateDeliveryCommandInput | CreateExportTaskCommandInput | CreateLogAnomalyDetectorCommandInput | CreateLogGroupCommandInput | CreateLogStreamCommandInput | DeleteAccountPolicyCommandInput | DeleteDataProtectionPolicyCommandInput | DeleteDeliveryCommandInput | DeleteDeliveryDestinationCommandInput | DeleteDeliveryDestinationPolicyCommandInput | DeleteDeliverySourceCommandInput | DeleteDestinationCommandInput | DeleteIndexPolicyCommandInput | DeleteIntegrationCommandInput | DeleteLogAnomalyDetectorCommandInput | DeleteLogGroupCommandInput | DeleteLogStreamCommandInput | DeleteMetricFilterCommandInput | DeleteQueryDefinitionCommandInput | DeleteResourcePolicyCommandInput | DeleteRetentionPolicyCommandInput | DeleteSubscriptionFilterCommandInput | DeleteTransformerCommandInput | DescribeAccountPoliciesCommandInput | DescribeConfigurationTemplatesCommandInput | DescribeDeliveriesCommandInput | DescribeDeliveryDestinationsCommandInput | DescribeDeliverySourcesCommandInput | DescribeDestinationsCommandInput | DescribeExportTasksCommandInput | DescribeFieldIndexesCommandInput | DescribeIndexPoliciesCommandInput | DescribeLogGroupsCommandInput | DescribeLogStreamsCommandInput | DescribeMetricFiltersCommandInput | DescribeQueriesCommandInput | DescribeQueryDefinitionsCommandInput | DescribeResourcePoliciesCommandInput | DescribeSubscriptionFiltersCommandInput | DisassociateKmsKeyCommandInput | FilterLogEventsCommandInput | GetDataProtectionPolicyCommandInput | GetDeliveryCommandInput | GetDeliveryDestinationCommandInput | GetDeliveryDestinationPolicyCommandInput | GetDeliverySourceCommandInput | GetIntegrationCommandInput | GetLogAnomalyDetectorCommandInput | GetLogEventsCommandInput | GetLogGroupFieldsCommandInput | GetLogRecordCommandInput | GetQueryResultsCommandInput | GetTransformerCommandInput | ListAnomaliesCommandInput | ListIntegrationsCommandInput | ListLogAnomalyDetectorsCommandInput | ListLogGroupsCommandInput | ListLogGroupsForQueryCommandInput | ListTagsForResourceCommandInput | ListTagsLogGroupCommandInput | PutAccountPolicyCommandInput | PutDataProtectionPolicyCommandInput | PutDeliveryDestinationCommandInput | PutDeliveryDestinationPolicyCommandInput | PutDeliverySourceCommandInput | PutDestinationCommandInput | PutDestinationPolicyCommandInput | PutIndexPolicyCommandInput | PutIntegrationCommandInput | PutLogEventsCommandInput | PutMetricFilterCommandInput | PutQueryDefinitionCommandInput | PutResourcePolicyCommandInput | PutRetentionPolicyCommandInput | PutSubscriptionFilterCommandInput | PutTransformerCommandInput | StartLiveTailCommandInput | StartQueryCommandInput | StopQueryCommandInput | TagLogGroupCommandInput | TagResourceCommandInput | TestMetricFilterCommandInput | TestTransformerCommandInput | UntagLogGroupCommandInput | UntagResourceCommandInput | UpdateAnomalyCommandInput | UpdateDeliveryConfigurationCommandInput | UpdateLogAnomalyDetectorCommandInput;
108
+ export type ServiceInputTypes = AssociateKmsKeyCommandInput | CancelExportTaskCommandInput | CreateDeliveryCommandInput | CreateExportTaskCommandInput | CreateLogAnomalyDetectorCommandInput | CreateLogGroupCommandInput | CreateLogStreamCommandInput | DeleteAccountPolicyCommandInput | DeleteDataProtectionPolicyCommandInput | DeleteDeliveryCommandInput | DeleteDeliveryDestinationCommandInput | DeleteDeliveryDestinationPolicyCommandInput | DeleteDeliverySourceCommandInput | DeleteDestinationCommandInput | DeleteIndexPolicyCommandInput | DeleteIntegrationCommandInput | DeleteLogAnomalyDetectorCommandInput | DeleteLogGroupCommandInput | DeleteLogStreamCommandInput | DeleteMetricFilterCommandInput | DeleteQueryDefinitionCommandInput | DeleteResourcePolicyCommandInput | DeleteRetentionPolicyCommandInput | DeleteSubscriptionFilterCommandInput | DeleteTransformerCommandInput | DescribeAccountPoliciesCommandInput | DescribeConfigurationTemplatesCommandInput | DescribeDeliveriesCommandInput | DescribeDeliveryDestinationsCommandInput | DescribeDeliverySourcesCommandInput | DescribeDestinationsCommandInput | DescribeExportTasksCommandInput | DescribeFieldIndexesCommandInput | DescribeIndexPoliciesCommandInput | DescribeLogGroupsCommandInput | DescribeLogStreamsCommandInput | DescribeMetricFiltersCommandInput | DescribeQueriesCommandInput | DescribeQueryDefinitionsCommandInput | DescribeResourcePoliciesCommandInput | DescribeSubscriptionFiltersCommandInput | DisassociateKmsKeyCommandInput | FilterLogEventsCommandInput | GetDataProtectionPolicyCommandInput | GetDeliveryCommandInput | GetDeliveryDestinationCommandInput | GetDeliveryDestinationPolicyCommandInput | GetDeliverySourceCommandInput | GetIntegrationCommandInput | GetLogAnomalyDetectorCommandInput | GetLogEventsCommandInput | GetLogGroupFieldsCommandInput | GetLogObjectCommandInput | GetLogRecordCommandInput | GetQueryResultsCommandInput | GetTransformerCommandInput | ListAnomaliesCommandInput | ListIntegrationsCommandInput | ListLogAnomalyDetectorsCommandInput | ListLogGroupsCommandInput | ListLogGroupsForQueryCommandInput | ListTagsForResourceCommandInput | ListTagsLogGroupCommandInput | PutAccountPolicyCommandInput | PutDataProtectionPolicyCommandInput | PutDeliveryDestinationCommandInput | PutDeliveryDestinationPolicyCommandInput | PutDeliverySourceCommandInput | PutDestinationCommandInput | PutDestinationPolicyCommandInput | PutIndexPolicyCommandInput | PutIntegrationCommandInput | PutLogEventsCommandInput | PutMetricFilterCommandInput | PutQueryDefinitionCommandInput | PutResourcePolicyCommandInput | PutRetentionPolicyCommandInput | PutSubscriptionFilterCommandInput | PutTransformerCommandInput | StartLiveTailCommandInput | StartQueryCommandInput | StopQueryCommandInput | TagLogGroupCommandInput | TagResourceCommandInput | TestMetricFilterCommandInput | TestTransformerCommandInput | UntagLogGroupCommandInput | UntagResourceCommandInput | UpdateAnomalyCommandInput | UpdateDeliveryConfigurationCommandInput | UpdateLogAnomalyDetectorCommandInput;
108
109
  /**
109
110
  * @public
110
111
  */
111
- export type ServiceOutputTypes = AssociateKmsKeyCommandOutput | CancelExportTaskCommandOutput | CreateDeliveryCommandOutput | CreateExportTaskCommandOutput | CreateLogAnomalyDetectorCommandOutput | CreateLogGroupCommandOutput | CreateLogStreamCommandOutput | DeleteAccountPolicyCommandOutput | DeleteDataProtectionPolicyCommandOutput | DeleteDeliveryCommandOutput | DeleteDeliveryDestinationCommandOutput | DeleteDeliveryDestinationPolicyCommandOutput | DeleteDeliverySourceCommandOutput | DeleteDestinationCommandOutput | DeleteIndexPolicyCommandOutput | DeleteIntegrationCommandOutput | DeleteLogAnomalyDetectorCommandOutput | DeleteLogGroupCommandOutput | DeleteLogStreamCommandOutput | DeleteMetricFilterCommandOutput | DeleteQueryDefinitionCommandOutput | DeleteResourcePolicyCommandOutput | DeleteRetentionPolicyCommandOutput | DeleteSubscriptionFilterCommandOutput | DeleteTransformerCommandOutput | DescribeAccountPoliciesCommandOutput | DescribeConfigurationTemplatesCommandOutput | DescribeDeliveriesCommandOutput | DescribeDeliveryDestinationsCommandOutput | DescribeDeliverySourcesCommandOutput | DescribeDestinationsCommandOutput | DescribeExportTasksCommandOutput | DescribeFieldIndexesCommandOutput | DescribeIndexPoliciesCommandOutput | DescribeLogGroupsCommandOutput | DescribeLogStreamsCommandOutput | DescribeMetricFiltersCommandOutput | DescribeQueriesCommandOutput | DescribeQueryDefinitionsCommandOutput | DescribeResourcePoliciesCommandOutput | DescribeSubscriptionFiltersCommandOutput | DisassociateKmsKeyCommandOutput | FilterLogEventsCommandOutput | GetDataProtectionPolicyCommandOutput | GetDeliveryCommandOutput | GetDeliveryDestinationCommandOutput | GetDeliveryDestinationPolicyCommandOutput | GetDeliverySourceCommandOutput | GetIntegrationCommandOutput | GetLogAnomalyDetectorCommandOutput | GetLogEventsCommandOutput | GetLogGroupFieldsCommandOutput | GetLogRecordCommandOutput | GetQueryResultsCommandOutput | GetTransformerCommandOutput | ListAnomaliesCommandOutput | ListIntegrationsCommandOutput | ListLogAnomalyDetectorsCommandOutput | ListLogGroupsCommandOutput | ListLogGroupsForQueryCommandOutput | ListTagsForResourceCommandOutput | ListTagsLogGroupCommandOutput | PutAccountPolicyCommandOutput | PutDataProtectionPolicyCommandOutput | PutDeliveryDestinationCommandOutput | PutDeliveryDestinationPolicyCommandOutput | PutDeliverySourceCommandOutput | PutDestinationCommandOutput | PutDestinationPolicyCommandOutput | PutIndexPolicyCommandOutput | PutIntegrationCommandOutput | PutLogEventsCommandOutput | PutMetricFilterCommandOutput | PutQueryDefinitionCommandOutput | PutResourcePolicyCommandOutput | PutRetentionPolicyCommandOutput | PutSubscriptionFilterCommandOutput | PutTransformerCommandOutput | StartLiveTailCommandOutput | StartQueryCommandOutput | StopQueryCommandOutput | TagLogGroupCommandOutput | TagResourceCommandOutput | TestMetricFilterCommandOutput | TestTransformerCommandOutput | UntagLogGroupCommandOutput | UntagResourceCommandOutput | UpdateAnomalyCommandOutput | UpdateDeliveryConfigurationCommandOutput | UpdateLogAnomalyDetectorCommandOutput;
112
+ export type ServiceOutputTypes = AssociateKmsKeyCommandOutput | CancelExportTaskCommandOutput | CreateDeliveryCommandOutput | CreateExportTaskCommandOutput | CreateLogAnomalyDetectorCommandOutput | CreateLogGroupCommandOutput | CreateLogStreamCommandOutput | DeleteAccountPolicyCommandOutput | DeleteDataProtectionPolicyCommandOutput | DeleteDeliveryCommandOutput | DeleteDeliveryDestinationCommandOutput | DeleteDeliveryDestinationPolicyCommandOutput | DeleteDeliverySourceCommandOutput | DeleteDestinationCommandOutput | DeleteIndexPolicyCommandOutput | DeleteIntegrationCommandOutput | DeleteLogAnomalyDetectorCommandOutput | DeleteLogGroupCommandOutput | DeleteLogStreamCommandOutput | DeleteMetricFilterCommandOutput | DeleteQueryDefinitionCommandOutput | DeleteResourcePolicyCommandOutput | DeleteRetentionPolicyCommandOutput | DeleteSubscriptionFilterCommandOutput | DeleteTransformerCommandOutput | DescribeAccountPoliciesCommandOutput | DescribeConfigurationTemplatesCommandOutput | DescribeDeliveriesCommandOutput | DescribeDeliveryDestinationsCommandOutput | DescribeDeliverySourcesCommandOutput | DescribeDestinationsCommandOutput | DescribeExportTasksCommandOutput | DescribeFieldIndexesCommandOutput | DescribeIndexPoliciesCommandOutput | DescribeLogGroupsCommandOutput | DescribeLogStreamsCommandOutput | DescribeMetricFiltersCommandOutput | DescribeQueriesCommandOutput | DescribeQueryDefinitionsCommandOutput | DescribeResourcePoliciesCommandOutput | DescribeSubscriptionFiltersCommandOutput | DisassociateKmsKeyCommandOutput | FilterLogEventsCommandOutput | GetDataProtectionPolicyCommandOutput | GetDeliveryCommandOutput | GetDeliveryDestinationCommandOutput | GetDeliveryDestinationPolicyCommandOutput | GetDeliverySourceCommandOutput | GetIntegrationCommandOutput | GetLogAnomalyDetectorCommandOutput | GetLogEventsCommandOutput | GetLogGroupFieldsCommandOutput | GetLogObjectCommandOutput | GetLogRecordCommandOutput | GetQueryResultsCommandOutput | GetTransformerCommandOutput | ListAnomaliesCommandOutput | ListIntegrationsCommandOutput | ListLogAnomalyDetectorsCommandOutput | ListLogGroupsCommandOutput | ListLogGroupsForQueryCommandOutput | ListTagsForResourceCommandOutput | ListTagsLogGroupCommandOutput | PutAccountPolicyCommandOutput | PutDataProtectionPolicyCommandOutput | PutDeliveryDestinationCommandOutput | PutDeliveryDestinationPolicyCommandOutput | PutDeliverySourceCommandOutput | PutDestinationCommandOutput | PutDestinationPolicyCommandOutput | PutIndexPolicyCommandOutput | PutIntegrationCommandOutput | PutLogEventsCommandOutput | PutMetricFilterCommandOutput | PutQueryDefinitionCommandOutput | PutResourcePolicyCommandOutput | PutRetentionPolicyCommandOutput | PutSubscriptionFilterCommandOutput | PutTransformerCommandOutput | StartLiveTailCommandOutput | StartQueryCommandOutput | StopQueryCommandOutput | TagLogGroupCommandOutput | TagResourceCommandOutput | TestMetricFilterCommandOutput | TestTransformerCommandOutput | UntagLogGroupCommandOutput | UntagResourceCommandOutput | UpdateAnomalyCommandOutput | UpdateDeliveryConfigurationCommandOutput | UpdateLogAnomalyDetectorCommandOutput;
112
113
  /**
113
114
  * @public
114
115
  */
@@ -63,7 +63,7 @@ declare const DeleteAccountPolicyCommand_base: {
63
63
  * const client = new CloudWatchLogsClient(config);
64
64
  * const input = { // DeleteAccountPolicyRequest
65
65
  * policyName: "STRING_VALUE", // required
66
- * policyType: "DATA_PROTECTION_POLICY" || "SUBSCRIPTION_FILTER_POLICY" || "FIELD_INDEX_POLICY" || "TRANSFORMER_POLICY", // required
66
+ * policyType: "DATA_PROTECTION_POLICY" || "SUBSCRIPTION_FILTER_POLICY" || "FIELD_INDEX_POLICY" || "TRANSFORMER_POLICY" || "METRIC_EXTRACTION_POLICY", // required
67
67
  * };
68
68
  * const command = new DeleteAccountPolicyCommand(input);
69
69
  * const response = await client.send(command);
@@ -57,7 +57,7 @@ declare const DescribeAccountPoliciesCommand_base: {
57
57
  * // const { CloudWatchLogsClient, DescribeAccountPoliciesCommand } = require("@aws-sdk/client-cloudwatch-logs"); // CommonJS import
58
58
  * const client = new CloudWatchLogsClient(config);
59
59
  * const input = { // DescribeAccountPoliciesRequest
60
- * policyType: "DATA_PROTECTION_POLICY" || "SUBSCRIPTION_FILTER_POLICY" || "FIELD_INDEX_POLICY" || "TRANSFORMER_POLICY", // required
60
+ * policyType: "DATA_PROTECTION_POLICY" || "SUBSCRIPTION_FILTER_POLICY" || "FIELD_INDEX_POLICY" || "TRANSFORMER_POLICY" || "METRIC_EXTRACTION_POLICY", // required
61
61
  * policyName: "STRING_VALUE",
62
62
  * accountIdentifiers: [ // AccountIds
63
63
  * "STRING_VALUE",
@@ -72,7 +72,7 @@ declare const DescribeAccountPoliciesCommand_base: {
72
72
  * // policyName: "STRING_VALUE",
73
73
  * // policyDocument: "STRING_VALUE",
74
74
  * // lastUpdatedTime: Number("long"),
75
- * // policyType: "DATA_PROTECTION_POLICY" || "SUBSCRIPTION_FILTER_POLICY" || "FIELD_INDEX_POLICY" || "TRANSFORMER_POLICY",
75
+ * // policyType: "DATA_PROTECTION_POLICY" || "SUBSCRIPTION_FILTER_POLICY" || "FIELD_INDEX_POLICY" || "TRANSFORMER_POLICY" || "METRIC_EXTRACTION_POLICY",
76
76
  * // scope: "ALL",
77
77
  * // selectionCriteria: "STRING_VALUE",
78
78
  * // accountId: "STRING_VALUE",