@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,107 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import { DeleteProgramManagementAccountRequest, DeleteProgramManagementAccountResponse } 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 DeleteProgramManagementAccountCommand}.
14
+ */
15
+ export interface DeleteProgramManagementAccountCommandInput extends DeleteProgramManagementAccountRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link DeleteProgramManagementAccountCommand}.
21
+ */
22
+ export interface DeleteProgramManagementAccountCommandOutput extends DeleteProgramManagementAccountResponse, __MetadataBearer {
23
+ }
24
+ declare const DeleteProgramManagementAccountCommand_base: {
25
+ new (input: DeleteProgramManagementAccountCommandInput): import("@smithy/smithy-client").CommandImpl<DeleteProgramManagementAccountCommandInput, DeleteProgramManagementAccountCommandOutput, PartnerCentralChannelClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (input: DeleteProgramManagementAccountCommandInput): import("@smithy/smithy-client").CommandImpl<DeleteProgramManagementAccountCommandInput, DeleteProgramManagementAccountCommandOutput, PartnerCentralChannelClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <p>Deletes a program management 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, DeleteProgramManagementAccountCommand } from "@aws-sdk/client-partnercentral-channel"; // ES Modules import
35
+ * // const { PartnerCentralChannelClient, DeleteProgramManagementAccountCommand } = 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 = { // DeleteProgramManagementAccountRequest
40
+ * catalog: "STRING_VALUE", // required
41
+ * identifier: "STRING_VALUE", // required
42
+ * clientToken: "STRING_VALUE",
43
+ * };
44
+ * const command = new DeleteProgramManagementAccountCommand(input);
45
+ * const response = await client.send(command);
46
+ * // {};
47
+ *
48
+ * ```
49
+ *
50
+ * @param DeleteProgramManagementAccountCommandInput - {@link DeleteProgramManagementAccountCommandInput}
51
+ * @returns {@link DeleteProgramManagementAccountCommandOutput}
52
+ * @see {@link DeleteProgramManagementAccountCommandInput} for command's `input` shape.
53
+ * @see {@link DeleteProgramManagementAccountCommandOutput} for command's `response` shape.
54
+ * @see {@link PartnerCentralChannelClientResolvedConfig | config} for PartnerCentralChannelClient's `config` shape.
55
+ *
56
+ * @throws {@link AccessDeniedException} (client fault)
57
+ * <p>The request was denied due to insufficient permissions.</p>
58
+ *
59
+ * @throws {@link ConflictException} (client fault)
60
+ * <p>The request could not be completed due to a conflict with the current state of the resource.</p>
61
+ *
62
+ * @throws {@link InternalServerException} (server fault)
63
+ * <p>An internal server error occurred while processing the request.</p>
64
+ *
65
+ * @throws {@link ResourceNotFoundException} (client fault)
66
+ * <p>The specified resource was not found.</p>
67
+ *
68
+ * @throws {@link ThrottlingException} (client fault)
69
+ * <p>The request was throttled due to too many requests being sent in a short period.</p>
70
+ *
71
+ * @throws {@link ValidationException} (client fault)
72
+ * <p>The request failed validation due to invalid input parameters.</p>
73
+ *
74
+ * @throws {@link PartnerCentralChannelServiceException}
75
+ * <p>Base exception class for all service exceptions from PartnerCentralChannel service.</p>
76
+ *
77
+ *
78
+ * @example Example for DeleteProgramManagementAccount
79
+ * ```javascript
80
+ * //
81
+ * const input = {
82
+ * catalog: "AWS",
83
+ * clientToken: "clientToken",
84
+ * identifier: "pma-u8ic702rtzng8"
85
+ * };
86
+ * const command = new DeleteProgramManagementAccountCommand(input);
87
+ * const response = await client.send(command);
88
+ * /* response is
89
+ * { /* empty *\/ }
90
+ * *\/
91
+ * ```
92
+ *
93
+ * @public
94
+ */
95
+ export declare class DeleteProgramManagementAccountCommand extends DeleteProgramManagementAccountCommand_base {
96
+ /** @internal type navigation helper, not in runtime. */
97
+ protected static __types: {
98
+ api: {
99
+ input: DeleteProgramManagementAccountRequest;
100
+ output: {};
101
+ };
102
+ sdk: {
103
+ input: DeleteProgramManagementAccountCommandInput;
104
+ output: DeleteProgramManagementAccountCommandOutput;
105
+ };
106
+ };
107
+ }
@@ -0,0 +1,109 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import { DeleteRelationshipRequest, DeleteRelationshipResponse } 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 DeleteRelationshipCommand}.
14
+ */
15
+ export interface DeleteRelationshipCommandInput extends DeleteRelationshipRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link DeleteRelationshipCommand}.
21
+ */
22
+ export interface DeleteRelationshipCommandOutput extends DeleteRelationshipResponse, __MetadataBearer {
23
+ }
24
+ declare const DeleteRelationshipCommand_base: {
25
+ new (input: DeleteRelationshipCommandInput): import("@smithy/smithy-client").CommandImpl<DeleteRelationshipCommandInput, DeleteRelationshipCommandOutput, PartnerCentralChannelClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (input: DeleteRelationshipCommandInput): import("@smithy/smithy-client").CommandImpl<DeleteRelationshipCommandInput, DeleteRelationshipCommandOutput, PartnerCentralChannelClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <p>Deletes a partner relationship.</p>
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { PartnerCentralChannelClient, DeleteRelationshipCommand } from "@aws-sdk/client-partnercentral-channel"; // ES Modules import
35
+ * // const { PartnerCentralChannelClient, DeleteRelationshipCommand } = 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 = { // DeleteRelationshipRequest
40
+ * catalog: "STRING_VALUE", // required
41
+ * identifier: "STRING_VALUE", // required
42
+ * programManagementAccountIdentifier: "STRING_VALUE", // required
43
+ * clientToken: "STRING_VALUE",
44
+ * };
45
+ * const command = new DeleteRelationshipCommand(input);
46
+ * const response = await client.send(command);
47
+ * // {};
48
+ *
49
+ * ```
50
+ *
51
+ * @param DeleteRelationshipCommandInput - {@link DeleteRelationshipCommandInput}
52
+ * @returns {@link DeleteRelationshipCommandOutput}
53
+ * @see {@link DeleteRelationshipCommandInput} for command's `input` shape.
54
+ * @see {@link DeleteRelationshipCommandOutput} for command's `response` shape.
55
+ * @see {@link PartnerCentralChannelClientResolvedConfig | config} for PartnerCentralChannelClient's `config` shape.
56
+ *
57
+ * @throws {@link AccessDeniedException} (client fault)
58
+ * <p>The request was denied due to insufficient permissions.</p>
59
+ *
60
+ * @throws {@link ConflictException} (client fault)
61
+ * <p>The request could not be completed due to a conflict with the current state of the resource.</p>
62
+ *
63
+ * @throws {@link InternalServerException} (server fault)
64
+ * <p>An internal server error occurred while processing the request.</p>
65
+ *
66
+ * @throws {@link ResourceNotFoundException} (client fault)
67
+ * <p>The specified resource was not found.</p>
68
+ *
69
+ * @throws {@link ThrottlingException} (client fault)
70
+ * <p>The request was throttled due to too many requests being sent in a short period.</p>
71
+ *
72
+ * @throws {@link ValidationException} (client fault)
73
+ * <p>The request failed validation due to invalid input parameters.</p>
74
+ *
75
+ * @throws {@link PartnerCentralChannelServiceException}
76
+ * <p>Base exception class for all service exceptions from PartnerCentralChannel service.</p>
77
+ *
78
+ *
79
+ * @example Example for DeleteRelationship
80
+ * ```javascript
81
+ * //
82
+ * const input = {
83
+ * catalog: "AWS",
84
+ * clientToken: "clientToken",
85
+ * identifier: "rs-l9o4fj3b5zb91",
86
+ * programManagementAccountIdentifier: "pma-u8ic702rtzng8"
87
+ * };
88
+ * const command = new DeleteRelationshipCommand(input);
89
+ * const response = await client.send(command);
90
+ * /* response is
91
+ * { /* empty *\/ }
92
+ * *\/
93
+ * ```
94
+ *
95
+ * @public
96
+ */
97
+ export declare class DeleteRelationshipCommand extends DeleteRelationshipCommand_base {
98
+ /** @internal type navigation helper, not in runtime. */
99
+ protected static __types: {
100
+ api: {
101
+ input: DeleteRelationshipRequest;
102
+ output: {};
103
+ };
104
+ sdk: {
105
+ input: DeleteRelationshipCommandInput;
106
+ output: DeleteRelationshipCommandOutput;
107
+ };
108
+ };
109
+ }
@@ -0,0 +1,134 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import { GetRelationshipRequest, GetRelationshipResponse } 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 GetRelationshipCommand}.
14
+ */
15
+ export interface GetRelationshipCommandInput extends GetRelationshipRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link GetRelationshipCommand}.
21
+ */
22
+ export interface GetRelationshipCommandOutput extends GetRelationshipResponse, __MetadataBearer {
23
+ }
24
+ declare const GetRelationshipCommand_base: {
25
+ new (input: GetRelationshipCommandInput): import("@smithy/smithy-client").CommandImpl<GetRelationshipCommandInput, GetRelationshipCommandOutput, PartnerCentralChannelClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (input: GetRelationshipCommandInput): import("@smithy/smithy-client").CommandImpl<GetRelationshipCommandInput, GetRelationshipCommandOutput, PartnerCentralChannelClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <p>Retrieves details of a specific partner relationship.</p>
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { PartnerCentralChannelClient, GetRelationshipCommand } from "@aws-sdk/client-partnercentral-channel"; // ES Modules import
35
+ * // const { PartnerCentralChannelClient, GetRelationshipCommand } = 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 = { // GetRelationshipRequest
40
+ * catalog: "STRING_VALUE", // required
41
+ * programManagementAccountIdentifier: "STRING_VALUE", // required
42
+ * identifier: "STRING_VALUE", // required
43
+ * };
44
+ * const command = new GetRelationshipCommand(input);
45
+ * const response = await client.send(command);
46
+ * // { // GetRelationshipResponse
47
+ * // relationshipDetail: { // RelationshipDetail
48
+ * // arn: "STRING_VALUE",
49
+ * // id: "STRING_VALUE",
50
+ * // revision: "STRING_VALUE",
51
+ * // catalog: "STRING_VALUE",
52
+ * // associationType: "DOWNSTREAM_SELLER" || "END_CUSTOMER" || "INTERNAL",
53
+ * // programManagementAccountId: "STRING_VALUE",
54
+ * // associatedAccountId: "STRING_VALUE",
55
+ * // displayName: "STRING_VALUE",
56
+ * // resaleAccountModel: "DISTRIBUTOR" || "END_CUSTOMER" || "SOLUTION_PROVIDER",
57
+ * // sector: "COMMERCIAL" || "GOVERNMENT" || "GOVERNMENT_EXCEPTION",
58
+ * // createdAt: new Date("TIMESTAMP"),
59
+ * // updatedAt: new Date("TIMESTAMP"),
60
+ * // startDate: new Date("TIMESTAMP"),
61
+ * // },
62
+ * // };
63
+ *
64
+ * ```
65
+ *
66
+ * @param GetRelationshipCommandInput - {@link GetRelationshipCommandInput}
67
+ * @returns {@link GetRelationshipCommandOutput}
68
+ * @see {@link GetRelationshipCommandInput} for command's `input` shape.
69
+ * @see {@link GetRelationshipCommandOutput} for command's `response` shape.
70
+ * @see {@link PartnerCentralChannelClientResolvedConfig | config} for PartnerCentralChannelClient's `config` shape.
71
+ *
72
+ * @throws {@link AccessDeniedException} (client fault)
73
+ * <p>The request was denied due to insufficient permissions.</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 ThrottlingException} (client fault)
82
+ * <p>The request was throttled due to too many requests being sent in a short period.</p>
83
+ *
84
+ * @throws {@link ValidationException} (client fault)
85
+ * <p>The request failed validation due to invalid input parameters.</p>
86
+ *
87
+ * @throws {@link PartnerCentralChannelServiceException}
88
+ * <p>Base exception class for all service exceptions from PartnerCentralChannel service.</p>
89
+ *
90
+ *
91
+ * @example Example for GetRelationship
92
+ * ```javascript
93
+ * //
94
+ * const input = {
95
+ * catalog: "AWS",
96
+ * identifier: "rs-l9o4fj3b5zb91",
97
+ * programManagementAccountIdentifier: "pma-u8ic702rtzng8"
98
+ * };
99
+ * const command = new GetRelationshipCommand(input);
100
+ * const response = await client.send(command);
101
+ * /* response is
102
+ * {
103
+ * relationshipDetail: {
104
+ * arn: "arn:aws:partnercentral:us-east-1:123456789012:catalog/AWS/program-management-account/pma-u8ic702rtzng8/relationship/rs-l9o4fj3b5zb91",
105
+ * associatedAccountId: "987654321012",
106
+ * associationType: "DOWNSTREAM_SELLER",
107
+ * createdAt: "2024-04-29T16:18:16Z",
108
+ * displayName: "TestDisplayName",
109
+ * id: "rs-l9o4fj3b5zb91",
110
+ * programManagementAccountId: "pma-u8ic702rtzng8",
111
+ * resaleAccountModel: "END_CUSTOMER",
112
+ * revision: "3",
113
+ * sector: "COMMERCIAL",
114
+ * updatedAt: "2024-05-02T16:18:16Z"
115
+ * }
116
+ * }
117
+ * *\/
118
+ * ```
119
+ *
120
+ * @public
121
+ */
122
+ export declare class GetRelationshipCommand extends GetRelationshipCommand_base {
123
+ /** @internal type navigation helper, not in runtime. */
124
+ protected static __types: {
125
+ api: {
126
+ input: GetRelationshipRequest;
127
+ output: GetRelationshipResponse;
128
+ };
129
+ sdk: {
130
+ input: GetRelationshipCommandInput;
131
+ output: GetRelationshipCommandOutput;
132
+ };
133
+ };
134
+ }