@aws-sdk/client-partnercentral-channel 3.935.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 (137) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +341 -0
  3. package/dist-cjs/auth/httpAuthSchemeProvider.js +127 -0
  4. package/dist-cjs/endpoint/endpointResolver.js +18 -0
  5. package/dist-cjs/endpoint/ruleset.js +7 -0
  6. package/dist-cjs/index.js +1379 -0
  7. package/dist-cjs/runtimeConfig.browser.js +39 -0
  8. package/dist-cjs/runtimeConfig.js +57 -0
  9. package/dist-cjs/runtimeConfig.native.js +15 -0
  10. package/dist-cjs/runtimeConfig.shared.js +48 -0
  11. package/dist-es/PartnerCentralChannel.js +41 -0
  12. package/dist-es/PartnerCentralChannelClient.js +51 -0
  13. package/dist-es/auth/httpAuthExtensionConfiguration.js +38 -0
  14. package/dist-es/auth/httpAuthSchemeProvider.js +123 -0
  15. package/dist-es/commands/AcceptChannelHandshakeCommand.js +16 -0
  16. package/dist-es/commands/CancelChannelHandshakeCommand.js +16 -0
  17. package/dist-es/commands/CreateChannelHandshakeCommand.js +16 -0
  18. package/dist-es/commands/CreateProgramManagementAccountCommand.js +16 -0
  19. package/dist-es/commands/CreateRelationshipCommand.js +16 -0
  20. package/dist-es/commands/DeleteProgramManagementAccountCommand.js +16 -0
  21. package/dist-es/commands/DeleteRelationshipCommand.js +16 -0
  22. package/dist-es/commands/GetRelationshipCommand.js +16 -0
  23. package/dist-es/commands/ListChannelHandshakesCommand.js +16 -0
  24. package/dist-es/commands/ListProgramManagementAccountsCommand.js +16 -0
  25. package/dist-es/commands/ListRelationshipsCommand.js +16 -0
  26. package/dist-es/commands/ListTagsForResourceCommand.js +16 -0
  27. package/dist-es/commands/RejectChannelHandshakeCommand.js +16 -0
  28. package/dist-es/commands/TagResourceCommand.js +16 -0
  29. package/dist-es/commands/UntagResourceCommand.js +16 -0
  30. package/dist-es/commands/UpdateProgramManagementAccountCommand.js +16 -0
  31. package/dist-es/commands/UpdateRelationshipCommand.js +16 -0
  32. package/dist-es/commands/index.js +17 -0
  33. package/dist-es/endpoint/EndpointParameters.js +11 -0
  34. package/dist-es/endpoint/endpointResolver.js +14 -0
  35. package/dist-es/endpoint/ruleset.js +4 -0
  36. package/dist-es/extensionConfiguration.js +1 -0
  37. package/dist-es/index.js +7 -0
  38. package/dist-es/models/PartnerCentralChannelServiceException.js +8 -0
  39. package/dist-es/models/enums.js +76 -0
  40. package/dist-es/models/errors.js +114 -0
  41. package/dist-es/models/models_0.js +1 -0
  42. package/dist-es/pagination/Interfaces.js +1 -0
  43. package/dist-es/pagination/ListChannelHandshakesPaginator.js +4 -0
  44. package/dist-es/pagination/ListProgramManagementAccountsPaginator.js +4 -0
  45. package/dist-es/pagination/ListRelationshipsPaginator.js +4 -0
  46. package/dist-es/pagination/index.js +4 -0
  47. package/dist-es/runtimeConfig.browser.js +34 -0
  48. package/dist-es/runtimeConfig.js +52 -0
  49. package/dist-es/runtimeConfig.native.js +11 -0
  50. package/dist-es/runtimeConfig.shared.js +44 -0
  51. package/dist-es/runtimeExtensions.js +9 -0
  52. package/dist-es/schemas/schemas_0.js +795 -0
  53. package/dist-types/PartnerCentralChannel.d.ts +129 -0
  54. package/dist-types/PartnerCentralChannelClient.d.ts +213 -0
  55. package/dist-types/auth/httpAuthExtensionConfiguration.d.ts +29 -0
  56. package/dist-types/auth/httpAuthSchemeProvider.d.ts +83 -0
  57. package/dist-types/commands/AcceptChannelHandshakeCommand.d.ts +114 -0
  58. package/dist-types/commands/CancelChannelHandshakeCommand.d.ts +114 -0
  59. package/dist-types/commands/CreateChannelHandshakeCommand.d.ts +226 -0
  60. package/dist-types/commands/CreateProgramManagementAccountCommand.d.ts +130 -0
  61. package/dist-types/commands/CreateRelationshipCommand.d.ts +151 -0
  62. package/dist-types/commands/DeleteProgramManagementAccountCommand.d.ts +107 -0
  63. package/dist-types/commands/DeleteRelationshipCommand.d.ts +109 -0
  64. package/dist-types/commands/GetRelationshipCommand.d.ts +134 -0
  65. package/dist-types/commands/ListChannelHandshakesCommand.d.ts +360 -0
  66. package/dist-types/commands/ListProgramManagementAccountsCommand.d.ts +168 -0
  67. package/dist-types/commands/ListRelationshipsCommand.d.ts +169 -0
  68. package/dist-types/commands/ListTagsForResourceCommand.d.ts +114 -0
  69. package/dist-types/commands/RejectChannelHandshakeCommand.d.ts +114 -0
  70. package/dist-types/commands/TagResourceCommand.d.ts +115 -0
  71. package/dist-types/commands/UntagResourceCommand.d.ts +109 -0
  72. package/dist-types/commands/UpdateProgramManagementAccountCommand.d.ts +123 -0
  73. package/dist-types/commands/UpdateRelationshipCommand.d.ts +140 -0
  74. package/dist-types/commands/index.d.ts +17 -0
  75. package/dist-types/endpoint/EndpointParameters.d.ts +32 -0
  76. package/dist-types/endpoint/endpointResolver.d.ts +5 -0
  77. package/dist-types/endpoint/ruleset.d.ts +2 -0
  78. package/dist-types/extensionConfiguration.d.ts +9 -0
  79. package/dist-types/index.d.ts +16 -0
  80. package/dist-types/models/PartnerCentralChannelServiceException.d.ts +14 -0
  81. package/dist-types/models/enums.d.ts +220 -0
  82. package/dist-types/models/errors.d.ts +153 -0
  83. package/dist-types/models/models_0.d.ts +1677 -0
  84. package/dist-types/pagination/Interfaces.d.ts +8 -0
  85. package/dist-types/pagination/ListChannelHandshakesPaginator.d.ts +7 -0
  86. package/dist-types/pagination/ListProgramManagementAccountsPaginator.d.ts +7 -0
  87. package/dist-types/pagination/ListRelationshipsPaginator.d.ts +7 -0
  88. package/dist-types/pagination/index.d.ts +4 -0
  89. package/dist-types/runtimeConfig.browser.d.ts +52 -0
  90. package/dist-types/runtimeConfig.d.ts +52 -0
  91. package/dist-types/runtimeConfig.native.d.ts +51 -0
  92. package/dist-types/runtimeConfig.shared.d.ts +24 -0
  93. package/dist-types/runtimeExtensions.d.ts +17 -0
  94. package/dist-types/schemas/schemas_0.d.ts +112 -0
  95. package/dist-types/ts3.4/PartnerCentralChannel.d.ts +296 -0
  96. package/dist-types/ts3.4/PartnerCentralChannelClient.d.ts +228 -0
  97. package/dist-types/ts3.4/auth/httpAuthExtensionConfiguration.d.ts +32 -0
  98. package/dist-types/ts3.4/auth/httpAuthSchemeProvider.d.ts +59 -0
  99. package/dist-types/ts3.4/commands/AcceptChannelHandshakeCommand.d.ts +51 -0
  100. package/dist-types/ts3.4/commands/CancelChannelHandshakeCommand.d.ts +51 -0
  101. package/dist-types/ts3.4/commands/CreateChannelHandshakeCommand.d.ts +51 -0
  102. package/dist-types/ts3.4/commands/CreateProgramManagementAccountCommand.d.ts +51 -0
  103. package/dist-types/ts3.4/commands/CreateRelationshipCommand.d.ts +51 -0
  104. package/dist-types/ts3.4/commands/DeleteProgramManagementAccountCommand.d.ts +51 -0
  105. package/dist-types/ts3.4/commands/DeleteRelationshipCommand.d.ts +51 -0
  106. package/dist-types/ts3.4/commands/GetRelationshipCommand.d.ts +50 -0
  107. package/dist-types/ts3.4/commands/ListChannelHandshakesCommand.d.ts +51 -0
  108. package/dist-types/ts3.4/commands/ListProgramManagementAccountsCommand.d.ts +51 -0
  109. package/dist-types/ts3.4/commands/ListRelationshipsCommand.d.ts +51 -0
  110. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +51 -0
  111. package/dist-types/ts3.4/commands/RejectChannelHandshakeCommand.d.ts +51 -0
  112. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +47 -0
  113. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +50 -0
  114. package/dist-types/ts3.4/commands/UpdateProgramManagementAccountCommand.d.ts +51 -0
  115. package/dist-types/ts3.4/commands/UpdateRelationshipCommand.d.ts +51 -0
  116. package/dist-types/ts3.4/commands/index.d.ts +17 -0
  117. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +45 -0
  118. package/dist-types/ts3.4/endpoint/endpointResolver.d.ts +8 -0
  119. package/dist-types/ts3.4/endpoint/ruleset.d.ts +2 -0
  120. package/dist-types/ts3.4/extensionConfiguration.d.ts +9 -0
  121. package/dist-types/ts3.4/index.d.ts +11 -0
  122. package/dist-types/ts3.4/models/PartnerCentralChannelServiceException.d.ts +9 -0
  123. package/dist-types/ts3.4/models/enums.d.ts +106 -0
  124. package/dist-types/ts3.4/models/errors.d.ts +68 -0
  125. package/dist-types/ts3.4/models/models_0.d.ts +542 -0
  126. package/dist-types/ts3.4/pagination/Interfaces.d.ts +6 -0
  127. package/dist-types/ts3.4/pagination/ListChannelHandshakesPaginator.d.ts +11 -0
  128. package/dist-types/ts3.4/pagination/ListProgramManagementAccountsPaginator.d.ts +11 -0
  129. package/dist-types/ts3.4/pagination/ListRelationshipsPaginator.d.ts +11 -0
  130. package/dist-types/ts3.4/pagination/index.d.ts +4 -0
  131. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +103 -0
  132. package/dist-types/ts3.4/runtimeConfig.d.ts +98 -0
  133. package/dist-types/ts3.4/runtimeConfig.native.d.ts +107 -0
  134. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +34 -0
  135. package/dist-types/ts3.4/runtimeExtensions.d.ts +13 -0
  136. package/dist-types/ts3.4/schemas/schemas_0.d.ts +117 -0
  137. package/package.json +100 -0
@@ -0,0 +1,169 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import { ListRelationshipsRequest, ListRelationshipsResponse } from "../models/models_0";
4
+ import { PartnerCentralChannelClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../PartnerCentralChannelClient";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link ListRelationshipsCommand}.
14
+ */
15
+ export interface ListRelationshipsCommandInput extends ListRelationshipsRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link ListRelationshipsCommand}.
21
+ */
22
+ export interface ListRelationshipsCommandOutput extends ListRelationshipsResponse, __MetadataBearer {
23
+ }
24
+ declare const ListRelationshipsCommand_base: {
25
+ new (input: ListRelationshipsCommandInput): import("@smithy/smithy-client").CommandImpl<ListRelationshipsCommandInput, ListRelationshipsCommandOutput, PartnerCentralChannelClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (input: ListRelationshipsCommandInput): import("@smithy/smithy-client").CommandImpl<ListRelationshipsCommandInput, ListRelationshipsCommandOutput, PartnerCentralChannelClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <p>Lists partner relationships based on specified criteria.</p>
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { PartnerCentralChannelClient, ListRelationshipsCommand } from "@aws-sdk/client-partnercentral-channel"; // ES Modules import
35
+ * // const { PartnerCentralChannelClient, ListRelationshipsCommand } = require("@aws-sdk/client-partnercentral-channel"); // CommonJS import
36
+ * // import type { PartnerCentralChannelClientConfig } from "@aws-sdk/client-partnercentral-channel";
37
+ * const config = {}; // type is PartnerCentralChannelClientConfig
38
+ * const client = new PartnerCentralChannelClient(config);
39
+ * const input = { // ListRelationshipsRequest
40
+ * catalog: "STRING_VALUE", // required
41
+ * maxResults: Number("int"),
42
+ * associatedAccountIds: [ // AccountIdList
43
+ * "STRING_VALUE",
44
+ * ],
45
+ * associationTypes: [ // AssociationTypeList
46
+ * "DOWNSTREAM_SELLER" || "END_CUSTOMER" || "INTERNAL",
47
+ * ],
48
+ * displayNames: [ // RelationshipDisplayNameList
49
+ * "STRING_VALUE",
50
+ * ],
51
+ * programManagementAccountIdentifiers: [ // ProgramManagementAccountIdentifierList
52
+ * "STRING_VALUE",
53
+ * ],
54
+ * sort: { // ListRelationshipsSortBase
55
+ * sortOrder: "Ascending" || "Descending", // required
56
+ * sortBy: "UpdatedAt", // required
57
+ * },
58
+ * nextToken: "STRING_VALUE",
59
+ * };
60
+ * const command = new ListRelationshipsCommand(input);
61
+ * const response = await client.send(command);
62
+ * // { // ListRelationshipsResponse
63
+ * // items: [ // RelationshipSummaries
64
+ * // { // RelationshipSummary
65
+ * // arn: "STRING_VALUE",
66
+ * // id: "STRING_VALUE",
67
+ * // revision: "STRING_VALUE",
68
+ * // catalog: "STRING_VALUE",
69
+ * // associationType: "DOWNSTREAM_SELLER" || "END_CUSTOMER" || "INTERNAL",
70
+ * // programManagementAccountId: "STRING_VALUE",
71
+ * // associatedAccountId: "STRING_VALUE",
72
+ * // displayName: "STRING_VALUE",
73
+ * // sector: "COMMERCIAL" || "GOVERNMENT" || "GOVERNMENT_EXCEPTION",
74
+ * // createdAt: new Date("TIMESTAMP"),
75
+ * // updatedAt: new Date("TIMESTAMP"),
76
+ * // startDate: new Date("TIMESTAMP"),
77
+ * // },
78
+ * // ],
79
+ * // nextToken: "STRING_VALUE",
80
+ * // };
81
+ *
82
+ * ```
83
+ *
84
+ * @param ListRelationshipsCommandInput - {@link ListRelationshipsCommandInput}
85
+ * @returns {@link ListRelationshipsCommandOutput}
86
+ * @see {@link ListRelationshipsCommandInput} for command's `input` shape.
87
+ * @see {@link ListRelationshipsCommandOutput} for command's `response` shape.
88
+ * @see {@link PartnerCentralChannelClientResolvedConfig | config} for PartnerCentralChannelClient's `config` shape.
89
+ *
90
+ * @throws {@link AccessDeniedException} (client fault)
91
+ * <p>The request was denied due to insufficient permissions.</p>
92
+ *
93
+ * @throws {@link InternalServerException} (server fault)
94
+ * <p>An internal server error occurred while processing the request.</p>
95
+ *
96
+ * @throws {@link ResourceNotFoundException} (client fault)
97
+ * <p>The specified resource was not found.</p>
98
+ *
99
+ * @throws {@link ThrottlingException} (client fault)
100
+ * <p>The request was throttled due to too many requests being sent in a short period.</p>
101
+ *
102
+ * @throws {@link ValidationException} (client fault)
103
+ * <p>The request failed validation due to invalid input parameters.</p>
104
+ *
105
+ * @throws {@link PartnerCentralChannelServiceException}
106
+ * <p>Base exception class for all service exceptions from PartnerCentralChannel service.</p>
107
+ *
108
+ *
109
+ * @example Example for ListRelationships
110
+ * ```javascript
111
+ * //
112
+ * const input = {
113
+ * associatedAccountIds: [
114
+ * "123456789012"
115
+ * ],
116
+ * associationTypes: [
117
+ * "DOWNSTREAM_SELLER"
118
+ * ],
119
+ * catalog: "AWS",
120
+ * displayNames: [
121
+ * "TestDisplayName"
122
+ * ],
123
+ * maxResults: 100,
124
+ * nextToken: "nextToken",
125
+ * programManagementAccountIdentifiers: [
126
+ * "pma-u8ic702rtzng8"
127
+ * ],
128
+ * sort: {
129
+ * sortBy: "UpdatedAt",
130
+ * sortOrder: "Descending"
131
+ * }
132
+ * };
133
+ * const command = new ListRelationshipsCommand(input);
134
+ * const response = await client.send(command);
135
+ * /* response is
136
+ * {
137
+ * items: [
138
+ * {
139
+ * arn: "arn:aws:partnercentral:us-east-1:123456789012:catalog/AWS/program-management-account/pma-u8ic702rtzng8/relationship/rs-l9o4fj3b5zb91",
140
+ * associatedAccountId: "987654321012",
141
+ * associationType: "DOWNSTREAM_SELLER",
142
+ * createdAt: "2024-04-29T16:18:16Z",
143
+ * displayName: "TestDisplayName",
144
+ * id: "rs-l9o4fj3b5zb91",
145
+ * programManagementAccountId: "pma-u8ic702rtzng8",
146
+ * revision: "3",
147
+ * updatedAt: "2024-05-02T16:18:16Z"
148
+ * }
149
+ * ],
150
+ * nextToken: "nextToken"
151
+ * }
152
+ * *\/
153
+ * ```
154
+ *
155
+ * @public
156
+ */
157
+ export declare class ListRelationshipsCommand extends ListRelationshipsCommand_base {
158
+ /** @internal type navigation helper, not in runtime. */
159
+ protected static __types: {
160
+ api: {
161
+ input: ListRelationshipsRequest;
162
+ output: ListRelationshipsResponse;
163
+ };
164
+ sdk: {
165
+ input: ListRelationshipsCommandInput;
166
+ output: ListRelationshipsCommandOutput;
167
+ };
168
+ };
169
+ }
@@ -0,0 +1,114 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import { ListTagsForResourceRequest, ListTagsForResourceResponse } from "../models/models_0";
4
+ import { PartnerCentralChannelClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../PartnerCentralChannelClient";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link ListTagsForResourceCommand}.
14
+ */
15
+ export interface ListTagsForResourceCommandInput extends ListTagsForResourceRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link ListTagsForResourceCommand}.
21
+ */
22
+ export interface ListTagsForResourceCommandOutput extends ListTagsForResourceResponse, __MetadataBearer {
23
+ }
24
+ declare const ListTagsForResourceCommand_base: {
25
+ new (input: ListTagsForResourceCommandInput): import("@smithy/smithy-client").CommandImpl<ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput, PartnerCentralChannelClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (input: ListTagsForResourceCommandInput): import("@smithy/smithy-client").CommandImpl<ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput, PartnerCentralChannelClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <p>Lists tags associated with a specific resource.</p>
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { PartnerCentralChannelClient, ListTagsForResourceCommand } from "@aws-sdk/client-partnercentral-channel"; // ES Modules import
35
+ * // const { PartnerCentralChannelClient, ListTagsForResourceCommand } = require("@aws-sdk/client-partnercentral-channel"); // CommonJS import
36
+ * // import type { PartnerCentralChannelClientConfig } from "@aws-sdk/client-partnercentral-channel";
37
+ * const config = {}; // type is PartnerCentralChannelClientConfig
38
+ * const client = new PartnerCentralChannelClient(config);
39
+ * const input = { // ListTagsForResourceRequest
40
+ * resourceArn: "STRING_VALUE", // required
41
+ * };
42
+ * const command = new ListTagsForResourceCommand(input);
43
+ * const response = await client.send(command);
44
+ * // { // ListTagsForResourceResponse
45
+ * // tags: [ // TagList
46
+ * // { // Tag
47
+ * // key: "STRING_VALUE", // required
48
+ * // value: "STRING_VALUE", // required
49
+ * // },
50
+ * // ],
51
+ * // };
52
+ *
53
+ * ```
54
+ *
55
+ * @param ListTagsForResourceCommandInput - {@link ListTagsForResourceCommandInput}
56
+ * @returns {@link ListTagsForResourceCommandOutput}
57
+ * @see {@link ListTagsForResourceCommandInput} for command's `input` shape.
58
+ * @see {@link ListTagsForResourceCommandOutput} for command's `response` shape.
59
+ * @see {@link PartnerCentralChannelClientResolvedConfig | config} for PartnerCentralChannelClient's `config` shape.
60
+ *
61
+ * @throws {@link AccessDeniedException} (client fault)
62
+ * <p>The request was denied due to insufficient permissions.</p>
63
+ *
64
+ * @throws {@link InternalServerException} (server fault)
65
+ * <p>An internal server error occurred while processing the request.</p>
66
+ *
67
+ * @throws {@link ResourceNotFoundException} (client fault)
68
+ * <p>The specified resource was not found.</p>
69
+ *
70
+ * @throws {@link ThrottlingException} (client fault)
71
+ * <p>The request was throttled due to too many requests being sent in a short period.</p>
72
+ *
73
+ * @throws {@link ValidationException} (client fault)
74
+ * <p>The request failed validation due to invalid input parameters.</p>
75
+ *
76
+ * @throws {@link PartnerCentralChannelServiceException}
77
+ * <p>Base exception class for all service exceptions from PartnerCentralChannel service.</p>
78
+ *
79
+ *
80
+ * @example Example for ListTagsForResource
81
+ * ```javascript
82
+ * //
83
+ * const input = {
84
+ * resourceArn: "arn:aws:partnercentral:us-east-1:123456789012:catalog/AWS/program-management-account/pma-u8ic702rtzng8"
85
+ * };
86
+ * const command = new ListTagsForResourceCommand(input);
87
+ * const response = await client.send(command);
88
+ * /* response is
89
+ * {
90
+ * tags: [
91
+ * {
92
+ * key: "ExampleKey",
93
+ * value: "ExampleValue"
94
+ * }
95
+ * ]
96
+ * }
97
+ * *\/
98
+ * ```
99
+ *
100
+ * @public
101
+ */
102
+ export declare class ListTagsForResourceCommand extends ListTagsForResourceCommand_base {
103
+ /** @internal type navigation helper, not in runtime. */
104
+ protected static __types: {
105
+ api: {
106
+ input: ListTagsForResourceRequest;
107
+ output: ListTagsForResourceResponse;
108
+ };
109
+ sdk: {
110
+ input: ListTagsForResourceCommandInput;
111
+ output: ListTagsForResourceCommandOutput;
112
+ };
113
+ };
114
+ }
@@ -0,0 +1,114 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import { RejectChannelHandshakeRequest, RejectChannelHandshakeResponse } from "../models/models_0";
4
+ import { PartnerCentralChannelClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../PartnerCentralChannelClient";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link RejectChannelHandshakeCommand}.
14
+ */
15
+ export interface RejectChannelHandshakeCommandInput extends RejectChannelHandshakeRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link RejectChannelHandshakeCommand}.
21
+ */
22
+ export interface RejectChannelHandshakeCommandOutput extends RejectChannelHandshakeResponse, __MetadataBearer {
23
+ }
24
+ declare const RejectChannelHandshakeCommand_base: {
25
+ new (input: RejectChannelHandshakeCommandInput): import("@smithy/smithy-client").CommandImpl<RejectChannelHandshakeCommandInput, RejectChannelHandshakeCommandOutput, PartnerCentralChannelClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (input: RejectChannelHandshakeCommandInput): import("@smithy/smithy-client").CommandImpl<RejectChannelHandshakeCommandInput, RejectChannelHandshakeCommandOutput, PartnerCentralChannelClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <p>Rejects a pending channel handshake request.</p>
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { PartnerCentralChannelClient, RejectChannelHandshakeCommand } from "@aws-sdk/client-partnercentral-channel"; // ES Modules import
35
+ * // const { PartnerCentralChannelClient, RejectChannelHandshakeCommand } = require("@aws-sdk/client-partnercentral-channel"); // CommonJS import
36
+ * // import type { PartnerCentralChannelClientConfig } from "@aws-sdk/client-partnercentral-channel";
37
+ * const config = {}; // type is PartnerCentralChannelClientConfig
38
+ * const client = new PartnerCentralChannelClient(config);
39
+ * const input = { // RejectChannelHandshakeRequest
40
+ * catalog: "STRING_VALUE", // required
41
+ * identifier: "STRING_VALUE", // required
42
+ * };
43
+ * const command = new RejectChannelHandshakeCommand(input);
44
+ * const response = await client.send(command);
45
+ * // { // RejectChannelHandshakeResponse
46
+ * // channelHandshakeDetail: { // RejectChannelHandshakeDetail
47
+ * // id: "STRING_VALUE",
48
+ * // arn: "STRING_VALUE",
49
+ * // status: "PENDING" || "ACCEPTED" || "REJECTED" || "CANCELED" || "EXPIRED",
50
+ * // },
51
+ * // };
52
+ *
53
+ * ```
54
+ *
55
+ * @param RejectChannelHandshakeCommandInput - {@link RejectChannelHandshakeCommandInput}
56
+ * @returns {@link RejectChannelHandshakeCommandOutput}
57
+ * @see {@link RejectChannelHandshakeCommandInput} for command's `input` shape.
58
+ * @see {@link RejectChannelHandshakeCommandOutput} for command's `response` shape.
59
+ * @see {@link PartnerCentralChannelClientResolvedConfig | config} for PartnerCentralChannelClient's `config` shape.
60
+ *
61
+ * @throws {@link AccessDeniedException} (client fault)
62
+ * <p>The request was denied due to insufficient permissions.</p>
63
+ *
64
+ * @throws {@link InternalServerException} (server fault)
65
+ * <p>An internal server error occurred while processing the request.</p>
66
+ *
67
+ * @throws {@link ResourceNotFoundException} (client fault)
68
+ * <p>The specified resource was not found.</p>
69
+ *
70
+ * @throws {@link ThrottlingException} (client fault)
71
+ * <p>The request was throttled due to too many requests being sent in a short period.</p>
72
+ *
73
+ * @throws {@link ValidationException} (client fault)
74
+ * <p>The request failed validation due to invalid input parameters.</p>
75
+ *
76
+ * @throws {@link PartnerCentralChannelServiceException}
77
+ * <p>Base exception class for all service exceptions from PartnerCentralChannel service.</p>
78
+ *
79
+ *
80
+ * @example Example for RejectChannelHandshake
81
+ * ```javascript
82
+ * //
83
+ * const input = {
84
+ * catalog: "AWS",
85
+ * identifier: "ch-4fj3bd2o3vb91"
86
+ * };
87
+ * const command = new RejectChannelHandshakeCommand(input);
88
+ * const response = await client.send(command);
89
+ * /* response is
90
+ * {
91
+ * channelHandshakeDetail: {
92
+ * arn: "arn:aws:partnercentral:us-east-1:123456789012:catalog/AWS/channel-handshake/ch-4fj3bd2o3vb91",
93
+ * id: "ch-4fj3bd2o3vb91",
94
+ * status: "REJECTED"
95
+ * }
96
+ * }
97
+ * *\/
98
+ * ```
99
+ *
100
+ * @public
101
+ */
102
+ export declare class RejectChannelHandshakeCommand extends RejectChannelHandshakeCommand_base {
103
+ /** @internal type navigation helper, not in runtime. */
104
+ protected static __types: {
105
+ api: {
106
+ input: RejectChannelHandshakeRequest;
107
+ output: RejectChannelHandshakeResponse;
108
+ };
109
+ sdk: {
110
+ input: RejectChannelHandshakeCommandInput;
111
+ output: RejectChannelHandshakeCommandOutput;
112
+ };
113
+ };
114
+ }
@@ -0,0 +1,115 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import { TagResourceRequest, TagResourceResponse } from "../models/models_0";
4
+ import { PartnerCentralChannelClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../PartnerCentralChannelClient";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link TagResourceCommand}.
14
+ */
15
+ export interface TagResourceCommandInput extends TagResourceRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link TagResourceCommand}.
21
+ */
22
+ export interface TagResourceCommandOutput extends TagResourceResponse, __MetadataBearer {
23
+ }
24
+ declare const TagResourceCommand_base: {
25
+ new (input: TagResourceCommandInput): import("@smithy/smithy-client").CommandImpl<TagResourceCommandInput, TagResourceCommandOutput, PartnerCentralChannelClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (input: TagResourceCommandInput): import("@smithy/smithy-client").CommandImpl<TagResourceCommandInput, TagResourceCommandOutput, PartnerCentralChannelClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <p>Adds or updates tags for a specified resource.</p>
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { PartnerCentralChannelClient, TagResourceCommand } from "@aws-sdk/client-partnercentral-channel"; // ES Modules import
35
+ * // const { PartnerCentralChannelClient, TagResourceCommand } = require("@aws-sdk/client-partnercentral-channel"); // CommonJS import
36
+ * // import type { PartnerCentralChannelClientConfig } from "@aws-sdk/client-partnercentral-channel";
37
+ * const config = {}; // type is PartnerCentralChannelClientConfig
38
+ * const client = new PartnerCentralChannelClient(config);
39
+ * const input = { // TagResourceRequest
40
+ * resourceArn: "STRING_VALUE", // required
41
+ * tags: [ // TagList // required
42
+ * { // Tag
43
+ * key: "STRING_VALUE", // required
44
+ * value: "STRING_VALUE", // required
45
+ * },
46
+ * ],
47
+ * };
48
+ * const command = new TagResourceCommand(input);
49
+ * const response = await client.send(command);
50
+ * // {};
51
+ *
52
+ * ```
53
+ *
54
+ * @param TagResourceCommandInput - {@link TagResourceCommandInput}
55
+ * @returns {@link TagResourceCommandOutput}
56
+ * @see {@link TagResourceCommandInput} for command's `input` shape.
57
+ * @see {@link TagResourceCommandOutput} for command's `response` shape.
58
+ * @see {@link PartnerCentralChannelClientResolvedConfig | config} for PartnerCentralChannelClient's `config` shape.
59
+ *
60
+ * @throws {@link AccessDeniedException} (client fault)
61
+ * <p>The request was denied due to insufficient permissions.</p>
62
+ *
63
+ * @throws {@link ConflictException} (client fault)
64
+ * <p>The request could not be completed due to a conflict with the current state of the resource.</p>
65
+ *
66
+ * @throws {@link InternalServerException} (server fault)
67
+ * <p>An internal server error occurred while processing the request.</p>
68
+ *
69
+ * @throws {@link ResourceNotFoundException} (client fault)
70
+ * <p>The specified resource was not found.</p>
71
+ *
72
+ * @throws {@link ThrottlingException} (client fault)
73
+ * <p>The request was throttled due to too many requests being sent in a short period.</p>
74
+ *
75
+ * @throws {@link ValidationException} (client fault)
76
+ * <p>The request failed validation due to invalid input parameters.</p>
77
+ *
78
+ * @throws {@link PartnerCentralChannelServiceException}
79
+ * <p>Base exception class for all service exceptions from PartnerCentralChannel service.</p>
80
+ *
81
+ *
82
+ * @example Example for TagResource
83
+ * ```javascript
84
+ * //
85
+ * const input = {
86
+ * resourceArn: "arn:aws:partnercentral:us-east-1:123456789012:catalog/AWS/program-management-account/pma-u8ic702rtzng8/relationship/rs-l9o4fj3b5zb91",
87
+ * tags: [
88
+ * {
89
+ * key: "ExampleKey",
90
+ * value: "ExampleValue"
91
+ * }
92
+ * ]
93
+ * };
94
+ * const command = new TagResourceCommand(input);
95
+ * const response = await client.send(command);
96
+ * /* response is
97
+ * { /* empty *\/ }
98
+ * *\/
99
+ * ```
100
+ *
101
+ * @public
102
+ */
103
+ export declare class TagResourceCommand extends TagResourceCommand_base {
104
+ /** @internal type navigation helper, not in runtime. */
105
+ protected static __types: {
106
+ api: {
107
+ input: TagResourceRequest;
108
+ output: {};
109
+ };
110
+ sdk: {
111
+ input: TagResourceCommandInput;
112
+ output: TagResourceCommandOutput;
113
+ };
114
+ };
115
+ }
@@ -0,0 +1,109 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import { UntagResourceRequest, UntagResourceResponse } from "../models/models_0";
4
+ import { PartnerCentralChannelClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../PartnerCentralChannelClient";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link UntagResourceCommand}.
14
+ */
15
+ export interface UntagResourceCommandInput extends UntagResourceRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link UntagResourceCommand}.
21
+ */
22
+ export interface UntagResourceCommandOutput extends UntagResourceResponse, __MetadataBearer {
23
+ }
24
+ declare const UntagResourceCommand_base: {
25
+ new (input: UntagResourceCommandInput): import("@smithy/smithy-client").CommandImpl<UntagResourceCommandInput, UntagResourceCommandOutput, PartnerCentralChannelClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (input: UntagResourceCommandInput): import("@smithy/smithy-client").CommandImpl<UntagResourceCommandInput, UntagResourceCommandOutput, PartnerCentralChannelClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <p>Removes tags from a specified resource.</p>
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { PartnerCentralChannelClient, UntagResourceCommand } from "@aws-sdk/client-partnercentral-channel"; // ES Modules import
35
+ * // const { PartnerCentralChannelClient, UntagResourceCommand } = require("@aws-sdk/client-partnercentral-channel"); // CommonJS import
36
+ * // import type { PartnerCentralChannelClientConfig } from "@aws-sdk/client-partnercentral-channel";
37
+ * const config = {}; // type is PartnerCentralChannelClientConfig
38
+ * const client = new PartnerCentralChannelClient(config);
39
+ * const input = { // UntagResourceRequest
40
+ * resourceArn: "STRING_VALUE", // required
41
+ * tagKeys: [ // TagKeyList // required
42
+ * "STRING_VALUE",
43
+ * ],
44
+ * };
45
+ * const command = new UntagResourceCommand(input);
46
+ * const response = await client.send(command);
47
+ * // {};
48
+ *
49
+ * ```
50
+ *
51
+ * @param UntagResourceCommandInput - {@link UntagResourceCommandInput}
52
+ * @returns {@link UntagResourceCommandOutput}
53
+ * @see {@link UntagResourceCommandInput} for command's `input` shape.
54
+ * @see {@link UntagResourceCommandOutput} for command's `response` shape.
55
+ * @see {@link PartnerCentralChannelClientResolvedConfig | config} for PartnerCentralChannelClient's `config` shape.
56
+ *
57
+ * @throws {@link AccessDeniedException} (client fault)
58
+ * <p>The request was denied due to insufficient permissions.</p>
59
+ *
60
+ * @throws {@link ConflictException} (client fault)
61
+ * <p>The request could not be completed due to a conflict with the current state of the resource.</p>
62
+ *
63
+ * @throws {@link InternalServerException} (server fault)
64
+ * <p>An internal server error occurred while processing the request.</p>
65
+ *
66
+ * @throws {@link ResourceNotFoundException} (client fault)
67
+ * <p>The specified resource was not found.</p>
68
+ *
69
+ * @throws {@link ThrottlingException} (client fault)
70
+ * <p>The request was throttled due to too many requests being sent in a short period.</p>
71
+ *
72
+ * @throws {@link ValidationException} (client fault)
73
+ * <p>The request failed validation due to invalid input parameters.</p>
74
+ *
75
+ * @throws {@link PartnerCentralChannelServiceException}
76
+ * <p>Base exception class for all service exceptions from PartnerCentralChannel service.</p>
77
+ *
78
+ *
79
+ * @example Example for UntagResource
80
+ * ```javascript
81
+ * //
82
+ * const input = {
83
+ * resourceArn: "arn:aws:partnercentral:us-east-1:123456789012:catalog/AWS/channel-handshake/ch-4fj3bd2o3vb91",
84
+ * tagKeys: [
85
+ * "ExampleKey"
86
+ * ]
87
+ * };
88
+ * const command = new UntagResourceCommand(input);
89
+ * const response = await client.send(command);
90
+ * /* response is
91
+ * { /* empty *\/ }
92
+ * *\/
93
+ * ```
94
+ *
95
+ * @public
96
+ */
97
+ export declare class UntagResourceCommand extends UntagResourceCommand_base {
98
+ /** @internal type navigation helper, not in runtime. */
99
+ protected static __types: {
100
+ api: {
101
+ input: UntagResourceRequest;
102
+ output: {};
103
+ };
104
+ sdk: {
105
+ input: UntagResourceCommandInput;
106
+ output: UntagResourceCommandOutput;
107
+ };
108
+ };
109
+ }