@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,114 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import { CancelChannelHandshakeRequest, CancelChannelHandshakeResponse } 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 CancelChannelHandshakeCommand}.
14
+ */
15
+ export interface CancelChannelHandshakeCommandInput extends CancelChannelHandshakeRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link CancelChannelHandshakeCommand}.
21
+ */
22
+ export interface CancelChannelHandshakeCommandOutput extends CancelChannelHandshakeResponse, __MetadataBearer {
23
+ }
24
+ declare const CancelChannelHandshakeCommand_base: {
25
+ new (input: CancelChannelHandshakeCommandInput): import("@smithy/smithy-client").CommandImpl<CancelChannelHandshakeCommandInput, CancelChannelHandshakeCommandOutput, PartnerCentralChannelClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (input: CancelChannelHandshakeCommandInput): import("@smithy/smithy-client").CommandImpl<CancelChannelHandshakeCommandInput, CancelChannelHandshakeCommandOutput, PartnerCentralChannelClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <p>Cancels 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, CancelChannelHandshakeCommand } from "@aws-sdk/client-partnercentral-channel"; // ES Modules import
35
+ * // const { PartnerCentralChannelClient, CancelChannelHandshakeCommand } = 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 = { // CancelChannelHandshakeRequest
40
+ * catalog: "STRING_VALUE", // required
41
+ * identifier: "STRING_VALUE", // required
42
+ * };
43
+ * const command = new CancelChannelHandshakeCommand(input);
44
+ * const response = await client.send(command);
45
+ * // { // CancelChannelHandshakeResponse
46
+ * // channelHandshakeDetail: { // CancelChannelHandshakeDetail
47
+ * // id: "STRING_VALUE",
48
+ * // arn: "STRING_VALUE",
49
+ * // status: "PENDING" || "ACCEPTED" || "REJECTED" || "CANCELED" || "EXPIRED",
50
+ * // },
51
+ * // };
52
+ *
53
+ * ```
54
+ *
55
+ * @param CancelChannelHandshakeCommandInput - {@link CancelChannelHandshakeCommandInput}
56
+ * @returns {@link CancelChannelHandshakeCommandOutput}
57
+ * @see {@link CancelChannelHandshakeCommandInput} for command's `input` shape.
58
+ * @see {@link CancelChannelHandshakeCommandOutput} 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 CancelChannelHandshake
81
+ * ```javascript
82
+ * //
83
+ * const input = {
84
+ * catalog: "AWS",
85
+ * identifier: "ch-4fj3bd2o3vb91"
86
+ * };
87
+ * const command = new CancelChannelHandshakeCommand(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: "CANCELED"
95
+ * }
96
+ * }
97
+ * *\/
98
+ * ```
99
+ *
100
+ * @public
101
+ */
102
+ export declare class CancelChannelHandshakeCommand extends CancelChannelHandshakeCommand_base {
103
+ /** @internal type navigation helper, not in runtime. */
104
+ protected static __types: {
105
+ api: {
106
+ input: CancelChannelHandshakeRequest;
107
+ output: CancelChannelHandshakeResponse;
108
+ };
109
+ sdk: {
110
+ input: CancelChannelHandshakeCommandInput;
111
+ output: CancelChannelHandshakeCommandOutput;
112
+ };
113
+ };
114
+ }
@@ -0,0 +1,226 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import { CreateChannelHandshakeRequest, CreateChannelHandshakeResponse } 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 CreateChannelHandshakeCommand}.
14
+ */
15
+ export interface CreateChannelHandshakeCommandInput extends CreateChannelHandshakeRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link CreateChannelHandshakeCommand}.
21
+ */
22
+ export interface CreateChannelHandshakeCommandOutput extends CreateChannelHandshakeResponse, __MetadataBearer {
23
+ }
24
+ declare const CreateChannelHandshakeCommand_base: {
25
+ new (input: CreateChannelHandshakeCommandInput): import("@smithy/smithy-client").CommandImpl<CreateChannelHandshakeCommandInput, CreateChannelHandshakeCommandOutput, PartnerCentralChannelClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (input: CreateChannelHandshakeCommandInput): import("@smithy/smithy-client").CommandImpl<CreateChannelHandshakeCommandInput, CreateChannelHandshakeCommandOutput, PartnerCentralChannelClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <p>Creates a new channel handshake request to establish a partnership with another AWS account.</p>
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { PartnerCentralChannelClient, CreateChannelHandshakeCommand } from "@aws-sdk/client-partnercentral-channel"; // ES Modules import
35
+ * // const { PartnerCentralChannelClient, CreateChannelHandshakeCommand } = 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 = { // CreateChannelHandshakeRequest
40
+ * handshakeType: "START_SERVICE_PERIOD" || "REVOKE_SERVICE_PERIOD" || "PROGRAM_MANAGEMENT_ACCOUNT", // required
41
+ * catalog: "STRING_VALUE", // required
42
+ * associatedResourceIdentifier: "STRING_VALUE", // required
43
+ * payload: { // ChannelHandshakePayload Union: only one key present
44
+ * startServicePeriodPayload: { // StartServicePeriodPayload
45
+ * programManagementAccountIdentifier: "STRING_VALUE", // required
46
+ * note: "STRING_VALUE",
47
+ * servicePeriodType: "MINIMUM_NOTICE_PERIOD" || "FIXED_COMMITMENT_PERIOD", // required
48
+ * minimumNoticeDays: "STRING_VALUE",
49
+ * endDate: new Date("TIMESTAMP"),
50
+ * },
51
+ * revokeServicePeriodPayload: { // RevokeServicePeriodPayload
52
+ * programManagementAccountIdentifier: "STRING_VALUE", // required
53
+ * note: "STRING_VALUE",
54
+ * },
55
+ * },
56
+ * clientToken: "STRING_VALUE",
57
+ * tags: [ // TagList
58
+ * { // Tag
59
+ * key: "STRING_VALUE", // required
60
+ * value: "STRING_VALUE", // required
61
+ * },
62
+ * ],
63
+ * };
64
+ * const command = new CreateChannelHandshakeCommand(input);
65
+ * const response = await client.send(command);
66
+ * // { // CreateChannelHandshakeResponse
67
+ * // channelHandshakeDetail: { // CreateChannelHandshakeDetail
68
+ * // id: "STRING_VALUE",
69
+ * // arn: "STRING_VALUE",
70
+ * // },
71
+ * // };
72
+ *
73
+ * ```
74
+ *
75
+ * @param CreateChannelHandshakeCommandInput - {@link CreateChannelHandshakeCommandInput}
76
+ * @returns {@link CreateChannelHandshakeCommandOutput}
77
+ * @see {@link CreateChannelHandshakeCommandInput} for command's `input` shape.
78
+ * @see {@link CreateChannelHandshakeCommandOutput} for command's `response` shape.
79
+ * @see {@link PartnerCentralChannelClientResolvedConfig | config} for PartnerCentralChannelClient's `config` shape.
80
+ *
81
+ * @throws {@link AccessDeniedException} (client fault)
82
+ * <p>The request was denied due to insufficient permissions.</p>
83
+ *
84
+ * @throws {@link ConflictException} (client fault)
85
+ * <p>The request could not be completed due to a conflict with the current state of the resource.</p>
86
+ *
87
+ * @throws {@link InternalServerException} (server fault)
88
+ * <p>An internal server error occurred while processing the request.</p>
89
+ *
90
+ * @throws {@link ResourceNotFoundException} (client fault)
91
+ * <p>The specified resource was not found.</p>
92
+ *
93
+ * @throws {@link ServiceQuotaExceededException} (client fault)
94
+ * <p>The request would exceed a service quota limit.</p>
95
+ *
96
+ * @throws {@link ThrottlingException} (client fault)
97
+ * <p>The request was throttled due to too many requests being sent in a short period.</p>
98
+ *
99
+ * @throws {@link ValidationException} (client fault)
100
+ * <p>The request failed validation due to invalid input parameters.</p>
101
+ *
102
+ * @throws {@link PartnerCentralChannelServiceException}
103
+ * <p>Base exception class for all service exceptions from PartnerCentralChannel service.</p>
104
+ *
105
+ *
106
+ * @example Example for CreateChannelHandshake - START_SERVICE_PERIOD with Minimum Notice Period
107
+ * ```javascript
108
+ * //
109
+ * const input = {
110
+ * associatedResourceIdentifier: "rs-abc123def456g",
111
+ * catalog: "AWS",
112
+ * clientToken: "clientToken",
113
+ * handshakeType: "START_SERVICE_PERIOD",
114
+ * payload: {
115
+ * startServicePeriodPayload: {
116
+ * minimumNoticeDays: "14",
117
+ * note: "Optional Note",
118
+ * programManagementAccountIdentifier: "pma-abcdef123456g",
119
+ * servicePeriodType: "MINIMUM_NOTICE_PERIOD"
120
+ * }
121
+ * }
122
+ * };
123
+ * const command = new CreateChannelHandshakeCommand(input);
124
+ * const response = await client.send(command);
125
+ * /* response is
126
+ * {
127
+ * channelHandshakeDetail: {
128
+ * arn: "arn:aws:partnercentral:us-east-1:123456789012:catalog/AWS/channel-handshake/ch-4fj3bd2o3vb91",
129
+ * id: "ch-4fj3bd2o3vb91"
130
+ * }
131
+ * }
132
+ * *\/
133
+ * ```
134
+ *
135
+ * @example Example for CreateChannelHandshake - START_SERVICE_PERIOD with Fixed Commitment Period
136
+ * ```javascript
137
+ * //
138
+ * const input = {
139
+ * associatedResourceIdentifier: "rs-abc123def456g",
140
+ * catalog: "AWS",
141
+ * clientToken: "clientToken",
142
+ * handshakeType: "START_SERVICE_PERIOD",
143
+ * payload: {
144
+ * startServicePeriodPayload: {
145
+ * endDate: "2026-07-01T00:00:00Z",
146
+ * note: "Optional Note",
147
+ * programManagementAccountIdentifier: "pma-abcdef123456g",
148
+ * servicePeriodType: "FIXED_COMMITMENT_PERIOD"
149
+ * }
150
+ * }
151
+ * };
152
+ * const command = new CreateChannelHandshakeCommand(input);
153
+ * const response = await client.send(command);
154
+ * /* response is
155
+ * {
156
+ * channelHandshakeDetail: {
157
+ * arn: "arn:aws:partnercentral:us-east-1:123456789012:catalog/AWS/channel-handshake/ch-4fj3bd2o3vb91",
158
+ * id: "ch-4fj3bd2o3vb91"
159
+ * }
160
+ * }
161
+ * *\/
162
+ * ```
163
+ *
164
+ * @example Example for CreateChannelHandshake - REVOKE_SERVICE_PERIOD
165
+ * ```javascript
166
+ * //
167
+ * const input = {
168
+ * associatedResourceIdentifier: "rs-abc123def456g",
169
+ * catalog: "AWS",
170
+ * clientToken: "clientToken",
171
+ * handshakeType: "REVOKE_SERVICE_PERIOD",
172
+ * payload: {
173
+ * revokeServicePeriodPayload: {
174
+ * note: "Optional Note",
175
+ * programManagementAccountIdentifier: "pma-abcdef123456g"
176
+ * }
177
+ * }
178
+ * };
179
+ * const command = new CreateChannelHandshakeCommand(input);
180
+ * const response = await client.send(command);
181
+ * /* response is
182
+ * {
183
+ * channelHandshakeDetail: {
184
+ * arn: "arn:aws:partnercentral:us-east-1:123456789012:catalog/AWS/channel-handshake/ch-4fj3bd2o3vb91",
185
+ * id: "ch-4fj3bd2o3vb91"
186
+ * }
187
+ * }
188
+ * *\/
189
+ * ```
190
+ *
191
+ * @example Example for CreateChannelHandshake - PROGRAM_MANAGEMENT_ACCOUNT
192
+ * ```javascript
193
+ * //
194
+ * const input = {
195
+ * associatedResourceIdentifier: "pma-123abc456def7",
196
+ * catalog: "AWS",
197
+ * clientToken: "clientToken",
198
+ * handshakeType: "PROGRAM_MANAGEMENT_ACCOUNT"
199
+ * };
200
+ * const command = new CreateChannelHandshakeCommand(input);
201
+ * const response = await client.send(command);
202
+ * /* response is
203
+ * {
204
+ * channelHandshakeDetail: {
205
+ * arn: "arn:aws:partnercentral:us-east-1:123456789012:catalog/AWS/channel-handshake/ch-4fj3bd2o3vb91",
206
+ * id: "ch-4fj3bd2o3vb91"
207
+ * }
208
+ * }
209
+ * *\/
210
+ * ```
211
+ *
212
+ * @public
213
+ */
214
+ export declare class CreateChannelHandshakeCommand extends CreateChannelHandshakeCommand_base {
215
+ /** @internal type navigation helper, not in runtime. */
216
+ protected static __types: {
217
+ api: {
218
+ input: CreateChannelHandshakeRequest;
219
+ output: CreateChannelHandshakeResponse;
220
+ };
221
+ sdk: {
222
+ input: CreateChannelHandshakeCommandInput;
223
+ output: CreateChannelHandshakeCommandOutput;
224
+ };
225
+ };
226
+ }
@@ -0,0 +1,130 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import { CreateProgramManagementAccountRequest, CreateProgramManagementAccountResponse } 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 CreateProgramManagementAccountCommand}.
14
+ */
15
+ export interface CreateProgramManagementAccountCommandInput extends CreateProgramManagementAccountRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link CreateProgramManagementAccountCommand}.
21
+ */
22
+ export interface CreateProgramManagementAccountCommandOutput extends CreateProgramManagementAccountResponse, __MetadataBearer {
23
+ }
24
+ declare const CreateProgramManagementAccountCommand_base: {
25
+ new (input: CreateProgramManagementAccountCommandInput): import("@smithy/smithy-client").CommandImpl<CreateProgramManagementAccountCommandInput, CreateProgramManagementAccountCommandOutput, PartnerCentralChannelClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (input: CreateProgramManagementAccountCommandInput): import("@smithy/smithy-client").CommandImpl<CreateProgramManagementAccountCommandInput, CreateProgramManagementAccountCommandOutput, PartnerCentralChannelClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <p>Creates a new program management account for managing partner relationships.</p>
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { PartnerCentralChannelClient, CreateProgramManagementAccountCommand } from "@aws-sdk/client-partnercentral-channel"; // ES Modules import
35
+ * // const { PartnerCentralChannelClient, CreateProgramManagementAccountCommand } = 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 = { // CreateProgramManagementAccountRequest
40
+ * catalog: "STRING_VALUE", // required
41
+ * program: "SOLUTION_PROVIDER" || "DISTRIBUTION" || "DISTRIBUTION_SELLER", // required
42
+ * displayName: "STRING_VALUE", // required
43
+ * accountId: "STRING_VALUE", // required
44
+ * clientToken: "STRING_VALUE",
45
+ * tags: [ // TagList
46
+ * { // Tag
47
+ * key: "STRING_VALUE", // required
48
+ * value: "STRING_VALUE", // required
49
+ * },
50
+ * ],
51
+ * };
52
+ * const command = new CreateProgramManagementAccountCommand(input);
53
+ * const response = await client.send(command);
54
+ * // { // CreateProgramManagementAccountResponse
55
+ * // programManagementAccountDetail: { // CreateProgramManagementAccountDetail
56
+ * // id: "STRING_VALUE",
57
+ * // arn: "STRING_VALUE",
58
+ * // },
59
+ * // };
60
+ *
61
+ * ```
62
+ *
63
+ * @param CreateProgramManagementAccountCommandInput - {@link CreateProgramManagementAccountCommandInput}
64
+ * @returns {@link CreateProgramManagementAccountCommandOutput}
65
+ * @see {@link CreateProgramManagementAccountCommandInput} for command's `input` shape.
66
+ * @see {@link CreateProgramManagementAccountCommandOutput} for command's `response` shape.
67
+ * @see {@link PartnerCentralChannelClientResolvedConfig | config} for PartnerCentralChannelClient's `config` shape.
68
+ *
69
+ * @throws {@link AccessDeniedException} (client fault)
70
+ * <p>The request was denied due to insufficient permissions.</p>
71
+ *
72
+ * @throws {@link ConflictException} (client fault)
73
+ * <p>The request could not be completed due to a conflict with the current state of the resource.</p>
74
+ *
75
+ * @throws {@link InternalServerException} (server fault)
76
+ * <p>An internal server error occurred while processing the request.</p>
77
+ *
78
+ * @throws {@link ResourceNotFoundException} (client fault)
79
+ * <p>The specified resource was not found.</p>
80
+ *
81
+ * @throws {@link ServiceQuotaExceededException} (client fault)
82
+ * <p>The request would exceed a service quota limit.</p>
83
+ *
84
+ * @throws {@link ThrottlingException} (client fault)
85
+ * <p>The request was throttled due to too many requests being sent in a short period.</p>
86
+ *
87
+ * @throws {@link ValidationException} (client fault)
88
+ * <p>The request failed validation due to invalid input parameters.</p>
89
+ *
90
+ * @throws {@link PartnerCentralChannelServiceException}
91
+ * <p>Base exception class for all service exceptions from PartnerCentralChannel service.</p>
92
+ *
93
+ *
94
+ * @example Example for CreateProgramManagementAccount
95
+ * ```javascript
96
+ * //
97
+ * const input = {
98
+ * accountId: "111122223333",
99
+ * catalog: "AWS",
100
+ * clientToken: "clientToken",
101
+ * displayName: "TestDisplayName",
102
+ * program: "SOLUTION_PROVIDER"
103
+ * };
104
+ * const command = new CreateProgramManagementAccountCommand(input);
105
+ * const response = await client.send(command);
106
+ * /* response is
107
+ * {
108
+ * programManagementAccountDetail: {
109
+ * arn: "arn:aws:partnercentral:us-east-1:123456789012:catalog/AWS/program-management-account/pma-u8ic702rtzng8",
110
+ * id: "pma-u8ic702rtzng8"
111
+ * }
112
+ * }
113
+ * *\/
114
+ * ```
115
+ *
116
+ * @public
117
+ */
118
+ export declare class CreateProgramManagementAccountCommand extends CreateProgramManagementAccountCommand_base {
119
+ /** @internal type navigation helper, not in runtime. */
120
+ protected static __types: {
121
+ api: {
122
+ input: CreateProgramManagementAccountRequest;
123
+ output: CreateProgramManagementAccountResponse;
124
+ };
125
+ sdk: {
126
+ input: CreateProgramManagementAccountCommandInput;
127
+ output: CreateProgramManagementAccountCommandOutput;
128
+ };
129
+ };
130
+ }
@@ -0,0 +1,151 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import { CreateRelationshipRequest, CreateRelationshipResponse } 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 CreateRelationshipCommand}.
14
+ */
15
+ export interface CreateRelationshipCommandInput extends CreateRelationshipRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link CreateRelationshipCommand}.
21
+ */
22
+ export interface CreateRelationshipCommandOutput extends CreateRelationshipResponse, __MetadataBearer {
23
+ }
24
+ declare const CreateRelationshipCommand_base: {
25
+ new (input: CreateRelationshipCommandInput): import("@smithy/smithy-client").CommandImpl<CreateRelationshipCommandInput, CreateRelationshipCommandOutput, PartnerCentralChannelClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (input: CreateRelationshipCommandInput): import("@smithy/smithy-client").CommandImpl<CreateRelationshipCommandInput, CreateRelationshipCommandOutput, PartnerCentralChannelClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <p>Creates a new partner relationship between accounts.</p>
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { PartnerCentralChannelClient, CreateRelationshipCommand } from "@aws-sdk/client-partnercentral-channel"; // ES Modules import
35
+ * // const { PartnerCentralChannelClient, CreateRelationshipCommand } = 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 = { // CreateRelationshipRequest
40
+ * catalog: "STRING_VALUE", // required
41
+ * associationType: "DOWNSTREAM_SELLER" || "END_CUSTOMER" || "INTERNAL", // required
42
+ * programManagementAccountIdentifier: "STRING_VALUE", // required
43
+ * associatedAccountId: "STRING_VALUE", // required
44
+ * displayName: "STRING_VALUE", // required
45
+ * resaleAccountModel: "DISTRIBUTOR" || "END_CUSTOMER" || "SOLUTION_PROVIDER",
46
+ * sector: "COMMERCIAL" || "GOVERNMENT" || "GOVERNMENT_EXCEPTION", // required
47
+ * clientToken: "STRING_VALUE",
48
+ * tags: [ // TagList
49
+ * { // Tag
50
+ * key: "STRING_VALUE", // required
51
+ * value: "STRING_VALUE", // required
52
+ * },
53
+ * ],
54
+ * requestedSupportPlan: { // SupportPlan Union: only one key present
55
+ * resoldBusiness: { // ResoldBusiness
56
+ * coverage: "ENTIRE_ORGANIZATION" || "MANAGEMENT_ACCOUNT_ONLY", // required
57
+ * },
58
+ * resoldEnterprise: { // ResoldEnterprise
59
+ * coverage: "ENTIRE_ORGANIZATION" || "MANAGEMENT_ACCOUNT_ONLY", // required
60
+ * tamLocation: "STRING_VALUE", // required
61
+ * chargeAccountId: "STRING_VALUE",
62
+ * },
63
+ * partnerLedSupport: { // PartnerLedSupport
64
+ * coverage: "ENTIRE_ORGANIZATION" || "MANAGEMENT_ACCOUNT_ONLY", // required
65
+ * provider: "DISTRIBUTOR" || "DISTRIBUTION_SELLER",
66
+ * tamLocation: "STRING_VALUE", // required
67
+ * },
68
+ * },
69
+ * };
70
+ * const command = new CreateRelationshipCommand(input);
71
+ * const response = await client.send(command);
72
+ * // { // CreateRelationshipResponse
73
+ * // relationshipDetail: { // CreateRelationshipDetail
74
+ * // arn: "STRING_VALUE",
75
+ * // id: "STRING_VALUE",
76
+ * // },
77
+ * // };
78
+ *
79
+ * ```
80
+ *
81
+ * @param CreateRelationshipCommandInput - {@link CreateRelationshipCommandInput}
82
+ * @returns {@link CreateRelationshipCommandOutput}
83
+ * @see {@link CreateRelationshipCommandInput} for command's `input` shape.
84
+ * @see {@link CreateRelationshipCommandOutput} for command's `response` shape.
85
+ * @see {@link PartnerCentralChannelClientResolvedConfig | config} for PartnerCentralChannelClient's `config` shape.
86
+ *
87
+ * @throws {@link AccessDeniedException} (client fault)
88
+ * <p>The request was denied due to insufficient permissions.</p>
89
+ *
90
+ * @throws {@link ConflictException} (client fault)
91
+ * <p>The request could not be completed due to a conflict with the current state of the resource.</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 ServiceQuotaExceededException} (client fault)
100
+ * <p>The request would exceed a service quota limit.</p>
101
+ *
102
+ * @throws {@link ThrottlingException} (client fault)
103
+ * <p>The request was throttled due to too many requests being sent in a short period.</p>
104
+ *
105
+ * @throws {@link ValidationException} (client fault)
106
+ * <p>The request failed validation due to invalid input parameters.</p>
107
+ *
108
+ * @throws {@link PartnerCentralChannelServiceException}
109
+ * <p>Base exception class for all service exceptions from PartnerCentralChannel service.</p>
110
+ *
111
+ *
112
+ * @example Example for CreateRelationship
113
+ * ```javascript
114
+ * //
115
+ * const input = {
116
+ * associatedAccountId: "987654321012",
117
+ * associationType: "DOWNSTREAM_SELLER",
118
+ * catalog: "AWS",
119
+ * clientToken: "clientToken",
120
+ * displayName: "TestDisplayName",
121
+ * programManagementAccountIdentifier: "pma-u8ic702rtzng8",
122
+ * resaleAccountModel: "END_CUSTOMER",
123
+ * sector: "COMMERCIAL"
124
+ * };
125
+ * const command = new CreateRelationshipCommand(input);
126
+ * const response = await client.send(command);
127
+ * /* response is
128
+ * {
129
+ * relationshipDetail: {
130
+ * arn: "arn:aws:partnercentral:us-east-1:123456789012:catalog/AWS/program-management-account/pma-u8ic702rtzng8/relationship/rs-l9o4fj3b5zb91",
131
+ * id: "rs-l9o4fj3b5zb91"
132
+ * }
133
+ * }
134
+ * *\/
135
+ * ```
136
+ *
137
+ * @public
138
+ */
139
+ export declare class CreateRelationshipCommand extends CreateRelationshipCommand_base {
140
+ /** @internal type navigation helper, not in runtime. */
141
+ protected static __types: {
142
+ api: {
143
+ input: CreateRelationshipRequest;
144
+ output: CreateRelationshipResponse;
145
+ };
146
+ sdk: {
147
+ input: CreateRelationshipCommandInput;
148
+ output: CreateRelationshipCommandOutput;
149
+ };
150
+ };
151
+ }