@aws-sdk/client-cloudfront-keyvaluestore 3.621.0 → 3.623.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.
@@ -1,8 +1,10 @@
1
+ import { AwsSdkSigV4ASigner, AwsSdkSigV4Signer } from "@aws-sdk/core";
1
2
  import { SignatureV4MultiRegion } from "@aws-sdk/signature-v4-multi-region";
2
3
  import { NoOpLogger } from "@smithy/smithy-client";
3
4
  import { parseUrl } from "@smithy/url-parser";
4
5
  import { fromBase64, toBase64 } from "@smithy/util-base64";
5
6
  import { fromUtf8, toUtf8 } from "@smithy/util-utf8";
7
+ import { defaultCloudFrontKeyValueStoreHttpAuthSchemeProvider } from "./auth/httpAuthSchemeProvider";
6
8
  import { defaultEndpointResolver } from "./endpoint/endpointResolver";
7
9
  export const getRuntimeConfig = (config) => {
8
10
  return {
@@ -12,6 +14,19 @@ export const getRuntimeConfig = (config) => {
12
14
  disableHostPrefix: config?.disableHostPrefix ?? false,
13
15
  endpointProvider: config?.endpointProvider ?? defaultEndpointResolver,
14
16
  extensions: config?.extensions ?? [],
17
+ httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? defaultCloudFrontKeyValueStoreHttpAuthSchemeProvider,
18
+ httpAuthSchemes: config?.httpAuthSchemes ?? [
19
+ {
20
+ schemeId: "aws.auth#sigv4",
21
+ identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4"),
22
+ signer: new AwsSdkSigV4Signer(),
23
+ },
24
+ {
25
+ schemeId: "aws.auth#sigv4a",
26
+ identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4a"),
27
+ signer: new AwsSdkSigV4ASigner(),
28
+ },
29
+ ],
15
30
  logger: config?.logger ?? new NoOpLogger(),
16
31
  serviceId: config?.serviceId ?? "CloudFront KeyValueStore",
17
32
  signerConstructor: config?.signerConstructor ?? SignatureV4MultiRegion,
@@ -1,12 +1,14 @@
1
1
  import { getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, } from "@aws-sdk/region-config-resolver";
2
2
  import { getHttpHandlerExtensionConfiguration, resolveHttpHandlerRuntimeConfig } from "@smithy/protocol-http";
3
3
  import { getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig } from "@smithy/smithy-client";
4
+ import { getHttpAuthExtensionConfiguration, resolveHttpAuthRuntimeConfig } from "./auth/httpAuthExtensionConfiguration";
4
5
  const asPartial = (t) => t;
5
6
  export const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
6
7
  const extensionConfiguration = {
7
8
  ...asPartial(getAwsRegionExtensionConfiguration(runtimeConfig)),
8
9
  ...asPartial(getDefaultExtensionConfiguration(runtimeConfig)),
9
10
  ...asPartial(getHttpHandlerExtensionConfiguration(runtimeConfig)),
11
+ ...asPartial(getHttpAuthExtensionConfiguration(runtimeConfig)),
10
12
  };
11
13
  extensions.forEach((extension) => extension.configure(extensionConfiguration));
12
14
  return {
@@ -14,5 +16,6 @@ export const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
14
16
  ...resolveAwsRegionExtensionConfiguration(extensionConfiguration),
15
17
  ...resolveDefaultRuntimeConfig(extensionConfiguration),
16
18
  ...resolveHttpHandlerRuntimeConfig(extensionConfiguration),
19
+ ...resolveHttpAuthRuntimeConfig(extensionConfiguration),
17
20
  };
18
21
  };
@@ -1,13 +1,12 @@
1
1
  import { HostHeaderInputConfig, HostHeaderResolvedConfig } from "@aws-sdk/middleware-host-header";
2
- import { AwsAuthInputConfig, AwsAuthResolvedConfig } from "@aws-sdk/middleware-signing";
3
2
  import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
4
- import { Credentials as __Credentials } from "@aws-sdk/types";
5
3
  import { RegionInputConfig, RegionResolvedConfig } from "@smithy/config-resolver";
6
4
  import { EndpointInputConfig, EndpointResolvedConfig } from "@smithy/middleware-endpoint";
7
5
  import { RetryInputConfig, RetryResolvedConfig } from "@smithy/middleware-retry";
8
6
  import { HttpHandlerUserInput as __HttpHandlerUserInput } from "@smithy/protocol-http";
9
7
  import { Client as __Client, DefaultsMode as __DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@smithy/smithy-client";
10
- import { BodyLengthCalculator as __BodyLengthCalculator, CheckOptionalClientConfig as __CheckOptionalClientConfig, ChecksumConstructor as __ChecksumConstructor, 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 "@smithy/types";
8
+ import { AwsCredentialIdentityProvider, BodyLengthCalculator as __BodyLengthCalculator, CheckOptionalClientConfig as __CheckOptionalClientConfig, ChecksumConstructor as __ChecksumConstructor, 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 "@smithy/types";
9
+ import { HttpAuthSchemeInputConfig, HttpAuthSchemeResolvedConfig } from "./auth/httpAuthSchemeProvider";
11
10
  import { DeleteKeyCommandInput, DeleteKeyCommandOutput } from "./commands/DeleteKeyCommand";
12
11
  import { DescribeKeyValueStoreCommandInput, DescribeKeyValueStoreCommandOutput } from "./commands/DescribeKeyValueStoreCommand";
13
12
  import { GetKeyCommandInput, GetKeyCommandOutput } from "./commands/GetKeyCommand";
@@ -102,15 +101,16 @@ export interface ClientDefaults extends Partial<__SmithyConfiguration<__HttpHand
102
101
  */
103
102
  region?: string | __Provider<string>;
104
103
  /**
105
- * Default credentials provider; Not available in browser runtime.
104
+ * The provider populating default tracking information to be sent with `user-agent`, `x-amz-user-agent` header
106
105
  * @internal
107
106
  */
108
- credentialDefaultProvider?: (input: any) => __Provider<__Credentials>;
107
+ defaultUserAgentProvider?: Provider<__UserAgent>;
109
108
  /**
110
- * The provider populating default tracking information to be sent with `user-agent`, `x-amz-user-agent` header
109
+ * Default credentials provider; Not available in browser runtime.
110
+ * @deprecated
111
111
  * @internal
112
112
  */
113
- defaultUserAgentProvider?: Provider<__UserAgent>;
113
+ credentialDefaultProvider?: (input: any) => AwsCredentialIdentityProvider;
114
114
  /**
115
115
  * Value for how many times a request will be made at most in case of retry.
116
116
  */
@@ -137,7 +137,7 @@ export interface ClientDefaults extends Partial<__SmithyConfiguration<__HttpHand
137
137
  /**
138
138
  * @public
139
139
  */
140
- export type CloudFrontKeyValueStoreClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & RegionInputConfig & EndpointInputConfig<EndpointParameters> & HostHeaderInputConfig & AwsAuthInputConfig & UserAgentInputConfig & RetryInputConfig & ClientInputEndpointParameters;
140
+ export type CloudFrontKeyValueStoreClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & UserAgentInputConfig & RetryInputConfig & RegionInputConfig & HostHeaderInputConfig & EndpointInputConfig<EndpointParameters> & HttpAuthSchemeInputConfig & ClientInputEndpointParameters;
141
141
  /**
142
142
  * @public
143
143
  *
@@ -148,7 +148,7 @@ export interface CloudFrontKeyValueStoreClientConfig extends CloudFrontKeyValueS
148
148
  /**
149
149
  * @public
150
150
  */
151
- export type CloudFrontKeyValueStoreClientResolvedConfigType = __SmithyResolvedConfiguration<__HttpHandlerOptions> & Required<ClientDefaults> & RuntimeExtensionsConfig & RegionResolvedConfig & EndpointResolvedConfig<EndpointParameters> & HostHeaderResolvedConfig & AwsAuthResolvedConfig & UserAgentResolvedConfig & RetryResolvedConfig & ClientResolvedEndpointParameters;
151
+ export type CloudFrontKeyValueStoreClientResolvedConfigType = __SmithyResolvedConfiguration<__HttpHandlerOptions> & Required<ClientDefaults> & RuntimeExtensionsConfig & UserAgentResolvedConfig & RetryResolvedConfig & RegionResolvedConfig & HostHeaderResolvedConfig & EndpointResolvedConfig<EndpointParameters> & HttpAuthSchemeResolvedConfig & ClientResolvedEndpointParameters;
152
152
  /**
153
153
  * @public
154
154
  *
@@ -0,0 +1,29 @@
1
+ import { AwsCredentialIdentity, AwsCredentialIdentityProvider, HttpAuthScheme } from "@smithy/types";
2
+ import { CloudFrontKeyValueStoreHttpAuthSchemeProvider } from "./httpAuthSchemeProvider";
3
+ /**
4
+ * @internal
5
+ */
6
+ export interface HttpAuthExtensionConfiguration {
7
+ setHttpAuthScheme(httpAuthScheme: HttpAuthScheme): void;
8
+ httpAuthSchemes(): HttpAuthScheme[];
9
+ setHttpAuthSchemeProvider(httpAuthSchemeProvider: CloudFrontKeyValueStoreHttpAuthSchemeProvider): void;
10
+ httpAuthSchemeProvider(): CloudFrontKeyValueStoreHttpAuthSchemeProvider;
11
+ setCredentials(credentials: AwsCredentialIdentity | AwsCredentialIdentityProvider): void;
12
+ credentials(): AwsCredentialIdentity | AwsCredentialIdentityProvider | undefined;
13
+ }
14
+ /**
15
+ * @internal
16
+ */
17
+ export type HttpAuthRuntimeConfig = Partial<{
18
+ httpAuthSchemes: HttpAuthScheme[];
19
+ httpAuthSchemeProvider: CloudFrontKeyValueStoreHttpAuthSchemeProvider;
20
+ credentials: AwsCredentialIdentity | AwsCredentialIdentityProvider;
21
+ }>;
22
+ /**
23
+ * @internal
24
+ */
25
+ export declare const getHttpAuthExtensionConfiguration: (runtimeConfig: HttpAuthRuntimeConfig) => HttpAuthExtensionConfiguration;
26
+ /**
27
+ * @internal
28
+ */
29
+ export declare const resolveHttpAuthRuntimeConfig: (config: HttpAuthExtensionConfiguration) => HttpAuthRuntimeConfig;
@@ -0,0 +1,69 @@
1
+ import { AwsSdkSigV4AuthInputConfig, AwsSdkSigV4AuthResolvedConfig, AwsSdkSigV4PreviouslyResolved } from "@aws-sdk/core";
2
+ import { HandlerExecutionContext, HttpAuthScheme, HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider } from "@smithy/types";
3
+ import { CloudFrontKeyValueStoreClientResolvedConfig } from "../CloudFrontKeyValueStoreClient";
4
+ import { EndpointParameters } from "../endpoint/EndpointParameters";
5
+ /**
6
+ * @internal
7
+ */
8
+ interface _CloudFrontKeyValueStoreHttpAuthSchemeParameters extends HttpAuthSchemeParameters {
9
+ region?: string;
10
+ }
11
+ /**
12
+ * @internal
13
+ */
14
+ export interface CloudFrontKeyValueStoreHttpAuthSchemeParameters extends _CloudFrontKeyValueStoreHttpAuthSchemeParameters, EndpointParameters {
15
+ region?: string;
16
+ }
17
+ /**
18
+ * @internal
19
+ */
20
+ export interface CloudFrontKeyValueStoreHttpAuthSchemeParametersProvider extends HttpAuthSchemeParametersProvider<CloudFrontKeyValueStoreClientResolvedConfig, HandlerExecutionContext, CloudFrontKeyValueStoreHttpAuthSchemeParameters, object> {
21
+ }
22
+ /**
23
+ * @internal
24
+ */
25
+ export declare const defaultCloudFrontKeyValueStoreHttpAuthSchemeParametersProvider: CloudFrontKeyValueStoreHttpAuthSchemeParametersProvider;
26
+ /**
27
+ * @internal
28
+ */
29
+ export interface CloudFrontKeyValueStoreHttpAuthSchemeProvider extends HttpAuthSchemeProvider<CloudFrontKeyValueStoreHttpAuthSchemeParameters> {
30
+ }
31
+ /**
32
+ * @internal
33
+ */
34
+ export declare const defaultCloudFrontKeyValueStoreHttpAuthSchemeProvider: CloudFrontKeyValueStoreHttpAuthSchemeProvider;
35
+ /**
36
+ * @internal
37
+ */
38
+ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig {
39
+ /**
40
+ * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme.
41
+ * @internal
42
+ */
43
+ httpAuthSchemes?: HttpAuthScheme[];
44
+ /**
45
+ * Configuration of an HttpAuthSchemeProvider for a client which resolves which HttpAuthScheme to use.
46
+ * @internal
47
+ */
48
+ httpAuthSchemeProvider?: CloudFrontKeyValueStoreHttpAuthSchemeProvider;
49
+ }
50
+ /**
51
+ * @internal
52
+ */
53
+ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig {
54
+ /**
55
+ * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme.
56
+ * @internal
57
+ */
58
+ readonly httpAuthSchemes: HttpAuthScheme[];
59
+ /**
60
+ * Configuration of an HttpAuthSchemeProvider for a client which resolves which HttpAuthScheme to use.
61
+ * @internal
62
+ */
63
+ readonly httpAuthSchemeProvider: CloudFrontKeyValueStoreHttpAuthSchemeProvider;
64
+ }
65
+ /**
66
+ * @internal
67
+ */
68
+ export declare const resolveHttpAuthSchemeConfig: <T>(config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved) => T & HttpAuthSchemeResolvedConfig;
69
+ export {};
@@ -1,8 +1,9 @@
1
1
  import { AwsRegionExtensionConfiguration } from "@aws-sdk/types";
2
2
  import { HttpHandlerExtensionConfiguration } from "@smithy/protocol-http";
3
3
  import { DefaultExtensionConfiguration } from "@smithy/types";
4
+ import { HttpAuthExtensionConfiguration } from "./auth/httpAuthExtensionConfiguration";
4
5
  /**
5
6
  * @internal
6
7
  */
7
- export interface CloudFrontKeyValueStoreExtensionConfiguration extends HttpHandlerExtensionConfiguration, DefaultExtensionConfiguration, AwsRegionExtensionConfiguration {
8
+ export interface CloudFrontKeyValueStoreExtensionConfiguration extends HttpHandlerExtensionConfiguration, DefaultExtensionConfiguration, AwsRegionExtensionConfiguration, HttpAuthExtensionConfiguration {
8
9
  }
@@ -7,7 +7,7 @@ export declare const getRuntimeConfig: (config: CloudFrontKeyValueStoreClientCon
7
7
  runtime: string;
8
8
  defaultsMode: import("@smithy/types").Provider<import("@smithy/smithy-client").ResolvedDefaultsMode>;
9
9
  bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
10
- credentialDefaultProvider: (input: any) => import("@smithy/types").Provider<import("@aws-sdk/types").Credentials>;
10
+ credentialDefaultProvider: (input: any) => import("@smithy/types").AwsCredentialIdentityProvider;
11
11
  defaultUserAgentProvider: import("@smithy/types").Provider<import("@smithy/types").UserAgent>;
12
12
  maxAttempts: number | import("@smithy/types").Provider<number>;
13
13
  region: string | import("@smithy/types").Provider<any>;
@@ -27,17 +27,19 @@ export declare const getRuntimeConfig: (config: CloudFrontKeyValueStoreClientCon
27
27
  serviceId: string;
28
28
  logger: import("@smithy/types").Logger;
29
29
  extensions: import("./runtimeExtensions").RuntimeExtension[];
30
+ customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
31
+ retryStrategy?: import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2 | undefined;
30
32
  endpoint?: ((string | import("@smithy/types").Endpoint | import("@smithy/types").Provider<import("@smithy/types").Endpoint> | import("@smithy/types").EndpointV2 | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>) & (string | import("@smithy/types").Provider<string> | import("@smithy/types").Endpoint | import("@smithy/types").Provider<import("@smithy/types").Endpoint> | import("@smithy/types").EndpointV2 | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>)) | undefined;
31
33
  endpointProvider: (endpointParams: import("./endpoint/EndpointParameters").EndpointParameters, context?: {
32
34
  logger?: import("@smithy/types").Logger | undefined;
33
35
  }) => import("@smithy/types").EndpointV2;
34
36
  tls?: boolean | undefined;
35
- credentials?: import("@smithy/types").AwsCredentialIdentity | import("@smithy/types").Provider<import("@smithy/types").AwsCredentialIdentity> | undefined;
37
+ httpAuthSchemes: import("@smithy/types").HttpAuthScheme[];
38
+ httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").CloudFrontKeyValueStoreHttpAuthSchemeProvider;
39
+ credentials?: import("@smithy/types").AwsCredentialIdentity | import("@smithy/types").AwsCredentialIdentityProvider | undefined;
36
40
  signer?: import("@smithy/types").RequestSigner | ((authScheme?: import("@smithy/types").AuthScheme | undefined) => Promise<import("@smithy/types").RequestSigner>) | undefined;
37
41
  signingEscapePath?: boolean | undefined;
38
42
  systemClockOffset?: number | undefined;
39
43
  signingRegion?: string | undefined;
40
44
  signerConstructor: (new (options: import("@smithy/signature-v4").SignatureV4Init & import("@smithy/signature-v4").SignatureV4CryptoInit) => import("@smithy/types").RequestSigner) | typeof import("@aws-sdk/signature-v4-multi-region").SignatureV4MultiRegion;
41
- customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
42
- retryStrategy?: import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2 | undefined;
43
45
  };
@@ -27,17 +27,19 @@ export declare const getRuntimeConfig: (config: CloudFrontKeyValueStoreClientCon
27
27
  serviceId: string;
28
28
  logger: import("@smithy/types").Logger;
29
29
  extensions: import("./runtimeExtensions").RuntimeExtension[];
30
+ customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
31
+ retryStrategy?: import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2 | undefined;
30
32
  endpoint?: ((string | import("@smithy/types").Endpoint | import("@smithy/types").Provider<import("@smithy/types").Endpoint> | import("@smithy/types").EndpointV2 | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>) & (string | import("@smithy/types").Provider<string> | import("@smithy/types").Endpoint | import("@smithy/types").Provider<import("@smithy/types").Endpoint> | import("@smithy/types").EndpointV2 | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>)) | undefined;
31
33
  endpointProvider: (endpointParams: import("./endpoint/EndpointParameters").EndpointParameters, context?: {
32
34
  logger?: import("@smithy/types").Logger | undefined;
33
35
  }) => import("@smithy/types").EndpointV2;
34
36
  tls?: boolean | undefined;
35
- credentials?: import("@smithy/types").AwsCredentialIdentity | import("@smithy/types").Provider<import("@smithy/types").AwsCredentialIdentity> | undefined;
37
+ httpAuthSchemes: import("@smithy/types").HttpAuthScheme[];
38
+ httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").CloudFrontKeyValueStoreHttpAuthSchemeProvider;
39
+ credentials?: import("@smithy/types").AwsCredentialIdentity | import("@smithy/types").AwsCredentialIdentityProvider | undefined;
36
40
  signer?: import("@smithy/types").RequestSigner | ((authScheme?: import("@smithy/types").AuthScheme | undefined) => Promise<import("@smithy/types").RequestSigner>) | undefined;
37
41
  signingEscapePath?: boolean | undefined;
38
42
  systemClockOffset?: number | undefined;
39
43
  signingRegion?: string | undefined;
40
44
  signerConstructor: (new (options: import("@smithy/signature-v4").SignatureV4Init & import("@smithy/signature-v4").SignatureV4CryptoInit) => import("@smithy/types").RequestSigner) | typeof import("@aws-sdk/signature-v4-multi-region").SignatureV4MultiRegion;
41
- customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
42
- retryStrategy?: import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2 | undefined;
43
45
  };
@@ -19,24 +19,26 @@ export declare const getRuntimeConfig: (config: CloudFrontKeyValueStoreClientCon
19
19
  useDualstackEndpoint: boolean | import("@smithy/types").Provider<boolean>;
20
20
  useFipsEndpoint: boolean | import("@smithy/types").Provider<boolean>;
21
21
  region: string | import("@smithy/types").Provider<any>;
22
- credentialDefaultProvider: (input: any) => import("@smithy/types").Provider<import("@aws-sdk/types").Credentials>;
23
22
  defaultUserAgentProvider: import("@smithy/types").Provider<import("@smithy/types").UserAgent>;
23
+ credentialDefaultProvider: (input: any) => import("@smithy/types").AwsCredentialIdentityProvider;
24
24
  maxAttempts: number | import("@smithy/types").Provider<number>;
25
25
  retryMode: string | import("@smithy/types").Provider<string>;
26
26
  logger: import("@smithy/types").Logger;
27
27
  extensions: import("./runtimeExtensions").RuntimeExtension[];
28
28
  defaultsMode: import("@smithy/smithy-client").DefaultsMode | import("@smithy/types").Provider<import("@smithy/smithy-client").DefaultsMode>;
29
+ customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
30
+ retryStrategy?: import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2 | undefined;
29
31
  endpoint?: string | import("@smithy/types").Endpoint | import("@smithy/types").Provider<import("@smithy/types").Endpoint> | import("@smithy/types").EndpointV2 | import("@smithy/types").Provider<import("@smithy/types").EndpointV2> | undefined;
30
32
  endpointProvider: (endpointParams: import("./endpoint/EndpointParameters").EndpointParameters, context?: {
31
33
  logger?: import("@smithy/types").Logger | undefined;
32
34
  }) => import("@smithy/types").EndpointV2;
33
35
  tls?: boolean | undefined;
34
- credentials?: import("@smithy/types").AwsCredentialIdentity | import("@smithy/types").Provider<import("@smithy/types").AwsCredentialIdentity> | undefined;
36
+ httpAuthSchemes: import("@smithy/types").HttpAuthScheme[];
37
+ httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").CloudFrontKeyValueStoreHttpAuthSchemeProvider;
38
+ credentials?: import("@smithy/types").AwsCredentialIdentity | import("@smithy/types").AwsCredentialIdentityProvider | undefined;
35
39
  signer?: import("@smithy/types").RequestSigner | ((authScheme?: import("@smithy/types").AuthScheme | undefined) => Promise<import("@smithy/types").RequestSigner>) | undefined;
36
40
  signingEscapePath?: boolean | undefined;
37
41
  systemClockOffset?: number | undefined;
38
42
  signingRegion?: string | undefined;
39
43
  signerConstructor: (new (options: import("@smithy/signature-v4").SignatureV4Init & import("@smithy/signature-v4").SignatureV4CryptoInit) => import("@smithy/types").RequestSigner) | typeof import("@aws-sdk/signature-v4-multi-region").SignatureV4MultiRegion;
40
- customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
41
- retryStrategy?: import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2 | undefined;
42
44
  };
@@ -12,6 +12,8 @@ export declare const getRuntimeConfig: (config: CloudFrontKeyValueStoreClientCon
12
12
  logger?: import("@smithy/types").Logger | undefined;
13
13
  }) => import("@smithy/types").EndpointV2;
14
14
  extensions: import("./runtimeExtensions").RuntimeExtension[];
15
+ httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").CloudFrontKeyValueStoreHttpAuthSchemeProvider;
16
+ httpAuthSchemes: import("@smithy/types").HttpAuthScheme[];
15
17
  logger: import("@smithy/types").Logger;
16
18
  serviceId: string;
17
19
  signerConstructor: (new (options: import("@smithy/signature-v4").SignatureV4Init & import("@smithy/signature-v4").SignatureV4CryptoInit) => import("@smithy/types").RequestSigner) | typeof SignatureV4MultiRegion;
@@ -2,15 +2,10 @@ import {
2
2
  HostHeaderInputConfig,
3
3
  HostHeaderResolvedConfig,
4
4
  } from "@aws-sdk/middleware-host-header";
5
- import {
6
- AwsAuthInputConfig,
7
- AwsAuthResolvedConfig,
8
- } from "@aws-sdk/middleware-signing";
9
5
  import {
10
6
  UserAgentInputConfig,
11
7
  UserAgentResolvedConfig,
12
8
  } from "@aws-sdk/middleware-user-agent";
13
- import { Credentials as __Credentials } from "@aws-sdk/types";
14
9
  import {
15
10
  RegionInputConfig,
16
11
  RegionResolvedConfig,
@@ -31,6 +26,7 @@ import {
31
26
  SmithyResolvedConfiguration as __SmithyResolvedConfiguration,
32
27
  } from "@smithy/smithy-client";
33
28
  import {
29
+ AwsCredentialIdentityProvider,
34
30
  BodyLengthCalculator as __BodyLengthCalculator,
35
31
  CheckOptionalClientConfig as __CheckOptionalClientConfig,
36
32
  ChecksumConstructor as __ChecksumConstructor,
@@ -45,6 +41,10 @@ import {
45
41
  UrlParser as __UrlParser,
46
42
  UserAgent as __UserAgent,
47
43
  } from "@smithy/types";
44
+ import {
45
+ HttpAuthSchemeInputConfig,
46
+ HttpAuthSchemeResolvedConfig,
47
+ } from "./auth/httpAuthSchemeProvider";
48
48
  import {
49
49
  DeleteKeyCommandInput,
50
50
  DeleteKeyCommandOutput,
@@ -107,8 +107,8 @@ export interface ClientDefaults
107
107
  useDualstackEndpoint?: boolean | __Provider<boolean>;
108
108
  useFipsEndpoint?: boolean | __Provider<boolean>;
109
109
  region?: string | __Provider<string>;
110
- credentialDefaultProvider?: (input: any) => __Provider<__Credentials>;
111
110
  defaultUserAgentProvider?: Provider<__UserAgent>;
111
+ credentialDefaultProvider?: (input: any) => AwsCredentialIdentityProvider;
112
112
  maxAttempts?: number | __Provider<number>;
113
113
  retryMode?: string | __Provider<string>;
114
114
  logger?: __Logger;
@@ -119,12 +119,12 @@ export type CloudFrontKeyValueStoreClientConfigType = Partial<
119
119
  __SmithyConfiguration<__HttpHandlerOptions>
120
120
  > &
121
121
  ClientDefaults &
122
- RegionInputConfig &
123
- EndpointInputConfig<EndpointParameters> &
124
- HostHeaderInputConfig &
125
- AwsAuthInputConfig &
126
122
  UserAgentInputConfig &
127
123
  RetryInputConfig &
124
+ RegionInputConfig &
125
+ HostHeaderInputConfig &
126
+ EndpointInputConfig<EndpointParameters> &
127
+ HttpAuthSchemeInputConfig &
128
128
  ClientInputEndpointParameters;
129
129
  export interface CloudFrontKeyValueStoreClientConfig
130
130
  extends CloudFrontKeyValueStoreClientConfigType {}
@@ -132,12 +132,12 @@ export type CloudFrontKeyValueStoreClientResolvedConfigType =
132
132
  __SmithyResolvedConfiguration<__HttpHandlerOptions> &
133
133
  Required<ClientDefaults> &
134
134
  RuntimeExtensionsConfig &
135
- RegionResolvedConfig &
136
- EndpointResolvedConfig<EndpointParameters> &
137
- HostHeaderResolvedConfig &
138
- AwsAuthResolvedConfig &
139
135
  UserAgentResolvedConfig &
140
136
  RetryResolvedConfig &
137
+ RegionResolvedConfig &
138
+ HostHeaderResolvedConfig &
139
+ EndpointResolvedConfig<EndpointParameters> &
140
+ HttpAuthSchemeResolvedConfig &
141
141
  ClientResolvedEndpointParameters;
142
142
  export interface CloudFrontKeyValueStoreClientResolvedConfig
143
143
  extends CloudFrontKeyValueStoreClientResolvedConfigType {}
@@ -0,0 +1,32 @@
1
+ import {
2
+ AwsCredentialIdentity,
3
+ AwsCredentialIdentityProvider,
4
+ HttpAuthScheme,
5
+ } from "@smithy/types";
6
+ import { CloudFrontKeyValueStoreHttpAuthSchemeProvider } from "./httpAuthSchemeProvider";
7
+ export interface HttpAuthExtensionConfiguration {
8
+ setHttpAuthScheme(httpAuthScheme: HttpAuthScheme): void;
9
+ httpAuthSchemes(): HttpAuthScheme[];
10
+ setHttpAuthSchemeProvider(
11
+ httpAuthSchemeProvider: CloudFrontKeyValueStoreHttpAuthSchemeProvider
12
+ ): void;
13
+ httpAuthSchemeProvider(): CloudFrontKeyValueStoreHttpAuthSchemeProvider;
14
+ setCredentials(
15
+ credentials: AwsCredentialIdentity | AwsCredentialIdentityProvider
16
+ ): void;
17
+ credentials():
18
+ | AwsCredentialIdentity
19
+ | AwsCredentialIdentityProvider
20
+ | undefined;
21
+ }
22
+ export type HttpAuthRuntimeConfig = Partial<{
23
+ httpAuthSchemes: HttpAuthScheme[];
24
+ httpAuthSchemeProvider: CloudFrontKeyValueStoreHttpAuthSchemeProvider;
25
+ credentials: AwsCredentialIdentity | AwsCredentialIdentityProvider;
26
+ }>;
27
+ export declare const getHttpAuthExtensionConfiguration: (
28
+ runtimeConfig: HttpAuthRuntimeConfig
29
+ ) => HttpAuthExtensionConfiguration;
30
+ export declare const resolveHttpAuthRuntimeConfig: (
31
+ config: HttpAuthExtensionConfiguration
32
+ ) => HttpAuthRuntimeConfig;
@@ -0,0 +1,47 @@
1
+ import {
2
+ AwsSdkSigV4AuthInputConfig,
3
+ AwsSdkSigV4AuthResolvedConfig,
4
+ AwsSdkSigV4PreviouslyResolved,
5
+ } from "@aws-sdk/core";
6
+ import {
7
+ HandlerExecutionContext,
8
+ HttpAuthScheme,
9
+ HttpAuthSchemeParameters,
10
+ HttpAuthSchemeParametersProvider,
11
+ HttpAuthSchemeProvider,
12
+ } from "@smithy/types";
13
+ import { CloudFrontKeyValueStoreClientResolvedConfig } from "../CloudFrontKeyValueStoreClient";
14
+ import { EndpointParameters } from "../endpoint/EndpointParameters";
15
+ interface _CloudFrontKeyValueStoreHttpAuthSchemeParameters
16
+ extends HttpAuthSchemeParameters {
17
+ region?: string;
18
+ }
19
+ export interface CloudFrontKeyValueStoreHttpAuthSchemeParameters
20
+ extends _CloudFrontKeyValueStoreHttpAuthSchemeParameters,
21
+ EndpointParameters {
22
+ region?: string;
23
+ }
24
+ export interface CloudFrontKeyValueStoreHttpAuthSchemeParametersProvider
25
+ extends HttpAuthSchemeParametersProvider<
26
+ CloudFrontKeyValueStoreClientResolvedConfig,
27
+ HandlerExecutionContext,
28
+ CloudFrontKeyValueStoreHttpAuthSchemeParameters,
29
+ object
30
+ > {}
31
+ export declare const defaultCloudFrontKeyValueStoreHttpAuthSchemeParametersProvider: CloudFrontKeyValueStoreHttpAuthSchemeParametersProvider;
32
+ export interface CloudFrontKeyValueStoreHttpAuthSchemeProvider
33
+ extends HttpAuthSchemeProvider<CloudFrontKeyValueStoreHttpAuthSchemeParameters> {}
34
+ export declare const defaultCloudFrontKeyValueStoreHttpAuthSchemeProvider: CloudFrontKeyValueStoreHttpAuthSchemeProvider;
35
+ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig {
36
+ httpAuthSchemes?: HttpAuthScheme[];
37
+ httpAuthSchemeProvider?: CloudFrontKeyValueStoreHttpAuthSchemeProvider;
38
+ }
39
+ export interface HttpAuthSchemeResolvedConfig
40
+ extends AwsSdkSigV4AuthResolvedConfig {
41
+ readonly httpAuthSchemes: HttpAuthScheme[];
42
+ readonly httpAuthSchemeProvider: CloudFrontKeyValueStoreHttpAuthSchemeProvider;
43
+ }
44
+ export declare const resolveHttpAuthSchemeConfig: <T>(
45
+ config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved
46
+ ) => T & HttpAuthSchemeResolvedConfig;
47
+ export {};
@@ -1,7 +1,9 @@
1
1
  import { AwsRegionExtensionConfiguration } from "@aws-sdk/types";
2
2
  import { HttpHandlerExtensionConfiguration } from "@smithy/protocol-http";
3
3
  import { DefaultExtensionConfiguration } from "@smithy/types";
4
+ import { HttpAuthExtensionConfiguration } from "./auth/httpAuthExtensionConfiguration";
4
5
  export interface CloudFrontKeyValueStoreExtensionConfiguration
5
6
  extends HttpHandlerExtensionConfiguration,
6
7
  DefaultExtensionConfiguration,
7
- AwsRegionExtensionConfiguration {}
8
+ AwsRegionExtensionConfiguration,
9
+ HttpAuthExtensionConfiguration {}
@@ -10,7 +10,7 @@ export declare const getRuntimeConfig: (
10
10
  bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
11
11
  credentialDefaultProvider: (
12
12
  input: any
13
- ) => import("@smithy/types").Provider<import("@aws-sdk/types").Credentials>;
13
+ ) => import("@smithy/types").AwsCredentialIdentityProvider;
14
14
  defaultUserAgentProvider: import("@smithy/types").Provider<
15
15
  import("@smithy/types").UserAgent
16
16
  >;
@@ -34,6 +34,11 @@ export declare const getRuntimeConfig: (
34
34
  serviceId: string;
35
35
  logger: import("@smithy/types").Logger;
36
36
  extensions: import("./runtimeExtensions").RuntimeExtension[];
37
+ customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
38
+ retryStrategy?:
39
+ | import("@smithy/types").RetryStrategy
40
+ | import("@smithy/types").RetryStrategyV2
41
+ | undefined;
37
42
  endpoint?:
38
43
  | ((
39
44
  | string
@@ -58,11 +63,11 @@ export declare const getRuntimeConfig: (
58
63
  }
59
64
  ) => import("@smithy/types").EndpointV2;
60
65
  tls?: boolean | undefined;
66
+ httpAuthSchemes: import("@smithy/types").HttpAuthScheme[];
67
+ httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").CloudFrontKeyValueStoreHttpAuthSchemeProvider;
61
68
  credentials?:
62
69
  | import("@smithy/types").AwsCredentialIdentity
63
- | import("@smithy/types").Provider<
64
- import("@smithy/types").AwsCredentialIdentity
65
- >
70
+ | import("@smithy/types").AwsCredentialIdentityProvider
66
71
  | undefined;
67
72
  signer?:
68
73
  | import("@smithy/types").RequestSigner
@@ -79,9 +84,4 @@ export declare const getRuntimeConfig: (
79
84
  import("@smithy/signature-v4").SignatureV4CryptoInit
80
85
  ) => import("@smithy/types").RequestSigner)
81
86
  | typeof import("@aws-sdk/signature-v4-multi-region").SignatureV4MultiRegion;
82
- customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
83
- retryStrategy?:
84
- | import("@smithy/types").RetryStrategy
85
- | import("@smithy/types").RetryStrategyV2
86
- | undefined;
87
87
  };
@@ -38,6 +38,11 @@ export declare const getRuntimeConfig: (
38
38
  serviceId: string;
39
39
  logger: import("@smithy/types").Logger;
40
40
  extensions: import("./runtimeExtensions").RuntimeExtension[];
41
+ customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
42
+ retryStrategy?:
43
+ | import("@smithy/types").RetryStrategy
44
+ | import("@smithy/types").RetryStrategyV2
45
+ | undefined;
41
46
  endpoint?:
42
47
  | ((
43
48
  | string
@@ -62,11 +67,11 @@ export declare const getRuntimeConfig: (
62
67
  }
63
68
  ) => import("@smithy/types").EndpointV2;
64
69
  tls?: boolean | undefined;
70
+ httpAuthSchemes: import("@smithy/types").HttpAuthScheme[];
71
+ httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").CloudFrontKeyValueStoreHttpAuthSchemeProvider;
65
72
  credentials?:
66
73
  | import("@smithy/types").AwsCredentialIdentity
67
- | import("@smithy/types").Provider<
68
- import("@smithy/types").AwsCredentialIdentity
69
- >
74
+ | import("@smithy/types").AwsCredentialIdentityProvider
70
75
  | undefined;
71
76
  signer?:
72
77
  | import("@smithy/types").RequestSigner
@@ -83,9 +88,4 @@ export declare const getRuntimeConfig: (
83
88
  import("@smithy/signature-v4").SignatureV4CryptoInit
84
89
  ) => import("@smithy/types").RequestSigner)
85
90
  | typeof import("@aws-sdk/signature-v4-multi-region").SignatureV4MultiRegion;
86
- customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
87
- retryStrategy?:
88
- | import("@smithy/types").RetryStrategy
89
- | import("@smithy/types").RetryStrategyV2
90
- | undefined;
91
91
  };
@@ -23,12 +23,12 @@ export declare const getRuntimeConfig: (
23
23
  useDualstackEndpoint: boolean | import("@smithy/types").Provider<boolean>;
24
24
  useFipsEndpoint: boolean | import("@smithy/types").Provider<boolean>;
25
25
  region: string | import("@smithy/types").Provider<any>;
26
- credentialDefaultProvider: (
27
- input: any
28
- ) => import("@smithy/types").Provider<import("@aws-sdk/types").Credentials>;
29
26
  defaultUserAgentProvider: import("@smithy/types").Provider<
30
27
  import("@smithy/types").UserAgent
31
28
  >;
29
+ credentialDefaultProvider: (
30
+ input: any
31
+ ) => import("@smithy/types").AwsCredentialIdentityProvider;
32
32
  maxAttempts: number | import("@smithy/types").Provider<number>;
33
33
  retryMode: string | import("@smithy/types").Provider<string>;
34
34
  logger: import("@smithy/types").Logger;
@@ -38,6 +38,11 @@ export declare const getRuntimeConfig: (
38
38
  | import("@smithy/types").Provider<
39
39
  import("@smithy/smithy-client").DefaultsMode
40
40
  >;
41
+ customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
42
+ retryStrategy?:
43
+ | import("@smithy/types").RetryStrategy
44
+ | import("@smithy/types").RetryStrategyV2
45
+ | undefined;
41
46
  endpoint?:
42
47
  | string
43
48
  | import("@smithy/types").Endpoint
@@ -52,11 +57,11 @@ export declare const getRuntimeConfig: (
52
57
  }
53
58
  ) => import("@smithy/types").EndpointV2;
54
59
  tls?: boolean | undefined;
60
+ httpAuthSchemes: import("@smithy/types").HttpAuthScheme[];
61
+ httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").CloudFrontKeyValueStoreHttpAuthSchemeProvider;
55
62
  credentials?:
56
63
  | import("@smithy/types").AwsCredentialIdentity
57
- | import("@smithy/types").Provider<
58
- import("@smithy/types").AwsCredentialIdentity
59
- >
64
+ | import("@smithy/types").AwsCredentialIdentityProvider
60
65
  | undefined;
61
66
  signer?:
62
67
  | import("@smithy/types").RequestSigner
@@ -73,9 +78,4 @@ export declare const getRuntimeConfig: (
73
78
  import("@smithy/signature-v4").SignatureV4CryptoInit
74
79
  ) => import("@smithy/types").RequestSigner)
75
80
  | typeof import("@aws-sdk/signature-v4-multi-region").SignatureV4MultiRegion;
76
- customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
77
- retryStrategy?:
78
- | import("@smithy/types").RetryStrategy
79
- | import("@smithy/types").RetryStrategyV2
80
- | undefined;
81
81
  };
@@ -14,6 +14,8 @@ export declare const getRuntimeConfig: (
14
14
  }
15
15
  ) => import("@smithy/types").EndpointV2;
16
16
  extensions: import("./runtimeExtensions").RuntimeExtension[];
17
+ httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").CloudFrontKeyValueStoreHttpAuthSchemeProvider;
18
+ httpAuthSchemes: import("@smithy/types").HttpAuthScheme[];
17
19
  logger: import("@smithy/types").Logger;
18
20
  serviceId: string;
19
21
  signerConstructor: