@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,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.defaultEndpointResolver = void 0;
|
|
4
|
+
const util_endpoints_1 = require("@aws-sdk/util-endpoints");
|
|
5
|
+
const util_endpoints_2 = require("@smithy/util-endpoints");
|
|
6
|
+
const ruleset_1 = require("./ruleset");
|
|
7
|
+
const cache = new util_endpoints_2.EndpointCache({
|
|
8
|
+
size: 50,
|
|
9
|
+
params: ["Endpoint", "Region", "UseFIPS"],
|
|
10
|
+
});
|
|
11
|
+
const defaultEndpointResolver = (endpointParams, context = {}) => {
|
|
12
|
+
return cache.get(endpointParams, () => (0, util_endpoints_2.resolveEndpoint)(ruleset_1.ruleSet, {
|
|
13
|
+
endpointParams: endpointParams,
|
|
14
|
+
logger: context.logger,
|
|
15
|
+
}));
|
|
16
|
+
};
|
|
17
|
+
exports.defaultEndpointResolver = defaultEndpointResolver;
|
|
18
|
+
util_endpoints_2.customEndpointFunctions.aws = util_endpoints_1.awsEndpointFunctions;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ruleSet = void 0;
|
|
4
|
+
const u = "argv", v = "ref", w = "authSchemes", x = "name", y = "signingRegion";
|
|
5
|
+
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" }];
|
|
6
|
+
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 }] };
|
|
7
|
+
exports.ruleSet = _data;
|