@aws-sdk/client-observabilityadmin 3.858.0 → 3.862.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 (93) hide show
  1. package/README.md +105 -1
  2. package/dist-cjs/ObservabilityAdmin.js +26 -0
  3. package/dist-cjs/commands/CreateTelemetryRuleCommand.js +26 -0
  4. package/dist-cjs/commands/CreateTelemetryRuleForOrganizationCommand.js +26 -0
  5. package/dist-cjs/commands/DeleteTelemetryRuleCommand.js +26 -0
  6. package/dist-cjs/commands/DeleteTelemetryRuleForOrganizationCommand.js +26 -0
  7. package/dist-cjs/commands/GetTelemetryRuleCommand.js +26 -0
  8. package/dist-cjs/commands/GetTelemetryRuleForOrganizationCommand.js +26 -0
  9. package/dist-cjs/commands/ListTagsForResourceCommand.js +26 -0
  10. package/dist-cjs/commands/ListTelemetryRulesCommand.js +26 -0
  11. package/dist-cjs/commands/ListTelemetryRulesForOrganizationCommand.js +26 -0
  12. package/dist-cjs/commands/TagResourceCommand.js +26 -0
  13. package/dist-cjs/commands/UntagResourceCommand.js +26 -0
  14. package/dist-cjs/commands/UpdateTelemetryRuleCommand.js +26 -0
  15. package/dist-cjs/commands/UpdateTelemetryRuleForOrganizationCommand.js +26 -0
  16. package/dist-cjs/commands/index.js +13 -0
  17. package/dist-cjs/models/models_0.js +83 -18
  18. package/dist-cjs/pagination/ListTelemetryRulesForOrganizationPaginator.js +7 -0
  19. package/dist-cjs/pagination/ListTelemetryRulesPaginator.js +7 -0
  20. package/dist-cjs/pagination/index.js +2 -0
  21. package/dist-cjs/protocols/Aws_restJson1.js +452 -1
  22. package/dist-es/ObservabilityAdmin.js +26 -0
  23. package/dist-es/commands/CreateTelemetryRuleCommand.js +22 -0
  24. package/dist-es/commands/CreateTelemetryRuleForOrganizationCommand.js +22 -0
  25. package/dist-es/commands/DeleteTelemetryRuleCommand.js +22 -0
  26. package/dist-es/commands/DeleteTelemetryRuleForOrganizationCommand.js +22 -0
  27. package/dist-es/commands/GetTelemetryRuleCommand.js +22 -0
  28. package/dist-es/commands/GetTelemetryRuleForOrganizationCommand.js +22 -0
  29. package/dist-es/commands/ListTagsForResourceCommand.js +22 -0
  30. package/dist-es/commands/ListTelemetryRulesCommand.js +22 -0
  31. package/dist-es/commands/ListTelemetryRulesForOrganizationCommand.js +22 -0
  32. package/dist-es/commands/TagResourceCommand.js +22 -0
  33. package/dist-es/commands/UntagResourceCommand.js +22 -0
  34. package/dist-es/commands/UpdateTelemetryRuleCommand.js +22 -0
  35. package/dist-es/commands/UpdateTelemetryRuleForOrganizationCommand.js +22 -0
  36. package/dist-es/commands/index.js +13 -0
  37. package/dist-es/models/models_0.js +78 -17
  38. package/dist-es/pagination/ListTelemetryRulesForOrganizationPaginator.js +4 -0
  39. package/dist-es/pagination/ListTelemetryRulesPaginator.js +4 -0
  40. package/dist-es/pagination/index.js +2 -0
  41. package/dist-es/protocols/Aws_restJson1.js +427 -2
  42. package/dist-types/ObservabilityAdmin.d.ts +94 -1
  43. package/dist-types/ObservabilityAdminClient.d.ts +16 -3
  44. package/dist-types/commands/CreateTelemetryRuleCommand.d.ts +123 -0
  45. package/dist-types/commands/CreateTelemetryRuleForOrganizationCommand.d.ts +123 -0
  46. package/dist-types/commands/DeleteTelemetryRuleCommand.d.ts +97 -0
  47. package/dist-types/commands/DeleteTelemetryRuleForOrganizationCommand.d.ts +97 -0
  48. package/dist-types/commands/GetTelemetryEvaluationStatusCommand.d.ts +6 -1
  49. package/dist-types/commands/GetTelemetryEvaluationStatusForOrganizationCommand.d.ts +7 -2
  50. package/dist-types/commands/GetTelemetryRuleCommand.d.ts +118 -0
  51. package/dist-types/commands/GetTelemetryRuleForOrganizationCommand.d.ts +118 -0
  52. package/dist-types/commands/ListResourceTelemetryCommand.d.ts +7 -2
  53. package/dist-types/commands/ListResourceTelemetryForOrganizationCommand.d.ts +7 -2
  54. package/dist-types/commands/ListTagsForResourceCommand.d.ts +101 -0
  55. package/dist-types/commands/ListTelemetryRulesCommand.d.ts +106 -0
  56. package/dist-types/commands/ListTelemetryRulesForOrganizationCommand.d.ts +112 -0
  57. package/dist-types/commands/StartTelemetryEvaluationCommand.d.ts +7 -2
  58. package/dist-types/commands/StartTelemetryEvaluationForOrganizationCommand.d.ts +6 -1
  59. package/dist-types/commands/StopTelemetryEvaluationCommand.d.ts +7 -2
  60. package/dist-types/commands/StopTelemetryEvaluationForOrganizationCommand.d.ts +7 -2
  61. package/dist-types/commands/TagResourceCommand.d.ts +105 -0
  62. package/dist-types/commands/UntagResourceCommand.d.ts +100 -0
  63. package/dist-types/commands/UpdateTelemetryRuleCommand.d.ts +120 -0
  64. package/dist-types/commands/UpdateTelemetryRuleForOrganizationCommand.d.ts +120 -0
  65. package/dist-types/commands/index.d.ts +13 -0
  66. package/dist-types/index.d.ts +1 -1
  67. package/dist-types/models/models_0.d.ts +707 -39
  68. package/dist-types/pagination/ListTelemetryRulesForOrganizationPaginator.d.ts +7 -0
  69. package/dist-types/pagination/ListTelemetryRulesPaginator.d.ts +7 -0
  70. package/dist-types/pagination/index.d.ts +2 -0
  71. package/dist-types/protocols/Aws_restJson1.d.ts +117 -0
  72. package/dist-types/ts3.4/ObservabilityAdmin.d.ts +247 -0
  73. package/dist-types/ts3.4/ObservabilityAdminClient.d.ts +80 -2
  74. package/dist-types/ts3.4/commands/CreateTelemetryRuleCommand.d.ts +51 -0
  75. package/dist-types/ts3.4/commands/CreateTelemetryRuleForOrganizationCommand.d.ts +51 -0
  76. package/dist-types/ts3.4/commands/DeleteTelemetryRuleCommand.d.ts +46 -0
  77. package/dist-types/ts3.4/commands/DeleteTelemetryRuleForOrganizationCommand.d.ts +47 -0
  78. package/dist-types/ts3.4/commands/GetTelemetryRuleCommand.d.ts +50 -0
  79. package/dist-types/ts3.4/commands/GetTelemetryRuleForOrganizationCommand.d.ts +51 -0
  80. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +51 -0
  81. package/dist-types/ts3.4/commands/ListTelemetryRulesCommand.d.ts +51 -0
  82. package/dist-types/ts3.4/commands/ListTelemetryRulesForOrganizationCommand.d.ts +51 -0
  83. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +45 -0
  84. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +45 -0
  85. package/dist-types/ts3.4/commands/UpdateTelemetryRuleCommand.d.ts +51 -0
  86. package/dist-types/ts3.4/commands/UpdateTelemetryRuleForOrganizationCommand.d.ts +51 -0
  87. package/dist-types/ts3.4/commands/index.d.ts +13 -0
  88. package/dist-types/ts3.4/models/models_0.d.ts +178 -26
  89. package/dist-types/ts3.4/pagination/ListTelemetryRulesForOrganizationPaginator.d.ts +11 -0
  90. package/dist-types/ts3.4/pagination/ListTelemetryRulesPaginator.d.ts +11 -0
  91. package/dist-types/ts3.4/pagination/index.d.ts +2 -0
  92. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +156 -0
  93. package/package.json +33 -33
@@ -7,25 +7,38 @@ import { HttpHandlerUserInput as __HttpHandlerUserInput } from "@smithy/protocol
7
7
  import { Client as __Client, DefaultsMode as __DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@smithy/smithy-client";
8
8
  import { AwsCredentialIdentityProvider, BodyLengthCalculator as __BodyLengthCalculator, CheckOptionalClientConfig as __CheckOptionalClientConfig, ChecksumConstructor as __ChecksumConstructor, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@smithy/types";
9
9
  import { HttpAuthSchemeInputConfig, HttpAuthSchemeResolvedConfig } from "./auth/httpAuthSchemeProvider";
10
+ import { CreateTelemetryRuleCommandInput, CreateTelemetryRuleCommandOutput } from "./commands/CreateTelemetryRuleCommand";
11
+ import { CreateTelemetryRuleForOrganizationCommandInput, CreateTelemetryRuleForOrganizationCommandOutput } from "./commands/CreateTelemetryRuleForOrganizationCommand";
12
+ import { DeleteTelemetryRuleCommandInput, DeleteTelemetryRuleCommandOutput } from "./commands/DeleteTelemetryRuleCommand";
13
+ import { DeleteTelemetryRuleForOrganizationCommandInput, DeleteTelemetryRuleForOrganizationCommandOutput } from "./commands/DeleteTelemetryRuleForOrganizationCommand";
10
14
  import { GetTelemetryEvaluationStatusCommandInput, GetTelemetryEvaluationStatusCommandOutput } from "./commands/GetTelemetryEvaluationStatusCommand";
11
15
  import { GetTelemetryEvaluationStatusForOrganizationCommandInput, GetTelemetryEvaluationStatusForOrganizationCommandOutput } from "./commands/GetTelemetryEvaluationStatusForOrganizationCommand";
16
+ import { GetTelemetryRuleCommandInput, GetTelemetryRuleCommandOutput } from "./commands/GetTelemetryRuleCommand";
17
+ import { GetTelemetryRuleForOrganizationCommandInput, GetTelemetryRuleForOrganizationCommandOutput } from "./commands/GetTelemetryRuleForOrganizationCommand";
12
18
  import { ListResourceTelemetryCommandInput, ListResourceTelemetryCommandOutput } from "./commands/ListResourceTelemetryCommand";
13
19
  import { ListResourceTelemetryForOrganizationCommandInput, ListResourceTelemetryForOrganizationCommandOutput } from "./commands/ListResourceTelemetryForOrganizationCommand";
20
+ import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "./commands/ListTagsForResourceCommand";
21
+ import { ListTelemetryRulesCommandInput, ListTelemetryRulesCommandOutput } from "./commands/ListTelemetryRulesCommand";
22
+ import { ListTelemetryRulesForOrganizationCommandInput, ListTelemetryRulesForOrganizationCommandOutput } from "./commands/ListTelemetryRulesForOrganizationCommand";
14
23
  import { StartTelemetryEvaluationCommandInput, StartTelemetryEvaluationCommandOutput } from "./commands/StartTelemetryEvaluationCommand";
15
24
  import { StartTelemetryEvaluationForOrganizationCommandInput, StartTelemetryEvaluationForOrganizationCommandOutput } from "./commands/StartTelemetryEvaluationForOrganizationCommand";
16
25
  import { StopTelemetryEvaluationCommandInput, StopTelemetryEvaluationCommandOutput } from "./commands/StopTelemetryEvaluationCommand";
17
26
  import { StopTelemetryEvaluationForOrganizationCommandInput, StopTelemetryEvaluationForOrganizationCommandOutput } from "./commands/StopTelemetryEvaluationForOrganizationCommand";
27
+ import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
28
+ import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
29
+ import { UpdateTelemetryRuleCommandInput, UpdateTelemetryRuleCommandOutput } from "./commands/UpdateTelemetryRuleCommand";
30
+ import { UpdateTelemetryRuleForOrganizationCommandInput, UpdateTelemetryRuleForOrganizationCommandOutput } from "./commands/UpdateTelemetryRuleForOrganizationCommand";
18
31
  import { ClientInputEndpointParameters, ClientResolvedEndpointParameters, EndpointParameters } from "./endpoint/EndpointParameters";
19
32
  import { RuntimeExtension, RuntimeExtensionsConfig } from "./runtimeExtensions";
20
33
  export { __Client };
21
34
  /**
22
35
  * @public
23
36
  */
24
- export type ServiceInputTypes = GetTelemetryEvaluationStatusCommandInput | GetTelemetryEvaluationStatusForOrganizationCommandInput | ListResourceTelemetryCommandInput | ListResourceTelemetryForOrganizationCommandInput | StartTelemetryEvaluationCommandInput | StartTelemetryEvaluationForOrganizationCommandInput | StopTelemetryEvaluationCommandInput | StopTelemetryEvaluationForOrganizationCommandInput;
37
+ export type ServiceInputTypes = CreateTelemetryRuleCommandInput | CreateTelemetryRuleForOrganizationCommandInput | DeleteTelemetryRuleCommandInput | DeleteTelemetryRuleForOrganizationCommandInput | GetTelemetryEvaluationStatusCommandInput | GetTelemetryEvaluationStatusForOrganizationCommandInput | GetTelemetryRuleCommandInput | GetTelemetryRuleForOrganizationCommandInput | ListResourceTelemetryCommandInput | ListResourceTelemetryForOrganizationCommandInput | ListTagsForResourceCommandInput | ListTelemetryRulesCommandInput | ListTelemetryRulesForOrganizationCommandInput | StartTelemetryEvaluationCommandInput | StartTelemetryEvaluationForOrganizationCommandInput | StopTelemetryEvaluationCommandInput | StopTelemetryEvaluationForOrganizationCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateTelemetryRuleCommandInput | UpdateTelemetryRuleForOrganizationCommandInput;
25
38
  /**
26
39
  * @public
27
40
  */
28
- export type ServiceOutputTypes = GetTelemetryEvaluationStatusCommandOutput | GetTelemetryEvaluationStatusForOrganizationCommandOutput | ListResourceTelemetryCommandOutput | ListResourceTelemetryForOrganizationCommandOutput | StartTelemetryEvaluationCommandOutput | StartTelemetryEvaluationForOrganizationCommandOutput | StopTelemetryEvaluationCommandOutput | StopTelemetryEvaluationForOrganizationCommandOutput;
41
+ export type ServiceOutputTypes = CreateTelemetryRuleCommandOutput | CreateTelemetryRuleForOrganizationCommandOutput | DeleteTelemetryRuleCommandOutput | DeleteTelemetryRuleForOrganizationCommandOutput | GetTelemetryEvaluationStatusCommandOutput | GetTelemetryEvaluationStatusForOrganizationCommandOutput | GetTelemetryRuleCommandOutput | GetTelemetryRuleForOrganizationCommandOutput | ListResourceTelemetryCommandOutput | ListResourceTelemetryForOrganizationCommandOutput | ListTagsForResourceCommandOutput | ListTelemetryRulesCommandOutput | ListTelemetryRulesForOrganizationCommandOutput | StartTelemetryEvaluationCommandOutput | StartTelemetryEvaluationForOrganizationCommandOutput | StopTelemetryEvaluationCommandOutput | StopTelemetryEvaluationForOrganizationCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateTelemetryRuleCommandOutput | UpdateTelemetryRuleForOrganizationCommandOutput;
29
42
  /**
30
43
  * @public
31
44
  */
@@ -178,7 +191,7 @@ export interface ObservabilityAdminClientResolvedConfig extends ObservabilityAdm
178
191
  }
179
192
  /**
180
193
  * <p>
181
- * Amazon CloudWatch Obsersavability Admin to control temletry config for your AWS Organization or account. Telemetry config config to discover and understand the state of telemetry configuration for your AWS resources from a central view in the CloudWatch console. Telemetry config simplifies the process of auditing your telemetry collection configurations across multiple resource types across your AWS Organization or account.
194
+ * You can use Amazon CloudWatch Observability Admin to discover and understand the state of telemetry configuration in CloudWatch for your Amazon Web Services Organization or account. This simplifies the process of auditing your telemetry collection configurations across multiple resource types within your Amazon Web Services Organization or account. By providing a consolidated view, it allows you to easily review and manage telemetry settings, helping you ensure proper monitoring and data collection across your Amazon Web Services environment.
182
195
  * For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/telemetry-config-cloudwatch.html">Auditing CloudWatch telemetry configurations</a> in the CloudWatch User Guide.</p>
183
196
  * <p>For information on the permissions you need to use this API, see <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/auth-and-access-control-cw.html">Identity and access management for Amazon CloudWatch</a> in the CloudWatch User Guide.</p>
184
197
  * @public
@@ -0,0 +1,123 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import { CreateTelemetryRuleInput, CreateTelemetryRuleOutput } from "../models/models_0";
4
+ import { ObservabilityAdminClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ObservabilityAdminClient";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link CreateTelemetryRuleCommand}.
14
+ */
15
+ export interface CreateTelemetryRuleCommandInput extends CreateTelemetryRuleInput {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link CreateTelemetryRuleCommand}.
21
+ */
22
+ export interface CreateTelemetryRuleCommandOutput extends CreateTelemetryRuleOutput, __MetadataBearer {
23
+ }
24
+ declare const CreateTelemetryRuleCommand_base: {
25
+ new (input: CreateTelemetryRuleCommandInput): import("@smithy/smithy-client").CommandImpl<CreateTelemetryRuleCommandInput, CreateTelemetryRuleCommandOutput, ObservabilityAdminClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (input: CreateTelemetryRuleCommandInput): import("@smithy/smithy-client").CommandImpl<CreateTelemetryRuleCommandInput, CreateTelemetryRuleCommandOutput, ObservabilityAdminClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <p>
31
+ * Creates a telemetry rule that defines how telemetry should be configured for Amazon Web Services resources in your account. The rule specifies which resources should have telemetry enabled and how that telemetry data should be collected based on resource type, telemetry type, and selection criteria.
32
+ * </p>
33
+ * @example
34
+ * Use a bare-bones client and the command you need to make an API call.
35
+ * ```javascript
36
+ * import { ObservabilityAdminClient, CreateTelemetryRuleCommand } from "@aws-sdk/client-observabilityadmin"; // ES Modules import
37
+ * // const { ObservabilityAdminClient, CreateTelemetryRuleCommand } = require("@aws-sdk/client-observabilityadmin"); // CommonJS import
38
+ * const client = new ObservabilityAdminClient(config);
39
+ * const input = { // CreateTelemetryRuleInput
40
+ * RuleName: "STRING_VALUE", // required
41
+ * Rule: { // TelemetryRule
42
+ * ResourceType: "AWS::EC2::Instance" || "AWS::EC2::VPC" || "AWS::Lambda::Function",
43
+ * TelemetryType: "Logs" || "Metrics" || "Traces", // required
44
+ * DestinationConfiguration: { // TelemetryDestinationConfiguration
45
+ * DestinationType: "cloud-watch-logs",
46
+ * DestinationPattern: "STRING_VALUE",
47
+ * RetentionInDays: Number("int"),
48
+ * VPCFlowLogParameters: { // VPCFlowLogParameters
49
+ * LogFormat: "STRING_VALUE",
50
+ * TrafficType: "STRING_VALUE",
51
+ * MaxAggregationInterval: Number("int"),
52
+ * },
53
+ * },
54
+ * Scope: "STRING_VALUE",
55
+ * SelectionCriteria: "STRING_VALUE",
56
+ * },
57
+ * Tags: { // TagMapInput
58
+ * "<keys>": "STRING_VALUE",
59
+ * },
60
+ * };
61
+ * const command = new CreateTelemetryRuleCommand(input);
62
+ * const response = await client.send(command);
63
+ * // { // CreateTelemetryRuleOutput
64
+ * // RuleArn: "STRING_VALUE",
65
+ * // };
66
+ *
67
+ * ```
68
+ *
69
+ * @param CreateTelemetryRuleCommandInput - {@link CreateTelemetryRuleCommandInput}
70
+ * @returns {@link CreateTelemetryRuleCommandOutput}
71
+ * @see {@link CreateTelemetryRuleCommandInput} for command's `input` shape.
72
+ * @see {@link CreateTelemetryRuleCommandOutput} for command's `response` shape.
73
+ * @see {@link ObservabilityAdminClientResolvedConfig | config} for ObservabilityAdminClient's `config` shape.
74
+ *
75
+ * @throws {@link AccessDeniedException} (client fault)
76
+ * <p>
77
+ * Indicates you don't have permissions to perform the requested operation. The user or role that is making the request must have at least one IAM permissions policy attached that grants the required permissions. For more information, see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/access.html">Access management for Amazon Web Services resources</a> in the IAM user guide.
78
+ * </p>
79
+ *
80
+ * @throws {@link ConflictException} (client fault)
81
+ * <p>
82
+ * The requested operation conflicts with the current state of the specified resource or with another request.
83
+ * </p>
84
+ *
85
+ * @throws {@link InternalServerException} (server fault)
86
+ * <p>
87
+ * Indicates the request has failed to process because of an unknown server error, exception, or failure.
88
+ * </p>
89
+ *
90
+ * @throws {@link ServiceQuotaExceededException} (client fault)
91
+ * <p>
92
+ * The requested operation would exceed the allowed quota for the specified resource type.
93
+ * </p>
94
+ *
95
+ * @throws {@link TooManyRequestsException} (client fault)
96
+ * <p>
97
+ * The request throughput limit was exceeded.
98
+ * </p>
99
+ *
100
+ * @throws {@link ValidationException} (client fault)
101
+ * <p>
102
+ * Indicates input validation failed. Check your request parameters and retry the request.
103
+ * </p>
104
+ *
105
+ * @throws {@link ObservabilityAdminServiceException}
106
+ * <p>Base exception class for all service exceptions from ObservabilityAdmin service.</p>
107
+ *
108
+ *
109
+ * @public
110
+ */
111
+ export declare class CreateTelemetryRuleCommand extends CreateTelemetryRuleCommand_base {
112
+ /** @internal type navigation helper, not in runtime. */
113
+ protected static __types: {
114
+ api: {
115
+ input: CreateTelemetryRuleInput;
116
+ output: CreateTelemetryRuleOutput;
117
+ };
118
+ sdk: {
119
+ input: CreateTelemetryRuleCommandInput;
120
+ output: CreateTelemetryRuleCommandOutput;
121
+ };
122
+ };
123
+ }
@@ -0,0 +1,123 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import { CreateTelemetryRuleForOrganizationInput, CreateTelemetryRuleForOrganizationOutput } from "../models/models_0";
4
+ import { ObservabilityAdminClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ObservabilityAdminClient";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link CreateTelemetryRuleForOrganizationCommand}.
14
+ */
15
+ export interface CreateTelemetryRuleForOrganizationCommandInput extends CreateTelemetryRuleForOrganizationInput {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link CreateTelemetryRuleForOrganizationCommand}.
21
+ */
22
+ export interface CreateTelemetryRuleForOrganizationCommandOutput extends CreateTelemetryRuleForOrganizationOutput, __MetadataBearer {
23
+ }
24
+ declare const CreateTelemetryRuleForOrganizationCommand_base: {
25
+ new (input: CreateTelemetryRuleForOrganizationCommandInput): import("@smithy/smithy-client").CommandImpl<CreateTelemetryRuleForOrganizationCommandInput, CreateTelemetryRuleForOrganizationCommandOutput, ObservabilityAdminClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (input: CreateTelemetryRuleForOrganizationCommandInput): import("@smithy/smithy-client").CommandImpl<CreateTelemetryRuleForOrganizationCommandInput, CreateTelemetryRuleForOrganizationCommandOutput, ObservabilityAdminClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <p>
31
+ * Creates a telemetry rule that applies across an Amazon Web Services Organization. This operation can only be called by the organization's management account or a delegated administrator account.
32
+ * </p>
33
+ * @example
34
+ * Use a bare-bones client and the command you need to make an API call.
35
+ * ```javascript
36
+ * import { ObservabilityAdminClient, CreateTelemetryRuleForOrganizationCommand } from "@aws-sdk/client-observabilityadmin"; // ES Modules import
37
+ * // const { ObservabilityAdminClient, CreateTelemetryRuleForOrganizationCommand } = require("@aws-sdk/client-observabilityadmin"); // CommonJS import
38
+ * const client = new ObservabilityAdminClient(config);
39
+ * const input = { // CreateTelemetryRuleForOrganizationInput
40
+ * RuleName: "STRING_VALUE", // required
41
+ * Rule: { // TelemetryRule
42
+ * ResourceType: "AWS::EC2::Instance" || "AWS::EC2::VPC" || "AWS::Lambda::Function",
43
+ * TelemetryType: "Logs" || "Metrics" || "Traces", // required
44
+ * DestinationConfiguration: { // TelemetryDestinationConfiguration
45
+ * DestinationType: "cloud-watch-logs",
46
+ * DestinationPattern: "STRING_VALUE",
47
+ * RetentionInDays: Number("int"),
48
+ * VPCFlowLogParameters: { // VPCFlowLogParameters
49
+ * LogFormat: "STRING_VALUE",
50
+ * TrafficType: "STRING_VALUE",
51
+ * MaxAggregationInterval: Number("int"),
52
+ * },
53
+ * },
54
+ * Scope: "STRING_VALUE",
55
+ * SelectionCriteria: "STRING_VALUE",
56
+ * },
57
+ * Tags: { // TagMapInput
58
+ * "<keys>": "STRING_VALUE",
59
+ * },
60
+ * };
61
+ * const command = new CreateTelemetryRuleForOrganizationCommand(input);
62
+ * const response = await client.send(command);
63
+ * // { // CreateTelemetryRuleForOrganizationOutput
64
+ * // RuleArn: "STRING_VALUE",
65
+ * // };
66
+ *
67
+ * ```
68
+ *
69
+ * @param CreateTelemetryRuleForOrganizationCommandInput - {@link CreateTelemetryRuleForOrganizationCommandInput}
70
+ * @returns {@link CreateTelemetryRuleForOrganizationCommandOutput}
71
+ * @see {@link CreateTelemetryRuleForOrganizationCommandInput} for command's `input` shape.
72
+ * @see {@link CreateTelemetryRuleForOrganizationCommandOutput} for command's `response` shape.
73
+ * @see {@link ObservabilityAdminClientResolvedConfig | config} for ObservabilityAdminClient's `config` shape.
74
+ *
75
+ * @throws {@link AccessDeniedException} (client fault)
76
+ * <p>
77
+ * Indicates you don't have permissions to perform the requested operation. The user or role that is making the request must have at least one IAM permissions policy attached that grants the required permissions. For more information, see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/access.html">Access management for Amazon Web Services resources</a> in the IAM user guide.
78
+ * </p>
79
+ *
80
+ * @throws {@link ConflictException} (client fault)
81
+ * <p>
82
+ * The requested operation conflicts with the current state of the specified resource or with another request.
83
+ * </p>
84
+ *
85
+ * @throws {@link InternalServerException} (server fault)
86
+ * <p>
87
+ * Indicates the request has failed to process because of an unknown server error, exception, or failure.
88
+ * </p>
89
+ *
90
+ * @throws {@link ServiceQuotaExceededException} (client fault)
91
+ * <p>
92
+ * The requested operation would exceed the allowed quota for the specified resource type.
93
+ * </p>
94
+ *
95
+ * @throws {@link TooManyRequestsException} (client fault)
96
+ * <p>
97
+ * The request throughput limit was exceeded.
98
+ * </p>
99
+ *
100
+ * @throws {@link ValidationException} (client fault)
101
+ * <p>
102
+ * Indicates input validation failed. Check your request parameters and retry the request.
103
+ * </p>
104
+ *
105
+ * @throws {@link ObservabilityAdminServiceException}
106
+ * <p>Base exception class for all service exceptions from ObservabilityAdmin service.</p>
107
+ *
108
+ *
109
+ * @public
110
+ */
111
+ export declare class CreateTelemetryRuleForOrganizationCommand extends CreateTelemetryRuleForOrganizationCommand_base {
112
+ /** @internal type navigation helper, not in runtime. */
113
+ protected static __types: {
114
+ api: {
115
+ input: CreateTelemetryRuleForOrganizationInput;
116
+ output: CreateTelemetryRuleForOrganizationOutput;
117
+ };
118
+ sdk: {
119
+ input: CreateTelemetryRuleForOrganizationCommandInput;
120
+ output: CreateTelemetryRuleForOrganizationCommandOutput;
121
+ };
122
+ };
123
+ }
@@ -0,0 +1,97 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import { DeleteTelemetryRuleInput } from "../models/models_0";
4
+ import { ObservabilityAdminClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ObservabilityAdminClient";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link DeleteTelemetryRuleCommand}.
14
+ */
15
+ export interface DeleteTelemetryRuleCommandInput extends DeleteTelemetryRuleInput {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link DeleteTelemetryRuleCommand}.
21
+ */
22
+ export interface DeleteTelemetryRuleCommandOutput extends __MetadataBearer {
23
+ }
24
+ declare const DeleteTelemetryRuleCommand_base: {
25
+ new (input: DeleteTelemetryRuleCommandInput): import("@smithy/smithy-client").CommandImpl<DeleteTelemetryRuleCommandInput, DeleteTelemetryRuleCommandOutput, ObservabilityAdminClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (input: DeleteTelemetryRuleCommandInput): import("@smithy/smithy-client").CommandImpl<DeleteTelemetryRuleCommandInput, DeleteTelemetryRuleCommandOutput, ObservabilityAdminClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <p>
31
+ * Deletes a telemetry rule from your account. Any telemetry configurations previously created by the rule will remain but no new resources will be configured by this rule.
32
+ * </p>
33
+ * @example
34
+ * Use a bare-bones client and the command you need to make an API call.
35
+ * ```javascript
36
+ * import { ObservabilityAdminClient, DeleteTelemetryRuleCommand } from "@aws-sdk/client-observabilityadmin"; // ES Modules import
37
+ * // const { ObservabilityAdminClient, DeleteTelemetryRuleCommand } = require("@aws-sdk/client-observabilityadmin"); // CommonJS import
38
+ * const client = new ObservabilityAdminClient(config);
39
+ * const input = { // DeleteTelemetryRuleInput
40
+ * RuleIdentifier: "STRING_VALUE", // required
41
+ * };
42
+ * const command = new DeleteTelemetryRuleCommand(input);
43
+ * const response = await client.send(command);
44
+ * // {};
45
+ *
46
+ * ```
47
+ *
48
+ * @param DeleteTelemetryRuleCommandInput - {@link DeleteTelemetryRuleCommandInput}
49
+ * @returns {@link DeleteTelemetryRuleCommandOutput}
50
+ * @see {@link DeleteTelemetryRuleCommandInput} for command's `input` shape.
51
+ * @see {@link DeleteTelemetryRuleCommandOutput} for command's `response` shape.
52
+ * @see {@link ObservabilityAdminClientResolvedConfig | config} for ObservabilityAdminClient's `config` shape.
53
+ *
54
+ * @throws {@link AccessDeniedException} (client fault)
55
+ * <p>
56
+ * Indicates you don't have permissions to perform the requested operation. The user or role that is making the request must have at least one IAM permissions policy attached that grants the required permissions. For more information, see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/access.html">Access management for Amazon Web Services resources</a> in the IAM user guide.
57
+ * </p>
58
+ *
59
+ * @throws {@link InternalServerException} (server fault)
60
+ * <p>
61
+ * Indicates the request has failed to process because of an unknown server error, exception, or failure.
62
+ * </p>
63
+ *
64
+ * @throws {@link ResourceNotFoundException} (client fault)
65
+ * <p>
66
+ * The specified resource (such as a telemetry rule) could not be found.
67
+ * </p>
68
+ *
69
+ * @throws {@link TooManyRequestsException} (client fault)
70
+ * <p>
71
+ * The request throughput limit was exceeded.
72
+ * </p>
73
+ *
74
+ * @throws {@link ValidationException} (client fault)
75
+ * <p>
76
+ * Indicates input validation failed. Check your request parameters and retry the request.
77
+ * </p>
78
+ *
79
+ * @throws {@link ObservabilityAdminServiceException}
80
+ * <p>Base exception class for all service exceptions from ObservabilityAdmin service.</p>
81
+ *
82
+ *
83
+ * @public
84
+ */
85
+ export declare class DeleteTelemetryRuleCommand extends DeleteTelemetryRuleCommand_base {
86
+ /** @internal type navigation helper, not in runtime. */
87
+ protected static __types: {
88
+ api: {
89
+ input: DeleteTelemetryRuleInput;
90
+ output: {};
91
+ };
92
+ sdk: {
93
+ input: DeleteTelemetryRuleCommandInput;
94
+ output: DeleteTelemetryRuleCommandOutput;
95
+ };
96
+ };
97
+ }
@@ -0,0 +1,97 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import { DeleteTelemetryRuleForOrganizationInput } from "../models/models_0";
4
+ import { ObservabilityAdminClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ObservabilityAdminClient";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link DeleteTelemetryRuleForOrganizationCommand}.
14
+ */
15
+ export interface DeleteTelemetryRuleForOrganizationCommandInput extends DeleteTelemetryRuleForOrganizationInput {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link DeleteTelemetryRuleForOrganizationCommand}.
21
+ */
22
+ export interface DeleteTelemetryRuleForOrganizationCommandOutput extends __MetadataBearer {
23
+ }
24
+ declare const DeleteTelemetryRuleForOrganizationCommand_base: {
25
+ new (input: DeleteTelemetryRuleForOrganizationCommandInput): import("@smithy/smithy-client").CommandImpl<DeleteTelemetryRuleForOrganizationCommandInput, DeleteTelemetryRuleForOrganizationCommandOutput, ObservabilityAdminClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (input: DeleteTelemetryRuleForOrganizationCommandInput): import("@smithy/smithy-client").CommandImpl<DeleteTelemetryRuleForOrganizationCommandInput, DeleteTelemetryRuleForOrganizationCommandOutput, ObservabilityAdminClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <p>
31
+ * Deletes an organization-wide telemetry rule. This operation can only be called by the organization's management account or a delegated administrator account.
32
+ * </p>
33
+ * @example
34
+ * Use a bare-bones client and the command you need to make an API call.
35
+ * ```javascript
36
+ * import { ObservabilityAdminClient, DeleteTelemetryRuleForOrganizationCommand } from "@aws-sdk/client-observabilityadmin"; // ES Modules import
37
+ * // const { ObservabilityAdminClient, DeleteTelemetryRuleForOrganizationCommand } = require("@aws-sdk/client-observabilityadmin"); // CommonJS import
38
+ * const client = new ObservabilityAdminClient(config);
39
+ * const input = { // DeleteTelemetryRuleForOrganizationInput
40
+ * RuleIdentifier: "STRING_VALUE", // required
41
+ * };
42
+ * const command = new DeleteTelemetryRuleForOrganizationCommand(input);
43
+ * const response = await client.send(command);
44
+ * // {};
45
+ *
46
+ * ```
47
+ *
48
+ * @param DeleteTelemetryRuleForOrganizationCommandInput - {@link DeleteTelemetryRuleForOrganizationCommandInput}
49
+ * @returns {@link DeleteTelemetryRuleForOrganizationCommandOutput}
50
+ * @see {@link DeleteTelemetryRuleForOrganizationCommandInput} for command's `input` shape.
51
+ * @see {@link DeleteTelemetryRuleForOrganizationCommandOutput} for command's `response` shape.
52
+ * @see {@link ObservabilityAdminClientResolvedConfig | config} for ObservabilityAdminClient's `config` shape.
53
+ *
54
+ * @throws {@link AccessDeniedException} (client fault)
55
+ * <p>
56
+ * Indicates you don't have permissions to perform the requested operation. The user or role that is making the request must have at least one IAM permissions policy attached that grants the required permissions. For more information, see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/access.html">Access management for Amazon Web Services resources</a> in the IAM user guide.
57
+ * </p>
58
+ *
59
+ * @throws {@link InternalServerException} (server fault)
60
+ * <p>
61
+ * Indicates the request has failed to process because of an unknown server error, exception, or failure.
62
+ * </p>
63
+ *
64
+ * @throws {@link ResourceNotFoundException} (client fault)
65
+ * <p>
66
+ * The specified resource (such as a telemetry rule) could not be found.
67
+ * </p>
68
+ *
69
+ * @throws {@link TooManyRequestsException} (client fault)
70
+ * <p>
71
+ * The request throughput limit was exceeded.
72
+ * </p>
73
+ *
74
+ * @throws {@link ValidationException} (client fault)
75
+ * <p>
76
+ * Indicates input validation failed. Check your request parameters and retry the request.
77
+ * </p>
78
+ *
79
+ * @throws {@link ObservabilityAdminServiceException}
80
+ * <p>Base exception class for all service exceptions from ObservabilityAdmin service.</p>
81
+ *
82
+ *
83
+ * @public
84
+ */
85
+ export declare class DeleteTelemetryRuleForOrganizationCommand extends DeleteTelemetryRuleForOrganizationCommand_base {
86
+ /** @internal type navigation helper, not in runtime. */
87
+ protected static __types: {
88
+ api: {
89
+ input: DeleteTelemetryRuleForOrganizationInput;
90
+ output: {};
91
+ };
92
+ sdk: {
93
+ input: DeleteTelemetryRuleForOrganizationCommandInput;
94
+ output: DeleteTelemetryRuleForOrganizationCommandOutput;
95
+ };
96
+ };
97
+ }
@@ -54,7 +54,7 @@ declare const GetTelemetryEvaluationStatusCommand_base: {
54
54
  *
55
55
  * @throws {@link AccessDeniedException} (client fault)
56
56
  * <p>
57
- * Indicates you don't have permissions to perform the requested operation. The user or role that is making the request must have at least one IAM permissions policy attached that grants the required permissions. For more information, see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/access.html">Access management for AWS resources</a> in the IAM user guide.
57
+ * Indicates you don't have permissions to perform the requested operation. The user or role that is making the request must have at least one IAM permissions policy attached that grants the required permissions. For more information, see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/access.html">Access management for Amazon Web Services resources</a> in the IAM user guide.
58
58
  * </p>
59
59
  *
60
60
  * @throws {@link InternalServerException} (server fault)
@@ -62,6 +62,11 @@ declare const GetTelemetryEvaluationStatusCommand_base: {
62
62
  * Indicates the request has failed to process because of an unknown server error, exception, or failure.
63
63
  * </p>
64
64
  *
65
+ * @throws {@link TooManyRequestsException} (client fault)
66
+ * <p>
67
+ * The request throughput limit was exceeded.
68
+ * </p>
69
+ *
65
70
  * @throws {@link ObservabilityAdminServiceException}
66
71
  * <p>Base exception class for all service exceptions from ObservabilityAdmin service.</p>
67
72
  *
@@ -28,7 +28,7 @@ declare const GetTelemetryEvaluationStatusForOrganizationCommand_base: {
28
28
  };
29
29
  /**
30
30
  * <p>
31
- * This returns the onboarding status of the telemetry configuration feature for the organization. It can only be called by a Management Account of an AWS Organization or an assigned Delegated Admin Account of AWS CloudWatch telemetry config.
31
+ * This returns the onboarding status of the telemetry configuration feature for the organization. It can only be called by a Management Account of an Amazon Web Services Organization or an assigned Delegated Admin Account of Amazon CloudWatch telemetry config.
32
32
  * </p>
33
33
  * @example
34
34
  * Use a bare-bones client and the command you need to make an API call.
@@ -54,7 +54,7 @@ declare const GetTelemetryEvaluationStatusForOrganizationCommand_base: {
54
54
  *
55
55
  * @throws {@link AccessDeniedException} (client fault)
56
56
  * <p>
57
- * Indicates you don't have permissions to perform the requested operation. The user or role that is making the request must have at least one IAM permissions policy attached that grants the required permissions. For more information, see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/access.html">Access management for AWS resources</a> in the IAM user guide.
57
+ * Indicates you don't have permissions to perform the requested operation. The user or role that is making the request must have at least one IAM permissions policy attached that grants the required permissions. For more information, see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/access.html">Access management for Amazon Web Services resources</a> in the IAM user guide.
58
58
  * </p>
59
59
  *
60
60
  * @throws {@link InternalServerException} (server fault)
@@ -62,6 +62,11 @@ declare const GetTelemetryEvaluationStatusForOrganizationCommand_base: {
62
62
  * Indicates the request has failed to process because of an unknown server error, exception, or failure.
63
63
  * </p>
64
64
  *
65
+ * @throws {@link TooManyRequestsException} (client fault)
66
+ * <p>
67
+ * The request throughput limit was exceeded.
68
+ * </p>
69
+ *
65
70
  * @throws {@link ValidationException} (client fault)
66
71
  * <p>
67
72
  * Indicates input validation failed. Check your request parameters and retry the request.