@aws-sdk/client-oam 3.218.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 (143) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +216 -0
  3. package/dist-cjs/OAM.js +232 -0
  4. package/dist-cjs/OAMClient.js +40 -0
  5. package/dist-cjs/commands/CreateLinkCommand.js +46 -0
  6. package/dist-cjs/commands/CreateSinkCommand.js +46 -0
  7. package/dist-cjs/commands/DeleteLinkCommand.js +46 -0
  8. package/dist-cjs/commands/DeleteSinkCommand.js +46 -0
  9. package/dist-cjs/commands/GetLinkCommand.js +46 -0
  10. package/dist-cjs/commands/GetSinkCommand.js +46 -0
  11. package/dist-cjs/commands/GetSinkPolicyCommand.js +46 -0
  12. package/dist-cjs/commands/ListAttachedLinksCommand.js +46 -0
  13. package/dist-cjs/commands/ListLinksCommand.js +46 -0
  14. package/dist-cjs/commands/ListSinksCommand.js +46 -0
  15. package/dist-cjs/commands/ListTagsForResourceCommand.js +46 -0
  16. package/dist-cjs/commands/PutSinkPolicyCommand.js +46 -0
  17. package/dist-cjs/commands/TagResourceCommand.js +46 -0
  18. package/dist-cjs/commands/UntagResourceCommand.js +46 -0
  19. package/dist-cjs/commands/UpdateLinkCommand.js +46 -0
  20. package/dist-cjs/commands/index.js +18 -0
  21. package/dist-cjs/endpoint/EndpointParameters.js +12 -0
  22. package/dist-cjs/endpoint/endpointResolver.js +12 -0
  23. package/dist-cjs/endpoint/ruleset.js +312 -0
  24. package/dist-cjs/index.js +11 -0
  25. package/dist-cjs/models/OAMServiceException.js +11 -0
  26. package/dist-cjs/models/index.js +4 -0
  27. package/dist-cjs/models/models_0.js +258 -0
  28. package/dist-cjs/pagination/Interfaces.js +2 -0
  29. package/dist-cjs/pagination/ListAttachedLinksPaginator.js +36 -0
  30. package/dist-cjs/pagination/ListLinksPaginator.js +36 -0
  31. package/dist-cjs/pagination/ListSinksPaginator.js +36 -0
  32. package/dist-cjs/pagination/index.js +7 -0
  33. package/dist-cjs/protocols/Aws_restJson1.js +1313 -0
  34. package/dist-cjs/runtimeConfig.browser.js +42 -0
  35. package/dist-cjs/runtimeConfig.js +50 -0
  36. package/dist-cjs/runtimeConfig.native.js +15 -0
  37. package/dist-cjs/runtimeConfig.shared.js +18 -0
  38. package/dist-es/OAM.js +228 -0
  39. package/dist-es/OAMClient.js +36 -0
  40. package/dist-es/commands/CreateLinkCommand.js +42 -0
  41. package/dist-es/commands/CreateSinkCommand.js +42 -0
  42. package/dist-es/commands/DeleteLinkCommand.js +42 -0
  43. package/dist-es/commands/DeleteSinkCommand.js +42 -0
  44. package/dist-es/commands/GetLinkCommand.js +42 -0
  45. package/dist-es/commands/GetSinkCommand.js +42 -0
  46. package/dist-es/commands/GetSinkPolicyCommand.js +42 -0
  47. package/dist-es/commands/ListAttachedLinksCommand.js +42 -0
  48. package/dist-es/commands/ListLinksCommand.js +42 -0
  49. package/dist-es/commands/ListSinksCommand.js +42 -0
  50. package/dist-es/commands/ListTagsForResourceCommand.js +42 -0
  51. package/dist-es/commands/PutSinkPolicyCommand.js +42 -0
  52. package/dist-es/commands/TagResourceCommand.js +42 -0
  53. package/dist-es/commands/UntagResourceCommand.js +42 -0
  54. package/dist-es/commands/UpdateLinkCommand.js +42 -0
  55. package/dist-es/commands/index.js +15 -0
  56. package/dist-es/endpoint/EndpointParameters.js +8 -0
  57. package/dist-es/endpoint/endpointResolver.js +8 -0
  58. package/dist-es/endpoint/ruleset.js +309 -0
  59. package/dist-es/index.js +6 -0
  60. package/dist-es/models/OAMServiceException.js +7 -0
  61. package/dist-es/models/index.js +1 -0
  62. package/dist-es/models/models_0.js +214 -0
  63. package/dist-es/pagination/Interfaces.js +1 -0
  64. package/dist-es/pagination/ListAttachedLinksPaginator.js +32 -0
  65. package/dist-es/pagination/ListLinksPaginator.js +32 -0
  66. package/dist-es/pagination/ListSinksPaginator.js +32 -0
  67. package/dist-es/pagination/index.js +4 -0
  68. package/dist-es/protocols/Aws_restJson1.js +1280 -0
  69. package/dist-es/runtimeConfig.browser.js +37 -0
  70. package/dist-es/runtimeConfig.js +45 -0
  71. package/dist-es/runtimeConfig.native.js +11 -0
  72. package/dist-es/runtimeConfig.shared.js +14 -0
  73. package/dist-types/OAM.d.ts +194 -0
  74. package/dist-types/OAMClient.d.ts +167 -0
  75. package/dist-types/commands/CreateLinkCommand.d.ts +46 -0
  76. package/dist-types/commands/CreateSinkCommand.d.ts +43 -0
  77. package/dist-types/commands/DeleteLinkCommand.d.ts +38 -0
  78. package/dist-types/commands/DeleteSinkCommand.d.ts +37 -0
  79. package/dist-types/commands/GetLinkCommand.d.ts +38 -0
  80. package/dist-types/commands/GetSinkCommand.d.ts +38 -0
  81. package/dist-types/commands/GetSinkPolicyCommand.d.ts +38 -0
  82. package/dist-types/commands/ListAttachedLinksCommand.d.ts +39 -0
  83. package/dist-types/commands/ListLinksCommand.d.ts +39 -0
  84. package/dist-types/commands/ListSinksCommand.d.ts +37 -0
  85. package/dist-types/commands/ListTagsForResourceCommand.d.ts +37 -0
  86. package/dist-types/commands/PutSinkPolicyCommand.d.ts +60 -0
  87. package/dist-types/commands/TagResourceCommand.d.ts +53 -0
  88. package/dist-types/commands/UntagResourceCommand.d.ts +43 -0
  89. package/dist-types/commands/UpdateLinkCommand.d.ts +40 -0
  90. package/dist-types/commands/index.d.ts +15 -0
  91. package/dist-types/endpoint/EndpointParameters.d.ts +19 -0
  92. package/dist-types/endpoint/endpointResolver.d.ts +5 -0
  93. package/dist-types/endpoint/ruleset.d.ts +2 -0
  94. package/dist-types/index.d.ts +6 -0
  95. package/dist-types/models/OAMServiceException.d.ts +10 -0
  96. package/dist-types/models/index.d.ts +1 -0
  97. package/dist-types/models/models_0.d.ts +724 -0
  98. package/dist-types/pagination/Interfaces.d.ts +6 -0
  99. package/dist-types/pagination/ListAttachedLinksPaginator.d.ts +4 -0
  100. package/dist-types/pagination/ListLinksPaginator.d.ts +4 -0
  101. package/dist-types/pagination/ListSinksPaginator.d.ts +4 -0
  102. package/dist-types/pagination/index.d.ts +4 -0
  103. package/dist-types/protocols/Aws_restJson1.d.ts +47 -0
  104. package/dist-types/runtimeConfig.browser.d.ts +42 -0
  105. package/dist-types/runtimeConfig.d.ts +42 -0
  106. package/dist-types/runtimeConfig.native.d.ts +41 -0
  107. package/dist-types/runtimeConfig.shared.d.ts +16 -0
  108. package/dist-types/ts3.4/OAM.d.ts +259 -0
  109. package/dist-types/ts3.4/OAMClient.d.ts +200 -0
  110. package/dist-types/ts3.4/commands/CreateLinkCommand.d.ts +34 -0
  111. package/dist-types/ts3.4/commands/CreateSinkCommand.d.ts +34 -0
  112. package/dist-types/ts3.4/commands/DeleteLinkCommand.d.ts +34 -0
  113. package/dist-types/ts3.4/commands/DeleteSinkCommand.d.ts +34 -0
  114. package/dist-types/ts3.4/commands/GetLinkCommand.d.ts +32 -0
  115. package/dist-types/ts3.4/commands/GetSinkCommand.d.ts +32 -0
  116. package/dist-types/ts3.4/commands/GetSinkPolicyCommand.d.ts +34 -0
  117. package/dist-types/ts3.4/commands/ListAttachedLinksCommand.d.ts +37 -0
  118. package/dist-types/ts3.4/commands/ListLinksCommand.d.ts +34 -0
  119. package/dist-types/ts3.4/commands/ListSinksCommand.d.ts +34 -0
  120. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +38 -0
  121. package/dist-types/ts3.4/commands/PutSinkPolicyCommand.d.ts +34 -0
  122. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +34 -0
  123. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +34 -0
  124. package/dist-types/ts3.4/commands/UpdateLinkCommand.d.ts +34 -0
  125. package/dist-types/ts3.4/commands/index.d.ts +15 -0
  126. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +34 -0
  127. package/dist-types/ts3.4/endpoint/endpointResolver.d.ts +8 -0
  128. package/dist-types/ts3.4/endpoint/ruleset.d.ts +2 -0
  129. package/dist-types/ts3.4/index.d.ts +6 -0
  130. package/dist-types/ts3.4/models/OAMServiceException.d.ts +7 -0
  131. package/dist-types/ts3.4/models/index.d.ts +1 -0
  132. package/dist-types/ts3.4/models/models_0.d.ts +313 -0
  133. package/dist-types/ts3.4/pagination/Interfaces.d.ts +6 -0
  134. package/dist-types/ts3.4/pagination/ListAttachedLinksPaginator.d.ts +11 -0
  135. package/dist-types/ts3.4/pagination/ListLinksPaginator.d.ts +11 -0
  136. package/dist-types/ts3.4/pagination/ListSinksPaginator.d.ts +11 -0
  137. package/dist-types/ts3.4/pagination/index.d.ts +4 -0
  138. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +185 -0
  139. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +88 -0
  140. package/dist-types/ts3.4/runtimeConfig.d.ts +88 -0
  141. package/dist-types/ts3.4/runtimeConfig.native.d.ts +77 -0
  142. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +16 -0
  143. package/package.json +101 -0
@@ -0,0 +1,37 @@
1
+ import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
2
+ import { Command as $Command } from "@aws-sdk/smithy-client";
3
+ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
4
+ import { DeleteSinkInput, DeleteSinkOutput } from "../models/models_0";
5
+ import { OAMClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../OAMClient";
6
+ export interface DeleteSinkCommandInput extends DeleteSinkInput {
7
+ }
8
+ export interface DeleteSinkCommandOutput extends DeleteSinkOutput, __MetadataBearer {
9
+ }
10
+ /**
11
+ * <p>Deletes a sink. You must delete all links to a sink before you can delete that sink.</p>
12
+ * @example
13
+ * Use a bare-bones client and the command you need to make an API call.
14
+ * ```javascript
15
+ * import { OAMClient, DeleteSinkCommand } from "@aws-sdk/client-oam"; // ES Modules import
16
+ * // const { OAMClient, DeleteSinkCommand } = require("@aws-sdk/client-oam"); // CommonJS import
17
+ * const client = new OAMClient(config);
18
+ * const command = new DeleteSinkCommand(input);
19
+ * const response = await client.send(command);
20
+ * ```
21
+ *
22
+ * @see {@link DeleteSinkCommandInput} for command's `input` shape.
23
+ * @see {@link DeleteSinkCommandOutput} for command's `response` shape.
24
+ * @see {@link OAMClientResolvedConfig | config} for OAMClient's `config` shape.
25
+ *
26
+ */
27
+ export declare class DeleteSinkCommand extends $Command<DeleteSinkCommandInput, DeleteSinkCommandOutput, OAMClientResolvedConfig> {
28
+ readonly input: DeleteSinkCommandInput;
29
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
30
+ constructor(input: DeleteSinkCommandInput);
31
+ /**
32
+ * @internal
33
+ */
34
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: OAMClientResolvedConfig, options?: __HttpHandlerOptions): Handler<DeleteSinkCommandInput, DeleteSinkCommandOutput>;
35
+ private serialize;
36
+ private deserialize;
37
+ }
@@ -0,0 +1,38 @@
1
+ import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
2
+ import { Command as $Command } from "@aws-sdk/smithy-client";
3
+ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
4
+ import { GetLinkInput, GetLinkOutput } from "../models/models_0";
5
+ import { OAMClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../OAMClient";
6
+ export interface GetLinkCommandInput extends GetLinkInput {
7
+ }
8
+ export interface GetLinkCommandOutput extends GetLinkOutput, __MetadataBearer {
9
+ }
10
+ /**
11
+ * <p>Returns complete information about one link.</p>
12
+ * <p>To use this operation, provide the link ARN. To retrieve a list of link ARNs, use <a href="https://docs.aws.amazon.com/OAM/latest/APIReference/API_ListLinks.html">ListLinks</a>.</p>
13
+ * @example
14
+ * Use a bare-bones client and the command you need to make an API call.
15
+ * ```javascript
16
+ * import { OAMClient, GetLinkCommand } from "@aws-sdk/client-oam"; // ES Modules import
17
+ * // const { OAMClient, GetLinkCommand } = require("@aws-sdk/client-oam"); // CommonJS import
18
+ * const client = new OAMClient(config);
19
+ * const command = new GetLinkCommand(input);
20
+ * const response = await client.send(command);
21
+ * ```
22
+ *
23
+ * @see {@link GetLinkCommandInput} for command's `input` shape.
24
+ * @see {@link GetLinkCommandOutput} for command's `response` shape.
25
+ * @see {@link OAMClientResolvedConfig | config} for OAMClient's `config` shape.
26
+ *
27
+ */
28
+ export declare class GetLinkCommand extends $Command<GetLinkCommandInput, GetLinkCommandOutput, OAMClientResolvedConfig> {
29
+ readonly input: GetLinkCommandInput;
30
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
31
+ constructor(input: GetLinkCommandInput);
32
+ /**
33
+ * @internal
34
+ */
35
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: OAMClientResolvedConfig, options?: __HttpHandlerOptions): Handler<GetLinkCommandInput, GetLinkCommandOutput>;
36
+ private serialize;
37
+ private deserialize;
38
+ }
@@ -0,0 +1,38 @@
1
+ import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
2
+ import { Command as $Command } from "@aws-sdk/smithy-client";
3
+ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
4
+ import { GetSinkInput, GetSinkOutput } from "../models/models_0";
5
+ import { OAMClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../OAMClient";
6
+ export interface GetSinkCommandInput extends GetSinkInput {
7
+ }
8
+ export interface GetSinkCommandOutput extends GetSinkOutput, __MetadataBearer {
9
+ }
10
+ /**
11
+ * <p>Returns complete information about one monitoring account sink.</p>
12
+ * <p>To use this operation, provide the sink ARN. To retrieve a list of sink ARNs, use <a href="https://docs.aws.amazon.com/OAM/latest/APIReference/API_ListSinks.html">ListSinks</a>.</p>
13
+ * @example
14
+ * Use a bare-bones client and the command you need to make an API call.
15
+ * ```javascript
16
+ * import { OAMClient, GetSinkCommand } from "@aws-sdk/client-oam"; // ES Modules import
17
+ * // const { OAMClient, GetSinkCommand } = require("@aws-sdk/client-oam"); // CommonJS import
18
+ * const client = new OAMClient(config);
19
+ * const command = new GetSinkCommand(input);
20
+ * const response = await client.send(command);
21
+ * ```
22
+ *
23
+ * @see {@link GetSinkCommandInput} for command's `input` shape.
24
+ * @see {@link GetSinkCommandOutput} for command's `response` shape.
25
+ * @see {@link OAMClientResolvedConfig | config} for OAMClient's `config` shape.
26
+ *
27
+ */
28
+ export declare class GetSinkCommand extends $Command<GetSinkCommandInput, GetSinkCommandOutput, OAMClientResolvedConfig> {
29
+ readonly input: GetSinkCommandInput;
30
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
31
+ constructor(input: GetSinkCommandInput);
32
+ /**
33
+ * @internal
34
+ */
35
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: OAMClientResolvedConfig, options?: __HttpHandlerOptions): Handler<GetSinkCommandInput, GetSinkCommandOutput>;
36
+ private serialize;
37
+ private deserialize;
38
+ }
@@ -0,0 +1,38 @@
1
+ import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
2
+ import { Command as $Command } from "@aws-sdk/smithy-client";
3
+ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
4
+ import { GetSinkPolicyInput, GetSinkPolicyOutput } from "../models/models_0";
5
+ import { OAMClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../OAMClient";
6
+ export interface GetSinkPolicyCommandInput extends GetSinkPolicyInput {
7
+ }
8
+ export interface GetSinkPolicyCommandOutput extends GetSinkPolicyOutput, __MetadataBearer {
9
+ }
10
+ /**
11
+ * <p>Returns the current sink policy attached to this sink. The sink policy specifies what
12
+ * accounts can attach to this sink as source accounts, and what types of data they can share.</p>
13
+ * @example
14
+ * Use a bare-bones client and the command you need to make an API call.
15
+ * ```javascript
16
+ * import { OAMClient, GetSinkPolicyCommand } from "@aws-sdk/client-oam"; // ES Modules import
17
+ * // const { OAMClient, GetSinkPolicyCommand } = require("@aws-sdk/client-oam"); // CommonJS import
18
+ * const client = new OAMClient(config);
19
+ * const command = new GetSinkPolicyCommand(input);
20
+ * const response = await client.send(command);
21
+ * ```
22
+ *
23
+ * @see {@link GetSinkPolicyCommandInput} for command's `input` shape.
24
+ * @see {@link GetSinkPolicyCommandOutput} for command's `response` shape.
25
+ * @see {@link OAMClientResolvedConfig | config} for OAMClient's `config` shape.
26
+ *
27
+ */
28
+ export declare class GetSinkPolicyCommand extends $Command<GetSinkPolicyCommandInput, GetSinkPolicyCommandOutput, OAMClientResolvedConfig> {
29
+ readonly input: GetSinkPolicyCommandInput;
30
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
31
+ constructor(input: GetSinkPolicyCommandInput);
32
+ /**
33
+ * @internal
34
+ */
35
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: OAMClientResolvedConfig, options?: __HttpHandlerOptions): Handler<GetSinkPolicyCommandInput, GetSinkPolicyCommandOutput>;
36
+ private serialize;
37
+ private deserialize;
38
+ }
@@ -0,0 +1,39 @@
1
+ import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
2
+ import { Command as $Command } from "@aws-sdk/smithy-client";
3
+ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
4
+ import { ListAttachedLinksInput, ListAttachedLinksOutput } from "../models/models_0";
5
+ import { OAMClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../OAMClient";
6
+ export interface ListAttachedLinksCommandInput extends ListAttachedLinksInput {
7
+ }
8
+ export interface ListAttachedLinksCommandOutput extends ListAttachedLinksOutput, __MetadataBearer {
9
+ }
10
+ /**
11
+ * <p>Returns a list of source account links that are linked to this monitoring account sink.</p>
12
+ * <p>To use this operation, provide the sink ARN. To retrieve a list of sink ARNs, use <a href="https://docs.aws.amazon.com/OAM/latest/APIReference/API_ListSinks.html">ListSinks</a>.</p>
13
+ * <p>To find a list of links for one source account, use <a href="https://docs.aws.amazon.com/OAM/latest/APIReference/API_ListLinks.html">ListLinks</a>.</p>
14
+ * @example
15
+ * Use a bare-bones client and the command you need to make an API call.
16
+ * ```javascript
17
+ * import { OAMClient, ListAttachedLinksCommand } from "@aws-sdk/client-oam"; // ES Modules import
18
+ * // const { OAMClient, ListAttachedLinksCommand } = require("@aws-sdk/client-oam"); // CommonJS import
19
+ * const client = new OAMClient(config);
20
+ * const command = new ListAttachedLinksCommand(input);
21
+ * const response = await client.send(command);
22
+ * ```
23
+ *
24
+ * @see {@link ListAttachedLinksCommandInput} for command's `input` shape.
25
+ * @see {@link ListAttachedLinksCommandOutput} for command's `response` shape.
26
+ * @see {@link OAMClientResolvedConfig | config} for OAMClient's `config` shape.
27
+ *
28
+ */
29
+ export declare class ListAttachedLinksCommand extends $Command<ListAttachedLinksCommandInput, ListAttachedLinksCommandOutput, OAMClientResolvedConfig> {
30
+ readonly input: ListAttachedLinksCommandInput;
31
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
32
+ constructor(input: ListAttachedLinksCommandInput);
33
+ /**
34
+ * @internal
35
+ */
36
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: OAMClientResolvedConfig, options?: __HttpHandlerOptions): Handler<ListAttachedLinksCommandInput, ListAttachedLinksCommandOutput>;
37
+ private serialize;
38
+ private deserialize;
39
+ }
@@ -0,0 +1,39 @@
1
+ import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
2
+ import { Command as $Command } from "@aws-sdk/smithy-client";
3
+ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
4
+ import { ListLinksInput, ListLinksOutput } from "../models/models_0";
5
+ import { OAMClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../OAMClient";
6
+ export interface ListLinksCommandInput extends ListLinksInput {
7
+ }
8
+ export interface ListLinksCommandOutput extends ListLinksOutput, __MetadataBearer {
9
+ }
10
+ /**
11
+ * <p>Use this operation in a source account to return a list of links to monitoring account sinks that
12
+ * this source account has.</p>
13
+ * <p>To find a list of links for one monitoring account sink, use <a href="https://docs.aws.amazon.com/OAM/latest/APIReference/API_ListAttachedLinks.html">ListAttachedLinks</a> from within the monitoring account.</p>
14
+ * @example
15
+ * Use a bare-bones client and the command you need to make an API call.
16
+ * ```javascript
17
+ * import { OAMClient, ListLinksCommand } from "@aws-sdk/client-oam"; // ES Modules import
18
+ * // const { OAMClient, ListLinksCommand } = require("@aws-sdk/client-oam"); // CommonJS import
19
+ * const client = new OAMClient(config);
20
+ * const command = new ListLinksCommand(input);
21
+ * const response = await client.send(command);
22
+ * ```
23
+ *
24
+ * @see {@link ListLinksCommandInput} for command's `input` shape.
25
+ * @see {@link ListLinksCommandOutput} for command's `response` shape.
26
+ * @see {@link OAMClientResolvedConfig | config} for OAMClient's `config` shape.
27
+ *
28
+ */
29
+ export declare class ListLinksCommand extends $Command<ListLinksCommandInput, ListLinksCommandOutput, OAMClientResolvedConfig> {
30
+ readonly input: ListLinksCommandInput;
31
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
32
+ constructor(input: ListLinksCommandInput);
33
+ /**
34
+ * @internal
35
+ */
36
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: OAMClientResolvedConfig, options?: __HttpHandlerOptions): Handler<ListLinksCommandInput, ListLinksCommandOutput>;
37
+ private serialize;
38
+ private deserialize;
39
+ }
@@ -0,0 +1,37 @@
1
+ import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
2
+ import { Command as $Command } from "@aws-sdk/smithy-client";
3
+ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
4
+ import { ListSinksInput, ListSinksOutput } from "../models/models_0";
5
+ import { OAMClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../OAMClient";
6
+ export interface ListSinksCommandInput extends ListSinksInput {
7
+ }
8
+ export interface ListSinksCommandOutput extends ListSinksOutput, __MetadataBearer {
9
+ }
10
+ /**
11
+ * <p>Use this operation in a monitoring account to return the list of sinks created in that account.</p>
12
+ * @example
13
+ * Use a bare-bones client and the command you need to make an API call.
14
+ * ```javascript
15
+ * import { OAMClient, ListSinksCommand } from "@aws-sdk/client-oam"; // ES Modules import
16
+ * // const { OAMClient, ListSinksCommand } = require("@aws-sdk/client-oam"); // CommonJS import
17
+ * const client = new OAMClient(config);
18
+ * const command = new ListSinksCommand(input);
19
+ * const response = await client.send(command);
20
+ * ```
21
+ *
22
+ * @see {@link ListSinksCommandInput} for command's `input` shape.
23
+ * @see {@link ListSinksCommandOutput} for command's `response` shape.
24
+ * @see {@link OAMClientResolvedConfig | config} for OAMClient's `config` shape.
25
+ *
26
+ */
27
+ export declare class ListSinksCommand extends $Command<ListSinksCommandInput, ListSinksCommandOutput, OAMClientResolvedConfig> {
28
+ readonly input: ListSinksCommandInput;
29
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
30
+ constructor(input: ListSinksCommandInput);
31
+ /**
32
+ * @internal
33
+ */
34
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: OAMClientResolvedConfig, options?: __HttpHandlerOptions): Handler<ListSinksCommandInput, ListSinksCommandOutput>;
35
+ private serialize;
36
+ private deserialize;
37
+ }
@@ -0,0 +1,37 @@
1
+ import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
2
+ import { Command as $Command } from "@aws-sdk/smithy-client";
3
+ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
4
+ import { ListTagsForResourceInput, ListTagsForResourceOutput } from "../models/models_0";
5
+ import { OAMClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../OAMClient";
6
+ export interface ListTagsForResourceCommandInput extends ListTagsForResourceInput {
7
+ }
8
+ export interface ListTagsForResourceCommandOutput extends ListTagsForResourceOutput, __MetadataBearer {
9
+ }
10
+ /**
11
+ * <p>Displays the tags associated with a resource. Both sinks and links support tagging.</p>
12
+ * @example
13
+ * Use a bare-bones client and the command you need to make an API call.
14
+ * ```javascript
15
+ * import { OAMClient, ListTagsForResourceCommand } from "@aws-sdk/client-oam"; // ES Modules import
16
+ * // const { OAMClient, ListTagsForResourceCommand } = require("@aws-sdk/client-oam"); // CommonJS import
17
+ * const client = new OAMClient(config);
18
+ * const command = new ListTagsForResourceCommand(input);
19
+ * const response = await client.send(command);
20
+ * ```
21
+ *
22
+ * @see {@link ListTagsForResourceCommandInput} for command's `input` shape.
23
+ * @see {@link ListTagsForResourceCommandOutput} for command's `response` shape.
24
+ * @see {@link OAMClientResolvedConfig | config} for OAMClient's `config` shape.
25
+ *
26
+ */
27
+ export declare class ListTagsForResourceCommand extends $Command<ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput, OAMClientResolvedConfig> {
28
+ readonly input: ListTagsForResourceCommandInput;
29
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
30
+ constructor(input: ListTagsForResourceCommandInput);
31
+ /**
32
+ * @internal
33
+ */
34
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: OAMClientResolvedConfig, options?: __HttpHandlerOptions): Handler<ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput>;
35
+ private serialize;
36
+ private deserialize;
37
+ }
@@ -0,0 +1,60 @@
1
+ import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
2
+ import { Command as $Command } from "@aws-sdk/smithy-client";
3
+ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
4
+ import { PutSinkPolicyInput, PutSinkPolicyOutput } from "../models/models_0";
5
+ import { OAMClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../OAMClient";
6
+ export interface PutSinkPolicyCommandInput extends PutSinkPolicyInput {
7
+ }
8
+ export interface PutSinkPolicyCommandOutput extends PutSinkPolicyOutput, __MetadataBearer {
9
+ }
10
+ /**
11
+ * <p>Creates or updates the resource policy that grants permissions to source
12
+ * accounts to link to the monitoring account sink. When you create a sink policy, you can grant
13
+ * permissions to all accounts in an organization or to individual accounts.</p>
14
+ * <p>You can also use a sink policy to limit the types of data that is shared. The three types that
15
+ * you can allow or deny are:</p>
16
+ * <ul>
17
+ * <li>
18
+ * <p>
19
+ * <b>Metrics</b> - Specify with
20
+ * <code>AWS::CloudWatch::Metric</code>
21
+ * </p>
22
+ * </li>
23
+ * <li>
24
+ * <p>
25
+ * <b>Log groups</b> - Specify with <code>AWS::Logs::LogGroup</code>
26
+ * </p>
27
+ * </li>
28
+ * <li>
29
+ * <p>
30
+ * <b>Traces</b> - Specify with <code>AWS::XRay::Trace</code>
31
+ * </p>
32
+ * </li>
33
+ * </ul>
34
+ * <p>See the examples in this section to see how to specify permitted source accounts and data types.</p>
35
+ * @example
36
+ * Use a bare-bones client and the command you need to make an API call.
37
+ * ```javascript
38
+ * import { OAMClient, PutSinkPolicyCommand } from "@aws-sdk/client-oam"; // ES Modules import
39
+ * // const { OAMClient, PutSinkPolicyCommand } = require("@aws-sdk/client-oam"); // CommonJS import
40
+ * const client = new OAMClient(config);
41
+ * const command = new PutSinkPolicyCommand(input);
42
+ * const response = await client.send(command);
43
+ * ```
44
+ *
45
+ * @see {@link PutSinkPolicyCommandInput} for command's `input` shape.
46
+ * @see {@link PutSinkPolicyCommandOutput} for command's `response` shape.
47
+ * @see {@link OAMClientResolvedConfig | config} for OAMClient's `config` shape.
48
+ *
49
+ */
50
+ export declare class PutSinkPolicyCommand extends $Command<PutSinkPolicyCommandInput, PutSinkPolicyCommandOutput, OAMClientResolvedConfig> {
51
+ readonly input: PutSinkPolicyCommandInput;
52
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
53
+ constructor(input: PutSinkPolicyCommandInput);
54
+ /**
55
+ * @internal
56
+ */
57
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: OAMClientResolvedConfig, options?: __HttpHandlerOptions): Handler<PutSinkPolicyCommandInput, PutSinkPolicyCommandOutput>;
58
+ private serialize;
59
+ private deserialize;
60
+ }
@@ -0,0 +1,53 @@
1
+ import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
2
+ import { Command as $Command } from "@aws-sdk/smithy-client";
3
+ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
4
+ import { TagResourceInput, TagResourceOutput } from "../models/models_0";
5
+ import { OAMClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../OAMClient";
6
+ export interface TagResourceCommandInput extends TagResourceInput {
7
+ }
8
+ export interface TagResourceCommandOutput extends TagResourceOutput, __MetadataBearer {
9
+ }
10
+ /**
11
+ * <p>Assigns one or more tags (key-value pairs) to the specified resource.
12
+ * Both sinks and links can be tagged. </p>
13
+ * <p>Tags can help you organize and categorize your resources. You can also use them to scope user
14
+ * permissions by granting a user
15
+ * permission to access or change only resources with certain tag values.</p>
16
+ * <p>Tags don't have any semantic meaning to Amazon Web Services and are interpreted strictly as strings of characters.</p>
17
+ * <p>You can use the <code>TagResource</code> action with a resource that already has tags. If you specify a new tag key for the alarm,
18
+ * this tag is appended to the list of tags associated
19
+ * with the alarm. If you specify a tag key that is already associated with the alarm, the new tag value that you specify replaces
20
+ * the previous value for that tag.</p>
21
+ * <p>You can associate as many as 50 tags with a resource.</p>
22
+ * <important>
23
+ * <p>Unlike tagging permissions in other Amazon Web Services services, to tag or untag links and
24
+ * sinks you must have the <code>oam:ResourceTag</code> permission. The
25
+ * <code>iam:ResourceTag</code> permission does not allow you to tag and untag links and
26
+ * sinks.</p>
27
+ * </important>
28
+ * @example
29
+ * Use a bare-bones client and the command you need to make an API call.
30
+ * ```javascript
31
+ * import { OAMClient, TagResourceCommand } from "@aws-sdk/client-oam"; // ES Modules import
32
+ * // const { OAMClient, TagResourceCommand } = require("@aws-sdk/client-oam"); // CommonJS import
33
+ * const client = new OAMClient(config);
34
+ * const command = new TagResourceCommand(input);
35
+ * const response = await client.send(command);
36
+ * ```
37
+ *
38
+ * @see {@link TagResourceCommandInput} for command's `input` shape.
39
+ * @see {@link TagResourceCommandOutput} for command's `response` shape.
40
+ * @see {@link OAMClientResolvedConfig | config} for OAMClient's `config` shape.
41
+ *
42
+ */
43
+ export declare class TagResourceCommand extends $Command<TagResourceCommandInput, TagResourceCommandOutput, OAMClientResolvedConfig> {
44
+ readonly input: TagResourceCommandInput;
45
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
46
+ constructor(input: TagResourceCommandInput);
47
+ /**
48
+ * @internal
49
+ */
50
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: OAMClientResolvedConfig, options?: __HttpHandlerOptions): Handler<TagResourceCommandInput, TagResourceCommandOutput>;
51
+ private serialize;
52
+ private deserialize;
53
+ }
@@ -0,0 +1,43 @@
1
+ import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
2
+ import { Command as $Command } from "@aws-sdk/smithy-client";
3
+ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
4
+ import { UntagResourceInput, UntagResourceOutput } from "../models/models_0";
5
+ import { OAMClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../OAMClient";
6
+ export interface UntagResourceCommandInput extends UntagResourceInput {
7
+ }
8
+ export interface UntagResourceCommandOutput extends UntagResourceOutput, __MetadataBearer {
9
+ }
10
+ /**
11
+ * <p>Removes one or more tags from the specified resource.</p>
12
+ * <important>
13
+ * <p>Unlike tagging permissions in other Amazon Web Services services, to tag or untag links and
14
+ * sinks you must have the <code>oam:ResourceTag</code> permission. The
15
+ * <code>iam:TagResource</code> permission does not allow you to tag and untag links and
16
+ * sinks.</p>
17
+ * </important>
18
+ * @example
19
+ * Use a bare-bones client and the command you need to make an API call.
20
+ * ```javascript
21
+ * import { OAMClient, UntagResourceCommand } from "@aws-sdk/client-oam"; // ES Modules import
22
+ * // const { OAMClient, UntagResourceCommand } = require("@aws-sdk/client-oam"); // CommonJS import
23
+ * const client = new OAMClient(config);
24
+ * const command = new UntagResourceCommand(input);
25
+ * const response = await client.send(command);
26
+ * ```
27
+ *
28
+ * @see {@link UntagResourceCommandInput} for command's `input` shape.
29
+ * @see {@link UntagResourceCommandOutput} for command's `response` shape.
30
+ * @see {@link OAMClientResolvedConfig | config} for OAMClient's `config` shape.
31
+ *
32
+ */
33
+ export declare class UntagResourceCommand extends $Command<UntagResourceCommandInput, UntagResourceCommandOutput, OAMClientResolvedConfig> {
34
+ readonly input: UntagResourceCommandInput;
35
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
36
+ constructor(input: UntagResourceCommandInput);
37
+ /**
38
+ * @internal
39
+ */
40
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: OAMClientResolvedConfig, options?: __HttpHandlerOptions): Handler<UntagResourceCommandInput, UntagResourceCommandOutput>;
41
+ private serialize;
42
+ private deserialize;
43
+ }
@@ -0,0 +1,40 @@
1
+ import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
2
+ import { Command as $Command } from "@aws-sdk/smithy-client";
3
+ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
4
+ import { UpdateLinkInput, UpdateLinkOutput } from "../models/models_0";
5
+ import { OAMClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../OAMClient";
6
+ export interface UpdateLinkCommandInput extends UpdateLinkInput {
7
+ }
8
+ export interface UpdateLinkCommandOutput extends UpdateLinkOutput, __MetadataBearer {
9
+ }
10
+ /**
11
+ * <p>Use this operation to change what types of data are shared from a source account to its linked
12
+ * monitoring account sink. You can't change the sink or change the monitoring account with this operation.</p>
13
+ * <p>To update the list of tags associated with the sink, use
14
+ * <a href="https://docs.aws.amazon.com/OAM/latest/APIReference/API_TagResource.html">TagResource</a>.</p>
15
+ * @example
16
+ * Use a bare-bones client and the command you need to make an API call.
17
+ * ```javascript
18
+ * import { OAMClient, UpdateLinkCommand } from "@aws-sdk/client-oam"; // ES Modules import
19
+ * // const { OAMClient, UpdateLinkCommand } = require("@aws-sdk/client-oam"); // CommonJS import
20
+ * const client = new OAMClient(config);
21
+ * const command = new UpdateLinkCommand(input);
22
+ * const response = await client.send(command);
23
+ * ```
24
+ *
25
+ * @see {@link UpdateLinkCommandInput} for command's `input` shape.
26
+ * @see {@link UpdateLinkCommandOutput} for command's `response` shape.
27
+ * @see {@link OAMClientResolvedConfig | config} for OAMClient's `config` shape.
28
+ *
29
+ */
30
+ export declare class UpdateLinkCommand extends $Command<UpdateLinkCommandInput, UpdateLinkCommandOutput, OAMClientResolvedConfig> {
31
+ readonly input: UpdateLinkCommandInput;
32
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
33
+ constructor(input: UpdateLinkCommandInput);
34
+ /**
35
+ * @internal
36
+ */
37
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: OAMClientResolvedConfig, options?: __HttpHandlerOptions): Handler<UpdateLinkCommandInput, UpdateLinkCommandOutput>;
38
+ private serialize;
39
+ private deserialize;
40
+ }
@@ -0,0 +1,15 @@
1
+ export * from "./CreateLinkCommand";
2
+ export * from "./CreateSinkCommand";
3
+ export * from "./DeleteLinkCommand";
4
+ export * from "./DeleteSinkCommand";
5
+ export * from "./GetLinkCommand";
6
+ export * from "./GetSinkCommand";
7
+ export * from "./GetSinkPolicyCommand";
8
+ export * from "./ListAttachedLinksCommand";
9
+ export * from "./ListLinksCommand";
10
+ export * from "./ListSinksCommand";
11
+ export * from "./ListTagsForResourceCommand";
12
+ export * from "./PutSinkPolicyCommand";
13
+ export * from "./TagResourceCommand";
14
+ export * from "./UntagResourceCommand";
15
+ export * from "./UpdateLinkCommand";
@@ -0,0 +1,19 @@
1
+ import { Endpoint, EndpointParameters as __EndpointParameters, EndpointV2, Provider } from "@aws-sdk/types";
2
+ export interface ClientInputEndpointParameters {
3
+ region?: string | Provider<string>;
4
+ useDualstackEndpoint?: boolean | Provider<boolean>;
5
+ useFipsEndpoint?: boolean | Provider<boolean>;
6
+ endpoint?: string | Provider<string> | Endpoint | Provider<Endpoint> | EndpointV2 | Provider<EndpointV2>;
7
+ }
8
+ export declare type ClientResolvedEndpointParameters = ClientInputEndpointParameters & {
9
+ defaultSigningName: string;
10
+ };
11
+ export declare const resolveClientEndpointParameters: <T>(options: T & ClientInputEndpointParameters) => T & ClientInputEndpointParameters & {
12
+ defaultSigningName: string;
13
+ };
14
+ export interface EndpointParameters extends __EndpointParameters {
15
+ Region: string;
16
+ UseDualStack?: boolean;
17
+ UseFIPS?: boolean;
18
+ Endpoint?: string;
19
+ }
@@ -0,0 +1,5 @@
1
+ import { EndpointV2, Logger } from "@aws-sdk/types";
2
+ import { EndpointParameters } from "./EndpointParameters";
3
+ export declare const defaultEndpointResolver: (endpointParams: EndpointParameters, context?: {
4
+ logger?: Logger;
5
+ }) => EndpointV2;
@@ -0,0 +1,2 @@
1
+ import { RuleSetObject } from "@aws-sdk/util-endpoints";
2
+ export declare const ruleSet: RuleSetObject;
@@ -0,0 +1,6 @@
1
+ export * from "./OAM";
2
+ export * from "./OAMClient";
3
+ export * from "./commands";
4
+ export * from "./models";
5
+ export * from "./pagination";
6
+ export { OAMServiceException } from "./models/OAMServiceException";
@@ -0,0 +1,10 @@
1
+ import { ServiceException as __ServiceException, ServiceExceptionOptions as __ServiceExceptionOptions } from "@aws-sdk/smithy-client";
2
+ /**
3
+ * Base exception class for all service exceptions from OAM service.
4
+ */
5
+ export declare class OAMServiceException extends __ServiceException {
6
+ /**
7
+ * @internal
8
+ */
9
+ constructor(options: __ServiceExceptionOptions);
10
+ }
@@ -0,0 +1 @@
1
+ export * from "./models_0";