@aws-sdk/client-partnercentral-channel 3.1068.0 → 3.1070.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/dist-cjs/auth/httpAuthSchemeProvider.js +15 -19
- package/dist-cjs/endpoint/bdd.js +2 -5
- package/dist-cjs/endpoint/endpointResolver.js +7 -11
- package/dist-cjs/index.js +94 -114
- package/dist-cjs/models/PartnerCentralChannelServiceException.js +4 -8
- package/dist-cjs/models/errors.js +15 -25
- package/dist-cjs/runtimeConfig.browser.js +22 -26
- package/dist-cjs/runtimeConfig.js +31 -35
- package/dist-cjs/runtimeConfig.native.js +4 -7
- package/dist-cjs/runtimeConfig.shared.js +23 -27
- package/dist-cjs/schemas/schemas_0.js +210 -137
- package/package.json +9 -9
|
@@ -1,28 +1,25 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
const
|
|
5
|
-
const
|
|
6
|
-
const client_1 = require("@smithy/core/client");
|
|
7
|
-
const endpoints_1 = require("@smithy/core/endpoints");
|
|
8
|
-
const endpointResolver_1 = require("../endpoint/endpointResolver");
|
|
1
|
+
const { resolveAwsSdkSigV4AConfig, resolveAwsSdkSigV4Config } = require("@aws-sdk/core/httpAuthSchemes");
|
|
2
|
+
const { SignatureV4MultiRegion } = require("@aws-sdk/signature-v4-multi-region");
|
|
3
|
+
const { getSmithyContext, normalizeProvider } = require("@smithy/core/client");
|
|
4
|
+
const { resolveParams } = require("@smithy/core/endpoints");
|
|
5
|
+
const { defaultEndpointResolver } = require("../endpoint/endpointResolver");
|
|
9
6
|
const createEndpointRuleSetHttpAuthSchemeParametersProvider = (defaultHttpAuthSchemeParametersProvider) => async (config, context, input) => {
|
|
10
7
|
if (!input) {
|
|
11
8
|
throw new Error("Could not find `input` for `defaultEndpointRuleSetHttpAuthSchemeParametersProvider`");
|
|
12
9
|
}
|
|
13
10
|
const defaultParameters = await defaultHttpAuthSchemeParametersProvider(config, context, input);
|
|
14
|
-
const instructionsFn =
|
|
11
|
+
const instructionsFn = getSmithyContext(context)?.commandInstance?.constructor
|
|
15
12
|
?.getEndpointParameterInstructions;
|
|
16
13
|
if (!instructionsFn) {
|
|
17
14
|
throw new Error(`getEndpointParameterInstructions() is not defined on '${context.commandName}'`);
|
|
18
15
|
}
|
|
19
|
-
const endpointParameters = await
|
|
16
|
+
const endpointParameters = await resolveParams(input, { getEndpointParameterInstructions: instructionsFn }, config);
|
|
20
17
|
return Object.assign(defaultParameters, endpointParameters);
|
|
21
18
|
};
|
|
22
19
|
const _defaultPartnerCentralChannelHttpAuthSchemeParametersProvider = async (config, context, input) => {
|
|
23
20
|
return {
|
|
24
|
-
operation:
|
|
25
|
-
region: await
|
|
21
|
+
operation: getSmithyContext(context).operation,
|
|
22
|
+
region: await normalizeProvider(config.region)() || (() => {
|
|
26
23
|
throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
|
|
27
24
|
})(),
|
|
28
25
|
};
|
|
@@ -79,7 +76,7 @@ const createEndpointRuleSetHttpAuthSchemeProvider = (defaultEndpointResolver, de
|
|
|
79
76
|
const name = s.name.toLowerCase();
|
|
80
77
|
return name !== "sigv4a" && name.startsWith("sigv4");
|
|
81
78
|
});
|
|
82
|
-
if (
|
|
79
|
+
if (SignatureV4MultiRegion.sigv4aDependency() === "none" && sigv4Present) {
|
|
83
80
|
continue;
|
|
84
81
|
}
|
|
85
82
|
}
|
|
@@ -112,15 +109,14 @@ const _defaultPartnerCentralChannelHttpAuthSchemeProvider = (authParameters) =>
|
|
|
112
109
|
}
|
|
113
110
|
return options;
|
|
114
111
|
};
|
|
115
|
-
exports.defaultPartnerCentralChannelHttpAuthSchemeProvider = createEndpointRuleSetHttpAuthSchemeProvider(
|
|
112
|
+
exports.defaultPartnerCentralChannelHttpAuthSchemeProvider = createEndpointRuleSetHttpAuthSchemeProvider(defaultEndpointResolver, _defaultPartnerCentralChannelHttpAuthSchemeProvider, {
|
|
116
113
|
"aws.auth#sigv4": createAwsAuthSigv4HttpAuthOption,
|
|
117
114
|
"aws.auth#sigv4a": createAwsAuthSigv4aHttpAuthOption,
|
|
118
115
|
});
|
|
119
|
-
|
|
120
|
-
const config_0 =
|
|
121
|
-
const config_1 =
|
|
116
|
+
exports.resolveHttpAuthSchemeConfig = (config) => {
|
|
117
|
+
const config_0 = resolveAwsSdkSigV4Config(config);
|
|
118
|
+
const config_1 = resolveAwsSdkSigV4AConfig(config_0);
|
|
122
119
|
return Object.assign(config_1, {
|
|
123
|
-
authSchemePreference:
|
|
120
|
+
authSchemePreference: normalizeProvider(config.authSchemePreference ?? []),
|
|
124
121
|
});
|
|
125
122
|
};
|
|
126
|
-
exports.resolveHttpAuthSchemeConfig = resolveHttpAuthSchemeConfig;
|
package/dist-cjs/endpoint/bdd.js
CHANGED
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.bdd = void 0;
|
|
4
|
-
const endpoints_1 = require("@smithy/core/endpoints");
|
|
1
|
+
const { BinaryDecisionDiagram } = require("@smithy/core/endpoints");
|
|
5
2
|
const i = "authSchemes", j = "name", k = "signingRegion";
|
|
6
3
|
const a = "isSet", b = "PartitionResult", c = "sigv4", d = { "ref": "Endpoint" }, e = { [j]: "sigv4a", "signingRegionSet": ["*"] }, f = { [i]: [e, { [j]: c, [k]: "us-gov-west-1" }] }, g = { [i]: [e, { [j]: c, [k]: "{PartitionResult#implicitGlobalRegion}" }] }, h = [{ "ref": "Region" }];
|
|
7
4
|
const _data = {
|
|
@@ -35,4 +32,4 @@ const nodes = new Int32Array([
|
|
|
35
32
|
4, r + 4, r + 3,
|
|
36
33
|
4, r + 1, r + 2,
|
|
37
34
|
]);
|
|
38
|
-
exports.bdd =
|
|
35
|
+
exports.bdd = BinaryDecisionDiagram.from(nodes, root, _data.conditions, _data.results);
|
|
@@ -1,18 +1,14 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
const
|
|
5
|
-
const endpoints_1 = require("@smithy/core/endpoints");
|
|
6
|
-
const bdd_1 = require("./bdd");
|
|
7
|
-
const cache = new endpoints_1.EndpointCache({
|
|
1
|
+
const { awsEndpointFunctions } = require("@aws-sdk/core/client");
|
|
2
|
+
const { customEndpointFunctions, decideEndpoint, EndpointCache } = require("@smithy/core/endpoints");
|
|
3
|
+
const { bdd } = require("./bdd");
|
|
4
|
+
const cache = new EndpointCache({
|
|
8
5
|
size: 50,
|
|
9
6
|
params: ["Endpoint", "Region", "UseFIPS"],
|
|
10
7
|
});
|
|
11
|
-
|
|
12
|
-
return cache.get(endpointParams, () =>
|
|
8
|
+
exports.defaultEndpointResolver = (endpointParams, context = {}) => {
|
|
9
|
+
return cache.get(endpointParams, () => decideEndpoint(bdd, {
|
|
13
10
|
endpointParams: endpointParams,
|
|
14
11
|
logger: context.logger,
|
|
15
12
|
}));
|
|
16
13
|
};
|
|
17
|
-
|
|
18
|
-
endpoints_1.customEndpointFunctions.aws = client_1.awsEndpointFunctions;
|
|
14
|
+
customEndpointFunctions.aws = awsEndpointFunctions;
|
package/dist-cjs/index.js
CHANGED
|
@@ -1,18 +1,21 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
1
|
+
var __exportStar = (m, e) => { Object.assign(e, m); };
|
|
2
|
+
const { getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, resolveUserAgentConfig, resolveHostHeaderConfig, getUserAgentPlugin, getHostHeaderPlugin, getLoggerPlugin, getRecursionDetectionPlugin } = require("@aws-sdk/core/client");
|
|
3
|
+
const { getHttpAuthSchemeEndpointRuleSetPlugin, DefaultIdentityProviderConfig, getHttpSigningPlugin, createPaginator } = require("@smithy/core");
|
|
4
|
+
const { getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client, Command, createAggregatedClient } = require("@smithy/core/client");
|
|
5
|
+
exports.$Command = Command;
|
|
6
|
+
exports.__Client = Client;
|
|
7
|
+
const { resolveRegionConfig } = require("@smithy/core/config");
|
|
8
|
+
const { resolveEndpointConfig, getEndpointPlugin } = require("@smithy/core/endpoints");
|
|
9
|
+
const { getHttpHandlerExtensionConfiguration, resolveHttpHandlerRuntimeConfig, getContentLengthPlugin } = require("@smithy/core/protocols");
|
|
10
|
+
const { resolveRetryConfig, getRetryPlugin } = require("@smithy/core/retry");
|
|
11
|
+
const { getSchemaSerdePlugin } = require("@smithy/core/schema");
|
|
12
|
+
const { resolveHttpAuthSchemeConfig, defaultPartnerCentralChannelHttpAuthSchemeParametersProvider } = require("./auth/httpAuthSchemeProvider");
|
|
13
|
+
const { getRuntimeConfig } = require("./runtimeConfig");
|
|
14
|
+
const { AcceptChannelHandshake$, CancelChannelHandshake$, CreateChannelHandshake$, CreateProgramManagementAccount$, CreateRelationship$, DeleteProgramManagementAccount$, DeleteRelationship$, GetRelationship$, ListChannelHandshakes$, ListProgramManagementAccounts$, ListRelationships$, ListTagsForResource$, RejectChannelHandshake$, TagResource$, UntagResource$, UpdateProgramManagementAccount$, UpdateRelationship$ } = require("./schemas/schemas_0");
|
|
15
|
+
__exportStar(require("./schemas/schemas_0"), exports);
|
|
16
|
+
__exportStar(require("./models/errors"), exports);
|
|
17
|
+
const { PartnerCentralChannelServiceException } = require("./models/PartnerCentralChannelServiceException");
|
|
18
|
+
exports.PartnerCentralChannelServiceException = PartnerCentralChannelServiceException;
|
|
16
19
|
|
|
17
20
|
const resolveClientEndpointParameters = (options) => {
|
|
18
21
|
return Object.assign(options, {
|
|
@@ -66,256 +69,256 @@ const resolveHttpAuthRuntimeConfig = (config) => {
|
|
|
66
69
|
};
|
|
67
70
|
|
|
68
71
|
const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
|
|
69
|
-
const extensionConfiguration = Object.assign(
|
|
72
|
+
const extensionConfiguration = Object.assign(getAwsRegionExtensionConfiguration(runtimeConfig), getDefaultExtensionConfiguration(runtimeConfig), getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig));
|
|
70
73
|
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
71
|
-
return Object.assign(runtimeConfig,
|
|
74
|
+
return Object.assign(runtimeConfig, resolveAwsRegionExtensionConfiguration(extensionConfiguration), resolveDefaultRuntimeConfig(extensionConfiguration), resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration));
|
|
72
75
|
};
|
|
73
76
|
|
|
74
|
-
class PartnerCentralChannelClient extends
|
|
77
|
+
class PartnerCentralChannelClient extends Client {
|
|
75
78
|
config;
|
|
76
79
|
constructor(...[configuration]) {
|
|
77
|
-
const _config_0 =
|
|
80
|
+
const _config_0 = getRuntimeConfig(configuration || {});
|
|
78
81
|
super(_config_0);
|
|
79
82
|
this.initConfig = _config_0;
|
|
80
83
|
const _config_1 = resolveClientEndpointParameters(_config_0);
|
|
81
|
-
const _config_2 =
|
|
82
|
-
const _config_3 =
|
|
83
|
-
const _config_4 =
|
|
84
|
-
const _config_5 =
|
|
85
|
-
const _config_6 =
|
|
86
|
-
const _config_7 =
|
|
84
|
+
const _config_2 = resolveUserAgentConfig(_config_1);
|
|
85
|
+
const _config_3 = resolveRetryConfig(_config_2);
|
|
86
|
+
const _config_4 = resolveRegionConfig(_config_3);
|
|
87
|
+
const _config_5 = resolveHostHeaderConfig(_config_4);
|
|
88
|
+
const _config_6 = resolveEndpointConfig(_config_5);
|
|
89
|
+
const _config_7 = resolveHttpAuthSchemeConfig(_config_6);
|
|
87
90
|
const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
|
|
88
91
|
this.config = _config_8;
|
|
89
|
-
this.middlewareStack.use(
|
|
90
|
-
this.middlewareStack.use(
|
|
91
|
-
this.middlewareStack.use(
|
|
92
|
-
this.middlewareStack.use(
|
|
93
|
-
this.middlewareStack.use(
|
|
94
|
-
this.middlewareStack.use(
|
|
95
|
-
this.middlewareStack.use(
|
|
96
|
-
this.middlewareStack.use(
|
|
97
|
-
httpAuthSchemeParametersProvider:
|
|
98
|
-
identityProviderConfigProvider: async (config) => new
|
|
92
|
+
this.middlewareStack.use(getSchemaSerdePlugin(this.config));
|
|
93
|
+
this.middlewareStack.use(getUserAgentPlugin(this.config));
|
|
94
|
+
this.middlewareStack.use(getRetryPlugin(this.config));
|
|
95
|
+
this.middlewareStack.use(getContentLengthPlugin(this.config));
|
|
96
|
+
this.middlewareStack.use(getHostHeaderPlugin(this.config));
|
|
97
|
+
this.middlewareStack.use(getLoggerPlugin(this.config));
|
|
98
|
+
this.middlewareStack.use(getRecursionDetectionPlugin(this.config));
|
|
99
|
+
this.middlewareStack.use(getHttpAuthSchemeEndpointRuleSetPlugin(this.config, {
|
|
100
|
+
httpAuthSchemeParametersProvider: defaultPartnerCentralChannelHttpAuthSchemeParametersProvider,
|
|
101
|
+
identityProviderConfigProvider: async (config) => new DefaultIdentityProviderConfig({
|
|
99
102
|
"aws.auth#sigv4": config.credentials,
|
|
100
103
|
"aws.auth#sigv4a": config.credentials,
|
|
101
104
|
}),
|
|
102
105
|
}));
|
|
103
|
-
this.middlewareStack.use(
|
|
106
|
+
this.middlewareStack.use(getHttpSigningPlugin(this.config));
|
|
104
107
|
}
|
|
105
108
|
destroy() {
|
|
106
109
|
super.destroy();
|
|
107
110
|
}
|
|
108
111
|
}
|
|
109
112
|
|
|
110
|
-
class AcceptChannelHandshakeCommand extends
|
|
113
|
+
class AcceptChannelHandshakeCommand extends Command
|
|
111
114
|
.classBuilder()
|
|
112
115
|
.ep(commonParams)
|
|
113
116
|
.m(function (Command, cs, config, o) {
|
|
114
|
-
return [
|
|
117
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
115
118
|
})
|
|
116
119
|
.s("PartnerCentralChannel", "AcceptChannelHandshake", {})
|
|
117
120
|
.n("PartnerCentralChannelClient", "AcceptChannelHandshakeCommand")
|
|
118
|
-
.sc(
|
|
121
|
+
.sc(AcceptChannelHandshake$)
|
|
119
122
|
.build() {
|
|
120
123
|
}
|
|
121
124
|
|
|
122
|
-
class CancelChannelHandshakeCommand extends
|
|
125
|
+
class CancelChannelHandshakeCommand extends Command
|
|
123
126
|
.classBuilder()
|
|
124
127
|
.ep(commonParams)
|
|
125
128
|
.m(function (Command, cs, config, o) {
|
|
126
|
-
return [
|
|
129
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
127
130
|
})
|
|
128
131
|
.s("PartnerCentralChannel", "CancelChannelHandshake", {})
|
|
129
132
|
.n("PartnerCentralChannelClient", "CancelChannelHandshakeCommand")
|
|
130
|
-
.sc(
|
|
133
|
+
.sc(CancelChannelHandshake$)
|
|
131
134
|
.build() {
|
|
132
135
|
}
|
|
133
136
|
|
|
134
|
-
class CreateChannelHandshakeCommand extends
|
|
137
|
+
class CreateChannelHandshakeCommand extends Command
|
|
135
138
|
.classBuilder()
|
|
136
139
|
.ep(commonParams)
|
|
137
140
|
.m(function (Command, cs, config, o) {
|
|
138
|
-
return [
|
|
141
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
139
142
|
})
|
|
140
143
|
.s("PartnerCentralChannel", "CreateChannelHandshake", {})
|
|
141
144
|
.n("PartnerCentralChannelClient", "CreateChannelHandshakeCommand")
|
|
142
|
-
.sc(
|
|
145
|
+
.sc(CreateChannelHandshake$)
|
|
143
146
|
.build() {
|
|
144
147
|
}
|
|
145
148
|
|
|
146
|
-
class CreateProgramManagementAccountCommand extends
|
|
149
|
+
class CreateProgramManagementAccountCommand extends Command
|
|
147
150
|
.classBuilder()
|
|
148
151
|
.ep(commonParams)
|
|
149
152
|
.m(function (Command, cs, config, o) {
|
|
150
|
-
return [
|
|
153
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
151
154
|
})
|
|
152
155
|
.s("PartnerCentralChannel", "CreateProgramManagementAccount", {})
|
|
153
156
|
.n("PartnerCentralChannelClient", "CreateProgramManagementAccountCommand")
|
|
154
|
-
.sc(
|
|
157
|
+
.sc(CreateProgramManagementAccount$)
|
|
155
158
|
.build() {
|
|
156
159
|
}
|
|
157
160
|
|
|
158
|
-
class CreateRelationshipCommand extends
|
|
161
|
+
class CreateRelationshipCommand extends Command
|
|
159
162
|
.classBuilder()
|
|
160
163
|
.ep(commonParams)
|
|
161
164
|
.m(function (Command, cs, config, o) {
|
|
162
|
-
return [
|
|
165
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
163
166
|
})
|
|
164
167
|
.s("PartnerCentralChannel", "CreateRelationship", {})
|
|
165
168
|
.n("PartnerCentralChannelClient", "CreateRelationshipCommand")
|
|
166
|
-
.sc(
|
|
169
|
+
.sc(CreateRelationship$)
|
|
167
170
|
.build() {
|
|
168
171
|
}
|
|
169
172
|
|
|
170
|
-
class DeleteProgramManagementAccountCommand extends
|
|
173
|
+
class DeleteProgramManagementAccountCommand extends Command
|
|
171
174
|
.classBuilder()
|
|
172
175
|
.ep(commonParams)
|
|
173
176
|
.m(function (Command, cs, config, o) {
|
|
174
|
-
return [
|
|
177
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
175
178
|
})
|
|
176
179
|
.s("PartnerCentralChannel", "DeleteProgramManagementAccount", {})
|
|
177
180
|
.n("PartnerCentralChannelClient", "DeleteProgramManagementAccountCommand")
|
|
178
|
-
.sc(
|
|
181
|
+
.sc(DeleteProgramManagementAccount$)
|
|
179
182
|
.build() {
|
|
180
183
|
}
|
|
181
184
|
|
|
182
|
-
class DeleteRelationshipCommand extends
|
|
185
|
+
class DeleteRelationshipCommand extends Command
|
|
183
186
|
.classBuilder()
|
|
184
187
|
.ep(commonParams)
|
|
185
188
|
.m(function (Command, cs, config, o) {
|
|
186
|
-
return [
|
|
189
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
187
190
|
})
|
|
188
191
|
.s("PartnerCentralChannel", "DeleteRelationship", {})
|
|
189
192
|
.n("PartnerCentralChannelClient", "DeleteRelationshipCommand")
|
|
190
|
-
.sc(
|
|
193
|
+
.sc(DeleteRelationship$)
|
|
191
194
|
.build() {
|
|
192
195
|
}
|
|
193
196
|
|
|
194
|
-
class GetRelationshipCommand extends
|
|
197
|
+
class GetRelationshipCommand extends Command
|
|
195
198
|
.classBuilder()
|
|
196
199
|
.ep(commonParams)
|
|
197
200
|
.m(function (Command, cs, config, o) {
|
|
198
|
-
return [
|
|
201
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
199
202
|
})
|
|
200
203
|
.s("PartnerCentralChannel", "GetRelationship", {})
|
|
201
204
|
.n("PartnerCentralChannelClient", "GetRelationshipCommand")
|
|
202
|
-
.sc(
|
|
205
|
+
.sc(GetRelationship$)
|
|
203
206
|
.build() {
|
|
204
207
|
}
|
|
205
208
|
|
|
206
|
-
class ListChannelHandshakesCommand extends
|
|
209
|
+
class ListChannelHandshakesCommand extends Command
|
|
207
210
|
.classBuilder()
|
|
208
211
|
.ep(commonParams)
|
|
209
212
|
.m(function (Command, cs, config, o) {
|
|
210
|
-
return [
|
|
213
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
211
214
|
})
|
|
212
215
|
.s("PartnerCentralChannel", "ListChannelHandshakes", {})
|
|
213
216
|
.n("PartnerCentralChannelClient", "ListChannelHandshakesCommand")
|
|
214
|
-
.sc(
|
|
217
|
+
.sc(ListChannelHandshakes$)
|
|
215
218
|
.build() {
|
|
216
219
|
}
|
|
217
220
|
|
|
218
|
-
class ListProgramManagementAccountsCommand extends
|
|
221
|
+
class ListProgramManagementAccountsCommand extends Command
|
|
219
222
|
.classBuilder()
|
|
220
223
|
.ep(commonParams)
|
|
221
224
|
.m(function (Command, cs, config, o) {
|
|
222
|
-
return [
|
|
225
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
223
226
|
})
|
|
224
227
|
.s("PartnerCentralChannel", "ListProgramManagementAccounts", {})
|
|
225
228
|
.n("PartnerCentralChannelClient", "ListProgramManagementAccountsCommand")
|
|
226
|
-
.sc(
|
|
229
|
+
.sc(ListProgramManagementAccounts$)
|
|
227
230
|
.build() {
|
|
228
231
|
}
|
|
229
232
|
|
|
230
|
-
class ListRelationshipsCommand extends
|
|
233
|
+
class ListRelationshipsCommand extends Command
|
|
231
234
|
.classBuilder()
|
|
232
235
|
.ep(commonParams)
|
|
233
236
|
.m(function (Command, cs, config, o) {
|
|
234
|
-
return [
|
|
237
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
235
238
|
})
|
|
236
239
|
.s("PartnerCentralChannel", "ListRelationships", {})
|
|
237
240
|
.n("PartnerCentralChannelClient", "ListRelationshipsCommand")
|
|
238
|
-
.sc(
|
|
241
|
+
.sc(ListRelationships$)
|
|
239
242
|
.build() {
|
|
240
243
|
}
|
|
241
244
|
|
|
242
|
-
class ListTagsForResourceCommand extends
|
|
245
|
+
class ListTagsForResourceCommand extends Command
|
|
243
246
|
.classBuilder()
|
|
244
247
|
.ep(commonParams)
|
|
245
248
|
.m(function (Command, cs, config, o) {
|
|
246
|
-
return [
|
|
249
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
247
250
|
})
|
|
248
251
|
.s("PartnerCentralChannel", "ListTagsForResource", {})
|
|
249
252
|
.n("PartnerCentralChannelClient", "ListTagsForResourceCommand")
|
|
250
|
-
.sc(
|
|
253
|
+
.sc(ListTagsForResource$)
|
|
251
254
|
.build() {
|
|
252
255
|
}
|
|
253
256
|
|
|
254
|
-
class RejectChannelHandshakeCommand extends
|
|
257
|
+
class RejectChannelHandshakeCommand extends Command
|
|
255
258
|
.classBuilder()
|
|
256
259
|
.ep(commonParams)
|
|
257
260
|
.m(function (Command, cs, config, o) {
|
|
258
|
-
return [
|
|
261
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
259
262
|
})
|
|
260
263
|
.s("PartnerCentralChannel", "RejectChannelHandshake", {})
|
|
261
264
|
.n("PartnerCentralChannelClient", "RejectChannelHandshakeCommand")
|
|
262
|
-
.sc(
|
|
265
|
+
.sc(RejectChannelHandshake$)
|
|
263
266
|
.build() {
|
|
264
267
|
}
|
|
265
268
|
|
|
266
|
-
class TagResourceCommand extends
|
|
269
|
+
class TagResourceCommand extends Command
|
|
267
270
|
.classBuilder()
|
|
268
271
|
.ep(commonParams)
|
|
269
272
|
.m(function (Command, cs, config, o) {
|
|
270
|
-
return [
|
|
273
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
271
274
|
})
|
|
272
275
|
.s("PartnerCentralChannel", "TagResource", {})
|
|
273
276
|
.n("PartnerCentralChannelClient", "TagResourceCommand")
|
|
274
|
-
.sc(
|
|
277
|
+
.sc(TagResource$)
|
|
275
278
|
.build() {
|
|
276
279
|
}
|
|
277
280
|
|
|
278
|
-
class UntagResourceCommand extends
|
|
281
|
+
class UntagResourceCommand extends Command
|
|
279
282
|
.classBuilder()
|
|
280
283
|
.ep(commonParams)
|
|
281
284
|
.m(function (Command, cs, config, o) {
|
|
282
|
-
return [
|
|
285
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
283
286
|
})
|
|
284
287
|
.s("PartnerCentralChannel", "UntagResource", {})
|
|
285
288
|
.n("PartnerCentralChannelClient", "UntagResourceCommand")
|
|
286
|
-
.sc(
|
|
289
|
+
.sc(UntagResource$)
|
|
287
290
|
.build() {
|
|
288
291
|
}
|
|
289
292
|
|
|
290
|
-
class UpdateProgramManagementAccountCommand extends
|
|
293
|
+
class UpdateProgramManagementAccountCommand extends Command
|
|
291
294
|
.classBuilder()
|
|
292
295
|
.ep(commonParams)
|
|
293
296
|
.m(function (Command, cs, config, o) {
|
|
294
|
-
return [
|
|
297
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
295
298
|
})
|
|
296
299
|
.s("PartnerCentralChannel", "UpdateProgramManagementAccount", {})
|
|
297
300
|
.n("PartnerCentralChannelClient", "UpdateProgramManagementAccountCommand")
|
|
298
|
-
.sc(
|
|
301
|
+
.sc(UpdateProgramManagementAccount$)
|
|
299
302
|
.build() {
|
|
300
303
|
}
|
|
301
304
|
|
|
302
|
-
class UpdateRelationshipCommand extends
|
|
305
|
+
class UpdateRelationshipCommand extends Command
|
|
303
306
|
.classBuilder()
|
|
304
307
|
.ep(commonParams)
|
|
305
308
|
.m(function (Command, cs, config, o) {
|
|
306
|
-
return [
|
|
309
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
307
310
|
})
|
|
308
311
|
.s("PartnerCentralChannel", "UpdateRelationship", {})
|
|
309
312
|
.n("PartnerCentralChannelClient", "UpdateRelationshipCommand")
|
|
310
|
-
.sc(
|
|
313
|
+
.sc(UpdateRelationship$)
|
|
311
314
|
.build() {
|
|
312
315
|
}
|
|
313
316
|
|
|
314
|
-
const paginateListChannelHandshakes =
|
|
317
|
+
const paginateListChannelHandshakes = createPaginator(PartnerCentralChannelClient, ListChannelHandshakesCommand, "nextToken", "nextToken", "maxResults");
|
|
315
318
|
|
|
316
|
-
const paginateListProgramManagementAccounts =
|
|
319
|
+
const paginateListProgramManagementAccounts = createPaginator(PartnerCentralChannelClient, ListProgramManagementAccountsCommand, "nextToken", "nextToken", "maxResults");
|
|
317
320
|
|
|
318
|
-
const paginateListRelationships =
|
|
321
|
+
const paginateListRelationships = createPaginator(PartnerCentralChannelClient, ListRelationshipsCommand, "nextToken", "nextToken", "maxResults");
|
|
319
322
|
|
|
320
323
|
const commands = {
|
|
321
324
|
AcceptChannelHandshakeCommand,
|
|
@@ -343,7 +346,7 @@ const paginators = {
|
|
|
343
346
|
};
|
|
344
347
|
class PartnerCentralChannel extends PartnerCentralChannelClient {
|
|
345
348
|
}
|
|
346
|
-
|
|
349
|
+
createAggregatedClient(commands, PartnerCentralChannel, { paginators });
|
|
347
350
|
|
|
348
351
|
const HandshakeStatus = {
|
|
349
352
|
ACCEPTED: "ACCEPTED",
|
|
@@ -422,9 +425,6 @@ const ListRelationshipsSortName = {
|
|
|
422
425
|
UPDATED_AT: "UpdatedAt",
|
|
423
426
|
};
|
|
424
427
|
|
|
425
|
-
exports.$Command = client.Command;
|
|
426
|
-
exports.__Client = client.Client;
|
|
427
|
-
exports.PartnerCentralChannelServiceException = PartnerCentralChannelServiceException.PartnerCentralChannelServiceException;
|
|
428
428
|
exports.AcceptChannelHandshakeCommand = AcceptChannelHandshakeCommand;
|
|
429
429
|
exports.AssociationType = AssociationType;
|
|
430
430
|
exports.CancelChannelHandshakeCommand = CancelChannelHandshakeCommand;
|
|
@@ -465,23 +465,3 @@ exports.ValidationExceptionReason = ValidationExceptionReason;
|
|
|
465
465
|
exports.paginateListChannelHandshakes = paginateListChannelHandshakes;
|
|
466
466
|
exports.paginateListProgramManagementAccounts = paginateListProgramManagementAccounts;
|
|
467
467
|
exports.paginateListRelationships = paginateListRelationships;
|
|
468
|
-
Object.prototype.hasOwnProperty.call(schemas_0, '__proto__') &&
|
|
469
|
-
!Object.prototype.hasOwnProperty.call(exports, '__proto__') &&
|
|
470
|
-
Object.defineProperty(exports, '__proto__', {
|
|
471
|
-
enumerable: true,
|
|
472
|
-
value: schemas_0['__proto__']
|
|
473
|
-
});
|
|
474
|
-
|
|
475
|
-
Object.keys(schemas_0).forEach(function (k) {
|
|
476
|
-
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) exports[k] = schemas_0[k];
|
|
477
|
-
});
|
|
478
|
-
Object.prototype.hasOwnProperty.call(errors, '__proto__') &&
|
|
479
|
-
!Object.prototype.hasOwnProperty.call(exports, '__proto__') &&
|
|
480
|
-
Object.defineProperty(exports, '__proto__', {
|
|
481
|
-
enumerable: true,
|
|
482
|
-
value: errors['__proto__']
|
|
483
|
-
});
|
|
484
|
-
|
|
485
|
-
Object.keys(errors).forEach(function (k) {
|
|
486
|
-
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) exports[k] = errors[k];
|
|
487
|
-
});
|
|
@@ -1,12 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
exports.PartnerCentralChannelServiceException =
|
|
4
|
-
const client_1 = require("@smithy/core/client");
|
|
5
|
-
Object.defineProperty(exports, "__ServiceException", { enumerable: true, get: function () { return client_1.ServiceException; } });
|
|
6
|
-
class PartnerCentralChannelServiceException extends client_1.ServiceException {
|
|
1
|
+
const { ServiceException: __ServiceException } = require("@smithy/core/client");
|
|
2
|
+
exports.__ServiceException = __ServiceException;
|
|
3
|
+
exports.PartnerCentralChannelServiceException = class PartnerCentralChannelServiceException extends __ServiceException {
|
|
7
4
|
constructor(options) {
|
|
8
5
|
super(options);
|
|
9
6
|
Object.setPrototypeOf(this, PartnerCentralChannelServiceException.prototype);
|
|
10
7
|
}
|
|
11
|
-
}
|
|
12
|
-
exports.PartnerCentralChannelServiceException = PartnerCentralChannelServiceException;
|
|
8
|
+
};
|
|
@@ -1,8 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
exports.ServiceQuotaExceededException = exports.ConflictException = exports.ValidationException = exports.ThrottlingException = exports.ResourceNotFoundException = exports.InternalServerException = exports.AccessDeniedException = void 0;
|
|
4
|
-
const PartnerCentralChannelServiceException_1 = require("./PartnerCentralChannelServiceException");
|
|
5
|
-
class AccessDeniedException extends PartnerCentralChannelServiceException_1.PartnerCentralChannelServiceException {
|
|
1
|
+
const { PartnerCentralChannelServiceException: __BaseException } = require("./PartnerCentralChannelServiceException");
|
|
2
|
+
exports.AccessDeniedException = class AccessDeniedException extends __BaseException {
|
|
6
3
|
name = "AccessDeniedException";
|
|
7
4
|
$fault = "client";
|
|
8
5
|
reason;
|
|
@@ -15,9 +12,8 @@ class AccessDeniedException extends PartnerCentralChannelServiceException_1.Part
|
|
|
15
12
|
Object.setPrototypeOf(this, AccessDeniedException.prototype);
|
|
16
13
|
this.reason = opts.reason;
|
|
17
14
|
}
|
|
18
|
-
}
|
|
19
|
-
exports.
|
|
20
|
-
class InternalServerException extends PartnerCentralChannelServiceException_1.PartnerCentralChannelServiceException {
|
|
15
|
+
};
|
|
16
|
+
exports.InternalServerException = class InternalServerException extends __BaseException {
|
|
21
17
|
name = "InternalServerException";
|
|
22
18
|
$fault = "server";
|
|
23
19
|
$retryable = {};
|
|
@@ -29,9 +25,8 @@ class InternalServerException extends PartnerCentralChannelServiceException_1.Pa
|
|
|
29
25
|
});
|
|
30
26
|
Object.setPrototypeOf(this, InternalServerException.prototype);
|
|
31
27
|
}
|
|
32
|
-
}
|
|
33
|
-
exports.
|
|
34
|
-
class ResourceNotFoundException extends PartnerCentralChannelServiceException_1.PartnerCentralChannelServiceException {
|
|
28
|
+
};
|
|
29
|
+
exports.ResourceNotFoundException = class ResourceNotFoundException extends __BaseException {
|
|
35
30
|
name = "ResourceNotFoundException";
|
|
36
31
|
$fault = "client";
|
|
37
32
|
resourceId;
|
|
@@ -46,9 +41,8 @@ class ResourceNotFoundException extends PartnerCentralChannelServiceException_1.
|
|
|
46
41
|
this.resourceId = opts.resourceId;
|
|
47
42
|
this.resourceType = opts.resourceType;
|
|
48
43
|
}
|
|
49
|
-
}
|
|
50
|
-
exports.
|
|
51
|
-
class ThrottlingException extends PartnerCentralChannelServiceException_1.PartnerCentralChannelServiceException {
|
|
44
|
+
};
|
|
45
|
+
exports.ThrottlingException = class ThrottlingException extends __BaseException {
|
|
52
46
|
name = "ThrottlingException";
|
|
53
47
|
$fault = "client";
|
|
54
48
|
$retryable = {
|
|
@@ -66,9 +60,8 @@ class ThrottlingException extends PartnerCentralChannelServiceException_1.Partne
|
|
|
66
60
|
this.serviceCode = opts.serviceCode;
|
|
67
61
|
this.quotaCode = opts.quotaCode;
|
|
68
62
|
}
|
|
69
|
-
}
|
|
70
|
-
exports.
|
|
71
|
-
class ValidationException extends PartnerCentralChannelServiceException_1.PartnerCentralChannelServiceException {
|
|
63
|
+
};
|
|
64
|
+
exports.ValidationException = class ValidationException extends __BaseException {
|
|
72
65
|
name = "ValidationException";
|
|
73
66
|
$fault = "client";
|
|
74
67
|
reason;
|
|
@@ -83,9 +76,8 @@ class ValidationException extends PartnerCentralChannelServiceException_1.Partne
|
|
|
83
76
|
this.reason = opts.reason;
|
|
84
77
|
this.fieldList = opts.fieldList;
|
|
85
78
|
}
|
|
86
|
-
}
|
|
87
|
-
exports.
|
|
88
|
-
class ConflictException extends PartnerCentralChannelServiceException_1.PartnerCentralChannelServiceException {
|
|
79
|
+
};
|
|
80
|
+
exports.ConflictException = class ConflictException extends __BaseException {
|
|
89
81
|
name = "ConflictException";
|
|
90
82
|
$fault = "client";
|
|
91
83
|
resourceId;
|
|
@@ -100,9 +92,8 @@ class ConflictException extends PartnerCentralChannelServiceException_1.PartnerC
|
|
|
100
92
|
this.resourceId = opts.resourceId;
|
|
101
93
|
this.resourceType = opts.resourceType;
|
|
102
94
|
}
|
|
103
|
-
}
|
|
104
|
-
exports.
|
|
105
|
-
class ServiceQuotaExceededException extends PartnerCentralChannelServiceException_1.PartnerCentralChannelServiceException {
|
|
95
|
+
};
|
|
96
|
+
exports.ServiceQuotaExceededException = class ServiceQuotaExceededException extends __BaseException {
|
|
106
97
|
name = "ServiceQuotaExceededException";
|
|
107
98
|
$fault = "client";
|
|
108
99
|
$retryable = {};
|
|
@@ -120,5 +111,4 @@ class ServiceQuotaExceededException extends PartnerCentralChannelServiceExceptio
|
|
|
120
111
|
this.resourceType = opts.resourceType;
|
|
121
112
|
this.quotaCode = opts.quotaCode;
|
|
122
113
|
}
|
|
123
|
-
}
|
|
124
|
-
exports.ServiceQuotaExceededException = ServiceQuotaExceededException;
|
|
114
|
+
};
|