@aws-sdk/client-arc-zonal-shift 3.219.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 +219 -0
- package/dist-cjs/ARCZonalShift.js +97 -0
- package/dist-cjs/ARCZonalShiftClient.js +40 -0
- package/dist-cjs/commands/CancelZonalShiftCommand.js +46 -0
- package/dist-cjs/commands/GetManagedResourceCommand.js +46 -0
- package/dist-cjs/commands/ListManagedResourcesCommand.js +46 -0
- package/dist-cjs/commands/ListZonalShiftsCommand.js +46 -0
- package/dist-cjs/commands/StartZonalShiftCommand.js +46 -0
- package/dist-cjs/commands/UpdateZonalShiftCommand.js +46 -0
- package/dist-cjs/commands/index.js +9 -0
- package/dist-cjs/endpoint/EndpointParameters.js +12 -0
- package/dist-cjs/endpoint/endpointResolver.js +12 -0
- package/dist-cjs/endpoint/ruleset.js +312 -0
- package/dist-cjs/index.js +11 -0
- package/dist-cjs/models/ARCZonalShiftServiceException.js +11 -0
- package/dist-cjs/models/index.js +4 -0
- package/dist-cjs/models/models_0.js +164 -0
- package/dist-cjs/pagination/Interfaces.js +2 -0
- package/dist-cjs/pagination/ListManagedResourcesPaginator.js +36 -0
- package/dist-cjs/pagination/ListZonalShiftsPaginator.js +36 -0
- package/dist-cjs/pagination/index.js +6 -0
- package/dist-cjs/protocols/Aws_restJson1.js +703 -0
- package/dist-cjs/runtimeConfig.browser.js +42 -0
- package/dist-cjs/runtimeConfig.js +50 -0
- package/dist-cjs/runtimeConfig.native.js +15 -0
- package/dist-cjs/runtimeConfig.shared.js +18 -0
- package/dist-es/ARCZonalShift.js +93 -0
- package/dist-es/ARCZonalShiftClient.js +36 -0
- package/dist-es/commands/CancelZonalShiftCommand.js +42 -0
- package/dist-es/commands/GetManagedResourceCommand.js +42 -0
- package/dist-es/commands/ListManagedResourcesCommand.js +42 -0
- package/dist-es/commands/ListZonalShiftsCommand.js +42 -0
- package/dist-es/commands/StartZonalShiftCommand.js +42 -0
- package/dist-es/commands/UpdateZonalShiftCommand.js +42 -0
- package/dist-es/commands/index.js +6 -0
- package/dist-es/endpoint/EndpointParameters.js +8 -0
- package/dist-es/endpoint/endpointResolver.js +8 -0
- package/dist-es/endpoint/ruleset.js +309 -0
- package/dist-es/index.js +6 -0
- package/dist-es/models/ARCZonalShiftServiceException.js +7 -0
- package/dist-es/models/index.js +1 -0
- package/dist-es/models/models_0.js +142 -0
- package/dist-es/pagination/Interfaces.js +1 -0
- package/dist-es/pagination/ListManagedResourcesPaginator.js +32 -0
- package/dist-es/pagination/ListZonalShiftsPaginator.js +32 -0
- package/dist-es/pagination/index.js +3 -0
- package/dist-es/protocols/Aws_restJson1.js +688 -0
- package/dist-es/runtimeConfig.browser.js +37 -0
- package/dist-es/runtimeConfig.js +45 -0
- package/dist-es/runtimeConfig.native.js +11 -0
- package/dist-es/runtimeConfig.shared.js +14 -0
- package/dist-types/ARCZonalShift.d.ts +77 -0
- package/dist-types/ARCZonalShiftClient.d.ts +161 -0
- package/dist-types/commands/CancelZonalShiftCommand.d.ts +37 -0
- package/dist-types/commands/GetManagedResourceCommand.d.ts +39 -0
- package/dist-types/commands/ListManagedResourcesCommand.d.ts +39 -0
- package/dist-types/commands/ListZonalShiftsCommand.d.ts +37 -0
- package/dist-types/commands/StartZonalShiftCommand.d.ts +46 -0
- package/dist-types/commands/UpdateZonalShiftCommand.d.ts +38 -0
- package/dist-types/commands/index.d.ts +6 -0
- package/dist-types/endpoint/EndpointParameters.d.ts +19 -0
- package/dist-types/endpoint/endpointResolver.d.ts +5 -0
- package/dist-types/endpoint/ruleset.d.ts +2 -0
- package/dist-types/index.d.ts +6 -0
- package/dist-types/models/ARCZonalShiftServiceException.d.ts +10 -0
- package/dist-types/models/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +503 -0
- package/dist-types/pagination/Interfaces.d.ts +6 -0
- package/dist-types/pagination/ListManagedResourcesPaginator.d.ts +4 -0
- package/dist-types/pagination/ListZonalShiftsPaginator.d.ts +4 -0
- package/dist-types/pagination/index.d.ts +3 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +20 -0
- package/dist-types/runtimeConfig.browser.d.ts +42 -0
- package/dist-types/runtimeConfig.d.ts +42 -0
- package/dist-types/runtimeConfig.native.d.ts +41 -0
- package/dist-types/runtimeConfig.shared.d.ts +16 -0
- package/dist-types/ts3.4/ARCZonalShift.d.ts +106 -0
- package/dist-types/ts3.4/ARCZonalShiftClient.d.ts +148 -0
- package/dist-types/ts3.4/commands/CancelZonalShiftCommand.d.ts +34 -0
- package/dist-types/ts3.4/commands/GetManagedResourceCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/ListManagedResourcesCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/ListZonalShiftsCommand.d.ts +37 -0
- package/dist-types/ts3.4/commands/StartZonalShiftCommand.d.ts +34 -0
- package/dist-types/ts3.4/commands/UpdateZonalShiftCommand.d.ts +34 -0
- package/dist-types/ts3.4/commands/index.d.ts +6 -0
- package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +34 -0
- package/dist-types/ts3.4/endpoint/endpointResolver.d.ts +8 -0
- package/dist-types/ts3.4/endpoint/ruleset.d.ts +2 -0
- package/dist-types/ts3.4/index.d.ts +6 -0
- package/dist-types/ts3.4/models/ARCZonalShiftServiceException.d.ts +7 -0
- package/dist-types/ts3.4/models/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +177 -0
- package/dist-types/ts3.4/pagination/Interfaces.d.ts +7 -0
- package/dist-types/ts3.4/pagination/ListManagedResourcesPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListZonalShiftsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +3 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +77 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +88 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +88 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +77 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +16 -0
- package/package.json +101 -0
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import packageInfo from "../package.json";
|
|
2
|
+
import { Sha256 } from "@aws-crypto/sha256-browser";
|
|
3
|
+
import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws-sdk/config-resolver";
|
|
4
|
+
import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler";
|
|
5
|
+
import { invalidProvider } from "@aws-sdk/invalid-dependency";
|
|
6
|
+
import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry";
|
|
7
|
+
import { calculateBodyLength } from "@aws-sdk/util-body-length-browser";
|
|
8
|
+
import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser";
|
|
9
|
+
import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser";
|
|
10
|
+
import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
|
|
11
|
+
import { loadConfigsForDefaultMode } from "@aws-sdk/smithy-client";
|
|
12
|
+
import { resolveDefaultsModeConfig } from "@aws-sdk/util-defaults-mode-browser";
|
|
13
|
+
export const getRuntimeConfig = (config) => {
|
|
14
|
+
const defaultsMode = resolveDefaultsModeConfig(config);
|
|
15
|
+
const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
|
|
16
|
+
const clientSharedValues = getSharedRuntimeConfig(config);
|
|
17
|
+
return {
|
|
18
|
+
...clientSharedValues,
|
|
19
|
+
...config,
|
|
20
|
+
runtime: "browser",
|
|
21
|
+
defaultsMode,
|
|
22
|
+
bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
|
|
23
|
+
credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_) => () => Promise.reject(new Error("Credential is missing"))),
|
|
24
|
+
defaultUserAgentProvider: config?.defaultUserAgentProvider ??
|
|
25
|
+
defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
|
|
26
|
+
maxAttempts: config?.maxAttempts ?? DEFAULT_MAX_ATTEMPTS,
|
|
27
|
+
region: config?.region ?? invalidProvider("Region is missing"),
|
|
28
|
+
requestHandler: config?.requestHandler ?? new RequestHandler(defaultConfigProvider),
|
|
29
|
+
retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE),
|
|
30
|
+
sha256: config?.sha256 ?? Sha256,
|
|
31
|
+
streamCollector: config?.streamCollector ?? streamCollector,
|
|
32
|
+
useDualstackEndpoint: config?.useDualstackEndpoint ?? (() => Promise.resolve(DEFAULT_USE_DUALSTACK_ENDPOINT)),
|
|
33
|
+
useFipsEndpoint: config?.useFipsEndpoint ?? (() => Promise.resolve(DEFAULT_USE_FIPS_ENDPOINT)),
|
|
34
|
+
utf8Decoder: config?.utf8Decoder ?? fromUtf8,
|
|
35
|
+
utf8Encoder: config?.utf8Encoder ?? toUtf8,
|
|
36
|
+
};
|
|
37
|
+
};
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import packageInfo from "../package.json";
|
|
2
|
+
import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts";
|
|
3
|
+
import { NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, } from "@aws-sdk/config-resolver";
|
|
4
|
+
import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node";
|
|
5
|
+
import { Hash } from "@aws-sdk/hash-node";
|
|
6
|
+
import { DEFAULT_RETRY_MODE, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS, } from "@aws-sdk/middleware-retry";
|
|
7
|
+
import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider";
|
|
8
|
+
import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler";
|
|
9
|
+
import { calculateBodyLength } from "@aws-sdk/util-body-length-node";
|
|
10
|
+
import { defaultUserAgent } from "@aws-sdk/util-user-agent-node";
|
|
11
|
+
import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node";
|
|
12
|
+
import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
|
|
13
|
+
import { loadConfigsForDefaultMode } from "@aws-sdk/smithy-client";
|
|
14
|
+
import { resolveDefaultsModeConfig } from "@aws-sdk/util-defaults-mode-node";
|
|
15
|
+
import { emitWarningIfUnsupportedVersion } from "@aws-sdk/smithy-client";
|
|
16
|
+
export const getRuntimeConfig = (config) => {
|
|
17
|
+
emitWarningIfUnsupportedVersion(process.version);
|
|
18
|
+
const defaultsMode = resolveDefaultsModeConfig(config);
|
|
19
|
+
const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
|
|
20
|
+
const clientSharedValues = getSharedRuntimeConfig(config);
|
|
21
|
+
return {
|
|
22
|
+
...clientSharedValues,
|
|
23
|
+
...config,
|
|
24
|
+
runtime: "node",
|
|
25
|
+
defaultsMode,
|
|
26
|
+
bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
|
|
27
|
+
credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider),
|
|
28
|
+
defaultUserAgentProvider: config?.defaultUserAgentProvider ??
|
|
29
|
+
defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
|
|
30
|
+
maxAttempts: config?.maxAttempts ?? loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
|
|
31
|
+
region: config?.region ?? loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS),
|
|
32
|
+
requestHandler: config?.requestHandler ?? new RequestHandler(defaultConfigProvider),
|
|
33
|
+
retryMode: config?.retryMode ??
|
|
34
|
+
loadNodeConfig({
|
|
35
|
+
...NODE_RETRY_MODE_CONFIG_OPTIONS,
|
|
36
|
+
default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
|
|
37
|
+
}),
|
|
38
|
+
sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
|
|
39
|
+
streamCollector: config?.streamCollector ?? streamCollector,
|
|
40
|
+
useDualstackEndpoint: config?.useDualstackEndpoint ?? loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),
|
|
41
|
+
useFipsEndpoint: config?.useFipsEndpoint ?? loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),
|
|
42
|
+
utf8Decoder: config?.utf8Decoder ?? fromUtf8,
|
|
43
|
+
utf8Encoder: config?.utf8Encoder ?? toUtf8,
|
|
44
|
+
};
|
|
45
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Sha256 } from "@aws-crypto/sha256-js";
|
|
2
|
+
import { getRuntimeConfig as getBrowserRuntimeConfig } from "./runtimeConfig.browser";
|
|
3
|
+
export const getRuntimeConfig = (config) => {
|
|
4
|
+
const browserDefaults = getBrowserRuntimeConfig(config);
|
|
5
|
+
return {
|
|
6
|
+
...browserDefaults,
|
|
7
|
+
...config,
|
|
8
|
+
runtime: "react-native",
|
|
9
|
+
sha256: config?.sha256 ?? Sha256,
|
|
10
|
+
};
|
|
11
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { NoOpLogger } from "@aws-sdk/smithy-client";
|
|
2
|
+
import { parseUrl } from "@aws-sdk/url-parser";
|
|
3
|
+
import { fromBase64, toBase64 } from "@aws-sdk/util-base64";
|
|
4
|
+
import { defaultEndpointResolver } from "./endpoint/endpointResolver";
|
|
5
|
+
export const getRuntimeConfig = (config) => ({
|
|
6
|
+
apiVersion: "2022-10-30",
|
|
7
|
+
base64Decoder: config?.base64Decoder ?? fromBase64,
|
|
8
|
+
base64Encoder: config?.base64Encoder ?? toBase64,
|
|
9
|
+
disableHostPrefix: config?.disableHostPrefix ?? false,
|
|
10
|
+
endpointProvider: config?.endpointProvider ?? defaultEndpointResolver,
|
|
11
|
+
logger: config?.logger ?? new NoOpLogger(),
|
|
12
|
+
serviceId: config?.serviceId ?? "ARC Zonal Shift",
|
|
13
|
+
urlParser: config?.urlParser ?? parseUrl,
|
|
14
|
+
});
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import { HttpHandlerOptions as __HttpHandlerOptions } from "@aws-sdk/types";
|
|
2
|
+
import { ARCZonalShiftClient } from "./ARCZonalShiftClient";
|
|
3
|
+
import { CancelZonalShiftCommandInput, CancelZonalShiftCommandOutput } from "./commands/CancelZonalShiftCommand";
|
|
4
|
+
import { GetManagedResourceCommandInput, GetManagedResourceCommandOutput } from "./commands/GetManagedResourceCommand";
|
|
5
|
+
import { ListManagedResourcesCommandInput, ListManagedResourcesCommandOutput } from "./commands/ListManagedResourcesCommand";
|
|
6
|
+
import { ListZonalShiftsCommandInput, ListZonalShiftsCommandOutput } from "./commands/ListZonalShiftsCommand";
|
|
7
|
+
import { StartZonalShiftCommandInput, StartZonalShiftCommandOutput } from "./commands/StartZonalShiftCommand";
|
|
8
|
+
import { UpdateZonalShiftCommandInput, UpdateZonalShiftCommandOutput } from "./commands/UpdateZonalShiftCommand";
|
|
9
|
+
/**
|
|
10
|
+
* <p>This is the API Reference Guide for the zonal shift feature of Amazon Route 53 Application Recovery Controller. This guide is for developers who need detailed information about
|
|
11
|
+
* zonal shift API actions, data types, and errors.</p>
|
|
12
|
+
* <p>Zonal shift is in preview release for Amazon Route 53 Application Recovery Controller and is subject to change.</p>
|
|
13
|
+
* <p>Zonal shift in Route 53 ARC enables you to move traffic for a load balancer resource away from an Availability Zone. Starting
|
|
14
|
+
* a zonal shift helps your application recover immediately, for example, from a developer's bad code deployment
|
|
15
|
+
* or from an AWS infrastructure failure in a single Availability Zone, reducing the impact and time lost from an issue
|
|
16
|
+
* in one zone. </p>
|
|
17
|
+
* <p>Supported AWS resources are automatically registered with Route 53 ARC. Resources that are registered for zonal shifts
|
|
18
|
+
* in Route 53 ARC are managed resources in Route 53 ARC. You can start a zonal shift for any managed resource in your account in a Region.
|
|
19
|
+
* At this time, you can only start a zonal shift for Network Load Balancers and Application Load Balancers with cross-zone load balancing turned off.</p>
|
|
20
|
+
* <p>Zonal shifts are temporary. You must specify an expiration when you start a zonal shift, of up to three days initially.
|
|
21
|
+
* If you want to still keep traffic away from an Availability Zone, you can update the zonal shift and set a new expiration.
|
|
22
|
+
* You can also cancel a zonal shift, before it expires, for example, if you're ready to restore traffic to the Availability Zone.</p>
|
|
23
|
+
* <p>For more information about using zonal shift, see the
|
|
24
|
+
* <a href="https://docs.aws.amazon.com/r53recovery/latest/dg/what-is-route53-recovery.html">Amazon Route 53 Application Recovery Controller Developer Guide</a>.</p>
|
|
25
|
+
*/
|
|
26
|
+
export declare class ARCZonalShift extends ARCZonalShiftClient {
|
|
27
|
+
/**
|
|
28
|
+
* <p>Cancel a zonal shift in Amazon Route 53 Application Recovery Controller that you've started for a resource in your AWS account in an AWS Region. </p>
|
|
29
|
+
*/
|
|
30
|
+
cancelZonalShift(args: CancelZonalShiftCommandInput, options?: __HttpHandlerOptions): Promise<CancelZonalShiftCommandOutput>;
|
|
31
|
+
cancelZonalShift(args: CancelZonalShiftCommandInput, cb: (err: any, data?: CancelZonalShiftCommandOutput) => void): void;
|
|
32
|
+
cancelZonalShift(args: CancelZonalShiftCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CancelZonalShiftCommandOutput) => void): void;
|
|
33
|
+
/**
|
|
34
|
+
* <p>Get information about a resource that's been registered for zonal shifts with Amazon Route 53 Application Recovery Controller in this AWS Region. Resources that are registered for
|
|
35
|
+
* zonal shifts are managed resources in Route 53 ARC.</p>
|
|
36
|
+
* <p>At this time, you can only start a zonal shift for Network Load Balancers and Application Load Balancers with cross-zone load balancing turned off.</p>
|
|
37
|
+
*/
|
|
38
|
+
getManagedResource(args: GetManagedResourceCommandInput, options?: __HttpHandlerOptions): Promise<GetManagedResourceCommandOutput>;
|
|
39
|
+
getManagedResource(args: GetManagedResourceCommandInput, cb: (err: any, data?: GetManagedResourceCommandOutput) => void): void;
|
|
40
|
+
getManagedResource(args: GetManagedResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetManagedResourceCommandOutput) => void): void;
|
|
41
|
+
/**
|
|
42
|
+
* <p>Lists all the resources in your AWS account in this AWS Region that are managed for zonal shifts in Amazon Route 53 Application Recovery Controller, and information
|
|
43
|
+
* about them. The information includes their Amazon Resource Names (ARNs), the Availability Zones the resources are deployed in, and
|
|
44
|
+
* the resource name.</p>
|
|
45
|
+
*/
|
|
46
|
+
listManagedResources(args: ListManagedResourcesCommandInput, options?: __HttpHandlerOptions): Promise<ListManagedResourcesCommandOutput>;
|
|
47
|
+
listManagedResources(args: ListManagedResourcesCommandInput, cb: (err: any, data?: ListManagedResourcesCommandOutput) => void): void;
|
|
48
|
+
listManagedResources(args: ListManagedResourcesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListManagedResourcesCommandOutput) => void): void;
|
|
49
|
+
/**
|
|
50
|
+
* <p>Lists all the active zonal shifts in Amazon Route 53 Application Recovery Controller in your AWS account in this AWS Region.</p>
|
|
51
|
+
*/
|
|
52
|
+
listZonalShifts(args: ListZonalShiftsCommandInput, options?: __HttpHandlerOptions): Promise<ListZonalShiftsCommandOutput>;
|
|
53
|
+
listZonalShifts(args: ListZonalShiftsCommandInput, cb: (err: any, data?: ListZonalShiftsCommandOutput) => void): void;
|
|
54
|
+
listZonalShifts(args: ListZonalShiftsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListZonalShiftsCommandOutput) => void): void;
|
|
55
|
+
/**
|
|
56
|
+
* <p>You start a zonal shift to temporarily move load balancer traffic away from an Availability Zone in a AWS Region,
|
|
57
|
+
* to help your application recover immediately, for example, from a developer's bad code deployment or from an AWS
|
|
58
|
+
* infrastructure failure in a single Availability Zone. You can start a zonal shift in Route 53 ARC only for managed
|
|
59
|
+
* resources in your account in an AWS Region. Resources are automatically registered with Route 53 ARC by AWS services.</p>
|
|
60
|
+
* <p>At this time, you can only start a zonal shift for Network Load Balancers and Application Load Balancers with cross-zone load balancing turned off.</p>
|
|
61
|
+
* <p>When you start a zonal shift, traffic for the resource is no longer routed to the Availability Zone. The
|
|
62
|
+
* zonal shift is created immediately in Route 53 ARC. However, it can take a short time, typically up to a few minutes,
|
|
63
|
+
* for existing, in-progress connections in the Availability Zone to complete.</p>
|
|
64
|
+
* <p>For more information, see <a href="https://docs.aws.amazon.com/r53recovery/latest/dg/arc-zonal-shift.html">Zonal shift</a>
|
|
65
|
+
* in the Amazon Route 53 Application Recovery Controller Developer Guide.</p>
|
|
66
|
+
*/
|
|
67
|
+
startZonalShift(args: StartZonalShiftCommandInput, options?: __HttpHandlerOptions): Promise<StartZonalShiftCommandOutput>;
|
|
68
|
+
startZonalShift(args: StartZonalShiftCommandInput, cb: (err: any, data?: StartZonalShiftCommandOutput) => void): void;
|
|
69
|
+
startZonalShift(args: StartZonalShiftCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: StartZonalShiftCommandOutput) => void): void;
|
|
70
|
+
/**
|
|
71
|
+
* <p>Update an active zonal shift in Amazon Route 53 Application Recovery Controller in your AWS account. You can update a zonal shift to set a new expiration, or
|
|
72
|
+
* edit or replace the comment for the zonal shift. </p>
|
|
73
|
+
*/
|
|
74
|
+
updateZonalShift(args: UpdateZonalShiftCommandInput, options?: __HttpHandlerOptions): Promise<UpdateZonalShiftCommandOutput>;
|
|
75
|
+
updateZonalShift(args: UpdateZonalShiftCommandInput, cb: (err: any, data?: UpdateZonalShiftCommandOutput) => void): void;
|
|
76
|
+
updateZonalShift(args: UpdateZonalShiftCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateZonalShiftCommandOutput) => void): void;
|
|
77
|
+
}
|
|
@@ -0,0 +1,161 @@
|
|
|
1
|
+
import { RegionInputConfig, RegionResolvedConfig } from "@aws-sdk/config-resolver";
|
|
2
|
+
import { EndpointInputConfig, EndpointResolvedConfig } from "@aws-sdk/middleware-endpoint";
|
|
3
|
+
import { HostHeaderInputConfig, HostHeaderResolvedConfig } from "@aws-sdk/middleware-host-header";
|
|
4
|
+
import { RetryInputConfig, RetryResolvedConfig } from "@aws-sdk/middleware-retry";
|
|
5
|
+
import { AwsAuthInputConfig, AwsAuthResolvedConfig } from "@aws-sdk/middleware-signing";
|
|
6
|
+
import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
|
|
7
|
+
import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
|
|
8
|
+
import { Client as __Client, DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
|
|
9
|
+
import { BodyLengthCalculator as __BodyLengthCalculator, Credentials as __Credentials, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@aws-sdk/types";
|
|
10
|
+
import { CancelZonalShiftCommandInput, CancelZonalShiftCommandOutput } from "./commands/CancelZonalShiftCommand";
|
|
11
|
+
import { GetManagedResourceCommandInput, GetManagedResourceCommandOutput } from "./commands/GetManagedResourceCommand";
|
|
12
|
+
import { ListManagedResourcesCommandInput, ListManagedResourcesCommandOutput } from "./commands/ListManagedResourcesCommand";
|
|
13
|
+
import { ListZonalShiftsCommandInput, ListZonalShiftsCommandOutput } from "./commands/ListZonalShiftsCommand";
|
|
14
|
+
import { StartZonalShiftCommandInput, StartZonalShiftCommandOutput } from "./commands/StartZonalShiftCommand";
|
|
15
|
+
import { UpdateZonalShiftCommandInput, UpdateZonalShiftCommandOutput } from "./commands/UpdateZonalShiftCommand";
|
|
16
|
+
import { ClientInputEndpointParameters, ClientResolvedEndpointParameters, EndpointParameters } from "./endpoint/EndpointParameters";
|
|
17
|
+
export declare type ServiceInputTypes = CancelZonalShiftCommandInput | GetManagedResourceCommandInput | ListManagedResourcesCommandInput | ListZonalShiftsCommandInput | StartZonalShiftCommandInput | UpdateZonalShiftCommandInput;
|
|
18
|
+
export declare type ServiceOutputTypes = CancelZonalShiftCommandOutput | GetManagedResourceCommandOutput | ListManagedResourcesCommandOutput | ListZonalShiftsCommandOutput | StartZonalShiftCommandOutput | UpdateZonalShiftCommandOutput;
|
|
19
|
+
export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
|
|
20
|
+
/**
|
|
21
|
+
* The HTTP handler to use. Fetch in browser and Https in Nodejs.
|
|
22
|
+
*/
|
|
23
|
+
requestHandler?: __HttpHandler;
|
|
24
|
+
/**
|
|
25
|
+
* A constructor for a class implementing the {@link __Hash} interface
|
|
26
|
+
* that computes the SHA-256 HMAC or checksum of a string or binary buffer.
|
|
27
|
+
* @internal
|
|
28
|
+
*/
|
|
29
|
+
sha256?: __HashConstructor;
|
|
30
|
+
/**
|
|
31
|
+
* The function that will be used to convert strings into HTTP endpoints.
|
|
32
|
+
* @internal
|
|
33
|
+
*/
|
|
34
|
+
urlParser?: __UrlParser;
|
|
35
|
+
/**
|
|
36
|
+
* A function that can calculate the length of a request body.
|
|
37
|
+
* @internal
|
|
38
|
+
*/
|
|
39
|
+
bodyLengthChecker?: __BodyLengthCalculator;
|
|
40
|
+
/**
|
|
41
|
+
* A function that converts a stream into an array of bytes.
|
|
42
|
+
* @internal
|
|
43
|
+
*/
|
|
44
|
+
streamCollector?: __StreamCollector;
|
|
45
|
+
/**
|
|
46
|
+
* The function that will be used to convert a base64-encoded string to a byte array.
|
|
47
|
+
* @internal
|
|
48
|
+
*/
|
|
49
|
+
base64Decoder?: __Decoder;
|
|
50
|
+
/**
|
|
51
|
+
* The function that will be used to convert binary data to a base64-encoded string.
|
|
52
|
+
* @internal
|
|
53
|
+
*/
|
|
54
|
+
base64Encoder?: __Encoder;
|
|
55
|
+
/**
|
|
56
|
+
* The function that will be used to convert a UTF8-encoded string to a byte array.
|
|
57
|
+
* @internal
|
|
58
|
+
*/
|
|
59
|
+
utf8Decoder?: __Decoder;
|
|
60
|
+
/**
|
|
61
|
+
* The function that will be used to convert binary data to a UTF-8 encoded string.
|
|
62
|
+
* @internal
|
|
63
|
+
*/
|
|
64
|
+
utf8Encoder?: __Encoder;
|
|
65
|
+
/**
|
|
66
|
+
* The runtime environment.
|
|
67
|
+
* @internal
|
|
68
|
+
*/
|
|
69
|
+
runtime?: string;
|
|
70
|
+
/**
|
|
71
|
+
* Disable dyanamically changing the endpoint of the client based on the hostPrefix
|
|
72
|
+
* trait of an operation.
|
|
73
|
+
*/
|
|
74
|
+
disableHostPrefix?: boolean;
|
|
75
|
+
/**
|
|
76
|
+
* Value for how many times a request will be made at most in case of retry.
|
|
77
|
+
*/
|
|
78
|
+
maxAttempts?: number | __Provider<number>;
|
|
79
|
+
/**
|
|
80
|
+
* Specifies which retry algorithm to use.
|
|
81
|
+
*/
|
|
82
|
+
retryMode?: string | __Provider<string>;
|
|
83
|
+
/**
|
|
84
|
+
* Optional logger for logging debug/info/warn/error.
|
|
85
|
+
*/
|
|
86
|
+
logger?: __Logger;
|
|
87
|
+
/**
|
|
88
|
+
* Enables IPv6/IPv4 dualstack endpoint.
|
|
89
|
+
*/
|
|
90
|
+
useDualstackEndpoint?: boolean | __Provider<boolean>;
|
|
91
|
+
/**
|
|
92
|
+
* Enables FIPS compatible endpoints.
|
|
93
|
+
*/
|
|
94
|
+
useFipsEndpoint?: boolean | __Provider<boolean>;
|
|
95
|
+
/**
|
|
96
|
+
* Unique service identifier.
|
|
97
|
+
* @internal
|
|
98
|
+
*/
|
|
99
|
+
serviceId?: string;
|
|
100
|
+
/**
|
|
101
|
+
* The AWS region to which this client will send requests
|
|
102
|
+
*/
|
|
103
|
+
region?: string | __Provider<string>;
|
|
104
|
+
/**
|
|
105
|
+
* Default credentials provider; Not available in browser runtime.
|
|
106
|
+
* @internal
|
|
107
|
+
*/
|
|
108
|
+
credentialDefaultProvider?: (input: any) => __Provider<__Credentials>;
|
|
109
|
+
/**
|
|
110
|
+
* The provider populating default tracking information to be sent with `user-agent`, `x-amz-user-agent` header
|
|
111
|
+
* @internal
|
|
112
|
+
*/
|
|
113
|
+
defaultUserAgentProvider?: Provider<__UserAgent>;
|
|
114
|
+
/**
|
|
115
|
+
* The {@link DefaultsMode} that will be used to determine how certain default configuration options are resolved in the SDK.
|
|
116
|
+
*/
|
|
117
|
+
defaultsMode?: DefaultsMode | Provider<DefaultsMode>;
|
|
118
|
+
}
|
|
119
|
+
declare type ARCZonalShiftClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & RegionInputConfig & EndpointInputConfig<EndpointParameters> & RetryInputConfig & HostHeaderInputConfig & AwsAuthInputConfig & UserAgentInputConfig & ClientInputEndpointParameters;
|
|
120
|
+
/**
|
|
121
|
+
* The configuration interface of ARCZonalShiftClient class constructor that set the region, credentials and other options.
|
|
122
|
+
*/
|
|
123
|
+
export interface ARCZonalShiftClientConfig extends ARCZonalShiftClientConfigType {
|
|
124
|
+
}
|
|
125
|
+
declare type ARCZonalShiftClientResolvedConfigType = __SmithyResolvedConfiguration<__HttpHandlerOptions> & Required<ClientDefaults> & RegionResolvedConfig & EndpointResolvedConfig<EndpointParameters> & RetryResolvedConfig & HostHeaderResolvedConfig & AwsAuthResolvedConfig & UserAgentResolvedConfig & ClientResolvedEndpointParameters;
|
|
126
|
+
/**
|
|
127
|
+
* The resolved configuration interface of ARCZonalShiftClient class. This is resolved and normalized from the {@link ARCZonalShiftClientConfig | constructor configuration interface}.
|
|
128
|
+
*/
|
|
129
|
+
export interface ARCZonalShiftClientResolvedConfig extends ARCZonalShiftClientResolvedConfigType {
|
|
130
|
+
}
|
|
131
|
+
/**
|
|
132
|
+
* <p>This is the API Reference Guide for the zonal shift feature of Amazon Route 53 Application Recovery Controller. This guide is for developers who need detailed information about
|
|
133
|
+
* zonal shift API actions, data types, and errors.</p>
|
|
134
|
+
* <p>Zonal shift is in preview release for Amazon Route 53 Application Recovery Controller and is subject to change.</p>
|
|
135
|
+
* <p>Zonal shift in Route 53 ARC enables you to move traffic for a load balancer resource away from an Availability Zone. Starting
|
|
136
|
+
* a zonal shift helps your application recover immediately, for example, from a developer's bad code deployment
|
|
137
|
+
* or from an AWS infrastructure failure in a single Availability Zone, reducing the impact and time lost from an issue
|
|
138
|
+
* in one zone. </p>
|
|
139
|
+
* <p>Supported AWS resources are automatically registered with Route 53 ARC. Resources that are registered for zonal shifts
|
|
140
|
+
* in Route 53 ARC are managed resources in Route 53 ARC. You can start a zonal shift for any managed resource in your account in a Region.
|
|
141
|
+
* At this time, you can only start a zonal shift for Network Load Balancers and Application Load Balancers with cross-zone load balancing turned off.</p>
|
|
142
|
+
* <p>Zonal shifts are temporary. You must specify an expiration when you start a zonal shift, of up to three days initially.
|
|
143
|
+
* If you want to still keep traffic away from an Availability Zone, you can update the zonal shift and set a new expiration.
|
|
144
|
+
* You can also cancel a zonal shift, before it expires, for example, if you're ready to restore traffic to the Availability Zone.</p>
|
|
145
|
+
* <p>For more information about using zonal shift, see the
|
|
146
|
+
* <a href="https://docs.aws.amazon.com/r53recovery/latest/dg/what-is-route53-recovery.html">Amazon Route 53 Application Recovery Controller Developer Guide</a>.</p>
|
|
147
|
+
*/
|
|
148
|
+
export declare class ARCZonalShiftClient extends __Client<__HttpHandlerOptions, ServiceInputTypes, ServiceOutputTypes, ARCZonalShiftClientResolvedConfig> {
|
|
149
|
+
/**
|
|
150
|
+
* The resolved configuration of ARCZonalShiftClient class. This is resolved and normalized from the {@link ARCZonalShiftClientConfig | constructor configuration interface}.
|
|
151
|
+
*/
|
|
152
|
+
readonly config: ARCZonalShiftClientResolvedConfig;
|
|
153
|
+
constructor(configuration: ARCZonalShiftClientConfig);
|
|
154
|
+
/**
|
|
155
|
+
* Destroy underlying resources, like sockets. It's usually not necessary to do this.
|
|
156
|
+
* However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
|
|
157
|
+
* Otherwise, sockets might stay open for quite a long time before the server terminates them.
|
|
158
|
+
*/
|
|
159
|
+
destroy(): void;
|
|
160
|
+
}
|
|
161
|
+
export {};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
|
|
2
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
3
|
+
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
|
|
4
|
+
import { ARCZonalShiftClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ARCZonalShiftClient";
|
|
5
|
+
import { CancelZonalShiftRequest, ZonalShift } from "../models/models_0";
|
|
6
|
+
export interface CancelZonalShiftCommandInput extends CancelZonalShiftRequest {
|
|
7
|
+
}
|
|
8
|
+
export interface CancelZonalShiftCommandOutput extends ZonalShift, __MetadataBearer {
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* <p>Cancel a zonal shift in Amazon Route 53 Application Recovery Controller that you've started for a resource in your AWS account in an AWS Region. </p>
|
|
12
|
+
* @example
|
|
13
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
14
|
+
* ```javascript
|
|
15
|
+
* import { ARCZonalShiftClient, CancelZonalShiftCommand } from "@aws-sdk/client-arc-zonal-shift"; // ES Modules import
|
|
16
|
+
* // const { ARCZonalShiftClient, CancelZonalShiftCommand } = require("@aws-sdk/client-arc-zonal-shift"); // CommonJS import
|
|
17
|
+
* const client = new ARCZonalShiftClient(config);
|
|
18
|
+
* const command = new CancelZonalShiftCommand(input);
|
|
19
|
+
* const response = await client.send(command);
|
|
20
|
+
* ```
|
|
21
|
+
*
|
|
22
|
+
* @see {@link CancelZonalShiftCommandInput} for command's `input` shape.
|
|
23
|
+
* @see {@link CancelZonalShiftCommandOutput} for command's `response` shape.
|
|
24
|
+
* @see {@link ARCZonalShiftClientResolvedConfig | config} for ARCZonalShiftClient's `config` shape.
|
|
25
|
+
*
|
|
26
|
+
*/
|
|
27
|
+
export declare class CancelZonalShiftCommand extends $Command<CancelZonalShiftCommandInput, CancelZonalShiftCommandOutput, ARCZonalShiftClientResolvedConfig> {
|
|
28
|
+
readonly input: CancelZonalShiftCommandInput;
|
|
29
|
+
static getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
30
|
+
constructor(input: CancelZonalShiftCommandInput);
|
|
31
|
+
/**
|
|
32
|
+
* @internal
|
|
33
|
+
*/
|
|
34
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: ARCZonalShiftClientResolvedConfig, options?: __HttpHandlerOptions): Handler<CancelZonalShiftCommandInput, CancelZonalShiftCommandOutput>;
|
|
35
|
+
private serialize;
|
|
36
|
+
private deserialize;
|
|
37
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
|
|
2
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
3
|
+
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
|
|
4
|
+
import { ARCZonalShiftClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ARCZonalShiftClient";
|
|
5
|
+
import { GetManagedResourceRequest, GetManagedResourceResponse } from "../models/models_0";
|
|
6
|
+
export interface GetManagedResourceCommandInput extends GetManagedResourceRequest {
|
|
7
|
+
}
|
|
8
|
+
export interface GetManagedResourceCommandOutput extends GetManagedResourceResponse, __MetadataBearer {
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* <p>Get information about a resource that's been registered for zonal shifts with Amazon Route 53 Application Recovery Controller in this AWS Region. Resources that are registered for
|
|
12
|
+
* zonal shifts are managed resources in Route 53 ARC.</p>
|
|
13
|
+
* <p>At this time, you can only start a zonal shift for Network Load Balancers and Application Load Balancers with cross-zone load balancing turned off.</p>
|
|
14
|
+
* @example
|
|
15
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
16
|
+
* ```javascript
|
|
17
|
+
* import { ARCZonalShiftClient, GetManagedResourceCommand } from "@aws-sdk/client-arc-zonal-shift"; // ES Modules import
|
|
18
|
+
* // const { ARCZonalShiftClient, GetManagedResourceCommand } = require("@aws-sdk/client-arc-zonal-shift"); // CommonJS import
|
|
19
|
+
* const client = new ARCZonalShiftClient(config);
|
|
20
|
+
* const command = new GetManagedResourceCommand(input);
|
|
21
|
+
* const response = await client.send(command);
|
|
22
|
+
* ```
|
|
23
|
+
*
|
|
24
|
+
* @see {@link GetManagedResourceCommandInput} for command's `input` shape.
|
|
25
|
+
* @see {@link GetManagedResourceCommandOutput} for command's `response` shape.
|
|
26
|
+
* @see {@link ARCZonalShiftClientResolvedConfig | config} for ARCZonalShiftClient's `config` shape.
|
|
27
|
+
*
|
|
28
|
+
*/
|
|
29
|
+
export declare class GetManagedResourceCommand extends $Command<GetManagedResourceCommandInput, GetManagedResourceCommandOutput, ARCZonalShiftClientResolvedConfig> {
|
|
30
|
+
readonly input: GetManagedResourceCommandInput;
|
|
31
|
+
static getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
32
|
+
constructor(input: GetManagedResourceCommandInput);
|
|
33
|
+
/**
|
|
34
|
+
* @internal
|
|
35
|
+
*/
|
|
36
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: ARCZonalShiftClientResolvedConfig, options?: __HttpHandlerOptions): Handler<GetManagedResourceCommandInput, GetManagedResourceCommandOutput>;
|
|
37
|
+
private serialize;
|
|
38
|
+
private deserialize;
|
|
39
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
|
|
2
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
3
|
+
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
|
|
4
|
+
import { ARCZonalShiftClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ARCZonalShiftClient";
|
|
5
|
+
import { ListManagedResourcesRequest, ListManagedResourcesResponse } from "../models/models_0";
|
|
6
|
+
export interface ListManagedResourcesCommandInput extends ListManagedResourcesRequest {
|
|
7
|
+
}
|
|
8
|
+
export interface ListManagedResourcesCommandOutput extends ListManagedResourcesResponse, __MetadataBearer {
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* <p>Lists all the resources in your AWS account in this AWS Region that are managed for zonal shifts in Amazon Route 53 Application Recovery Controller, and information
|
|
12
|
+
* about them. The information includes their Amazon Resource Names (ARNs), the Availability Zones the resources are deployed in, and
|
|
13
|
+
* the resource name.</p>
|
|
14
|
+
* @example
|
|
15
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
16
|
+
* ```javascript
|
|
17
|
+
* import { ARCZonalShiftClient, ListManagedResourcesCommand } from "@aws-sdk/client-arc-zonal-shift"; // ES Modules import
|
|
18
|
+
* // const { ARCZonalShiftClient, ListManagedResourcesCommand } = require("@aws-sdk/client-arc-zonal-shift"); // CommonJS import
|
|
19
|
+
* const client = new ARCZonalShiftClient(config);
|
|
20
|
+
* const command = new ListManagedResourcesCommand(input);
|
|
21
|
+
* const response = await client.send(command);
|
|
22
|
+
* ```
|
|
23
|
+
*
|
|
24
|
+
* @see {@link ListManagedResourcesCommandInput} for command's `input` shape.
|
|
25
|
+
* @see {@link ListManagedResourcesCommandOutput} for command's `response` shape.
|
|
26
|
+
* @see {@link ARCZonalShiftClientResolvedConfig | config} for ARCZonalShiftClient's `config` shape.
|
|
27
|
+
*
|
|
28
|
+
*/
|
|
29
|
+
export declare class ListManagedResourcesCommand extends $Command<ListManagedResourcesCommandInput, ListManagedResourcesCommandOutput, ARCZonalShiftClientResolvedConfig> {
|
|
30
|
+
readonly input: ListManagedResourcesCommandInput;
|
|
31
|
+
static getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
32
|
+
constructor(input: ListManagedResourcesCommandInput);
|
|
33
|
+
/**
|
|
34
|
+
* @internal
|
|
35
|
+
*/
|
|
36
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: ARCZonalShiftClientResolvedConfig, options?: __HttpHandlerOptions): Handler<ListManagedResourcesCommandInput, ListManagedResourcesCommandOutput>;
|
|
37
|
+
private serialize;
|
|
38
|
+
private deserialize;
|
|
39
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
|
|
2
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
3
|
+
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
|
|
4
|
+
import { ARCZonalShiftClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ARCZonalShiftClient";
|
|
5
|
+
import { ListZonalShiftsRequest, ListZonalShiftsResponse } from "../models/models_0";
|
|
6
|
+
export interface ListZonalShiftsCommandInput extends ListZonalShiftsRequest {
|
|
7
|
+
}
|
|
8
|
+
export interface ListZonalShiftsCommandOutput extends ListZonalShiftsResponse, __MetadataBearer {
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* <p>Lists all the active zonal shifts in Amazon Route 53 Application Recovery Controller in your AWS account in this AWS Region.</p>
|
|
12
|
+
* @example
|
|
13
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
14
|
+
* ```javascript
|
|
15
|
+
* import { ARCZonalShiftClient, ListZonalShiftsCommand } from "@aws-sdk/client-arc-zonal-shift"; // ES Modules import
|
|
16
|
+
* // const { ARCZonalShiftClient, ListZonalShiftsCommand } = require("@aws-sdk/client-arc-zonal-shift"); // CommonJS import
|
|
17
|
+
* const client = new ARCZonalShiftClient(config);
|
|
18
|
+
* const command = new ListZonalShiftsCommand(input);
|
|
19
|
+
* const response = await client.send(command);
|
|
20
|
+
* ```
|
|
21
|
+
*
|
|
22
|
+
* @see {@link ListZonalShiftsCommandInput} for command's `input` shape.
|
|
23
|
+
* @see {@link ListZonalShiftsCommandOutput} for command's `response` shape.
|
|
24
|
+
* @see {@link ARCZonalShiftClientResolvedConfig | config} for ARCZonalShiftClient's `config` shape.
|
|
25
|
+
*
|
|
26
|
+
*/
|
|
27
|
+
export declare class ListZonalShiftsCommand extends $Command<ListZonalShiftsCommandInput, ListZonalShiftsCommandOutput, ARCZonalShiftClientResolvedConfig> {
|
|
28
|
+
readonly input: ListZonalShiftsCommandInput;
|
|
29
|
+
static getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
30
|
+
constructor(input: ListZonalShiftsCommandInput);
|
|
31
|
+
/**
|
|
32
|
+
* @internal
|
|
33
|
+
*/
|
|
34
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: ARCZonalShiftClientResolvedConfig, options?: __HttpHandlerOptions): Handler<ListZonalShiftsCommandInput, ListZonalShiftsCommandOutput>;
|
|
35
|
+
private serialize;
|
|
36
|
+
private deserialize;
|
|
37
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
|
|
2
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
3
|
+
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
|
|
4
|
+
import { ARCZonalShiftClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ARCZonalShiftClient";
|
|
5
|
+
import { StartZonalShiftRequest, ZonalShift } from "../models/models_0";
|
|
6
|
+
export interface StartZonalShiftCommandInput extends StartZonalShiftRequest {
|
|
7
|
+
}
|
|
8
|
+
export interface StartZonalShiftCommandOutput extends ZonalShift, __MetadataBearer {
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* <p>You start a zonal shift to temporarily move load balancer traffic away from an Availability Zone in a AWS Region,
|
|
12
|
+
* to help your application recover immediately, for example, from a developer's bad code deployment or from an AWS
|
|
13
|
+
* infrastructure failure in a single Availability Zone. You can start a zonal shift in Route 53 ARC only for managed
|
|
14
|
+
* resources in your account in an AWS Region. Resources are automatically registered with Route 53 ARC by AWS services.</p>
|
|
15
|
+
* <p>At this time, you can only start a zonal shift for Network Load Balancers and Application Load Balancers with cross-zone load balancing turned off.</p>
|
|
16
|
+
* <p>When you start a zonal shift, traffic for the resource is no longer routed to the Availability Zone. The
|
|
17
|
+
* zonal shift is created immediately in Route 53 ARC. However, it can take a short time, typically up to a few minutes,
|
|
18
|
+
* for existing, in-progress connections in the Availability Zone to complete.</p>
|
|
19
|
+
* <p>For more information, see <a href="https://docs.aws.amazon.com/r53recovery/latest/dg/arc-zonal-shift.html">Zonal shift</a>
|
|
20
|
+
* in the Amazon Route 53 Application Recovery Controller Developer Guide.</p>
|
|
21
|
+
* @example
|
|
22
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
23
|
+
* ```javascript
|
|
24
|
+
* import { ARCZonalShiftClient, StartZonalShiftCommand } from "@aws-sdk/client-arc-zonal-shift"; // ES Modules import
|
|
25
|
+
* // const { ARCZonalShiftClient, StartZonalShiftCommand } = require("@aws-sdk/client-arc-zonal-shift"); // CommonJS import
|
|
26
|
+
* const client = new ARCZonalShiftClient(config);
|
|
27
|
+
* const command = new StartZonalShiftCommand(input);
|
|
28
|
+
* const response = await client.send(command);
|
|
29
|
+
* ```
|
|
30
|
+
*
|
|
31
|
+
* @see {@link StartZonalShiftCommandInput} for command's `input` shape.
|
|
32
|
+
* @see {@link StartZonalShiftCommandOutput} for command's `response` shape.
|
|
33
|
+
* @see {@link ARCZonalShiftClientResolvedConfig | config} for ARCZonalShiftClient's `config` shape.
|
|
34
|
+
*
|
|
35
|
+
*/
|
|
36
|
+
export declare class StartZonalShiftCommand extends $Command<StartZonalShiftCommandInput, StartZonalShiftCommandOutput, ARCZonalShiftClientResolvedConfig> {
|
|
37
|
+
readonly input: StartZonalShiftCommandInput;
|
|
38
|
+
static getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
39
|
+
constructor(input: StartZonalShiftCommandInput);
|
|
40
|
+
/**
|
|
41
|
+
* @internal
|
|
42
|
+
*/
|
|
43
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: ARCZonalShiftClientResolvedConfig, options?: __HttpHandlerOptions): Handler<StartZonalShiftCommandInput, StartZonalShiftCommandOutput>;
|
|
44
|
+
private serialize;
|
|
45
|
+
private deserialize;
|
|
46
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
|
|
2
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
3
|
+
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
|
|
4
|
+
import { ARCZonalShiftClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ARCZonalShiftClient";
|
|
5
|
+
import { UpdateZonalShiftRequest, ZonalShift } from "../models/models_0";
|
|
6
|
+
export interface UpdateZonalShiftCommandInput extends UpdateZonalShiftRequest {
|
|
7
|
+
}
|
|
8
|
+
export interface UpdateZonalShiftCommandOutput extends ZonalShift, __MetadataBearer {
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* <p>Update an active zonal shift in Amazon Route 53 Application Recovery Controller in your AWS account. You can update a zonal shift to set a new expiration, or
|
|
12
|
+
* edit or replace the comment for the zonal shift. </p>
|
|
13
|
+
* @example
|
|
14
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
15
|
+
* ```javascript
|
|
16
|
+
* import { ARCZonalShiftClient, UpdateZonalShiftCommand } from "@aws-sdk/client-arc-zonal-shift"; // ES Modules import
|
|
17
|
+
* // const { ARCZonalShiftClient, UpdateZonalShiftCommand } = require("@aws-sdk/client-arc-zonal-shift"); // CommonJS import
|
|
18
|
+
* const client = new ARCZonalShiftClient(config);
|
|
19
|
+
* const command = new UpdateZonalShiftCommand(input);
|
|
20
|
+
* const response = await client.send(command);
|
|
21
|
+
* ```
|
|
22
|
+
*
|
|
23
|
+
* @see {@link UpdateZonalShiftCommandInput} for command's `input` shape.
|
|
24
|
+
* @see {@link UpdateZonalShiftCommandOutput} for command's `response` shape.
|
|
25
|
+
* @see {@link ARCZonalShiftClientResolvedConfig | config} for ARCZonalShiftClient's `config` shape.
|
|
26
|
+
*
|
|
27
|
+
*/
|
|
28
|
+
export declare class UpdateZonalShiftCommand extends $Command<UpdateZonalShiftCommandInput, UpdateZonalShiftCommandOutput, ARCZonalShiftClientResolvedConfig> {
|
|
29
|
+
readonly input: UpdateZonalShiftCommandInput;
|
|
30
|
+
static getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
31
|
+
constructor(input: UpdateZonalShiftCommandInput);
|
|
32
|
+
/**
|
|
33
|
+
* @internal
|
|
34
|
+
*/
|
|
35
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: ARCZonalShiftClientResolvedConfig, options?: __HttpHandlerOptions): Handler<UpdateZonalShiftCommandInput, UpdateZonalShiftCommandOutput>;
|
|
36
|
+
private serialize;
|
|
37
|
+
private deserialize;
|
|
38
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export * from "./CancelZonalShiftCommand";
|
|
2
|
+
export * from "./GetManagedResourceCommand";
|
|
3
|
+
export * from "./ListManagedResourcesCommand";
|
|
4
|
+
export * from "./ListZonalShiftsCommand";
|
|
5
|
+
export * from "./StartZonalShiftCommand";
|
|
6
|
+
export * from "./UpdateZonalShiftCommand";
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { Endpoint, EndpointParameters as __EndpointParameters, EndpointV2, Provider } from "@aws-sdk/types";
|
|
2
|
+
export interface ClientInputEndpointParameters {
|
|
3
|
+
region?: string | Provider<string>;
|
|
4
|
+
useDualstackEndpoint?: boolean | Provider<boolean>;
|
|
5
|
+
useFipsEndpoint?: boolean | Provider<boolean>;
|
|
6
|
+
endpoint?: string | Provider<string> | Endpoint | Provider<Endpoint> | EndpointV2 | Provider<EndpointV2>;
|
|
7
|
+
}
|
|
8
|
+
export declare type ClientResolvedEndpointParameters = ClientInputEndpointParameters & {
|
|
9
|
+
defaultSigningName: string;
|
|
10
|
+
};
|
|
11
|
+
export declare const resolveClientEndpointParameters: <T>(options: T & ClientInputEndpointParameters) => T & ClientInputEndpointParameters & {
|
|
12
|
+
defaultSigningName: string;
|
|
13
|
+
};
|
|
14
|
+
export interface EndpointParameters extends __EndpointParameters {
|
|
15
|
+
Region: string;
|
|
16
|
+
UseDualStack?: boolean;
|
|
17
|
+
UseFIPS?: boolean;
|
|
18
|
+
Endpoint?: string;
|
|
19
|
+
}
|