@aws-sdk/client-cloudwatch-logs 3.470.0 → 3.473.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 +8 -0
- package/dist-cjs/CloudWatchLogs.js +2 -0
- package/dist-cjs/CloudWatchLogsClient.js +5 -3
- package/dist-cjs/commands/StartLiveTailCommand.js +55 -0
- package/dist-cjs/commands/index.js +1 -0
- package/dist-cjs/models/models_0.js +59 -1
- package/dist-cjs/protocols/Aws_json1_1.js +128 -2
- package/dist-cjs/runtimeConfig.browser.js +2 -0
- package/dist-cjs/runtimeConfig.js +2 -0
- package/dist-es/CloudWatchLogs.js +2 -0
- package/dist-es/CloudWatchLogsClient.js +5 -3
- package/dist-es/commands/StartLiveTailCommand.js +51 -0
- package/dist-es/commands/index.js +1 -0
- package/dist-es/models/models_0.js +54 -0
- package/dist-es/protocols/Aws_json1_1.js +126 -2
- package/dist-es/runtimeConfig.browser.js +2 -0
- package/dist-es/runtimeConfig.js +2 -0
- package/dist-types/CloudWatchLogs.d.ts +7 -0
- package/dist-types/CloudWatchLogsClient.d.ts +11 -5
- package/dist-types/commands/CreateDeliveryCommand.d.ts +1 -1
- package/dist-types/commands/DescribeQueryDefinitionsCommand.d.ts +2 -1
- package/dist-types/commands/PutDeliveryDestinationCommand.d.ts +1 -1
- package/dist-types/commands/PutDeliverySourceCommand.d.ts +1 -1
- package/dist-types/commands/StartLiveTailCommand.d.ts +169 -0
- package/dist-types/commands/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +278 -4
- package/dist-types/protocols/Aws_json1_1.d.ts +10 -1
- package/dist-types/runtimeConfig.browser.d.ts +1 -0
- package/dist-types/runtimeConfig.d.ts +1 -0
- package/dist-types/runtimeConfig.native.d.ts +1 -0
- package/dist-types/ts3.4/CloudWatchLogs.d.ts +17 -0
- package/dist-types/ts3.4/CloudWatchLogsClient.d.ts +14 -0
- package/dist-types/ts3.4/commands/StartLiveTailCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +105 -0
- package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +16 -1
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +1 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -0
- package/package.json +5 -2
package/README.md
CHANGED
|
@@ -748,6 +748,14 @@ PutSubscriptionFilter
|
|
|
748
748
|
|
|
749
749
|
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/cloudwatch-logs/command/PutSubscriptionFilterCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-cloudwatch-logs/Interface/PutSubscriptionFilterCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-cloudwatch-logs/Interface/PutSubscriptionFilterCommandOutput/)
|
|
750
750
|
|
|
751
|
+
</details>
|
|
752
|
+
<details>
|
|
753
|
+
<summary>
|
|
754
|
+
StartLiveTail
|
|
755
|
+
</summary>
|
|
756
|
+
|
|
757
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/cloudwatch-logs/command/StartLiveTailCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-cloudwatch-logs/Interface/StartLiveTailCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-cloudwatch-logs/Interface/StartLiveTailCommandOutput/)
|
|
758
|
+
|
|
751
759
|
</details>
|
|
752
760
|
<details>
|
|
753
761
|
<summary>
|
|
@@ -67,6 +67,7 @@ const PutQueryDefinitionCommand_1 = require("./commands/PutQueryDefinitionComman
|
|
|
67
67
|
const PutResourcePolicyCommand_1 = require("./commands/PutResourcePolicyCommand");
|
|
68
68
|
const PutRetentionPolicyCommand_1 = require("./commands/PutRetentionPolicyCommand");
|
|
69
69
|
const PutSubscriptionFilterCommand_1 = require("./commands/PutSubscriptionFilterCommand");
|
|
70
|
+
const StartLiveTailCommand_1 = require("./commands/StartLiveTailCommand");
|
|
70
71
|
const StartQueryCommand_1 = require("./commands/StartQueryCommand");
|
|
71
72
|
const StopQueryCommand_1 = require("./commands/StopQueryCommand");
|
|
72
73
|
const TagLogGroupCommand_1 = require("./commands/TagLogGroupCommand");
|
|
@@ -141,6 +142,7 @@ const commands = {
|
|
|
141
142
|
PutResourcePolicyCommand: PutResourcePolicyCommand_1.PutResourcePolicyCommand,
|
|
142
143
|
PutRetentionPolicyCommand: PutRetentionPolicyCommand_1.PutRetentionPolicyCommand,
|
|
143
144
|
PutSubscriptionFilterCommand: PutSubscriptionFilterCommand_1.PutSubscriptionFilterCommand,
|
|
145
|
+
StartLiveTailCommand: StartLiveTailCommand_1.StartLiveTailCommand,
|
|
144
146
|
StartQueryCommand: StartQueryCommand_1.StartQueryCommand,
|
|
145
147
|
StopQueryCommand: StopQueryCommand_1.StopQueryCommand,
|
|
146
148
|
TagLogGroupCommand: TagLogGroupCommand_1.TagLogGroupCommand,
|
|
@@ -7,6 +7,7 @@ const middleware_recursion_detection_1 = require("@aws-sdk/middleware-recursion-
|
|
|
7
7
|
const middleware_signing_1 = require("@aws-sdk/middleware-signing");
|
|
8
8
|
const middleware_user_agent_1 = require("@aws-sdk/middleware-user-agent");
|
|
9
9
|
const config_resolver_1 = require("@smithy/config-resolver");
|
|
10
|
+
const eventstream_serde_config_resolver_1 = require("@smithy/eventstream-serde-config-resolver");
|
|
10
11
|
const middleware_content_length_1 = require("@smithy/middleware-content-length");
|
|
11
12
|
const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
|
|
12
13
|
const middleware_retry_1 = require("@smithy/middleware-retry");
|
|
@@ -25,9 +26,10 @@ class CloudWatchLogsClient extends smithy_client_1.Client {
|
|
|
25
26
|
const _config_5 = (0, middleware_host_header_1.resolveHostHeaderConfig)(_config_4);
|
|
26
27
|
const _config_6 = (0, middleware_signing_1.resolveAwsAuthConfig)(_config_5);
|
|
27
28
|
const _config_7 = (0, middleware_user_agent_1.resolveUserAgentConfig)(_config_6);
|
|
28
|
-
const _config_8 = (0,
|
|
29
|
-
|
|
30
|
-
|
|
29
|
+
const _config_8 = (0, eventstream_serde_config_resolver_1.resolveEventStreamSerdeConfig)(_config_7);
|
|
30
|
+
const _config_9 = (0, runtimeExtensions_1.resolveRuntimeExtensions)(_config_8, configuration?.extensions || []);
|
|
31
|
+
super(_config_9);
|
|
32
|
+
this.config = _config_9;
|
|
31
33
|
this.middlewareStack.use((0, middleware_retry_1.getRetryPlugin)(this.config));
|
|
32
34
|
this.middlewareStack.use((0, middleware_content_length_1.getContentLengthPlugin)(this.config));
|
|
33
35
|
this.middlewareStack.use((0, middleware_host_header_1.getHostHeaderPlugin)(this.config));
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.StartLiveTailCommand = exports.$Command = void 0;
|
|
4
|
+
const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
|
|
5
|
+
const middleware_serde_1 = require("@smithy/middleware-serde");
|
|
6
|
+
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
|
+
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
|
|
8
|
+
const types_1 = require("@smithy/types");
|
|
9
|
+
const models_0_1 = require("../models/models_0");
|
|
10
|
+
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
11
|
+
class StartLiveTailCommand extends smithy_client_1.Command {
|
|
12
|
+
static getEndpointParameterInstructions() {
|
|
13
|
+
return {
|
|
14
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
15
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
16
|
+
Region: { type: "builtInParams", name: "region" },
|
|
17
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
constructor(input) {
|
|
21
|
+
super();
|
|
22
|
+
this.input = input;
|
|
23
|
+
}
|
|
24
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
25
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
26
|
+
this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, StartLiveTailCommand.getEndpointParameterInstructions()));
|
|
27
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
28
|
+
const { logger } = configuration;
|
|
29
|
+
const clientName = "CloudWatchLogsClient";
|
|
30
|
+
const commandName = "StartLiveTailCommand";
|
|
31
|
+
const handlerExecutionContext = {
|
|
32
|
+
logger,
|
|
33
|
+
clientName,
|
|
34
|
+
commandName,
|
|
35
|
+
inputFilterSensitiveLog: (_) => _,
|
|
36
|
+
outputFilterSensitiveLog: models_0_1.StartLiveTailResponseFilterSensitiveLog,
|
|
37
|
+
[types_1.SMITHY_CONTEXT_KEY]: {
|
|
38
|
+
service: "Logs_20140328",
|
|
39
|
+
operation: "StartLiveTail",
|
|
40
|
+
eventStream: {
|
|
41
|
+
output: true,
|
|
42
|
+
},
|
|
43
|
+
},
|
|
44
|
+
};
|
|
45
|
+
const { requestHandler } = configuration;
|
|
46
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
47
|
+
}
|
|
48
|
+
serialize(input, context) {
|
|
49
|
+
return (0, Aws_json1_1_1.se_StartLiveTailCommand)(input, context);
|
|
50
|
+
}
|
|
51
|
+
deserialize(output, context) {
|
|
52
|
+
return (0, Aws_json1_1_1.de_StartLiveTailCommand)(output, context);
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
exports.StartLiveTailCommand = StartLiveTailCommand;
|
|
@@ -65,6 +65,7 @@ tslib_1.__exportStar(require("./PutQueryDefinitionCommand"), exports);
|
|
|
65
65
|
tslib_1.__exportStar(require("./PutResourcePolicyCommand"), exports);
|
|
66
66
|
tslib_1.__exportStar(require("./PutRetentionPolicyCommand"), exports);
|
|
67
67
|
tslib_1.__exportStar(require("./PutSubscriptionFilterCommand"), exports);
|
|
68
|
+
tslib_1.__exportStar(require("./StartLiveTailCommand"), exports);
|
|
68
69
|
tslib_1.__exportStar(require("./StartQueryCommand"), exports);
|
|
69
70
|
tslib_1.__exportStar(require("./StopQueryCommand"), exports);
|
|
70
71
|
tslib_1.__exportStar(require("./TagLogGroupCommand"), exports);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.SuppressionType = exports.SuppressionUnit = exports.TooManyTagsException = exports.MalformedQueryException = exports.UnrecognizedClientException = exports.SuppressionState = exports.InvalidSequenceTokenException = exports.Distribution = exports.QueryStatus = exports.StandardUnit = exports.OrderBy = exports.InheritedProperty = exports.ExportTaskStatusCode = exports.OutputFormat = exports.DataProtectionStatus = exports.DataAlreadyAcceptedException = exports.LogGroupClass = exports.ResourceAlreadyExistsException = exports.LimitExceededException = exports.ValidationException = exports.ThrottlingException = exports.ServiceQuotaExceededException = exports.DeliveryDestinationType = exports.ConflictException = exports.InvalidOperationException = exports.ServiceUnavailableException = exports.ResourceNotFoundException = exports.OperationAbortedException = exports.InvalidParameterException = exports.EvaluationFrequency = exports.AnomalyDetectorStatus = exports.State = exports.Scope = exports.PolicyType = exports.AccessDeniedException = void 0;
|
|
3
|
+
exports.StartLiveTailResponseFilterSensitiveLog = exports.StartLiveTailResponseStreamFilterSensitiveLog = exports.SuppressionType = exports.SuppressionUnit = exports.TooManyTagsException = exports.MalformedQueryException = exports.StartLiveTailResponseStream = exports.SessionTimeoutException = exports.SessionStreamingException = exports.UnrecognizedClientException = exports.SuppressionState = exports.InvalidSequenceTokenException = exports.Distribution = exports.QueryStatus = exports.StandardUnit = exports.OrderBy = exports.InheritedProperty = exports.ExportTaskStatusCode = exports.OutputFormat = exports.DataProtectionStatus = exports.DataAlreadyAcceptedException = exports.LogGroupClass = exports.ResourceAlreadyExistsException = exports.LimitExceededException = exports.ValidationException = exports.ThrottlingException = exports.ServiceQuotaExceededException = exports.DeliveryDestinationType = exports.ConflictException = exports.InvalidOperationException = exports.ServiceUnavailableException = exports.ResourceNotFoundException = exports.OperationAbortedException = exports.InvalidParameterException = exports.EvaluationFrequency = exports.AnomalyDetectorStatus = exports.State = exports.Scope = exports.PolicyType = exports.AccessDeniedException = void 0;
|
|
4
4
|
const CloudWatchLogsServiceException_1 = require("./CloudWatchLogsServiceException");
|
|
5
5
|
class AccessDeniedException extends CloudWatchLogsServiceException_1.CloudWatchLogsServiceException {
|
|
6
6
|
constructor(opts) {
|
|
@@ -309,6 +309,46 @@ class UnrecognizedClientException extends CloudWatchLogsServiceException_1.Cloud
|
|
|
309
309
|
}
|
|
310
310
|
}
|
|
311
311
|
exports.UnrecognizedClientException = UnrecognizedClientException;
|
|
312
|
+
class SessionStreamingException extends CloudWatchLogsServiceException_1.CloudWatchLogsServiceException {
|
|
313
|
+
constructor(opts) {
|
|
314
|
+
super({
|
|
315
|
+
name: "SessionStreamingException",
|
|
316
|
+
$fault: "client",
|
|
317
|
+
...opts,
|
|
318
|
+
});
|
|
319
|
+
this.name = "SessionStreamingException";
|
|
320
|
+
this.$fault = "client";
|
|
321
|
+
Object.setPrototypeOf(this, SessionStreamingException.prototype);
|
|
322
|
+
}
|
|
323
|
+
}
|
|
324
|
+
exports.SessionStreamingException = SessionStreamingException;
|
|
325
|
+
class SessionTimeoutException extends CloudWatchLogsServiceException_1.CloudWatchLogsServiceException {
|
|
326
|
+
constructor(opts) {
|
|
327
|
+
super({
|
|
328
|
+
name: "SessionTimeoutException",
|
|
329
|
+
$fault: "client",
|
|
330
|
+
...opts,
|
|
331
|
+
});
|
|
332
|
+
this.name = "SessionTimeoutException";
|
|
333
|
+
this.$fault = "client";
|
|
334
|
+
Object.setPrototypeOf(this, SessionTimeoutException.prototype);
|
|
335
|
+
}
|
|
336
|
+
}
|
|
337
|
+
exports.SessionTimeoutException = SessionTimeoutException;
|
|
338
|
+
var StartLiveTailResponseStream;
|
|
339
|
+
(function (StartLiveTailResponseStream) {
|
|
340
|
+
StartLiveTailResponseStream.visit = (value, visitor) => {
|
|
341
|
+
if (value.sessionStart !== undefined)
|
|
342
|
+
return visitor.sessionStart(value.sessionStart);
|
|
343
|
+
if (value.sessionUpdate !== undefined)
|
|
344
|
+
return visitor.sessionUpdate(value.sessionUpdate);
|
|
345
|
+
if (value.SessionTimeoutException !== undefined)
|
|
346
|
+
return visitor.SessionTimeoutException(value.SessionTimeoutException);
|
|
347
|
+
if (value.SessionStreamingException !== undefined)
|
|
348
|
+
return visitor.SessionStreamingException(value.SessionStreamingException);
|
|
349
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
350
|
+
};
|
|
351
|
+
})(StartLiveTailResponseStream = exports.StartLiveTailResponseStream || (exports.StartLiveTailResponseStream = {}));
|
|
312
352
|
class MalformedQueryException extends CloudWatchLogsServiceException_1.CloudWatchLogsServiceException {
|
|
313
353
|
constructor(opts) {
|
|
314
354
|
super({
|
|
@@ -346,3 +386,21 @@ exports.SuppressionType = {
|
|
|
346
386
|
INFINITE: "INFINITE",
|
|
347
387
|
LIMITED: "LIMITED",
|
|
348
388
|
};
|
|
389
|
+
const StartLiveTailResponseStreamFilterSensitiveLog = (obj) => {
|
|
390
|
+
if (obj.sessionStart !== undefined)
|
|
391
|
+
return { sessionStart: obj.sessionStart };
|
|
392
|
+
if (obj.sessionUpdate !== undefined)
|
|
393
|
+
return { sessionUpdate: obj.sessionUpdate };
|
|
394
|
+
if (obj.SessionTimeoutException !== undefined)
|
|
395
|
+
return { SessionTimeoutException: obj.SessionTimeoutException };
|
|
396
|
+
if (obj.SessionStreamingException !== undefined)
|
|
397
|
+
return { SessionStreamingException: obj.SessionStreamingException };
|
|
398
|
+
if (obj.$unknown !== undefined)
|
|
399
|
+
return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
400
|
+
};
|
|
401
|
+
exports.StartLiveTailResponseStreamFilterSensitiveLog = StartLiveTailResponseStreamFilterSensitiveLog;
|
|
402
|
+
const StartLiveTailResponseFilterSensitiveLog = (obj) => ({
|
|
403
|
+
...obj,
|
|
404
|
+
...(obj.responseStream && { responseStream: "STREAMING_CONTENT" }),
|
|
405
|
+
});
|
|
406
|
+
exports.StartLiveTailResponseFilterSensitiveLog = StartLiveTailResponseFilterSensitiveLog;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.se_ListTagsForResourceCommand = exports.se_ListLogAnomalyDetectorsCommand = exports.se_ListAnomaliesCommand = exports.se_GetQueryResultsCommand = exports.se_GetLogRecordCommand = exports.se_GetLogGroupFieldsCommand = exports.se_GetLogEventsCommand = exports.se_GetLogAnomalyDetectorCommand = exports.se_GetDeliverySourceCommand = exports.se_GetDeliveryDestinationPolicyCommand = exports.se_GetDeliveryDestinationCommand = exports.se_GetDeliveryCommand = exports.se_GetDataProtectionPolicyCommand = exports.se_FilterLogEventsCommand = exports.se_DisassociateKmsKeyCommand = exports.se_DescribeSubscriptionFiltersCommand = exports.se_DescribeResourcePoliciesCommand = exports.se_DescribeQueryDefinitionsCommand = exports.se_DescribeQueriesCommand = exports.se_DescribeMetricFiltersCommand = exports.se_DescribeLogStreamsCommand = exports.se_DescribeLogGroupsCommand = exports.se_DescribeExportTasksCommand = exports.se_DescribeDestinationsCommand = exports.se_DescribeDeliverySourcesCommand = exports.se_DescribeDeliveryDestinationsCommand = exports.se_DescribeDeliveriesCommand = exports.se_DescribeAccountPoliciesCommand = exports.se_DeleteSubscriptionFilterCommand = exports.se_DeleteRetentionPolicyCommand = exports.se_DeleteResourcePolicyCommand = exports.se_DeleteQueryDefinitionCommand = exports.se_DeleteMetricFilterCommand = exports.se_DeleteLogStreamCommand = exports.se_DeleteLogGroupCommand = exports.se_DeleteLogAnomalyDetectorCommand = exports.se_DeleteDestinationCommand = exports.se_DeleteDeliverySourceCommand = exports.se_DeleteDeliveryDestinationPolicyCommand = exports.se_DeleteDeliveryDestinationCommand = exports.se_DeleteDeliveryCommand = exports.se_DeleteDataProtectionPolicyCommand = exports.se_DeleteAccountPolicyCommand = exports.se_CreateLogStreamCommand = exports.se_CreateLogGroupCommand = exports.se_CreateLogAnomalyDetectorCommand = exports.se_CreateExportTaskCommand = exports.se_CreateDeliveryCommand = exports.se_CancelExportTaskCommand = exports.se_AssociateKmsKeyCommand = void 0;
|
|
4
|
-
exports.
|
|
5
|
-
exports.de_UpdateLogAnomalyDetectorCommand = exports.de_UpdateAnomalyCommand = exports.de_UntagResourceCommand = exports.de_UntagLogGroupCommand = exports.de_TestMetricFilterCommand = exports.de_TagResourceCommand = exports.de_TagLogGroupCommand = exports.de_StopQueryCommand = exports.de_StartQueryCommand = exports.de_PutSubscriptionFilterCommand = exports.de_PutRetentionPolicyCommand = exports.de_PutResourcePolicyCommand = exports.de_PutQueryDefinitionCommand = exports.de_PutMetricFilterCommand = exports.de_PutLogEventsCommand = exports.de_PutDestinationPolicyCommand = exports.de_PutDestinationCommand = exports.de_PutDeliverySourceCommand = exports.de_PutDeliveryDestinationPolicyCommand = exports.de_PutDeliveryDestinationCommand = exports.de_PutDataProtectionPolicyCommand = exports.de_PutAccountPolicyCommand = exports.de_ListTagsLogGroupCommand = exports.de_ListTagsForResourceCommand = exports.de_ListLogAnomalyDetectorsCommand = exports.de_ListAnomaliesCommand = exports.de_GetQueryResultsCommand = exports.de_GetLogRecordCommand = exports.de_GetLogGroupFieldsCommand = exports.de_GetLogEventsCommand = exports.de_GetLogAnomalyDetectorCommand = exports.de_GetDeliverySourceCommand = exports.de_GetDeliveryDestinationPolicyCommand = exports.de_GetDeliveryDestinationCommand = exports.de_GetDeliveryCommand = exports.de_GetDataProtectionPolicyCommand = exports.de_FilterLogEventsCommand = exports.de_DisassociateKmsKeyCommand = exports.de_DescribeSubscriptionFiltersCommand = exports.de_DescribeResourcePoliciesCommand = exports.de_DescribeQueryDefinitionsCommand = exports.de_DescribeQueriesCommand = exports.de_DescribeMetricFiltersCommand = exports.de_DescribeLogStreamsCommand = exports.de_DescribeLogGroupsCommand = exports.de_DescribeExportTasksCommand = void 0;
|
|
4
|
+
exports.de_DescribeDeliverySourcesCommand = exports.de_DescribeDeliveryDestinationsCommand = exports.de_DescribeDeliveriesCommand = exports.de_DescribeAccountPoliciesCommand = exports.de_DeleteSubscriptionFilterCommand = exports.de_DeleteRetentionPolicyCommand = exports.de_DeleteResourcePolicyCommand = exports.de_DeleteQueryDefinitionCommand = exports.de_DeleteMetricFilterCommand = exports.de_DeleteLogStreamCommand = exports.de_DeleteLogGroupCommand = exports.de_DeleteLogAnomalyDetectorCommand = exports.de_DeleteDestinationCommand = exports.de_DeleteDeliverySourceCommand = exports.de_DeleteDeliveryDestinationPolicyCommand = exports.de_DeleteDeliveryDestinationCommand = exports.de_DeleteDeliveryCommand = exports.de_DeleteDataProtectionPolicyCommand = exports.de_DeleteAccountPolicyCommand = exports.de_CreateLogStreamCommand = exports.de_CreateLogGroupCommand = exports.de_CreateLogAnomalyDetectorCommand = exports.de_CreateExportTaskCommand = exports.de_CreateDeliveryCommand = exports.de_CancelExportTaskCommand = exports.de_AssociateKmsKeyCommand = exports.se_UpdateLogAnomalyDetectorCommand = exports.se_UpdateAnomalyCommand = exports.se_UntagResourceCommand = exports.se_UntagLogGroupCommand = exports.se_TestMetricFilterCommand = exports.se_TagResourceCommand = exports.se_TagLogGroupCommand = exports.se_StopQueryCommand = exports.se_StartQueryCommand = exports.se_StartLiveTailCommand = exports.se_PutSubscriptionFilterCommand = exports.se_PutRetentionPolicyCommand = exports.se_PutResourcePolicyCommand = exports.se_PutQueryDefinitionCommand = exports.se_PutMetricFilterCommand = exports.se_PutLogEventsCommand = exports.se_PutDestinationPolicyCommand = exports.se_PutDestinationCommand = exports.se_PutDeliverySourceCommand = exports.se_PutDeliveryDestinationPolicyCommand = exports.se_PutDeliveryDestinationCommand = exports.se_PutDataProtectionPolicyCommand = exports.se_PutAccountPolicyCommand = exports.se_ListTagsLogGroupCommand = void 0;
|
|
5
|
+
exports.de_UpdateLogAnomalyDetectorCommand = exports.de_UpdateAnomalyCommand = exports.de_UntagResourceCommand = exports.de_UntagLogGroupCommand = exports.de_TestMetricFilterCommand = exports.de_TagResourceCommand = exports.de_TagLogGroupCommand = exports.de_StopQueryCommand = exports.de_StartQueryCommand = exports.de_StartLiveTailCommand = exports.de_PutSubscriptionFilterCommand = exports.de_PutRetentionPolicyCommand = exports.de_PutResourcePolicyCommand = exports.de_PutQueryDefinitionCommand = exports.de_PutMetricFilterCommand = exports.de_PutLogEventsCommand = exports.de_PutDestinationPolicyCommand = exports.de_PutDestinationCommand = exports.de_PutDeliverySourceCommand = exports.de_PutDeliveryDestinationPolicyCommand = exports.de_PutDeliveryDestinationCommand = exports.de_PutDataProtectionPolicyCommand = exports.de_PutAccountPolicyCommand = exports.de_ListTagsLogGroupCommand = exports.de_ListTagsForResourceCommand = exports.de_ListLogAnomalyDetectorsCommand = exports.de_ListAnomaliesCommand = exports.de_GetQueryResultsCommand = exports.de_GetLogRecordCommand = exports.de_GetLogGroupFieldsCommand = exports.de_GetLogEventsCommand = exports.de_GetLogAnomalyDetectorCommand = exports.de_GetDeliverySourceCommand = exports.de_GetDeliveryDestinationPolicyCommand = exports.de_GetDeliveryDestinationCommand = exports.de_GetDeliveryCommand = exports.de_GetDataProtectionPolicyCommand = exports.de_FilterLogEventsCommand = exports.de_DisassociateKmsKeyCommand = exports.de_DescribeSubscriptionFiltersCommand = exports.de_DescribeResourcePoliciesCommand = exports.de_DescribeQueryDefinitionsCommand = exports.de_DescribeQueriesCommand = exports.de_DescribeMetricFiltersCommand = exports.de_DescribeLogStreamsCommand = exports.de_DescribeLogGroupsCommand = exports.de_DescribeExportTasksCommand = exports.de_DescribeDestinationsCommand = void 0;
|
|
6
6
|
const protocol_http_1 = require("@smithy/protocol-http");
|
|
7
7
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
8
8
|
const uuid_1 = require("uuid");
|
|
@@ -456,6 +456,20 @@ const se_PutSubscriptionFilterCommand = async (input, context) => {
|
|
|
456
456
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
457
457
|
};
|
|
458
458
|
exports.se_PutSubscriptionFilterCommand = se_PutSubscriptionFilterCommand;
|
|
459
|
+
const se_StartLiveTailCommand = async (input, context) => {
|
|
460
|
+
const headers = sharedHeaders("StartLiveTail");
|
|
461
|
+
let body;
|
|
462
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
463
|
+
let { hostname: resolvedHostname } = await context.endpoint();
|
|
464
|
+
if (context.disableHostPrefix !== true) {
|
|
465
|
+
resolvedHostname = "streaming-" + resolvedHostname;
|
|
466
|
+
if (!(0, protocol_http_1.isValidHostname)(resolvedHostname)) {
|
|
467
|
+
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
468
|
+
}
|
|
469
|
+
}
|
|
470
|
+
return buildHttpRpcRequest(context, headers, "/", resolvedHostname, body);
|
|
471
|
+
};
|
|
472
|
+
exports.se_StartLiveTailCommand = se_StartLiveTailCommand;
|
|
459
473
|
const se_StartQueryCommand = async (input, context) => {
|
|
460
474
|
const headers = sharedHeaders("StartQuery");
|
|
461
475
|
let body;
|
|
@@ -3135,6 +3149,49 @@ const de_PutSubscriptionFilterCommandError = async (output, context) => {
|
|
|
3135
3149
|
});
|
|
3136
3150
|
}
|
|
3137
3151
|
};
|
|
3152
|
+
const de_StartLiveTailCommand = async (output, context) => {
|
|
3153
|
+
if (output.statusCode >= 300) {
|
|
3154
|
+
return de_StartLiveTailCommandError(output, context);
|
|
3155
|
+
}
|
|
3156
|
+
const contents = { responseStream: de_StartLiveTailResponseStream(output.body, context) };
|
|
3157
|
+
const response = {
|
|
3158
|
+
$metadata: deserializeMetadata(output),
|
|
3159
|
+
...contents,
|
|
3160
|
+
};
|
|
3161
|
+
return response;
|
|
3162
|
+
};
|
|
3163
|
+
exports.de_StartLiveTailCommand = de_StartLiveTailCommand;
|
|
3164
|
+
const de_StartLiveTailCommandError = async (output, context) => {
|
|
3165
|
+
const parsedOutput = {
|
|
3166
|
+
...output,
|
|
3167
|
+
body: await parseErrorBody(output.body, context),
|
|
3168
|
+
};
|
|
3169
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3170
|
+
switch (errorCode) {
|
|
3171
|
+
case "AccessDeniedException":
|
|
3172
|
+
case "com.amazonaws.cloudwatchlogs#AccessDeniedException":
|
|
3173
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3174
|
+
case "InvalidOperationException":
|
|
3175
|
+
case "com.amazonaws.cloudwatchlogs#InvalidOperationException":
|
|
3176
|
+
throw await de_InvalidOperationExceptionRes(parsedOutput, context);
|
|
3177
|
+
case "InvalidParameterException":
|
|
3178
|
+
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
3179
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
3180
|
+
case "LimitExceededException":
|
|
3181
|
+
case "com.amazonaws.cloudwatchlogs#LimitExceededException":
|
|
3182
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
3183
|
+
case "ResourceNotFoundException":
|
|
3184
|
+
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
3185
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3186
|
+
default:
|
|
3187
|
+
const parsedBody = parsedOutput.body;
|
|
3188
|
+
return throwDefaultError({
|
|
3189
|
+
output,
|
|
3190
|
+
parsedBody,
|
|
3191
|
+
errorCode,
|
|
3192
|
+
});
|
|
3193
|
+
}
|
|
3194
|
+
};
|
|
3138
3195
|
const de_StartQueryCommand = async (output, context) => {
|
|
3139
3196
|
if (output.statusCode >= 300) {
|
|
3140
3197
|
return de_StartQueryCommandError(output, context);
|
|
@@ -3624,6 +3681,75 @@ const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
|
3624
3681
|
});
|
|
3625
3682
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
3626
3683
|
};
|
|
3684
|
+
const de_StartLiveTailResponseStream = (output, context) => {
|
|
3685
|
+
return context.eventStreamMarshaller.deserialize(output, async (event) => {
|
|
3686
|
+
if (event["sessionStart"] != null) {
|
|
3687
|
+
return {
|
|
3688
|
+
sessionStart: await de_LiveTailSessionStart_event(event["sessionStart"], context),
|
|
3689
|
+
};
|
|
3690
|
+
}
|
|
3691
|
+
if (event["sessionUpdate"] != null) {
|
|
3692
|
+
return {
|
|
3693
|
+
sessionUpdate: await de_LiveTailSessionUpdate_event(event["sessionUpdate"], context),
|
|
3694
|
+
};
|
|
3695
|
+
}
|
|
3696
|
+
if (event["SessionTimeoutException"] != null) {
|
|
3697
|
+
return {
|
|
3698
|
+
SessionTimeoutException: await de_SessionTimeoutException_event(event["SessionTimeoutException"], context),
|
|
3699
|
+
};
|
|
3700
|
+
}
|
|
3701
|
+
if (event["SessionStreamingException"] != null) {
|
|
3702
|
+
return {
|
|
3703
|
+
SessionStreamingException: await de_SessionStreamingException_event(event["SessionStreamingException"], context),
|
|
3704
|
+
};
|
|
3705
|
+
}
|
|
3706
|
+
return { $unknown: output };
|
|
3707
|
+
});
|
|
3708
|
+
};
|
|
3709
|
+
const de_LiveTailSessionStart_event = async (output, context) => {
|
|
3710
|
+
const contents = {};
|
|
3711
|
+
const data = await parseBody(output.body, context);
|
|
3712
|
+
Object.assign(contents, (0, smithy_client_1._json)(data));
|
|
3713
|
+
return contents;
|
|
3714
|
+
};
|
|
3715
|
+
const de_LiveTailSessionUpdate_event = async (output, context) => {
|
|
3716
|
+
const contents = {};
|
|
3717
|
+
const data = await parseBody(output.body, context);
|
|
3718
|
+
Object.assign(contents, (0, smithy_client_1._json)(data));
|
|
3719
|
+
return contents;
|
|
3720
|
+
};
|
|
3721
|
+
const de_SessionStreamingException_event = async (output, context) => {
|
|
3722
|
+
const parsedOutput = {
|
|
3723
|
+
...output,
|
|
3724
|
+
body: await parseBody(output.body, context),
|
|
3725
|
+
};
|
|
3726
|
+
return de_SessionStreamingExceptionRes(parsedOutput, context);
|
|
3727
|
+
};
|
|
3728
|
+
const de_SessionTimeoutException_event = async (output, context) => {
|
|
3729
|
+
const parsedOutput = {
|
|
3730
|
+
...output,
|
|
3731
|
+
body: await parseBody(output.body, context),
|
|
3732
|
+
};
|
|
3733
|
+
return de_SessionTimeoutExceptionRes(parsedOutput, context);
|
|
3734
|
+
};
|
|
3735
|
+
const de_SessionStreamingExceptionRes = async (parsedOutput, context) => {
|
|
3736
|
+
const body = parsedOutput.body;
|
|
3737
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
3738
|
+
const exception = new models_0_1.SessionStreamingException({
|
|
3739
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
3740
|
+
...deserialized,
|
|
3741
|
+
});
|
|
3742
|
+
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
3743
|
+
};
|
|
3744
|
+
const de_SessionTimeoutExceptionRes = async (parsedOutput, context) => {
|
|
3745
|
+
const body = parsedOutput.body;
|
|
3746
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
3747
|
+
const exception = new models_0_1.SessionTimeoutException({
|
|
3748
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
3749
|
+
...deserialized,
|
|
3750
|
+
});
|
|
3751
|
+
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
3752
|
+
};
|
|
3627
3753
|
const se_MetricTransformation = (input, context) => {
|
|
3628
3754
|
return (0, smithy_client_1.take)(input, {
|
|
3629
3755
|
defaultValue: smithy_client_1.serializeFloat,
|
|
@@ -6,6 +6,7 @@ const package_json_1 = tslib_1.__importDefault(require("../package.json"));
|
|
|
6
6
|
const sha256_browser_1 = require("@aws-crypto/sha256-browser");
|
|
7
7
|
const util_user_agent_browser_1 = require("@aws-sdk/util-user-agent-browser");
|
|
8
8
|
const config_resolver_1 = require("@smithy/config-resolver");
|
|
9
|
+
const eventstream_serde_browser_1 = require("@smithy/eventstream-serde-browser");
|
|
9
10
|
const fetch_http_handler_1 = require("@smithy/fetch-http-handler");
|
|
10
11
|
const invalid_dependency_1 = require("@smithy/invalid-dependency");
|
|
11
12
|
const util_body_length_browser_1 = require("@smithy/util-body-length-browser");
|
|
@@ -26,6 +27,7 @@ const getRuntimeConfig = (config) => {
|
|
|
26
27
|
credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_) => () => Promise.reject(new Error("Credential is missing"))),
|
|
27
28
|
defaultUserAgentProvider: config?.defaultUserAgentProvider ??
|
|
28
29
|
(0, util_user_agent_browser_1.defaultUserAgent)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
|
|
30
|
+
eventStreamSerdeProvider: config?.eventStreamSerdeProvider ?? eventstream_serde_browser_1.eventStreamSerdeProvider,
|
|
29
31
|
maxAttempts: config?.maxAttempts ?? util_retry_1.DEFAULT_MAX_ATTEMPTS,
|
|
30
32
|
region: config?.region ?? (0, invalid_dependency_1.invalidProvider)("Region is missing"),
|
|
31
33
|
requestHandler: config?.requestHandler ?? new fetch_http_handler_1.FetchHttpHandler(defaultConfigProvider),
|
|
@@ -8,6 +8,7 @@ const core_1 = require("@aws-sdk/core");
|
|
|
8
8
|
const credential_provider_node_1 = require("@aws-sdk/credential-provider-node");
|
|
9
9
|
const util_user_agent_node_1 = require("@aws-sdk/util-user-agent-node");
|
|
10
10
|
const config_resolver_1 = require("@smithy/config-resolver");
|
|
11
|
+
const eventstream_serde_node_1 = require("@smithy/eventstream-serde-node");
|
|
11
12
|
const hash_node_1 = require("@smithy/hash-node");
|
|
12
13
|
const middleware_retry_1 = require("@smithy/middleware-retry");
|
|
13
14
|
const node_config_provider_1 = require("@smithy/node-config-provider");
|
|
@@ -33,6 +34,7 @@ const getRuntimeConfig = (config) => {
|
|
|
33
34
|
credentialDefaultProvider: config?.credentialDefaultProvider ?? (0, client_sts_1.decorateDefaultCredentialProvider)(credential_provider_node_1.defaultProvider),
|
|
34
35
|
defaultUserAgentProvider: config?.defaultUserAgentProvider ??
|
|
35
36
|
(0, util_user_agent_node_1.defaultUserAgent)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
|
|
37
|
+
eventStreamSerdeProvider: config?.eventStreamSerdeProvider ?? eventstream_serde_node_1.eventStreamSerdeProvider,
|
|
36
38
|
maxAttempts: config?.maxAttempts ?? (0, node_config_provider_1.loadConfig)(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
|
|
37
39
|
region: config?.region ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS),
|
|
38
40
|
requestHandler: config?.requestHandler ?? new node_http_handler_1.NodeHttpHandler(defaultConfigProvider),
|
|
@@ -64,6 +64,7 @@ import { PutQueryDefinitionCommand, } from "./commands/PutQueryDefinitionCommand
|
|
|
64
64
|
import { PutResourcePolicyCommand, } from "./commands/PutResourcePolicyCommand";
|
|
65
65
|
import { PutRetentionPolicyCommand, } from "./commands/PutRetentionPolicyCommand";
|
|
66
66
|
import { PutSubscriptionFilterCommand, } from "./commands/PutSubscriptionFilterCommand";
|
|
67
|
+
import { StartLiveTailCommand, } from "./commands/StartLiveTailCommand";
|
|
67
68
|
import { StartQueryCommand } from "./commands/StartQueryCommand";
|
|
68
69
|
import { StopQueryCommand } from "./commands/StopQueryCommand";
|
|
69
70
|
import { TagLogGroupCommand } from "./commands/TagLogGroupCommand";
|
|
@@ -138,6 +139,7 @@ const commands = {
|
|
|
138
139
|
PutResourcePolicyCommand,
|
|
139
140
|
PutRetentionPolicyCommand,
|
|
140
141
|
PutSubscriptionFilterCommand,
|
|
142
|
+
StartLiveTailCommand,
|
|
141
143
|
StartQueryCommand,
|
|
142
144
|
StopQueryCommand,
|
|
143
145
|
TagLogGroupCommand,
|
|
@@ -4,6 +4,7 @@ import { getRecursionDetectionPlugin } from "@aws-sdk/middleware-recursion-detec
|
|
|
4
4
|
import { getAwsAuthPlugin, resolveAwsAuthConfig, } from "@aws-sdk/middleware-signing";
|
|
5
5
|
import { getUserAgentPlugin, resolveUserAgentConfig, } from "@aws-sdk/middleware-user-agent";
|
|
6
6
|
import { resolveRegionConfig } from "@smithy/config-resolver";
|
|
7
|
+
import { resolveEventStreamSerdeConfig, } from "@smithy/eventstream-serde-config-resolver";
|
|
7
8
|
import { getContentLengthPlugin } from "@smithy/middleware-content-length";
|
|
8
9
|
import { resolveEndpointConfig } from "@smithy/middleware-endpoint";
|
|
9
10
|
import { getRetryPlugin, resolveRetryConfig } from "@smithy/middleware-retry";
|
|
@@ -22,9 +23,10 @@ export class CloudWatchLogsClient extends __Client {
|
|
|
22
23
|
const _config_5 = resolveHostHeaderConfig(_config_4);
|
|
23
24
|
const _config_6 = resolveAwsAuthConfig(_config_5);
|
|
24
25
|
const _config_7 = resolveUserAgentConfig(_config_6);
|
|
25
|
-
const _config_8 =
|
|
26
|
-
|
|
27
|
-
|
|
26
|
+
const _config_8 = resolveEventStreamSerdeConfig(_config_7);
|
|
27
|
+
const _config_9 = resolveRuntimeExtensions(_config_8, configuration?.extensions || []);
|
|
28
|
+
super(_config_9);
|
|
29
|
+
this.config = _config_9;
|
|
28
30
|
this.middlewareStack.use(getRetryPlugin(this.config));
|
|
29
31
|
this.middlewareStack.use(getContentLengthPlugin(this.config));
|
|
30
32
|
this.middlewareStack.use(getHostHeaderPlugin(this.config));
|
|
@@ -0,0 +1,51 @@
|
|
|
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 { SMITHY_CONTEXT_KEY, } from "@smithy/types";
|
|
5
|
+
import { StartLiveTailResponseFilterSensitiveLog, } from "../models/models_0";
|
|
6
|
+
import { de_StartLiveTailCommand, se_StartLiveTailCommand } from "../protocols/Aws_json1_1";
|
|
7
|
+
export { $Command };
|
|
8
|
+
export class StartLiveTailCommand extends $Command {
|
|
9
|
+
static getEndpointParameterInstructions() {
|
|
10
|
+
return {
|
|
11
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
12
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
13
|
+
Region: { type: "builtInParams", name: "region" },
|
|
14
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
constructor(input) {
|
|
18
|
+
super();
|
|
19
|
+
this.input = input;
|
|
20
|
+
}
|
|
21
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
22
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
23
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, StartLiveTailCommand.getEndpointParameterInstructions()));
|
|
24
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
25
|
+
const { logger } = configuration;
|
|
26
|
+
const clientName = "CloudWatchLogsClient";
|
|
27
|
+
const commandName = "StartLiveTailCommand";
|
|
28
|
+
const handlerExecutionContext = {
|
|
29
|
+
logger,
|
|
30
|
+
clientName,
|
|
31
|
+
commandName,
|
|
32
|
+
inputFilterSensitiveLog: (_) => _,
|
|
33
|
+
outputFilterSensitiveLog: StartLiveTailResponseFilterSensitiveLog,
|
|
34
|
+
[SMITHY_CONTEXT_KEY]: {
|
|
35
|
+
service: "Logs_20140328",
|
|
36
|
+
operation: "StartLiveTail",
|
|
37
|
+
eventStream: {
|
|
38
|
+
output: true,
|
|
39
|
+
},
|
|
40
|
+
},
|
|
41
|
+
};
|
|
42
|
+
const { requestHandler } = configuration;
|
|
43
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
44
|
+
}
|
|
45
|
+
serialize(input, context) {
|
|
46
|
+
return se_StartLiveTailCommand(input, context);
|
|
47
|
+
}
|
|
48
|
+
deserialize(output, context) {
|
|
49
|
+
return de_StartLiveTailCommand(output, context);
|
|
50
|
+
}
|
|
51
|
+
}
|
|
@@ -62,6 +62,7 @@ export * from "./PutQueryDefinitionCommand";
|
|
|
62
62
|
export * from "./PutResourcePolicyCommand";
|
|
63
63
|
export * from "./PutRetentionPolicyCommand";
|
|
64
64
|
export * from "./PutSubscriptionFilterCommand";
|
|
65
|
+
export * from "./StartLiveTailCommand";
|
|
65
66
|
export * from "./StartQueryCommand";
|
|
66
67
|
export * from "./StopQueryCommand";
|
|
67
68
|
export * from "./TagLogGroupCommand";
|
|
@@ -291,6 +291,44 @@ export class UnrecognizedClientException extends __BaseException {
|
|
|
291
291
|
Object.setPrototypeOf(this, UnrecognizedClientException.prototype);
|
|
292
292
|
}
|
|
293
293
|
}
|
|
294
|
+
export class SessionStreamingException extends __BaseException {
|
|
295
|
+
constructor(opts) {
|
|
296
|
+
super({
|
|
297
|
+
name: "SessionStreamingException",
|
|
298
|
+
$fault: "client",
|
|
299
|
+
...opts,
|
|
300
|
+
});
|
|
301
|
+
this.name = "SessionStreamingException";
|
|
302
|
+
this.$fault = "client";
|
|
303
|
+
Object.setPrototypeOf(this, SessionStreamingException.prototype);
|
|
304
|
+
}
|
|
305
|
+
}
|
|
306
|
+
export class SessionTimeoutException extends __BaseException {
|
|
307
|
+
constructor(opts) {
|
|
308
|
+
super({
|
|
309
|
+
name: "SessionTimeoutException",
|
|
310
|
+
$fault: "client",
|
|
311
|
+
...opts,
|
|
312
|
+
});
|
|
313
|
+
this.name = "SessionTimeoutException";
|
|
314
|
+
this.$fault = "client";
|
|
315
|
+
Object.setPrototypeOf(this, SessionTimeoutException.prototype);
|
|
316
|
+
}
|
|
317
|
+
}
|
|
318
|
+
export var StartLiveTailResponseStream;
|
|
319
|
+
(function (StartLiveTailResponseStream) {
|
|
320
|
+
StartLiveTailResponseStream.visit = (value, visitor) => {
|
|
321
|
+
if (value.sessionStart !== undefined)
|
|
322
|
+
return visitor.sessionStart(value.sessionStart);
|
|
323
|
+
if (value.sessionUpdate !== undefined)
|
|
324
|
+
return visitor.sessionUpdate(value.sessionUpdate);
|
|
325
|
+
if (value.SessionTimeoutException !== undefined)
|
|
326
|
+
return visitor.SessionTimeoutException(value.SessionTimeoutException);
|
|
327
|
+
if (value.SessionStreamingException !== undefined)
|
|
328
|
+
return visitor.SessionStreamingException(value.SessionStreamingException);
|
|
329
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
330
|
+
};
|
|
331
|
+
})(StartLiveTailResponseStream || (StartLiveTailResponseStream = {}));
|
|
294
332
|
export class MalformedQueryException extends __BaseException {
|
|
295
333
|
constructor(opts) {
|
|
296
334
|
super({
|
|
@@ -326,3 +364,19 @@ export const SuppressionType = {
|
|
|
326
364
|
INFINITE: "INFINITE",
|
|
327
365
|
LIMITED: "LIMITED",
|
|
328
366
|
};
|
|
367
|
+
export const StartLiveTailResponseStreamFilterSensitiveLog = (obj) => {
|
|
368
|
+
if (obj.sessionStart !== undefined)
|
|
369
|
+
return { sessionStart: obj.sessionStart };
|
|
370
|
+
if (obj.sessionUpdate !== undefined)
|
|
371
|
+
return { sessionUpdate: obj.sessionUpdate };
|
|
372
|
+
if (obj.SessionTimeoutException !== undefined)
|
|
373
|
+
return { SessionTimeoutException: obj.SessionTimeoutException };
|
|
374
|
+
if (obj.SessionStreamingException !== undefined)
|
|
375
|
+
return { SessionStreamingException: obj.SessionStreamingException };
|
|
376
|
+
if (obj.$unknown !== undefined)
|
|
377
|
+
return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
378
|
+
};
|
|
379
|
+
export const StartLiveTailResponseFilterSensitiveLog = (obj) => ({
|
|
380
|
+
...obj,
|
|
381
|
+
...(obj.responseStream && { responseStream: "STREAMING_CONTENT" }),
|
|
382
|
+
});
|