@aws-sdk/client-partnercentral-channel 3.1173.0 → 3.1175.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 (44) hide show
  1. package/README.md +28 -0
  2. package/dist-cjs/index.js +310 -21
  3. package/dist-es/PartnerCentralChannel.js +10 -0
  4. package/dist-es/commands/CancelChannelContractCommand.js +4 -0
  5. package/dist-es/commands/CreateChannelContractCommand.js +4 -0
  6. package/dist-es/commands/GetChannelContractCommand.js +4 -0
  7. package/dist-es/commands/ListChannelContractsCommand.js +4 -0
  8. package/dist-es/commands/index.js +4 -0
  9. package/dist-es/models/enums.js +37 -4
  10. package/dist-es/pagination/ListChannelContractsPaginator.js +4 -0
  11. package/dist-es/pagination/index.js +1 -0
  12. package/dist-es/schemas/schemas_0.js +219 -16
  13. package/dist-types/PartnerCentralChannel.d.ts +35 -0
  14. package/dist-types/PartnerCentralChannelClient.d.ts +6 -2
  15. package/dist-types/commands/CancelChannelContractCommand.d.ts +120 -0
  16. package/dist-types/commands/CreateChannelContractCommand.d.ts +172 -0
  17. package/dist-types/commands/CreateProgramManagementAccountCommand.d.ts +25 -1
  18. package/dist-types/commands/CreateRelationshipCommand.d.ts +30 -2
  19. package/dist-types/commands/GetChannelContractCommand.d.ts +220 -0
  20. package/dist-types/commands/GetRelationshipCommand.d.ts +36 -1
  21. package/dist-types/commands/ListChannelContractsCommand.d.ts +196 -0
  22. package/dist-types/commands/ListChannelHandshakesCommand.d.ts +2 -2
  23. package/dist-types/commands/ListProgramManagementAccountsCommand.d.ts +4 -2
  24. package/dist-types/commands/ListRelationshipsCommand.d.ts +2 -2
  25. package/dist-types/commands/TagResourceCommand.d.ts +19 -0
  26. package/dist-types/commands/index.d.ts +4 -0
  27. package/dist-types/models/enums.d.ts +93 -12
  28. package/dist-types/models/models_0.d.ts +750 -35
  29. package/dist-types/pagination/ListChannelContractsPaginator.d.ts +7 -0
  30. package/dist-types/pagination/index.d.ts +1 -0
  31. package/dist-types/schemas/schemas_0.d.ts +27 -0
  32. package/dist-types/ts3.4/PartnerCentralChannel.d.ts +75 -0
  33. package/dist-types/ts3.4/PartnerCentralChannelClient.d.ts +24 -0
  34. package/dist-types/ts3.4/commands/CancelChannelContractCommand.d.ts +39 -0
  35. package/dist-types/ts3.4/commands/CreateChannelContractCommand.d.ts +39 -0
  36. package/dist-types/ts3.4/commands/GetChannelContractCommand.d.ts +39 -0
  37. package/dist-types/ts3.4/commands/ListChannelContractsCommand.d.ts +39 -0
  38. package/dist-types/ts3.4/commands/index.d.ts +4 -0
  39. package/dist-types/ts3.4/models/enums.d.ts +48 -5
  40. package/dist-types/ts3.4/models/models_0.d.ts +222 -5
  41. package/dist-types/ts3.4/pagination/ListChannelContractsPaginator.d.ts +11 -0
  42. package/dist-types/ts3.4/pagination/index.d.ts +1 -0
  43. package/dist-types/ts3.4/schemas/schemas_0.d.ts +27 -0
  44. package/package.json +3 -3
@@ -1,12 +1,16 @@
1
1
  import type { HttpHandlerOptions as __HttpHandlerOptions, MetricsRecorder as __MetricsRecorder, PaginationConfiguration, Paginator } from "@smithy/types";
2
2
  import { type AcceptChannelHandshakeCommandInput, type AcceptChannelHandshakeCommandOutput } from "./commands/AcceptChannelHandshakeCommand";
3
+ import { type CancelChannelContractCommandInput, type CancelChannelContractCommandOutput } from "./commands/CancelChannelContractCommand";
3
4
  import { type CancelChannelHandshakeCommandInput, type CancelChannelHandshakeCommandOutput } from "./commands/CancelChannelHandshakeCommand";
5
+ import { type CreateChannelContractCommandInput, type CreateChannelContractCommandOutput } from "./commands/CreateChannelContractCommand";
4
6
  import { type CreateChannelHandshakeCommandInput, type CreateChannelHandshakeCommandOutput } from "./commands/CreateChannelHandshakeCommand";
5
7
  import { type CreateProgramManagementAccountCommandInput, type CreateProgramManagementAccountCommandOutput } from "./commands/CreateProgramManagementAccountCommand";
6
8
  import { type CreateRelationshipCommandInput, type CreateRelationshipCommandOutput } from "./commands/CreateRelationshipCommand";
7
9
  import { type DeleteProgramManagementAccountCommandInput, type DeleteProgramManagementAccountCommandOutput } from "./commands/DeleteProgramManagementAccountCommand";
8
10
  import { type DeleteRelationshipCommandInput, type DeleteRelationshipCommandOutput } from "./commands/DeleteRelationshipCommand";
11
+ import { type GetChannelContractCommandInput, type GetChannelContractCommandOutput } from "./commands/GetChannelContractCommand";
9
12
  import { type GetRelationshipCommandInput, type GetRelationshipCommandOutput } from "./commands/GetRelationshipCommand";
13
+ import { type ListChannelContractsCommandInput, type ListChannelContractsCommandOutput } from "./commands/ListChannelContractsCommand";
10
14
  import { type ListChannelHandshakesCommandInput, type ListChannelHandshakesCommandOutput } from "./commands/ListChannelHandshakesCommand";
11
15
  import { type ListProgramManagementAccountsCommandInput, type ListProgramManagementAccountsCommandOutput } from "./commands/ListProgramManagementAccountsCommand";
12
16
  import { type ListRelationshipsCommandInput, type ListRelationshipsCommandOutput } from "./commands/ListRelationshipsCommand";
@@ -30,12 +34,24 @@ export interface PartnerCentralChannel {
30
34
  acceptChannelHandshake(args: AcceptChannelHandshakeCommandInput, options?: PartnerCentralChannelRequestOptions): Promise<AcceptChannelHandshakeCommandOutput>;
31
35
  acceptChannelHandshake(args: AcceptChannelHandshakeCommandInput, cb: (err: any, data?: AcceptChannelHandshakeCommandOutput) => void): void;
32
36
  acceptChannelHandshake(args: AcceptChannelHandshakeCommandInput, options: PartnerCentralChannelRequestOptions, cb: (err: any, data?: AcceptChannelHandshakeCommandOutput) => void): void;
37
+ /**
38
+ * @see {@link CancelChannelContractCommand}
39
+ */
40
+ cancelChannelContract(args: CancelChannelContractCommandInput, options?: PartnerCentralChannelRequestOptions): Promise<CancelChannelContractCommandOutput>;
41
+ cancelChannelContract(args: CancelChannelContractCommandInput, cb: (err: any, data?: CancelChannelContractCommandOutput) => void): void;
42
+ cancelChannelContract(args: CancelChannelContractCommandInput, options: PartnerCentralChannelRequestOptions, cb: (err: any, data?: CancelChannelContractCommandOutput) => void): void;
33
43
  /**
34
44
  * @see {@link CancelChannelHandshakeCommand}
35
45
  */
36
46
  cancelChannelHandshake(args: CancelChannelHandshakeCommandInput, options?: PartnerCentralChannelRequestOptions): Promise<CancelChannelHandshakeCommandOutput>;
37
47
  cancelChannelHandshake(args: CancelChannelHandshakeCommandInput, cb: (err: any, data?: CancelChannelHandshakeCommandOutput) => void): void;
38
48
  cancelChannelHandshake(args: CancelChannelHandshakeCommandInput, options: PartnerCentralChannelRequestOptions, cb: (err: any, data?: CancelChannelHandshakeCommandOutput) => void): void;
49
+ /**
50
+ * @see {@link CreateChannelContractCommand}
51
+ */
52
+ createChannelContract(args: CreateChannelContractCommandInput, options?: PartnerCentralChannelRequestOptions): Promise<CreateChannelContractCommandOutput>;
53
+ createChannelContract(args: CreateChannelContractCommandInput, cb: (err: any, data?: CreateChannelContractCommandOutput) => void): void;
54
+ createChannelContract(args: CreateChannelContractCommandInput, options: PartnerCentralChannelRequestOptions, cb: (err: any, data?: CreateChannelContractCommandOutput) => void): void;
39
55
  /**
40
56
  * @see {@link CreateChannelHandshakeCommand}
41
57
  */
@@ -66,12 +82,24 @@ export interface PartnerCentralChannel {
66
82
  deleteRelationship(args: DeleteRelationshipCommandInput, options?: PartnerCentralChannelRequestOptions): Promise<DeleteRelationshipCommandOutput>;
67
83
  deleteRelationship(args: DeleteRelationshipCommandInput, cb: (err: any, data?: DeleteRelationshipCommandOutput) => void): void;
68
84
  deleteRelationship(args: DeleteRelationshipCommandInput, options: PartnerCentralChannelRequestOptions, cb: (err: any, data?: DeleteRelationshipCommandOutput) => void): void;
85
+ /**
86
+ * @see {@link GetChannelContractCommand}
87
+ */
88
+ getChannelContract(args: GetChannelContractCommandInput, options?: PartnerCentralChannelRequestOptions): Promise<GetChannelContractCommandOutput>;
89
+ getChannelContract(args: GetChannelContractCommandInput, cb: (err: any, data?: GetChannelContractCommandOutput) => void): void;
90
+ getChannelContract(args: GetChannelContractCommandInput, options: PartnerCentralChannelRequestOptions, cb: (err: any, data?: GetChannelContractCommandOutput) => void): void;
69
91
  /**
70
92
  * @see {@link GetRelationshipCommand}
71
93
  */
72
94
  getRelationship(args: GetRelationshipCommandInput, options?: PartnerCentralChannelRequestOptions): Promise<GetRelationshipCommandOutput>;
73
95
  getRelationship(args: GetRelationshipCommandInput, cb: (err: any, data?: GetRelationshipCommandOutput) => void): void;
74
96
  getRelationship(args: GetRelationshipCommandInput, options: PartnerCentralChannelRequestOptions, cb: (err: any, data?: GetRelationshipCommandOutput) => void): void;
97
+ /**
98
+ * @see {@link ListChannelContractsCommand}
99
+ */
100
+ listChannelContracts(args: ListChannelContractsCommandInput, options?: PartnerCentralChannelRequestOptions): Promise<ListChannelContractsCommandOutput>;
101
+ listChannelContracts(args: ListChannelContractsCommandInput, cb: (err: any, data?: ListChannelContractsCommandOutput) => void): void;
102
+ listChannelContracts(args: ListChannelContractsCommandInput, options: PartnerCentralChannelRequestOptions, cb: (err: any, data?: ListChannelContractsCommandOutput) => void): void;
75
103
  /**
76
104
  * @see {@link ListChannelHandshakesCommand}
77
105
  */
@@ -126,6 +154,13 @@ export interface PartnerCentralChannel {
126
154
  updateRelationship(args: UpdateRelationshipCommandInput, options?: PartnerCentralChannelRequestOptions): Promise<UpdateRelationshipCommandOutput>;
127
155
  updateRelationship(args: UpdateRelationshipCommandInput, cb: (err: any, data?: UpdateRelationshipCommandOutput) => void): void;
128
156
  updateRelationship(args: UpdateRelationshipCommandInput, options: PartnerCentralChannelRequestOptions, cb: (err: any, data?: UpdateRelationshipCommandOutput) => void): void;
157
+ /**
158
+ * @see {@link ListChannelContractsCommand}
159
+ * @param args - command input.
160
+ * @param paginationConfig - optional pagination config.
161
+ * @returns AsyncIterable of {@link ListChannelContractsCommandOutput}.
162
+ */
163
+ paginateListChannelContracts(args: ListChannelContractsCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListChannelContractsCommandOutput>;
129
164
  /**
130
165
  * @see {@link ListChannelHandshakesCommand}
131
166
  * @param args - command input.
@@ -7,13 +7,17 @@ import { type RetryInputConfig, type RetryResolvedConfig } from "@smithy/core/re
7
7
  import type { AwsCredentialIdentityProvider, BodyLengthCalculator as __BodyLengthCalculator, CheckOptionalClientConfig as __CheckOptionalClientConfig, ChecksumConstructor as __ChecksumConstructor, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@smithy/types";
8
8
  import { type HttpAuthSchemeInputConfig, type HttpAuthSchemeResolvedConfig } from "./auth/httpAuthSchemeProvider";
9
9
  import type { AcceptChannelHandshakeCommandInput, AcceptChannelHandshakeCommandOutput } from "./commands/AcceptChannelHandshakeCommand";
10
+ import type { CancelChannelContractCommandInput, CancelChannelContractCommandOutput } from "./commands/CancelChannelContractCommand";
10
11
  import type { CancelChannelHandshakeCommandInput, CancelChannelHandshakeCommandOutput } from "./commands/CancelChannelHandshakeCommand";
12
+ import type { CreateChannelContractCommandInput, CreateChannelContractCommandOutput } from "./commands/CreateChannelContractCommand";
11
13
  import type { CreateChannelHandshakeCommandInput, CreateChannelHandshakeCommandOutput } from "./commands/CreateChannelHandshakeCommand";
12
14
  import type { CreateProgramManagementAccountCommandInput, CreateProgramManagementAccountCommandOutput } from "./commands/CreateProgramManagementAccountCommand";
13
15
  import type { CreateRelationshipCommandInput, CreateRelationshipCommandOutput } from "./commands/CreateRelationshipCommand";
14
16
  import type { DeleteProgramManagementAccountCommandInput, DeleteProgramManagementAccountCommandOutput } from "./commands/DeleteProgramManagementAccountCommand";
15
17
  import type { DeleteRelationshipCommandInput, DeleteRelationshipCommandOutput } from "./commands/DeleteRelationshipCommand";
18
+ import type { GetChannelContractCommandInput, GetChannelContractCommandOutput } from "./commands/GetChannelContractCommand";
16
19
  import type { GetRelationshipCommandInput, GetRelationshipCommandOutput } from "./commands/GetRelationshipCommand";
20
+ import type { ListChannelContractsCommandInput, ListChannelContractsCommandOutput } from "./commands/ListChannelContractsCommand";
17
21
  import type { ListChannelHandshakesCommandInput, ListChannelHandshakesCommandOutput } from "./commands/ListChannelHandshakesCommand";
18
22
  import type { ListProgramManagementAccountsCommandInput, ListProgramManagementAccountsCommandOutput } from "./commands/ListProgramManagementAccountsCommand";
19
23
  import type { ListRelationshipsCommandInput, ListRelationshipsCommandOutput } from "./commands/ListRelationshipsCommand";
@@ -29,11 +33,11 @@ export { __Client };
29
33
  /**
30
34
  * @public
31
35
  */
32
- export type ServiceInputTypes = AcceptChannelHandshakeCommandInput | CancelChannelHandshakeCommandInput | CreateChannelHandshakeCommandInput | CreateProgramManagementAccountCommandInput | CreateRelationshipCommandInput | DeleteProgramManagementAccountCommandInput | DeleteRelationshipCommandInput | GetRelationshipCommandInput | ListChannelHandshakesCommandInput | ListProgramManagementAccountsCommandInput | ListRelationshipsCommandInput | ListTagsForResourceCommandInput | RejectChannelHandshakeCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateProgramManagementAccountCommandInput | UpdateRelationshipCommandInput;
36
+ export type ServiceInputTypes = AcceptChannelHandshakeCommandInput | CancelChannelContractCommandInput | CancelChannelHandshakeCommandInput | CreateChannelContractCommandInput | CreateChannelHandshakeCommandInput | CreateProgramManagementAccountCommandInput | CreateRelationshipCommandInput | DeleteProgramManagementAccountCommandInput | DeleteRelationshipCommandInput | GetChannelContractCommandInput | GetRelationshipCommandInput | ListChannelContractsCommandInput | ListChannelHandshakesCommandInput | ListProgramManagementAccountsCommandInput | ListRelationshipsCommandInput | ListTagsForResourceCommandInput | RejectChannelHandshakeCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateProgramManagementAccountCommandInput | UpdateRelationshipCommandInput;
33
37
  /**
34
38
  * @public
35
39
  */
36
- export type ServiceOutputTypes = AcceptChannelHandshakeCommandOutput | CancelChannelHandshakeCommandOutput | CreateChannelHandshakeCommandOutput | CreateProgramManagementAccountCommandOutput | CreateRelationshipCommandOutput | DeleteProgramManagementAccountCommandOutput | DeleteRelationshipCommandOutput | GetRelationshipCommandOutput | ListChannelHandshakesCommandOutput | ListProgramManagementAccountsCommandOutput | ListRelationshipsCommandOutput | ListTagsForResourceCommandOutput | RejectChannelHandshakeCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateProgramManagementAccountCommandOutput | UpdateRelationshipCommandOutput;
40
+ export type ServiceOutputTypes = AcceptChannelHandshakeCommandOutput | CancelChannelContractCommandOutput | CancelChannelHandshakeCommandOutput | CreateChannelContractCommandOutput | CreateChannelHandshakeCommandOutput | CreateProgramManagementAccountCommandOutput | CreateRelationshipCommandOutput | DeleteProgramManagementAccountCommandOutput | DeleteRelationshipCommandOutput | GetChannelContractCommandOutput | GetRelationshipCommandOutput | ListChannelContractsCommandOutput | ListChannelHandshakesCommandOutput | ListProgramManagementAccountsCommandOutput | ListRelationshipsCommandOutput | ListTagsForResourceCommandOutput | RejectChannelHandshakeCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateProgramManagementAccountCommandOutput | UpdateRelationshipCommandOutput;
37
41
  /**
38
42
  * @public
39
43
  */
@@ -0,0 +1,120 @@
1
+ import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
2
+ import type { CancelChannelContractRequest, CancelChannelContractResponse } from "../models/models_0";
3
+ /**
4
+ * @public
5
+ */
6
+ export type { __MetadataBearer };
7
+ /**
8
+ * @public
9
+ *
10
+ * The input for {@link CancelChannelContractCommand}.
11
+ */
12
+ export interface CancelChannelContractCommandInput extends CancelChannelContractRequest {
13
+ }
14
+ /**
15
+ * @public
16
+ *
17
+ * The output of {@link CancelChannelContractCommand}.
18
+ */
19
+ export interface CancelChannelContractCommandOutput extends CancelChannelContractResponse, __MetadataBearer {
20
+ }
21
+ declare const CancelChannelContractCommand_base: {
22
+ new (input: CancelChannelContractCommandInput): import("@smithy/core/client").CommandImpl<CancelChannelContractCommandInput, CancelChannelContractCommandOutput, import("..").PartnerCentralChannelClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
23
+ new (input: CancelChannelContractCommandInput): import("@smithy/core/client").CommandImpl<CancelChannelContractCommandInput, CancelChannelContractCommandOutput, import("..").PartnerCentralChannelClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
24
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
25
+ };
26
+ /**
27
+ * <p>Cancels a pending channel contract created within the last 30 days. A request for a channel contract that isn't PENDING, including one that is already CANCELED, fails with a ValidationException.</p>
28
+ * @example
29
+ * Use a bare-bones client and the command you need to make an API call.
30
+ * ```javascript
31
+ * import { PartnerCentralChannelClient, CancelChannelContractCommand } from "@aws-sdk/client-partnercentral-channel"; // ES Modules import
32
+ * // const { PartnerCentralChannelClient, CancelChannelContractCommand } = require("@aws-sdk/client-partnercentral-channel"); // CommonJS import
33
+ * // import type { PartnerCentralChannelClientConfig } from "@aws-sdk/client-partnercentral-channel";
34
+ * const config = {}; // type is PartnerCentralChannelClientConfig
35
+ * const client = new PartnerCentralChannelClient(config);
36
+ * const input = { // CancelChannelContractRequest
37
+ * catalog: "STRING_VALUE", // required
38
+ * identifier: "STRING_VALUE", // required
39
+ * reason: "STRING_VALUE",
40
+ * clientToken: "STRING_VALUE",
41
+ * };
42
+ * const command = new CancelChannelContractCommand(input);
43
+ * const response = await client.send(command);
44
+ * // { // CancelChannelContractResponse
45
+ * // channelContractDetail: { // CancelChannelContractDetail
46
+ * // id: "STRING_VALUE",
47
+ * // arn: "STRING_VALUE",
48
+ * // status: "PENDING" || "ACCEPTED" || "EXPIRED" || "CANCELED" || "INACTIVE",
49
+ * // cancellationReason: "STRING_VALUE",
50
+ * // },
51
+ * // };
52
+ *
53
+ * ```
54
+ *
55
+ * @param CancelChannelContractCommandInput - {@link CancelChannelContractCommandInput}
56
+ * @returns {@link CancelChannelContractCommandOutput}
57
+ * @see {@link CancelChannelContractCommandInput} for command's `input` shape.
58
+ * @see {@link CancelChannelContractCommandOutput} 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 ConflictException} (client fault)
65
+ * <p>The request could not be completed due to a conflict with the current state of the resource.</p>
66
+ *
67
+ * @throws {@link InternalServerException} (server fault)
68
+ * <p>An internal server error occurred while processing the request.</p>
69
+ *
70
+ * @throws {@link ResourceNotFoundException} (client fault)
71
+ * <p>The specified resource was not found.</p>
72
+ *
73
+ * @throws {@link ThrottlingException} (client fault)
74
+ * <p>The request was throttled due to too many requests being sent in a short period.</p>
75
+ *
76
+ * @throws {@link ValidationException} (client fault)
77
+ * <p>The request failed validation due to invalid input parameters.</p>
78
+ *
79
+ * @throws {@link PartnerCentralChannelServiceException}
80
+ * <p>Base exception class for all service exceptions from PartnerCentralChannel service.</p>
81
+ *
82
+ *
83
+ * @example Example for CancelChannelContract
84
+ * ```javascript
85
+ * //
86
+ * const input = {
87
+ * catalog: "AWS",
88
+ * clientToken: "clientToken",
89
+ * identifier: "cc-4fj3bd2o3vb91",
90
+ * reason: "No longer providing managed services for this customer"
91
+ * };
92
+ * const command = new CancelChannelContractCommand(input);
93
+ * const response = await client.send(command);
94
+ * /* response is
95
+ * {
96
+ * channelContractDetail: {
97
+ * arn: "arn:aws:partnercentral:us-east-1:111122223333:catalog/AWS/channel-contract/cc-4fj3bd2o3vb91",
98
+ * cancellationReason: "No longer providing managed services for this customer",
99
+ * id: "cc-4fj3bd2o3vb91",
100
+ * status: "CANCELED"
101
+ * }
102
+ * }
103
+ * *\/
104
+ * ```
105
+ *
106
+ * @public
107
+ */
108
+ export declare class CancelChannelContractCommand extends CancelChannelContractCommand_base {
109
+ /** @internal type navigation helper, not in runtime. */
110
+ protected static __types: {
111
+ api: {
112
+ input: CancelChannelContractRequest;
113
+ output: CancelChannelContractResponse;
114
+ };
115
+ sdk: {
116
+ input: CancelChannelContractCommandInput;
117
+ output: CancelChannelContractCommandOutput;
118
+ };
119
+ };
120
+ }
@@ -0,0 +1,172 @@
1
+ import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
2
+ import type { CreateChannelContractRequest, CreateChannelContractResponse } from "../models/models_0";
3
+ /**
4
+ * @public
5
+ */
6
+ export type { __MetadataBearer };
7
+ /**
8
+ * @public
9
+ *
10
+ * The input for {@link CreateChannelContractCommand}.
11
+ */
12
+ export interface CreateChannelContractCommandInput extends CreateChannelContractRequest {
13
+ }
14
+ /**
15
+ * @public
16
+ *
17
+ * The output of {@link CreateChannelContractCommand}.
18
+ */
19
+ export interface CreateChannelContractCommandOutput extends CreateChannelContractResponse, __MetadataBearer {
20
+ }
21
+ declare const CreateChannelContractCommand_base: {
22
+ new (input: CreateChannelContractCommandInput): import("@smithy/core/client").CommandImpl<CreateChannelContractCommandInput, CreateChannelContractCommandOutput, import("..").PartnerCentralChannelClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
23
+ new (input: CreateChannelContractCommandInput): import("@smithy/core/client").CommandImpl<CreateChannelContractCommandInput, CreateChannelContractCommandOutput, import("..").PartnerCentralChannelClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
24
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
25
+ };
26
+ /**
27
+ * <p>Creates a new channel contract and sends it to the signatory for signature. In the Sandbox catalog, the channel contract is accepted automatically.</p>
28
+ * @example
29
+ * Use a bare-bones client and the command you need to make an API call.
30
+ * ```javascript
31
+ * import { PartnerCentralChannelClient, CreateChannelContractCommand } from "@aws-sdk/client-partnercentral-channel"; // ES Modules import
32
+ * // const { PartnerCentralChannelClient, CreateChannelContractCommand } = require("@aws-sdk/client-partnercentral-channel"); // CommonJS import
33
+ * // import type { PartnerCentralChannelClientConfig } from "@aws-sdk/client-partnercentral-channel";
34
+ * const config = {}; // type is PartnerCentralChannelClientConfig
35
+ * const client = new PartnerCentralChannelClient(config);
36
+ * const input = { // CreateChannelContractRequest
37
+ * contractType: "MANAGED_SERVICES_ATTESTATION", // required
38
+ * catalog: "STRING_VALUE", // required
39
+ * payload: { // ChannelContractPayload Union: only one key present
40
+ * managedServicesAttestationPayload: { // ManagedServicesAttestationPayload
41
+ * legalEntityName: "STRING_VALUE", // required
42
+ * relationshipIdentifier: "STRING_VALUE", // required
43
+ * programManagementAccountIdentifier: "STRING_VALUE", // required
44
+ * memberAccountIds: [ // MemberAccountIdList
45
+ * "STRING_VALUE",
46
+ * ],
47
+ * endDate: new Date("TIMESTAMP"), // required
48
+ * supportedServices: [ // ManagedServicesSupportedServiceList // required
49
+ * "MONITORING" || "PATCHING" || "SECURITY" || "BACKUP_AND_DISASTER_RECOVERY" || "FINANCIAL_OPERATIONS" || "INFRASTRUCTURE_AS_CODE_AND_AUTOMATION" || "WELL_ARCHITECTED" || "ARTIFICIAL_INTELLIGENCE_AND_MACHINE_LEARNING_OPERATIONS",
50
+ * ],
51
+ * legalEntityAddress: { // Address
52
+ * city: "STRING_VALUE", // required
53
+ * stateOrRegion: "STRING_VALUE", // required
54
+ * postalCode: "STRING_VALUE", // required
55
+ * countryCode: "STRING_VALUE", // required
56
+ * addressLine: "STRING_VALUE", // required
57
+ * addressLine2: "STRING_VALUE",
58
+ * },
59
+ * signatoryName: "STRING_VALUE", // required
60
+ * signatoryEmail: "STRING_VALUE", // required
61
+ * },
62
+ * },
63
+ * clientToken: "STRING_VALUE",
64
+ * tags: [ // TagList
65
+ * { // Tag
66
+ * key: "STRING_VALUE", // required
67
+ * value: "STRING_VALUE", // required
68
+ * },
69
+ * ],
70
+ * };
71
+ * const command = new CreateChannelContractCommand(input);
72
+ * const response = await client.send(command);
73
+ * // { // CreateChannelContractResponse
74
+ * // channelContractDetail: { // CreateChannelContractDetail
75
+ * // id: "STRING_VALUE",
76
+ * // arn: "STRING_VALUE",
77
+ * // },
78
+ * // };
79
+ *
80
+ * ```
81
+ *
82
+ * @param CreateChannelContractCommandInput - {@link CreateChannelContractCommandInput}
83
+ * @returns {@link CreateChannelContractCommandOutput}
84
+ * @see {@link CreateChannelContractCommandInput} for command's `input` shape.
85
+ * @see {@link CreateChannelContractCommandOutput} for command's `response` shape.
86
+ * @see {@link PartnerCentralChannelClientResolvedConfig | config} for PartnerCentralChannelClient's `config` shape.
87
+ *
88
+ * @throws {@link AccessDeniedException} (client fault)
89
+ * <p>The request was denied due to insufficient permissions.</p>
90
+ *
91
+ * @throws {@link ConflictException} (client fault)
92
+ * <p>The request could not be completed due to a conflict with the current state of the resource.</p>
93
+ *
94
+ * @throws {@link InternalServerException} (server fault)
95
+ * <p>An internal server error occurred while processing the request.</p>
96
+ *
97
+ * @throws {@link ResourceNotFoundException} (client fault)
98
+ * <p>The specified resource was not found.</p>
99
+ *
100
+ * @throws {@link ServiceQuotaExceededException} (client fault)
101
+ * <p>The request would exceed a service quota limit.</p>
102
+ *
103
+ * @throws {@link ThrottlingException} (client fault)
104
+ * <p>The request was throttled due to too many requests being sent in a short period.</p>
105
+ *
106
+ * @throws {@link ValidationException} (client fault)
107
+ * <p>The request failed validation due to invalid input parameters.</p>
108
+ *
109
+ * @throws {@link PartnerCentralChannelServiceException}
110
+ * <p>Base exception class for all service exceptions from PartnerCentralChannel service.</p>
111
+ *
112
+ *
113
+ * @example Example for CreateChannelContract - MANAGED_SERVICES_ATTESTATION
114
+ * ```javascript
115
+ * //
116
+ * const input = {
117
+ * catalog: "AWS",
118
+ * clientToken: "clientToken",
119
+ * contractType: "MANAGED_SERVICES_ATTESTATION",
120
+ * payload: {
121
+ * managedServicesAttestationPayload: {
122
+ * endDate: "2027-03-31T00:00:00Z",
123
+ * legalEntityAddress: {
124
+ * addressLine: "123 Any Street",
125
+ * addressLine2: "Suite 100",
126
+ * city: "Anytown",
127
+ * countryCode: "US",
128
+ * postalCode: "98101",
129
+ * stateOrRegion: "WA"
130
+ * },
131
+ * legalEntityName: "Example Partner Corp",
132
+ * memberAccountIds: [
133
+ * "111122224444"
134
+ * ],
135
+ * programManagementAccountIdentifier: "pma-abcdef123456g",
136
+ * relationshipIdentifier: "rs-abc123def456g",
137
+ * signatoryEmail: "mary.major@example.com",
138
+ * signatoryName: "Mary Major",
139
+ * supportedServices: [
140
+ * "MONITORING",
141
+ * "SECURITY"
142
+ * ]
143
+ * }
144
+ * }
145
+ * };
146
+ * const command = new CreateChannelContractCommand(input);
147
+ * const response = await client.send(command);
148
+ * /* response is
149
+ * {
150
+ * channelContractDetail: {
151
+ * arn: "arn:aws:partnercentral:us-east-1:111122223333:catalog/AWS/channel-contract/cc-4fj3bd2o3vb91",
152
+ * id: "cc-4fj3bd2o3vb91"
153
+ * }
154
+ * }
155
+ * *\/
156
+ * ```
157
+ *
158
+ * @public
159
+ */
160
+ export declare class CreateChannelContractCommand extends CreateChannelContractCommand_base {
161
+ /** @internal type navigation helper, not in runtime. */
162
+ protected static __types: {
163
+ api: {
164
+ input: CreateChannelContractRequest;
165
+ output: CreateChannelContractResponse;
166
+ };
167
+ sdk: {
168
+ input: CreateChannelContractCommandInput;
169
+ output: CreateChannelContractCommandOutput;
170
+ };
171
+ };
172
+ }
@@ -35,7 +35,7 @@ declare const CreateProgramManagementAccountCommand_base: {
35
35
  * const client = new PartnerCentralChannelClient(config);
36
36
  * const input = { // CreateProgramManagementAccountRequest
37
37
  * catalog: "STRING_VALUE", // required
38
- * program: "SOLUTION_PROVIDER" || "DISTRIBUTION" || "DISTRIBUTION_SELLER", // required
38
+ * program: "SOLUTION_PROVIDER" || "DISTRIBUTION" || "DISTRIBUTION_SELLER" || "MANAGED_SERVICES_PROVIDER", // required
39
39
  * displayName: "STRING_VALUE", // required
40
40
  * accountId: "STRING_VALUE", // required
41
41
  * clientToken: "STRING_VALUE",
@@ -45,6 +45,7 @@ declare const CreateProgramManagementAccountCommand_base: {
45
45
  * value: "STRING_VALUE", // required
46
46
  * },
47
47
  * ],
48
+ * type: "RESALE_BILLING_TRANSFER" || "MANAGED_SERVICES",
48
49
  * };
49
50
  * const command = new CreateProgramManagementAccountCommand(input);
50
51
  * const response = await client.send(command);
@@ -110,6 +111,29 @@ declare const CreateProgramManagementAccountCommand_base: {
110
111
  * *\/
111
112
  * ```
112
113
  *
114
+ * @example Example for CreateProgramManagementAccount - MANAGED_SERVICES
115
+ * ```javascript
116
+ * //
117
+ * const input = {
118
+ * accountId: "111122223333",
119
+ * catalog: "AWS",
120
+ * clientToken: "clientToken",
121
+ * displayName: "TestManagedServices",
122
+ * program: "MANAGED_SERVICES_PROVIDER",
123
+ * type: "MANAGED_SERVICES"
124
+ * };
125
+ * const command = new CreateProgramManagementAccountCommand(input);
126
+ * const response = await client.send(command);
127
+ * /* response is
128
+ * {
129
+ * programManagementAccountDetail: {
130
+ * arn: "arn:aws:partnercentral:us-east-1:123456789012:catalog/AWS/program-management-account/pma-abcdef123456g",
131
+ * id: "pma-abcdef123456g"
132
+ * }
133
+ * }
134
+ * *\/
135
+ * ```
136
+ *
113
137
  * @public
114
138
  */
115
139
  export declare class CreateProgramManagementAccountCommand extends CreateProgramManagementAccountCommand_base {
@@ -35,9 +35,9 @@ declare const CreateRelationshipCommand_base: {
35
35
  * const client = new PartnerCentralChannelClient(config);
36
36
  * const input = { // CreateRelationshipRequest
37
37
  * catalog: "STRING_VALUE", // required
38
- * associationType: "DOWNSTREAM_SELLER" || "END_CUSTOMER" || "INTERNAL", // required
38
+ * associationType: "DOWNSTREAM_SELLER" || "END_CUSTOMER" || "INTERNAL" || "MANAGED_SERVICES_END_CUSTOMER", // required
39
39
  * programManagementAccountIdentifier: "STRING_VALUE", // required
40
- * associatedAccountId: "STRING_VALUE", // required
40
+ * associatedAccountId: "STRING_VALUE",
41
41
  * displayName: "STRING_VALUE", // required
42
42
  * resaleAccountModel: "DISTRIBUTOR" || "END_CUSTOMER" || "SOLUTION_PROVIDER",
43
43
  * sector: "COMMERCIAL" || "GOVERNMENT" || "GOVERNMENT_EXCEPTION", // required
@@ -65,6 +65,8 @@ declare const CreateRelationshipCommand_base: {
65
65
  * chargeAccountId: "STRING_VALUE",
66
66
  * },
67
67
  * },
68
+ * accountScope: "ENTIRE_ORGANIZATION" || "SPECIFIC_MEMBER_ACCOUNTS",
69
+ * startDate: new Date("TIMESTAMP"),
68
70
  * };
69
71
  * const command = new CreateRelationshipCommand(input);
70
72
  * const response = await client.send(command);
@@ -133,6 +135,32 @@ declare const CreateRelationshipCommand_base: {
133
135
  * *\/
134
136
  * ```
135
137
  *
138
+ * @example Example for CreateRelationship - MANAGED_SERVICES_END_CUSTOMER
139
+ * ```javascript
140
+ * //
141
+ * const input = {
142
+ * accountScope: "ENTIRE_ORGANIZATION",
143
+ * associatedAccountId: "987654321012",
144
+ * associationType: "MANAGED_SERVICES_END_CUSTOMER",
145
+ * catalog: "AWS",
146
+ * clientToken: "clientToken",
147
+ * displayName: "TestManagedCustomer",
148
+ * programManagementAccountIdentifier: "pma-abcdef123456g",
149
+ * sector: "COMMERCIAL",
150
+ * startDate: "2026-10-01T00:00:00Z"
151
+ * };
152
+ * const command = new CreateRelationshipCommand(input);
153
+ * const response = await client.send(command);
154
+ * /* response is
155
+ * {
156
+ * relationshipDetail: {
157
+ * arn: "arn:aws:partnercentral:us-east-1:123456789012:catalog/AWS/program-management-account/pma-abcdef123456g/relationship/rs-abc123def456g",
158
+ * id: "rs-abc123def456g"
159
+ * }
160
+ * }
161
+ * *\/
162
+ * ```
163
+ *
136
164
  * @public
137
165
  */
138
166
  export declare class CreateRelationshipCommand extends CreateRelationshipCommand_base {