@aws-sdk/client-cloudwatch-logs 3.441.0 → 3.448.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.
Files changed (99) hide show
  1. package/README.md +120 -0
  2. package/dist-cjs/CloudWatchLogs.js +30 -0
  3. package/dist-cjs/commands/CreateDeliveryCommand.js +51 -0
  4. package/dist-cjs/commands/DeleteDeliveryCommand.js +51 -0
  5. package/dist-cjs/commands/DeleteDeliveryDestinationCommand.js +51 -0
  6. package/dist-cjs/commands/DeleteDeliveryDestinationPolicyCommand.js +51 -0
  7. package/dist-cjs/commands/DeleteDeliverySourceCommand.js +51 -0
  8. package/dist-cjs/commands/DescribeDeliveriesCommand.js +51 -0
  9. package/dist-cjs/commands/DescribeDeliveryDestinationsCommand.js +51 -0
  10. package/dist-cjs/commands/DescribeDeliverySourcesCommand.js +51 -0
  11. package/dist-cjs/commands/GetDeliveryCommand.js +51 -0
  12. package/dist-cjs/commands/GetDeliveryDestinationCommand.js +51 -0
  13. package/dist-cjs/commands/GetDeliveryDestinationPolicyCommand.js +51 -0
  14. package/dist-cjs/commands/GetDeliverySourceCommand.js +51 -0
  15. package/dist-cjs/commands/PutDeliveryDestinationCommand.js +51 -0
  16. package/dist-cjs/commands/PutDeliveryDestinationPolicyCommand.js +51 -0
  17. package/dist-cjs/commands/PutDeliverySourceCommand.js +51 -0
  18. package/dist-cjs/commands/index.js +15 -0
  19. package/dist-cjs/models/models_0.js +78 -1
  20. package/dist-cjs/pagination/DescribeDeliveriesPaginator.js +29 -0
  21. package/dist-cjs/pagination/DescribeDeliveryDestinationsPaginator.js +29 -0
  22. package/dist-cjs/pagination/DescribeDeliverySourcesPaginator.js +29 -0
  23. package/dist-cjs/pagination/index.js +3 -0
  24. package/dist-cjs/protocols/Aws_json1_1.js +887 -74
  25. package/dist-es/CloudWatchLogs.js +30 -0
  26. package/dist-es/commands/CreateDeliveryCommand.js +47 -0
  27. package/dist-es/commands/DeleteDeliveryCommand.js +47 -0
  28. package/dist-es/commands/DeleteDeliveryDestinationCommand.js +47 -0
  29. package/dist-es/commands/DeleteDeliveryDestinationPolicyCommand.js +47 -0
  30. package/dist-es/commands/DeleteDeliverySourceCommand.js +47 -0
  31. package/dist-es/commands/DescribeDeliveriesCommand.js +47 -0
  32. package/dist-es/commands/DescribeDeliveryDestinationsCommand.js +47 -0
  33. package/dist-es/commands/DescribeDeliverySourcesCommand.js +47 -0
  34. package/dist-es/commands/GetDeliveryCommand.js +47 -0
  35. package/dist-es/commands/GetDeliveryDestinationCommand.js +47 -0
  36. package/dist-es/commands/GetDeliveryDestinationPolicyCommand.js +47 -0
  37. package/dist-es/commands/GetDeliverySourceCommand.js +47 -0
  38. package/dist-es/commands/PutDeliveryDestinationCommand.js +47 -0
  39. package/dist-es/commands/PutDeliveryDestinationPolicyCommand.js +47 -0
  40. package/dist-es/commands/PutDeliverySourceCommand.js +47 -0
  41. package/dist-es/commands/index.js +15 -0
  42. package/dist-es/models/models_0.js +72 -0
  43. package/dist-es/pagination/DescribeDeliveriesPaginator.js +25 -0
  44. package/dist-es/pagination/DescribeDeliveryDestinationsPaginator.js +25 -0
  45. package/dist-es/pagination/DescribeDeliverySourcesPaginator.js +25 -0
  46. package/dist-es/pagination/index.js +3 -0
  47. package/dist-es/protocols/Aws_json1_1.js +854 -71
  48. package/dist-types/CloudWatchLogs.d.ts +105 -0
  49. package/dist-types/CloudWatchLogsClient.d.ts +17 -2
  50. package/dist-types/commands/CreateDeliveryCommand.d.ts +142 -0
  51. package/dist-types/commands/DeleteDeliveryCommand.d.ts +91 -0
  52. package/dist-types/commands/DeleteDeliveryDestinationCommand.d.ts +92 -0
  53. package/dist-types/commands/DeleteDeliveryDestinationPolicyCommand.d.ts +84 -0
  54. package/dist-types/commands/DeleteDeliverySourceCommand.d.ts +92 -0
  55. package/dist-types/commands/DescribeDeliveriesCommand.d.ts +98 -0
  56. package/dist-types/commands/DescribeDeliveryDestinationsCommand.d.ts +100 -0
  57. package/dist-types/commands/DescribeDeliverySourcesCommand.d.ts +100 -0
  58. package/dist-types/commands/GetDeliveryCommand.d.ts +101 -0
  59. package/dist-types/commands/GetDeliveryDestinationCommand.d.ts +99 -0
  60. package/dist-types/commands/GetDeliveryDestinationPolicyCommand.d.ts +86 -0
  61. package/dist-types/commands/GetDeliverySourceCommand.d.ts +99 -0
  62. package/dist-types/commands/GetQueryResultsCommand.d.ts +2 -1
  63. package/dist-types/commands/PutDeliveryDestinationCommand.d.ts +145 -0
  64. package/dist-types/commands/PutDeliveryDestinationPolicyCommand.d.ts +118 -0
  65. package/dist-types/commands/PutDeliverySourceCommand.d.ts +142 -0
  66. package/dist-types/commands/index.d.ts +15 -0
  67. package/dist-types/index.d.ts +2 -0
  68. package/dist-types/models/models_0.d.ts +635 -0
  69. package/dist-types/pagination/DescribeDeliveriesPaginator.d.ts +7 -0
  70. package/dist-types/pagination/DescribeDeliveryDestinationsPaginator.d.ts +7 -0
  71. package/dist-types/pagination/DescribeDeliverySourcesPaginator.d.ts +7 -0
  72. package/dist-types/pagination/index.d.ts +3 -0
  73. package/dist-types/protocols/Aws_json1_1.d.ts +135 -0
  74. package/dist-types/ts3.4/CloudWatchLogs.d.ts +255 -0
  75. package/dist-types/ts3.4/CloudWatchLogsClient.d.ts +90 -0
  76. package/dist-types/ts3.4/commands/CreateDeliveryCommand.d.ts +38 -0
  77. package/dist-types/ts3.4/commands/DeleteDeliveryCommand.d.ts +33 -0
  78. package/dist-types/ts3.4/commands/DeleteDeliveryDestinationCommand.d.ts +38 -0
  79. package/dist-types/ts3.4/commands/DeleteDeliveryDestinationPolicyCommand.d.ts +38 -0
  80. package/dist-types/ts3.4/commands/DeleteDeliverySourceCommand.d.ts +37 -0
  81. package/dist-types/ts3.4/commands/DescribeDeliveriesCommand.d.ts +39 -0
  82. package/dist-types/ts3.4/commands/DescribeDeliveryDestinationsCommand.d.ts +42 -0
  83. package/dist-types/ts3.4/commands/DescribeDeliverySourcesCommand.d.ts +42 -0
  84. package/dist-types/ts3.4/commands/GetDeliveryCommand.d.ts +35 -0
  85. package/dist-types/ts3.4/commands/GetDeliveryDestinationCommand.d.ts +42 -0
  86. package/dist-types/ts3.4/commands/GetDeliveryDestinationPolicyCommand.d.ts +42 -0
  87. package/dist-types/ts3.4/commands/GetDeliverySourceCommand.d.ts +39 -0
  88. package/dist-types/ts3.4/commands/PutDeliveryDestinationCommand.d.ts +42 -0
  89. package/dist-types/ts3.4/commands/PutDeliveryDestinationPolicyCommand.d.ts +42 -0
  90. package/dist-types/ts3.4/commands/PutDeliverySourceCommand.d.ts +39 -0
  91. package/dist-types/ts3.4/commands/index.d.ts +15 -0
  92. package/dist-types/ts3.4/index.d.ts +2 -0
  93. package/dist-types/ts3.4/models/models_0.d.ts +173 -0
  94. package/dist-types/ts3.4/pagination/DescribeDeliveriesPaginator.d.ts +11 -0
  95. package/dist-types/ts3.4/pagination/DescribeDeliveryDestinationsPaginator.d.ts +11 -0
  96. package/dist-types/ts3.4/pagination/DescribeDeliverySourcesPaginator.d.ts +11 -0
  97. package/dist-types/ts3.4/pagination/index.d.ts +3 -0
  98. package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +180 -0
  99. package/package.json +4 -4
@@ -0,0 +1,51 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DescribeDeliverySourcesCommand = 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 Aws_json1_1_1 = require("../protocols/Aws_json1_1");
10
+ class DescribeDeliverySourcesCommand extends smithy_client_1.Command {
11
+ static getEndpointParameterInstructions() {
12
+ return {
13
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
+ Endpoint: { type: "builtInParams", name: "endpoint" },
15
+ Region: { type: "builtInParams", name: "region" },
16
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
+ };
18
+ }
19
+ constructor(input) {
20
+ super();
21
+ this.input = input;
22
+ }
23
+ resolveMiddleware(clientStack, configuration, options) {
24
+ this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
25
+ this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, DescribeDeliverySourcesCommand.getEndpointParameterInstructions()));
26
+ const stack = clientStack.concat(this.middlewareStack);
27
+ const { logger } = configuration;
28
+ const clientName = "CloudWatchLogsClient";
29
+ const commandName = "DescribeDeliverySourcesCommand";
30
+ const handlerExecutionContext = {
31
+ logger,
32
+ clientName,
33
+ commandName,
34
+ inputFilterSensitiveLog: (_) => _,
35
+ outputFilterSensitiveLog: (_) => _,
36
+ [types_1.SMITHY_CONTEXT_KEY]: {
37
+ service: "Logs_20140328",
38
+ operation: "DescribeDeliverySources",
39
+ },
40
+ };
41
+ const { requestHandler } = configuration;
42
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
43
+ }
44
+ serialize(input, context) {
45
+ return (0, Aws_json1_1_1.se_DescribeDeliverySourcesCommand)(input, context);
46
+ }
47
+ deserialize(output, context) {
48
+ return (0, Aws_json1_1_1.de_DescribeDeliverySourcesCommand)(output, context);
49
+ }
50
+ }
51
+ exports.DescribeDeliverySourcesCommand = DescribeDeliverySourcesCommand;
@@ -0,0 +1,51 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GetDeliveryCommand = 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 Aws_json1_1_1 = require("../protocols/Aws_json1_1");
10
+ class GetDeliveryCommand extends smithy_client_1.Command {
11
+ static getEndpointParameterInstructions() {
12
+ return {
13
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
+ Endpoint: { type: "builtInParams", name: "endpoint" },
15
+ Region: { type: "builtInParams", name: "region" },
16
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
+ };
18
+ }
19
+ constructor(input) {
20
+ super();
21
+ this.input = input;
22
+ }
23
+ resolveMiddleware(clientStack, configuration, options) {
24
+ this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
25
+ this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, GetDeliveryCommand.getEndpointParameterInstructions()));
26
+ const stack = clientStack.concat(this.middlewareStack);
27
+ const { logger } = configuration;
28
+ const clientName = "CloudWatchLogsClient";
29
+ const commandName = "GetDeliveryCommand";
30
+ const handlerExecutionContext = {
31
+ logger,
32
+ clientName,
33
+ commandName,
34
+ inputFilterSensitiveLog: (_) => _,
35
+ outputFilterSensitiveLog: (_) => _,
36
+ [types_1.SMITHY_CONTEXT_KEY]: {
37
+ service: "Logs_20140328",
38
+ operation: "GetDelivery",
39
+ },
40
+ };
41
+ const { requestHandler } = configuration;
42
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
43
+ }
44
+ serialize(input, context) {
45
+ return (0, Aws_json1_1_1.se_GetDeliveryCommand)(input, context);
46
+ }
47
+ deserialize(output, context) {
48
+ return (0, Aws_json1_1_1.de_GetDeliveryCommand)(output, context);
49
+ }
50
+ }
51
+ exports.GetDeliveryCommand = GetDeliveryCommand;
@@ -0,0 +1,51 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GetDeliveryDestinationCommand = 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 Aws_json1_1_1 = require("../protocols/Aws_json1_1");
10
+ class GetDeliveryDestinationCommand extends smithy_client_1.Command {
11
+ static getEndpointParameterInstructions() {
12
+ return {
13
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
+ Endpoint: { type: "builtInParams", name: "endpoint" },
15
+ Region: { type: "builtInParams", name: "region" },
16
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
+ };
18
+ }
19
+ constructor(input) {
20
+ super();
21
+ this.input = input;
22
+ }
23
+ resolveMiddleware(clientStack, configuration, options) {
24
+ this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
25
+ this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, GetDeliveryDestinationCommand.getEndpointParameterInstructions()));
26
+ const stack = clientStack.concat(this.middlewareStack);
27
+ const { logger } = configuration;
28
+ const clientName = "CloudWatchLogsClient";
29
+ const commandName = "GetDeliveryDestinationCommand";
30
+ const handlerExecutionContext = {
31
+ logger,
32
+ clientName,
33
+ commandName,
34
+ inputFilterSensitiveLog: (_) => _,
35
+ outputFilterSensitiveLog: (_) => _,
36
+ [types_1.SMITHY_CONTEXT_KEY]: {
37
+ service: "Logs_20140328",
38
+ operation: "GetDeliveryDestination",
39
+ },
40
+ };
41
+ const { requestHandler } = configuration;
42
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
43
+ }
44
+ serialize(input, context) {
45
+ return (0, Aws_json1_1_1.se_GetDeliveryDestinationCommand)(input, context);
46
+ }
47
+ deserialize(output, context) {
48
+ return (0, Aws_json1_1_1.de_GetDeliveryDestinationCommand)(output, context);
49
+ }
50
+ }
51
+ exports.GetDeliveryDestinationCommand = GetDeliveryDestinationCommand;
@@ -0,0 +1,51 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GetDeliveryDestinationPolicyCommand = 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 Aws_json1_1_1 = require("../protocols/Aws_json1_1");
10
+ class GetDeliveryDestinationPolicyCommand extends smithy_client_1.Command {
11
+ static getEndpointParameterInstructions() {
12
+ return {
13
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
+ Endpoint: { type: "builtInParams", name: "endpoint" },
15
+ Region: { type: "builtInParams", name: "region" },
16
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
+ };
18
+ }
19
+ constructor(input) {
20
+ super();
21
+ this.input = input;
22
+ }
23
+ resolveMiddleware(clientStack, configuration, options) {
24
+ this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
25
+ this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, GetDeliveryDestinationPolicyCommand.getEndpointParameterInstructions()));
26
+ const stack = clientStack.concat(this.middlewareStack);
27
+ const { logger } = configuration;
28
+ const clientName = "CloudWatchLogsClient";
29
+ const commandName = "GetDeliveryDestinationPolicyCommand";
30
+ const handlerExecutionContext = {
31
+ logger,
32
+ clientName,
33
+ commandName,
34
+ inputFilterSensitiveLog: (_) => _,
35
+ outputFilterSensitiveLog: (_) => _,
36
+ [types_1.SMITHY_CONTEXT_KEY]: {
37
+ service: "Logs_20140328",
38
+ operation: "GetDeliveryDestinationPolicy",
39
+ },
40
+ };
41
+ const { requestHandler } = configuration;
42
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
43
+ }
44
+ serialize(input, context) {
45
+ return (0, Aws_json1_1_1.se_GetDeliveryDestinationPolicyCommand)(input, context);
46
+ }
47
+ deserialize(output, context) {
48
+ return (0, Aws_json1_1_1.de_GetDeliveryDestinationPolicyCommand)(output, context);
49
+ }
50
+ }
51
+ exports.GetDeliveryDestinationPolicyCommand = GetDeliveryDestinationPolicyCommand;
@@ -0,0 +1,51 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GetDeliverySourceCommand = 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 Aws_json1_1_1 = require("../protocols/Aws_json1_1");
10
+ class GetDeliverySourceCommand extends smithy_client_1.Command {
11
+ static getEndpointParameterInstructions() {
12
+ return {
13
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
+ Endpoint: { type: "builtInParams", name: "endpoint" },
15
+ Region: { type: "builtInParams", name: "region" },
16
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
+ };
18
+ }
19
+ constructor(input) {
20
+ super();
21
+ this.input = input;
22
+ }
23
+ resolveMiddleware(clientStack, configuration, options) {
24
+ this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
25
+ this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, GetDeliverySourceCommand.getEndpointParameterInstructions()));
26
+ const stack = clientStack.concat(this.middlewareStack);
27
+ const { logger } = configuration;
28
+ const clientName = "CloudWatchLogsClient";
29
+ const commandName = "GetDeliverySourceCommand";
30
+ const handlerExecutionContext = {
31
+ logger,
32
+ clientName,
33
+ commandName,
34
+ inputFilterSensitiveLog: (_) => _,
35
+ outputFilterSensitiveLog: (_) => _,
36
+ [types_1.SMITHY_CONTEXT_KEY]: {
37
+ service: "Logs_20140328",
38
+ operation: "GetDeliverySource",
39
+ },
40
+ };
41
+ const { requestHandler } = configuration;
42
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
43
+ }
44
+ serialize(input, context) {
45
+ return (0, Aws_json1_1_1.se_GetDeliverySourceCommand)(input, context);
46
+ }
47
+ deserialize(output, context) {
48
+ return (0, Aws_json1_1_1.de_GetDeliverySourceCommand)(output, context);
49
+ }
50
+ }
51
+ exports.GetDeliverySourceCommand = GetDeliverySourceCommand;
@@ -0,0 +1,51 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PutDeliveryDestinationCommand = 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 Aws_json1_1_1 = require("../protocols/Aws_json1_1");
10
+ class PutDeliveryDestinationCommand extends smithy_client_1.Command {
11
+ static getEndpointParameterInstructions() {
12
+ return {
13
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
+ Endpoint: { type: "builtInParams", name: "endpoint" },
15
+ Region: { type: "builtInParams", name: "region" },
16
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
+ };
18
+ }
19
+ constructor(input) {
20
+ super();
21
+ this.input = input;
22
+ }
23
+ resolveMiddleware(clientStack, configuration, options) {
24
+ this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
25
+ this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, PutDeliveryDestinationCommand.getEndpointParameterInstructions()));
26
+ const stack = clientStack.concat(this.middlewareStack);
27
+ const { logger } = configuration;
28
+ const clientName = "CloudWatchLogsClient";
29
+ const commandName = "PutDeliveryDestinationCommand";
30
+ const handlerExecutionContext = {
31
+ logger,
32
+ clientName,
33
+ commandName,
34
+ inputFilterSensitiveLog: (_) => _,
35
+ outputFilterSensitiveLog: (_) => _,
36
+ [types_1.SMITHY_CONTEXT_KEY]: {
37
+ service: "Logs_20140328",
38
+ operation: "PutDeliveryDestination",
39
+ },
40
+ };
41
+ const { requestHandler } = configuration;
42
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
43
+ }
44
+ serialize(input, context) {
45
+ return (0, Aws_json1_1_1.se_PutDeliveryDestinationCommand)(input, context);
46
+ }
47
+ deserialize(output, context) {
48
+ return (0, Aws_json1_1_1.de_PutDeliveryDestinationCommand)(output, context);
49
+ }
50
+ }
51
+ exports.PutDeliveryDestinationCommand = PutDeliveryDestinationCommand;
@@ -0,0 +1,51 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PutDeliveryDestinationPolicyCommand = 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 Aws_json1_1_1 = require("../protocols/Aws_json1_1");
10
+ class PutDeliveryDestinationPolicyCommand extends smithy_client_1.Command {
11
+ static getEndpointParameterInstructions() {
12
+ return {
13
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
+ Endpoint: { type: "builtInParams", name: "endpoint" },
15
+ Region: { type: "builtInParams", name: "region" },
16
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
+ };
18
+ }
19
+ constructor(input) {
20
+ super();
21
+ this.input = input;
22
+ }
23
+ resolveMiddleware(clientStack, configuration, options) {
24
+ this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
25
+ this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, PutDeliveryDestinationPolicyCommand.getEndpointParameterInstructions()));
26
+ const stack = clientStack.concat(this.middlewareStack);
27
+ const { logger } = configuration;
28
+ const clientName = "CloudWatchLogsClient";
29
+ const commandName = "PutDeliveryDestinationPolicyCommand";
30
+ const handlerExecutionContext = {
31
+ logger,
32
+ clientName,
33
+ commandName,
34
+ inputFilterSensitiveLog: (_) => _,
35
+ outputFilterSensitiveLog: (_) => _,
36
+ [types_1.SMITHY_CONTEXT_KEY]: {
37
+ service: "Logs_20140328",
38
+ operation: "PutDeliveryDestinationPolicy",
39
+ },
40
+ };
41
+ const { requestHandler } = configuration;
42
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
43
+ }
44
+ serialize(input, context) {
45
+ return (0, Aws_json1_1_1.se_PutDeliveryDestinationPolicyCommand)(input, context);
46
+ }
47
+ deserialize(output, context) {
48
+ return (0, Aws_json1_1_1.de_PutDeliveryDestinationPolicyCommand)(output, context);
49
+ }
50
+ }
51
+ exports.PutDeliveryDestinationPolicyCommand = PutDeliveryDestinationPolicyCommand;
@@ -0,0 +1,51 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PutDeliverySourceCommand = 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 Aws_json1_1_1 = require("../protocols/Aws_json1_1");
10
+ class PutDeliverySourceCommand extends smithy_client_1.Command {
11
+ static getEndpointParameterInstructions() {
12
+ return {
13
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
+ Endpoint: { type: "builtInParams", name: "endpoint" },
15
+ Region: { type: "builtInParams", name: "region" },
16
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
+ };
18
+ }
19
+ constructor(input) {
20
+ super();
21
+ this.input = input;
22
+ }
23
+ resolveMiddleware(clientStack, configuration, options) {
24
+ this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
25
+ this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, PutDeliverySourceCommand.getEndpointParameterInstructions()));
26
+ const stack = clientStack.concat(this.middlewareStack);
27
+ const { logger } = configuration;
28
+ const clientName = "CloudWatchLogsClient";
29
+ const commandName = "PutDeliverySourceCommand";
30
+ const handlerExecutionContext = {
31
+ logger,
32
+ clientName,
33
+ commandName,
34
+ inputFilterSensitiveLog: (_) => _,
35
+ outputFilterSensitiveLog: (_) => _,
36
+ [types_1.SMITHY_CONTEXT_KEY]: {
37
+ service: "Logs_20140328",
38
+ operation: "PutDeliverySource",
39
+ },
40
+ };
41
+ const { requestHandler } = configuration;
42
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
43
+ }
44
+ serialize(input, context) {
45
+ return (0, Aws_json1_1_1.se_PutDeliverySourceCommand)(input, context);
46
+ }
47
+ deserialize(output, context) {
48
+ return (0, Aws_json1_1_1.de_PutDeliverySourceCommand)(output, context);
49
+ }
50
+ }
51
+ exports.PutDeliverySourceCommand = PutDeliverySourceCommand;
@@ -3,11 +3,16 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
4
  tslib_1.__exportStar(require("./AssociateKmsKeyCommand"), exports);
5
5
  tslib_1.__exportStar(require("./CancelExportTaskCommand"), exports);
6
+ tslib_1.__exportStar(require("./CreateDeliveryCommand"), exports);
6
7
  tslib_1.__exportStar(require("./CreateExportTaskCommand"), exports);
7
8
  tslib_1.__exportStar(require("./CreateLogGroupCommand"), exports);
8
9
  tslib_1.__exportStar(require("./CreateLogStreamCommand"), exports);
9
10
  tslib_1.__exportStar(require("./DeleteAccountPolicyCommand"), exports);
10
11
  tslib_1.__exportStar(require("./DeleteDataProtectionPolicyCommand"), exports);
12
+ tslib_1.__exportStar(require("./DeleteDeliveryCommand"), exports);
13
+ tslib_1.__exportStar(require("./DeleteDeliveryDestinationCommand"), exports);
14
+ tslib_1.__exportStar(require("./DeleteDeliveryDestinationPolicyCommand"), exports);
15
+ tslib_1.__exportStar(require("./DeleteDeliverySourceCommand"), exports);
11
16
  tslib_1.__exportStar(require("./DeleteDestinationCommand"), exports);
12
17
  tslib_1.__exportStar(require("./DeleteLogGroupCommand"), exports);
13
18
  tslib_1.__exportStar(require("./DeleteLogStreamCommand"), exports);
@@ -17,6 +22,9 @@ tslib_1.__exportStar(require("./DeleteResourcePolicyCommand"), exports);
17
22
  tslib_1.__exportStar(require("./DeleteRetentionPolicyCommand"), exports);
18
23
  tslib_1.__exportStar(require("./DeleteSubscriptionFilterCommand"), exports);
19
24
  tslib_1.__exportStar(require("./DescribeAccountPoliciesCommand"), exports);
25
+ tslib_1.__exportStar(require("./DescribeDeliveriesCommand"), exports);
26
+ tslib_1.__exportStar(require("./DescribeDeliveryDestinationsCommand"), exports);
27
+ tslib_1.__exportStar(require("./DescribeDeliverySourcesCommand"), exports);
20
28
  tslib_1.__exportStar(require("./DescribeDestinationsCommand"), exports);
21
29
  tslib_1.__exportStar(require("./DescribeExportTasksCommand"), exports);
22
30
  tslib_1.__exportStar(require("./DescribeLogGroupsCommand"), exports);
@@ -29,6 +37,10 @@ tslib_1.__exportStar(require("./DescribeSubscriptionFiltersCommand"), exports);
29
37
  tslib_1.__exportStar(require("./DisassociateKmsKeyCommand"), exports);
30
38
  tslib_1.__exportStar(require("./FilterLogEventsCommand"), exports);
31
39
  tslib_1.__exportStar(require("./GetDataProtectionPolicyCommand"), exports);
40
+ tslib_1.__exportStar(require("./GetDeliveryCommand"), exports);
41
+ tslib_1.__exportStar(require("./GetDeliveryDestinationCommand"), exports);
42
+ tslib_1.__exportStar(require("./GetDeliveryDestinationPolicyCommand"), exports);
43
+ tslib_1.__exportStar(require("./GetDeliverySourceCommand"), exports);
32
44
  tslib_1.__exportStar(require("./GetLogEventsCommand"), exports);
33
45
  tslib_1.__exportStar(require("./GetLogGroupFieldsCommand"), exports);
34
46
  tslib_1.__exportStar(require("./GetLogRecordCommand"), exports);
@@ -37,6 +49,9 @@ tslib_1.__exportStar(require("./ListTagsForResourceCommand"), exports);
37
49
  tslib_1.__exportStar(require("./ListTagsLogGroupCommand"), exports);
38
50
  tslib_1.__exportStar(require("./PutAccountPolicyCommand"), exports);
39
51
  tslib_1.__exportStar(require("./PutDataProtectionPolicyCommand"), exports);
52
+ tslib_1.__exportStar(require("./PutDeliveryDestinationCommand"), exports);
53
+ tslib_1.__exportStar(require("./PutDeliveryDestinationPolicyCommand"), exports);
54
+ tslib_1.__exportStar(require("./PutDeliverySourceCommand"), exports);
40
55
  tslib_1.__exportStar(require("./PutDestinationCommand"), exports);
41
56
  tslib_1.__exportStar(require("./PutDestinationPolicyCommand"), exports);
42
57
  tslib_1.__exportStar(require("./PutLogEventsCommand"), exports);
@@ -1,7 +1,20 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.TooManyTagsException = exports.MalformedQueryException = exports.UnrecognizedClientException = exports.InvalidSequenceTokenException = exports.Distribution = exports.QueryStatus = exports.StandardUnit = exports.OrderBy = exports.InheritedProperty = exports.ExportTaskStatusCode = exports.DataProtectionStatus = exports.DataAlreadyAcceptedException = exports.ResourceAlreadyExistsException = exports.LimitExceededException = exports.InvalidOperationException = exports.ServiceUnavailableException = exports.ResourceNotFoundException = exports.OperationAbortedException = exports.InvalidParameterException = exports.Scope = exports.PolicyType = void 0;
3
+ exports.TooManyTagsException = exports.MalformedQueryException = exports.UnrecognizedClientException = exports.InvalidSequenceTokenException = exports.Distribution = exports.QueryStatus = exports.StandardUnit = exports.OrderBy = exports.InheritedProperty = exports.ExportTaskStatusCode = exports.OutputFormat = exports.DataProtectionStatus = exports.DataAlreadyAcceptedException = 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.Scope = exports.PolicyType = exports.AccessDeniedException = void 0;
4
4
  const CloudWatchLogsServiceException_1 = require("./CloudWatchLogsServiceException");
5
+ class AccessDeniedException extends CloudWatchLogsServiceException_1.CloudWatchLogsServiceException {
6
+ constructor(opts) {
7
+ super({
8
+ name: "AccessDeniedException",
9
+ $fault: "client",
10
+ ...opts,
11
+ });
12
+ this.name = "AccessDeniedException";
13
+ this.$fault = "client";
14
+ Object.setPrototypeOf(this, AccessDeniedException.prototype);
15
+ }
16
+ }
17
+ exports.AccessDeniedException = AccessDeniedException;
5
18
  exports.PolicyType = {
6
19
  DATA_PROTECTION_POLICY: "DATA_PROTECTION_POLICY",
7
20
  };
@@ -73,6 +86,63 @@ class InvalidOperationException extends CloudWatchLogsServiceException_1.CloudWa
73
86
  }
74
87
  }
75
88
  exports.InvalidOperationException = InvalidOperationException;
89
+ class ConflictException extends CloudWatchLogsServiceException_1.CloudWatchLogsServiceException {
90
+ constructor(opts) {
91
+ super({
92
+ name: "ConflictException",
93
+ $fault: "client",
94
+ ...opts,
95
+ });
96
+ this.name = "ConflictException";
97
+ this.$fault = "client";
98
+ Object.setPrototypeOf(this, ConflictException.prototype);
99
+ }
100
+ }
101
+ exports.ConflictException = ConflictException;
102
+ exports.DeliveryDestinationType = {
103
+ CWL: "CWL",
104
+ FH: "FH",
105
+ S3: "S3",
106
+ };
107
+ class ServiceQuotaExceededException extends CloudWatchLogsServiceException_1.CloudWatchLogsServiceException {
108
+ constructor(opts) {
109
+ super({
110
+ name: "ServiceQuotaExceededException",
111
+ $fault: "client",
112
+ ...opts,
113
+ });
114
+ this.name = "ServiceQuotaExceededException";
115
+ this.$fault = "client";
116
+ Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
117
+ }
118
+ }
119
+ exports.ServiceQuotaExceededException = ServiceQuotaExceededException;
120
+ class ThrottlingException extends CloudWatchLogsServiceException_1.CloudWatchLogsServiceException {
121
+ constructor(opts) {
122
+ super({
123
+ name: "ThrottlingException",
124
+ $fault: "client",
125
+ ...opts,
126
+ });
127
+ this.name = "ThrottlingException";
128
+ this.$fault = "client";
129
+ Object.setPrototypeOf(this, ThrottlingException.prototype);
130
+ }
131
+ }
132
+ exports.ThrottlingException = ThrottlingException;
133
+ class ValidationException extends CloudWatchLogsServiceException_1.CloudWatchLogsServiceException {
134
+ constructor(opts) {
135
+ super({
136
+ name: "ValidationException",
137
+ $fault: "client",
138
+ ...opts,
139
+ });
140
+ this.name = "ValidationException";
141
+ this.$fault = "client";
142
+ Object.setPrototypeOf(this, ValidationException.prototype);
143
+ }
144
+ }
145
+ exports.ValidationException = ValidationException;
76
146
  class LimitExceededException extends CloudWatchLogsServiceException_1.CloudWatchLogsServiceException {
77
147
  constructor(opts) {
78
148
  super({
@@ -119,6 +189,13 @@ exports.DataProtectionStatus = {
119
189
  DELETED: "DELETED",
120
190
  DISABLED: "DISABLED",
121
191
  };
192
+ exports.OutputFormat = {
193
+ JSON: "json",
194
+ PARQUET: "parquet",
195
+ PLAIN: "plain",
196
+ RAW: "raw",
197
+ W3C: "w3c",
198
+ };
122
199
  exports.ExportTaskStatusCode = {
123
200
  CANCELLED: "CANCELLED",
124
201
  COMPLETED: "COMPLETED",
@@ -0,0 +1,29 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.paginateDescribeDeliveries = void 0;
4
+ const CloudWatchLogsClient_1 = require("../CloudWatchLogsClient");
5
+ const DescribeDeliveriesCommand_1 = require("../commands/DescribeDeliveriesCommand");
6
+ const makePagedClientRequest = async (client, input, ...args) => {
7
+ return await client.send(new DescribeDeliveriesCommand_1.DescribeDeliveriesCommand(input), ...args);
8
+ };
9
+ async function* paginateDescribeDeliveries(config, input, ...additionalArguments) {
10
+ let token = config.startingToken || undefined;
11
+ let hasNext = true;
12
+ let page;
13
+ while (hasNext) {
14
+ input.nextToken = token;
15
+ input["limit"] = config.pageSize;
16
+ if (config.client instanceof CloudWatchLogsClient_1.CloudWatchLogsClient) {
17
+ page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
+ }
19
+ else {
20
+ throw new Error("Invalid client, expected CloudWatchLogs | CloudWatchLogsClient");
21
+ }
22
+ yield page;
23
+ const prevToken = token;
24
+ token = page.nextToken;
25
+ hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
+ }
27
+ return undefined;
28
+ }
29
+ exports.paginateDescribeDeliveries = paginateDescribeDeliveries;
@@ -0,0 +1,29 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.paginateDescribeDeliveryDestinations = void 0;
4
+ const CloudWatchLogsClient_1 = require("../CloudWatchLogsClient");
5
+ const DescribeDeliveryDestinationsCommand_1 = require("../commands/DescribeDeliveryDestinationsCommand");
6
+ const makePagedClientRequest = async (client, input, ...args) => {
7
+ return await client.send(new DescribeDeliveryDestinationsCommand_1.DescribeDeliveryDestinationsCommand(input), ...args);
8
+ };
9
+ async function* paginateDescribeDeliveryDestinations(config, input, ...additionalArguments) {
10
+ let token = config.startingToken || undefined;
11
+ let hasNext = true;
12
+ let page;
13
+ while (hasNext) {
14
+ input.nextToken = token;
15
+ input["limit"] = config.pageSize;
16
+ if (config.client instanceof CloudWatchLogsClient_1.CloudWatchLogsClient) {
17
+ page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
+ }
19
+ else {
20
+ throw new Error("Invalid client, expected CloudWatchLogs | CloudWatchLogsClient");
21
+ }
22
+ yield page;
23
+ const prevToken = token;
24
+ token = page.nextToken;
25
+ hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
+ }
27
+ return undefined;
28
+ }
29
+ exports.paginateDescribeDeliveryDestinations = paginateDescribeDeliveryDestinations;
@@ -0,0 +1,29 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.paginateDescribeDeliverySources = void 0;
4
+ const CloudWatchLogsClient_1 = require("../CloudWatchLogsClient");
5
+ const DescribeDeliverySourcesCommand_1 = require("../commands/DescribeDeliverySourcesCommand");
6
+ const makePagedClientRequest = async (client, input, ...args) => {
7
+ return await client.send(new DescribeDeliverySourcesCommand_1.DescribeDeliverySourcesCommand(input), ...args);
8
+ };
9
+ async function* paginateDescribeDeliverySources(config, input, ...additionalArguments) {
10
+ let token = config.startingToken || undefined;
11
+ let hasNext = true;
12
+ let page;
13
+ while (hasNext) {
14
+ input.nextToken = token;
15
+ input["limit"] = config.pageSize;
16
+ if (config.client instanceof CloudWatchLogsClient_1.CloudWatchLogsClient) {
17
+ page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
+ }
19
+ else {
20
+ throw new Error("Invalid client, expected CloudWatchLogs | CloudWatchLogsClient");
21
+ }
22
+ yield page;
23
+ const prevToken = token;
24
+ token = page.nextToken;
25
+ hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
+ }
27
+ return undefined;
28
+ }
29
+ exports.paginateDescribeDeliverySources = paginateDescribeDeliverySources;