@aws-sdk/client-cloudwatch-logs 3.428.0 → 3.430.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.
@@ -47,12 +47,12 @@ export interface AccountPolicy {
47
47
  * @public
48
48
  * <p>The type of policy for this account policy.</p>
49
49
  */
50
- policyType?: PolicyType | string;
50
+ policyType?: PolicyType;
51
51
  /**
52
52
  * @public
53
53
  * <p>The scope of the account policy.</p>
54
54
  */
55
- scope?: Scope | string;
55
+ scope?: Scope;
56
56
  /**
57
57
  * @public
58
58
  * <p>The Amazon Web Services account ID that the policy applies to.</p>
@@ -350,7 +350,7 @@ export interface DeleteAccountPolicyRequest {
350
350
  * @public
351
351
  * <p>The type of policy to delete. Currently, the only valid value is <code>DATA_PROTECTION_POLICY</code>.</p>
352
352
  */
353
- policyType: PolicyType | string | undefined;
353
+ policyType: PolicyType | undefined;
354
354
  }
355
355
  /**
356
356
  * @public
@@ -478,7 +478,7 @@ export interface DescribeAccountPoliciesRequest {
478
478
  * <p>Use this parameter to limit the returned policies to only the policies that match the policy type that you
479
479
  * specify. Currently, the only valid value is <code>DATA_PROTECTION_POLICY</code>.</p>
480
480
  */
481
- policyType: PolicyType | string | undefined;
481
+ policyType: PolicyType | undefined;
482
482
  /**
483
483
  * @public
484
484
  * <p>Use this parameter to limit the returned policies to only the policy with the name that you specify.</p>
@@ -611,7 +611,7 @@ export interface DescribeExportTasksRequest {
611
611
  * @public
612
612
  * <p>The status code of the export task. Specifying a status code filters the results to zero or more export tasks.</p>
613
613
  */
614
- statusCode?: ExportTaskStatusCode | string;
614
+ statusCode?: ExportTaskStatusCode;
615
615
  /**
616
616
  * @public
617
617
  * <p>The token for the next set of items to return. (You received this token from a previous call.)</p>
@@ -650,7 +650,7 @@ export interface ExportTaskStatus {
650
650
  * @public
651
651
  * <p>The status code of the export task.</p>
652
652
  */
653
- code?: ExportTaskStatusCode | string;
653
+ code?: ExportTaskStatusCode;
654
654
  /**
655
655
  * @public
656
656
  * <p>The status message related to the status code.</p>
@@ -847,13 +847,13 @@ export interface LogGroup {
847
847
  * <p>Displays whether this log group has a protection policy, or whether it had one in the past. For more information, see
848
848
  * <a href="https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_PutDataProtectionPolicy.html">PutDataProtectionPolicy</a>.</p>
849
849
  */
850
- dataProtectionStatus?: DataProtectionStatus | string;
850
+ dataProtectionStatus?: DataProtectionStatus;
851
851
  /**
852
852
  * @public
853
853
  * <p>Displays all the properties that this log group has inherited from account-level
854
854
  * settings.</p>
855
855
  */
856
- inheritedProperties?: (InheritedProperty | string)[];
856
+ inheritedProperties?: InheritedProperty[];
857
857
  }
858
858
  /**
859
859
  * @public
@@ -931,7 +931,7 @@ export interface DescribeLogStreamsRequest {
931
931
  * eventual consistency basis. It typically updates in less than an hour from ingestion, but in
932
932
  * rare situations might take longer.</p>
933
933
  */
934
- orderBy?: OrderBy | string;
934
+ orderBy?: OrderBy;
935
935
  /**
936
936
  * @public
937
937
  * <p>If the value is true, results are returned in descending order.
@@ -1161,7 +1161,7 @@ export interface MetricTransformation {
1161
1161
  * @public
1162
1162
  * <p>The unit to assign to the metric. If you omit this, the unit is set as <code>None</code>.</p>
1163
1163
  */
1164
- unit?: StandardUnit | string;
1164
+ unit?: StandardUnit;
1165
1165
  }
1166
1166
  /**
1167
1167
  * @public
@@ -1244,7 +1244,7 @@ export interface DescribeQueriesRequest {
1244
1244
  * <p>Limits the returned queries to only those that have the specified status. Valid values are <code>Cancelled</code>,
1245
1245
  * <code>Complete</code>, <code>Failed</code>, <code>Running</code>, and <code>Scheduled</code>.</p>
1246
1246
  */
1247
- status?: QueryStatus | string;
1247
+ status?: QueryStatus;
1248
1248
  /**
1249
1249
  * @public
1250
1250
  * <p>Limits the number of returned queries to the specified number.</p>
@@ -1276,7 +1276,7 @@ export interface QueryInfo {
1276
1276
  * <p>The status of this query. Possible values are <code>Cancelled</code>,
1277
1277
  * <code>Complete</code>, <code>Failed</code>, <code>Running</code>, <code>Scheduled</code>, and <code>Unknown</code>.</p>
1278
1278
  */
1279
- status?: QueryStatus | string;
1279
+ status?: QueryStatus;
1280
1280
  /**
1281
1281
  * @public
1282
1282
  * <p>The date and time that this query was created.</p>
@@ -1496,7 +1496,7 @@ export interface SubscriptionFilter {
1496
1496
  * <p>The method used to distribute log data to the destination, which can be either
1497
1497
  * random or grouped by log stream.</p>
1498
1498
  */
1499
- distribution?: Distribution | string;
1499
+ distribution?: Distribution;
1500
1500
  /**
1501
1501
  * @public
1502
1502
  * <p>The creation time of the subscription filter, expressed as the number of milliseconds
@@ -2055,7 +2055,7 @@ export interface GetQueryResultsResponse {
2055
2055
  * <p>Queries time out after 60 minutes of runtime. To avoid having your queries time out,
2056
2056
  * reduce the time range being searched or partition your query into a number of queries.</p>
2057
2057
  */
2058
- status?: QueryStatus | string;
2058
+ status?: QueryStatus;
2059
2059
  /**
2060
2060
  * @public
2061
2061
  * <p>If you associated an KMS key with the CloudWatch Logs Insights
@@ -2206,14 +2206,14 @@ export interface PutAccountPolicyRequest {
2206
2206
  * @public
2207
2207
  * <p>Currently the only valid value for this parameter is <code>DATA_PROTECTION_POLICY</code>.</p>
2208
2208
  */
2209
- policyType: PolicyType | string | undefined;
2209
+ policyType: PolicyType | undefined;
2210
2210
  /**
2211
2211
  * @public
2212
2212
  * <p>Currently the only valid value for this parameter is <code>ALL</code>, which specifies that the data
2213
2213
  * protection policy applies to all log groups in the account. If you omit this parameter, the default
2214
2214
  * of <code>ALL</code> is used.</p>
2215
2215
  */
2216
- scope?: Scope | string;
2216
+ scope?: Scope;
2217
2217
  }
2218
2218
  /**
2219
2219
  * @public
@@ -2670,7 +2670,7 @@ export interface PutSubscriptionFilterRequest {
2670
2670
  * grouped by log stream, but the grouping can be set to random for a more even distribution.
2671
2671
  * This property is only applicable when the destination is an Amazon Kinesis data stream. </p>
2672
2672
  */
2673
- distribution?: Distribution | string;
2673
+ distribution?: Distribution;
2674
2674
  }
2675
2675
  /**
2676
2676
  * @public
@@ -12,8 +12,8 @@ export interface AccountPolicy {
12
12
  policyName?: string;
13
13
  policyDocument?: string;
14
14
  lastUpdatedTime?: number;
15
- policyType?: PolicyType | string;
16
- scope?: Scope | string;
15
+ policyType?: PolicyType;
16
+ scope?: Scope;
17
17
  accountId?: string;
18
18
  }
19
19
  export interface AssociateKmsKeyRequest {
@@ -112,7 +112,7 @@ export type DataProtectionStatus =
112
112
  (typeof DataProtectionStatus)[keyof typeof DataProtectionStatus];
113
113
  export interface DeleteAccountPolicyRequest {
114
114
  policyName: string | undefined;
115
- policyType: PolicyType | string | undefined;
115
+ policyType: PolicyType | undefined;
116
116
  }
117
117
  export interface DeleteDataProtectionPolicyRequest {
118
118
  logGroupIdentifier: string | undefined;
@@ -148,7 +148,7 @@ export interface DeleteSubscriptionFilterRequest {
148
148
  filterName: string | undefined;
149
149
  }
150
150
  export interface DescribeAccountPoliciesRequest {
151
- policyType: PolicyType | string | undefined;
151
+ policyType: PolicyType | undefined;
152
152
  policyName?: string;
153
153
  accountIdentifiers?: string[];
154
154
  }
@@ -184,7 +184,7 @@ export type ExportTaskStatusCode =
184
184
  (typeof ExportTaskStatusCode)[keyof typeof ExportTaskStatusCode];
185
185
  export interface DescribeExportTasksRequest {
186
186
  taskId?: string;
187
- statusCode?: ExportTaskStatusCode | string;
187
+ statusCode?: ExportTaskStatusCode;
188
188
  nextToken?: string;
189
189
  limit?: number;
190
190
  }
@@ -193,7 +193,7 @@ export interface ExportTaskExecutionInfo {
193
193
  completionTime?: number;
194
194
  }
195
195
  export interface ExportTaskStatus {
196
- code?: ExportTaskStatusCode | string;
196
+ code?: ExportTaskStatusCode;
197
197
  message?: string;
198
198
  }
199
199
  export interface ExportTask {
@@ -232,8 +232,8 @@ export interface LogGroup {
232
232
  arn?: string;
233
233
  storedBytes?: number;
234
234
  kmsKeyId?: string;
235
- dataProtectionStatus?: DataProtectionStatus | string;
236
- inheritedProperties?: (InheritedProperty | string)[];
235
+ dataProtectionStatus?: DataProtectionStatus;
236
+ inheritedProperties?: InheritedProperty[];
237
237
  }
238
238
  export interface DescribeLogGroupsResponse {
239
239
  logGroups?: LogGroup[];
@@ -248,7 +248,7 @@ export interface DescribeLogStreamsRequest {
248
248
  logGroupName?: string;
249
249
  logGroupIdentifier?: string;
250
250
  logStreamNamePrefix?: string;
251
- orderBy?: OrderBy | string;
251
+ orderBy?: OrderBy;
252
252
  descending?: boolean;
253
253
  nextToken?: string;
254
254
  limit?: number;
@@ -311,7 +311,7 @@ export interface MetricTransformation {
311
311
  metricValue: string | undefined;
312
312
  defaultValue?: number;
313
313
  dimensions?: Record<string, string>;
314
- unit?: StandardUnit | string;
314
+ unit?: StandardUnit;
315
315
  }
316
316
  export interface MetricFilter {
317
317
  filterName?: string;
@@ -336,14 +336,14 @@ export declare const QueryStatus: {
336
336
  export type QueryStatus = (typeof QueryStatus)[keyof typeof QueryStatus];
337
337
  export interface DescribeQueriesRequest {
338
338
  logGroupName?: string;
339
- status?: QueryStatus | string;
339
+ status?: QueryStatus;
340
340
  maxResults?: number;
341
341
  nextToken?: string;
342
342
  }
343
343
  export interface QueryInfo {
344
344
  queryId?: string;
345
345
  queryString?: string;
346
- status?: QueryStatus | string;
346
+ status?: QueryStatus;
347
347
  createTime?: number;
348
348
  logGroupName?: string;
349
349
  }
@@ -397,7 +397,7 @@ export interface SubscriptionFilter {
397
397
  filterPattern?: string;
398
398
  destinationArn?: string;
399
399
  roleArn?: string;
400
- distribution?: Distribution | string;
400
+ distribution?: Distribution;
401
401
  creationTime?: number;
402
402
  }
403
403
  export interface DescribeSubscriptionFiltersResponse {
@@ -500,7 +500,7 @@ export interface QueryStatistics {
500
500
  export interface GetQueryResultsResponse {
501
501
  results?: ResultField[][];
502
502
  statistics?: QueryStatistics;
503
- status?: QueryStatus | string;
503
+ status?: QueryStatus;
504
504
  encryptionKey?: string;
505
505
  }
506
506
  export interface InputLogEvent {
@@ -530,8 +530,8 @@ export interface ListTagsLogGroupResponse {
530
530
  export interface PutAccountPolicyRequest {
531
531
  policyName: string | undefined;
532
532
  policyDocument: string | undefined;
533
- policyType: PolicyType | string | undefined;
534
- scope?: Scope | string;
533
+ policyType: PolicyType | undefined;
534
+ scope?: Scope;
535
535
  }
536
536
  export interface PutAccountPolicyResponse {
537
537
  accountPolicy?: AccountPolicy;
@@ -614,7 +614,7 @@ export interface PutSubscriptionFilterRequest {
614
614
  filterPattern: string | undefined;
615
615
  destinationArn: string | undefined;
616
616
  roleArn?: string;
617
- distribution?: Distribution | string;
617
+ distribution?: Distribution;
618
618
  }
619
619
  export interface QueryCompileErrorLocation {
620
620
  startCharOffset?: number;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-cloudwatch-logs",
3
3
  "description": "AWS SDK for JavaScript Cloudwatch Logs Client for Node.js, Browser and React Native",
4
- "version": "3.428.0",
4
+ "version": "3.430.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -21,28 +21,28 @@
21
21
  "dependencies": {
22
22
  "@aws-crypto/sha256-browser": "3.0.0",
23
23
  "@aws-crypto/sha256-js": "3.0.0",
24
- "@aws-sdk/client-sts": "3.428.0",
25
- "@aws-sdk/credential-provider-node": "3.428.0",
26
- "@aws-sdk/middleware-host-header": "3.428.0",
24
+ "@aws-sdk/client-sts": "3.430.0",
25
+ "@aws-sdk/credential-provider-node": "3.430.0",
26
+ "@aws-sdk/middleware-host-header": "3.429.0",
27
27
  "@aws-sdk/middleware-logger": "3.428.0",
28
28
  "@aws-sdk/middleware-recursion-detection": "3.428.0",
29
29
  "@aws-sdk/middleware-signing": "3.428.0",
30
30
  "@aws-sdk/middleware-user-agent": "3.428.0",
31
- "@aws-sdk/region-config-resolver": "3.428.0",
31
+ "@aws-sdk/region-config-resolver": "3.430.0",
32
32
  "@aws-sdk/types": "3.428.0",
33
33
  "@aws-sdk/util-endpoints": "3.428.0",
34
34
  "@aws-sdk/util-user-agent-browser": "3.428.0",
35
- "@aws-sdk/util-user-agent-node": "3.428.0",
36
- "@smithy/config-resolver": "^2.0.14",
35
+ "@aws-sdk/util-user-agent-node": "3.430.0",
36
+ "@smithy/config-resolver": "^2.0.15",
37
37
  "@smithy/fetch-http-handler": "^2.2.3",
38
38
  "@smithy/hash-node": "^2.0.11",
39
39
  "@smithy/invalid-dependency": "^2.0.11",
40
40
  "@smithy/middleware-content-length": "^2.0.13",
41
- "@smithy/middleware-endpoint": "^2.1.0",
42
- "@smithy/middleware-retry": "^2.0.16",
41
+ "@smithy/middleware-endpoint": "^2.1.2",
42
+ "@smithy/middleware-retry": "^2.0.17",
43
43
  "@smithy/middleware-serde": "^2.0.11",
44
44
  "@smithy/middleware-stack": "^2.0.5",
45
- "@smithy/node-config-provider": "^2.1.1",
45
+ "@smithy/node-config-provider": "^2.1.2",
46
46
  "@smithy/node-http-handler": "^2.1.7",
47
47
  "@smithy/protocol-http": "^3.0.7",
48
48
  "@smithy/smithy-client": "^2.1.11",
@@ -52,7 +52,7 @@
52
52
  "@smithy/util-body-length-browser": "^2.0.0",
53
53
  "@smithy/util-body-length-node": "^2.1.0",
54
54
  "@smithy/util-defaults-mode-browser": "^2.0.15",
55
- "@smithy/util-defaults-mode-node": "^2.0.19",
55
+ "@smithy/util-defaults-mode-node": "^2.0.20",
56
56
  "@smithy/util-retry": "^2.0.4",
57
57
  "@smithy/util-utf8": "^2.0.0",
58
58
  "tslib": "^2.5.0",