@aws-sdk/client-cognito-sync 3.193.0 → 3.196.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (100) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/dist-cjs/CognitoSyncClient.js +11 -8
  3. package/dist-cjs/commands/BulkPublishCommand.js +10 -0
  4. package/dist-cjs/commands/DeleteDatasetCommand.js +10 -0
  5. package/dist-cjs/commands/DescribeDatasetCommand.js +10 -0
  6. package/dist-cjs/commands/DescribeIdentityPoolUsageCommand.js +10 -0
  7. package/dist-cjs/commands/DescribeIdentityUsageCommand.js +10 -0
  8. package/dist-cjs/commands/GetBulkPublishDetailsCommand.js +10 -0
  9. package/dist-cjs/commands/GetCognitoEventsCommand.js +10 -0
  10. package/dist-cjs/commands/GetIdentityPoolConfigurationCommand.js +10 -0
  11. package/dist-cjs/commands/ListDatasetsCommand.js +10 -0
  12. package/dist-cjs/commands/ListIdentityPoolUsageCommand.js +10 -0
  13. package/dist-cjs/commands/ListRecordsCommand.js +10 -0
  14. package/dist-cjs/commands/RegisterDeviceCommand.js +10 -0
  15. package/dist-cjs/commands/SetCognitoEventsCommand.js +10 -0
  16. package/dist-cjs/commands/SetIdentityPoolConfigurationCommand.js +10 -0
  17. package/dist-cjs/commands/SubscribeToDatasetCommand.js +10 -0
  18. package/dist-cjs/commands/UnsubscribeFromDatasetCommand.js +10 -0
  19. package/dist-cjs/commands/UpdateRecordsCommand.js +10 -0
  20. package/dist-cjs/endpoint/EndpointParameters.js +13 -0
  21. package/dist-cjs/endpoint/endpointResolver.js +12 -0
  22. package/dist-cjs/endpoint/ruleset.js +318 -0
  23. package/dist-cjs/runtimeConfig.shared.js +3 -3
  24. package/dist-es/CognitoSyncClient.js +12 -9
  25. package/dist-es/commands/BulkPublishCommand.js +10 -0
  26. package/dist-es/commands/DeleteDatasetCommand.js +10 -0
  27. package/dist-es/commands/DescribeDatasetCommand.js +10 -0
  28. package/dist-es/commands/DescribeIdentityPoolUsageCommand.js +10 -0
  29. package/dist-es/commands/DescribeIdentityUsageCommand.js +10 -0
  30. package/dist-es/commands/GetBulkPublishDetailsCommand.js +10 -0
  31. package/dist-es/commands/GetCognitoEventsCommand.js +10 -0
  32. package/dist-es/commands/GetIdentityPoolConfigurationCommand.js +10 -0
  33. package/dist-es/commands/ListDatasetsCommand.js +10 -0
  34. package/dist-es/commands/ListIdentityPoolUsageCommand.js +10 -0
  35. package/dist-es/commands/ListRecordsCommand.js +10 -0
  36. package/dist-es/commands/RegisterDeviceCommand.js +10 -0
  37. package/dist-es/commands/SetCognitoEventsCommand.js +10 -0
  38. package/dist-es/commands/SetIdentityPoolConfigurationCommand.js +10 -0
  39. package/dist-es/commands/SubscribeToDatasetCommand.js +10 -0
  40. package/dist-es/commands/UnsubscribeFromDatasetCommand.js +10 -0
  41. package/dist-es/commands/UpdateRecordsCommand.js +10 -0
  42. package/dist-es/endpoint/EndpointParameters.js +8 -0
  43. package/dist-es/endpoint/endpointResolver.js +8 -0
  44. package/dist-es/endpoint/ruleset.js +315 -0
  45. package/dist-es/runtimeConfig.shared.js +2 -2
  46. package/dist-types/CognitoSyncClient.d.ts +6 -9
  47. package/dist-types/commands/BulkPublishCommand.d.ts +2 -0
  48. package/dist-types/commands/DeleteDatasetCommand.d.ts +2 -0
  49. package/dist-types/commands/DescribeDatasetCommand.d.ts +2 -0
  50. package/dist-types/commands/DescribeIdentityPoolUsageCommand.d.ts +2 -0
  51. package/dist-types/commands/DescribeIdentityUsageCommand.d.ts +2 -0
  52. package/dist-types/commands/GetBulkPublishDetailsCommand.d.ts +2 -0
  53. package/dist-types/commands/GetCognitoEventsCommand.d.ts +2 -0
  54. package/dist-types/commands/GetIdentityPoolConfigurationCommand.d.ts +2 -0
  55. package/dist-types/commands/ListDatasetsCommand.d.ts +2 -0
  56. package/dist-types/commands/ListIdentityPoolUsageCommand.d.ts +2 -0
  57. package/dist-types/commands/ListRecordsCommand.d.ts +2 -0
  58. package/dist-types/commands/RegisterDeviceCommand.d.ts +2 -0
  59. package/dist-types/commands/SetCognitoEventsCommand.d.ts +2 -0
  60. package/dist-types/commands/SetIdentityPoolConfigurationCommand.d.ts +2 -0
  61. package/dist-types/commands/SubscribeToDatasetCommand.d.ts +2 -0
  62. package/dist-types/commands/UnsubscribeFromDatasetCommand.d.ts +2 -0
  63. package/dist-types/commands/UpdateRecordsCommand.d.ts +2 -0
  64. package/dist-types/endpoint/EndpointParameters.d.ts +19 -0
  65. package/dist-types/endpoint/endpointResolver.d.ts +5 -0
  66. package/dist-types/endpoint/ruleset.d.ts +2 -0
  67. package/dist-types/runtimeConfig.browser.d.ts +4 -2
  68. package/dist-types/runtimeConfig.d.ts +4 -2
  69. package/dist-types/runtimeConfig.native.d.ts +4 -2
  70. package/dist-types/runtimeConfig.shared.d.ts +3 -1
  71. package/dist-types/ts3.4/CognitoSyncClient.d.ts +15 -8
  72. package/dist-types/ts3.4/commands/BulkPublishCommand.d.ts +2 -0
  73. package/dist-types/ts3.4/commands/DeleteDatasetCommand.d.ts +2 -0
  74. package/dist-types/ts3.4/commands/DescribeDatasetCommand.d.ts +2 -0
  75. package/dist-types/ts3.4/commands/DescribeIdentityPoolUsageCommand.d.ts +2 -0
  76. package/dist-types/ts3.4/commands/DescribeIdentityUsageCommand.d.ts +2 -0
  77. package/dist-types/ts3.4/commands/GetBulkPublishDetailsCommand.d.ts +2 -0
  78. package/dist-types/ts3.4/commands/GetCognitoEventsCommand.d.ts +2 -0
  79. package/dist-types/ts3.4/commands/GetIdentityPoolConfigurationCommand.d.ts +2 -0
  80. package/dist-types/ts3.4/commands/ListDatasetsCommand.d.ts +2 -0
  81. package/dist-types/ts3.4/commands/ListIdentityPoolUsageCommand.d.ts +2 -0
  82. package/dist-types/ts3.4/commands/ListRecordsCommand.d.ts +2 -0
  83. package/dist-types/ts3.4/commands/RegisterDeviceCommand.d.ts +2 -0
  84. package/dist-types/ts3.4/commands/SetCognitoEventsCommand.d.ts +2 -0
  85. package/dist-types/ts3.4/commands/SetIdentityPoolConfigurationCommand.d.ts +2 -0
  86. package/dist-types/ts3.4/commands/SubscribeToDatasetCommand.d.ts +2 -0
  87. package/dist-types/ts3.4/commands/UnsubscribeFromDatasetCommand.d.ts +2 -0
  88. package/dist-types/ts3.4/commands/UpdateRecordsCommand.d.ts +2 -0
  89. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +26 -0
  90. package/dist-types/ts3.4/endpoint/endpointResolver.d.ts +8 -0
  91. package/dist-types/ts3.4/endpoint/ruleset.d.ts +2 -0
  92. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +14 -4
  93. package/dist-types/ts3.4/runtimeConfig.d.ts +14 -4
  94. package/dist-types/ts3.4/runtimeConfig.native.d.ts +14 -3
  95. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +6 -1
  96. package/package.json +5 -3
  97. package/dist-cjs/endpoints.js +0 -132
  98. package/dist-es/endpoints.js +0 -128
  99. package/dist-types/endpoints.d.ts +0 -2
  100. package/dist-types/ts3.4/endpoints.d.ts +0 -2
@@ -1,3 +1,4 @@
1
+ import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
1
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
2
3
  import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
3
4
  import { CognitoSyncClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CognitoSyncClient";
@@ -83,6 +84,7 @@ export interface ListIdentityPoolUsageCommandOutput extends ListIdentityPoolUsag
83
84
  */
84
85
  export declare class ListIdentityPoolUsageCommand extends $Command<ListIdentityPoolUsageCommandInput, ListIdentityPoolUsageCommandOutput, CognitoSyncClientResolvedConfig> {
85
86
  readonly input: ListIdentityPoolUsageCommandInput;
87
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
86
88
  constructor(input: ListIdentityPoolUsageCommandInput);
87
89
  /**
88
90
  * @internal
@@ -1,3 +1,4 @@
1
+ import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
1
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
2
3
  import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
3
4
  import { CognitoSyncClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CognitoSyncClient";
@@ -80,6 +81,7 @@ export interface ListRecordsCommandOutput extends ListRecordsResponse, __Metadat
80
81
  */
81
82
  export declare class ListRecordsCommand extends $Command<ListRecordsCommandInput, ListRecordsCommandOutput, CognitoSyncClientResolvedConfig> {
82
83
  readonly input: ListRecordsCommandInput;
84
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
83
85
  constructor(input: ListRecordsCommandInput);
84
86
  /**
85
87
  * @internal
@@ -1,3 +1,4 @@
1
+ import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
1
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
2
3
  import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
3
4
  import { CognitoSyncClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CognitoSyncClient";
@@ -69,6 +70,7 @@ export interface RegisterDeviceCommandOutput extends RegisterDeviceResponse, __M
69
70
  */
70
71
  export declare class RegisterDeviceCommand extends $Command<RegisterDeviceCommandInput, RegisterDeviceCommandOutput, CognitoSyncClientResolvedConfig> {
71
72
  readonly input: RegisterDeviceCommandInput;
73
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
72
74
  constructor(input: RegisterDeviceCommandInput);
73
75
  /**
74
76
  * @internal
@@ -1,3 +1,4 @@
1
+ import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
1
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
2
3
  import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
3
4
  import { CognitoSyncClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CognitoSyncClient";
@@ -25,6 +26,7 @@ export interface SetCognitoEventsCommandOutput extends __MetadataBearer {
25
26
  */
26
27
  export declare class SetCognitoEventsCommand extends $Command<SetCognitoEventsCommandInput, SetCognitoEventsCommandOutput, CognitoSyncClientResolvedConfig> {
27
28
  readonly input: SetCognitoEventsCommandInput;
29
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
28
30
  constructor(input: SetCognitoEventsCommandInput);
29
31
  /**
30
32
  * @internal
@@ -1,3 +1,4 @@
1
+ import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
1
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
2
3
  import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
3
4
  import { CognitoSyncClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CognitoSyncClient";
@@ -75,6 +76,7 @@ export interface SetIdentityPoolConfigurationCommandOutput extends SetIdentityPo
75
76
  */
76
77
  export declare class SetIdentityPoolConfigurationCommand extends $Command<SetIdentityPoolConfigurationCommandInput, SetIdentityPoolConfigurationCommandOutput, CognitoSyncClientResolvedConfig> {
77
78
  readonly input: SetIdentityPoolConfigurationCommandInput;
79
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
78
80
  constructor(input: SetIdentityPoolConfigurationCommandInput);
79
81
  /**
80
82
  * @internal
@@ -1,3 +1,4 @@
1
+ import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
1
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
2
3
  import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
3
4
  import { CognitoSyncClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CognitoSyncClient";
@@ -68,6 +69,7 @@ export interface SubscribeToDatasetCommandOutput extends SubscribeToDatasetRespo
68
69
  */
69
70
  export declare class SubscribeToDatasetCommand extends $Command<SubscribeToDatasetCommandInput, SubscribeToDatasetCommandOutput, CognitoSyncClientResolvedConfig> {
70
71
  readonly input: SubscribeToDatasetCommandInput;
72
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
71
73
  constructor(input: SubscribeToDatasetCommandInput);
72
74
  /**
73
75
  * @internal
@@ -1,3 +1,4 @@
1
+ import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
1
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
2
3
  import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
3
4
  import { CognitoSyncClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CognitoSyncClient";
@@ -69,6 +70,7 @@ export interface UnsubscribeFromDatasetCommandOutput extends UnsubscribeFromData
69
70
  */
70
71
  export declare class UnsubscribeFromDatasetCommand extends $Command<UnsubscribeFromDatasetCommandInput, UnsubscribeFromDatasetCommandOutput, CognitoSyncClientResolvedConfig> {
71
72
  readonly input: UnsubscribeFromDatasetCommandInput;
73
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
72
74
  constructor(input: UnsubscribeFromDatasetCommandInput);
73
75
  /**
74
76
  * @internal
@@ -1,3 +1,4 @@
1
+ import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
1
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
2
3
  import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
3
4
  import { CognitoSyncClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CognitoSyncClient";
@@ -27,6 +28,7 @@ export interface UpdateRecordsCommandOutput extends UpdateRecordsResponse, __Met
27
28
  */
28
29
  export declare class UpdateRecordsCommand extends $Command<UpdateRecordsCommandInput, UpdateRecordsCommandOutput, CognitoSyncClientResolvedConfig> {
29
30
  readonly input: UpdateRecordsCommandInput;
31
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
30
32
  constructor(input: UpdateRecordsCommandInput);
31
33
  /**
32
34
  * @internal
@@ -0,0 +1,19 @@
1
+ import { EndpointParameters as __EndpointParameters, 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>;
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
+ }
@@ -0,0 +1,5 @@
1
+ import { EndpointV2, Logger } from "@aws-sdk/types";
2
+ import { EndpointParameters } from "./EndpointParameters";
3
+ export declare const defaultEndpointResolver: (endpointParams: EndpointParameters, context?: {
4
+ logger?: Logger;
5
+ }) => EndpointV2;
@@ -0,0 +1,2 @@
1
+ import { RuleSetObject } from "@aws-sdk/util-endpoints";
2
+ export declare const ruleSet: RuleSetObject;
@@ -26,8 +26,10 @@ export declare const getRuntimeConfig: (config: CognitoSyncClientConfig) => {
26
26
  disableHostPrefix: boolean;
27
27
  logger: import("@aws-sdk/types").Logger;
28
28
  serviceId: string;
29
- regionInfoProvider: import("@aws-sdk/types").RegionInfoProvider;
30
- endpoint?: string | import("@aws-sdk/types").Endpoint | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint> | undefined;
29
+ endpoint?: ((string | import("@aws-sdk/types").Endpoint | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint> | import("@aws-sdk/types").EndpointV2 | import("@aws-sdk/types").Provider<import("@aws-sdk/types").EndpointV2>) & (string | import("@aws-sdk/types").Provider<string>)) | undefined;
30
+ endpointProvider: (endpointParams: import("./endpoint/EndpointParameters").EndpointParameters, context?: {
31
+ logger?: import("@aws-sdk/types").Logger | undefined;
32
+ }) => import("@aws-sdk/types").EndpointV2;
31
33
  tls?: boolean | undefined;
32
34
  retryStrategy?: import("@aws-sdk/types").RetryStrategy | undefined;
33
35
  credentials?: import("@aws-sdk/types").Credentials | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials> | undefined;
@@ -26,8 +26,10 @@ export declare const getRuntimeConfig: (config: CognitoSyncClientConfig) => {
26
26
  disableHostPrefix: boolean;
27
27
  logger: import("@aws-sdk/types").Logger;
28
28
  serviceId: string;
29
- regionInfoProvider: import("@aws-sdk/types").RegionInfoProvider;
30
- endpoint?: string | import("@aws-sdk/types").Endpoint | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint> | undefined;
29
+ endpoint?: ((string | import("@aws-sdk/types").Endpoint | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint> | import("@aws-sdk/types").EndpointV2 | import("@aws-sdk/types").Provider<import("@aws-sdk/types").EndpointV2>) & (string | import("@aws-sdk/types").Provider<string>)) | undefined;
30
+ endpointProvider: (endpointParams: import("./endpoint/EndpointParameters").EndpointParameters, context?: {
31
+ logger?: import("@aws-sdk/types").Logger | undefined;
32
+ }) => import("@aws-sdk/types").EndpointV2;
31
33
  tls?: boolean | undefined;
32
34
  retryStrategy?: import("@aws-sdk/types").RetryStrategy | undefined;
33
35
  credentials?: import("@aws-sdk/types").Credentials | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials> | undefined;
@@ -23,10 +23,12 @@ export declare const getRuntimeConfig: (config: CognitoSyncClientConfig) => {
23
23
  serviceId: string;
24
24
  region: string | import("@aws-sdk/types").Provider<any>;
25
25
  credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
26
- regionInfoProvider: import("@aws-sdk/types").RegionInfoProvider;
27
26
  defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
28
27
  defaultsMode: import("@aws-sdk/smithy-client").DefaultsMode | import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").DefaultsMode>;
29
- endpoint?: string | import("@aws-sdk/types").Endpoint | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint> | undefined;
28
+ endpoint?: string | (import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint> & import("@aws-sdk/types").Provider<string>) | (import("@aws-sdk/types").Endpoint & import("@aws-sdk/types").Provider<string>) | (import("@aws-sdk/types").EndpointV2 & import("@aws-sdk/types").Provider<string>) | (import("@aws-sdk/types").Provider<import("@aws-sdk/types").EndpointV2> & import("@aws-sdk/types").Provider<string>) | undefined;
29
+ endpointProvider: (endpointParams: import("./endpoint/EndpointParameters").EndpointParameters, context?: {
30
+ logger?: import("@aws-sdk/types").Logger | undefined;
31
+ }) => import("@aws-sdk/types").EndpointV2;
30
32
  tls?: boolean | undefined;
31
33
  retryStrategy?: import("@aws-sdk/types").RetryStrategy | undefined;
32
34
  credentials?: import("@aws-sdk/types").Credentials | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials> | undefined;
@@ -6,8 +6,10 @@ import { CognitoSyncClientConfig } from "./CognitoSyncClient";
6
6
  export declare const getRuntimeConfig: (config: CognitoSyncClientConfig) => {
7
7
  apiVersion: string;
8
8
  disableHostPrefix: boolean;
9
+ endpointProvider: (endpointParams: import("./endpoint/EndpointParameters").EndpointParameters, context?: {
10
+ logger?: __Logger | undefined;
11
+ }) => import("@aws-sdk/types").EndpointV2;
9
12
  logger: __Logger;
10
- regionInfoProvider: import("@aws-sdk/types").RegionInfoProvider;
11
13
  serviceId: string;
12
14
  urlParser: import("@aws-sdk/types").UrlParser;
13
15
  };
@@ -1,9 +1,11 @@
1
1
  import {
2
- EndpointsInputConfig,
3
- EndpointsResolvedConfig,
4
2
  RegionInputConfig,
5
3
  RegionResolvedConfig,
6
4
  } from "@aws-sdk/config-resolver";
5
+ import {
6
+ EndpointInputConfig,
7
+ EndpointResolvedConfig,
8
+ } from "@aws-sdk/middleware-endpoint";
7
9
  import {
8
10
  HostHeaderInputConfig,
9
11
  HostHeaderResolvedConfig,
@@ -37,7 +39,6 @@ import {
37
39
  Logger as __Logger,
38
40
  Provider as __Provider,
39
41
  Provider,
40
- RegionInfoProvider,
41
42
  StreamCollector as __StreamCollector,
42
43
  UrlParser as __UrlParser,
43
44
  UserAgent as __UserAgent,
@@ -110,6 +111,11 @@ import {
110
111
  UpdateRecordsCommandInput,
111
112
  UpdateRecordsCommandOutput,
112
113
  } from "./commands/UpdateRecordsCommand";
114
+ import {
115
+ ClientInputEndpointParameters,
116
+ ClientResolvedEndpointParameters,
117
+ EndpointParameters,
118
+ } from "./endpoint/EndpointParameters";
113
119
  export declare type ServiceInputTypes =
114
120
  | BulkPublishCommandInput
115
121
  | DeleteDatasetCommandInput
@@ -167,7 +173,6 @@ export interface ClientDefaults
167
173
  serviceId?: string;
168
174
  region?: string | __Provider<string>;
169
175
  credentialDefaultProvider?: (input: any) => __Provider<__Credentials>;
170
- regionInfoProvider?: RegionInfoProvider;
171
176
  defaultUserAgentProvider?: Provider<__UserAgent>;
172
177
  defaultsMode?: DefaultsMode | Provider<DefaultsMode>;
173
178
  }
@@ -176,21 +181,23 @@ declare type CognitoSyncClientConfigType = Partial<
176
181
  > &
177
182
  ClientDefaults &
178
183
  RegionInputConfig &
179
- EndpointsInputConfig &
184
+ EndpointInputConfig<EndpointParameters> &
180
185
  RetryInputConfig &
181
186
  HostHeaderInputConfig &
182
187
  AwsAuthInputConfig &
183
- UserAgentInputConfig;
188
+ UserAgentInputConfig &
189
+ ClientInputEndpointParameters;
184
190
  export interface CognitoSyncClientConfig extends CognitoSyncClientConfigType {}
185
191
  declare type CognitoSyncClientResolvedConfigType =
186
192
  __SmithyResolvedConfiguration<__HttpHandlerOptions> &
187
193
  Required<ClientDefaults> &
188
194
  RegionResolvedConfig &
189
- EndpointsResolvedConfig &
195
+ EndpointResolvedConfig<EndpointParameters> &
190
196
  RetryResolvedConfig &
191
197
  HostHeaderResolvedConfig &
192
198
  AwsAuthResolvedConfig &
193
- UserAgentResolvedConfig;
199
+ UserAgentResolvedConfig &
200
+ ClientResolvedEndpointParameters;
194
201
  export interface CognitoSyncClientResolvedConfig
195
202
  extends CognitoSyncClientResolvedConfigType {}
196
203
  export declare class CognitoSyncClient extends __Client<
@@ -1,3 +1,4 @@
1
+ import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
1
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
2
3
  import {
3
4
  Handler,
@@ -21,6 +22,7 @@ export declare class BulkPublishCommand extends $Command<
21
22
  CognitoSyncClientResolvedConfig
22
23
  > {
23
24
  readonly input: BulkPublishCommandInput;
25
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
24
26
  constructor(input: BulkPublishCommandInput);
25
27
  resolveMiddleware(
26
28
  clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
@@ -1,3 +1,4 @@
1
+ import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
1
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
2
3
  import {
3
4
  Handler,
@@ -24,6 +25,7 @@ export declare class DeleteDatasetCommand extends $Command<
24
25
  CognitoSyncClientResolvedConfig
25
26
  > {
26
27
  readonly input: DeleteDatasetCommandInput;
28
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
27
29
  constructor(input: DeleteDatasetCommandInput);
28
30
  resolveMiddleware(
29
31
  clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
@@ -1,3 +1,4 @@
1
+ import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
1
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
2
3
  import {
3
4
  Handler,
@@ -24,6 +25,7 @@ export declare class DescribeDatasetCommand extends $Command<
24
25
  CognitoSyncClientResolvedConfig
25
26
  > {
26
27
  readonly input: DescribeDatasetCommandInput;
28
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
27
29
  constructor(input: DescribeDatasetCommandInput);
28
30
  resolveMiddleware(
29
31
  clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
@@ -1,3 +1,4 @@
1
+ import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
1
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
2
3
  import {
3
4
  Handler,
@@ -25,6 +26,7 @@ export declare class DescribeIdentityPoolUsageCommand extends $Command<
25
26
  CognitoSyncClientResolvedConfig
26
27
  > {
27
28
  readonly input: DescribeIdentityPoolUsageCommandInput;
29
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
28
30
  constructor(input: DescribeIdentityPoolUsageCommandInput);
29
31
  resolveMiddleware(
30
32
  clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
@@ -1,3 +1,4 @@
1
+ import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
1
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
2
3
  import {
3
4
  Handler,
@@ -25,6 +26,7 @@ export declare class DescribeIdentityUsageCommand extends $Command<
25
26
  CognitoSyncClientResolvedConfig
26
27
  > {
27
28
  readonly input: DescribeIdentityUsageCommandInput;
29
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
28
30
  constructor(input: DescribeIdentityUsageCommandInput);
29
31
  resolveMiddleware(
30
32
  clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
@@ -1,3 +1,4 @@
1
+ import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
1
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
2
3
  import {
3
4
  Handler,
@@ -25,6 +26,7 @@ export declare class GetBulkPublishDetailsCommand extends $Command<
25
26
  CognitoSyncClientResolvedConfig
26
27
  > {
27
28
  readonly input: GetBulkPublishDetailsCommandInput;
29
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
28
30
  constructor(input: GetBulkPublishDetailsCommandInput);
29
31
  resolveMiddleware(
30
32
  clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
@@ -1,3 +1,4 @@
1
+ import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
1
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
2
3
  import {
3
4
  Handler,
@@ -24,6 +25,7 @@ export declare class GetCognitoEventsCommand extends $Command<
24
25
  CognitoSyncClientResolvedConfig
25
26
  > {
26
27
  readonly input: GetCognitoEventsCommandInput;
28
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
27
29
  constructor(input: GetCognitoEventsCommandInput);
28
30
  resolveMiddleware(
29
31
  clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
@@ -1,3 +1,4 @@
1
+ import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
1
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
2
3
  import {
3
4
  Handler,
@@ -25,6 +26,7 @@ export declare class GetIdentityPoolConfigurationCommand extends $Command<
25
26
  CognitoSyncClientResolvedConfig
26
27
  > {
27
28
  readonly input: GetIdentityPoolConfigurationCommandInput;
29
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
28
30
  constructor(input: GetIdentityPoolConfigurationCommandInput);
29
31
  resolveMiddleware(
30
32
  clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
@@ -1,3 +1,4 @@
1
+ import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
1
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
2
3
  import {
3
4
  Handler,
@@ -21,6 +22,7 @@ export declare class ListDatasetsCommand extends $Command<
21
22
  CognitoSyncClientResolvedConfig
22
23
  > {
23
24
  readonly input: ListDatasetsCommandInput;
25
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
24
26
  constructor(input: ListDatasetsCommandInput);
25
27
  resolveMiddleware(
26
28
  clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
@@ -1,3 +1,4 @@
1
+ import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
1
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
2
3
  import {
3
4
  Handler,
@@ -25,6 +26,7 @@ export declare class ListIdentityPoolUsageCommand extends $Command<
25
26
  CognitoSyncClientResolvedConfig
26
27
  > {
27
28
  readonly input: ListIdentityPoolUsageCommandInput;
29
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
28
30
  constructor(input: ListIdentityPoolUsageCommandInput);
29
31
  resolveMiddleware(
30
32
  clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
@@ -1,3 +1,4 @@
1
+ import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
1
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
2
3
  import {
3
4
  Handler,
@@ -21,6 +22,7 @@ export declare class ListRecordsCommand extends $Command<
21
22
  CognitoSyncClientResolvedConfig
22
23
  > {
23
24
  readonly input: ListRecordsCommandInput;
25
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
24
26
  constructor(input: ListRecordsCommandInput);
25
27
  resolveMiddleware(
26
28
  clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
@@ -1,3 +1,4 @@
1
+ import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
1
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
2
3
  import {
3
4
  Handler,
@@ -24,6 +25,7 @@ export declare class RegisterDeviceCommand extends $Command<
24
25
  CognitoSyncClientResolvedConfig
25
26
  > {
26
27
  readonly input: RegisterDeviceCommandInput;
28
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
27
29
  constructor(input: RegisterDeviceCommandInput);
28
30
  resolveMiddleware(
29
31
  clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
@@ -1,3 +1,4 @@
1
+ import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
1
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
2
3
  import {
3
4
  Handler,
@@ -19,6 +20,7 @@ export declare class SetCognitoEventsCommand extends $Command<
19
20
  CognitoSyncClientResolvedConfig
20
21
  > {
21
22
  readonly input: SetCognitoEventsCommandInput;
23
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
22
24
  constructor(input: SetCognitoEventsCommandInput);
23
25
  resolveMiddleware(
24
26
  clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
@@ -1,3 +1,4 @@
1
+ import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
1
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
2
3
  import {
3
4
  Handler,
@@ -25,6 +26,7 @@ export declare class SetIdentityPoolConfigurationCommand extends $Command<
25
26
  CognitoSyncClientResolvedConfig
26
27
  > {
27
28
  readonly input: SetIdentityPoolConfigurationCommandInput;
29
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
28
30
  constructor(input: SetIdentityPoolConfigurationCommandInput);
29
31
  resolveMiddleware(
30
32
  clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
@@ -1,3 +1,4 @@
1
+ import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
1
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
2
3
  import {
3
4
  Handler,
@@ -25,6 +26,7 @@ export declare class SubscribeToDatasetCommand extends $Command<
25
26
  CognitoSyncClientResolvedConfig
26
27
  > {
27
28
  readonly input: SubscribeToDatasetCommandInput;
29
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
28
30
  constructor(input: SubscribeToDatasetCommandInput);
29
31
  resolveMiddleware(
30
32
  clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
@@ -1,3 +1,4 @@
1
+ import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
1
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
2
3
  import {
3
4
  Handler,
@@ -25,6 +26,7 @@ export declare class UnsubscribeFromDatasetCommand extends $Command<
25
26
  CognitoSyncClientResolvedConfig
26
27
  > {
27
28
  readonly input: UnsubscribeFromDatasetCommandInput;
29
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
28
30
  constructor(input: UnsubscribeFromDatasetCommandInput);
29
31
  resolveMiddleware(
30
32
  clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
@@ -1,3 +1,4 @@
1
+ import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
1
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
2
3
  import {
3
4
  Handler,
@@ -24,6 +25,7 @@ export declare class UpdateRecordsCommand extends $Command<
24
25
  CognitoSyncClientResolvedConfig
25
26
  > {
26
27
  readonly input: UpdateRecordsCommandInput;
28
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
27
29
  constructor(input: UpdateRecordsCommandInput);
28
30
  resolveMiddleware(
29
31
  clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
@@ -0,0 +1,26 @@
1
+ import {
2
+ EndpointParameters as __EndpointParameters,
3
+ Provider,
4
+ } from "@aws-sdk/types";
5
+ export interface ClientInputEndpointParameters {
6
+ region?: string | Provider<string>;
7
+ useDualstackEndpoint?: boolean | Provider<boolean>;
8
+ useFipsEndpoint?: boolean | Provider<boolean>;
9
+ endpoint?: string | Provider<string>;
10
+ }
11
+ export declare type ClientResolvedEndpointParameters =
12
+ ClientInputEndpointParameters & {
13
+ defaultSigningName: string;
14
+ };
15
+ export declare const resolveClientEndpointParameters: <T>(
16
+ options: T & ClientInputEndpointParameters
17
+ ) => T &
18
+ ClientInputEndpointParameters & {
19
+ defaultSigningName: string;
20
+ };
21
+ export interface EndpointParameters extends __EndpointParameters {
22
+ Region?: string;
23
+ UseDualStack?: boolean;
24
+ UseFIPS?: boolean;
25
+ Endpoint?: string;
26
+ }
@@ -0,0 +1,8 @@
1
+ import { EndpointV2, Logger } from "@aws-sdk/types";
2
+ import { EndpointParameters } from "./EndpointParameters";
3
+ export declare const defaultEndpointResolver: (
4
+ endpointParams: EndpointParameters,
5
+ context?: {
6
+ logger?: Logger;
7
+ }
8
+ ) => EndpointV2;
@@ -0,0 +1,2 @@
1
+ import { RuleSetObject } from "@aws-sdk/util-endpoints";
2
+ export declare const ruleSet: RuleSetObject;
@@ -36,12 +36,22 @@ export declare const getRuntimeConfig: (config: CognitoSyncClientConfig) => {
36
36
  disableHostPrefix: boolean;
37
37
  logger: import("@aws-sdk/types").Logger;
38
38
  serviceId: string;
39
- regionInfoProvider: import("@aws-sdk/types").RegionInfoProvider;
40
39
  endpoint?:
41
- | string
42
- | import("@aws-sdk/types").Endpoint
43
- | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint>
40
+ | ((
41
+ | string
42
+ | import("@aws-sdk/types").Endpoint
43
+ | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint>
44
+ | import("@aws-sdk/types").EndpointV2
45
+ | import("@aws-sdk/types").Provider<import("@aws-sdk/types").EndpointV2>
46
+ ) &
47
+ (string | import("@aws-sdk/types").Provider<string>))
44
48
  | undefined;
49
+ endpointProvider: (
50
+ endpointParams: import("./endpoint/EndpointParameters").EndpointParameters,
51
+ context?: {
52
+ logger?: import("@aws-sdk/types").Logger | undefined;
53
+ }
54
+ ) => import("@aws-sdk/types").EndpointV2;
45
55
  tls?: boolean | undefined;
46
56
  retryStrategy?: import("@aws-sdk/types").RetryStrategy | undefined;
47
57
  credentials?:
@@ -36,12 +36,22 @@ export declare const getRuntimeConfig: (config: CognitoSyncClientConfig) => {
36
36
  disableHostPrefix: boolean;
37
37
  logger: import("@aws-sdk/types").Logger;
38
38
  serviceId: string;
39
- regionInfoProvider: import("@aws-sdk/types").RegionInfoProvider;
40
39
  endpoint?:
41
- | string
42
- | import("@aws-sdk/types").Endpoint
43
- | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint>
40
+ | ((
41
+ | string
42
+ | import("@aws-sdk/types").Endpoint
43
+ | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint>
44
+ | import("@aws-sdk/types").EndpointV2
45
+ | import("@aws-sdk/types").Provider<import("@aws-sdk/types").EndpointV2>
46
+ ) &
47
+ (string | import("@aws-sdk/types").Provider<string>))
44
48
  | undefined;
49
+ endpointProvider: (
50
+ endpointParams: import("./endpoint/EndpointParameters").EndpointParameters,
51
+ context?: {
52
+ logger?: import("@aws-sdk/types").Logger | undefined;
53
+ }
54
+ ) => import("@aws-sdk/types").EndpointV2;
45
55
  tls?: boolean | undefined;
46
56
  retryStrategy?: import("@aws-sdk/types").RetryStrategy | undefined;
47
57
  credentials?:
@@ -29,7 +29,6 @@ export declare const getRuntimeConfig: (config: CognitoSyncClientConfig) => {
29
29
  credentialDefaultProvider: (
30
30
  input: any
31
31
  ) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
32
- regionInfoProvider: import("@aws-sdk/types").RegionInfoProvider;
33
32
  defaultUserAgentProvider: import("@aws-sdk/types").Provider<
34
33
  import("@aws-sdk/types").UserAgent
35
34
  >;
@@ -40,9 +39,21 @@ export declare const getRuntimeConfig: (config: CognitoSyncClientConfig) => {
40
39
  >;
41
40
  endpoint?:
42
41
  | string
43
- | import("@aws-sdk/types").Endpoint
44
- | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint>
42
+ | (import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint> &
43
+ import("@aws-sdk/types").Provider<string>)
44
+ | (import("@aws-sdk/types").Endpoint &
45
+ import("@aws-sdk/types").Provider<string>)
46
+ | (import("@aws-sdk/types").EndpointV2 &
47
+ import("@aws-sdk/types").Provider<string>)
48
+ | (import("@aws-sdk/types").Provider<import("@aws-sdk/types").EndpointV2> &
49
+ import("@aws-sdk/types").Provider<string>)
45
50
  | undefined;
51
+ endpointProvider: (
52
+ endpointParams: import("./endpoint/EndpointParameters").EndpointParameters,
53
+ context?: {
54
+ logger?: import("@aws-sdk/types").Logger | undefined;
55
+ }
56
+ ) => import("@aws-sdk/types").EndpointV2;
46
57
  tls?: boolean | undefined;
47
58
  retryStrategy?: import("@aws-sdk/types").RetryStrategy | undefined;
48
59
  credentials?: