@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.
- package/LICENSE +201 -0
- package/README.md +341 -0
- package/dist-cjs/auth/httpAuthSchemeProvider.js +127 -0
- package/dist-cjs/endpoint/endpointResolver.js +18 -0
- package/dist-cjs/endpoint/ruleset.js +7 -0
- package/dist-cjs/index.js +1379 -0
- package/dist-cjs/runtimeConfig.browser.js +39 -0
- package/dist-cjs/runtimeConfig.js +57 -0
- package/dist-cjs/runtimeConfig.native.js +15 -0
- package/dist-cjs/runtimeConfig.shared.js +48 -0
- package/dist-es/PartnerCentralChannel.js +41 -0
- package/dist-es/PartnerCentralChannelClient.js +51 -0
- package/dist-es/auth/httpAuthExtensionConfiguration.js +38 -0
- package/dist-es/auth/httpAuthSchemeProvider.js +123 -0
- package/dist-es/commands/AcceptChannelHandshakeCommand.js +16 -0
- package/dist-es/commands/CancelChannelHandshakeCommand.js +16 -0
- package/dist-es/commands/CreateChannelHandshakeCommand.js +16 -0
- package/dist-es/commands/CreateProgramManagementAccountCommand.js +16 -0
- package/dist-es/commands/CreateRelationshipCommand.js +16 -0
- package/dist-es/commands/DeleteProgramManagementAccountCommand.js +16 -0
- package/dist-es/commands/DeleteRelationshipCommand.js +16 -0
- package/dist-es/commands/GetRelationshipCommand.js +16 -0
- package/dist-es/commands/ListChannelHandshakesCommand.js +16 -0
- package/dist-es/commands/ListProgramManagementAccountsCommand.js +16 -0
- package/dist-es/commands/ListRelationshipsCommand.js +16 -0
- package/dist-es/commands/ListTagsForResourceCommand.js +16 -0
- package/dist-es/commands/RejectChannelHandshakeCommand.js +16 -0
- package/dist-es/commands/TagResourceCommand.js +16 -0
- package/dist-es/commands/UntagResourceCommand.js +16 -0
- package/dist-es/commands/UpdateProgramManagementAccountCommand.js +16 -0
- package/dist-es/commands/UpdateRelationshipCommand.js +16 -0
- package/dist-es/commands/index.js +17 -0
- package/dist-es/endpoint/EndpointParameters.js +11 -0
- package/dist-es/endpoint/endpointResolver.js +14 -0
- package/dist-es/endpoint/ruleset.js +4 -0
- package/dist-es/extensionConfiguration.js +1 -0
- package/dist-es/index.js +7 -0
- package/dist-es/models/PartnerCentralChannelServiceException.js +8 -0
- package/dist-es/models/enums.js +76 -0
- package/dist-es/models/errors.js +114 -0
- package/dist-es/models/models_0.js +1 -0
- package/dist-es/pagination/Interfaces.js +1 -0
- package/dist-es/pagination/ListChannelHandshakesPaginator.js +4 -0
- package/dist-es/pagination/ListProgramManagementAccountsPaginator.js +4 -0
- package/dist-es/pagination/ListRelationshipsPaginator.js +4 -0
- package/dist-es/pagination/index.js +4 -0
- package/dist-es/runtimeConfig.browser.js +34 -0
- package/dist-es/runtimeConfig.js +52 -0
- package/dist-es/runtimeConfig.native.js +11 -0
- package/dist-es/runtimeConfig.shared.js +44 -0
- package/dist-es/runtimeExtensions.js +9 -0
- package/dist-es/schemas/schemas_0.js +795 -0
- package/dist-types/PartnerCentralChannel.d.ts +129 -0
- package/dist-types/PartnerCentralChannelClient.d.ts +213 -0
- package/dist-types/auth/httpAuthExtensionConfiguration.d.ts +29 -0
- package/dist-types/auth/httpAuthSchemeProvider.d.ts +83 -0
- package/dist-types/commands/AcceptChannelHandshakeCommand.d.ts +114 -0
- package/dist-types/commands/CancelChannelHandshakeCommand.d.ts +114 -0
- package/dist-types/commands/CreateChannelHandshakeCommand.d.ts +226 -0
- package/dist-types/commands/CreateProgramManagementAccountCommand.d.ts +130 -0
- package/dist-types/commands/CreateRelationshipCommand.d.ts +151 -0
- package/dist-types/commands/DeleteProgramManagementAccountCommand.d.ts +107 -0
- package/dist-types/commands/DeleteRelationshipCommand.d.ts +109 -0
- package/dist-types/commands/GetRelationshipCommand.d.ts +134 -0
- package/dist-types/commands/ListChannelHandshakesCommand.d.ts +360 -0
- package/dist-types/commands/ListProgramManagementAccountsCommand.d.ts +168 -0
- package/dist-types/commands/ListRelationshipsCommand.d.ts +169 -0
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +114 -0
- package/dist-types/commands/RejectChannelHandshakeCommand.d.ts +114 -0
- package/dist-types/commands/TagResourceCommand.d.ts +115 -0
- package/dist-types/commands/UntagResourceCommand.d.ts +109 -0
- package/dist-types/commands/UpdateProgramManagementAccountCommand.d.ts +123 -0
- package/dist-types/commands/UpdateRelationshipCommand.d.ts +140 -0
- package/dist-types/commands/index.d.ts +17 -0
- package/dist-types/endpoint/EndpointParameters.d.ts +32 -0
- package/dist-types/endpoint/endpointResolver.d.ts +5 -0
- package/dist-types/endpoint/ruleset.d.ts +2 -0
- package/dist-types/extensionConfiguration.d.ts +9 -0
- package/dist-types/index.d.ts +16 -0
- package/dist-types/models/PartnerCentralChannelServiceException.d.ts +14 -0
- package/dist-types/models/enums.d.ts +220 -0
- package/dist-types/models/errors.d.ts +153 -0
- package/dist-types/models/models_0.d.ts +1677 -0
- package/dist-types/pagination/Interfaces.d.ts +8 -0
- package/dist-types/pagination/ListChannelHandshakesPaginator.d.ts +7 -0
- package/dist-types/pagination/ListProgramManagementAccountsPaginator.d.ts +7 -0
- package/dist-types/pagination/ListRelationshipsPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +4 -0
- package/dist-types/runtimeConfig.browser.d.ts +52 -0
- package/dist-types/runtimeConfig.d.ts +52 -0
- package/dist-types/runtimeConfig.native.d.ts +51 -0
- package/dist-types/runtimeConfig.shared.d.ts +24 -0
- package/dist-types/runtimeExtensions.d.ts +17 -0
- package/dist-types/schemas/schemas_0.d.ts +112 -0
- package/dist-types/ts3.4/PartnerCentralChannel.d.ts +296 -0
- package/dist-types/ts3.4/PartnerCentralChannelClient.d.ts +228 -0
- package/dist-types/ts3.4/auth/httpAuthExtensionConfiguration.d.ts +32 -0
- package/dist-types/ts3.4/auth/httpAuthSchemeProvider.d.ts +59 -0
- package/dist-types/ts3.4/commands/AcceptChannelHandshakeCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/CancelChannelHandshakeCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/CreateChannelHandshakeCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/CreateProgramManagementAccountCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/CreateRelationshipCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/DeleteProgramManagementAccountCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/DeleteRelationshipCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/GetRelationshipCommand.d.ts +50 -0
- package/dist-types/ts3.4/commands/ListChannelHandshakesCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/ListProgramManagementAccountsCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/ListRelationshipsCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/RejectChannelHandshakeCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +50 -0
- package/dist-types/ts3.4/commands/UpdateProgramManagementAccountCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/UpdateRelationshipCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/index.d.ts +17 -0
- package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +45 -0
- package/dist-types/ts3.4/endpoint/endpointResolver.d.ts +8 -0
- package/dist-types/ts3.4/endpoint/ruleset.d.ts +2 -0
- package/dist-types/ts3.4/extensionConfiguration.d.ts +9 -0
- package/dist-types/ts3.4/index.d.ts +11 -0
- package/dist-types/ts3.4/models/PartnerCentralChannelServiceException.d.ts +9 -0
- package/dist-types/ts3.4/models/enums.d.ts +106 -0
- package/dist-types/ts3.4/models/errors.d.ts +68 -0
- package/dist-types/ts3.4/models/models_0.d.ts +542 -0
- package/dist-types/ts3.4/pagination/Interfaces.d.ts +6 -0
- package/dist-types/ts3.4/pagination/ListChannelHandshakesPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListProgramManagementAccountsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListRelationshipsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +103 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +98 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +107 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +34 -0
- package/dist-types/ts3.4/runtimeExtensions.d.ts +13 -0
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +117 -0
- package/package.json +100 -0
|
@@ -0,0 +1,360 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import { ListChannelHandshakesRequest, ListChannelHandshakesResponse } 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 ListChannelHandshakesCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface ListChannelHandshakesCommandInput extends ListChannelHandshakesRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link ListChannelHandshakesCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface ListChannelHandshakesCommandOutput extends ListChannelHandshakesResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const ListChannelHandshakesCommand_base: {
|
|
25
|
+
new (input: ListChannelHandshakesCommandInput): import("@smithy/smithy-client").CommandImpl<ListChannelHandshakesCommandInput, ListChannelHandshakesCommandOutput, PartnerCentralChannelClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (input: ListChannelHandshakesCommandInput): import("@smithy/smithy-client").CommandImpl<ListChannelHandshakesCommandInput, ListChannelHandshakesCommandOutput, PartnerCentralChannelClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* <p>Lists channel handshakes 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, ListChannelHandshakesCommand } from "@aws-sdk/client-partnercentral-channel"; // ES Modules import
|
|
35
|
+
* // const { PartnerCentralChannelClient, ListChannelHandshakesCommand } = 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 = { // ListChannelHandshakesRequest
|
|
40
|
+
* handshakeType: "START_SERVICE_PERIOD" || "REVOKE_SERVICE_PERIOD" || "PROGRAM_MANAGEMENT_ACCOUNT", // required
|
|
41
|
+
* catalog: "STRING_VALUE", // required
|
|
42
|
+
* participantType: "SENDER" || "RECEIVER", // required
|
|
43
|
+
* maxResults: Number("int"),
|
|
44
|
+
* statuses: [ // HandshakeStatusList
|
|
45
|
+
* "PENDING" || "ACCEPTED" || "REJECTED" || "CANCELED" || "EXPIRED",
|
|
46
|
+
* ],
|
|
47
|
+
* associatedResourceIdentifiers: [ // AssociatedResourceIdentifierList
|
|
48
|
+
* "STRING_VALUE",
|
|
49
|
+
* ],
|
|
50
|
+
* handshakeTypeFilters: { // ListChannelHandshakesTypeFilters Union: only one key present
|
|
51
|
+
* startServicePeriodTypeFilters: { // StartServicePeriodTypeFilters
|
|
52
|
+
* servicePeriodTypes: [ // ServicePeriodTypeList
|
|
53
|
+
* "MINIMUM_NOTICE_PERIOD" || "FIXED_COMMITMENT_PERIOD",
|
|
54
|
+
* ],
|
|
55
|
+
* },
|
|
56
|
+
* revokeServicePeriodTypeFilters: { // RevokeServicePeriodTypeFilters
|
|
57
|
+
* servicePeriodTypes: [
|
|
58
|
+
* "MINIMUM_NOTICE_PERIOD" || "FIXED_COMMITMENT_PERIOD",
|
|
59
|
+
* ],
|
|
60
|
+
* },
|
|
61
|
+
* programManagementAccountTypeFilters: { // ProgramManagementAccountTypeFilters
|
|
62
|
+
* programs: [ // ProgramList
|
|
63
|
+
* "SOLUTION_PROVIDER" || "DISTRIBUTION" || "DISTRIBUTION_SELLER",
|
|
64
|
+
* ],
|
|
65
|
+
* },
|
|
66
|
+
* },
|
|
67
|
+
* handshakeTypeSort: { // ListChannelHandshakesTypeSort Union: only one key present
|
|
68
|
+
* startServicePeriodTypeSort: { // StartServicePeriodTypeSort
|
|
69
|
+
* sortOrder: "Ascending" || "Descending", // required
|
|
70
|
+
* sortBy: "UpdatedAt", // required
|
|
71
|
+
* },
|
|
72
|
+
* revokeServicePeriodTypeSort: { // RevokeServicePeriodTypeSort
|
|
73
|
+
* sortOrder: "Ascending" || "Descending", // required
|
|
74
|
+
* sortBy: "UpdatedAt", // required
|
|
75
|
+
* },
|
|
76
|
+
* programManagementAccountTypeSort: { // ProgramManagementAccountTypeSort
|
|
77
|
+
* sortOrder: "Ascending" || "Descending", // required
|
|
78
|
+
* sortBy: "UpdatedAt", // required
|
|
79
|
+
* },
|
|
80
|
+
* },
|
|
81
|
+
* nextToken: "STRING_VALUE",
|
|
82
|
+
* };
|
|
83
|
+
* const command = new ListChannelHandshakesCommand(input);
|
|
84
|
+
* const response = await client.send(command);
|
|
85
|
+
* // { // ListChannelHandshakesResponse
|
|
86
|
+
* // items: [ // ChannelHandshakeSummaries
|
|
87
|
+
* // { // ChannelHandshakeSummary
|
|
88
|
+
* // id: "STRING_VALUE",
|
|
89
|
+
* // arn: "STRING_VALUE",
|
|
90
|
+
* // catalog: "STRING_VALUE",
|
|
91
|
+
* // handshakeType: "START_SERVICE_PERIOD" || "REVOKE_SERVICE_PERIOD" || "PROGRAM_MANAGEMENT_ACCOUNT",
|
|
92
|
+
* // ownerAccountId: "STRING_VALUE",
|
|
93
|
+
* // senderAccountId: "STRING_VALUE",
|
|
94
|
+
* // senderDisplayName: "STRING_VALUE",
|
|
95
|
+
* // receiverAccountId: "STRING_VALUE",
|
|
96
|
+
* // associatedResourceId: "STRING_VALUE",
|
|
97
|
+
* // detail: { // HandshakeDetail Union: only one key present
|
|
98
|
+
* // startServicePeriodHandshakeDetail: { // StartServicePeriodHandshakeDetail
|
|
99
|
+
* // note: "STRING_VALUE",
|
|
100
|
+
* // servicePeriodType: "MINIMUM_NOTICE_PERIOD" || "FIXED_COMMITMENT_PERIOD",
|
|
101
|
+
* // minimumNoticeDays: "STRING_VALUE",
|
|
102
|
+
* // startDate: new Date("TIMESTAMP"),
|
|
103
|
+
* // endDate: new Date("TIMESTAMP"),
|
|
104
|
+
* // },
|
|
105
|
+
* // revokeServicePeriodHandshakeDetail: { // RevokeServicePeriodHandshakeDetail
|
|
106
|
+
* // note: "STRING_VALUE",
|
|
107
|
+
* // servicePeriodType: "MINIMUM_NOTICE_PERIOD" || "FIXED_COMMITMENT_PERIOD",
|
|
108
|
+
* // minimumNoticeDays: "STRING_VALUE",
|
|
109
|
+
* // startDate: new Date("TIMESTAMP"),
|
|
110
|
+
* // endDate: new Date("TIMESTAMP"),
|
|
111
|
+
* // },
|
|
112
|
+
* // programManagementAccountHandshakeDetail: { // ProgramManagementAccountHandshakeDetail
|
|
113
|
+
* // program: "SOLUTION_PROVIDER" || "DISTRIBUTION" || "DISTRIBUTION_SELLER",
|
|
114
|
+
* // },
|
|
115
|
+
* // },
|
|
116
|
+
* // createdAt: new Date("TIMESTAMP"),
|
|
117
|
+
* // updatedAt: new Date("TIMESTAMP"),
|
|
118
|
+
* // status: "PENDING" || "ACCEPTED" || "REJECTED" || "CANCELED" || "EXPIRED",
|
|
119
|
+
* // },
|
|
120
|
+
* // ],
|
|
121
|
+
* // nextToken: "STRING_VALUE",
|
|
122
|
+
* // };
|
|
123
|
+
*
|
|
124
|
+
* ```
|
|
125
|
+
*
|
|
126
|
+
* @param ListChannelHandshakesCommandInput - {@link ListChannelHandshakesCommandInput}
|
|
127
|
+
* @returns {@link ListChannelHandshakesCommandOutput}
|
|
128
|
+
* @see {@link ListChannelHandshakesCommandInput} for command's `input` shape.
|
|
129
|
+
* @see {@link ListChannelHandshakesCommandOutput} for command's `response` shape.
|
|
130
|
+
* @see {@link PartnerCentralChannelClientResolvedConfig | config} for PartnerCentralChannelClient's `config` shape.
|
|
131
|
+
*
|
|
132
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
133
|
+
* <p>The request was denied due to insufficient permissions.</p>
|
|
134
|
+
*
|
|
135
|
+
* @throws {@link InternalServerException} (server fault)
|
|
136
|
+
* <p>An internal server error occurred while processing the request.</p>
|
|
137
|
+
*
|
|
138
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
139
|
+
* <p>The specified resource was not found.</p>
|
|
140
|
+
*
|
|
141
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
142
|
+
* <p>The request was throttled due to too many requests being sent in a short period.</p>
|
|
143
|
+
*
|
|
144
|
+
* @throws {@link ValidationException} (client fault)
|
|
145
|
+
* <p>The request failed validation due to invalid input parameters.</p>
|
|
146
|
+
*
|
|
147
|
+
* @throws {@link PartnerCentralChannelServiceException}
|
|
148
|
+
* <p>Base exception class for all service exceptions from PartnerCentralChannel service.</p>
|
|
149
|
+
*
|
|
150
|
+
*
|
|
151
|
+
* @example Example for ListChannelHandshakes - START_SERVICE_PERIOD
|
|
152
|
+
* ```javascript
|
|
153
|
+
* //
|
|
154
|
+
* const input = {
|
|
155
|
+
* associatedResourceIdentifiers: [
|
|
156
|
+
* "rs-123abc456def7"
|
|
157
|
+
* ],
|
|
158
|
+
* catalog: "AWS",
|
|
159
|
+
* handshakeType: "START_SERVICE_PERIOD",
|
|
160
|
+
* handshakeTypeFilters: {
|
|
161
|
+
* startServicePeriodTypeFilters: {
|
|
162
|
+
* servicePeriodTypes: [
|
|
163
|
+
* "FIXED_COMMITMENT_PERIOD"
|
|
164
|
+
* ]
|
|
165
|
+
* }
|
|
166
|
+
* },
|
|
167
|
+
* handshakeTypeSort: {
|
|
168
|
+
* startServicePeriodTypeSort: {
|
|
169
|
+
* sortBy: "UpdatedAt",
|
|
170
|
+
* sortOrder: "Descending"
|
|
171
|
+
* }
|
|
172
|
+
* },
|
|
173
|
+
* participantType: "SENDER",
|
|
174
|
+
* statuses: [
|
|
175
|
+
* "ACCEPTED"
|
|
176
|
+
* ]
|
|
177
|
+
* };
|
|
178
|
+
* const command = new ListChannelHandshakesCommand(input);
|
|
179
|
+
* const response = await client.send(command);
|
|
180
|
+
* /* response is
|
|
181
|
+
* {
|
|
182
|
+
* items: [
|
|
183
|
+
* {
|
|
184
|
+
* arn: "arn:aws:partnercentral:us-east-1:111122223333:catalog/AWS/channel-handshake/ch-4fj3bd2o3vb91",
|
|
185
|
+
* associatedResourceId: "rs-u8ic702rtfew1",
|
|
186
|
+
* catalog: "AWS",
|
|
187
|
+
* createdAt: "2025-04-29T16:18:16.000Z",
|
|
188
|
+
* detail: {
|
|
189
|
+
* startServicePeriodHandshakeDetail: {
|
|
190
|
+
* minimumNoticeDays: "14",
|
|
191
|
+
* note: "Optional_Note",
|
|
192
|
+
* servicePeriodType: "MINIMUM_NOTICE_PERIOD"
|
|
193
|
+
* }
|
|
194
|
+
* },
|
|
195
|
+
* handshakeType: "START_SERVICE_PERIOD",
|
|
196
|
+
* id: "ch-4fj3bd2o3vb91",
|
|
197
|
+
* ownerAccountId: "111122223333",
|
|
198
|
+
* receiverAccountId: "333322221111",
|
|
199
|
+
* senderAccountId: "111122224444",
|
|
200
|
+
* status: "PENDING",
|
|
201
|
+
* updatedAt: "2025-05-02T16:18:16.000Z"
|
|
202
|
+
* },
|
|
203
|
+
* {
|
|
204
|
+
* arn: "arn:aws:partnercentral:us-east-1:111122223333:catalog/AWS/channel-handshake/ch-4fj3bd2o3vb92",
|
|
205
|
+
* associatedResourceId: "rs-u8ic702rtfew1",
|
|
206
|
+
* catalog: "AWS",
|
|
207
|
+
* createdAt: "2025-02-28T16:18:16.000Z",
|
|
208
|
+
* detail: {
|
|
209
|
+
* startServicePeriodHandshakeDetail: {
|
|
210
|
+
* endDate: "2027-03-31T00:00:00.000Z",
|
|
211
|
+
* note: "Optional_Note",
|
|
212
|
+
* servicePeriodType: "FIXED_COMMITMENT_PERIOD",
|
|
213
|
+
* startDate: "2025-02-02T00:00:00.000Z"
|
|
214
|
+
* }
|
|
215
|
+
* },
|
|
216
|
+
* handshakeType: "START_SERVICE_PERIOD",
|
|
217
|
+
* id: "ch-4fj3bd2o3vb92",
|
|
218
|
+
* ownerAccountId: "111122223333",
|
|
219
|
+
* receiverAccountId: "333322221111",
|
|
220
|
+
* senderAccountId: "111122224444",
|
|
221
|
+
* status: "PENDING",
|
|
222
|
+
* updatedAt: "2025-03-02T16:18:16.000Z"
|
|
223
|
+
* }
|
|
224
|
+
* ],
|
|
225
|
+
* nextToken: "nextToken"
|
|
226
|
+
* }
|
|
227
|
+
* *\/
|
|
228
|
+
* ```
|
|
229
|
+
*
|
|
230
|
+
* @example Example for ListChannelHandshakes - REVOKE_SERVICE_PERIOD
|
|
231
|
+
* ```javascript
|
|
232
|
+
* //
|
|
233
|
+
* const input = {
|
|
234
|
+
* associatedResourceIdentifiers: [
|
|
235
|
+
* "rs-123abc456def7"
|
|
236
|
+
* ],
|
|
237
|
+
* catalog: "AWS",
|
|
238
|
+
* handshakeType: "REVOKE_SERVICE_PERIOD",
|
|
239
|
+
* handshakeTypeFilters: {
|
|
240
|
+
* revokeServicePeriodTypeFilters: {
|
|
241
|
+
* servicePeriodTypes: [
|
|
242
|
+
* "MINIMUM_NOTICE_PERIOD"
|
|
243
|
+
* ]
|
|
244
|
+
* }
|
|
245
|
+
* },
|
|
246
|
+
* handshakeTypeSort: {
|
|
247
|
+
* revokeServicePeriodTypeSort: {
|
|
248
|
+
* sortBy: "UpdatedAt",
|
|
249
|
+
* sortOrder: "Descending"
|
|
250
|
+
* }
|
|
251
|
+
* },
|
|
252
|
+
* participantType: "SENDER",
|
|
253
|
+
* statuses: [
|
|
254
|
+
* "ACCEPTED"
|
|
255
|
+
* ]
|
|
256
|
+
* };
|
|
257
|
+
* const command = new ListChannelHandshakesCommand(input);
|
|
258
|
+
* const response = await client.send(command);
|
|
259
|
+
* /* response is
|
|
260
|
+
* {
|
|
261
|
+
* items: [
|
|
262
|
+
* {
|
|
263
|
+
* arn: "arn:aws:partnercentral:us-east-1:111122223333:catalog/AWS/channel-handshake/ch-4fj3bd2o3vb91",
|
|
264
|
+
* associatedResourceId: "rs-u8ic702rtfew1",
|
|
265
|
+
* catalog: "AWS",
|
|
266
|
+
* createdAt: "2025-04-29T16:18:16.000Z",
|
|
267
|
+
* detail: {
|
|
268
|
+
* revokeServicePeriodHandshakeDetail: {
|
|
269
|
+
* minimumNoticeDays: "14",
|
|
270
|
+
* note: "Optional_Note",
|
|
271
|
+
* servicePeriodType: "MINIMUM_NOTICE_PERIOD"
|
|
272
|
+
* }
|
|
273
|
+
* },
|
|
274
|
+
* handshakeType: "REVOKE_SERVICE_PERIOD",
|
|
275
|
+
* id: "ch-4fj3bd2o3vb91",
|
|
276
|
+
* ownerAccountId: "111122223333",
|
|
277
|
+
* receiverAccountId: "333322221111",
|
|
278
|
+
* senderAccountId: "111122224444",
|
|
279
|
+
* status: "PENDING",
|
|
280
|
+
* updatedAt: "2025-05-02T16:18:16.000Z"
|
|
281
|
+
* }
|
|
282
|
+
* ],
|
|
283
|
+
* nextToken: "nextToken"
|
|
284
|
+
* }
|
|
285
|
+
* *\/
|
|
286
|
+
* ```
|
|
287
|
+
*
|
|
288
|
+
* @example Example for ListChannelHandshakes - PROGRAM_MANAGEMENT_ACCOUNT
|
|
289
|
+
* ```javascript
|
|
290
|
+
* //
|
|
291
|
+
* const input = {
|
|
292
|
+
* associatedResourceIdentifiers: [
|
|
293
|
+
* "pma-123abc456def7"
|
|
294
|
+
* ],
|
|
295
|
+
* catalog: "AWS",
|
|
296
|
+
* handshakeType: "PROGRAM_MANAGEMENT_ACCOUNT",
|
|
297
|
+
* handshakeTypeFilters: {
|
|
298
|
+
* programManagementAccountTypeFilters: {
|
|
299
|
+
* programs: [
|
|
300
|
+
* "SOLUTION_PROVIDER"
|
|
301
|
+
* ]
|
|
302
|
+
* }
|
|
303
|
+
* },
|
|
304
|
+
* handshakeTypeSort: {
|
|
305
|
+
* programManagementAccountTypeSort: {
|
|
306
|
+
* sortBy: "UpdatedAt",
|
|
307
|
+
* sortOrder: "Descending"
|
|
308
|
+
* }
|
|
309
|
+
* },
|
|
310
|
+
* maxResults: 20,
|
|
311
|
+
* nextToken: "nextToken",
|
|
312
|
+
* participantType: "SENDER",
|
|
313
|
+
* statuses: [
|
|
314
|
+
* "ACCEPTED"
|
|
315
|
+
* ]
|
|
316
|
+
* };
|
|
317
|
+
* const command = new ListChannelHandshakesCommand(input);
|
|
318
|
+
* const response = await client.send(command);
|
|
319
|
+
* /* response is
|
|
320
|
+
* {
|
|
321
|
+
* items: [
|
|
322
|
+
* {
|
|
323
|
+
* arn: "arn:aws:partnercentral:us-east-1:111122223333:catalog/AWS/channel-handshake/ch-4fj3bd2o3vb91",
|
|
324
|
+
* associatedResourceId: "pma-u8ic702rtfew1",
|
|
325
|
+
* catalog: "AWS",
|
|
326
|
+
* createdAt: "2025-02-28T16:18:16.000Z",
|
|
327
|
+
* detail: {
|
|
328
|
+
* programManagementAccountHandshakeDetail: {
|
|
329
|
+
* program: "SOLUTION_PROVIDER"
|
|
330
|
+
* }
|
|
331
|
+
* },
|
|
332
|
+
* handshakeType: "PROGRAM_MANAGEMENT_ACCOUNT",
|
|
333
|
+
* id: "ch-4fj3bd2o3vb91",
|
|
334
|
+
* ownerAccountId: "111122223333",
|
|
335
|
+
* receiverAccountId: "333322221111",
|
|
336
|
+
* senderAccountId: "111122223333",
|
|
337
|
+
* status: "PENDING",
|
|
338
|
+
* updatedAt: "2025-03-02T16:18:16.000Z"
|
|
339
|
+
* }
|
|
340
|
+
* ],
|
|
341
|
+
* nextToken: "nextToken"
|
|
342
|
+
* }
|
|
343
|
+
* *\/
|
|
344
|
+
* ```
|
|
345
|
+
*
|
|
346
|
+
* @public
|
|
347
|
+
*/
|
|
348
|
+
export declare class ListChannelHandshakesCommand extends ListChannelHandshakesCommand_base {
|
|
349
|
+
/** @internal type navigation helper, not in runtime. */
|
|
350
|
+
protected static __types: {
|
|
351
|
+
api: {
|
|
352
|
+
input: ListChannelHandshakesRequest;
|
|
353
|
+
output: ListChannelHandshakesResponse;
|
|
354
|
+
};
|
|
355
|
+
sdk: {
|
|
356
|
+
input: ListChannelHandshakesCommandInput;
|
|
357
|
+
output: ListChannelHandshakesCommandOutput;
|
|
358
|
+
};
|
|
359
|
+
};
|
|
360
|
+
}
|
|
@@ -0,0 +1,168 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import { ListProgramManagementAccountsRequest, ListProgramManagementAccountsResponse } 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 ListProgramManagementAccountsCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface ListProgramManagementAccountsCommandInput extends ListProgramManagementAccountsRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link ListProgramManagementAccountsCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface ListProgramManagementAccountsCommandOutput extends ListProgramManagementAccountsResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const ListProgramManagementAccountsCommand_base: {
|
|
25
|
+
new (input: ListProgramManagementAccountsCommandInput): import("@smithy/smithy-client").CommandImpl<ListProgramManagementAccountsCommandInput, ListProgramManagementAccountsCommandOutput, PartnerCentralChannelClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (input: ListProgramManagementAccountsCommandInput): import("@smithy/smithy-client").CommandImpl<ListProgramManagementAccountsCommandInput, ListProgramManagementAccountsCommandOutput, PartnerCentralChannelClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* <p>Lists program management accounts 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, ListProgramManagementAccountsCommand } from "@aws-sdk/client-partnercentral-channel"; // ES Modules import
|
|
35
|
+
* // const { PartnerCentralChannelClient, ListProgramManagementAccountsCommand } = 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 = { // ListProgramManagementAccountsRequest
|
|
40
|
+
* catalog: "STRING_VALUE", // required
|
|
41
|
+
* maxResults: Number("int"),
|
|
42
|
+
* displayNames: [ // ProgramManagementAccountDisplayNameList
|
|
43
|
+
* "STRING_VALUE",
|
|
44
|
+
* ],
|
|
45
|
+
* programs: [ // ProgramList
|
|
46
|
+
* "SOLUTION_PROVIDER" || "DISTRIBUTION" || "DISTRIBUTION_SELLER",
|
|
47
|
+
* ],
|
|
48
|
+
* accountIds: [ // AccountIdList
|
|
49
|
+
* "STRING_VALUE",
|
|
50
|
+
* ],
|
|
51
|
+
* statuses: [ // ProgramManagementAccountStatusList
|
|
52
|
+
* "PENDING" || "ACTIVE" || "INACTIVE",
|
|
53
|
+
* ],
|
|
54
|
+
* sort: { // ListProgramManagementAccountsSortBase
|
|
55
|
+
* sortOrder: "Ascending" || "Descending", // required
|
|
56
|
+
* sortBy: "UpdatedAt", // required
|
|
57
|
+
* },
|
|
58
|
+
* nextToken: "STRING_VALUE",
|
|
59
|
+
* };
|
|
60
|
+
* const command = new ListProgramManagementAccountsCommand(input);
|
|
61
|
+
* const response = await client.send(command);
|
|
62
|
+
* // { // ListProgramManagementAccountsResponse
|
|
63
|
+
* // items: [ // ProgramManagementAccountSummaries
|
|
64
|
+
* // { // ProgramManagementAccountSummary
|
|
65
|
+
* // id: "STRING_VALUE",
|
|
66
|
+
* // revision: "STRING_VALUE",
|
|
67
|
+
* // catalog: "STRING_VALUE",
|
|
68
|
+
* // program: "SOLUTION_PROVIDER" || "DISTRIBUTION" || "DISTRIBUTION_SELLER",
|
|
69
|
+
* // displayName: "STRING_VALUE",
|
|
70
|
+
* // accountId: "STRING_VALUE",
|
|
71
|
+
* // arn: "STRING_VALUE",
|
|
72
|
+
* // createdAt: new Date("TIMESTAMP"),
|
|
73
|
+
* // updatedAt: new Date("TIMESTAMP"),
|
|
74
|
+
* // startDate: new Date("TIMESTAMP"),
|
|
75
|
+
* // status: "PENDING" || "ACTIVE" || "INACTIVE",
|
|
76
|
+
* // },
|
|
77
|
+
* // ],
|
|
78
|
+
* // nextToken: "STRING_VALUE",
|
|
79
|
+
* // };
|
|
80
|
+
*
|
|
81
|
+
* ```
|
|
82
|
+
*
|
|
83
|
+
* @param ListProgramManagementAccountsCommandInput - {@link ListProgramManagementAccountsCommandInput}
|
|
84
|
+
* @returns {@link ListProgramManagementAccountsCommandOutput}
|
|
85
|
+
* @see {@link ListProgramManagementAccountsCommandInput} for command's `input` shape.
|
|
86
|
+
* @see {@link ListProgramManagementAccountsCommandOutput} for command's `response` shape.
|
|
87
|
+
* @see {@link PartnerCentralChannelClientResolvedConfig | config} for PartnerCentralChannelClient's `config` shape.
|
|
88
|
+
*
|
|
89
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
90
|
+
* <p>The request was denied due to insufficient permissions.</p>
|
|
91
|
+
*
|
|
92
|
+
* @throws {@link InternalServerException} (server fault)
|
|
93
|
+
* <p>An internal server error occurred while processing the request.</p>
|
|
94
|
+
*
|
|
95
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
96
|
+
* <p>The specified resource was not found.</p>
|
|
97
|
+
*
|
|
98
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
99
|
+
* <p>The request was throttled due to too many requests being sent in a short period.</p>
|
|
100
|
+
*
|
|
101
|
+
* @throws {@link ValidationException} (client fault)
|
|
102
|
+
* <p>The request failed validation due to invalid input parameters.</p>
|
|
103
|
+
*
|
|
104
|
+
* @throws {@link PartnerCentralChannelServiceException}
|
|
105
|
+
* <p>Base exception class for all service exceptions from PartnerCentralChannel service.</p>
|
|
106
|
+
*
|
|
107
|
+
*
|
|
108
|
+
* @example Example for ListProgramManagementAccounts
|
|
109
|
+
* ```javascript
|
|
110
|
+
* //
|
|
111
|
+
* const input = {
|
|
112
|
+
* accountIds: [
|
|
113
|
+
* "111122223333"
|
|
114
|
+
* ],
|
|
115
|
+
* catalog: "AWS",
|
|
116
|
+
* displayNames: [
|
|
117
|
+
* "TestDisplayName"
|
|
118
|
+
* ],
|
|
119
|
+
* maxResults: 20,
|
|
120
|
+
* programs: [
|
|
121
|
+
* "SOLUTION_PROVIDER"
|
|
122
|
+
* ],
|
|
123
|
+
* sort: {
|
|
124
|
+
* sortBy: "UpdatedAt",
|
|
125
|
+
* sortOrder: "Descending"
|
|
126
|
+
* },
|
|
127
|
+
* statuses: [
|
|
128
|
+
* "PENDING"
|
|
129
|
+
* ]
|
|
130
|
+
* };
|
|
131
|
+
* const command = new ListProgramManagementAccountsCommand(input);
|
|
132
|
+
* const response = await client.send(command);
|
|
133
|
+
* /* response is
|
|
134
|
+
* {
|
|
135
|
+
* items: [
|
|
136
|
+
* {
|
|
137
|
+
* accountId: "111122223333",
|
|
138
|
+
* arn: "arn:aws:partnercentral:us-east-1:123456789012:catalog/AWS/program-management-account/pma-u8ic702rtzng8",
|
|
139
|
+
* catalog: "AWS",
|
|
140
|
+
* createdAt: "2024-04-29T08:52:46.397Z",
|
|
141
|
+
* displayName: "TestDisplayName",
|
|
142
|
+
* id: "pma-u8ic702rtzng8",
|
|
143
|
+
* program: "SOLUTION_PROVIDER",
|
|
144
|
+
* revision: "4",
|
|
145
|
+
* status: "PENDING",
|
|
146
|
+
* updatedAt: "2024-05-02T16:18:16.432Z"
|
|
147
|
+
* }
|
|
148
|
+
* ],
|
|
149
|
+
* nextToken: "nextToken"
|
|
150
|
+
* }
|
|
151
|
+
* *\/
|
|
152
|
+
* ```
|
|
153
|
+
*
|
|
154
|
+
* @public
|
|
155
|
+
*/
|
|
156
|
+
export declare class ListProgramManagementAccountsCommand extends ListProgramManagementAccountsCommand_base {
|
|
157
|
+
/** @internal type navigation helper, not in runtime. */
|
|
158
|
+
protected static __types: {
|
|
159
|
+
api: {
|
|
160
|
+
input: ListProgramManagementAccountsRequest;
|
|
161
|
+
output: ListProgramManagementAccountsResponse;
|
|
162
|
+
};
|
|
163
|
+
sdk: {
|
|
164
|
+
input: ListProgramManagementAccountsCommandInput;
|
|
165
|
+
output: ListProgramManagementAccountsCommandOutput;
|
|
166
|
+
};
|
|
167
|
+
};
|
|
168
|
+
}
|