@aws-sdk/client-elb-proxy 0.0.0-stage → 3.1179.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 +311 -2
- package/dist-cjs/index.js +1474 -0
- package/dist-es/ELBProxy.js +61 -0
- package/dist-es/ELBProxyClient.js +47 -0
- package/dist-es/auth/httpAuthExtensionConfiguration.js +38 -0
- package/dist-es/auth/httpAuthSchemeProvider.js +40 -0
- package/dist-es/commandBuilder.js +6 -0
- package/dist-es/commands/AssociateCertificateCommand.js +4 -0
- package/dist-es/commands/CreateProxyCommand.js +4 -0
- package/dist-es/commands/DeleteProxyCommand.js +4 -0
- package/dist-es/commands/DisassociateCertificateCommand.js +4 -0
- package/dist-es/commands/GetProxyAttributesCommand.js +4 -0
- package/dist-es/commands/GetProxyCommand.js +4 -0
- package/dist-es/commands/GetProxyConfigurationContentsCommand.js +4 -0
- package/dist-es/commands/GetProxyUpdateCommand.js +4 -0
- package/dist-es/commands/ListCertificateAssociationsCommand.js +4 -0
- package/dist-es/commands/ListProxiesCommand.js +4 -0
- package/dist-es/commands/ListProxyUpdatesCommand.js +4 -0
- package/dist-es/commands/ListProxyVersionsCommand.js +4 -0
- package/dist-es/commands/ListTagsForResourceCommand.js +4 -0
- package/dist-es/commands/TagResourceCommand.js +4 -0
- package/dist-es/commands/UntagResourceCommand.js +4 -0
- package/dist-es/commands/UpdateProxyAttributesCommand.js +4 -0
- package/dist-es/commands/UpdateProxyConfigurationCommand.js +4 -0
- package/dist-es/commands/UpdateProxyNetworkConfigurationCommand.js +4 -0
- package/dist-es/commands/index.js +18 -0
- package/dist-es/endpoint/EndpointParameters.js +11 -0
- package/dist-es/endpoint/bdd.js +29 -0
- package/dist-es/endpoint/endpointResolver.js +14 -0
- package/dist-es/extensionConfiguration.js +1 -0
- package/dist-es/index.js +11 -0
- package/dist-es/models/ELBProxyServiceException.js +9 -0
- package/dist-es/models/enums.js +45 -0
- package/dist-es/models/errors.js +130 -0
- package/dist-es/models/models_0.js +1 -0
- package/dist-es/pagination/Interfaces.js +1 -0
- package/dist-es/pagination/ListCertificateAssociationsPaginator.js +4 -0
- package/dist-es/pagination/ListProxiesPaginator.js +4 -0
- package/dist-es/pagination/ListProxyUpdatesPaginator.js +4 -0
- package/dist-es/pagination/ListProxyVersionsPaginator.js +4 -0
- package/dist-es/pagination/index.js +5 -0
- package/dist-es/runtimeConfig.browser.js +29 -0
- package/dist-es/runtimeConfig.js +44 -0
- package/dist-es/runtimeConfig.native.js +9 -0
- package/dist-es/runtimeConfig.shared.js +40 -0
- package/dist-es/runtimeExtensions.js +9 -0
- package/dist-es/schemas/schemas_0.js +655 -0
- package/dist-es/waiters/index.js +3 -0
- package/dist-es/waiters/waitForProxyActive.js +49 -0
- package/dist-es/waiters/waitForProxyDeleted.js +25 -0
- package/dist-es/waiters/waitForProxyUpdateComplete.js +67 -0
- package/dist-types/ELBProxy.d.ts +196 -0
- package/dist-types/ELBProxyClient.d.ts +210 -0
- package/dist-types/auth/httpAuthExtensionConfiguration.d.ts +29 -0
- package/dist-types/auth/httpAuthSchemeProvider.d.ts +75 -0
- package/dist-types/commandBuilder.d.ts +18 -0
- package/dist-types/commands/AssociateCertificateCommand.d.ts +128 -0
- package/dist-types/commands/CreateProxyCommand.d.ts +280 -0
- package/dist-types/commands/DeleteProxyCommand.d.ts +114 -0
- package/dist-types/commands/DisassociateCertificateCommand.d.ts +125 -0
- package/dist-types/commands/GetProxyAttributesCommand.d.ts +134 -0
- package/dist-types/commands/GetProxyCommand.d.ts +186 -0
- package/dist-types/commands/GetProxyConfigurationContentsCommand.d.ts +120 -0
- package/dist-types/commands/GetProxyUpdateCommand.d.ts +140 -0
- package/dist-types/commands/ListCertificateAssociationsCommand.d.ts +127 -0
- package/dist-types/commands/ListProxiesCommand.d.ts +127 -0
- package/dist-types/commands/ListProxyUpdatesCommand.d.ts +124 -0
- package/dist-types/commands/ListProxyVersionsCommand.d.ts +112 -0
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +103 -0
- package/dist-types/commands/TagResourceCommand.d.ts +107 -0
- package/dist-types/commands/UntagResourceCommand.d.ts +103 -0
- package/dist-types/commands/UpdateProxyAttributesCommand.d.ts +299 -0
- package/dist-types/commands/UpdateProxyConfigurationCommand.d.ts +128 -0
- package/dist-types/commands/UpdateProxyNetworkConfigurationCommand.d.ts +204 -0
- package/dist-types/commands/index.d.ts +18 -0
- package/dist-types/endpoint/EndpointParameters.d.ts +44 -0
- package/dist-types/endpoint/bdd.d.ts +2 -0
- package/dist-types/endpoint/endpointResolver.d.ts +8 -0
- package/dist-types/extensionConfiguration.d.ts +9 -0
- package/dist-types/index.d.ts +24 -0
- package/dist-types/models/ELBProxyServiceException.d.ts +15 -0
- package/dist-types/models/enums.d.ts +195 -0
- package/dist-types/models/errors.d.ts +143 -0
- package/dist-types/models/models_0.d.ts +1297 -0
- package/dist-types/pagination/Interfaces.d.ts +8 -0
- package/dist-types/pagination/ListCertificateAssociationsPaginator.d.ts +7 -0
- package/dist-types/pagination/ListProxiesPaginator.d.ts +7 -0
- package/dist-types/pagination/ListProxyUpdatesPaginator.d.ts +7 -0
- package/dist-types/pagination/ListProxyVersionsPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +5 -0
- package/dist-types/runtimeConfig.browser.d.ts +57 -0
- package/dist-types/runtimeConfig.d.ts +58 -0
- package/dist-types/runtimeConfig.native.d.ts +56 -0
- package/dist-types/runtimeConfig.shared.d.ts +28 -0
- package/dist-types/runtimeExtensions.d.ts +17 -0
- package/dist-types/schemas/schemas_0.d.ts +99 -0
- package/dist-types/ts3.4/ELBProxy.d.ts +351 -0
- package/dist-types/ts3.4/ELBProxyClient.d.ts +193 -0
- package/dist-types/ts3.4/auth/httpAuthExtensionConfiguration.d.ts +25 -0
- package/dist-types/ts3.4/auth/httpAuthSchemeProvider.d.ts +43 -0
- package/dist-types/ts3.4/commandBuilder.d.ts +40 -0
- package/dist-types/ts3.4/commands/AssociateCertificateCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/CreateProxyCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/DeleteProxyCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/DisassociateCertificateCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/GetProxyAttributesCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/GetProxyCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/GetProxyConfigurationContentsCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/GetProxyUpdateCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/ListCertificateAssociationsCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/ListProxiesCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/ListProxyUpdatesCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/ListProxyVersionsCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/UpdateProxyAttributesCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/UpdateProxyConfigurationCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/UpdateProxyNetworkConfigurationCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/index.d.ts +18 -0
- package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +45 -0
- package/dist-types/ts3.4/endpoint/bdd.d.ts +2 -0
- package/dist-types/ts3.4/endpoint/endpointResolver.d.ts +8 -0
- package/dist-types/ts3.4/extensionConfiguration.d.ts +10 -0
- package/dist-types/ts3.4/index.d.ts +14 -0
- package/dist-types/ts3.4/models/ELBProxyServiceException.d.ts +10 -0
- package/dist-types/ts3.4/models/enums.d.ts +58 -0
- package/dist-types/ts3.4/models/errors.d.ts +64 -0
- package/dist-types/ts3.4/models/models_0.d.ts +324 -0
- package/dist-types/ts3.4/pagination/Interfaces.d.ts +5 -0
- package/dist-types/ts3.4/pagination/ListCertificateAssociationsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListProxiesPaginator.d.ts +8 -0
- package/dist-types/ts3.4/pagination/ListProxyUpdatesPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListProxyVersionsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +5 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +93 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +96 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +97 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +31 -0
- package/dist-types/ts3.4/runtimeExtensions.d.ts +11 -0
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +99 -0
- package/dist-types/ts3.4/waiters/index.d.ts +3 -0
- package/dist-types/ts3.4/waiters/waitForProxyActive.d.ts +12 -0
- package/dist-types/ts3.4/waiters/waitForProxyDeleted.d.ts +13 -0
- package/dist-types/ts3.4/waiters/waitForProxyUpdateComplete.d.ts +15 -0
- package/dist-types/waiters/index.d.ts +3 -0
- package/dist-types/waiters/waitForProxyActive.d.ts +15 -0
- package/dist-types/waiters/waitForProxyDeleted.d.ts +16 -0
- package/dist-types/waiters/waitForProxyUpdateComplete.d.ts +15 -0
- package/package.json +67 -4
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { createAggregatedClient } from "@smithy/core/client";
|
|
2
|
+
import { AssociateCertificateCommand, } from "./commands/AssociateCertificateCommand";
|
|
3
|
+
import { CreateProxyCommand, } from "./commands/CreateProxyCommand";
|
|
4
|
+
import { DeleteProxyCommand, } from "./commands/DeleteProxyCommand";
|
|
5
|
+
import { DisassociateCertificateCommand, } from "./commands/DisassociateCertificateCommand";
|
|
6
|
+
import { GetProxyAttributesCommand, } from "./commands/GetProxyAttributesCommand";
|
|
7
|
+
import { GetProxyCommand } from "./commands/GetProxyCommand";
|
|
8
|
+
import { GetProxyConfigurationContentsCommand, } from "./commands/GetProxyConfigurationContentsCommand";
|
|
9
|
+
import { GetProxyUpdateCommand, } from "./commands/GetProxyUpdateCommand";
|
|
10
|
+
import { ListCertificateAssociationsCommand, } from "./commands/ListCertificateAssociationsCommand";
|
|
11
|
+
import { ListProxiesCommand, } from "./commands/ListProxiesCommand";
|
|
12
|
+
import { ListProxyUpdatesCommand, } from "./commands/ListProxyUpdatesCommand";
|
|
13
|
+
import { ListProxyVersionsCommand, } from "./commands/ListProxyVersionsCommand";
|
|
14
|
+
import { ListTagsForResourceCommand, } from "./commands/ListTagsForResourceCommand";
|
|
15
|
+
import { TagResourceCommand, } from "./commands/TagResourceCommand";
|
|
16
|
+
import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
|
|
17
|
+
import { UpdateProxyAttributesCommand, } from "./commands/UpdateProxyAttributesCommand";
|
|
18
|
+
import { UpdateProxyConfigurationCommand, } from "./commands/UpdateProxyConfigurationCommand";
|
|
19
|
+
import { UpdateProxyNetworkConfigurationCommand, } from "./commands/UpdateProxyNetworkConfigurationCommand";
|
|
20
|
+
import { ELBProxyClient } from "./ELBProxyClient";
|
|
21
|
+
import { paginateListCertificateAssociations } from "./pagination/ListCertificateAssociationsPaginator";
|
|
22
|
+
import { paginateListProxies } from "./pagination/ListProxiesPaginator";
|
|
23
|
+
import { paginateListProxyUpdates } from "./pagination/ListProxyUpdatesPaginator";
|
|
24
|
+
import { paginateListProxyVersions } from "./pagination/ListProxyVersionsPaginator";
|
|
25
|
+
import { waitUntilProxyActive } from "./waiters/waitForProxyActive";
|
|
26
|
+
import { waitUntilProxyDeleted } from "./waiters/waitForProxyDeleted";
|
|
27
|
+
import { waitUntilProxyUpdateComplete } from "./waiters/waitForProxyUpdateComplete";
|
|
28
|
+
const commands = {
|
|
29
|
+
AssociateCertificateCommand,
|
|
30
|
+
CreateProxyCommand,
|
|
31
|
+
DeleteProxyCommand,
|
|
32
|
+
DisassociateCertificateCommand,
|
|
33
|
+
GetProxyCommand,
|
|
34
|
+
GetProxyAttributesCommand,
|
|
35
|
+
GetProxyConfigurationContentsCommand,
|
|
36
|
+
GetProxyUpdateCommand,
|
|
37
|
+
ListCertificateAssociationsCommand,
|
|
38
|
+
ListProxiesCommand,
|
|
39
|
+
ListProxyUpdatesCommand,
|
|
40
|
+
ListProxyVersionsCommand,
|
|
41
|
+
ListTagsForResourceCommand,
|
|
42
|
+
TagResourceCommand,
|
|
43
|
+
UntagResourceCommand,
|
|
44
|
+
UpdateProxyAttributesCommand,
|
|
45
|
+
UpdateProxyConfigurationCommand,
|
|
46
|
+
UpdateProxyNetworkConfigurationCommand,
|
|
47
|
+
};
|
|
48
|
+
const paginators = {
|
|
49
|
+
paginateListCertificateAssociations,
|
|
50
|
+
paginateListProxies,
|
|
51
|
+
paginateListProxyUpdates,
|
|
52
|
+
paginateListProxyVersions,
|
|
53
|
+
};
|
|
54
|
+
const waiters = {
|
|
55
|
+
waitUntilProxyActive,
|
|
56
|
+
waitUntilProxyDeleted,
|
|
57
|
+
waitUntilProxyUpdateComplete,
|
|
58
|
+
};
|
|
59
|
+
export class ELBProxy extends ELBProxyClient {
|
|
60
|
+
}
|
|
61
|
+
createAggregatedClient(commands, ELBProxy, { paginators, waiters });
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { getHostHeaderPlugin, getLoggerPlugin, getRecursionDetectionPlugin, getUserAgentPlugin, resolveHostHeaderConfig, resolveUserAgentConfig, } from "@aws-sdk/core/client";
|
|
2
|
+
import { DefaultIdentityProviderConfig, getHttpAuthSchemeEndpointRuleSetPlugin, getHttpSigningPlugin, } from "@smithy/core";
|
|
3
|
+
import { Client as __Client, } from "@smithy/core/client";
|
|
4
|
+
import { resolveRegionConfig } from "@smithy/core/config";
|
|
5
|
+
import { resolveEndpointConfig } from "@smithy/core/endpoints";
|
|
6
|
+
import { getContentLengthPlugin } from "@smithy/core/protocols";
|
|
7
|
+
import { getRetryPlugin, resolveRetryConfig, } from "@smithy/core/retry";
|
|
8
|
+
import { getSchemaSerdePlugin } from "@smithy/core/schema";
|
|
9
|
+
import { defaultELBProxyHttpAuthSchemeParametersProvider, resolveHttpAuthSchemeConfig, } from "./auth/httpAuthSchemeProvider";
|
|
10
|
+
import { resolveClientEndpointParameters, } from "./endpoint/EndpointParameters";
|
|
11
|
+
import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
|
|
12
|
+
import { resolveRuntimeExtensions } from "./runtimeExtensions";
|
|
13
|
+
export { __Client };
|
|
14
|
+
export class ELBProxyClient extends __Client {
|
|
15
|
+
config;
|
|
16
|
+
constructor(...[configuration]) {
|
|
17
|
+
const _config_0 = __getRuntimeConfig(configuration || {});
|
|
18
|
+
super(_config_0);
|
|
19
|
+
this.initConfig = _config_0;
|
|
20
|
+
const _config_1 = resolveClientEndpointParameters(_config_0);
|
|
21
|
+
const _config_2 = resolveUserAgentConfig(_config_1);
|
|
22
|
+
const _config_3 = resolveRetryConfig(_config_2);
|
|
23
|
+
const _config_4 = resolveRegionConfig(_config_3);
|
|
24
|
+
const _config_5 = resolveHostHeaderConfig(_config_4);
|
|
25
|
+
const _config_6 = resolveEndpointConfig(_config_5);
|
|
26
|
+
const _config_7 = resolveHttpAuthSchemeConfig(_config_6);
|
|
27
|
+
const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
|
|
28
|
+
this.config = _config_8;
|
|
29
|
+
this.middlewareStack.use(getSchemaSerdePlugin(this.config));
|
|
30
|
+
this.middlewareStack.use(getUserAgentPlugin(this.config));
|
|
31
|
+
this.middlewareStack.use(getRetryPlugin(this.config));
|
|
32
|
+
this.middlewareStack.use(getContentLengthPlugin(this.config));
|
|
33
|
+
this.middlewareStack.use(getHostHeaderPlugin(this.config));
|
|
34
|
+
this.middlewareStack.use(getLoggerPlugin(this.config));
|
|
35
|
+
this.middlewareStack.use(getRecursionDetectionPlugin(this.config));
|
|
36
|
+
this.middlewareStack.use(getHttpAuthSchemeEndpointRuleSetPlugin(this.config, {
|
|
37
|
+
httpAuthSchemeParametersProvider: defaultELBProxyHttpAuthSchemeParametersProvider,
|
|
38
|
+
identityProviderConfigProvider: async (config) => new DefaultIdentityProviderConfig({
|
|
39
|
+
"aws.auth#sigv4": config.credentials,
|
|
40
|
+
}),
|
|
41
|
+
}));
|
|
42
|
+
this.middlewareStack.use(getHttpSigningPlugin(this.config));
|
|
43
|
+
}
|
|
44
|
+
destroy() {
|
|
45
|
+
super.destroy();
|
|
46
|
+
}
|
|
47
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
export const getHttpAuthExtensionConfiguration = (runtimeConfig) => {
|
|
2
|
+
const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
|
|
3
|
+
let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
|
|
4
|
+
let _credentials = runtimeConfig.credentials;
|
|
5
|
+
return {
|
|
6
|
+
setHttpAuthScheme(httpAuthScheme) {
|
|
7
|
+
const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
|
|
8
|
+
if (index === -1) {
|
|
9
|
+
_httpAuthSchemes.push(httpAuthScheme);
|
|
10
|
+
}
|
|
11
|
+
else {
|
|
12
|
+
_httpAuthSchemes.splice(index, 1, httpAuthScheme);
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
httpAuthSchemes() {
|
|
16
|
+
return _httpAuthSchemes;
|
|
17
|
+
},
|
|
18
|
+
setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
|
|
19
|
+
_httpAuthSchemeProvider = httpAuthSchemeProvider;
|
|
20
|
+
},
|
|
21
|
+
httpAuthSchemeProvider() {
|
|
22
|
+
return _httpAuthSchemeProvider;
|
|
23
|
+
},
|
|
24
|
+
setCredentials(credentials) {
|
|
25
|
+
_credentials = credentials;
|
|
26
|
+
},
|
|
27
|
+
credentials() {
|
|
28
|
+
return _credentials;
|
|
29
|
+
},
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
export const resolveHttpAuthRuntimeConfig = (config) => {
|
|
33
|
+
return {
|
|
34
|
+
httpAuthSchemes: config.httpAuthSchemes(),
|
|
35
|
+
httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
|
|
36
|
+
credentials: config.credentials(),
|
|
37
|
+
};
|
|
38
|
+
};
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { resolveAwsSdkSigV4Config, } from "@aws-sdk/core/httpAuthSchemes";
|
|
2
|
+
import { getSmithyContext, normalizeProvider } from "@smithy/core/client";
|
|
3
|
+
export const defaultELBProxyHttpAuthSchemeParametersProvider = async (config, context, input) => {
|
|
4
|
+
return {
|
|
5
|
+
operation: getSmithyContext(context).operation,
|
|
6
|
+
region: await normalizeProvider(config.region)() || (() => {
|
|
7
|
+
throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
|
|
8
|
+
})(),
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
function createAwsAuthSigv4HttpAuthOption(authParameters) {
|
|
12
|
+
return {
|
|
13
|
+
schemeId: "aws.auth#sigv4",
|
|
14
|
+
signingProperties: {
|
|
15
|
+
name: "elasticloadbalancing",
|
|
16
|
+
region: authParameters.region,
|
|
17
|
+
},
|
|
18
|
+
propertiesExtractor: (config, context) => ({
|
|
19
|
+
signingProperties: {
|
|
20
|
+
config,
|
|
21
|
+
context,
|
|
22
|
+
},
|
|
23
|
+
}),
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
export const defaultELBProxyHttpAuthSchemeProvider = (authParameters) => {
|
|
27
|
+
const options = [];
|
|
28
|
+
switch (authParameters.operation) {
|
|
29
|
+
default: {
|
|
30
|
+
options.push(createAwsAuthSigv4HttpAuthOption(authParameters));
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
return options;
|
|
34
|
+
};
|
|
35
|
+
export const resolveHttpAuthSchemeConfig = (config) => {
|
|
36
|
+
const config_0 = resolveAwsSdkSigV4Config(config);
|
|
37
|
+
return Object.assign(config_0, {
|
|
38
|
+
authSchemePreference: normalizeProvider(config.authSchemePreference ?? []),
|
|
39
|
+
});
|
|
40
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { makeBuilder } from "@smithy/core/client";
|
|
2
|
+
import { getEndpointPlugin } from "@smithy/core/endpoints";
|
|
3
|
+
import { commonParams } from "./endpoint/EndpointParameters";
|
|
4
|
+
export const command = makeBuilder(commonParams, "ELBProxy", "ELBProxyClient", getEndpointPlugin);
|
|
5
|
+
export const _ep0 = {};
|
|
6
|
+
export const _mw0 = (Command, cs, config, o) => [];
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { _ep0, _mw0, command } from "../commandBuilder";
|
|
2
|
+
import { GetProxyConfigurationContents$ } from "../schemas/schemas_0";
|
|
3
|
+
export class GetProxyConfigurationContentsCommand extends command(_ep0, _mw0, "GetProxyConfigurationContents", GetProxyConfigurationContents$) {
|
|
4
|
+
}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { _ep0, _mw0, command } from "../commandBuilder";
|
|
2
|
+
import { UpdateProxyNetworkConfiguration$ } from "../schemas/schemas_0";
|
|
3
|
+
export class UpdateProxyNetworkConfigurationCommand extends command(_ep0, _mw0, "UpdateProxyNetworkConfiguration", UpdateProxyNetworkConfiguration$) {
|
|
4
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export * from "./AssociateCertificateCommand";
|
|
2
|
+
export * from "./CreateProxyCommand";
|
|
3
|
+
export * from "./DeleteProxyCommand";
|
|
4
|
+
export * from "./DisassociateCertificateCommand";
|
|
5
|
+
export * from "./GetProxyAttributesCommand";
|
|
6
|
+
export * from "./GetProxyCommand";
|
|
7
|
+
export * from "./GetProxyConfigurationContentsCommand";
|
|
8
|
+
export * from "./GetProxyUpdateCommand";
|
|
9
|
+
export * from "./ListCertificateAssociationsCommand";
|
|
10
|
+
export * from "./ListProxiesCommand";
|
|
11
|
+
export * from "./ListProxyUpdatesCommand";
|
|
12
|
+
export * from "./ListProxyVersionsCommand";
|
|
13
|
+
export * from "./ListTagsForResourceCommand";
|
|
14
|
+
export * from "./TagResourceCommand";
|
|
15
|
+
export * from "./UntagResourceCommand";
|
|
16
|
+
export * from "./UpdateProxyAttributesCommand";
|
|
17
|
+
export * from "./UpdateProxyConfigurationCommand";
|
|
18
|
+
export * from "./UpdateProxyNetworkConfigurationCommand";
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export const resolveClientEndpointParameters = (options) => {
|
|
2
|
+
return Object.assign(options, {
|
|
3
|
+
useFipsEndpoint: options.useFipsEndpoint ?? false,
|
|
4
|
+
defaultSigningName: "elasticloadbalancing",
|
|
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,29 @@
|
|
|
1
|
+
import { BinaryDecisionDiagram } from "@smithy/core/endpoints";
|
|
2
|
+
const a = "isSet", b = { "ref": "Endpoint" }, c = [{ "ref": "Region" }];
|
|
3
|
+
const _data = {
|
|
4
|
+
conditions: [
|
|
5
|
+
[a, [b]],
|
|
6
|
+
[a, c],
|
|
7
|
+
["aws.partition", c, "PartitionResult"],
|
|
8
|
+
["booleanEquals", [{ ref: "UseFIPS" }, true]]
|
|
9
|
+
],
|
|
10
|
+
results: [
|
|
11
|
+
[-1],
|
|
12
|
+
[-1, "Invalid Configuration: FIPS and custom endpoint are not supported"],
|
|
13
|
+
[b, {}],
|
|
14
|
+
["https://elb-proxy-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", {}],
|
|
15
|
+
["https://elb-proxy.{Region}.{PartitionResult#dualStackDnsSuffix}", {}],
|
|
16
|
+
[-1, "Invalid Configuration: Missing Region"]
|
|
17
|
+
]
|
|
18
|
+
};
|
|
19
|
+
const root = 2;
|
|
20
|
+
const r = 100_000_000;
|
|
21
|
+
const nodes = new Int32Array([
|
|
22
|
+
-1, 1, -1,
|
|
23
|
+
0, 6, 3,
|
|
24
|
+
1, 4, r + 5,
|
|
25
|
+
2, 5, r + 5,
|
|
26
|
+
3, r + 3, r + 4,
|
|
27
|
+
3, r + 1, r + 2,
|
|
28
|
+
]);
|
|
29
|
+
export const bdd = BinaryDecisionDiagram.from(nodes, root, _data.conditions, _data.results);
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { awsEndpointFunctions } from "@aws-sdk/core/client";
|
|
2
|
+
import { customEndpointFunctions, decideEndpoint, EndpointCache } from "@smithy/core/endpoints";
|
|
3
|
+
import { bdd } from "./bdd";
|
|
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, () => decideEndpoint(bdd, {
|
|
10
|
+
endpointParams: endpointParams,
|
|
11
|
+
logger: context.logger,
|
|
12
|
+
}));
|
|
13
|
+
};
|
|
14
|
+
customEndpointFunctions.aws = awsEndpointFunctions;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist-es/index.js
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export * from "./ELBProxyClient";
|
|
2
|
+
export * from "./ELBProxy";
|
|
3
|
+
export * from "./commands";
|
|
4
|
+
export { Command as $Command } from "@smithy/core/client";
|
|
5
|
+
export * from "./pagination";
|
|
6
|
+
export * from "./waiters";
|
|
7
|
+
export * from "./schemas/schemas_0";
|
|
8
|
+
export * from "./models/enums";
|
|
9
|
+
export * from "./models/errors";
|
|
10
|
+
export * from "./models/models_0";
|
|
11
|
+
export { ELBProxyServiceException } from "./models/ELBProxyServiceException";
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ServiceException as __ServiceException, } from "@smithy/core/client";
|
|
2
|
+
export { __ServiceException };
|
|
3
|
+
export class ELBProxyServiceException extends __ServiceException {
|
|
4
|
+
static shapeId = "smithy.ts.sdk.synthetic.com.amazonaws.elbproxy#ELBProxyServiceException";
|
|
5
|
+
constructor(options) {
|
|
6
|
+
super(options);
|
|
7
|
+
Object.setPrototypeOf(this, ELBProxyServiceException.prototype);
|
|
8
|
+
}
|
|
9
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
export const CertificateAssociationStatusCode = {
|
|
2
|
+
ACTIVE: "active",
|
|
3
|
+
ASSOCIATE_FAILED: "associate-failed",
|
|
4
|
+
ASSOCIATE_IN_PROGRESS: "associate-in-progress",
|
|
5
|
+
DISASSOCIATED: "disassociated",
|
|
6
|
+
DISASSOCIATE_IN_PROGRESS: "disassociate-in-progress",
|
|
7
|
+
};
|
|
8
|
+
export const ProxyIpv4Addressability = {
|
|
9
|
+
INTERNAL: "internal",
|
|
10
|
+
INTERNET_FACING: "internet-facing",
|
|
11
|
+
OFF: "off",
|
|
12
|
+
};
|
|
13
|
+
export const ProxyIpv6Addressability = {
|
|
14
|
+
INTERNAL: "internal",
|
|
15
|
+
INTERNET_FACING: "internet-facing",
|
|
16
|
+
OFF: "off",
|
|
17
|
+
};
|
|
18
|
+
export const ProxyType = {
|
|
19
|
+
ENVOY: "envoy",
|
|
20
|
+
};
|
|
21
|
+
export const ProxyStatusCode = {
|
|
22
|
+
ACTION_REQUIRED: "action-required",
|
|
23
|
+
ACTIVE: "active",
|
|
24
|
+
CANCEL_UPDATE_IN_PROGRESS: "cancel-update-in-progress",
|
|
25
|
+
CREATE_FAILED: "create-failed",
|
|
26
|
+
CREATE_IN_PROGRESS: "create-in-progress",
|
|
27
|
+
DELETED: "deleted",
|
|
28
|
+
DELETE_IN_PROGRESS: "delete-in-progress",
|
|
29
|
+
UPDATE_IN_PROGRESS: "update-in-progress",
|
|
30
|
+
};
|
|
31
|
+
export const ProxyUpdatePropagationStatus = {
|
|
32
|
+
CANCELLED: "cancelled",
|
|
33
|
+
COMPLETE: "complete",
|
|
34
|
+
FAILED: "failed",
|
|
35
|
+
IN_PROGRESS: "in-progress",
|
|
36
|
+
SKIPPED: "skipped",
|
|
37
|
+
};
|
|
38
|
+
export const ProxyUpdateValidationStatus = {
|
|
39
|
+
INVALID: "invalid",
|
|
40
|
+
NOT_VALIDATED: "not-validated",
|
|
41
|
+
VALID: "valid",
|
|
42
|
+
};
|
|
43
|
+
export const ProxyUpdateType = {
|
|
44
|
+
UPDATE_PROXY_CONFIGURATION: "update-proxy-configuration",
|
|
45
|
+
};
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
import { ELBProxyServiceException as __BaseException } from "./ELBProxyServiceException";
|
|
2
|
+
export class AccessDeniedException extends __BaseException {
|
|
3
|
+
static shapeId = "com.amazonaws.elbproxy#AccessDeniedException";
|
|
4
|
+
name = "AccessDeniedException";
|
|
5
|
+
$fault = "client";
|
|
6
|
+
constructor(opts) {
|
|
7
|
+
super({
|
|
8
|
+
name: "AccessDeniedException",
|
|
9
|
+
$fault: "client",
|
|
10
|
+
...opts,
|
|
11
|
+
});
|
|
12
|
+
Object.setPrototypeOf(this, AccessDeniedException.prototype);
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
export class ConflictException extends __BaseException {
|
|
16
|
+
static shapeId = "com.amazonaws.elbproxy#ConflictException";
|
|
17
|
+
name = "ConflictException";
|
|
18
|
+
$fault = "client";
|
|
19
|
+
constructor(opts) {
|
|
20
|
+
super({
|
|
21
|
+
name: "ConflictException",
|
|
22
|
+
$fault: "client",
|
|
23
|
+
...opts,
|
|
24
|
+
});
|
|
25
|
+
Object.setPrototypeOf(this, ConflictException.prototype);
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
export class InternalServerException extends __BaseException {
|
|
29
|
+
static shapeId = "com.amazonaws.elbproxy#InternalServerException";
|
|
30
|
+
name = "InternalServerException";
|
|
31
|
+
$fault = "server";
|
|
32
|
+
$retryable = {};
|
|
33
|
+
constructor(opts) {
|
|
34
|
+
super({
|
|
35
|
+
name: "InternalServerException",
|
|
36
|
+
$fault: "server",
|
|
37
|
+
...opts,
|
|
38
|
+
});
|
|
39
|
+
Object.setPrototypeOf(this, InternalServerException.prototype);
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
export class ResourceNotFoundException extends __BaseException {
|
|
43
|
+
static shapeId = "com.amazonaws.elbproxy#ResourceNotFoundException";
|
|
44
|
+
name = "ResourceNotFoundException";
|
|
45
|
+
$fault = "client";
|
|
46
|
+
constructor(opts) {
|
|
47
|
+
super({
|
|
48
|
+
name: "ResourceNotFoundException",
|
|
49
|
+
$fault: "client",
|
|
50
|
+
...opts,
|
|
51
|
+
});
|
|
52
|
+
Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
export class ServiceQuotaExceededException extends __BaseException {
|
|
56
|
+
static shapeId = "com.amazonaws.elbproxy#ServiceQuotaExceededException";
|
|
57
|
+
name = "ServiceQuotaExceededException";
|
|
58
|
+
$fault = "client";
|
|
59
|
+
quotaCode;
|
|
60
|
+
resourceId;
|
|
61
|
+
resourceType;
|
|
62
|
+
serviceCode;
|
|
63
|
+
constructor(opts) {
|
|
64
|
+
super({
|
|
65
|
+
name: "ServiceQuotaExceededException",
|
|
66
|
+
$fault: "client",
|
|
67
|
+
...opts,
|
|
68
|
+
});
|
|
69
|
+
Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
|
|
70
|
+
this.quotaCode = opts.quotaCode;
|
|
71
|
+
this.resourceId = opts.resourceId;
|
|
72
|
+
this.resourceType = opts.resourceType;
|
|
73
|
+
this.serviceCode = opts.serviceCode;
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
export class ThrottlingException extends __BaseException {
|
|
77
|
+
static shapeId = "com.amazonaws.elbproxy#ThrottlingException";
|
|
78
|
+
name = "ThrottlingException";
|
|
79
|
+
$fault = "client";
|
|
80
|
+
$retryable = {
|
|
81
|
+
throttling: true,
|
|
82
|
+
};
|
|
83
|
+
constructor(opts) {
|
|
84
|
+
super({
|
|
85
|
+
name: "ThrottlingException",
|
|
86
|
+
$fault: "client",
|
|
87
|
+
...opts,
|
|
88
|
+
});
|
|
89
|
+
Object.setPrototypeOf(this, ThrottlingException.prototype);
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
export class ValidationException extends __BaseException {
|
|
93
|
+
static shapeId = "com.amazonaws.elbproxy#ValidationException";
|
|
94
|
+
name = "ValidationException";
|
|
95
|
+
$fault = "client";
|
|
96
|
+
constructor(opts) {
|
|
97
|
+
super({
|
|
98
|
+
name: "ValidationException",
|
|
99
|
+
$fault: "client",
|
|
100
|
+
...opts,
|
|
101
|
+
});
|
|
102
|
+
Object.setPrototypeOf(this, ValidationException.prototype);
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
export class OperationNotPermittedException extends __BaseException {
|
|
106
|
+
static shapeId = "com.amazonaws.elbproxy#OperationNotPermittedException";
|
|
107
|
+
name = "OperationNotPermittedException";
|
|
108
|
+
$fault = "client";
|
|
109
|
+
constructor(opts) {
|
|
110
|
+
super({
|
|
111
|
+
name: "OperationNotPermittedException",
|
|
112
|
+
$fault: "client",
|
|
113
|
+
...opts,
|
|
114
|
+
});
|
|
115
|
+
Object.setPrototypeOf(this, OperationNotPermittedException.prototype);
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
export class PriorRequestNotCompletedException extends __BaseException {
|
|
119
|
+
static shapeId = "com.amazonaws.elbproxy#PriorRequestNotCompletedException";
|
|
120
|
+
name = "PriorRequestNotCompletedException";
|
|
121
|
+
$fault = "client";
|
|
122
|
+
constructor(opts) {
|
|
123
|
+
super({
|
|
124
|
+
name: "PriorRequestNotCompletedException",
|
|
125
|
+
$fault: "client",
|
|
126
|
+
...opts,
|
|
127
|
+
});
|
|
128
|
+
Object.setPrototypeOf(this, PriorRequestNotCompletedException.prototype);
|
|
129
|
+
}
|
|
130
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
2
|
+
import { ListCertificateAssociationsCommand, } from "../commands/ListCertificateAssociationsCommand";
|
|
3
|
+
import { ELBProxyClient } from "../ELBProxyClient";
|
|
4
|
+
export const paginateListCertificateAssociations = createPaginator(ELBProxyClient, ListCertificateAssociationsCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
2
|
+
import { ListProxiesCommand } from "../commands/ListProxiesCommand";
|
|
3
|
+
import { ELBProxyClient } from "../ELBProxyClient";
|
|
4
|
+
export const paginateListProxies = createPaginator(ELBProxyClient, ListProxiesCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
2
|
+
import { ListProxyUpdatesCommand, } from "../commands/ListProxyUpdatesCommand";
|
|
3
|
+
import { ELBProxyClient } from "../ELBProxyClient";
|
|
4
|
+
export const paginateListProxyUpdates = createPaginator(ELBProxyClient, ListProxyUpdatesCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
2
|
+
import { ListProxyVersionsCommand, } from "../commands/ListProxyVersionsCommand";
|
|
3
|
+
import { ELBProxyClient } from "../ELBProxyClient";
|
|
4
|
+
export const paginateListProxyVersions = createPaginator(ELBProxyClient, ListProxyVersionsCommand, "nextToken", "nextToken", "maxResults");
|