@aws-sdk/client-cloudwatch-logs 3.699.0 → 3.709.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 (34) hide show
  1. package/README.md +32 -0
  2. package/dist-cjs/index.js +192 -0
  3. package/dist-es/CloudWatchLogs.js +8 -0
  4. package/dist-es/commands/DeleteIntegrationCommand.js +22 -0
  5. package/dist-es/commands/GetIntegrationCommand.js +22 -0
  6. package/dist-es/commands/ListIntegrationsCommand.js +22 -0
  7. package/dist-es/commands/PutIntegrationCommand.js +22 -0
  8. package/dist-es/commands/index.js +4 -0
  9. package/dist-es/models/models_0.js +34 -0
  10. package/dist-es/protocols/Aws_json1_1.js +78 -0
  11. package/dist-types/CloudWatchLogs.d.ts +29 -0
  12. package/dist-types/CloudWatchLogsClient.d.ts +6 -2
  13. package/dist-types/commands/DeleteIntegrationCommand.d.ts +86 -0
  14. package/dist-types/commands/DescribeQueriesCommand.d.ts +2 -0
  15. package/dist-types/commands/DescribeQueryDefinitionsCommand.d.ts +2 -0
  16. package/dist-types/commands/GetIntegrationCommand.d.ts +136 -0
  17. package/dist-types/commands/GetQueryResultsCommand.d.ts +1 -0
  18. package/dist-types/commands/ListIntegrationsCommand.d.ts +86 -0
  19. package/dist-types/commands/PutIntegrationCommand.d.ts +101 -0
  20. package/dist-types/commands/PutQueryDefinitionCommand.d.ts +1 -0
  21. package/dist-types/commands/StartQueryCommand.d.ts +1 -0
  22. package/dist-types/commands/index.d.ts +4 -0
  23. package/dist-types/models/models_0.d.ts +606 -3
  24. package/dist-types/protocols/Aws_json1_1.d.ts +36 -0
  25. package/dist-types/ts3.4/CloudWatchLogs.d.ts +69 -0
  26. package/dist-types/ts3.4/CloudWatchLogsClient.d.ts +24 -0
  27. package/dist-types/ts3.4/commands/DeleteIntegrationCommand.d.ts +51 -0
  28. package/dist-types/ts3.4/commands/GetIntegrationCommand.d.ts +50 -0
  29. package/dist-types/ts3.4/commands/ListIntegrationsCommand.d.ts +50 -0
  30. package/dist-types/ts3.4/commands/PutIntegrationCommand.d.ts +50 -0
  31. package/dist-types/ts3.4/commands/index.d.ts +4 -0
  32. package/dist-types/ts3.4/models/models_0.d.ts +160 -0
  33. package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +48 -0
  34. package/package.json +38 -38
@@ -0,0 +1,86 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import { CloudWatchLogsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudWatchLogsClient";
4
+ import { ListIntegrationsRequest, ListIntegrationsResponse } from "../models/models_0";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link ListIntegrationsCommand}.
14
+ */
15
+ export interface ListIntegrationsCommandInput extends ListIntegrationsRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link ListIntegrationsCommand}.
21
+ */
22
+ export interface ListIntegrationsCommandOutput extends ListIntegrationsResponse, __MetadataBearer {
23
+ }
24
+ declare const ListIntegrationsCommand_base: {
25
+ new (input: ListIntegrationsCommandInput): import("@smithy/smithy-client").CommandImpl<ListIntegrationsCommandInput, ListIntegrationsCommandOutput, CloudWatchLogsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (...[input]: [] | [ListIntegrationsCommandInput]): import("@smithy/smithy-client").CommandImpl<ListIntegrationsCommandInput, ListIntegrationsCommandOutput, CloudWatchLogsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <p>Returns a list of integrations between CloudWatch Logs and other services in this account. Currently, only one
31
+ * integration can be created in an account, and this integration must be with OpenSearch Service.</p>
32
+ * @example
33
+ * Use a bare-bones client and the command you need to make an API call.
34
+ * ```javascript
35
+ * import { CloudWatchLogsClient, ListIntegrationsCommand } from "@aws-sdk/client-cloudwatch-logs"; // ES Modules import
36
+ * // const { CloudWatchLogsClient, ListIntegrationsCommand } = require("@aws-sdk/client-cloudwatch-logs"); // CommonJS import
37
+ * const client = new CloudWatchLogsClient(config);
38
+ * const input = { // ListIntegrationsRequest
39
+ * integrationNamePrefix: "STRING_VALUE",
40
+ * integrationType: "OPENSEARCH",
41
+ * integrationStatus: "PROVISIONING" || "ACTIVE" || "FAILED",
42
+ * };
43
+ * const command = new ListIntegrationsCommand(input);
44
+ * const response = await client.send(command);
45
+ * // { // ListIntegrationsResponse
46
+ * // integrationSummaries: [ // IntegrationSummaries
47
+ * // { // IntegrationSummary
48
+ * // integrationName: "STRING_VALUE",
49
+ * // integrationType: "OPENSEARCH",
50
+ * // integrationStatus: "PROVISIONING" || "ACTIVE" || "FAILED",
51
+ * // },
52
+ * // ],
53
+ * // };
54
+ *
55
+ * ```
56
+ *
57
+ * @param ListIntegrationsCommandInput - {@link ListIntegrationsCommandInput}
58
+ * @returns {@link ListIntegrationsCommandOutput}
59
+ * @see {@link ListIntegrationsCommandInput} for command's `input` shape.
60
+ * @see {@link ListIntegrationsCommandOutput} for command's `response` shape.
61
+ * @see {@link CloudWatchLogsClientResolvedConfig | config} for CloudWatchLogsClient's `config` shape.
62
+ *
63
+ * @throws {@link InvalidParameterException} (client fault)
64
+ * <p>A parameter is specified incorrectly.</p>
65
+ *
66
+ * @throws {@link ServiceUnavailableException} (server fault)
67
+ * <p>The service cannot complete the request.</p>
68
+ *
69
+ * @throws {@link CloudWatchLogsServiceException}
70
+ * <p>Base exception class for all service exceptions from CloudWatchLogs service.</p>
71
+ *
72
+ * @public
73
+ */
74
+ export declare class ListIntegrationsCommand extends ListIntegrationsCommand_base {
75
+ /** @internal type navigation helper, not in runtime. */
76
+ protected static __types: {
77
+ api: {
78
+ input: ListIntegrationsRequest;
79
+ output: ListIntegrationsResponse;
80
+ };
81
+ sdk: {
82
+ input: ListIntegrationsCommandInput;
83
+ output: ListIntegrationsCommandOutput;
84
+ };
85
+ };
86
+ }
@@ -0,0 +1,101 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import { CloudWatchLogsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudWatchLogsClient";
4
+ import { PutIntegrationRequest, PutIntegrationResponse } from "../models/models_0";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link PutIntegrationCommand}.
14
+ */
15
+ export interface PutIntegrationCommandInput extends PutIntegrationRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link PutIntegrationCommand}.
21
+ */
22
+ export interface PutIntegrationCommandOutput extends PutIntegrationResponse, __MetadataBearer {
23
+ }
24
+ declare const PutIntegrationCommand_base: {
25
+ new (input: PutIntegrationCommandInput): import("@smithy/smithy-client").CommandImpl<PutIntegrationCommandInput, PutIntegrationCommandOutput, CloudWatchLogsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (__0_0: PutIntegrationCommandInput): import("@smithy/smithy-client").CommandImpl<PutIntegrationCommandInput, PutIntegrationCommandOutput, CloudWatchLogsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <p>Creates an integration between CloudWatch Logs and another service in this account. Currently, only integrations with
31
+ * OpenSearch Service are supported, and currently you can have only one integration in your account.</p>
32
+ * <p>Integrating with OpenSearch Service makes it possible for you to create curated vended logs dashboards, powered
33
+ * by OpenSearch Service analytics. For more information, see
34
+ * <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/CloudWatchLogs-OpenSearch-Dashboards.html">Vended log dashboards powered by Amazon OpenSearch Service</a>.</p>
35
+ * <p>You can use this operation only to create a new integration. You can't modify an existing integration.</p>
36
+ * @example
37
+ * Use a bare-bones client and the command you need to make an API call.
38
+ * ```javascript
39
+ * import { CloudWatchLogsClient, PutIntegrationCommand } from "@aws-sdk/client-cloudwatch-logs"; // ES Modules import
40
+ * // const { CloudWatchLogsClient, PutIntegrationCommand } = require("@aws-sdk/client-cloudwatch-logs"); // CommonJS import
41
+ * const client = new CloudWatchLogsClient(config);
42
+ * const input = { // PutIntegrationRequest
43
+ * integrationName: "STRING_VALUE", // required
44
+ * resourceConfig: { // ResourceConfig Union: only one key present
45
+ * openSearchResourceConfig: { // OpenSearchResourceConfig
46
+ * kmsKeyArn: "STRING_VALUE",
47
+ * dataSourceRoleArn: "STRING_VALUE", // required
48
+ * dashboardViewerPrincipals: [ // DashboardViewerPrincipals // required
49
+ * "STRING_VALUE",
50
+ * ],
51
+ * applicationArn: "STRING_VALUE",
52
+ * retentionDays: Number("int"), // required
53
+ * },
54
+ * },
55
+ * integrationType: "OPENSEARCH", // required
56
+ * };
57
+ * const command = new PutIntegrationCommand(input);
58
+ * const response = await client.send(command);
59
+ * // { // PutIntegrationResponse
60
+ * // integrationName: "STRING_VALUE",
61
+ * // integrationStatus: "PROVISIONING" || "ACTIVE" || "FAILED",
62
+ * // };
63
+ *
64
+ * ```
65
+ *
66
+ * @param PutIntegrationCommandInput - {@link PutIntegrationCommandInput}
67
+ * @returns {@link PutIntegrationCommandOutput}
68
+ * @see {@link PutIntegrationCommandInput} for command's `input` shape.
69
+ * @see {@link PutIntegrationCommandOutput} for command's `response` shape.
70
+ * @see {@link CloudWatchLogsClientResolvedConfig | config} for CloudWatchLogsClient's `config` shape.
71
+ *
72
+ * @throws {@link InvalidParameterException} (client fault)
73
+ * <p>A parameter is specified incorrectly.</p>
74
+ *
75
+ * @throws {@link LimitExceededException} (client fault)
76
+ * <p>You have reached the maximum number of resources that can be created.</p>
77
+ *
78
+ * @throws {@link ServiceUnavailableException} (server fault)
79
+ * <p>The service cannot complete the request.</p>
80
+ *
81
+ * @throws {@link ValidationException} (client fault)
82
+ * <p>One of the parameters for the request is not valid.</p>
83
+ *
84
+ * @throws {@link CloudWatchLogsServiceException}
85
+ * <p>Base exception class for all service exceptions from CloudWatchLogs service.</p>
86
+ *
87
+ * @public
88
+ */
89
+ export declare class PutIntegrationCommand extends PutIntegrationCommand_base {
90
+ /** @internal type navigation helper, not in runtime. */
91
+ protected static __types: {
92
+ api: {
93
+ input: PutIntegrationRequest;
94
+ output: PutIntegrationResponse;
95
+ };
96
+ sdk: {
97
+ input: PutIntegrationCommandInput;
98
+ output: PutIntegrationCommandOutput;
99
+ };
100
+ };
101
+ }
@@ -45,6 +45,7 @@ declare const PutQueryDefinitionCommand_base: {
45
45
  * // const { CloudWatchLogsClient, PutQueryDefinitionCommand } = require("@aws-sdk/client-cloudwatch-logs"); // CommonJS import
46
46
  * const client = new CloudWatchLogsClient(config);
47
47
  * const input = { // PutQueryDefinitionRequest
48
+ * queryLanguage: "CWLI" || "SQL" || "PPL",
48
49
  * name: "STRING_VALUE", // required
49
50
  * queryDefinitionId: "STRING_VALUE",
50
51
  * logGroupNames: [ // LogGroupNames
@@ -73,6 +73,7 @@ declare const StartQueryCommand_base: {
73
73
  * // const { CloudWatchLogsClient, StartQueryCommand } = require("@aws-sdk/client-cloudwatch-logs"); // CommonJS import
74
74
  * const client = new CloudWatchLogsClient(config);
75
75
  * const input = { // StartQueryRequest
76
+ * queryLanguage: "CWLI" || "SQL" || "PPL",
76
77
  * logGroupName: "STRING_VALUE",
77
78
  * logGroupNames: [ // LogGroupNames
78
79
  * "STRING_VALUE",
@@ -13,6 +13,7 @@ export * from "./DeleteDeliveryDestinationPolicyCommand";
13
13
  export * from "./DeleteDeliverySourceCommand";
14
14
  export * from "./DeleteDestinationCommand";
15
15
  export * from "./DeleteIndexPolicyCommand";
16
+ export * from "./DeleteIntegrationCommand";
16
17
  export * from "./DeleteLogAnomalyDetectorCommand";
17
18
  export * from "./DeleteLogGroupCommand";
18
19
  export * from "./DeleteLogStreamCommand";
@@ -45,6 +46,7 @@ export * from "./GetDeliveryCommand";
45
46
  export * from "./GetDeliveryDestinationCommand";
46
47
  export * from "./GetDeliveryDestinationPolicyCommand";
47
48
  export * from "./GetDeliverySourceCommand";
49
+ export * from "./GetIntegrationCommand";
48
50
  export * from "./GetLogAnomalyDetectorCommand";
49
51
  export * from "./GetLogEventsCommand";
50
52
  export * from "./GetLogGroupFieldsCommand";
@@ -52,6 +54,7 @@ export * from "./GetLogRecordCommand";
52
54
  export * from "./GetQueryResultsCommand";
53
55
  export * from "./GetTransformerCommand";
54
56
  export * from "./ListAnomaliesCommand";
57
+ export * from "./ListIntegrationsCommand";
55
58
  export * from "./ListLogAnomalyDetectorsCommand";
56
59
  export * from "./ListLogGroupsForQueryCommand";
57
60
  export * from "./ListTagsForResourceCommand";
@@ -64,6 +67,7 @@ export * from "./PutDeliverySourceCommand";
64
67
  export * from "./PutDestinationCommand";
65
68
  export * from "./PutDestinationPolicyCommand";
66
69
  export * from "./PutIndexPolicyCommand";
70
+ export * from "./PutIntegrationCommand";
67
71
  export * from "./PutLogEventsCommand";
68
72
  export * from "./PutMetricFilterCommand";
69
73
  export * from "./PutQueryDefinitionCommand";