@aws-sdk/client-apprunner 3.199.0 → 3.201.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.
Files changed (54) hide show
  1. package/CHANGELOG.md +22 -0
  2. package/dist-cjs/AppRunner.js +75 -0
  3. package/dist-cjs/commands/CreateVpcIngressConnectionCommand.js +46 -0
  4. package/dist-cjs/commands/DeleteVpcIngressConnectionCommand.js +46 -0
  5. package/dist-cjs/commands/DescribeVpcIngressConnectionCommand.js +46 -0
  6. package/dist-cjs/commands/ListVpcIngressConnectionsCommand.js +46 -0
  7. package/dist-cjs/commands/UpdateVpcIngressConnectionCommand.js +46 -0
  8. package/dist-cjs/commands/index.js +5 -0
  9. package/dist-cjs/endpoint/EndpointParameters.js +2 -3
  10. package/dist-cjs/models/models_0.js +78 -3
  11. package/dist-cjs/pagination/ListVpcIngressConnectionsPaginator.js +36 -0
  12. package/dist-cjs/pagination/index.js +1 -0
  13. package/dist-cjs/protocols/Aws_json1_0.js +421 -11
  14. package/dist-cjs/runtimeConfig.browser.js +16 -16
  15. package/dist-cjs/runtimeConfig.js +20 -19
  16. package/dist-cjs/runtimeConfig.native.js +1 -2
  17. package/dist-cjs/runtimeConfig.shared.js +8 -11
  18. package/dist-es/AppRunner.js +75 -0
  19. package/dist-es/commands/CreateVpcIngressConnectionCommand.js +42 -0
  20. package/dist-es/commands/DeleteVpcIngressConnectionCommand.js +42 -0
  21. package/dist-es/commands/DescribeVpcIngressConnectionCommand.js +42 -0
  22. package/dist-es/commands/ListVpcIngressConnectionsCommand.js +42 -0
  23. package/dist-es/commands/UpdateVpcIngressConnectionCommand.js +42 -0
  24. package/dist-es/commands/index.js +5 -0
  25. package/dist-es/models/models_0.js +59 -0
  26. package/dist-es/pagination/ListVpcIngressConnectionsPaginator.js +32 -0
  27. package/dist-es/pagination/index.js +1 -0
  28. package/dist-es/protocols/Aws_json1_0.js +404 -0
  29. package/dist-types/AppRunner.d.ts +79 -0
  30. package/dist-types/AppRunnerClient.d.ts +7 -2
  31. package/dist-types/commands/CreateVpcIngressConnectionCommand.d.ts +37 -0
  32. package/dist-types/commands/DeleteServiceCommand.d.ts +4 -0
  33. package/dist-types/commands/DeleteVpcIngressConnectionCommand.d.ts +60 -0
  34. package/dist-types/commands/DescribeVpcIngressConnectionCommand.d.ts +37 -0
  35. package/dist-types/commands/ListVpcIngressConnectionsCommand.d.ts +37 -0
  36. package/dist-types/commands/UpdateVpcIngressConnectionCommand.d.ts +54 -0
  37. package/dist-types/commands/index.d.ts +5 -0
  38. package/dist-types/models/models_0.d.ts +330 -1
  39. package/dist-types/pagination/ListVpcIngressConnectionsPaginator.d.ts +4 -0
  40. package/dist-types/pagination/index.d.ts +1 -0
  41. package/dist-types/protocols/Aws_json1_0.d.ts +15 -0
  42. package/dist-types/ts3.4/AppRunner.d.ts +85 -0
  43. package/dist-types/ts3.4/AppRunnerClient.d.ts +32 -2
  44. package/dist-types/ts3.4/commands/CreateVpcIngressConnectionCommand.d.ts +41 -0
  45. package/dist-types/ts3.4/commands/DeleteVpcIngressConnectionCommand.d.ts +41 -0
  46. package/dist-types/ts3.4/commands/DescribeVpcIngressConnectionCommand.d.ts +41 -0
  47. package/dist-types/ts3.4/commands/ListVpcIngressConnectionsCommand.d.ts +41 -0
  48. package/dist-types/ts3.4/commands/UpdateVpcIngressConnectionCommand.d.ts +41 -0
  49. package/dist-types/ts3.4/commands/index.d.ts +5 -0
  50. package/dist-types/ts3.4/models/models_0.d.ts +129 -1
  51. package/dist-types/ts3.4/pagination/ListVpcIngressConnectionsPaginator.d.ts +11 -0
  52. package/dist-types/ts3.4/pagination/index.d.ts +1 -0
  53. package/dist-types/ts3.4/protocols/Aws_json1_0.d.ts +60 -0
  54. package/package.json +33 -33
@@ -16,7 +16,6 @@ const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
16
16
  const smithy_client_1 = require("@aws-sdk/smithy-client");
17
17
  const util_defaults_mode_browser_1 = require("@aws-sdk/util-defaults-mode-browser");
18
18
  const getRuntimeConfig = (config) => {
19
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
20
19
  const defaultsMode = (0, util_defaults_mode_browser_1.resolveDefaultsModeConfig)(config);
21
20
  const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
22
21
  const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config);
@@ -25,21 +24,22 @@ const getRuntimeConfig = (config) => {
25
24
  ...config,
26
25
  runtime: "browser",
27
26
  defaultsMode,
28
- base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : util_base64_browser_1.fromBase64,
29
- base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : util_base64_browser_1.toBase64,
30
- bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : util_body_length_browser_1.calculateBodyLength,
31
- credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : ((_) => () => Promise.reject(new Error("Credential is missing"))),
32
- defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : (0, util_user_agent_browser_1.defaultUserAgent)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
33
- maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : middleware_retry_1.DEFAULT_MAX_ATTEMPTS,
34
- region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : (0, invalid_dependency_1.invalidProvider)("Region is missing"),
35
- requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new fetch_http_handler_1.FetchHttpHandler(defaultConfigProvider),
36
- retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (async () => (await defaultConfigProvider()).retryMode || middleware_retry_1.DEFAULT_RETRY_MODE),
37
- sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : sha256_browser_1.Sha256,
38
- streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : fetch_http_handler_1.streamCollector,
39
- useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : (() => Promise.resolve(config_resolver_1.DEFAULT_USE_DUALSTACK_ENDPOINT)),
40
- useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : (() => Promise.resolve(config_resolver_1.DEFAULT_USE_FIPS_ENDPOINT)),
41
- utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : util_utf8_browser_1.fromUtf8,
42
- utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : util_utf8_browser_1.toUtf8,
27
+ base64Decoder: config?.base64Decoder ?? util_base64_browser_1.fromBase64,
28
+ base64Encoder: config?.base64Encoder ?? util_base64_browser_1.toBase64,
29
+ bodyLengthChecker: config?.bodyLengthChecker ?? util_body_length_browser_1.calculateBodyLength,
30
+ credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_) => () => Promise.reject(new Error("Credential is missing"))),
31
+ defaultUserAgentProvider: config?.defaultUserAgentProvider ??
32
+ (0, util_user_agent_browser_1.defaultUserAgent)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
33
+ maxAttempts: config?.maxAttempts ?? middleware_retry_1.DEFAULT_MAX_ATTEMPTS,
34
+ region: config?.region ?? (0, invalid_dependency_1.invalidProvider)("Region is missing"),
35
+ requestHandler: config?.requestHandler ?? new fetch_http_handler_1.FetchHttpHandler(defaultConfigProvider),
36
+ retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode || middleware_retry_1.DEFAULT_RETRY_MODE),
37
+ sha256: config?.sha256 ?? sha256_browser_1.Sha256,
38
+ streamCollector: config?.streamCollector ?? fetch_http_handler_1.streamCollector,
39
+ useDualstackEndpoint: config?.useDualstackEndpoint ?? (() => Promise.resolve(config_resolver_1.DEFAULT_USE_DUALSTACK_ENDPOINT)),
40
+ useFipsEndpoint: config?.useFipsEndpoint ?? (() => Promise.resolve(config_resolver_1.DEFAULT_USE_FIPS_ENDPOINT)),
41
+ utf8Decoder: config?.utf8Decoder ?? util_utf8_browser_1.fromUtf8,
42
+ utf8Encoder: config?.utf8Encoder ?? util_utf8_browser_1.toUtf8,
43
43
  };
44
44
  };
45
45
  exports.getRuntimeConfig = getRuntimeConfig;
@@ -19,7 +19,6 @@ const smithy_client_1 = require("@aws-sdk/smithy-client");
19
19
  const util_defaults_mode_node_1 = require("@aws-sdk/util-defaults-mode-node");
20
20
  const smithy_client_2 = require("@aws-sdk/smithy-client");
21
21
  const getRuntimeConfig = (config) => {
22
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
23
22
  (0, smithy_client_2.emitWarningIfUnsupportedVersion)(process.version);
24
23
  const defaultsMode = (0, util_defaults_mode_node_1.resolveDefaultsModeConfig)(config);
25
24
  const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
@@ -29,24 +28,26 @@ const getRuntimeConfig = (config) => {
29
28
  ...config,
30
29
  runtime: "node",
31
30
  defaultsMode,
32
- base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : util_base64_node_1.fromBase64,
33
- base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : util_base64_node_1.toBase64,
34
- bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : util_body_length_node_1.calculateBodyLength,
35
- credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : (0, client_sts_1.decorateDefaultCredentialProvider)(credential_provider_node_1.defaultProvider),
36
- defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : (0, util_user_agent_node_1.defaultUserAgent)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
37
- maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : (0, node_config_provider_1.loadConfig)(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
38
- region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS),
39
- requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new node_http_handler_1.NodeHttpHandler(defaultConfigProvider),
40
- retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (0, node_config_provider_1.loadConfig)({
41
- ...middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS,
42
- default: async () => (await defaultConfigProvider()).retryMode || middleware_retry_1.DEFAULT_RETRY_MODE,
43
- }),
44
- sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : hash_node_1.Hash.bind(null, "sha256"),
45
- streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : node_http_handler_1.streamCollector,
46
- useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),
47
- useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),
48
- utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : util_utf8_node_1.fromUtf8,
49
- utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : util_utf8_node_1.toUtf8,
31
+ base64Decoder: config?.base64Decoder ?? util_base64_node_1.fromBase64,
32
+ base64Encoder: config?.base64Encoder ?? util_base64_node_1.toBase64,
33
+ bodyLengthChecker: config?.bodyLengthChecker ?? util_body_length_node_1.calculateBodyLength,
34
+ credentialDefaultProvider: config?.credentialDefaultProvider ?? (0, client_sts_1.decorateDefaultCredentialProvider)(credential_provider_node_1.defaultProvider),
35
+ defaultUserAgentProvider: config?.defaultUserAgentProvider ??
36
+ (0, util_user_agent_node_1.defaultUserAgent)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
37
+ maxAttempts: config?.maxAttempts ?? (0, node_config_provider_1.loadConfig)(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
38
+ region: config?.region ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS),
39
+ requestHandler: config?.requestHandler ?? new node_http_handler_1.NodeHttpHandler(defaultConfigProvider),
40
+ retryMode: config?.retryMode ??
41
+ (0, node_config_provider_1.loadConfig)({
42
+ ...middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS,
43
+ default: async () => (await defaultConfigProvider()).retryMode || middleware_retry_1.DEFAULT_RETRY_MODE,
44
+ }),
45
+ sha256: config?.sha256 ?? hash_node_1.Hash.bind(null, "sha256"),
46
+ streamCollector: config?.streamCollector ?? node_http_handler_1.streamCollector,
47
+ useDualstackEndpoint: config?.useDualstackEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),
48
+ useFipsEndpoint: config?.useFipsEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),
49
+ utf8Decoder: config?.utf8Decoder ?? util_utf8_node_1.fromUtf8,
50
+ utf8Encoder: config?.utf8Encoder ?? util_utf8_node_1.toUtf8,
50
51
  };
51
52
  };
52
53
  exports.getRuntimeConfig = getRuntimeConfig;
@@ -4,13 +4,12 @@ exports.getRuntimeConfig = void 0;
4
4
  const sha256_js_1 = require("@aws-crypto/sha256-js");
5
5
  const runtimeConfig_browser_1 = require("./runtimeConfig.browser");
6
6
  const getRuntimeConfig = (config) => {
7
- var _a;
8
7
  const browserDefaults = (0, runtimeConfig_browser_1.getRuntimeConfig)(config);
9
8
  return {
10
9
  ...browserDefaults,
11
10
  ...config,
12
11
  runtime: "react-native",
13
- sha256: (_a = config === null || config === void 0 ? void 0 : config.sha256) !== null && _a !== void 0 ? _a : sha256_js_1.Sha256,
12
+ sha256: config?.sha256 ?? sha256_js_1.Sha256,
14
13
  };
15
14
  };
16
15
  exports.getRuntimeConfig = getRuntimeConfig;
@@ -3,15 +3,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getRuntimeConfig = void 0;
4
4
  const url_parser_1 = require("@aws-sdk/url-parser");
5
5
  const endpointResolver_1 = require("./endpoint/endpointResolver");
6
- const getRuntimeConfig = (config) => {
7
- var _a, _b, _c, _d, _e;
8
- return ({
9
- apiVersion: "2020-05-15",
10
- disableHostPrefix: (_a = config === null || config === void 0 ? void 0 : config.disableHostPrefix) !== null && _a !== void 0 ? _a : false,
11
- endpointProvider: (_b = config === null || config === void 0 ? void 0 : config.endpointProvider) !== null && _b !== void 0 ? _b : endpointResolver_1.defaultEndpointResolver,
12
- logger: (_c = config === null || config === void 0 ? void 0 : config.logger) !== null && _c !== void 0 ? _c : {},
13
- serviceId: (_d = config === null || config === void 0 ? void 0 : config.serviceId) !== null && _d !== void 0 ? _d : "AppRunner",
14
- urlParser: (_e = config === null || config === void 0 ? void 0 : config.urlParser) !== null && _e !== void 0 ? _e : url_parser_1.parseUrl,
15
- });
16
- };
6
+ const getRuntimeConfig = (config) => ({
7
+ apiVersion: "2020-05-15",
8
+ disableHostPrefix: config?.disableHostPrefix ?? false,
9
+ endpointProvider: config?.endpointProvider ?? endpointResolver_1.defaultEndpointResolver,
10
+ logger: config?.logger ?? {},
11
+ serviceId: config?.serviceId ?? "AppRunner",
12
+ urlParser: config?.urlParser ?? url_parser_1.parseUrl,
13
+ });
17
14
  exports.getRuntimeConfig = getRuntimeConfig;
@@ -5,16 +5,19 @@ import { CreateConnectionCommand, } from "./commands/CreateConnectionCommand";
5
5
  import { CreateObservabilityConfigurationCommand, } from "./commands/CreateObservabilityConfigurationCommand";
6
6
  import { CreateServiceCommand, } from "./commands/CreateServiceCommand";
7
7
  import { CreateVpcConnectorCommand, } from "./commands/CreateVpcConnectorCommand";
8
+ import { CreateVpcIngressConnectionCommand, } from "./commands/CreateVpcIngressConnectionCommand";
8
9
  import { DeleteAutoScalingConfigurationCommand, } from "./commands/DeleteAutoScalingConfigurationCommand";
9
10
  import { DeleteConnectionCommand, } from "./commands/DeleteConnectionCommand";
10
11
  import { DeleteObservabilityConfigurationCommand, } from "./commands/DeleteObservabilityConfigurationCommand";
11
12
  import { DeleteServiceCommand, } from "./commands/DeleteServiceCommand";
12
13
  import { DeleteVpcConnectorCommand, } from "./commands/DeleteVpcConnectorCommand";
14
+ import { DeleteVpcIngressConnectionCommand, } from "./commands/DeleteVpcIngressConnectionCommand";
13
15
  import { DescribeAutoScalingConfigurationCommand, } from "./commands/DescribeAutoScalingConfigurationCommand";
14
16
  import { DescribeCustomDomainsCommand, } from "./commands/DescribeCustomDomainsCommand";
15
17
  import { DescribeObservabilityConfigurationCommand, } from "./commands/DescribeObservabilityConfigurationCommand";
16
18
  import { DescribeServiceCommand, } from "./commands/DescribeServiceCommand";
17
19
  import { DescribeVpcConnectorCommand, } from "./commands/DescribeVpcConnectorCommand";
20
+ import { DescribeVpcIngressConnectionCommand, } from "./commands/DescribeVpcIngressConnectionCommand";
18
21
  import { DisassociateCustomDomainCommand, } from "./commands/DisassociateCustomDomainCommand";
19
22
  import { ListAutoScalingConfigurationsCommand, } from "./commands/ListAutoScalingConfigurationsCommand";
20
23
  import { ListConnectionsCommand, } from "./commands/ListConnectionsCommand";
@@ -23,12 +26,14 @@ import { ListOperationsCommand, } from "./commands/ListOperationsCommand";
23
26
  import { ListServicesCommand, } from "./commands/ListServicesCommand";
24
27
  import { ListTagsForResourceCommand, } from "./commands/ListTagsForResourceCommand";
25
28
  import { ListVpcConnectorsCommand, } from "./commands/ListVpcConnectorsCommand";
29
+ import { ListVpcIngressConnectionsCommand, } from "./commands/ListVpcIngressConnectionsCommand";
26
30
  import { PauseServiceCommand, } from "./commands/PauseServiceCommand";
27
31
  import { ResumeServiceCommand, } from "./commands/ResumeServiceCommand";
28
32
  import { StartDeploymentCommand, } from "./commands/StartDeploymentCommand";
29
33
  import { TagResourceCommand } from "./commands/TagResourceCommand";
30
34
  import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
31
35
  import { UpdateServiceCommand, } from "./commands/UpdateServiceCommand";
36
+ import { UpdateVpcIngressConnectionCommand, } from "./commands/UpdateVpcIngressConnectionCommand";
32
37
  export class AppRunner extends AppRunnerClient {
33
38
  associateCustomDomain(args, optionsOrCb, cb) {
34
39
  const command = new AssociateCustomDomainCommand(args);
@@ -114,6 +119,20 @@ export class AppRunner extends AppRunnerClient {
114
119
  return this.send(command, optionsOrCb);
115
120
  }
116
121
  }
122
+ createVpcIngressConnection(args, optionsOrCb, cb) {
123
+ const command = new CreateVpcIngressConnectionCommand(args);
124
+ if (typeof optionsOrCb === "function") {
125
+ this.send(command, optionsOrCb);
126
+ }
127
+ else if (typeof cb === "function") {
128
+ if (typeof optionsOrCb !== "object")
129
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
130
+ this.send(command, optionsOrCb || {}, cb);
131
+ }
132
+ else {
133
+ return this.send(command, optionsOrCb);
134
+ }
135
+ }
117
136
  deleteAutoScalingConfiguration(args, optionsOrCb, cb) {
118
137
  const command = new DeleteAutoScalingConfigurationCommand(args);
119
138
  if (typeof optionsOrCb === "function") {
@@ -184,6 +203,20 @@ export class AppRunner extends AppRunnerClient {
184
203
  return this.send(command, optionsOrCb);
185
204
  }
186
205
  }
206
+ deleteVpcIngressConnection(args, optionsOrCb, cb) {
207
+ const command = new DeleteVpcIngressConnectionCommand(args);
208
+ if (typeof optionsOrCb === "function") {
209
+ this.send(command, optionsOrCb);
210
+ }
211
+ else if (typeof cb === "function") {
212
+ if (typeof optionsOrCb !== "object")
213
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
214
+ this.send(command, optionsOrCb || {}, cb);
215
+ }
216
+ else {
217
+ return this.send(command, optionsOrCb);
218
+ }
219
+ }
187
220
  describeAutoScalingConfiguration(args, optionsOrCb, cb) {
188
221
  const command = new DescribeAutoScalingConfigurationCommand(args);
189
222
  if (typeof optionsOrCb === "function") {
@@ -254,6 +287,20 @@ export class AppRunner extends AppRunnerClient {
254
287
  return this.send(command, optionsOrCb);
255
288
  }
256
289
  }
290
+ describeVpcIngressConnection(args, optionsOrCb, cb) {
291
+ const command = new DescribeVpcIngressConnectionCommand(args);
292
+ if (typeof optionsOrCb === "function") {
293
+ this.send(command, optionsOrCb);
294
+ }
295
+ else if (typeof cb === "function") {
296
+ if (typeof optionsOrCb !== "object")
297
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
298
+ this.send(command, optionsOrCb || {}, cb);
299
+ }
300
+ else {
301
+ return this.send(command, optionsOrCb);
302
+ }
303
+ }
257
304
  disassociateCustomDomain(args, optionsOrCb, cb) {
258
305
  const command = new DisassociateCustomDomainCommand(args);
259
306
  if (typeof optionsOrCb === "function") {
@@ -366,6 +413,20 @@ export class AppRunner extends AppRunnerClient {
366
413
  return this.send(command, optionsOrCb);
367
414
  }
368
415
  }
416
+ listVpcIngressConnections(args, optionsOrCb, cb) {
417
+ const command = new ListVpcIngressConnectionsCommand(args);
418
+ if (typeof optionsOrCb === "function") {
419
+ this.send(command, optionsOrCb);
420
+ }
421
+ else if (typeof cb === "function") {
422
+ if (typeof optionsOrCb !== "object")
423
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
424
+ this.send(command, optionsOrCb || {}, cb);
425
+ }
426
+ else {
427
+ return this.send(command, optionsOrCb);
428
+ }
429
+ }
369
430
  pauseService(args, optionsOrCb, cb) {
370
431
  const command = new PauseServiceCommand(args);
371
432
  if (typeof optionsOrCb === "function") {
@@ -450,4 +511,18 @@ export class AppRunner extends AppRunnerClient {
450
511
  return this.send(command, optionsOrCb);
451
512
  }
452
513
  }
514
+ updateVpcIngressConnection(args, optionsOrCb, cb) {
515
+ const command = new UpdateVpcIngressConnectionCommand(args);
516
+ if (typeof optionsOrCb === "function") {
517
+ this.send(command, optionsOrCb);
518
+ }
519
+ else if (typeof cb === "function") {
520
+ if (typeof optionsOrCb !== "object")
521
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
522
+ this.send(command, optionsOrCb || {}, cb);
523
+ }
524
+ else {
525
+ return this.send(command, optionsOrCb);
526
+ }
527
+ }
453
528
  }
@@ -0,0 +1,42 @@
1
+ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { CreateVpcIngressConnectionRequestFilterSensitiveLog, CreateVpcIngressConnectionResponseFilterSensitiveLog, } from "../models/models_0";
5
+ import { deserializeAws_json1_0CreateVpcIngressConnectionCommand, serializeAws_json1_0CreateVpcIngressConnectionCommand, } from "../protocols/Aws_json1_0";
6
+ export class CreateVpcIngressConnectionCommand extends $Command {
7
+ constructor(input) {
8
+ super();
9
+ this.input = input;
10
+ }
11
+ static getEndpointParameterInstructions() {
12
+ return {
13
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
+ Endpoint: { type: "builtInParams", name: "endpoint" },
15
+ Region: { type: "builtInParams", name: "region" },
16
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
+ };
18
+ }
19
+ resolveMiddleware(clientStack, configuration, options) {
20
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
21
+ this.middlewareStack.use(getEndpointPlugin(configuration, CreateVpcIngressConnectionCommand.getEndpointParameterInstructions()));
22
+ const stack = clientStack.concat(this.middlewareStack);
23
+ const { logger } = configuration;
24
+ const clientName = "AppRunnerClient";
25
+ const commandName = "CreateVpcIngressConnectionCommand";
26
+ const handlerExecutionContext = {
27
+ logger,
28
+ clientName,
29
+ commandName,
30
+ inputFilterSensitiveLog: CreateVpcIngressConnectionRequestFilterSensitiveLog,
31
+ outputFilterSensitiveLog: CreateVpcIngressConnectionResponseFilterSensitiveLog,
32
+ };
33
+ const { requestHandler } = configuration;
34
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
35
+ }
36
+ serialize(input, context) {
37
+ return serializeAws_json1_0CreateVpcIngressConnectionCommand(input, context);
38
+ }
39
+ deserialize(output, context) {
40
+ return deserializeAws_json1_0CreateVpcIngressConnectionCommand(output, context);
41
+ }
42
+ }
@@ -0,0 +1,42 @@
1
+ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { DeleteVpcIngressConnectionRequestFilterSensitiveLog, DeleteVpcIngressConnectionResponseFilterSensitiveLog, } from "../models/models_0";
5
+ import { deserializeAws_json1_0DeleteVpcIngressConnectionCommand, serializeAws_json1_0DeleteVpcIngressConnectionCommand, } from "../protocols/Aws_json1_0";
6
+ export class DeleteVpcIngressConnectionCommand extends $Command {
7
+ constructor(input) {
8
+ super();
9
+ this.input = input;
10
+ }
11
+ static getEndpointParameterInstructions() {
12
+ return {
13
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
+ Endpoint: { type: "builtInParams", name: "endpoint" },
15
+ Region: { type: "builtInParams", name: "region" },
16
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
+ };
18
+ }
19
+ resolveMiddleware(clientStack, configuration, options) {
20
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
21
+ this.middlewareStack.use(getEndpointPlugin(configuration, DeleteVpcIngressConnectionCommand.getEndpointParameterInstructions()));
22
+ const stack = clientStack.concat(this.middlewareStack);
23
+ const { logger } = configuration;
24
+ const clientName = "AppRunnerClient";
25
+ const commandName = "DeleteVpcIngressConnectionCommand";
26
+ const handlerExecutionContext = {
27
+ logger,
28
+ clientName,
29
+ commandName,
30
+ inputFilterSensitiveLog: DeleteVpcIngressConnectionRequestFilterSensitiveLog,
31
+ outputFilterSensitiveLog: DeleteVpcIngressConnectionResponseFilterSensitiveLog,
32
+ };
33
+ const { requestHandler } = configuration;
34
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
35
+ }
36
+ serialize(input, context) {
37
+ return serializeAws_json1_0DeleteVpcIngressConnectionCommand(input, context);
38
+ }
39
+ deserialize(output, context) {
40
+ return deserializeAws_json1_0DeleteVpcIngressConnectionCommand(output, context);
41
+ }
42
+ }
@@ -0,0 +1,42 @@
1
+ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { DescribeVpcIngressConnectionRequestFilterSensitiveLog, DescribeVpcIngressConnectionResponseFilterSensitiveLog, } from "../models/models_0";
5
+ import { deserializeAws_json1_0DescribeVpcIngressConnectionCommand, serializeAws_json1_0DescribeVpcIngressConnectionCommand, } from "../protocols/Aws_json1_0";
6
+ export class DescribeVpcIngressConnectionCommand extends $Command {
7
+ constructor(input) {
8
+ super();
9
+ this.input = input;
10
+ }
11
+ static getEndpointParameterInstructions() {
12
+ return {
13
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
+ Endpoint: { type: "builtInParams", name: "endpoint" },
15
+ Region: { type: "builtInParams", name: "region" },
16
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
+ };
18
+ }
19
+ resolveMiddleware(clientStack, configuration, options) {
20
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
21
+ this.middlewareStack.use(getEndpointPlugin(configuration, DescribeVpcIngressConnectionCommand.getEndpointParameterInstructions()));
22
+ const stack = clientStack.concat(this.middlewareStack);
23
+ const { logger } = configuration;
24
+ const clientName = "AppRunnerClient";
25
+ const commandName = "DescribeVpcIngressConnectionCommand";
26
+ const handlerExecutionContext = {
27
+ logger,
28
+ clientName,
29
+ commandName,
30
+ inputFilterSensitiveLog: DescribeVpcIngressConnectionRequestFilterSensitiveLog,
31
+ outputFilterSensitiveLog: DescribeVpcIngressConnectionResponseFilterSensitiveLog,
32
+ };
33
+ const { requestHandler } = configuration;
34
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
35
+ }
36
+ serialize(input, context) {
37
+ return serializeAws_json1_0DescribeVpcIngressConnectionCommand(input, context);
38
+ }
39
+ deserialize(output, context) {
40
+ return deserializeAws_json1_0DescribeVpcIngressConnectionCommand(output, context);
41
+ }
42
+ }
@@ -0,0 +1,42 @@
1
+ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { ListVpcIngressConnectionsRequestFilterSensitiveLog, ListVpcIngressConnectionsResponseFilterSensitiveLog, } from "../models/models_0";
5
+ import { deserializeAws_json1_0ListVpcIngressConnectionsCommand, serializeAws_json1_0ListVpcIngressConnectionsCommand, } from "../protocols/Aws_json1_0";
6
+ export class ListVpcIngressConnectionsCommand extends $Command {
7
+ constructor(input) {
8
+ super();
9
+ this.input = input;
10
+ }
11
+ static getEndpointParameterInstructions() {
12
+ return {
13
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
+ Endpoint: { type: "builtInParams", name: "endpoint" },
15
+ Region: { type: "builtInParams", name: "region" },
16
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
+ };
18
+ }
19
+ resolveMiddleware(clientStack, configuration, options) {
20
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
21
+ this.middlewareStack.use(getEndpointPlugin(configuration, ListVpcIngressConnectionsCommand.getEndpointParameterInstructions()));
22
+ const stack = clientStack.concat(this.middlewareStack);
23
+ const { logger } = configuration;
24
+ const clientName = "AppRunnerClient";
25
+ const commandName = "ListVpcIngressConnectionsCommand";
26
+ const handlerExecutionContext = {
27
+ logger,
28
+ clientName,
29
+ commandName,
30
+ inputFilterSensitiveLog: ListVpcIngressConnectionsRequestFilterSensitiveLog,
31
+ outputFilterSensitiveLog: ListVpcIngressConnectionsResponseFilterSensitiveLog,
32
+ };
33
+ const { requestHandler } = configuration;
34
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
35
+ }
36
+ serialize(input, context) {
37
+ return serializeAws_json1_0ListVpcIngressConnectionsCommand(input, context);
38
+ }
39
+ deserialize(output, context) {
40
+ return deserializeAws_json1_0ListVpcIngressConnectionsCommand(output, context);
41
+ }
42
+ }
@@ -0,0 +1,42 @@
1
+ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { UpdateVpcIngressConnectionRequestFilterSensitiveLog, UpdateVpcIngressConnectionResponseFilterSensitiveLog, } from "../models/models_0";
5
+ import { deserializeAws_json1_0UpdateVpcIngressConnectionCommand, serializeAws_json1_0UpdateVpcIngressConnectionCommand, } from "../protocols/Aws_json1_0";
6
+ export class UpdateVpcIngressConnectionCommand extends $Command {
7
+ constructor(input) {
8
+ super();
9
+ this.input = input;
10
+ }
11
+ static getEndpointParameterInstructions() {
12
+ return {
13
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
+ Endpoint: { type: "builtInParams", name: "endpoint" },
15
+ Region: { type: "builtInParams", name: "region" },
16
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
+ };
18
+ }
19
+ resolveMiddleware(clientStack, configuration, options) {
20
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
21
+ this.middlewareStack.use(getEndpointPlugin(configuration, UpdateVpcIngressConnectionCommand.getEndpointParameterInstructions()));
22
+ const stack = clientStack.concat(this.middlewareStack);
23
+ const { logger } = configuration;
24
+ const clientName = "AppRunnerClient";
25
+ const commandName = "UpdateVpcIngressConnectionCommand";
26
+ const handlerExecutionContext = {
27
+ logger,
28
+ clientName,
29
+ commandName,
30
+ inputFilterSensitiveLog: UpdateVpcIngressConnectionRequestFilterSensitiveLog,
31
+ outputFilterSensitiveLog: UpdateVpcIngressConnectionResponseFilterSensitiveLog,
32
+ };
33
+ const { requestHandler } = configuration;
34
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
35
+ }
36
+ serialize(input, context) {
37
+ return serializeAws_json1_0UpdateVpcIngressConnectionCommand(input, context);
38
+ }
39
+ deserialize(output, context) {
40
+ return deserializeAws_json1_0UpdateVpcIngressConnectionCommand(output, context);
41
+ }
42
+ }
@@ -4,16 +4,19 @@ export * from "./CreateConnectionCommand";
4
4
  export * from "./CreateObservabilityConfigurationCommand";
5
5
  export * from "./CreateServiceCommand";
6
6
  export * from "./CreateVpcConnectorCommand";
7
+ export * from "./CreateVpcIngressConnectionCommand";
7
8
  export * from "./DeleteAutoScalingConfigurationCommand";
8
9
  export * from "./DeleteConnectionCommand";
9
10
  export * from "./DeleteObservabilityConfigurationCommand";
10
11
  export * from "./DeleteServiceCommand";
11
12
  export * from "./DeleteVpcConnectorCommand";
13
+ export * from "./DeleteVpcIngressConnectionCommand";
12
14
  export * from "./DescribeAutoScalingConfigurationCommand";
13
15
  export * from "./DescribeCustomDomainsCommand";
14
16
  export * from "./DescribeObservabilityConfigurationCommand";
15
17
  export * from "./DescribeServiceCommand";
16
18
  export * from "./DescribeVpcConnectorCommand";
19
+ export * from "./DescribeVpcIngressConnectionCommand";
17
20
  export * from "./DisassociateCustomDomainCommand";
18
21
  export * from "./ListAutoScalingConfigurationsCommand";
19
22
  export * from "./ListConnectionsCommand";
@@ -22,9 +25,11 @@ export * from "./ListOperationsCommand";
22
25
  export * from "./ListServicesCommand";
23
26
  export * from "./ListTagsForResourceCommand";
24
27
  export * from "./ListVpcConnectorsCommand";
28
+ export * from "./ListVpcIngressConnectionsCommand";
25
29
  export * from "./PauseServiceCommand";
26
30
  export * from "./ResumeServiceCommand";
27
31
  export * from "./StartDeploymentCommand";
28
32
  export * from "./TagResourceCommand";
29
33
  export * from "./UntagResourceCommand";
30
34
  export * from "./UpdateServiceCommand";
35
+ export * from "./UpdateVpcIngressConnectionCommand";