@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,16 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
3
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
4
|
+
import { TagResource } from "../schemas/schemas_0";
|
|
5
|
+
export { $Command };
|
|
6
|
+
export class TagResourceCommand extends $Command
|
|
7
|
+
.classBuilder()
|
|
8
|
+
.ep(commonParams)
|
|
9
|
+
.m(function (Command, cs, config, o) {
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
11
|
+
})
|
|
12
|
+
.s("PartnerCentralChannel", "TagResource", {})
|
|
13
|
+
.n("PartnerCentralChannelClient", "TagResourceCommand")
|
|
14
|
+
.sc(TagResource)
|
|
15
|
+
.build() {
|
|
16
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
3
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
4
|
+
import { UntagResource } from "../schemas/schemas_0";
|
|
5
|
+
export { $Command };
|
|
6
|
+
export class UntagResourceCommand extends $Command
|
|
7
|
+
.classBuilder()
|
|
8
|
+
.ep(commonParams)
|
|
9
|
+
.m(function (Command, cs, config, o) {
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
11
|
+
})
|
|
12
|
+
.s("PartnerCentralChannel", "UntagResource", {})
|
|
13
|
+
.n("PartnerCentralChannelClient", "UntagResourceCommand")
|
|
14
|
+
.sc(UntagResource)
|
|
15
|
+
.build() {
|
|
16
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
3
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
4
|
+
import { UpdateProgramManagementAccount } from "../schemas/schemas_0";
|
|
5
|
+
export { $Command };
|
|
6
|
+
export class UpdateProgramManagementAccountCommand extends $Command
|
|
7
|
+
.classBuilder()
|
|
8
|
+
.ep(commonParams)
|
|
9
|
+
.m(function (Command, cs, config, o) {
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
11
|
+
})
|
|
12
|
+
.s("PartnerCentralChannel", "UpdateProgramManagementAccount", {})
|
|
13
|
+
.n("PartnerCentralChannelClient", "UpdateProgramManagementAccountCommand")
|
|
14
|
+
.sc(UpdateProgramManagementAccount)
|
|
15
|
+
.build() {
|
|
16
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
3
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
4
|
+
import { UpdateRelationship } from "../schemas/schemas_0";
|
|
5
|
+
export { $Command };
|
|
6
|
+
export class UpdateRelationshipCommand extends $Command
|
|
7
|
+
.classBuilder()
|
|
8
|
+
.ep(commonParams)
|
|
9
|
+
.m(function (Command, cs, config, o) {
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
11
|
+
})
|
|
12
|
+
.s("PartnerCentralChannel", "UpdateRelationship", {})
|
|
13
|
+
.n("PartnerCentralChannelClient", "UpdateRelationshipCommand")
|
|
14
|
+
.sc(UpdateRelationship)
|
|
15
|
+
.build() {
|
|
16
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export * from "./AcceptChannelHandshakeCommand";
|
|
2
|
+
export * from "./CancelChannelHandshakeCommand";
|
|
3
|
+
export * from "./CreateChannelHandshakeCommand";
|
|
4
|
+
export * from "./CreateProgramManagementAccountCommand";
|
|
5
|
+
export * from "./CreateRelationshipCommand";
|
|
6
|
+
export * from "./DeleteProgramManagementAccountCommand";
|
|
7
|
+
export * from "./DeleteRelationshipCommand";
|
|
8
|
+
export * from "./GetRelationshipCommand";
|
|
9
|
+
export * from "./ListChannelHandshakesCommand";
|
|
10
|
+
export * from "./ListProgramManagementAccountsCommand";
|
|
11
|
+
export * from "./ListRelationshipsCommand";
|
|
12
|
+
export * from "./ListTagsForResourceCommand";
|
|
13
|
+
export * from "./RejectChannelHandshakeCommand";
|
|
14
|
+
export * from "./TagResourceCommand";
|
|
15
|
+
export * from "./UntagResourceCommand";
|
|
16
|
+
export * from "./UpdateProgramManagementAccountCommand";
|
|
17
|
+
export * from "./UpdateRelationshipCommand";
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export const resolveClientEndpointParameters = (options) => {
|
|
2
|
+
return Object.assign(options, {
|
|
3
|
+
useFipsEndpoint: options.useFipsEndpoint ?? false,
|
|
4
|
+
defaultSigningName: "partnercentral-channel",
|
|
5
|
+
});
|
|
6
|
+
};
|
|
7
|
+
export const commonParams = {
|
|
8
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
9
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
10
|
+
Region: { type: "builtInParams", name: "region" },
|
|
11
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { awsEndpointFunctions } from "@aws-sdk/util-endpoints";
|
|
2
|
+
import { customEndpointFunctions, EndpointCache, resolveEndpoint } from "@smithy/util-endpoints";
|
|
3
|
+
import { ruleSet } from "./ruleset";
|
|
4
|
+
const cache = new EndpointCache({
|
|
5
|
+
size: 50,
|
|
6
|
+
params: ["Endpoint", "Region", "UseFIPS"],
|
|
7
|
+
});
|
|
8
|
+
export const defaultEndpointResolver = (endpointParams, context = {}) => {
|
|
9
|
+
return cache.get(endpointParams, () => resolveEndpoint(ruleSet, {
|
|
10
|
+
endpointParams: endpointParams,
|
|
11
|
+
logger: context.logger,
|
|
12
|
+
}));
|
|
13
|
+
};
|
|
14
|
+
customEndpointFunctions.aws = awsEndpointFunctions;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
const u = "argv", v = "ref", w = "authSchemes", x = "name", y = "signingRegion";
|
|
2
|
+
const a = true, b = false, c = "isSet", d = "booleanEquals", e = "error", f = "sigv4", g = "endpoint", h = "tree", i = "PartitionResult", j = { "required": false, "type": "string" }, k = { [v]: "Endpoint" }, l = { "fn": d, [u]: [{ [v]: "UseFIPS" }, true] }, m = { [v]: "UseFIPS" }, n = { [x]: "sigv4a", "signingRegionSet": ["*"] }, o = {}, p = { "fn": "stringEquals", [u]: [{ "fn": "getAttr", [u]: [{ [v]: i }, "name"] }, "aws-us-gov"] }, q = { [w]: [n, { [x]: f, [y]: "us-gov-west-1" }] }, r = { [w]: [n, { [x]: f, [y]: "{PartitionResult#implicitGlobalRegion}" }] }, s = [l], t = [{ [v]: "Region" }];
|
|
3
|
+
const _data = { version: "1.0", parameters: { UseFIPS: { required: a, default: b, type: "boolean" }, Endpoint: j, Region: j }, rules: [{ conditions: [{ fn: c, [u]: [k] }], rules: [{ conditions: s, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: e }, { endpoint: { url: k, properties: { [w]: [n, { [x]: f }] }, headers: o }, type: g }], type: h }, { rules: [{ conditions: [{ fn: c, [u]: t }], rules: [{ conditions: [{ fn: "aws.partition", [u]: t, assign: i }], rules: [{ conditions: [p, { fn: d, [u]: [m, b] }], endpoint: { url: "https://partnercentral-channel.us-gov.{PartitionResult#dualStackDnsSuffix}", properties: q, headers: o }, type: g }, { conditions: [p, l], endpoint: { url: "https://partnercentral-channel-fips.us-gov.{PartitionResult#dualStackDnsSuffix}", properties: q, headers: o }, type: g }, { conditions: s, endpoint: { url: "https://partnercentral-channel-fips.global.{PartitionResult#dualStackDnsSuffix}", properties: r, headers: o }, type: g }, { endpoint: { url: "https://partnercentral-channel.global.{PartitionResult#dualStackDnsSuffix}", properties: r, headers: o }, type: g }], type: h }], type: h }, { error: "Invalid Configuration: Missing Region", type: e }], type: h }] };
|
|
4
|
+
export const ruleSet = _data;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist-es/index.js
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export * from "./PartnerCentralChannelClient";
|
|
2
|
+
export * from "./PartnerCentralChannel";
|
|
3
|
+
export * from "./commands";
|
|
4
|
+
export * from "./pagination";
|
|
5
|
+
export * from "./models/enums";
|
|
6
|
+
export * from "./models/errors";
|
|
7
|
+
export { PartnerCentralChannelServiceException } from "./models/PartnerCentralChannelServiceException";
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ServiceException as __ServiceException, } from "@smithy/smithy-client";
|
|
2
|
+
export { __ServiceException };
|
|
3
|
+
export class PartnerCentralChannelServiceException extends __ServiceException {
|
|
4
|
+
constructor(options) {
|
|
5
|
+
super(options);
|
|
6
|
+
Object.setPrototypeOf(this, PartnerCentralChannelServiceException.prototype);
|
|
7
|
+
}
|
|
8
|
+
}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
export const HandshakeStatus = {
|
|
2
|
+
ACCEPTED: "ACCEPTED",
|
|
3
|
+
CANCELED: "CANCELED",
|
|
4
|
+
EXPIRED: "EXPIRED",
|
|
5
|
+
PENDING: "PENDING",
|
|
6
|
+
REJECTED: "REJECTED",
|
|
7
|
+
};
|
|
8
|
+
export const ValidationExceptionReason = {
|
|
9
|
+
BUSINESS_VALIDATION_FAILED: "BUSINESS_VALIDATION_FAILED",
|
|
10
|
+
REQUEST_VALIDATION_FAILED: "REQUEST_VALIDATION_FAILED",
|
|
11
|
+
};
|
|
12
|
+
export const AssociationType = {
|
|
13
|
+
DOWNSTREAM_SELLER: "DOWNSTREAM_SELLER",
|
|
14
|
+
END_CUSTOMER: "END_CUSTOMER",
|
|
15
|
+
INTERNAL: "INTERNAL",
|
|
16
|
+
};
|
|
17
|
+
export const ServicePeriodType = {
|
|
18
|
+
FIXED_COMMITMENT_PERIOD: "FIXED_COMMITMENT_PERIOD",
|
|
19
|
+
MINIMUM_NOTICE_PERIOD: "MINIMUM_NOTICE_PERIOD",
|
|
20
|
+
};
|
|
21
|
+
export const HandshakeType = {
|
|
22
|
+
PROGRAM_MANAGEMENT_ACCOUNT: "PROGRAM_MANAGEMENT_ACCOUNT",
|
|
23
|
+
REVOKE_SERVICE_PERIOD: "REVOKE_SERVICE_PERIOD",
|
|
24
|
+
START_SERVICE_PERIOD: "START_SERVICE_PERIOD",
|
|
25
|
+
};
|
|
26
|
+
export const Program = {
|
|
27
|
+
DISTRIBUTION: "DISTRIBUTION",
|
|
28
|
+
DISTRIBUTION_SELLER: "DISTRIBUTION_SELLER",
|
|
29
|
+
SOLUTION_PROVIDER: "SOLUTION_PROVIDER",
|
|
30
|
+
};
|
|
31
|
+
export const ProgramManagementAccountTypeSortName = {
|
|
32
|
+
UPDATED_AT: "UpdatedAt",
|
|
33
|
+
};
|
|
34
|
+
export const SortOrder = {
|
|
35
|
+
ASCENDING: "Ascending",
|
|
36
|
+
DESCENDING: "Descending",
|
|
37
|
+
};
|
|
38
|
+
export const RevokeServicePeriodTypeSortName = {
|
|
39
|
+
UPDATED_AT: "UpdatedAt",
|
|
40
|
+
};
|
|
41
|
+
export const StartServicePeriodTypeSortName = {
|
|
42
|
+
UPDATED_AT: "UpdatedAt",
|
|
43
|
+
};
|
|
44
|
+
export const ParticipantType = {
|
|
45
|
+
RECEIVER: "RECEIVER",
|
|
46
|
+
SENDER: "SENDER",
|
|
47
|
+
};
|
|
48
|
+
export const Coverage = {
|
|
49
|
+
ENTIRE_ORGANIZATION: "ENTIRE_ORGANIZATION",
|
|
50
|
+
MANAGEMENT_ACCOUNT_ONLY: "MANAGEMENT_ACCOUNT_ONLY",
|
|
51
|
+
};
|
|
52
|
+
export const Provider = {
|
|
53
|
+
DISTRIBUTION_SELLER: "DISTRIBUTION_SELLER",
|
|
54
|
+
DISTRIBUTOR: "DISTRIBUTOR",
|
|
55
|
+
};
|
|
56
|
+
export const ResaleAccountModel = {
|
|
57
|
+
DISTRIBUTOR: "DISTRIBUTOR",
|
|
58
|
+
END_CUSTOMER: "END_CUSTOMER",
|
|
59
|
+
SOLUTION_PROVIDER: "SOLUTION_PROVIDER",
|
|
60
|
+
};
|
|
61
|
+
export const Sector = {
|
|
62
|
+
COMMERCIAL: "COMMERCIAL",
|
|
63
|
+
GOVERNMENT: "GOVERNMENT",
|
|
64
|
+
GOVERNMENT_EXCEPTION: "GOVERNMENT_EXCEPTION",
|
|
65
|
+
};
|
|
66
|
+
export const ListProgramManagementAccountsSortName = {
|
|
67
|
+
UPDATED_AT: "UpdatedAt",
|
|
68
|
+
};
|
|
69
|
+
export const ProgramManagementAccountStatus = {
|
|
70
|
+
ACTIVE: "ACTIVE",
|
|
71
|
+
INACTIVE: "INACTIVE",
|
|
72
|
+
PENDING: "PENDING",
|
|
73
|
+
};
|
|
74
|
+
export const ListRelationshipsSortName = {
|
|
75
|
+
UPDATED_AT: "UpdatedAt",
|
|
76
|
+
};
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
import { PartnerCentralChannelServiceException as __BaseException } from "./PartnerCentralChannelServiceException";
|
|
2
|
+
export class AccessDeniedException extends __BaseException {
|
|
3
|
+
name = "AccessDeniedException";
|
|
4
|
+
$fault = "client";
|
|
5
|
+
reason;
|
|
6
|
+
constructor(opts) {
|
|
7
|
+
super({
|
|
8
|
+
name: "AccessDeniedException",
|
|
9
|
+
$fault: "client",
|
|
10
|
+
...opts,
|
|
11
|
+
});
|
|
12
|
+
Object.setPrototypeOf(this, AccessDeniedException.prototype);
|
|
13
|
+
this.reason = opts.reason;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
export class InternalServerException extends __BaseException {
|
|
17
|
+
name = "InternalServerException";
|
|
18
|
+
$fault = "server";
|
|
19
|
+
$retryable = {};
|
|
20
|
+
constructor(opts) {
|
|
21
|
+
super({
|
|
22
|
+
name: "InternalServerException",
|
|
23
|
+
$fault: "server",
|
|
24
|
+
...opts,
|
|
25
|
+
});
|
|
26
|
+
Object.setPrototypeOf(this, InternalServerException.prototype);
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
export class ResourceNotFoundException extends __BaseException {
|
|
30
|
+
name = "ResourceNotFoundException";
|
|
31
|
+
$fault = "client";
|
|
32
|
+
resourceId;
|
|
33
|
+
resourceType;
|
|
34
|
+
constructor(opts) {
|
|
35
|
+
super({
|
|
36
|
+
name: "ResourceNotFoundException",
|
|
37
|
+
$fault: "client",
|
|
38
|
+
...opts,
|
|
39
|
+
});
|
|
40
|
+
Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
|
|
41
|
+
this.resourceId = opts.resourceId;
|
|
42
|
+
this.resourceType = opts.resourceType;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
export class ThrottlingException extends __BaseException {
|
|
46
|
+
name = "ThrottlingException";
|
|
47
|
+
$fault = "client";
|
|
48
|
+
$retryable = {
|
|
49
|
+
throttling: true,
|
|
50
|
+
};
|
|
51
|
+
serviceCode;
|
|
52
|
+
quotaCode;
|
|
53
|
+
constructor(opts) {
|
|
54
|
+
super({
|
|
55
|
+
name: "ThrottlingException",
|
|
56
|
+
$fault: "client",
|
|
57
|
+
...opts,
|
|
58
|
+
});
|
|
59
|
+
Object.setPrototypeOf(this, ThrottlingException.prototype);
|
|
60
|
+
this.serviceCode = opts.serviceCode;
|
|
61
|
+
this.quotaCode = opts.quotaCode;
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
export class ValidationException extends __BaseException {
|
|
65
|
+
name = "ValidationException";
|
|
66
|
+
$fault = "client";
|
|
67
|
+
reason;
|
|
68
|
+
fieldList;
|
|
69
|
+
constructor(opts) {
|
|
70
|
+
super({
|
|
71
|
+
name: "ValidationException",
|
|
72
|
+
$fault: "client",
|
|
73
|
+
...opts,
|
|
74
|
+
});
|
|
75
|
+
Object.setPrototypeOf(this, ValidationException.prototype);
|
|
76
|
+
this.reason = opts.reason;
|
|
77
|
+
this.fieldList = opts.fieldList;
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
export class ConflictException extends __BaseException {
|
|
81
|
+
name = "ConflictException";
|
|
82
|
+
$fault = "client";
|
|
83
|
+
resourceId;
|
|
84
|
+
resourceType;
|
|
85
|
+
constructor(opts) {
|
|
86
|
+
super({
|
|
87
|
+
name: "ConflictException",
|
|
88
|
+
$fault: "client",
|
|
89
|
+
...opts,
|
|
90
|
+
});
|
|
91
|
+
Object.setPrototypeOf(this, ConflictException.prototype);
|
|
92
|
+
this.resourceId = opts.resourceId;
|
|
93
|
+
this.resourceType = opts.resourceType;
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
export class ServiceQuotaExceededException extends __BaseException {
|
|
97
|
+
name = "ServiceQuotaExceededException";
|
|
98
|
+
$fault = "client";
|
|
99
|
+
$retryable = {};
|
|
100
|
+
resourceId;
|
|
101
|
+
resourceType;
|
|
102
|
+
quotaCode;
|
|
103
|
+
constructor(opts) {
|
|
104
|
+
super({
|
|
105
|
+
name: "ServiceQuotaExceededException",
|
|
106
|
+
$fault: "client",
|
|
107
|
+
...opts,
|
|
108
|
+
});
|
|
109
|
+
Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
|
|
110
|
+
this.resourceId = opts.resourceId;
|
|
111
|
+
this.resourceType = opts.resourceType;
|
|
112
|
+
this.quotaCode = opts.quotaCode;
|
|
113
|
+
}
|
|
114
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
2
|
+
import { ListChannelHandshakesCommand, } from "../commands/ListChannelHandshakesCommand";
|
|
3
|
+
import { PartnerCentralChannelClient } from "../PartnerCentralChannelClient";
|
|
4
|
+
export const paginateListChannelHandshakes = createPaginator(PartnerCentralChannelClient, ListChannelHandshakesCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
2
|
+
import { ListProgramManagementAccountsCommand, } from "../commands/ListProgramManagementAccountsCommand";
|
|
3
|
+
import { PartnerCentralChannelClient } from "../PartnerCentralChannelClient";
|
|
4
|
+
export const paginateListProgramManagementAccounts = createPaginator(PartnerCentralChannelClient, ListProgramManagementAccountsCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
2
|
+
import { ListRelationshipsCommand, } from "../commands/ListRelationshipsCommand";
|
|
3
|
+
import { PartnerCentralChannelClient } from "../PartnerCentralChannelClient";
|
|
4
|
+
export const paginateListRelationships = createPaginator(PartnerCentralChannelClient, ListRelationshipsCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import packageInfo from "../package.json";
|
|
2
|
+
import { Sha256 } from "@aws-crypto/sha256-browser";
|
|
3
|
+
import { createDefaultUserAgentProvider } from "@aws-sdk/util-user-agent-browser";
|
|
4
|
+
import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@smithy/config-resolver";
|
|
5
|
+
import { FetchHttpHandler as RequestHandler, streamCollector } from "@smithy/fetch-http-handler";
|
|
6
|
+
import { invalidProvider } from "@smithy/invalid-dependency";
|
|
7
|
+
import { calculateBodyLength } from "@smithy/util-body-length-browser";
|
|
8
|
+
import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@smithy/util-retry";
|
|
9
|
+
import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
|
|
10
|
+
import { loadConfigsForDefaultMode } from "@smithy/smithy-client";
|
|
11
|
+
import { resolveDefaultsModeConfig } from "@smithy/util-defaults-mode-browser";
|
|
12
|
+
export const getRuntimeConfig = (config) => {
|
|
13
|
+
const defaultsMode = resolveDefaultsModeConfig(config);
|
|
14
|
+
const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
|
|
15
|
+
const clientSharedValues = getSharedRuntimeConfig(config);
|
|
16
|
+
return {
|
|
17
|
+
...clientSharedValues,
|
|
18
|
+
...config,
|
|
19
|
+
runtime: "browser",
|
|
20
|
+
defaultsMode,
|
|
21
|
+
bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
|
|
22
|
+
credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_) => () => Promise.reject(new Error("Credential is missing"))),
|
|
23
|
+
defaultUserAgentProvider: config?.defaultUserAgentProvider ??
|
|
24
|
+
createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
|
|
25
|
+
maxAttempts: config?.maxAttempts ?? DEFAULT_MAX_ATTEMPTS,
|
|
26
|
+
region: config?.region ?? invalidProvider("Region is missing"),
|
|
27
|
+
requestHandler: RequestHandler.create(config?.requestHandler ?? defaultConfigProvider),
|
|
28
|
+
retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE),
|
|
29
|
+
sha256: config?.sha256 ?? Sha256,
|
|
30
|
+
streamCollector: config?.streamCollector ?? streamCollector,
|
|
31
|
+
useDualstackEndpoint: config?.useDualstackEndpoint ?? (() => Promise.resolve(DEFAULT_USE_DUALSTACK_ENDPOINT)),
|
|
32
|
+
useFipsEndpoint: config?.useFipsEndpoint ?? (() => Promise.resolve(DEFAULT_USE_FIPS_ENDPOINT)),
|
|
33
|
+
};
|
|
34
|
+
};
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import packageInfo from "../package.json";
|
|
2
|
+
import { NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, NODE_SIGV4A_CONFIG_OPTIONS, emitWarningIfUnsupportedVersion as awsCheckVersion, } from "@aws-sdk/core";
|
|
3
|
+
import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node";
|
|
4
|
+
import { NODE_APP_ID_CONFIG_OPTIONS, createDefaultUserAgentProvider } from "@aws-sdk/util-user-agent-node";
|
|
5
|
+
import { NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, } from "@smithy/config-resolver";
|
|
6
|
+
import { Hash } from "@smithy/hash-node";
|
|
7
|
+
import { NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS } from "@smithy/middleware-retry";
|
|
8
|
+
import { loadConfig as loadNodeConfig } from "@smithy/node-config-provider";
|
|
9
|
+
import { NodeHttpHandler as RequestHandler, streamCollector } from "@smithy/node-http-handler";
|
|
10
|
+
import { calculateBodyLength } from "@smithy/util-body-length-node";
|
|
11
|
+
import { DEFAULT_RETRY_MODE } from "@smithy/util-retry";
|
|
12
|
+
import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
|
|
13
|
+
import { loadConfigsForDefaultMode } from "@smithy/smithy-client";
|
|
14
|
+
import { resolveDefaultsModeConfig } from "@smithy/util-defaults-mode-node";
|
|
15
|
+
import { emitWarningIfUnsupportedVersion } from "@smithy/smithy-client";
|
|
16
|
+
export const getRuntimeConfig = (config) => {
|
|
17
|
+
emitWarningIfUnsupportedVersion(process.version);
|
|
18
|
+
const defaultsMode = resolveDefaultsModeConfig(config);
|
|
19
|
+
const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
|
|
20
|
+
const clientSharedValues = getSharedRuntimeConfig(config);
|
|
21
|
+
awsCheckVersion(process.version);
|
|
22
|
+
const loaderConfig = {
|
|
23
|
+
profile: config?.profile,
|
|
24
|
+
logger: clientSharedValues.logger,
|
|
25
|
+
};
|
|
26
|
+
return {
|
|
27
|
+
...clientSharedValues,
|
|
28
|
+
...config,
|
|
29
|
+
runtime: "node",
|
|
30
|
+
defaultsMode,
|
|
31
|
+
authSchemePreference: config?.authSchemePreference ?? loadNodeConfig(NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),
|
|
32
|
+
bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
|
|
33
|
+
credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider,
|
|
34
|
+
defaultUserAgentProvider: config?.defaultUserAgentProvider ??
|
|
35
|
+
createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
|
|
36
|
+
maxAttempts: config?.maxAttempts ?? loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
|
|
37
|
+
region: config?.region ??
|
|
38
|
+
loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, { ...NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
|
|
39
|
+
requestHandler: RequestHandler.create(config?.requestHandler ?? defaultConfigProvider),
|
|
40
|
+
retryMode: config?.retryMode ??
|
|
41
|
+
loadNodeConfig({
|
|
42
|
+
...NODE_RETRY_MODE_CONFIG_OPTIONS,
|
|
43
|
+
default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
|
|
44
|
+
}, config),
|
|
45
|
+
sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
|
|
46
|
+
sigv4aSigningRegionSet: config?.sigv4aSigningRegionSet ?? loadNodeConfig(NODE_SIGV4A_CONFIG_OPTIONS, loaderConfig),
|
|
47
|
+
streamCollector: config?.streamCollector ?? streamCollector,
|
|
48
|
+
useDualstackEndpoint: config?.useDualstackEndpoint ?? loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
|
|
49
|
+
useFipsEndpoint: config?.useFipsEndpoint ?? loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
|
|
50
|
+
userAgentAppId: config?.userAgentAppId ?? loadNodeConfig(NODE_APP_ID_CONFIG_OPTIONS, loaderConfig),
|
|
51
|
+
};
|
|
52
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Sha256 } from "@aws-crypto/sha256-js";
|
|
2
|
+
import { getRuntimeConfig as getBrowserRuntimeConfig } from "./runtimeConfig.browser";
|
|
3
|
+
export const getRuntimeConfig = (config) => {
|
|
4
|
+
const browserDefaults = getBrowserRuntimeConfig(config);
|
|
5
|
+
return {
|
|
6
|
+
...browserDefaults,
|
|
7
|
+
...config,
|
|
8
|
+
runtime: "react-native",
|
|
9
|
+
sha256: config?.sha256 ?? Sha256,
|
|
10
|
+
};
|
|
11
|
+
};
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { AwsSdkSigV4ASigner, AwsSdkSigV4Signer } from "@aws-sdk/core";
|
|
2
|
+
import { AwsJson1_0Protocol } from "@aws-sdk/core/protocols";
|
|
3
|
+
import { SignatureV4MultiRegion } from "@aws-sdk/signature-v4-multi-region";
|
|
4
|
+
import { NoOpLogger } from "@smithy/smithy-client";
|
|
5
|
+
import { parseUrl } from "@smithy/url-parser";
|
|
6
|
+
import { fromBase64, toBase64 } from "@smithy/util-base64";
|
|
7
|
+
import { fromUtf8, toUtf8 } from "@smithy/util-utf8";
|
|
8
|
+
import { defaultPartnerCentralChannelHttpAuthSchemeProvider } from "./auth/httpAuthSchemeProvider";
|
|
9
|
+
import { defaultEndpointResolver } from "./endpoint/endpointResolver";
|
|
10
|
+
export const getRuntimeConfig = (config) => {
|
|
11
|
+
return {
|
|
12
|
+
apiVersion: "2024-03-18",
|
|
13
|
+
base64Decoder: config?.base64Decoder ?? fromBase64,
|
|
14
|
+
base64Encoder: config?.base64Encoder ?? toBase64,
|
|
15
|
+
disableHostPrefix: config?.disableHostPrefix ?? false,
|
|
16
|
+
endpointProvider: config?.endpointProvider ?? defaultEndpointResolver,
|
|
17
|
+
extensions: config?.extensions ?? [],
|
|
18
|
+
httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? defaultPartnerCentralChannelHttpAuthSchemeProvider,
|
|
19
|
+
httpAuthSchemes: config?.httpAuthSchemes ?? [
|
|
20
|
+
{
|
|
21
|
+
schemeId: "aws.auth#sigv4",
|
|
22
|
+
identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4"),
|
|
23
|
+
signer: new AwsSdkSigV4Signer(),
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
schemeId: "aws.auth#sigv4a",
|
|
27
|
+
identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4a"),
|
|
28
|
+
signer: new AwsSdkSigV4ASigner(),
|
|
29
|
+
},
|
|
30
|
+
],
|
|
31
|
+
logger: config?.logger ?? new NoOpLogger(),
|
|
32
|
+
protocol: config?.protocol ??
|
|
33
|
+
new AwsJson1_0Protocol({
|
|
34
|
+
defaultNamespace: "com.amazonaws.partnercentralchannel",
|
|
35
|
+
serviceTarget: "PartnerCentralChannel",
|
|
36
|
+
awsQueryCompatible: false,
|
|
37
|
+
}),
|
|
38
|
+
serviceId: config?.serviceId ?? "PartnerCentral Channel",
|
|
39
|
+
signerConstructor: config?.signerConstructor ?? SignatureV4MultiRegion,
|
|
40
|
+
urlParser: config?.urlParser ?? parseUrl,
|
|
41
|
+
utf8Decoder: config?.utf8Decoder ?? fromUtf8,
|
|
42
|
+
utf8Encoder: config?.utf8Encoder ?? toUtf8,
|
|
43
|
+
};
|
|
44
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, } from "@aws-sdk/region-config-resolver";
|
|
2
|
+
import { getHttpHandlerExtensionConfiguration, resolveHttpHandlerRuntimeConfig } from "@smithy/protocol-http";
|
|
3
|
+
import { getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig } from "@smithy/smithy-client";
|
|
4
|
+
import { getHttpAuthExtensionConfiguration, resolveHttpAuthRuntimeConfig } from "./auth/httpAuthExtensionConfiguration";
|
|
5
|
+
export const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
|
|
6
|
+
const extensionConfiguration = Object.assign(getAwsRegionExtensionConfiguration(runtimeConfig), getDefaultExtensionConfiguration(runtimeConfig), getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig));
|
|
7
|
+
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
8
|
+
return Object.assign(runtimeConfig, resolveAwsRegionExtensionConfiguration(extensionConfiguration), resolveDefaultRuntimeConfig(extensionConfiguration), resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration));
|
|
9
|
+
};
|