@aws-sdk/client-partnercentral-channel 3.935.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +201 -0
- package/README.md +341 -0
- package/dist-cjs/auth/httpAuthSchemeProvider.js +127 -0
- package/dist-cjs/endpoint/endpointResolver.js +18 -0
- package/dist-cjs/endpoint/ruleset.js +7 -0
- package/dist-cjs/index.js +1379 -0
- package/dist-cjs/runtimeConfig.browser.js +39 -0
- package/dist-cjs/runtimeConfig.js +57 -0
- package/dist-cjs/runtimeConfig.native.js +15 -0
- package/dist-cjs/runtimeConfig.shared.js +48 -0
- package/dist-es/PartnerCentralChannel.js +41 -0
- package/dist-es/PartnerCentralChannelClient.js +51 -0
- package/dist-es/auth/httpAuthExtensionConfiguration.js +38 -0
- package/dist-es/auth/httpAuthSchemeProvider.js +123 -0
- package/dist-es/commands/AcceptChannelHandshakeCommand.js +16 -0
- package/dist-es/commands/CancelChannelHandshakeCommand.js +16 -0
- package/dist-es/commands/CreateChannelHandshakeCommand.js +16 -0
- package/dist-es/commands/CreateProgramManagementAccountCommand.js +16 -0
- package/dist-es/commands/CreateRelationshipCommand.js +16 -0
- package/dist-es/commands/DeleteProgramManagementAccountCommand.js +16 -0
- package/dist-es/commands/DeleteRelationshipCommand.js +16 -0
- package/dist-es/commands/GetRelationshipCommand.js +16 -0
- package/dist-es/commands/ListChannelHandshakesCommand.js +16 -0
- package/dist-es/commands/ListProgramManagementAccountsCommand.js +16 -0
- package/dist-es/commands/ListRelationshipsCommand.js +16 -0
- package/dist-es/commands/ListTagsForResourceCommand.js +16 -0
- package/dist-es/commands/RejectChannelHandshakeCommand.js +16 -0
- package/dist-es/commands/TagResourceCommand.js +16 -0
- package/dist-es/commands/UntagResourceCommand.js +16 -0
- package/dist-es/commands/UpdateProgramManagementAccountCommand.js +16 -0
- package/dist-es/commands/UpdateRelationshipCommand.js +16 -0
- package/dist-es/commands/index.js +17 -0
- package/dist-es/endpoint/EndpointParameters.js +11 -0
- package/dist-es/endpoint/endpointResolver.js +14 -0
- package/dist-es/endpoint/ruleset.js +4 -0
- package/dist-es/extensionConfiguration.js +1 -0
- package/dist-es/index.js +7 -0
- package/dist-es/models/PartnerCentralChannelServiceException.js +8 -0
- package/dist-es/models/enums.js +76 -0
- package/dist-es/models/errors.js +114 -0
- package/dist-es/models/models_0.js +1 -0
- package/dist-es/pagination/Interfaces.js +1 -0
- package/dist-es/pagination/ListChannelHandshakesPaginator.js +4 -0
- package/dist-es/pagination/ListProgramManagementAccountsPaginator.js +4 -0
- package/dist-es/pagination/ListRelationshipsPaginator.js +4 -0
- package/dist-es/pagination/index.js +4 -0
- package/dist-es/runtimeConfig.browser.js +34 -0
- package/dist-es/runtimeConfig.js +52 -0
- package/dist-es/runtimeConfig.native.js +11 -0
- package/dist-es/runtimeConfig.shared.js +44 -0
- package/dist-es/runtimeExtensions.js +9 -0
- package/dist-es/schemas/schemas_0.js +795 -0
- package/dist-types/PartnerCentralChannel.d.ts +129 -0
- package/dist-types/PartnerCentralChannelClient.d.ts +213 -0
- package/dist-types/auth/httpAuthExtensionConfiguration.d.ts +29 -0
- package/dist-types/auth/httpAuthSchemeProvider.d.ts +83 -0
- package/dist-types/commands/AcceptChannelHandshakeCommand.d.ts +114 -0
- package/dist-types/commands/CancelChannelHandshakeCommand.d.ts +114 -0
- package/dist-types/commands/CreateChannelHandshakeCommand.d.ts +226 -0
- package/dist-types/commands/CreateProgramManagementAccountCommand.d.ts +130 -0
- package/dist-types/commands/CreateRelationshipCommand.d.ts +151 -0
- package/dist-types/commands/DeleteProgramManagementAccountCommand.d.ts +107 -0
- package/dist-types/commands/DeleteRelationshipCommand.d.ts +109 -0
- package/dist-types/commands/GetRelationshipCommand.d.ts +134 -0
- package/dist-types/commands/ListChannelHandshakesCommand.d.ts +360 -0
- package/dist-types/commands/ListProgramManagementAccountsCommand.d.ts +168 -0
- package/dist-types/commands/ListRelationshipsCommand.d.ts +169 -0
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +114 -0
- package/dist-types/commands/RejectChannelHandshakeCommand.d.ts +114 -0
- package/dist-types/commands/TagResourceCommand.d.ts +115 -0
- package/dist-types/commands/UntagResourceCommand.d.ts +109 -0
- package/dist-types/commands/UpdateProgramManagementAccountCommand.d.ts +123 -0
- package/dist-types/commands/UpdateRelationshipCommand.d.ts +140 -0
- package/dist-types/commands/index.d.ts +17 -0
- package/dist-types/endpoint/EndpointParameters.d.ts +32 -0
- package/dist-types/endpoint/endpointResolver.d.ts +5 -0
- package/dist-types/endpoint/ruleset.d.ts +2 -0
- package/dist-types/extensionConfiguration.d.ts +9 -0
- package/dist-types/index.d.ts +16 -0
- package/dist-types/models/PartnerCentralChannelServiceException.d.ts +14 -0
- package/dist-types/models/enums.d.ts +220 -0
- package/dist-types/models/errors.d.ts +153 -0
- package/dist-types/models/models_0.d.ts +1677 -0
- package/dist-types/pagination/Interfaces.d.ts +8 -0
- package/dist-types/pagination/ListChannelHandshakesPaginator.d.ts +7 -0
- package/dist-types/pagination/ListProgramManagementAccountsPaginator.d.ts +7 -0
- package/dist-types/pagination/ListRelationshipsPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +4 -0
- package/dist-types/runtimeConfig.browser.d.ts +52 -0
- package/dist-types/runtimeConfig.d.ts +52 -0
- package/dist-types/runtimeConfig.native.d.ts +51 -0
- package/dist-types/runtimeConfig.shared.d.ts +24 -0
- package/dist-types/runtimeExtensions.d.ts +17 -0
- package/dist-types/schemas/schemas_0.d.ts +112 -0
- package/dist-types/ts3.4/PartnerCentralChannel.d.ts +296 -0
- package/dist-types/ts3.4/PartnerCentralChannelClient.d.ts +228 -0
- package/dist-types/ts3.4/auth/httpAuthExtensionConfiguration.d.ts +32 -0
- package/dist-types/ts3.4/auth/httpAuthSchemeProvider.d.ts +59 -0
- package/dist-types/ts3.4/commands/AcceptChannelHandshakeCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/CancelChannelHandshakeCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/CreateChannelHandshakeCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/CreateProgramManagementAccountCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/CreateRelationshipCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/DeleteProgramManagementAccountCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/DeleteRelationshipCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/GetRelationshipCommand.d.ts +50 -0
- package/dist-types/ts3.4/commands/ListChannelHandshakesCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/ListProgramManagementAccountsCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/ListRelationshipsCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/RejectChannelHandshakeCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +50 -0
- package/dist-types/ts3.4/commands/UpdateProgramManagementAccountCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/UpdateRelationshipCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/index.d.ts +17 -0
- package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +45 -0
- package/dist-types/ts3.4/endpoint/endpointResolver.d.ts +8 -0
- package/dist-types/ts3.4/endpoint/ruleset.d.ts +2 -0
- package/dist-types/ts3.4/extensionConfiguration.d.ts +9 -0
- package/dist-types/ts3.4/index.d.ts +11 -0
- package/dist-types/ts3.4/models/PartnerCentralChannelServiceException.d.ts +9 -0
- package/dist-types/ts3.4/models/enums.d.ts +106 -0
- package/dist-types/ts3.4/models/errors.d.ts +68 -0
- package/dist-types/ts3.4/models/models_0.d.ts +542 -0
- package/dist-types/ts3.4/pagination/Interfaces.d.ts +6 -0
- package/dist-types/ts3.4/pagination/ListChannelHandshakesPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListProgramManagementAccountsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListRelationshipsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +103 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +98 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +107 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +34 -0
- package/dist-types/ts3.4/runtimeExtensions.d.ts +13 -0
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +117 -0
- package/package.json +100 -0
|
@@ -0,0 +1,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
|
+
}
|