@aws-sdk/client-synthetics 3.713.0 → 3.716.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.
@@ -23,6 +23,7 @@ const getRuntimeConfig = (config) => {
23
23
  const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
24
24
  const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config);
25
25
  (0, core_1.emitWarningIfUnsupportedVersion)(process.version);
26
+ const profileConfig = { profile: config?.profile };
26
27
  return {
27
28
  ...clientSharedValues,
28
29
  ...config,
@@ -32,19 +33,20 @@ const getRuntimeConfig = (config) => {
32
33
  credentialDefaultProvider: config?.credentialDefaultProvider ?? credential_provider_node_1.defaultProvider,
33
34
  defaultUserAgentProvider: config?.defaultUserAgentProvider ??
34
35
  (0, util_user_agent_node_1.createDefaultUserAgentProvider)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
35
- maxAttempts: config?.maxAttempts ?? (0, node_config_provider_1.loadConfig)(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
36
- region: config?.region ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS),
36
+ maxAttempts: config?.maxAttempts ?? (0, node_config_provider_1.loadConfig)(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
37
+ region: config?.region ??
38
+ (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, { ...config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS, ...profileConfig }),
37
39
  requestHandler: node_http_handler_1.NodeHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),
38
40
  retryMode: config?.retryMode ??
39
41
  (0, node_config_provider_1.loadConfig)({
40
42
  ...middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS,
41
43
  default: async () => (await defaultConfigProvider()).retryMode || util_retry_1.DEFAULT_RETRY_MODE,
42
- }),
44
+ }, config),
43
45
  sha256: config?.sha256 ?? hash_node_1.Hash.bind(null, "sha256"),
44
46
  streamCollector: config?.streamCollector ?? node_http_handler_1.streamCollector,
45
- useDualstackEndpoint: config?.useDualstackEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),
46
- useFipsEndpoint: config?.useFipsEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),
47
- userAgentAppId: config?.userAgentAppId ?? (0, node_config_provider_1.loadConfig)(util_user_agent_node_1.NODE_APP_ID_CONFIG_OPTIONS),
47
+ useDualstackEndpoint: config?.useDualstackEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, profileConfig),
48
+ useFipsEndpoint: config?.useFipsEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, profileConfig),
49
+ userAgentAppId: config?.userAgentAppId ?? (0, node_config_provider_1.loadConfig)(util_user_agent_node_1.NODE_APP_ID_CONFIG_OPTIONS, profileConfig),
48
50
  };
49
51
  };
50
52
  exports.getRuntimeConfig = getRuntimeConfig;
@@ -19,6 +19,7 @@ export const getRuntimeConfig = (config) => {
19
19
  const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
20
20
  const clientSharedValues = getSharedRuntimeConfig(config);
21
21
  awsCheckVersion(process.version);
22
+ const profileConfig = { profile: config?.profile };
22
23
  return {
23
24
  ...clientSharedValues,
24
25
  ...config,
@@ -28,18 +29,19 @@ export const getRuntimeConfig = (config) => {
28
29
  credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider,
29
30
  defaultUserAgentProvider: config?.defaultUserAgentProvider ??
30
31
  createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
31
- maxAttempts: config?.maxAttempts ?? loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
32
- region: config?.region ?? loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS),
32
+ maxAttempts: config?.maxAttempts ?? loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
33
+ region: config?.region ??
34
+ loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, { ...NODE_REGION_CONFIG_FILE_OPTIONS, ...profileConfig }),
33
35
  requestHandler: RequestHandler.create(config?.requestHandler ?? defaultConfigProvider),
34
36
  retryMode: config?.retryMode ??
35
37
  loadNodeConfig({
36
38
  ...NODE_RETRY_MODE_CONFIG_OPTIONS,
37
39
  default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
38
- }),
40
+ }, config),
39
41
  sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
40
42
  streamCollector: config?.streamCollector ?? streamCollector,
41
- useDualstackEndpoint: config?.useDualstackEndpoint ?? loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),
42
- useFipsEndpoint: config?.useFipsEndpoint ?? loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),
43
- userAgentAppId: config?.userAgentAppId ?? loadNodeConfig(NODE_APP_ID_CONFIG_OPTIONS),
43
+ useDualstackEndpoint: config?.useDualstackEndpoint ?? loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, profileConfig),
44
+ useFipsEndpoint: config?.useFipsEndpoint ?? loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, profileConfig),
45
+ userAgentAppId: config?.userAgentAppId ?? loadNodeConfig(NODE_APP_ID_CONFIG_OPTIONS, profileConfig),
44
46
  };
45
47
  };
@@ -115,6 +115,24 @@ export interface ClientDefaults extends Partial<__SmithyConfiguration<__HttpHand
115
115
  * The AWS region to which this client will send requests
116
116
  */
117
117
  region?: string | __Provider<string>;
118
+ /**
119
+ * Setting a client profile is similar to setting a value for the
120
+ * AWS_PROFILE environment variable. Setting a profile on a client
121
+ * in code only affects the single client instance, unlike AWS_PROFILE.
122
+ *
123
+ * When set, and only for environments where an AWS configuration
124
+ * file exists, fields configurable by this file will be retrieved
125
+ * from the specified profile within that file.
126
+ * Conflicting code configuration and environment variables will
127
+ * still have higher priority.
128
+ *
129
+ * For client credential resolution that involves checking the AWS
130
+ * configuration file, the client's profile (this value) will be
131
+ * used unless a different profile is set in the credential
132
+ * provider options.
133
+ *
134
+ */
135
+ profile?: string;
118
136
  /**
119
137
  * The provider populating default tracking information to be sent with `user-agent`, `x-amz-user-agent` header
120
138
  * @internal
@@ -80,6 +80,7 @@ declare const CreateCanaryCommand_base: {
80
80
  * SecurityGroupIds: [ // SecurityGroupIds
81
81
  * "STRING_VALUE",
82
82
  * ],
83
+ * Ipv6AllowedForDualStack: true || false,
83
84
  * },
84
85
  * ResourcesToReplicateTags: [ // ResourceList
85
86
  * "lambda-function",
@@ -139,6 +140,7 @@ declare const CreateCanaryCommand_base: {
139
140
  * // SecurityGroupIds: [ // SecurityGroupIds
140
141
  * // "STRING_VALUE",
141
142
  * // ],
143
+ * // Ipv6AllowedForDualStack: true || false,
142
144
  * // },
143
145
  * // VisualReference: { // VisualReferenceOutput
144
146
  * // BaseScreenshots: [ // BaseScreenshots
@@ -95,6 +95,7 @@ declare const DescribeCanariesCommand_base: {
95
95
  * // SecurityGroupIds: [ // SecurityGroupIds
96
96
  * // "STRING_VALUE",
97
97
  * // ],
98
+ * // Ipv6AllowedForDualStack: true || false,
98
99
  * // },
99
100
  * // VisualReference: { // VisualReferenceOutput
100
101
  * // BaseScreenshots: [ // BaseScreenshots
@@ -83,6 +83,7 @@ declare const GetCanaryCommand_base: {
83
83
  * // SecurityGroupIds: [ // SecurityGroupIds
84
84
  * // "STRING_VALUE",
85
85
  * // ],
86
+ * // Ipv6AllowedForDualStack: true || false,
86
87
  * // },
87
88
  * // VisualReference: { // VisualReferenceOutput
88
89
  * // BaseScreenshots: [ // BaseScreenshots
@@ -70,6 +70,7 @@ declare const UpdateCanaryCommand_base: {
70
70
  * SecurityGroupIds: [ // SecurityGroupIds
71
71
  * "STRING_VALUE",
72
72
  * ],
73
+ * Ipv6AllowedForDualStack: true || false,
73
74
  * },
74
75
  * VisualReference: { // VisualReferenceInput
75
76
  * BaseScreenshots: [ // BaseScreenshots
@@ -402,6 +402,11 @@ export interface VpcConfigOutput {
402
402
  * @public
403
403
  */
404
404
  SecurityGroupIds?: string[] | undefined;
405
+ /**
406
+ * <p>Indicates whether this canary allows outbound IPv6 traffic if it is connected to dual-stack subnets.</p>
407
+ * @public
408
+ */
409
+ Ipv6AllowedForDualStack?: boolean | undefined;
405
410
  }
406
411
  /**
407
412
  * <p>This structure contains all information about one canary in your account.</p>
@@ -806,6 +811,12 @@ export interface VpcConfigInput {
806
811
  * @public
807
812
  */
808
813
  SecurityGroupIds?: string[] | undefined;
814
+ /**
815
+ * <p>Set this to <code>true</code> to allow outbound IPv6 traffic on VPC canaries that are connected to dual-stack subnets. The default is <code>false</code>
816
+ * </p>
817
+ * @public
818
+ */
819
+ Ipv6AllowedForDualStack?: boolean | undefined;
809
820
  }
810
821
  /**
811
822
  * @public
@@ -1670,7 +1681,8 @@ export interface VisualReferenceInput {
1670
1681
  * <p>Specifies which canary run to use the screenshots from as the baseline for future visual monitoring with this canary. Valid values are
1671
1682
  * <code>nextrun</code> to use the screenshots from the next run after this update is made, <code>lastrun</code> to use the screenshots from the most recent run
1672
1683
  * before this update was made, or the value of <code>Id</code> in the <a href="https://docs.aws.amazon.com/AmazonSynthetics/latest/APIReference/API_CanaryRun.html">
1673
- * CanaryRun</a> from any past run of this canary.</p>
1684
+ * CanaryRun</a> from a run of this a canary in the past 31 days. If you specify the <code>Id</code> of a canary run older than 31 days,
1685
+ * the operation returns a 400 validation exception error..</p>
1674
1686
  * @public
1675
1687
  */
1676
1688
  BaseCanaryRunId: string | undefined;
@@ -26,6 +26,7 @@ export declare const getRuntimeConfig: (config: SyntheticsClientConfig) => {
26
26
  utf8Encoder: (input: string | Uint8Array) => string;
27
27
  disableHostPrefix: boolean;
28
28
  serviceId: string;
29
+ profile?: string | undefined;
29
30
  logger: import("@smithy/types").Logger;
30
31
  extensions: import("./runtimeExtensions").RuntimeExtension[];
31
32
  customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
@@ -27,6 +27,7 @@ export declare const getRuntimeConfig: (config: SyntheticsClientConfig) => {
27
27
  utf8Encoder: (input: string | Uint8Array) => string;
28
28
  disableHostPrefix: boolean;
29
29
  serviceId: string;
30
+ profile?: string | undefined;
30
31
  logger: import("@smithy/types").Logger;
31
32
  extensions: import("./runtimeExtensions").RuntimeExtension[];
32
33
  customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
@@ -20,6 +20,7 @@ export declare const getRuntimeConfig: (config: SyntheticsClientConfig) => {
20
20
  useDualstackEndpoint: boolean | import("@smithy/types").Provider<boolean>;
21
21
  useFipsEndpoint: boolean | import("@smithy/types").Provider<boolean>;
22
22
  region: string | import("@smithy/types").Provider<any>;
23
+ profile?: string | undefined;
23
24
  defaultUserAgentProvider: (config?: import("@aws-sdk/util-user-agent-browser").PreviouslyResolved | undefined) => Promise<import("@smithy/types").UserAgent>;
24
25
  credentialDefaultProvider: (input: any) => import("@smithy/types").AwsCredentialIdentityProvider;
25
26
  maxAttempts: number | import("@smithy/types").Provider<number>;
@@ -197,6 +197,7 @@ export interface ClientDefaults
197
197
  useDualstackEndpoint?: boolean | __Provider<boolean>;
198
198
  useFipsEndpoint?: boolean | __Provider<boolean>;
199
199
  region?: string | __Provider<string>;
200
+ profile?: string;
200
201
  defaultUserAgentProvider?: Provider<__UserAgent>;
201
202
  credentialDefaultProvider?: (input: any) => AwsCredentialIdentityProvider;
202
203
  maxAttempts?: number | __Provider<number>;
@@ -137,6 +137,7 @@ export interface VpcConfigOutput {
137
137
  VpcId?: string | undefined;
138
138
  SubnetIds?: string[] | undefined;
139
139
  SecurityGroupIds?: string[] | undefined;
140
+ Ipv6AllowedForDualStack?: boolean | undefined;
140
141
  }
141
142
  export interface Canary {
142
143
  Id?: string | undefined;
@@ -215,6 +216,7 @@ export type ResourceToTag = (typeof ResourceToTag)[keyof typeof ResourceToTag];
215
216
  export interface VpcConfigInput {
216
217
  SubnetIds?: string[] | undefined;
217
218
  SecurityGroupIds?: string[] | undefined;
219
+ Ipv6AllowedForDualStack?: boolean | undefined;
218
220
  }
219
221
  export interface CreateCanaryRequest {
220
222
  Name: string | undefined;
@@ -33,6 +33,7 @@ export declare const getRuntimeConfig: (config: SyntheticsClientConfig) => {
33
33
  utf8Encoder: (input: string | Uint8Array) => string;
34
34
  disableHostPrefix: boolean;
35
35
  serviceId: string;
36
+ profile?: string | undefined;
36
37
  logger: import("@smithy/types").Logger;
37
38
  extensions: import("./runtimeExtensions").RuntimeExtension[];
38
39
  customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
@@ -38,6 +38,7 @@ export declare const getRuntimeConfig: (config: SyntheticsClientConfig) => {
38
38
  utf8Encoder: (input: string | Uint8Array) => string;
39
39
  disableHostPrefix: boolean;
40
40
  serviceId: string;
41
+ profile?: string | undefined;
41
42
  logger: import("@smithy/types").Logger;
42
43
  extensions: import("./runtimeExtensions").RuntimeExtension[];
43
44
  customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
@@ -22,6 +22,7 @@ export declare const getRuntimeConfig: (config: SyntheticsClientConfig) => {
22
22
  useDualstackEndpoint: boolean | import("@smithy/types").Provider<boolean>;
23
23
  useFipsEndpoint: boolean | import("@smithy/types").Provider<boolean>;
24
24
  region: string | import("@smithy/types").Provider<any>;
25
+ profile?: string | undefined;
25
26
  defaultUserAgentProvider: (
26
27
  config?:
27
28
  | import("@aws-sdk/util-user-agent-browser").PreviouslyResolved
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-synthetics",
3
3
  "description": "AWS SDK for JavaScript Synthetics Client for Node.js, Browser and React Native",
4
- "version": "3.713.0",
4
+ "version": "3.716.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-synthetics",
@@ -20,40 +20,40 @@
20
20
  "dependencies": {
21
21
  "@aws-crypto/sha256-browser": "5.2.0",
22
22
  "@aws-crypto/sha256-js": "5.2.0",
23
- "@aws-sdk/client-sso-oidc": "3.713.0",
24
- "@aws-sdk/client-sts": "3.713.0",
25
- "@aws-sdk/core": "3.713.0",
26
- "@aws-sdk/credential-provider-node": "3.713.0",
27
- "@aws-sdk/middleware-host-header": "3.713.0",
28
- "@aws-sdk/middleware-logger": "3.713.0",
29
- "@aws-sdk/middleware-recursion-detection": "3.713.0",
30
- "@aws-sdk/middleware-user-agent": "3.713.0",
31
- "@aws-sdk/region-config-resolver": "3.713.0",
32
- "@aws-sdk/types": "3.713.0",
33
- "@aws-sdk/util-endpoints": "3.713.0",
34
- "@aws-sdk/util-user-agent-browser": "3.713.0",
35
- "@aws-sdk/util-user-agent-node": "3.713.0",
23
+ "@aws-sdk/client-sso-oidc": "3.716.0",
24
+ "@aws-sdk/client-sts": "3.716.0",
25
+ "@aws-sdk/core": "3.716.0",
26
+ "@aws-sdk/credential-provider-node": "3.716.0",
27
+ "@aws-sdk/middleware-host-header": "3.714.0",
28
+ "@aws-sdk/middleware-logger": "3.714.0",
29
+ "@aws-sdk/middleware-recursion-detection": "3.714.0",
30
+ "@aws-sdk/middleware-user-agent": "3.716.0",
31
+ "@aws-sdk/region-config-resolver": "3.714.0",
32
+ "@aws-sdk/types": "3.714.0",
33
+ "@aws-sdk/util-endpoints": "3.714.0",
34
+ "@aws-sdk/util-user-agent-browser": "3.714.0",
35
+ "@aws-sdk/util-user-agent-node": "3.716.0",
36
36
  "@smithy/config-resolver": "^3.0.13",
37
37
  "@smithy/core": "^2.5.5",
38
38
  "@smithy/fetch-http-handler": "^4.1.2",
39
39
  "@smithy/hash-node": "^3.0.11",
40
40
  "@smithy/invalid-dependency": "^3.0.11",
41
41
  "@smithy/middleware-content-length": "^3.0.13",
42
- "@smithy/middleware-endpoint": "^3.2.5",
43
- "@smithy/middleware-retry": "^3.0.30",
42
+ "@smithy/middleware-endpoint": "^3.2.6",
43
+ "@smithy/middleware-retry": "^3.0.31",
44
44
  "@smithy/middleware-serde": "^3.0.11",
45
45
  "@smithy/middleware-stack": "^3.0.11",
46
46
  "@smithy/node-config-provider": "^3.1.12",
47
47
  "@smithy/node-http-handler": "^3.3.2",
48
48
  "@smithy/protocol-http": "^4.1.8",
49
- "@smithy/smithy-client": "^3.5.0",
49
+ "@smithy/smithy-client": "^3.5.1",
50
50
  "@smithy/types": "^3.7.2",
51
51
  "@smithy/url-parser": "^3.0.11",
52
52
  "@smithy/util-base64": "^3.0.0",
53
53
  "@smithy/util-body-length-browser": "^3.0.0",
54
54
  "@smithy/util-body-length-node": "^3.0.0",
55
- "@smithy/util-defaults-mode-browser": "^3.0.30",
56
- "@smithy/util-defaults-mode-node": "^3.0.30",
55
+ "@smithy/util-defaults-mode-browser": "^3.0.31",
56
+ "@smithy/util-defaults-mode-node": "^3.0.31",
57
57
  "@smithy/util-endpoints": "^2.1.7",
58
58
  "@smithy/util-middleware": "^3.0.11",
59
59
  "@smithy/util-retry": "^3.0.11",