@aws-sdk/client-migration-hub-refactor-spaces 3.226.0 → 3.229.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.
@@ -7,8 +7,8 @@ const sha256_browser_1 = require("@aws-crypto/sha256-browser");
7
7
  const config_resolver_1 = require("@aws-sdk/config-resolver");
8
8
  const fetch_http_handler_1 = require("@aws-sdk/fetch-http-handler");
9
9
  const invalid_dependency_1 = require("@aws-sdk/invalid-dependency");
10
- const middleware_retry_1 = require("@aws-sdk/middleware-retry");
11
10
  const util_body_length_browser_1 = require("@aws-sdk/util-body-length-browser");
11
+ const util_retry_1 = require("@aws-sdk/util-retry");
12
12
  const util_user_agent_browser_1 = require("@aws-sdk/util-user-agent-browser");
13
13
  const util_utf8_browser_1 = require("@aws-sdk/util-utf8-browser");
14
14
  const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
@@ -27,10 +27,10 @@ const getRuntimeConfig = (config) => {
27
27
  credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_) => () => Promise.reject(new Error("Credential is missing"))),
28
28
  defaultUserAgentProvider: config?.defaultUserAgentProvider ??
29
29
  (0, util_user_agent_browser_1.defaultUserAgent)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
30
- maxAttempts: config?.maxAttempts ?? middleware_retry_1.DEFAULT_MAX_ATTEMPTS,
30
+ maxAttempts: config?.maxAttempts ?? util_retry_1.DEFAULT_MAX_ATTEMPTS,
31
31
  region: config?.region ?? (0, invalid_dependency_1.invalidProvider)("Region is missing"),
32
32
  requestHandler: config?.requestHandler ?? new fetch_http_handler_1.FetchHttpHandler(defaultConfigProvider),
33
- retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode || middleware_retry_1.DEFAULT_RETRY_MODE),
33
+ retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode || util_retry_1.DEFAULT_RETRY_MODE),
34
34
  sha256: config?.sha256 ?? sha256_browser_1.Sha256,
35
35
  streamCollector: config?.streamCollector ?? fetch_http_handler_1.streamCollector,
36
36
  useDualstackEndpoint: config?.useDualstackEndpoint ?? (() => Promise.resolve(config_resolver_1.DEFAULT_USE_DUALSTACK_ENDPOINT)),
@@ -11,6 +11,7 @@ const middleware_retry_1 = require("@aws-sdk/middleware-retry");
11
11
  const node_config_provider_1 = require("@aws-sdk/node-config-provider");
12
12
  const node_http_handler_1 = require("@aws-sdk/node-http-handler");
13
13
  const util_body_length_node_1 = require("@aws-sdk/util-body-length-node");
14
+ const util_retry_1 = require("@aws-sdk/util-retry");
14
15
  const util_user_agent_node_1 = require("@aws-sdk/util-user-agent-node");
15
16
  const util_utf8_node_1 = require("@aws-sdk/util-utf8-node");
16
17
  const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
@@ -37,7 +38,7 @@ const getRuntimeConfig = (config) => {
37
38
  retryMode: config?.retryMode ??
38
39
  (0, node_config_provider_1.loadConfig)({
39
40
  ...middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS,
40
- default: async () => (await defaultConfigProvider()).retryMode || middleware_retry_1.DEFAULT_RETRY_MODE,
41
+ default: async () => (await defaultConfigProvider()).retryMode || util_retry_1.DEFAULT_RETRY_MODE,
41
42
  }),
42
43
  sha256: config?.sha256 ?? hash_node_1.Hash.bind(null, "sha256"),
43
44
  streamCollector: config?.streamCollector ?? node_http_handler_1.streamCollector,
@@ -3,8 +3,8 @@ import { Sha256 } from "@aws-crypto/sha256-browser";
3
3
  import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws-sdk/config-resolver";
4
4
  import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler";
5
5
  import { invalidProvider } from "@aws-sdk/invalid-dependency";
6
- import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry";
7
6
  import { calculateBodyLength } from "@aws-sdk/util-body-length-browser";
7
+ import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/util-retry";
8
8
  import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser";
9
9
  import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser";
10
10
  import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
@@ -3,10 +3,11 @@ import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts";
3
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
4
  import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node";
5
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";
6
+ import { NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS } from "@aws-sdk/middleware-retry";
7
7
  import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider";
8
8
  import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler";
9
9
  import { calculateBodyLength } from "@aws-sdk/util-body-length-node";
10
+ import { DEFAULT_RETRY_MODE } from "@aws-sdk/util-retry";
10
11
  import { defaultUserAgent } from "@aws-sdk/util-user-agent-node";
11
12
  import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node";
12
13
  import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
@@ -26,7 +26,6 @@ import { UpdateRouteCommandInput, UpdateRouteCommandOutput } from "./commands/Up
26
26
  import { MigrationHubRefactorSpacesClient } from "./MigrationHubRefactorSpacesClient";
27
27
  /**
28
28
  * <fullname>Amazon Web Services Migration Hub Refactor Spaces</fullname>
29
- *
30
29
  * <p>This API reference provides descriptions, syntax, and other details about each of the
31
30
  * actions and data types for Amazon Web Services Migration Hub Refactor Spaces (Refactor Spaces). The topic for each action shows the API
32
31
  * request parameters and the response. Alternatively, you can use one of the Amazon Web Services SDKs to
@@ -96,6 +95,10 @@ export declare class MigrationHubRefactorSpaces extends MigrationHubRefactorSpac
96
95
  * specified ARN exists. If it does not exist, the health check fails. For public URLs, a
97
96
  * connection is opened to the public endpoint. If the URL is not reachable, the health check
98
97
  * fails. </p>
98
+ * <p>Refactor Spaces automatically resolves the public Domain Name System (DNS) names that are set in
99
+ * <a>CreateServiceRequest$UrlEndpoint</a> when you create a service. The DNS names
100
+ * resolve when the DNS time-to-live (TTL) expires, or every 60 seconds for TTLs less than 60
101
+ * seconds. This periodic DNS resolution ensures that the route configuration remains up-to-date. </p>
99
102
  * <p>For private URLS, a target group is created on the Elastic Load Balancing and the target
100
103
  * group health check is run. The <code>HealthCheckProtocol</code>, <code>HealthCheckPort</code>,
101
104
  * and <code>HealthCheckPath</code> are the same protocol, port, and path specified in the URL or
@@ -256,9 +259,7 @@ export declare class MigrationHubRefactorSpaces extends MigrationHubRefactorSpac
256
259
  untagResource(args: UntagResourceCommandInput, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
257
260
  untagResource(args: UntagResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
258
261
  /**
259
- * <p>
260
- * Updates an Amazon Web Services Migration Hub Refactor Spaces route.
261
- * </p>
262
+ * <p> Updates an Amazon Web Services Migration Hub Refactor Spaces route. </p>
262
263
  */
263
264
  updateRoute(args: UpdateRouteCommandInput, options?: __HttpHandlerOptions): Promise<UpdateRouteCommandOutput>;
264
265
  updateRoute(args: UpdateRouteCommandInput, cb: (err: any, data?: UpdateRouteCommandOutput) => void): void;
@@ -148,7 +148,6 @@ export interface MigrationHubRefactorSpacesClientResolvedConfig extends Migratio
148
148
  }
149
149
  /**
150
150
  * <fullname>Amazon Web Services Migration Hub Refactor Spaces</fullname>
151
- *
152
151
  * <p>This API reference provides descriptions, syntax, and other details about each of the
153
152
  * actions and data types for Amazon Web Services Migration Hub Refactor Spaces (Refactor Spaces). The topic for each action shows the API
154
153
  * request parameters and the response. Alternatively, you can use one of the Amazon Web Services SDKs to
@@ -47,6 +47,10 @@ export interface CreateRouteCommandOutput extends CreateRouteResponse, __Metadat
47
47
  * specified ARN exists. If it does not exist, the health check fails. For public URLs, a
48
48
  * connection is opened to the public endpoint. If the URL is not reachable, the health check
49
49
  * fails. </p>
50
+ * <p>Refactor Spaces automatically resolves the public Domain Name System (DNS) names that are set in
51
+ * <a>CreateServiceRequest$UrlEndpoint</a> when you create a service. The DNS names
52
+ * resolve when the DNS time-to-live (TTL) expires, or every 60 seconds for TTLs less than 60
53
+ * seconds. This periodic DNS resolution ensures that the route configuration remains up-to-date. </p>
50
54
  * <p>For private URLS, a target group is created on the Elastic Load Balancing and the target
51
55
  * group health check is run. The <code>HealthCheckProtocol</code>, <code>HealthCheckPort</code>,
52
56
  * and <code>HealthCheckPath</code> are the same protocol, port, and path specified in the URL or
@@ -8,9 +8,7 @@ export interface UpdateRouteCommandInput extends UpdateRouteRequest {
8
8
  export interface UpdateRouteCommandOutput extends UpdateRouteResponse, __MetadataBearer {
9
9
  }
10
10
  /**
11
- * <p>
12
- * Updates an Amazon Web Services Migration Hub Refactor Spaces route.
13
- * </p>
11
+ * <p> Updates an Amazon Web Services Migration Hub Refactor Spaces route. </p>
14
12
  * @example
15
13
  * Use a bare-bones client and the command you need to make an API call.
16
14
  * ```javascript
@@ -531,9 +531,7 @@ export declare enum RouteActivationState {
531
531
  INACTIVE = "INACTIVE"
532
532
  }
533
533
  /**
534
- * <p>
535
- * The configuration for the default route type.
536
- * </p>
534
+ * <p> The configuration for the default route type. </p>
537
535
  */
538
536
  export interface DefaultRouteInput {
539
537
  /**
@@ -603,9 +601,7 @@ export interface CreateRouteRequest {
603
601
  */
604
602
  RouteType: RouteType | string | undefined;
605
603
  /**
606
- * <p>
607
- * Configuration for the default route type.
608
- * </p>
604
+ * <p> Configuration for the default route type. </p>
609
605
  */
610
606
  DefaultRoute?: DefaultRouteInput;
611
607
  /**
@@ -697,7 +693,7 @@ export declare enum ServiceEndpointType {
697
693
  */
698
694
  export interface LambdaEndpointInput {
699
695
  /**
700
- * <p>The Amazon Resource Name (ARN) of the Lambda endpoint. </p>
696
+ * <p>The Amazon Resource Name (ARN) of the Lambda function or alias.</p>
701
697
  */
702
698
  Arn: string | undefined;
703
699
  }
@@ -745,7 +741,10 @@ export interface CreateServiceRequest {
745
741
  */
746
742
  EndpointType: ServiceEndpointType | string | undefined;
747
743
  /**
748
- * <p>The configuration for the URL endpoint type.</p>
744
+ * <p>The configuration for the URL endpoint type. When creating a route to a service, Refactor Spaces
745
+ * automatically resolves the address in the <code>UrlEndpointInput</code> object URL when the
746
+ * Domain Name System (DNS) time-to-live (TTL) expires, or every 60 seconds for TTLs less than 60
747
+ * seconds.</p>
749
748
  */
750
749
  UrlEndpoint?: UrlEndpointInput;
751
750
  /**
@@ -1793,21 +1792,15 @@ export interface UntagResourceResponse {
1793
1792
  }
1794
1793
  export interface UpdateRouteRequest {
1795
1794
  /**
1796
- * <p>
1797
- * The ID of the environment in which the route is being updated.
1798
- * </p>
1795
+ * <p> The ID of the environment in which the route is being updated. </p>
1799
1796
  */
1800
1797
  EnvironmentIdentifier: string | undefined;
1801
1798
  /**
1802
- * <p>
1803
- * The ID of the application within which the route is being updated.
1804
- * </p>
1799
+ * <p> The ID of the application within which the route is being updated. </p>
1805
1800
  */
1806
1801
  ApplicationIdentifier: string | undefined;
1807
1802
  /**
1808
- * <p>
1809
- * The unique identifier of the route to update.
1810
- * </p>
1803
+ * <p> The unique identifier of the route to update. </p>
1811
1804
  */
1812
1805
  RouteIdentifier: string | undefined;
1813
1806
  /**
@@ -1818,44 +1811,33 @@ export interface UpdateRouteRequest {
1818
1811
  }
1819
1812
  export interface UpdateRouteResponse {
1820
1813
  /**
1821
- * <p>
1822
- * The unique identifier of the route.
1823
- * </p>
1814
+ * <p> The unique identifier of the route. </p>
1824
1815
  */
1825
1816
  RouteId?: string;
1826
1817
  /**
1827
- * <p>
1828
- * The Amazon Resource Name (ARN) of the route. The format for this ARN is
1818
+ * <p> The Amazon Resource Name (ARN) of the route. The format for this ARN is
1829
1819
  * <code>arn:aws:refactor-spaces:<i>region</i>:<i>account-id</i>:<i>resource-type/resource-id</i>
1830
1820
  * </code>. For more information about ARNs,
1831
1821
  * see <a href="https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html">
1832
1822
  * Amazon Resource Names (ARNs)</a> in the
1833
- * <i>Amazon Web Services General Reference</i>.
1834
- * </p>
1823
+ * <i>Amazon Web Services General Reference</i>. </p>
1835
1824
  */
1836
1825
  Arn?: string;
1837
1826
  /**
1838
- * <p>
1839
- * The ID of service in which the route was created. Traffic that matches this route is forwarded to this service.
1840
- * </p>
1827
+ * <p> The ID of service in which the route was created. Traffic that matches this route is
1828
+ * forwarded to this service. </p>
1841
1829
  */
1842
1830
  ServiceId?: string;
1843
1831
  /**
1844
- * <p>
1845
- * The ID of the application in which the route is being updated.
1846
- * </p>
1832
+ * <p> The ID of the application in which the route is being updated. </p>
1847
1833
  */
1848
1834
  ApplicationId?: string;
1849
1835
  /**
1850
- * <p>
1851
- * The current state of the route.
1852
- * </p>
1836
+ * <p> The current state of the route. </p>
1853
1837
  */
1854
1838
  State?: RouteState | string;
1855
1839
  /**
1856
- * <p>
1857
- * A timestamp that indicates when the route was last updated.
1858
- * </p>
1840
+ * <p> A timestamp that indicates when the route was last updated. </p>
1859
1841
  */
1860
1842
  LastUpdatedTime?: Date;
1861
1843
  }
@@ -31,7 +31,7 @@ export declare const getRuntimeConfig: (config: MigrationHubRefactorSpacesClient
31
31
  logger?: import("@aws-sdk/types").Logger | undefined;
32
32
  }) => import("@aws-sdk/types").EndpointV2;
33
33
  tls?: boolean | undefined;
34
- retryStrategy?: import("@aws-sdk/types").RetryStrategy | undefined;
34
+ retryStrategy?: import("@aws-sdk/types").RetryStrategy | import("@aws-sdk/types").RetryStrategyV2 | undefined;
35
35
  credentials?: import("@aws-sdk/types").AwsCredentialIdentity | import("@aws-sdk/types").Provider<import("@aws-sdk/types").AwsCredentialIdentity> | undefined;
36
36
  signer?: import("@aws-sdk/types").RequestSigner | ((authScheme?: import("@aws-sdk/types").AuthScheme | undefined) => Promise<import("@aws-sdk/types").RequestSigner>) | undefined;
37
37
  signingEscapePath?: boolean | undefined;
@@ -31,7 +31,7 @@ export declare const getRuntimeConfig: (config: MigrationHubRefactorSpacesClient
31
31
  logger?: import("@aws-sdk/types").Logger | undefined;
32
32
  }) => import("@aws-sdk/types").EndpointV2;
33
33
  tls?: boolean | undefined;
34
- retryStrategy?: import("@aws-sdk/types").RetryStrategy | undefined;
34
+ retryStrategy?: import("@aws-sdk/types").RetryStrategy | import("@aws-sdk/types").RetryStrategyV2 | undefined;
35
35
  credentials?: import("@aws-sdk/types").AwsCredentialIdentity | import("@aws-sdk/types").Provider<import("@aws-sdk/types").AwsCredentialIdentity> | undefined;
36
36
  signer?: import("@aws-sdk/types").RequestSigner | ((authScheme?: import("@aws-sdk/types").AuthScheme | undefined) => Promise<import("@aws-sdk/types").RequestSigner>) | undefined;
37
37
  signingEscapePath?: boolean | undefined;
@@ -30,7 +30,7 @@ export declare const getRuntimeConfig: (config: MigrationHubRefactorSpacesClient
30
30
  logger?: import("@aws-sdk/types").Logger | undefined;
31
31
  }) => import("@aws-sdk/types").EndpointV2;
32
32
  tls?: boolean | undefined;
33
- retryStrategy?: import("@aws-sdk/types").RetryStrategy | undefined;
33
+ retryStrategy?: import("@aws-sdk/types").RetryStrategy | import("@aws-sdk/types").RetryStrategyV2 | undefined;
34
34
  credentials?: import("@aws-sdk/types").AwsCredentialIdentity | import("@aws-sdk/types").Provider<import("@aws-sdk/types").AwsCredentialIdentity> | undefined;
35
35
  signer?: import("@aws-sdk/types").RequestSigner | ((authScheme?: import("@aws-sdk/types").AuthScheme | undefined) => Promise<import("@aws-sdk/types").RequestSigner>) | undefined;
36
36
  signingEscapePath?: boolean | undefined;
@@ -64,7 +64,10 @@ export declare const getRuntimeConfig: (
64
64
  }
65
65
  ) => import("@aws-sdk/types").EndpointV2;
66
66
  tls?: boolean | undefined;
67
- retryStrategy?: import("@aws-sdk/types").RetryStrategy | undefined;
67
+ retryStrategy?:
68
+ | import("@aws-sdk/types").RetryStrategy
69
+ | import("@aws-sdk/types").RetryStrategyV2
70
+ | undefined;
68
71
  credentials?:
69
72
  | import("@aws-sdk/types").AwsCredentialIdentity
70
73
  | import("@aws-sdk/types").Provider<
@@ -64,7 +64,10 @@ export declare const getRuntimeConfig: (
64
64
  }
65
65
  ) => import("@aws-sdk/types").EndpointV2;
66
66
  tls?: boolean | undefined;
67
- retryStrategy?: import("@aws-sdk/types").RetryStrategy | undefined;
67
+ retryStrategy?:
68
+ | import("@aws-sdk/types").RetryStrategy
69
+ | import("@aws-sdk/types").RetryStrategyV2
70
+ | undefined;
68
71
  credentials?:
69
72
  | import("@aws-sdk/types").AwsCredentialIdentity
70
73
  | import("@aws-sdk/types").Provider<
@@ -53,7 +53,10 @@ export declare const getRuntimeConfig: (
53
53
  }
54
54
  ) => import("@aws-sdk/types").EndpointV2;
55
55
  tls?: boolean | undefined;
56
- retryStrategy?: import("@aws-sdk/types").RetryStrategy | undefined;
56
+ retryStrategy?:
57
+ | import("@aws-sdk/types").RetryStrategy
58
+ | import("@aws-sdk/types").RetryStrategyV2
59
+ | undefined;
57
60
  credentials?:
58
61
  | import("@aws-sdk/types").AwsCredentialIdentity
59
62
  | import("@aws-sdk/types").Provider<
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-migration-hub-refactor-spaces",
3
3
  "description": "AWS SDK for JavaScript Migration Hub Refactor Spaces Client for Node.js, Browser and React Native",
4
- "version": "3.226.0",
4
+ "version": "3.229.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -19,9 +19,9 @@
19
19
  "dependencies": {
20
20
  "@aws-crypto/sha256-browser": "2.0.0",
21
21
  "@aws-crypto/sha256-js": "2.0.0",
22
- "@aws-sdk/client-sts": "3.226.0",
22
+ "@aws-sdk/client-sts": "3.229.0",
23
23
  "@aws-sdk/config-resolver": "3.226.0",
24
- "@aws-sdk/credential-provider-node": "3.226.0",
24
+ "@aws-sdk/credential-provider-node": "3.229.0",
25
25
  "@aws-sdk/fetch-http-handler": "3.226.0",
26
26
  "@aws-sdk/hash-node": "3.226.0",
27
27
  "@aws-sdk/invalid-dependency": "3.226.0",
@@ -30,7 +30,7 @@
30
30
  "@aws-sdk/middleware-host-header": "3.226.0",
31
31
  "@aws-sdk/middleware-logger": "3.226.0",
32
32
  "@aws-sdk/middleware-recursion-detection": "3.226.0",
33
- "@aws-sdk/middleware-retry": "3.226.0",
33
+ "@aws-sdk/middleware-retry": "3.229.0",
34
34
  "@aws-sdk/middleware-serde": "3.226.0",
35
35
  "@aws-sdk/middleware-signing": "3.226.0",
36
36
  "@aws-sdk/middleware-stack": "3.226.0",
@@ -47,6 +47,7 @@
47
47
  "@aws-sdk/util-defaults-mode-browser": "3.226.0",
48
48
  "@aws-sdk/util-defaults-mode-node": "3.226.0",
49
49
  "@aws-sdk/util-endpoints": "3.226.0",
50
+ "@aws-sdk/util-retry": "3.229.0",
50
51
  "@aws-sdk/util-user-agent-browser": "3.226.0",
51
52
  "@aws-sdk/util-user-agent-node": "3.226.0",
52
53
  "@aws-sdk/util-utf8-browser": "3.188.0",