cdk-lambda-subminute 2.0.323 → 2.0.325
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/.jsii +3 -3
- package/lib/cdk-lambda-subminute.js +3 -3
- package/node_modules/aws-sdk/README.md +1 -1
- package/node_modules/aws-sdk/apis/drs-2020-02-26.min.json +56 -54
- package/node_modules/aws-sdk/apis/imagebuilder-2019-12-02.min.json +444 -102
- package/node_modules/aws-sdk/apis/imagebuilder-2019-12-02.paginators.json +18 -0
- package/node_modules/aws-sdk/apis/location-2020-11-19.min.json +65 -60
- package/node_modules/aws-sdk/apis/logs-2014-03-28.min.json +106 -2
- package/node_modules/aws-sdk/clients/cloudwatchlogs.d.ts +114 -4
- package/node_modules/aws-sdk/clients/drs.d.ts +9 -0
- package/node_modules/aws-sdk/clients/imagebuilder.d.ts +543 -18
- package/node_modules/aws-sdk/clients/location.d.ts +15 -2
- package/node_modules/aws-sdk/dist/aws-sdk-core-react-native.js +1 -1
- package/node_modules/aws-sdk/dist/aws-sdk-react-native.js +6 -6
- package/node_modules/aws-sdk/dist/aws-sdk.js +174 -65
- package/node_modules/aws-sdk/dist/aws-sdk.min.js +42 -42
- package/node_modules/aws-sdk/lib/core.js +1 -1
- package/node_modules/aws-sdk/package.json +1 -1
- package/package.json +2 -2
@@ -4,6 +4,7 @@ import {AWSError} from '../lib/error';
|
|
4
4
|
import {Service} from '../lib/service';
|
5
5
|
import {ServiceConfigurationOptions} from '../lib/service';
|
6
6
|
import {ConfigBase as Config} from '../lib/config-base';
|
7
|
+
import {EventStream} from '../lib/event-stream/event-stream';
|
7
8
|
interface Blob {}
|
8
9
|
declare class CloudWatchLogs extends Service {
|
9
10
|
/**
|
@@ -268,11 +269,11 @@ declare class CloudWatchLogs extends Service {
|
|
268
269
|
*/
|
269
270
|
describeQueries(callback?: (err: AWSError, data: CloudWatchLogs.Types.DescribeQueriesResponse) => void): Request<CloudWatchLogs.Types.DescribeQueriesResponse, AWSError>;
|
270
271
|
/**
|
271
|
-
* This operation returns a paginated list of your saved CloudWatch Logs Insights query definitions. You can use the queryDefinitionNamePrefix parameter to limit the results to only the query definitions that have names that start with a certain string.
|
272
|
+
* This operation returns a paginated list of your saved CloudWatch Logs Insights query definitions. You can retrieve query definitions from the current account or from a source account that is linked to the current account. You can use the queryDefinitionNamePrefix parameter to limit the results to only the query definitions that have names that start with a certain string.
|
272
273
|
*/
|
273
274
|
describeQueryDefinitions(params: CloudWatchLogs.Types.DescribeQueryDefinitionsRequest, callback?: (err: AWSError, data: CloudWatchLogs.Types.DescribeQueryDefinitionsResponse) => void): Request<CloudWatchLogs.Types.DescribeQueryDefinitionsResponse, AWSError>;
|
274
275
|
/**
|
275
|
-
* This operation returns a paginated list of your saved CloudWatch Logs Insights query definitions. You can use the queryDefinitionNamePrefix parameter to limit the results to only the query definitions that have names that start with a certain string.
|
276
|
+
* This operation returns a paginated list of your saved CloudWatch Logs Insights query definitions. You can retrieve query definitions from the current account or from a source account that is linked to the current account. You can use the queryDefinitionNamePrefix parameter to limit the results to only the query definitions that have names that start with a certain string.
|
276
277
|
*/
|
277
278
|
describeQueryDefinitions(callback?: (err: AWSError, data: CloudWatchLogs.Types.DescribeQueryDefinitionsResponse) => void): Request<CloudWatchLogs.Types.DescribeQueryDefinitionsResponse, AWSError>;
|
278
279
|
/**
|
@@ -523,6 +524,14 @@ declare class CloudWatchLogs extends Service {
|
|
523
524
|
* Creates or updates a subscription filter and associates it with the specified log group. With subscription filters, you can subscribe to a real-time stream of log events ingested through PutLogEvents and have them delivered to a specific destination. When log events are sent to the receiving service, they are Base64 encoded and compressed with the GZIP format. The following destinations are supported for subscription filters: An Amazon Kinesis data stream belonging to the same account as the subscription filter, for same-account delivery. A logical destination created with PutDestination that belongs to a different account, for cross-account delivery. We currently support Kinesis Data Streams and Kinesis Data Firehose as logical destinations. An Amazon Kinesis Data Firehose delivery stream that belongs to the same account as the subscription filter, for same-account delivery. An Lambda function that belongs to the same account as the subscription filter, for same-account delivery. Each log group can have up to two subscription filters associated with it. If you are updating an existing filter, you must specify the correct name in filterName. To perform a PutSubscriptionFilter operation for any destination except a Lambda function, you must also have the iam:PassRole permission.
|
524
525
|
*/
|
525
526
|
putSubscriptionFilter(callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
|
527
|
+
/**
|
528
|
+
* Starts a Live Tail streaming session for one or more log groups. A Live Tail session returns a stream of log events that have been recently ingested in the log groups. For more information, see Use Live Tail to view logs in near real time. The response to this operation is a response stream, over which the server sends live log events and the client receives them. The following objects are sent over the stream: A single LiveTailSessionStart object is sent at the start of the session. Every second, a LiveTailSessionUpdate object is sent. Each of these objects contains an array of the actual log events. If no new log events were ingested in the past second, the LiveTailSessionUpdate object will contain an empty array. The array of log events contained in a LiveTailSessionUpdate can include as many as 500 log events. If the number of log events matching the request exceeds 500 per second, the log events are sampled down to 500 log events to be included in each LiveTailSessionUpdate object. If your client consumes the log events slower than the server produces them, CloudWatch Logs buffers up to 10 LiveTailSessionUpdate events or 5000 log events, after which it starts dropping the oldest events. A SessionStreamingException object is returned if an unknown error occurs on the server side. A SessionTimeoutException object is returned when the session times out, after it has been kept open for three hours. You can end a session before it times out by closing the session stream or by closing the client that is receiving the stream. The session also ends if the established connection between the client and the server breaks.
|
529
|
+
*/
|
530
|
+
startLiveTail(params: CloudWatchLogs.Types.StartLiveTailRequest, callback?: (err: AWSError, data: CloudWatchLogs.Types.StartLiveTailResponse) => void): Request<CloudWatchLogs.Types.StartLiveTailResponse, AWSError>;
|
531
|
+
/**
|
532
|
+
* Starts a Live Tail streaming session for one or more log groups. A Live Tail session returns a stream of log events that have been recently ingested in the log groups. For more information, see Use Live Tail to view logs in near real time. The response to this operation is a response stream, over which the server sends live log events and the client receives them. The following objects are sent over the stream: A single LiveTailSessionStart object is sent at the start of the session. Every second, a LiveTailSessionUpdate object is sent. Each of these objects contains an array of the actual log events. If no new log events were ingested in the past second, the LiveTailSessionUpdate object will contain an empty array. The array of log events contained in a LiveTailSessionUpdate can include as many as 500 log events. If the number of log events matching the request exceeds 500 per second, the log events are sampled down to 500 log events to be included in each LiveTailSessionUpdate object. If your client consumes the log events slower than the server produces them, CloudWatch Logs buffers up to 10 LiveTailSessionUpdate events or 5000 log events, after which it starts dropping the oldest events. A SessionStreamingException object is returned if an unknown error occurs on the server side. A SessionTimeoutException object is returned when the session times out, after it has been kept open for three hours. You can end a session before it times out by closing the session stream or by closing the client that is receiving the stream. The session also ends if the established connection between the client and the server breaks.
|
533
|
+
*/
|
534
|
+
startLiveTail(callback?: (err: AWSError, data: CloudWatchLogs.Types.StartLiveTailResponse) => void): Request<CloudWatchLogs.Types.StartLiveTailResponse, AWSError>;
|
526
535
|
/**
|
527
536
|
* Schedules a query of a log group using CloudWatch Logs Insights. You specify the log group and time range to query and the query string to use. For more information, see CloudWatch Logs Insights Query Syntax. After you run a query using StartQuery, the query results are stored by CloudWatch Logs. You can use GetQueryResults to retrieve the results of a query, using the queryId that StartQuery returns. If you have associated a KMS key with the query results in this account, then StartQuery uses that key to encrypt the results when it stores them. If no key is associated with query results, the query results are encrypted with the default CloudWatch Logs encryption method. Queries time out after 60 minutes of runtime. If your queries are timing out, reduce the time range being searched or partition your query into a number of queries. If you are using CloudWatch cross-account observability, you can use this operation in a monitoring account to start a query in a linked source account. For more information, see CloudWatch cross-account observability. For a cross-account StartQuery operation, the query definition must be defined in the monitoring account. You can have up to 30 concurrent CloudWatch Logs insights queries, including queries that have been added to dashboards.
|
528
537
|
*/
|
@@ -834,7 +843,7 @@ declare namespace CloudWatchLogs {
|
|
834
843
|
}
|
835
844
|
export interface CreateLogAnomalyDetectorRequest {
|
836
845
|
/**
|
837
|
-
* An array containing the
|
846
|
+
* An array containing the ARN of the log group that this anomaly detector will watch. You can specify only one log group ARN.
|
838
847
|
*/
|
839
848
|
logGroupArnList: LogGroupArnList;
|
840
849
|
/**
|
@@ -882,7 +891,7 @@ declare namespace CloudWatchLogs {
|
|
882
891
|
*/
|
883
892
|
tags?: Tags;
|
884
893
|
/**
|
885
|
-
* Use this parameter to specify the log group class for this log group. There are two classes: The Standard log class supports all CloudWatch Logs features. The Infrequent Access log class supports a subset of CloudWatch Logs features and incurs lower costs. If you omit this parameter, the default of STANDARD is used. For details about the features supported by each class, see Log classes
|
894
|
+
* Use this parameter to specify the log group class for this log group. There are two classes: The Standard log class supports all CloudWatch Logs features. The Infrequent Access log class supports a subset of CloudWatch Logs features and incurs lower costs. If you omit this parameter, the default of STANDARD is used. After a log group is created, its class can't be changed. For details about the features supported by each class, see Log classes
|
886
895
|
*/
|
887
896
|
logGroupClass?: LogGroupClass;
|
888
897
|
}
|
@@ -1848,6 +1857,7 @@ declare namespace CloudWatchLogs {
|
|
1848
1857
|
export type InputLogStreamNames = LogStreamName[];
|
1849
1858
|
export type Integer = number;
|
1850
1859
|
export type Interleaved = boolean;
|
1860
|
+
export type IsSampled = boolean;
|
1851
1861
|
export type KmsKeyId = string;
|
1852
1862
|
export type ListAnomaliesLimit = number;
|
1853
1863
|
export interface ListAnomaliesRequest {
|
@@ -1915,6 +1925,71 @@ declare namespace CloudWatchLogs {
|
|
1915
1925
|
*/
|
1916
1926
|
tags?: Tags;
|
1917
1927
|
}
|
1928
|
+
export interface LiveTailSessionLogEvent {
|
1929
|
+
/**
|
1930
|
+
* The name of the log stream that ingested this log event.
|
1931
|
+
*/
|
1932
|
+
logStreamName?: LogStreamName;
|
1933
|
+
/**
|
1934
|
+
* The name or ARN of the log group that ingested this log event.
|
1935
|
+
*/
|
1936
|
+
logGroupIdentifier?: LogGroupIdentifier;
|
1937
|
+
/**
|
1938
|
+
* The log event message text.
|
1939
|
+
*/
|
1940
|
+
message?: EventMessage;
|
1941
|
+
/**
|
1942
|
+
* The timestamp specifying when this log event was created.
|
1943
|
+
*/
|
1944
|
+
timestamp?: Timestamp;
|
1945
|
+
/**
|
1946
|
+
* The timestamp specifying when this log event was ingested into the log group.
|
1947
|
+
*/
|
1948
|
+
ingestionTime?: Timestamp;
|
1949
|
+
}
|
1950
|
+
export interface LiveTailSessionMetadata {
|
1951
|
+
/**
|
1952
|
+
* If this is true, then more than 500 log events matched the request for this update, and the sessionResults includes a sample of 500 of those events. If this is false, then 500 or fewer log events matched the request for this update, so no sampling was necessary. In this case, the sessionResults array includes all log events that matched your request during this time.
|
1953
|
+
*/
|
1954
|
+
sampled?: IsSampled;
|
1955
|
+
}
|
1956
|
+
export type LiveTailSessionResults = LiveTailSessionLogEvent[];
|
1957
|
+
export interface LiveTailSessionStart {
|
1958
|
+
/**
|
1959
|
+
* The unique ID generated by CloudWatch Logs to identify this Live Tail session request.
|
1960
|
+
*/
|
1961
|
+
requestId?: RequestId;
|
1962
|
+
/**
|
1963
|
+
* The unique ID generated by CloudWatch Logs to identify this Live Tail session.
|
1964
|
+
*/
|
1965
|
+
sessionId?: SessionId;
|
1966
|
+
/**
|
1967
|
+
* An array of the names and ARNs of the log groups included in this Live Tail session.
|
1968
|
+
*/
|
1969
|
+
logGroupIdentifiers?: StartLiveTailLogGroupIdentifiers;
|
1970
|
+
/**
|
1971
|
+
* If your StartLiveTail operation request included a logStreamNames parameter that filtered the session to only include certain log streams, these streams are listed here.
|
1972
|
+
*/
|
1973
|
+
logStreamNames?: InputLogStreamNames;
|
1974
|
+
/**
|
1975
|
+
* If your StartLiveTail operation request included a logStreamNamePrefixes parameter that filtered the session to only include log streams that have names that start with certain prefixes, these prefixes are listed here.
|
1976
|
+
*/
|
1977
|
+
logStreamNamePrefixes?: InputLogStreamNames;
|
1978
|
+
/**
|
1979
|
+
* An optional pattern to filter the results to include only log events that match the pattern. For example, a filter pattern of error 404 displays only log events that include both error and 404. For more information about filter pattern syntax, see Filter and Pattern Syntax.
|
1980
|
+
*/
|
1981
|
+
logEventFilterPattern?: FilterPattern;
|
1982
|
+
}
|
1983
|
+
export interface LiveTailSessionUpdate {
|
1984
|
+
/**
|
1985
|
+
* This object contains the session metadata for a Live Tail session.
|
1986
|
+
*/
|
1987
|
+
sessionMetadata?: LiveTailSessionMetadata;
|
1988
|
+
/**
|
1989
|
+
* An array, where each member of the array includes the information for one log event in the Live Tail session. A sessionResults array can include as many as 500 log events. If the number of log events matching the request exceeds 500 per second, the log events are sampled down to 500 log events to be included in each sessionUpdate structure.
|
1990
|
+
*/
|
1991
|
+
sessionResults?: LiveTailSessionResults;
|
1992
|
+
}
|
1918
1993
|
export type LogEvent = string;
|
1919
1994
|
export type LogEventIndex = number;
|
1920
1995
|
export interface LogGroup {
|
@@ -2017,6 +2092,7 @@ declare namespace CloudWatchLogs {
|
|
2017
2092
|
export type LogStreamSearchedCompletely = boolean;
|
2018
2093
|
export type LogStreams = LogStream[];
|
2019
2094
|
export type LogType = string;
|
2095
|
+
export type Message = string;
|
2020
2096
|
export interface MetricFilter {
|
2021
2097
|
/**
|
2022
2098
|
* The name of the metric filter.
|
@@ -2487,6 +2563,7 @@ declare namespace CloudWatchLogs {
|
|
2487
2563
|
*/
|
2488
2564
|
expiredLogEventEndIndex?: LogEventIndex;
|
2489
2565
|
}
|
2566
|
+
export type RequestId = string;
|
2490
2567
|
export type ResourceArns = Arn[];
|
2491
2568
|
export type ResourceIdentifier = string;
|
2492
2569
|
export type ResourcePolicies = ResourcePolicy[];
|
@@ -2530,8 +2607,41 @@ declare namespace CloudWatchLogs {
|
|
2530
2607
|
export type SearchedLogStreams = SearchedLogStream[];
|
2531
2608
|
export type SequenceToken = string;
|
2532
2609
|
export type Service = string;
|
2610
|
+
export type SessionId = string;
|
2611
|
+
export interface SessionStreamingException {
|
2612
|
+
message?: Message;
|
2613
|
+
}
|
2614
|
+
export interface SessionTimeoutException {
|
2615
|
+
message?: Message;
|
2616
|
+
}
|
2533
2617
|
export type StandardUnit = "Seconds"|"Microseconds"|"Milliseconds"|"Bytes"|"Kilobytes"|"Megabytes"|"Gigabytes"|"Terabytes"|"Bits"|"Kilobits"|"Megabits"|"Gigabits"|"Terabits"|"Percent"|"Count"|"Bytes/Second"|"Kilobytes/Second"|"Megabytes/Second"|"Gigabytes/Second"|"Terabytes/Second"|"Bits/Second"|"Kilobits/Second"|"Megabits/Second"|"Gigabits/Second"|"Terabits/Second"|"Count/Second"|"None"|string;
|
2534
2618
|
export type StartFromHead = boolean;
|
2619
|
+
export type StartLiveTailLogGroupIdentifiers = LogGroupIdentifier[];
|
2620
|
+
export interface StartLiveTailRequest {
|
2621
|
+
/**
|
2622
|
+
* An array where each item in the array is a log group to include in the Live Tail session. Specify each log group by its ARN. If you specify an ARN, the ARN can't end with an asterisk (*). You can include up to 10 log groups.
|
2623
|
+
*/
|
2624
|
+
logGroupIdentifiers: StartLiveTailLogGroupIdentifiers;
|
2625
|
+
/**
|
2626
|
+
* If you specify this parameter, then only log events in the log streams that you specify here are included in the Live Tail session. You can specify this parameter only if you specify only one log group in logGroupIdentifiers.
|
2627
|
+
*/
|
2628
|
+
logStreamNames?: InputLogStreamNames;
|
2629
|
+
/**
|
2630
|
+
* If you specify this parameter, then only log events in the log streams that have names that start with the prefixes that you specify here are included in the Live Tail session. You can specify this parameter only if you specify only one log group in logGroupIdentifiers.
|
2631
|
+
*/
|
2632
|
+
logStreamNamePrefixes?: InputLogStreamNames;
|
2633
|
+
/**
|
2634
|
+
* An optional pattern to use to filter the results to include only log events that match the pattern. For example, a filter pattern of error 404 causes only log events that include both error and 404 to be included in the Live Tail stream. Regular expression filter patterns are supported. For more information about filter pattern syntax, see Filter and Pattern Syntax.
|
2635
|
+
*/
|
2636
|
+
logEventFilterPattern?: FilterPattern;
|
2637
|
+
}
|
2638
|
+
export interface StartLiveTailResponse {
|
2639
|
+
/**
|
2640
|
+
* An object that includes the stream returned by your request. It can include both log events and exceptions.
|
2641
|
+
*/
|
2642
|
+
responseStream?: StartLiveTailResponseStream;
|
2643
|
+
}
|
2644
|
+
export type StartLiveTailResponseStream = EventStream<{sessionStart?:LiveTailSessionStart,sessionUpdate?:LiveTailSessionUpdate,SessionTimeoutException?:SessionTimeoutException,SessionStreamingException?:SessionStreamingException}>;
|
2535
2645
|
export interface StartQueryRequest {
|
2536
2646
|
/**
|
2537
2647
|
* The log group on which to perform the query. A StartQuery operation must include exactly one of the following parameters: logGroupName, logGroupNames, or logGroupIdentifiers.
|
@@ -423,6 +423,7 @@ declare namespace Drs {
|
|
423
423
|
export type AccountID = string;
|
424
424
|
export type AccountIDs = AccountID[];
|
425
425
|
export type Accounts = Account[];
|
426
|
+
export type AgentVersion = string;
|
426
427
|
export interface AssociateSourceNetworkStackRequest {
|
427
428
|
/**
|
428
429
|
* CloudFormation template to associate with a Source Network.
|
@@ -1693,6 +1694,10 @@ declare namespace Drs {
|
|
1693
1694
|
type?: LaunchActionType;
|
1694
1695
|
}
|
1695
1696
|
export interface RecoveryInstance {
|
1697
|
+
/**
|
1698
|
+
* The version of the DRS agent installed on the recovery instance
|
1699
|
+
*/
|
1700
|
+
agentVersion?: AgentVersion;
|
1696
1701
|
/**
|
1697
1702
|
* The ARN of the Recovery Instance.
|
1698
1703
|
*/
|
@@ -2284,6 +2289,10 @@ declare namespace Drs {
|
|
2284
2289
|
supportsNitroInstances?: Boolean;
|
2285
2290
|
}
|
2286
2291
|
export interface SourceServer {
|
2292
|
+
/**
|
2293
|
+
* The version of the DRS agent installed on the source server
|
2294
|
+
*/
|
2295
|
+
agentVersion?: AgentVersion;
|
2287
2296
|
/**
|
2288
2297
|
* The ARN of the Source Server.
|
2289
2298
|
*/
|