diff --git a/clients/client-accessanalyzer/src/models/models_0.ts b/clients/client-accessanalyzer/src/models/models_0.ts index 795d22d4733c..925840f45102 100644 --- a/clients/client-accessanalyzer/src/models/models_0.ts +++ b/clients/client-accessanalyzer/src/models/models_0.ts @@ -104,7 +104,7 @@ export interface CreateArchiveRuleRequest { /** *

The criteria for the rule.

*/ - filter: { [key: string]: Criterion } | undefined; + filter: Record | undefined; /** *

A client token.

@@ -364,7 +364,7 @@ export interface ArchiveRuleSummary { /** *

A filter used to define the archive rule.

*/ - filter: { [key: string]: Criterion } | undefined; + filter: Record | undefined; /** *

The time at which the archive rule was created.

@@ -476,7 +476,7 @@ export interface UpdateArchiveRuleRequest { *

A filter to match for the rules to update. Only rules that match the filter are * updated.

*/ - filter: { [key: string]: Criterion } | undefined; + filter: Record | undefined; /** *

A client token.

@@ -506,7 +506,7 @@ export interface InlineArchiveRule { /** *

The condition and values for a criterion.

*/ - filter: { [key: string]: Criterion } | undefined; + filter: Record | undefined; } export namespace InlineArchiveRule { @@ -545,7 +545,7 @@ export interface CreateAnalyzerRequest { /** *

The tags to apply to the analyzer.

*/ - tags?: { [key: string]: string }; + tags?: Record; /** *

A client token.

@@ -692,7 +692,7 @@ export interface AnalyzerSummary { /** *

The tags added to the analyzer.

*/ - tags?: { [key: string]: string }; + tags?: Record; /** *

The status of the analyzer. An Active analyzer successfully monitors @@ -895,7 +895,7 @@ export interface KmsGrantConstraints { * context in the request is the same as the encryption context specified in this * constraint.

*/ - encryptionContextEquals?: { [key: string]: string }; + encryptionContextEquals?: Record; /** *

A list of key-value pairs that must be included in the encryption context of the cryptographic @@ -903,7 +903,7 @@ export interface KmsGrantConstraints { * encryption context in the request includes the key-value pairs specified in this * constraint, although it can include additional key-value pairs.

*/ - encryptionContextSubset?: { [key: string]: string }; + encryptionContextSubset?: Record; } export namespace KmsGrantConstraints { @@ -994,7 +994,7 @@ export interface KmsKeyConfiguration { * the key policy is default. For more information, see Default key * policy.

*/ - keyPolicies?: { [key: string]: string }; + keyPolicies?: Record; /** *

A list of proposed grant configurations for the KMS key. If the proposed grant @@ -1314,7 +1314,7 @@ export interface S3BucketConfiguration { *

The configuration of Amazon S3 access points or multi-region access points for the bucket. * You can propose up to 10 new access points per bucket.

*/ - accessPoints?: { [key: string]: S3AccessPointConfiguration }; + accessPoints?: Record; } export namespace S3BucketConfiguration { @@ -1529,7 +1529,7 @@ export interface CreateAccessPreviewRequest { * with the proposed access control configuration. The configuration must contain exactly one * element.

*/ - configurations: { [key: string]: Configuration } | undefined; + configurations: Record | undefined; /** *

A client token.

@@ -1643,7 +1643,7 @@ export interface AccessPreview { /** *

A map of resource ARNs for the proposed resource configuration.

*/ - configurations: { [key: string]: Configuration } | undefined; + configurations: Record | undefined; /** *

The time at which the access preview was created.

@@ -1928,7 +1928,7 @@ export interface Finding { /** *

The external principal that access to a resource within the zone of trust.

*/ - principal?: { [key: string]: string }; + principal?: Record; /** *

The action in the analyzed policy statement that an external principal has permission to @@ -1955,7 +1955,7 @@ export interface Finding { /** *

The condition in the analyzed policy statement that resulted in a finding.

*/ - condition: { [key: string]: string } | undefined; + condition: Record | undefined; /** *

The time at which the finding was generated.

@@ -2319,7 +2319,7 @@ export interface ListAccessPreviewFindingsRequest { /** *

Criteria to filter the returned findings.

*/ - filter?: { [key: string]: Criterion }; + filter?: Record; /** *

A token used for pagination of results returned.

@@ -2372,7 +2372,7 @@ export interface AccessPreviewFinding { /** *

The external principal that has access to a resource within the zone of trust.

*/ - principal?: { [key: string]: string }; + principal?: Record; /** *

The action in the analyzed policy statement that an external principal has permission to @@ -2383,7 +2383,7 @@ export interface AccessPreviewFinding { /** *

The condition in the analyzed policy statement that resulted in a finding.

*/ - condition?: { [key: string]: string }; + condition?: Record; /** *

The resource that an external principal has access to. This is the resource associated @@ -2721,7 +2721,7 @@ export interface ListFindingsRequest { /** *

A filter to match for the findings to return.

*/ - filter?: { [key: string]: Criterion }; + filter?: Record; /** *

The sort order for the findings returned.

@@ -2760,7 +2760,7 @@ export interface FindingSummary { /** *

The external principal that has access to a resource within the zone of trust.

*/ - principal?: { [key: string]: string }; + principal?: Record; /** *

The action in the analyzed policy statement that an external principal has permission to @@ -2787,7 +2787,7 @@ export interface FindingSummary { /** *

The condition in the analyzed policy statement that resulted in a finding.

*/ - condition: { [key: string]: string } | undefined; + condition: Record | undefined; /** *

The time at which the finding was created.

@@ -2979,7 +2979,7 @@ export interface ListTagsForResourceResponse { /** *

The tags that are applied to the specified resource.

*/ - tags?: { [key: string]: string }; + tags?: Record; } export namespace ListTagsForResourceResponse { @@ -3172,7 +3172,7 @@ export interface TagResourceRequest { /** *

The tags to add to the resource.

*/ - tags: { [key: string]: string } | undefined; + tags: Record | undefined; } export namespace TagResourceRequest { diff --git a/clients/client-accessanalyzer/src/protocols/Aws_restJson1.ts b/clients/client-accessanalyzer/src/protocols/Aws_restJson1.ts index 05549344bc60..51e8d559451d 100644 --- a/clients/client-accessanalyzer/src/protocols/Aws_restJson1.ts +++ b/clients/client-accessanalyzer/src/protocols/Aws_restJson1.ts @@ -2761,7 +2761,7 @@ const serializeAws_restJson1Configuration = (input: Configuration, context: __Se }; const serializeAws_restJson1ConfigurationsMap = ( - input: { [key: string]: Configuration }, + input: Record, context: __SerdeContext ): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { @@ -2785,7 +2785,7 @@ const serializeAws_restJson1Criterion = (input: Criterion, context: __SerdeConte }; }; -const serializeAws_restJson1FilterCriteriaMap = (input: { [key: string]: Criterion }, context: __SerdeContext): any => { +const serializeAws_restJson1FilterCriteriaMap = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -2837,7 +2837,7 @@ const serializeAws_restJson1InternetConfiguration = (input: InternetConfiguratio return {}; }; -const serializeAws_restJson1KmsConstraintsMap = (input: { [key: string]: string }, context: __SerdeContext): any => { +const serializeAws_restJson1KmsConstraintsMap = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -2920,7 +2920,7 @@ const serializeAws_restJson1KmsKeyConfiguration = (input: KmsKeyConfiguration, c }; }; -const serializeAws_restJson1KmsKeyPoliciesMap = (input: { [key: string]: string }, context: __SerdeContext): any => { +const serializeAws_restJson1KmsKeyPoliciesMap = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -2984,7 +2984,7 @@ const serializeAws_restJson1S3AccessPointConfiguration = ( }; const serializeAws_restJson1S3AccessPointConfigurationsMap = ( - input: { [key: string]: S3AccessPointConfiguration }, + input: Record, context: __SerdeContext ): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { @@ -3079,7 +3079,7 @@ const serializeAws_restJson1SqsQueueConfiguration = (input: SqsQueueConfiguratio }; }; -const serializeAws_restJson1TagsMap = (input: { [key: string]: string }, context: __SerdeContext): any => { +const serializeAws_restJson1TagsMap = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -3399,8 +3399,8 @@ const deserializeAws_restJson1CloudTrailProperties = (output: any, context: __Se } as any; }; -const deserializeAws_restJson1ConditionKeyMap = (output: any, context: __SerdeContext): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +const deserializeAws_restJson1ConditionKeyMap = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -3446,8 +3446,8 @@ const deserializeAws_restJson1Configuration = (output: any, context: __SerdeCont const deserializeAws_restJson1ConfigurationsMap = ( output: any, context: __SerdeContext -): { [key: string]: Configuration } => { - return Object.entries(output).reduce((acc: { [key: string]: Configuration }, [key, value]: [string, any]) => { +): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -3474,11 +3474,8 @@ const deserializeAws_restJson1Criterion = (output: any, context: __SerdeContext) } as any; }; -const deserializeAws_restJson1FilterCriteriaMap = ( - output: any, - context: __SerdeContext -): { [key: string]: Criterion } => { - return Object.entries(output).reduce((acc: { [key: string]: Criterion }, [key, value]: [string, any]) => { +const deserializeAws_restJson1FilterCriteriaMap = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -3690,8 +3687,8 @@ const deserializeAws_restJson1JobError = (output: any, context: __SerdeContext): } as any; }; -const deserializeAws_restJson1KmsConstraintsMap = (output: any, context: __SerdeContext): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +const deserializeAws_restJson1KmsConstraintsMap = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -3774,8 +3771,8 @@ const deserializeAws_restJson1KmsKeyConfiguration = (output: any, context: __Ser } as any; }; -const deserializeAws_restJson1KmsKeyPoliciesMap = (output: any, context: __SerdeContext): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +const deserializeAws_restJson1KmsKeyPoliciesMap = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -3894,8 +3891,8 @@ const deserializeAws_restJson1Position = (output: any, context: __SerdeContext): } as any; }; -const deserializeAws_restJson1PrincipalMap = (output: any, context: __SerdeContext): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +const deserializeAws_restJson1PrincipalMap = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -3938,9 +3935,9 @@ const deserializeAws_restJson1S3AccessPointConfiguration = ( const deserializeAws_restJson1S3AccessPointConfigurationsMap = ( output: any, context: __SerdeContext -): { [key: string]: S3AccessPointConfiguration } => { +): Record => { return Object.entries(output).reduce( - (acc: { [key: string]: S3AccessPointConfiguration }, [key, value]: [string, any]) => { + (acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -4063,8 +4060,8 @@ const deserializeAws_restJson1Substring = (output: any, context: __SerdeContext) } as any; }; -const deserializeAws_restJson1TagsMap = (output: any, context: __SerdeContext): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +const deserializeAws_restJson1TagsMap = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } diff --git a/clients/client-alexa-for-business/src/models/models_0.ts b/clients/client-alexa-for-business/src/models/models_0.ts index b57f49e02a92..943a6ddf2f63 100644 --- a/clients/client-alexa-for-business/src/models/models_0.ts +++ b/clients/client-alexa-for-business/src/models/models_0.ts @@ -4107,7 +4107,7 @@ export interface SkillDetails { *

*

The list of reviews for the skill, including Key and Value pair.

*/ - Reviews?: { [key: string]: string }; + Reviews?: Record; /** *

The details about the developer that published the skill.

@@ -4430,7 +4430,7 @@ export interface PutSkillAuthorizationRequest { *

The authorization result specific to OAUTH code grant output. "Code” must be * populated in the AuthorizationResult map to establish the authorization.

*/ - AuthorizationResult: { [key: string]: string } | undefined; + AuthorizationResult: Record | undefined; /** *

The unique identifier of a skill.

diff --git a/clients/client-alexa-for-business/src/protocols/Aws_json1_1.ts b/clients/client-alexa-for-business/src/protocols/Aws_json1_1.ts index 1f713619a5e5..64dc8a996789 100644 --- a/clients/client-alexa-for-business/src/protocols/Aws_json1_1.ts +++ b/clients/client-alexa-for-business/src/protocols/Aws_json1_1.ts @@ -6139,7 +6139,7 @@ const serializeAws_json1_1AudioList = (input: Audio[], context: __SerdeContext): }); }; -const serializeAws_json1_1AuthorizationResult = (input: { [key: string]: string }, context: __SerdeContext): any => { +const serializeAws_json1_1AuthorizationResult = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -8761,8 +8761,8 @@ const deserializeAws_json1_1ResourceInUseException = (output: any, context: __Se } as any; }; -const deserializeAws_json1_1Reviews = (output: any, context: __SerdeContext): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +const deserializeAws_json1_1Reviews = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } diff --git a/clients/client-amp/src/models/models_0.ts b/clients/client-amp/src/models/models_0.ts index 8318f9d9f83c..fe53a6a2114a 100644 --- a/clients/client-amp/src/models/models_0.ts +++ b/clients/client-amp/src/models/models_0.ts @@ -516,7 +516,7 @@ export interface ListTagsForResourceResponse { /** * The list of tags assigned to the resource. */ - tags?: { [key: string]: string }; + tags?: Record; } export namespace ListTagsForResourceResponse { @@ -537,7 +537,7 @@ export interface TagResourceRequest { /** * The list of tags assigned to the resource. */ - tags: { [key: string]: string } | undefined; + tags: Record | undefined; } export namespace TagResourceRequest { @@ -609,7 +609,7 @@ export interface CreateWorkspaceRequest { /** * Optional, user-provided tags for this workspace. */ - tags?: { [key: string]: string }; + tags?: Record; } export namespace CreateWorkspaceRequest { @@ -685,7 +685,7 @@ export interface CreateWorkspaceResponse { /** * The tags of this workspace. */ - tags?: { [key: string]: string }; + tags?: Record; } export namespace CreateWorkspaceResponse { @@ -777,7 +777,7 @@ export interface WorkspaceDescription { /** * The tags of this workspace. */ - tags?: { [key: string]: string }; + tags?: Record; } export namespace WorkspaceDescription { @@ -869,7 +869,7 @@ export interface WorkspaceSummary { /** * The tags of this workspace. */ - tags?: { [key: string]: string }; + tags?: Record; } export namespace WorkspaceSummary { @@ -932,7 +932,7 @@ export interface CreateRuleGroupsNamespaceRequest { /** * Optional, user-provided tags for this rule groups namespace. */ - tags?: { [key: string]: string }; + tags?: Record; } export namespace CreateRuleGroupsNamespaceRequest { @@ -1017,7 +1017,7 @@ export interface CreateRuleGroupsNamespaceResponse { /** * The tags of this rule groups namespace. */ - tags?: { [key: string]: string }; + tags?: Record; } export namespace CreateRuleGroupsNamespaceResponse { @@ -1119,7 +1119,7 @@ export interface RuleGroupsNamespaceDescription { /** * The tags of this rule groups namespace. */ - tags?: { [key: string]: string }; + tags?: Record; } export namespace RuleGroupsNamespaceDescription { @@ -1216,7 +1216,7 @@ export interface RuleGroupsNamespaceSummary { /** * The tags of this rule groups namespace. */ - tags?: { [key: string]: string }; + tags?: Record; } export namespace RuleGroupsNamespaceSummary { @@ -1308,7 +1308,7 @@ export interface PutRuleGroupsNamespaceResponse { /** * The tags of this rule groups namespace. */ - tags?: { [key: string]: string }; + tags?: Record; } export namespace PutRuleGroupsNamespaceResponse { diff --git a/clients/client-amp/src/protocols/Aws_restJson1.ts b/clients/client-amp/src/protocols/Aws_restJson1.ts index 0ec89530a397..1fdf0f91185e 100644 --- a/clients/client-amp/src/protocols/Aws_restJson1.ts +++ b/clients/client-amp/src/protocols/Aws_restJson1.ts @@ -1839,7 +1839,7 @@ const deserializeAws_restJson1ValidationExceptionResponse = async ( return __decorateServiceException(exception, parsedOutput.body); }; -const serializeAws_restJson1TagMap = (input: { [key: string]: string }, context: __SerdeContext): any => { +const serializeAws_restJson1TagMap = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -1960,8 +1960,8 @@ const deserializeAws_restJson1RuleGroupsNamespaceSummaryList = ( return retVal; }; -const deserializeAws_restJson1TagMap = (output: any, context: __SerdeContext): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +const deserializeAws_restJson1TagMap = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } diff --git a/clients/client-amplify/src/models/models_0.ts b/clients/client-amplify/src/models/models_0.ts index bb0b59c79fb3..500c6e72f714 100644 --- a/clients/client-amplify/src/models/models_0.ts +++ b/clients/client-amplify/src/models/models_0.ts @@ -52,7 +52,7 @@ export interface AutoBranchCreationConfig { /** *

The environment variables for the autocreated branch.

*/ - environmentVariables?: { [key: string]: string }; + environmentVariables?: Record; /** *

The basic authorization credentials for the autocreated branch. You must @@ -227,7 +227,7 @@ export interface CreateAppRequest { /** *

The environment variables map for an Amplify app.

*/ - environmentVariables?: { [key: string]: string }; + environmentVariables?: Record; /** *

Enables the auto building of branches for an Amplify app.

@@ -261,7 +261,7 @@ export interface CreateAppRequest { /** *

The tag for an Amplify app.

*/ - tags?: { [key: string]: string }; + tags?: Record; /** *

The build specification (build spec) for an Amplify app.

@@ -368,7 +368,7 @@ export interface App { /** *

The tag for the Amplify app.

*/ - tags?: { [key: string]: string }; + tags?: Record; /** *

The description for the Amplify app.

@@ -404,7 +404,7 @@ export interface App { /** *

The environment variables for the Amplify app.

*/ - environmentVariables: { [key: string]: string } | undefined; + environmentVariables: Record | undefined; /** *

The default domain for the Amplify app.

@@ -751,7 +751,7 @@ export interface CreateBranchRequest { /** *

The environment variables for the branch.

*/ - environmentVariables?: { [key: string]: string }; + environmentVariables?: Record; /** *

The basic authorization credentials for the branch. You must base64-encode the @@ -776,7 +776,7 @@ export interface CreateBranchRequest { /** *

The tag for the branch.

*/ - tags?: { [key: string]: string }; + tags?: Record; /** *

The build specification (build spec) for the branch.

@@ -843,7 +843,7 @@ export interface Branch { /** *

The tag for the branch of an Amplify app.

*/ - tags?: { [key: string]: string }; + tags?: Record; /** *

The current stage for the branch that is part of an Amplify app.

@@ -873,7 +873,7 @@ export interface Branch { /** *

The environment variables specific to a branch of an Amplify app.

*/ - environmentVariables: { [key: string]: string } | undefined; + environmentVariables: Record | undefined; /** *

Enables auto-building on push for a branch of an Amplify app.

@@ -1020,7 +1020,7 @@ export interface CreateDeploymentRequest { * upload URL per file. Otherwise, the service will only generate a single upload URL for * the zipped files.

*/ - fileMap?: { [key: string]: string }; + fileMap?: Record; } export namespace CreateDeploymentRequest { @@ -1045,7 +1045,7 @@ export interface CreateDeploymentResult { *

When the fileMap argument is provided in the request, * fileUploadUrls will contain a map of file names to upload URLs.

*/ - fileUploadUrls: { [key: string]: string } | undefined; + fileUploadUrls: Record | undefined; /** *

When the fileMap argument is not provided in the request, this @@ -2023,7 +2023,7 @@ export interface Step { /** *

The list of screenshot URLs for the execution step, if relevant.

*/ - screenshots?: { [key: string]: string }; + screenshots?: Record; /** *

The reason for the current step status.

@@ -2527,7 +2527,7 @@ export interface ListTagsForResourceResponse { /** *

A list of tags for the specified The Amazon Resource Name (ARN).

*/ - tags?: { [key: string]: string }; + tags?: Record; } export namespace ListTagsForResourceResponse { @@ -2809,7 +2809,7 @@ export interface TagResourceRequest { /** *

The tags used to tag the resource.

*/ - tags: { [key: string]: string } | undefined; + tags: Record | undefined; } export namespace TagResourceRequest { @@ -2905,7 +2905,7 @@ export interface UpdateAppRequest { /** *

The environment variables for an Amplify app.

*/ - environmentVariables?: { [key: string]: string }; + environmentVariables?: Record; /** *

Enables branch auto-building for an Amplify app.

@@ -3076,7 +3076,7 @@ export interface UpdateBranchRequest { /** *

The environment variables for the branch.

*/ - environmentVariables?: { [key: string]: string }; + environmentVariables?: Record; /** *

The basic authorization credentials for the branch. You must base64-encode the diff --git a/clients/client-amplify/src/protocols/Aws_restJson1.ts b/clients/client-amplify/src/protocols/Aws_restJson1.ts index e89528969cde..490b38302efb 100644 --- a/clients/client-amplify/src/protocols/Aws_restJson1.ts +++ b/clients/client-amplify/src/protocols/Aws_restJson1.ts @@ -3845,7 +3845,7 @@ const serializeAws_restJson1CustomRules = (input: CustomRule[], context: __Serde }); }; -const serializeAws_restJson1EnvironmentVariables = (input: { [key: string]: string }, context: __SerdeContext): any => { +const serializeAws_restJson1EnvironmentVariables = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -3857,7 +3857,7 @@ const serializeAws_restJson1EnvironmentVariables = (input: { [key: string]: stri }, {}); }; -const serializeAws_restJson1FileMap = (input: { [key: string]: string }, context: __SerdeContext): any => { +const serializeAws_restJson1FileMap = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -3887,7 +3887,7 @@ const serializeAws_restJson1SubDomainSettings = (input: SubDomainSetting[], cont }); }; -const serializeAws_restJson1TagMap = (input: { [key: string]: string }, context: __SerdeContext): any => { +const serializeAws_restJson1TagMap = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -4196,11 +4196,8 @@ const deserializeAws_restJson1DomainAssociations = (output: any, context: __Serd return retVal; }; -const deserializeAws_restJson1EnvironmentVariables = ( - output: any, - context: __SerdeContext -): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +const deserializeAws_restJson1EnvironmentVariables = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -4211,8 +4208,8 @@ const deserializeAws_restJson1EnvironmentVariables = ( }, {}); }; -const deserializeAws_restJson1FileUploadUrls = (output: any, context: __SerdeContext): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +const deserializeAws_restJson1FileUploadUrls = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -4283,8 +4280,8 @@ const deserializeAws_restJson1ProductionBranch = (output: any, context: __SerdeC } as any; }; -const deserializeAws_restJson1Screenshots = (output: any, context: __SerdeContext): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +const deserializeAws_restJson1Screenshots = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -4362,8 +4359,8 @@ const deserializeAws_restJson1SubDomainSetting = (output: any, context: __SerdeC } as any; }; -const deserializeAws_restJson1TagMap = (output: any, context: __SerdeContext): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +const deserializeAws_restJson1TagMap = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } diff --git a/clients/client-amplifyuibuilder/src/models/models_0.ts b/clients/client-amplifyuibuilder/src/models/models_0.ts index 531013d53dc1..4fed35bc0ad4 100644 --- a/clients/client-amplifyuibuilder/src/models/models_0.ts +++ b/clients/client-amplifyuibuilder/src/models/models_0.ts @@ -86,14 +86,14 @@ export interface ComponentVariant { *

The combination of variants that comprise this variant. You can't specify * tags as a valid property for variantValues.

*/ - variantValues?: { [key: string]: string }; + variantValues?: Record; /** *

The properties of the component variant that can be overriden when customizing an instance * of the component. You can't specify tags as a valid property for * overrides.

*/ - overrides?: { [key: string]: { [key: string]: string } }; + overrides?: Record>; } export namespace ComponentVariant { @@ -901,7 +901,7 @@ export interface ComponentProperty { /** *

The information to bind the component property to form data.

*/ - bindings?: { [key: string]: FormBindingElement }; + bindings?: Record; /** *

An event that occurs in your app. Use this for workflow data binding.

@@ -1016,7 +1016,7 @@ export interface CreateThemeData { /** *

One or more key-value pairs to use when tagging the theme data.

*/ - tags?: { [key: string]: string }; + tags?: Record; } export namespace CreateThemeData { @@ -1077,7 +1077,7 @@ export interface Theme { /** *

One or more key-value pairs to use when tagging the theme.

*/ - tags?: { [key: string]: string }; + tags?: Record; } export namespace Theme { @@ -1392,7 +1392,7 @@ export interface ActionParameters { * in a data model. Use when the action performs an operation on an Amplify * DataStore model.

*/ - fields?: { [key: string]: ComponentProperty }; + fields?: Record; /** *

A key-value pair that specifies the state property name and its initial value.

@@ -1458,7 +1458,7 @@ export interface ComponentChild { *

Describes the properties of the child component. You can't specify tags as a * valid property for properties.

*/ - properties: { [key: string]: ComponentProperty } | undefined; + properties: Record | undefined; /** *

The list of ComponentChild instances for this component.

@@ -1470,7 +1470,7 @@ export interface ComponentChild { * feature in Amplify Studio that allows you to bind events and actions to * components.

*/ - events?: { [key: string]: ComponentEvent }; + events?: Record; /** *

The unique ID of the child component in its original source system, such as Figma.

@@ -1530,7 +1530,7 @@ export interface Component { *

Describes the component's properties. You can't specify tags as a valid * property for properties.

*/ - properties: { [key: string]: ComponentProperty } | undefined; + properties: Record | undefined; /** *

A list of the component's ComponentChild instances.

@@ -1548,21 +1548,21 @@ export interface Component { * component. You can't specify tags as a valid property for * overrides.

*/ - overrides: { [key: string]: { [key: string]: string } } | undefined; + overrides: Record> | undefined; /** *

The information to connect a component's properties to data at runtime. You can't specify * tags as a valid property for bindingProperties.

*

*/ - bindingProperties: { [key: string]: ComponentBindingPropertiesValue } | undefined; + bindingProperties: Record | undefined; /** *

The data binding configuration for the component's properties. Use this for a collection * component. You can't specify tags as a valid property for * collectionProperties.

*/ - collectionProperties?: { [key: string]: ComponentDataConfiguration }; + collectionProperties?: Record; /** *

The time that the component was created.

@@ -1577,14 +1577,14 @@ export interface Component { /** *

One or more key-value pairs to use when tagging the component.

*/ - tags?: { [key: string]: string }; + tags?: Record; /** *

Describes the events that can be raised on the component. Use for the workflow feature in * Amplify Studio that allows you to bind events and actions to * components.

*/ - events?: { [key: string]: ComponentEvent }; + events?: Record; /** *

The schema version of the component when it was imported.

@@ -1624,7 +1624,7 @@ export interface CreateComponentData { /** *

Describes the component's properties.

*/ - properties: { [key: string]: ComponentProperty } | undefined; + properties: Record | undefined; /** *

A list of child components that are instances of the main component.

@@ -1640,28 +1640,28 @@ export interface CreateComponentData { *

Describes the component properties that can be overriden to customize an instance of the * component.

*/ - overrides: { [key: string]: { [key: string]: string } } | undefined; + overrides: Record> | undefined; /** *

The data binding information for the component's properties.

*/ - bindingProperties: { [key: string]: ComponentBindingPropertiesValue } | undefined; + bindingProperties: Record | undefined; /** *

The data binding configuration for customizing a component's properties. Use this for a * collection component.

*/ - collectionProperties?: { [key: string]: ComponentDataConfiguration }; + collectionProperties?: Record; /** *

One or more key-value pairs to use when tagging the component data.

*/ - tags?: { [key: string]: string }; + tags?: Record; /** *

The event configuration for the component. Use for the workflow feature in Amplify Studio that allows you to bind events and actions to components.

*/ - events?: { [key: string]: ComponentEvent }; + events?: Record; /** *

The schema version of the component when it was imported.

@@ -1706,7 +1706,7 @@ export interface UpdateComponentData { /** *

Describes the component's properties.

*/ - properties?: { [key: string]: ComponentProperty }; + properties?: Record; /** *

The components that are instances of the main component.

@@ -1721,23 +1721,23 @@ export interface UpdateComponentData { /** *

Describes the properties that can be overriden to customize the component.

*/ - overrides?: { [key: string]: { [key: string]: string } }; + overrides?: Record>; /** *

The data binding information for the component's properties.

*/ - bindingProperties?: { [key: string]: ComponentBindingPropertiesValue }; + bindingProperties?: Record; /** *

The configuration for binding a component's properties to a data model. Use this for a * collection component.

*/ - collectionProperties?: { [key: string]: ComponentDataConfiguration }; + collectionProperties?: Record; /** *

The event configuration for the component. Use for the workflow feature in Amplify Studio that allows you to bind events and actions to components.

*/ - events?: { [key: string]: ComponentEvent }; + events?: Record; /** *

The schema version of the component when it was imported.

diff --git a/clients/client-amplifyuibuilder/src/protocols/Aws_restJson1.ts b/clients/client-amplifyuibuilder/src/protocols/Aws_restJson1.ts index 8279fc6a76ed..7477c5c276fa 100644 --- a/clients/client-amplifyuibuilder/src/protocols/Aws_restJson1.ts +++ b/clients/client-amplifyuibuilder/src/protocols/Aws_restJson1.ts @@ -747,7 +747,7 @@ export const deserializeAws_restJson1CreateComponentCommand = async ( $metadata: deserializeMetadata(output), entity: undefined, }; - const data: { [key: string]: any } | undefined = __expectObject(await parseBody(output.body, context)); + const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.entity = deserializeAws_restJson1Component(data, context); return Promise.resolve(contents); }; @@ -798,7 +798,7 @@ export const deserializeAws_restJson1CreateThemeCommand = async ( $metadata: deserializeMetadata(output), entity: undefined, }; - const data: { [key: string]: any } | undefined = __expectObject(await parseBody(output.body, context)); + const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.entity = deserializeAws_restJson1Theme(data, context); return Promise.resolve(contents); }; @@ -1095,7 +1095,7 @@ export const deserializeAws_restJson1GetComponentCommand = async ( $metadata: deserializeMetadata(output), component: undefined, }; - const data: { [key: string]: any } | undefined = __expectObject(await parseBody(output.body, context)); + const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.component = deserializeAws_restJson1Component(data, context); return Promise.resolve(contents); }; @@ -1143,7 +1143,7 @@ export const deserializeAws_restJson1GetThemeCommand = async ( $metadata: deserializeMetadata(output), theme: undefined, }; - const data: { [key: string]: any } | undefined = __expectObject(await parseBody(output.body, context)); + const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.theme = deserializeAws_restJson1Theme(data, context); return Promise.resolve(contents); }; @@ -1341,7 +1341,7 @@ export const deserializeAws_restJson1UpdateComponentCommand = async ( $metadata: deserializeMetadata(output), entity: undefined, }; - const data: { [key: string]: any } | undefined = __expectObject(await parseBody(output.body, context)); + const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.entity = deserializeAws_restJson1Component(data, context); return Promise.resolve(contents); }; @@ -1389,7 +1389,7 @@ export const deserializeAws_restJson1UpdateThemeCommand = async ( $metadata: deserializeMetadata(output), entity: undefined, }; - const data: { [key: string]: any } | undefined = __expectObject(await parseBody(output.body, context)); + const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.entity = deserializeAws_restJson1Theme(data, context); return Promise.resolve(contents); }; @@ -1529,7 +1529,7 @@ const serializeAws_restJson1ActionParameters = (input: ActionParameters, context }; const serializeAws_restJson1ComponentBindingProperties = ( - input: { [key: string]: ComponentBindingPropertiesValue }, + input: Record, context: __SerdeContext ): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { @@ -1604,7 +1604,7 @@ const serializeAws_restJson1ComponentChildList = (input: ComponentChild[], conte }; const serializeAws_restJson1ComponentCollectionProperties = ( - input: { [key: string]: ComponentDataConfiguration }, + input: Record, context: __SerdeContext ): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { @@ -1659,10 +1659,7 @@ const serializeAws_restJson1ComponentEvent = (input: ComponentEvent, context: __ }; }; -const serializeAws_restJson1ComponentEvents = ( - input: { [key: string]: ComponentEvent }, - context: __SerdeContext -): any => { +const serializeAws_restJson1ComponentEvents = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -1675,7 +1672,7 @@ const serializeAws_restJson1ComponentEvents = ( }; const serializeAws_restJson1ComponentOverrides = ( - input: { [key: string]: { [key: string]: string } }, + input: Record>, context: __SerdeContext ): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { @@ -1689,10 +1686,7 @@ const serializeAws_restJson1ComponentOverrides = ( }, {}); }; -const serializeAws_restJson1ComponentOverridesValue = ( - input: { [key: string]: string }, - context: __SerdeContext -): any => { +const serializeAws_restJson1ComponentOverridesValue = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -1705,7 +1699,7 @@ const serializeAws_restJson1ComponentOverridesValue = ( }; const serializeAws_restJson1ComponentProperties = ( - input: { [key: string]: ComponentProperty }, + input: Record, context: __SerdeContext ): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { @@ -1796,10 +1790,7 @@ const serializeAws_restJson1ComponentVariants = (input: ComponentVariant[], cont }); }; -const serializeAws_restJson1ComponentVariantValues = ( - input: { [key: string]: string }, - context: __SerdeContext -): any => { +const serializeAws_restJson1ComponentVariantValues = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -1870,7 +1861,7 @@ const serializeAws_restJson1FormBindingElement = (input: FormBindingElement, con }; const serializeAws_restJson1FormBindings = ( - input: { [key: string]: FormBindingElement }, + input: Record, context: __SerdeContext ): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { @@ -1956,7 +1947,7 @@ const serializeAws_restJson1SortPropertyList = (input: SortProperty[], context: }); }; -const serializeAws_restJson1Tags = (input: { [key: string]: string }, context: __SerdeContext): any => { +const serializeAws_restJson1Tags = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -2129,9 +2120,9 @@ const deserializeAws_restJson1Component = (output: any, context: __SerdeContext) const deserializeAws_restJson1ComponentBindingProperties = ( output: any, context: __SerdeContext -): { [key: string]: ComponentBindingPropertiesValue } => { +): Record => { return Object.entries(output).reduce( - (acc: { [key: string]: ComponentBindingPropertiesValue }, [key, value]: [string, any]) => { + (acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -2211,9 +2202,9 @@ const deserializeAws_restJson1ComponentChildList = (output: any, context: __Serd const deserializeAws_restJson1ComponentCollectionProperties = ( output: any, context: __SerdeContext -): { [key: string]: ComponentDataConfiguration } => { +): Record => { return Object.entries(output).reduce( - (acc: { [key: string]: ComponentDataConfiguration }, [key, value]: [string, any]) => { + (acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -2282,8 +2273,8 @@ const deserializeAws_restJson1ComponentEvent = (output: any, context: __SerdeCon const deserializeAws_restJson1ComponentEvents = ( output: any, context: __SerdeContext -): { [key: string]: ComponentEvent } => { - return Object.entries(output).reduce((acc: { [key: string]: ComponentEvent }, [key, value]: [string, any]) => { +): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -2309,26 +2300,23 @@ const deserializeAws_restJson1ComponentList = (output: any, context: __SerdeCont const deserializeAws_restJson1ComponentOverrides = ( output: any, context: __SerdeContext -): { [key: string]: { [key: string]: string } } => { - return Object.entries(output).reduce( - (acc: { [key: string]: { [key: string]: string } }, [key, value]: [string, any]) => { - if (value === null) { - return acc; - } - return { - ...acc, - [key]: deserializeAws_restJson1ComponentOverridesValue(value, context), - }; - }, - {} - ); +): Record> => { + return Object.entries(output).reduce((acc: Record>, [key, value]: [string, any]) => { + if (value === null) { + return acc; + } + return { + ...acc, + [key]: deserializeAws_restJson1ComponentOverridesValue(value, context), + }; + }, {}); }; const deserializeAws_restJson1ComponentOverridesValue = ( output: any, context: __SerdeContext -): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -2342,8 +2330,8 @@ const deserializeAws_restJson1ComponentOverridesValue = ( const deserializeAws_restJson1ComponentProperties = ( output: any, context: __SerdeContext -): { [key: string]: ComponentProperty } => { - return Object.entries(output).reduce((acc: { [key: string]: ComponentProperty }, [key, value]: [string, any]) => { +): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -2461,8 +2449,8 @@ const deserializeAws_restJson1ComponentVariants = (output: any, context: __Serde const deserializeAws_restJson1ComponentVariantValues = ( output: any, context: __SerdeContext -): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -2483,8 +2471,8 @@ const deserializeAws_restJson1FormBindingElement = (output: any, context: __Serd const deserializeAws_restJson1FormBindings = ( output: any, context: __SerdeContext -): { [key: string]: FormBindingElement } => { - return Object.entries(output).reduce((acc: { [key: string]: FormBindingElement }, [key, value]: [string, any]) => { +): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -2568,8 +2556,8 @@ const deserializeAws_restJson1SortPropertyList = (output: any, context: __SerdeC return retVal; }; -const deserializeAws_restJson1Tags = (output: any, context: __SerdeContext): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +const deserializeAws_restJson1Tags = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } diff --git a/clients/client-api-gateway/src/models/models_0.ts b/clients/client-api-gateway/src/models/models_0.ts index dfb4d6fd282c..155e11c9d3fe 100644 --- a/clients/client-api-gateway/src/models/models_0.ts +++ b/clients/client-api-gateway/src/models/models_0.ts @@ -137,7 +137,7 @@ export interface ApiKey { /** *

The collection of tags. Each tag element is associated with a given resource.

*/ - tags?: { [key: string]: string }; + tags?: Record; } export namespace ApiKey { @@ -228,7 +228,7 @@ export interface ApiStage { /** *

Map containing method level throttling information for API stage in a usage plan.

*/ - throttle?: { [key: string]: ThrottleSettings }; + throttle?: Record; } export namespace ApiStage { @@ -452,7 +452,7 @@ export interface CreateApiKeyRequest { /** *

The key-value map of strings. The valid character set is [a-zA-Z+-=._:/]. The tag key can be up to 128 characters and must not start with aws:. The tag value can be up to 256 characters.

*/ - tags?: { [key: string]: string }; + tags?: Record; } export namespace CreateApiKeyRequest { @@ -710,7 +710,7 @@ export interface DeploymentCanarySettings { /** *

A stage variable overrides used for the canary release deployment. They can override existing stage variables or add new stage variables for the canary release deployment. These stage variables are represented as a string-to-string map between stage variable names and their values.

*/ - stageVariableOverrides?: { [key: string]: string }; + stageVariableOverrides?: Record; /** *

A Boolean flag to indicate whether the canary release deployment uses the stage cache or not.

@@ -766,7 +766,7 @@ export interface CreateDeploymentRequest { * with the new deployment. Variable names can have alphanumeric and underscore characters, and the values * must match [A-Za-z0-9-._~:/?#&=,]+.

*/ - variables?: { [key: string]: string }; + variables?: Record; /** *

The input configuration for the canary deployment when the deployment is a canary release deployment.

@@ -834,7 +834,7 @@ export interface Deployment { /** *

A summary of the RestApi at the date and time that the deployment resource was created.

*/ - apiSummary?: { [key: string]: { [key: string]: MethodSnapshot } }; + apiSummary?: Record>; } export namespace Deployment { @@ -1152,7 +1152,7 @@ export interface CreateDomainNameRequest { /** *

The key-value map of strings. The valid character set is [a-zA-Z+-=._:/]. The tag key can be up to 128 characters and must not start with aws:. The tag value can be up to 256 characters.

*/ - tags?: { [key: string]: string }; + tags?: Record; /** *

The Transport Layer Security (TLS) version + cipher suite for this DomainName. The valid values are TLS_1_0 and TLS_1_2.

@@ -1306,7 +1306,7 @@ export interface DomainName { /** *

The collection of tags. Each tag element is associated with a given resource.

*/ - tags?: { [key: string]: string }; + tags?: Record; /** *

The mutual TLS authentication configuration for a custom domain name. If specified, API Gateway @@ -1535,12 +1535,12 @@ export interface IntegrationResponse { *

A key-value map specifying response parameters that are passed to the method response from the back end. * The key is a method response header parameter name and the mapped value is an integration response header value, a static value enclosed within a pair of single quotes, or a JSON expression from the integration response body. The mapping key must match the pattern of method.response.header.{name}, where name is a valid and unique header name. The mapped non-static value must match the pattern of integration.response.header.{name} or integration.response.body.{JSON-expression}, where name is a valid and unique response header name and JSON-expression is a valid JSON expression without the $ prefix.

*/ - responseParameters?: { [key: string]: string }; + responseParameters?: Record; /** *

Specifies the templates used to transform the integration response body. Response templates are represented as a key/value map, with a content-type as the key and a template as the value.

*/ - responseTemplates?: { [key: string]: string }; + responseTemplates?: Record; /** *

Specifies how to handle response payload content type conversions. Supported values are CONVERT_TO_BINARY and CONVERT_TO_TEXT, with the following behaviors:

@@ -1647,12 +1647,12 @@ export interface Integration { /** *

A key-value map specifying request parameters that are passed from the method request to the back end. The key is an integration request parameter name and the associated value is a method request parameter value or static value that must be enclosed within single quotes and pre-encoded as required by the back end. The method request parameter value must match the pattern of method.request.{location}.{name}, where location is querystring, path, or header and name must be a valid and unique method request parameter name.

*/ - requestParameters?: { [key: string]: string }; + requestParameters?: Record; /** *

Represents a map of Velocity templates that are applied on the request payload based on the value of the Content-Type header sent by the client. The content type value is the key in this map, and the template (as a String) is the value.

*/ - requestTemplates?: { [key: string]: string }; + requestTemplates?: Record; /** *

Specifies how the method request body of an unmapped content type will be passed through @@ -1698,7 +1698,7 @@ export interface Integration { /** *

Specifies the integration's responses.

*/ - integrationResponses?: { [key: string]: IntegrationResponse }; + integrationResponses?: Record; /** *

Specifies the TLS configuration for an integration.

@@ -1727,12 +1727,12 @@ export interface MethodResponse { /** *

A key-value map specifying required or optional response parameters that API Gateway can send back to the caller. A key defines a method response header and the value specifies whether the associated method response header is required or not. The expression of the key must match the pattern method.response.header.{name}, where name is a valid and unique header name. API Gateway passes certain integration response data to the method response headers specified here according to the mapping you prescribe in the API's IntegrationResponse. The integration response data that can be mapped include an integration response header expressed in integration.response.header.{name}, a static value enclosed within a pair of single quotes (e.g., 'application/json'), or a JSON expression from the back-end response payload in the form of integration.response.body.{JSON-expression}, where JSON-expression is a valid JSON expression without the $ prefix.)

*/ - responseParameters?: { [key: string]: boolean }; + responseParameters?: Record; /** *

Specifies the Model resources used for the response's content-type. Response models are represented as a key/value map, with a content-type as the key and a Model name as the value.

*/ - responseModels?: { [key: string]: string }; + responseModels?: Record; } export namespace MethodResponse { @@ -1788,17 +1788,17 @@ export interface Method { /** *

A key-value map defining required or optional method request parameters that can be accepted by API Gateway. A key is a method request parameter name matching the pattern of method.request.{location}.{name}, where location is querystring, path, or header and name is a valid and unique parameter name. The value associated with the key is a Boolean flag indicating whether the parameter is required (true) or optional (false). The method request parameter names defined here are available in Integration to be mapped to integration request parameters or templates.

*/ - requestParameters?: { [key: string]: boolean }; + requestParameters?: Record; /** *

A key-value map specifying data schemas, represented by Model resources, (as the mapped value) of the request payloads of given content types (as the mapping key).

*/ - requestModels?: { [key: string]: string }; + requestModels?: Record; /** *

Gets a method response associated with a given HTTP status code.

*/ - methodResponses?: { [key: string]: MethodResponse }; + methodResponses?: Record; /** *

Gets the method's integration responsible for passing the client-submitted request to the back end and performing necessary transformations to make the request compliant with the back end.

@@ -1847,7 +1847,7 @@ export interface Resource { /** *

Gets an API resource's method of a given HTTP verb.

*/ - resourceMethods?: { [key: string]: Method }; + resourceMethods?: Record; } export namespace Resource { @@ -1914,7 +1914,7 @@ export interface CreateRestApiRequest { /** *

The key-value map of strings. The valid character set is [a-zA-Z+-=._:/]. The tag key can be up to 128 characters and must not start with aws:. The tag value can be up to 256 characters.

*/ - tags?: { [key: string]: string }; + tags?: Record; /** *

Specifies whether clients can invoke your API by using the default execute-api endpoint. @@ -1999,7 +1999,7 @@ export interface RestApi { /** *

The collection of tags. Each tag element is associated with a given resource.

*/ - tags?: { [key: string]: string }; + tags?: Record; /** *

Specifies whether clients can invoke your API by using the default execute-api endpoint. @@ -2036,7 +2036,7 @@ export interface CanarySettings { /** *

Stage variables overridden for a canary release deployment, including new stage variables introduced in the canary. These stage variables are represented as a string-to-string map between stage variable names and their values.

*/ - stageVariableOverrides?: { [key: string]: string }; + stageVariableOverrides?: Record; /** *

A Boolean flag to indicate whether the canary deployment uses the stage cache or not.

@@ -2092,7 +2092,7 @@ export interface CreateStageRequest { * can have alphanumeric and underscore characters, and the values must match * [A-Za-z0-9-._~:/?#&=,]+.

*/ - variables?: { [key: string]: string }; + variables?: Record; /** *

The version of the associated API documentation.

@@ -2112,7 +2112,7 @@ export interface CreateStageRequest { /** *

The key-value map of strings. The valid character set is [a-zA-Z+-=._:/]. The tag key can be up to 128 characters and must not start with aws:. The tag value can be up to 256 characters.

*/ - tags?: { [key: string]: string }; + tags?: Record; } export namespace CreateStageRequest { @@ -2244,13 +2244,13 @@ export interface Stage { /** *

A map that defines the method settings for a Stage resource. Keys (designated as /{method_setting_key below) are method paths defined as {resource_path}/{http_method} for an individual method override, or /\*\/\* for overriding all methods in the stage.

*/ - methodSettings?: { [key: string]: MethodSetting }; + methodSettings?: Record; /** *

A map that defines the stage variables for a Stage resource. Variable names can * have alphanumeric and underscore characters, and the values must match [A-Za-z0-9-._~:/?#&=,]+.

*/ - variables?: { [key: string]: string }; + variables?: Record; /** *

The version of the associated API documentation.

@@ -2280,7 +2280,7 @@ export interface Stage { /** *

The collection of tags. Each tag element is associated with a given resource.

*/ - tags?: { [key: string]: string }; + tags?: Record; /** *

The timestamp when the stage was created.

@@ -2369,7 +2369,7 @@ export interface CreateUsagePlanRequest { /** *

The key-value map of strings. The valid character set is [a-zA-Z+-=._:/]. The tag key can be up to 128 characters and must not start with aws:. The tag value can be up to 256 characters.

*/ - tags?: { [key: string]: string }; + tags?: Record; } export namespace CreateUsagePlanRequest { @@ -2426,7 +2426,7 @@ export interface UsagePlan { /** *

The collection of tags. Each tag element is associated with a given resource.

*/ - tags?: { [key: string]: string }; + tags?: Record; } export namespace UsagePlan { @@ -2523,7 +2523,7 @@ export interface CreateVpcLinkRequest { /** *

The key-value map of strings. The valid character set is [a-zA-Z+-=._:/]. The tag key can be up to 128 characters and must not start with aws:. The tag value can be up to 256 characters.

*/ - tags?: { [key: string]: string }; + tags?: Record; } export namespace CreateVpcLinkRequest { @@ -2579,7 +2579,7 @@ export interface VpcLink { /** *

The collection of tags. Each tag element is associated with a given resource.

*/ - tags?: { [key: string]: string }; + tags?: Record; } export namespace VpcLink { @@ -3200,7 +3200,7 @@ export interface ClientCertificate { /** *

The collection of tags. Each tag element is associated with a given resource.

*/ - tags?: { [key: string]: string }; + tags?: Record; } export namespace ClientCertificate { @@ -3224,7 +3224,7 @@ export interface GenerateClientCertificateRequest { /** *

The key-value map of strings. The valid character set is [a-zA-Z+-=._:/]. The tag key can be up to 128 characters and must not start with aws:. The tag value can be up to 256 characters.

*/ - tags?: { [key: string]: string }; + tags?: Record; } export namespace GenerateClientCertificateRequest { @@ -3890,7 +3890,7 @@ export interface GetExportRequest { *

A key-value map of query string parameters that specify properties of the export, depending on the requested exportType. For exportType * oas30 and swagger, any combination of the following parameters are supported: extensions='integrations' or extensions='apigateway' will export the API with x-amazon-apigateway-integration extensions. extensions='authorizers' will export the API with x-amazon-apigateway-authorizer extensions. postman will export the API with Postman extensions, allowing for import to the Postman tool

*/ - parameters?: { [key: string]: string }; + parameters?: Record; /** *

The content-type of the export, for example application/json. Currently application/json and application/yaml are supported for exportType ofoas30 and swagger. This should be specified in the Accept header for direct API requests.

@@ -3925,12 +3925,12 @@ export interface GatewayResponse { *

Response parameters (paths, query strings and headers) of the GatewayResponse as a * string-to-string map of key-value pairs.

*/ - responseParameters?: { [key: string]: string }; + responseParameters?: Record; /** *

Response templates of the GatewayResponse as a string-to-string map of key-value pairs.

*/ - responseTemplates?: { [key: string]: string }; + responseTemplates?: Record; /** *

A Boolean flag to indicate whether this GatewayResponse is the default gateway response (true) or not (false). A default gateway response is one generated by API Gateway without any customization by an API developer.

@@ -4528,7 +4528,7 @@ export interface GetSdkRequest { /** *

A string-to-string key-value map of query parameters sdkType-dependent properties of the SDK. For sdkType of objectivec or swift, a parameter named classPrefix is required. For sdkType of android, parameters named groupId, artifactId, artifactVersion, and invokerPackage are required. For sdkType of java, parameters named serviceName and javaPackageName are required.

*/ - parameters?: { [key: string]: string }; + parameters?: Record; } export namespace GetSdkRequest { @@ -4807,7 +4807,7 @@ export interface Tags { /** *

The collection of tags. Each tag element is associated with a given resource.

*/ - tags?: { [key: string]: string }; + tags?: Record; } export namespace Tags { @@ -4885,7 +4885,7 @@ export interface Usage { /** *

The usage data, as daily logs of used and remaining quotas, over the specified time interval indexed over the API keys in a usage plan. For example, {..., "values" : { "{api_key}" : [ [0, 100], [10, 90], [100, 10]]}, where {api_key} stands for an API key value and the daily log entry is of the format [used quota, remaining quota].

*/ - items?: { [key: string]: number[][] }; + items?: Record; /** *

The current pagination position in the paged result set.

@@ -5233,7 +5233,7 @@ export interface ImportRestApiRequest { *

For example, the AWS CLI command to exclude documentation from the imported API is:

*

The AWS CLI command to set the regional endpoint on the imported API is:

*/ - parameters?: { [key: string]: string }; + parameters?: Record; /** *

The POST request body containing external API definitions. Currently, only OpenAPI definition JSON/YAML files are supported. The maximum size of the API definition file is 6MB.

@@ -5272,12 +5272,12 @@ export interface PutGatewayResponseRequest { /** *

Response parameters (paths, query strings and headers) of the GatewayResponse as a string-to-string map of key-value pairs.

*/ - responseParameters?: { [key: string]: string }; + responseParameters?: Record; /** *

Response templates of the GatewayResponse as a string-to-string map of key-value pairs.

*/ - responseTemplates?: { [key: string]: string }; + responseTemplates?: Record; } export namespace PutGatewayResponseRequest { @@ -5356,12 +5356,12 @@ export interface PutIntegrationRequest { /** *

A key-value map specifying request parameters that are passed from the method request to the back end. The key is an integration request parameter name and the associated value is a method request parameter value or static value that must be enclosed within single quotes and pre-encoded as required by the back end. The method request parameter value must match the pattern of method.request.{location}.{name}, where location is querystring, path, or header and name must be a valid and unique method request parameter name.

*/ - requestParameters?: { [key: string]: string }; + requestParameters?: Record; /** *

Represents a map of Velocity templates that are applied on the request payload based on the value of the Content-Type header sent by the client. The content type value is the key in this map, and the template (as a String) is the value.

*/ - requestTemplates?: { [key: string]: string }; + requestTemplates?: Record; /** *

Specifies the pass-through behavior for incoming requests based on the Content-Type header in the request, and the available mapping templates specified as the requestTemplates property on the Integration resource. There are three valid values: WHEN_NO_MATCH, WHEN_NO_TEMPLATES, and NEVER. @@ -5439,12 +5439,12 @@ export interface PutIntegrationResponseRequest { *

A key-value map specifying response parameters that are passed to the method response from the back end. * The key is a method response header parameter name and the mapped value is an integration response header value, a static value enclosed within a pair of single quotes, or a JSON expression from the integration response body. The mapping key must match the pattern of method.response.header.{name}, where name is a valid and unique header name. The mapped non-static value must match the pattern of integration.response.header.{name} or integration.response.body.{JSON-expression}, where name must be a valid and unique response header name and JSON-expression a valid JSON expression without the $ prefix.

*/ - responseParameters?: { [key: string]: string }; + responseParameters?: Record; /** *

Specifies a put integration response's templates.

*/ - responseTemplates?: { [key: string]: string }; + responseTemplates?: Record; /** *

Specifies how to handle response payload content type conversions. Supported values are CONVERT_TO_BINARY and CONVERT_TO_TEXT, with the following behaviors:

@@ -5505,12 +5505,12 @@ export interface PutMethodRequest { /** *

A key-value map defining required or optional method request parameters that can be accepted by API Gateway. A key defines a method request parameter name matching the pattern of method.request.{location}.{name}, where location is querystring, path, or header and name is a valid and unique parameter name. The value associated with the key is a Boolean flag indicating whether the parameter is required (true) or optional (false). The method request parameter names defined here are available in Integration to be mapped to integration request parameters or body-mapping templates.

*/ - requestParameters?: { [key: string]: boolean }; + requestParameters?: Record; /** *

Specifies the Model resources used for the request's content type. Request models are represented as a key/value map, with a content type as the key and a Model name as the value.

*/ - requestModels?: { [key: string]: string }; + requestModels?: Record; /** *

The identifier of a RequestValidator for validating the method request.

@@ -5559,12 +5559,12 @@ export interface PutMethodResponseRequest { /** *

A key-value map specifying required or optional response parameters that API Gateway can send back to the caller. A key defines a method response header name and the associated value is a Boolean flag indicating whether the method response parameter is required or not. The method response header names must match the pattern of method.response.header.{name}, where name is a valid and unique header name. The response parameter names defined here are available in the integration response to be mapped from an integration response header expressed in integration.response.header.{name}, a static value enclosed within a pair of single quotes (e.g., 'application/json'), or a JSON expression from the back-end response payload in the form of integration.response.body.{JSON-expression}, where JSON-expression is a valid JSON expression without the $ prefix.)

*/ - responseParameters?: { [key: string]: boolean }; + responseParameters?: Record; /** *

Specifies the Model resources used for the response's content type. Response models are represented as a key/value map, with a content type as the key and a Model name as the value.

*/ - responseModels?: { [key: string]: string }; + responseModels?: Record; } export namespace PutMethodResponseRequest { @@ -5600,7 +5600,7 @@ export interface PutRestApiRequest { /** *

Custom header parameters as part of the request. For example, to exclude DocumentationParts from an imported API, set ignore=documentation as a parameters value, as in the AWS CLI command of aws apigateway import-rest-api --parameters ignore=documentation --body 'file:///path/to/imported-api-body.json'.

*/ - parameters?: { [key: string]: string }; + parameters?: Record; /** *

The PUT request body containing external API definitions. Currently, only OpenAPI definition JSON/YAML files are supported. The maximum size of the API definition file is 6MB.

@@ -5629,7 +5629,7 @@ export interface TagResourceRequest { /** *

The key-value map of strings. The valid character set is [a-zA-Z+-=._:/]. The tag key can be up to 128 characters and must not start with aws:. The tag value can be up to 256 characters.

*/ - tags: { [key: string]: string } | undefined; + tags: Record | undefined; } export namespace TagResourceRequest { @@ -5658,12 +5658,12 @@ export interface TestInvokeAuthorizerRequest { /** *

A key-value map of headers to simulate an incoming invocation request. This is where the incoming authorization token, or identity source, should be specified.

*/ - headers?: { [key: string]: string }; + headers?: Record; /** *

The headers as a map from string to list of values to simulate an incoming invocation request. This is where the incoming authorization token, or identity source, may be specified.

*/ - multiValueHeaders?: { [key: string]: string[] }; + multiValueHeaders?: Record; /** *

The URI path, including query string, of the simulated invocation request. Use this to specify path parameters and query string parameters.

@@ -5678,12 +5678,12 @@ export interface TestInvokeAuthorizerRequest { /** *

A key-value map of stage variables to simulate an invocation on a deployed Stage.

*/ - stageVariables?: { [key: string]: string }; + stageVariables?: Record; /** *

A key-value map of additional context variables.

*/ - additionalContext?: { [key: string]: string }; + additionalContext?: Record; } export namespace TestInvokeAuthorizerRequest { @@ -5727,12 +5727,12 @@ export interface TestInvokeAuthorizerResponse { /** *

The authorization response.

*/ - authorization?: { [key: string]: string[] }; + authorization?: Record; /** *

The open identity claims, with any supported custom attributes, returned from the Cognito Your User Pool configured for the API.

*/ - claims?: { [key: string]: string }; + claims?: Record; } export namespace TestInvokeAuthorizerResponse { @@ -5776,12 +5776,12 @@ export interface TestInvokeMethodRequest { /** *

A key-value map of headers to simulate an incoming invocation request.

*/ - headers?: { [key: string]: string }; + headers?: Record; /** *

The headers as a map from string to list of values to simulate an incoming invocation request.

*/ - multiValueHeaders?: { [key: string]: string[] }; + multiValueHeaders?: Record; /** *

A ClientCertificate identifier to use in the test invocation. API Gateway will use the certificate when making the HTTPS request to the defined back-end endpoint.

@@ -5791,7 +5791,7 @@ export interface TestInvokeMethodRequest { /** *

A key-value map of stage variables to simulate an invocation on a deployed Stage.

*/ - stageVariables?: { [key: string]: string }; + stageVariables?: Record; } export namespace TestInvokeMethodRequest { @@ -5820,12 +5820,12 @@ export interface TestInvokeMethodResponse { /** *

The headers of the HTTP response.

*/ - headers?: { [key: string]: string }; + headers?: Record; /** *

The headers of the HTTP response as a map from string to list of values.

*/ - multiValueHeaders?: { [key: string]: string[] }; + multiValueHeaders?: Record; /** *

The API Gateway execution log for the test invoke request.

diff --git a/clients/client-api-gateway/src/protocols/Aws_restJson1.ts b/clients/client-api-gateway/src/protocols/Aws_restJson1.ts index 9bd5c0a1a337..bb8386260888 100644 --- a/clients/client-api-gateway/src/protocols/Aws_restJson1.ts +++ b/clients/client-api-gateway/src/protocols/Aws_restJson1.ts @@ -13985,7 +13985,7 @@ const serializeAws_restJson1ListOfString = (input: string[], context: __SerdeCon }; const serializeAws_restJson1MapOfApiStageThrottleSettings = ( - input: { [key: string]: ThrottleSettings }, + input: Record, context: __SerdeContext ): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { @@ -13999,10 +13999,7 @@ const serializeAws_restJson1MapOfApiStageThrottleSettings = ( }, {}); }; -const serializeAws_restJson1MapOfStringToBoolean = ( - input: { [key: string]: boolean }, - context: __SerdeContext -): any => { +const serializeAws_restJson1MapOfStringToBoolean = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -14014,7 +14011,7 @@ const serializeAws_restJson1MapOfStringToBoolean = ( }, {}); }; -const serializeAws_restJson1MapOfStringToList = (input: { [key: string]: string[] }, context: __SerdeContext): any => { +const serializeAws_restJson1MapOfStringToList = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -14026,7 +14023,7 @@ const serializeAws_restJson1MapOfStringToList = (input: { [key: string]: string[ }, {}); }; -const serializeAws_restJson1MapOfStringToString = (input: { [key: string]: string }, context: __SerdeContext): any => { +const serializeAws_restJson1MapOfStringToString = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -14666,8 +14663,8 @@ const deserializeAws_restJson1ListOfVpcLink = (output: any, context: __SerdeCont const deserializeAws_restJson1MapOfApiStageThrottleSettings = ( output: any, context: __SerdeContext -): { [key: string]: ThrottleSettings } => { - return Object.entries(output).reduce((acc: { [key: string]: ThrottleSettings }, [key, value]: [string, any]) => { +): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -14681,8 +14678,8 @@ const deserializeAws_restJson1MapOfApiStageThrottleSettings = ( const deserializeAws_restJson1MapOfIntegrationResponse = ( output: any, context: __SerdeContext -): { [key: string]: IntegrationResponse } => { - return Object.entries(output).reduce((acc: { [key: string]: IntegrationResponse }, [key, value]: [string, any]) => { +): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -14693,11 +14690,8 @@ const deserializeAws_restJson1MapOfIntegrationResponse = ( }, {}); }; -const deserializeAws_restJson1MapOfKeyUsages = ( - output: any, - context: __SerdeContext -): { [key: string]: number[][] } => { - return Object.entries(output).reduce((acc: { [key: string]: number[][] }, [key, value]: [string, any]) => { +const deserializeAws_restJson1MapOfKeyUsages = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -14708,8 +14702,8 @@ const deserializeAws_restJson1MapOfKeyUsages = ( }, {}); }; -const deserializeAws_restJson1MapOfMethod = (output: any, context: __SerdeContext): { [key: string]: Method } => { - return Object.entries(output).reduce((acc: { [key: string]: Method }, [key, value]: [string, any]) => { +const deserializeAws_restJson1MapOfMethod = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -14723,8 +14717,8 @@ const deserializeAws_restJson1MapOfMethod = (output: any, context: __SerdeContex const deserializeAws_restJson1MapOfMethodResponse = ( output: any, context: __SerdeContext -): { [key: string]: MethodResponse } => { - return Object.entries(output).reduce((acc: { [key: string]: MethodResponse }, [key, value]: [string, any]) => { +): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -14738,8 +14732,8 @@ const deserializeAws_restJson1MapOfMethodResponse = ( const deserializeAws_restJson1MapOfMethodSettings = ( output: any, context: __SerdeContext -): { [key: string]: MethodSetting } => { - return Object.entries(output).reduce((acc: { [key: string]: MethodSetting }, [key, value]: [string, any]) => { +): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -14753,8 +14747,8 @@ const deserializeAws_restJson1MapOfMethodSettings = ( const deserializeAws_restJson1MapOfMethodSnapshot = ( output: any, context: __SerdeContext -): { [key: string]: MethodSnapshot } => { - return Object.entries(output).reduce((acc: { [key: string]: MethodSnapshot }, [key, value]: [string, any]) => { +): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -14768,8 +14762,8 @@ const deserializeAws_restJson1MapOfMethodSnapshot = ( const deserializeAws_restJson1MapOfStringToBoolean = ( output: any, context: __SerdeContext -): { [key: string]: boolean } => { - return Object.entries(output).reduce((acc: { [key: string]: boolean }, [key, value]: [string, any]) => { +): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -14780,11 +14774,8 @@ const deserializeAws_restJson1MapOfStringToBoolean = ( }, {}); }; -const deserializeAws_restJson1MapOfStringToList = ( - output: any, - context: __SerdeContext -): { [key: string]: string[] } => { - return Object.entries(output).reduce((acc: { [key: string]: string[] }, [key, value]: [string, any]) => { +const deserializeAws_restJson1MapOfStringToList = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -14795,11 +14786,8 @@ const deserializeAws_restJson1MapOfStringToList = ( }, {}); }; -const deserializeAws_restJson1MapOfStringToString = ( - output: any, - context: __SerdeContext -): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +const deserializeAws_restJson1MapOfStringToString = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -14904,9 +14892,9 @@ const deserializeAws_restJson1MutualTlsAuthentication = ( const deserializeAws_restJson1PathToMapOfMethodSnapshot = ( output: any, context: __SerdeContext -): { [key: string]: { [key: string]: MethodSnapshot } } => { +): Record> => { return Object.entries(output).reduce( - (acc: { [key: string]: { [key: string]: MethodSnapshot } }, [key, value]: [string, any]) => { + (acc: Record>, [key, value]: [string, any]) => { if (value === null) { return acc; } diff --git a/clients/client-apigatewayv2/src/models/models_0.ts b/clients/client-apigatewayv2/src/models/models_0.ts index 0a0a4d80225c..71862c4d0386 100644 --- a/clients/client-apigatewayv2/src/models/models_0.ts +++ b/clients/client-apigatewayv2/src/models/models_0.ts @@ -124,7 +124,7 @@ export interface Api { /** *

A collection of tags associated with the API.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; /** *

A version identifier for the API.

@@ -464,7 +464,7 @@ export interface DomainName { /** *

The collection of tags associated with a domain name.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; } export namespace DomainName { @@ -601,17 +601,17 @@ export interface Integration { * {name} * must be a valid and unique method request parameter name.

For HTTP API integrations with a specified integrationSubtype, request parameters are a key-value map specifying parameters that are passed to AWS_PROXY integrations. You can provide static values, or map request data, stage variables, or context variables that are evaluated at runtime. To learn more, see Working with AWS service integrations for HTTP APIs.

For HTTP API itegrations, without a specified integrationSubtype request parameters are a key-value map specifying how to transform HTTP requests before sending them to backend integrations. The key should follow the pattern <action>:<header|querystring|path>.<location>. The action can be append, overwrite or remove. For values, you can provide static values, or map request data, stage variables, or context variables that are evaluated at runtime. To learn more, see Transforming API requests and responses.

*/ - RequestParameters?: { [key: string]: string }; + RequestParameters?: Record; /** *

Represents a map of Velocity templates that are applied on the request payload based on the value of the Content-Type header sent by the client. The content type value is the key in this map, and the template (as a String) is the value. Supported only for WebSocket APIs.

*/ - RequestTemplates?: { [key: string]: string }; + RequestTemplates?: Record; /** *

Supported only for HTTP APIs. You use response parameters to transform the HTTP response from a backend integration before returning the response to clients. Specify a key-value map from a selection key to response parameters. The selection key must be a valid HTTP status code within the range of 200-599. Response parameters are a key-value map. The key must match pattern <action>:<header>.<location> or overwrite.statuscode. The action can be append, overwrite or remove. The value can be a static value, or map to response data, stage variables, or context variables that are evaluated at runtime. To learn more, see Transforming API requests and responses.

*/ - ResponseParameters?: { [key: string]: { [key: string]: string } }; + ResponseParameters?: Record>; /** *

The template selection expression for the integration. Supported only for WebSocket APIs.

@@ -660,12 +660,12 @@ export interface IntegrationResponse { /** *

A key-value map specifying response parameters that are passed to the method response from the backend. The key is a method response header parameter name and the mapped value is an integration response header value, a static value enclosed within a pair of single quotes, or a JSON expression from the integration response body. The mapping key must match the pattern of method.response.header.{name}, where name is a valid and unique header name. The mapped non-static value must match the pattern of integration.response.header.{name} or integration.response.body.{JSON-expression}, where name is a valid and unique response header name and JSON-expression is a valid JSON expression without the $ prefix.

*/ - ResponseParameters?: { [key: string]: string }; + ResponseParameters?: Record; /** *

The collection of response templates for the integration response as a string-to-string map of key-value pairs. Response templates are represented as a key/value map, with a content-type as the key and a template as the value.

*/ - ResponseTemplates?: { [key: string]: string }; + ResponseTemplates?: Record; /** *

The template selection expressions for the integration response.

@@ -789,12 +789,12 @@ export interface Route { /** *

The request models for the route. Supported only for WebSocket APIs.

*/ - RequestModels?: { [key: string]: string }; + RequestModels?: Record; /** *

The request parameters for the route. Supported only for WebSocket APIs.

*/ - RequestParameters?: { [key: string]: ParameterConstraints }; + RequestParameters?: Record; /** *

The route ID.

@@ -838,12 +838,12 @@ export interface RouteResponse { /** *

Represents the response models of a route response.

*/ - ResponseModels?: { [key: string]: string }; + ResponseModels?: Record; /** *

Represents the response parameters of a route response.

*/ - ResponseParameters?: { [key: string]: ParameterConstraints }; + ResponseParameters?: Record; /** *

Represents the identifier of a route response.

@@ -991,7 +991,7 @@ export interface Stage { /** *

Route settings for the stage, by routeKey.

*/ - RouteSettings?: { [key: string]: RouteSettings }; + RouteSettings?: Record; /** *

The name of the stage.

@@ -1001,12 +1001,12 @@ export interface Stage { /** *

A map that defines the stage variables for a stage resource. Variable names can have alphanumeric and underscore characters, and the values must match [A-Za-z0-9-._~:/?#&=,]+.

*/ - StageVariables?: { [key: string]: string }; + StageVariables?: Record; /** *

The collection of tags. Each tag element is associated with a given resource.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; } export namespace Stage { @@ -1057,7 +1057,7 @@ export interface VpcLink { /** *

Tags for the VPC link.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; /** *

The ID of the VPC link.

@@ -1212,7 +1212,7 @@ export interface CreateApiRequest { /** *

The collection of tags. Each tag element is associated with a given resource.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; /** *

This property is part of quick create. Quick create produces an API with an integration, a default catch-all route, and a default stage which is configured to automatically deploy changes. For HTTP integrations, specify a fully qualified URL. For Lambda integrations, specify a function ARN. The type of the integration will be HTTP_PROXY or AWS_PROXY, respectively. Supported only for HTTP APIs.

@@ -1303,7 +1303,7 @@ export interface CreateApiResponse { /** *

A collection of tags associated with the API.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; /** *

A version identifier for the API.

@@ -1700,7 +1700,7 @@ export interface CreateDomainNameRequest { /** *

The collection of tags associated with a domain name.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; } export namespace CreateDomainNameRequest { @@ -1736,7 +1736,7 @@ export interface CreateDomainNameResponse { /** *

The collection of tags associated with a domain name.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; } export namespace CreateDomainNameResponse { @@ -1839,17 +1839,17 @@ export interface CreateIntegrationRequest { * {name} * must be a valid and unique method request parameter name.

For HTTP API integrations with a specified integrationSubtype, request parameters are a key-value map specifying parameters that are passed to AWS_PROXY integrations. You can provide static values, or map request data, stage variables, or context variables that are evaluated at runtime. To learn more, see Working with AWS service integrations for HTTP APIs.

For HTTP API integrations without a specified integrationSubtype request parameters are a key-value map specifying how to transform HTTP requests before sending them to the backend. The key should follow the pattern <action>:<header|querystring|path>.<location> where action can be append, overwrite or remove. For values, you can provide static values, or map request data, stage variables, or context variables that are evaluated at runtime. To learn more, see Transforming API requests and responses.

*/ - RequestParameters?: { [key: string]: string }; + RequestParameters?: Record; /** *

Represents a map of Velocity templates that are applied on the request payload based on the value of the Content-Type header sent by the client. The content type value is the key in this map, and the template (as a String) is the value. Supported only for WebSocket APIs.

*/ - RequestTemplates?: { [key: string]: string }; + RequestTemplates?: Record; /** *

Supported only for HTTP APIs. You use response parameters to transform the HTTP response from a backend integration before returning the response to clients. Specify a key-value map from a selection key to response parameters. The selection key must be a valid HTTP status code within the range of 200-599. Response parameters are a key-value map. The key must match pattern <action>:<header>.<location> or overwrite.statuscode. The action can be append, overwrite or remove. The value can be a static value, or map to response data, stage variables, or context variables that are evaluated at runtime. To learn more, see Transforming API requests and responses.

*/ - ResponseParameters?: { [key: string]: { [key: string]: string } }; + ResponseParameters?: Record>; /** *

The template selection expression for the integration.

@@ -1955,17 +1955,17 @@ export interface CreateIntegrationResult { * {name} * must be a valid and unique method request parameter name.

For HTTP API integrations with a specified integrationSubtype, request parameters are a key-value map specifying parameters that are passed to AWS_PROXY integrations. You can provide static values, or map request data, stage variables, or context variables that are evaluated at runtime. To learn more, see Working with AWS service integrations for HTTP APIs.

For HTTP API itegrations, without a specified integrationSubtype request parameters are a key-value map specifying how to transform HTTP requests before sending them to backend integrations. The key should follow the pattern <action>:<header|querystring|path>.<location>. The action can be append, overwrite or remove. For values, you can provide static values, or map request data, stage variables, or context variables that are evaluated at runtime. To learn more, see Transforming API requests and responses.

*/ - RequestParameters?: { [key: string]: string }; + RequestParameters?: Record; /** *

Represents a map of Velocity templates that are applied on the request payload based on the value of the Content-Type header sent by the client. The content type value is the key in this map, and the template (as a String) is the value. Supported only for WebSocket APIs.

*/ - RequestTemplates?: { [key: string]: string }; + RequestTemplates?: Record; /** *

Supported only for HTTP APIs. You use response parameters to transform the HTTP response from a backend integration before returning the response to clients. Specify a key-value map from a selection key to response parameters. The selection key must be a valid HTTP status code within the range of 200-599. Response parameters are a key-value map. The key must match pattern <action>:<header>.<location> or overwrite.statuscode. The action can be append, overwrite or remove. The value can be a static value, or map to response data, stage variables, or context variables that are evaluated at runtime. To learn more, see Transforming API requests and responses.

*/ - ResponseParameters?: { [key: string]: { [key: string]: string } }; + ResponseParameters?: Record>; /** *

The template selection expression for the integration. Supported only for WebSocket APIs.

@@ -2019,12 +2019,12 @@ export interface CreateIntegrationResponseRequest { /** *

A key-value map specifying response parameters that are passed to the method response from the backend. The key is a method response header parameter name and the mapped value is an integration response header value, a static value enclosed within a pair of single quotes, or a JSON expression from the integration response body. The mapping key must match the pattern of method.response.header.{name}, where {name} is a valid and unique header name. The mapped non-static value must match the pattern of integration.response.header.{name} or integration.response.body.{JSON-expression}, where {name} is a valid and unique response header name and {JSON-expression} is a valid JSON expression without the $ prefix.

*/ - ResponseParameters?: { [key: string]: string }; + ResponseParameters?: Record; /** *

The collection of response templates for the integration response as a string-to-string map of key-value pairs. Response templates are represented as a key/value map, with a content-type as the key and a template as the value.

*/ - ResponseTemplates?: { [key: string]: string }; + ResponseTemplates?: Record; /** *

The template selection expression for the integration response. Supported only for WebSocket APIs.

@@ -2060,12 +2060,12 @@ export interface CreateIntegrationResponseResponse { /** *

A key-value map specifying response parameters that are passed to the method response from the backend. The key is a method response header parameter name and the mapped value is an integration response header value, a static value enclosed within a pair of single quotes, or a JSON expression from the integration response body. The mapping key must match the pattern of method.response.header.{name}, where name is a valid and unique header name. The mapped non-static value must match the pattern of integration.response.header.{name} or integration.response.body.{JSON-expression}, where name is a valid and unique response header name and JSON-expression is a valid JSON expression without the $ prefix.

*/ - ResponseParameters?: { [key: string]: string }; + ResponseParameters?: Record; /** *

The collection of response templates for the integration response as a string-to-string map of key-value pairs. Response templates are represented as a key/value map, with a content-type as the key and a template as the value.

*/ - ResponseTemplates?: { [key: string]: string }; + ResponseTemplates?: Record; /** *

The template selection expressions for the integration response.

@@ -2199,12 +2199,12 @@ export interface CreateRouteRequest { /** *

The request models for the route. Supported only for WebSocket APIs.

*/ - RequestModels?: { [key: string]: string }; + RequestModels?: Record; /** *

The request parameters for the route. Supported only for WebSocket APIs.

*/ - RequestParameters?: { [key: string]: ParameterConstraints }; + RequestParameters?: Record; /** *

The route key for the route.

@@ -2270,12 +2270,12 @@ export interface CreateRouteResult { /** *

The request models for the route. Supported only for WebSocket APIs.

*/ - RequestModels?: { [key: string]: string }; + RequestModels?: Record; /** *

The request parameters for the route. Supported only for WebSocket APIs.

*/ - RequestParameters?: { [key: string]: ParameterConstraints }; + RequestParameters?: Record; /** *

The route ID.

@@ -2324,12 +2324,12 @@ export interface CreateRouteResponseRequest { /** *

The response models for the route response.

*/ - ResponseModels?: { [key: string]: string }; + ResponseModels?: Record; /** *

The route response parameters.

*/ - ResponseParameters?: { [key: string]: ParameterConstraints }; + ResponseParameters?: Record; /** *

The route ID.

@@ -2360,12 +2360,12 @@ export interface CreateRouteResponseResponse { /** *

Represents the response models of a route response.

*/ - ResponseModels?: { [key: string]: string }; + ResponseModels?: Record; /** *

Represents the response parameters of a route response.

*/ - ResponseParameters?: { [key: string]: ParameterConstraints }; + ResponseParameters?: Record; /** *

Represents the identifier of a route response.

@@ -2429,7 +2429,7 @@ export interface CreateStageRequest { /** *

Route settings for the stage, by routeKey.

*/ - RouteSettings?: { [key: string]: RouteSettings }; + RouteSettings?: Record; /** *

The name of the stage.

@@ -2439,12 +2439,12 @@ export interface CreateStageRequest { /** *

A map that defines the stage variables for a Stage. Variable names can have alphanumeric and underscore characters, and the values must match [A-Za-z0-9-._~:/?#&=,]+.

*/ - StageVariables?: { [key: string]: string }; + StageVariables?: Record; /** *

The collection of tags. Each tag element is associated with a given resource.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; } export namespace CreateStageRequest { @@ -2510,7 +2510,7 @@ export interface CreateStageResponse { /** *

Route settings for the stage, by routeKey.

*/ - RouteSettings?: { [key: string]: RouteSettings }; + RouteSettings?: Record; /** *

The name of the stage.

@@ -2520,12 +2520,12 @@ export interface CreateStageResponse { /** *

A map that defines the stage variables for a stage resource. Variable names can have alphanumeric and underscore characters, and the values must match [A-Za-z0-9-._~:/?#&=,]+.

*/ - StageVariables?: { [key: string]: string }; + StageVariables?: Record; /** *

The collection of tags. Each tag element is associated with a given resource.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; } export namespace CreateStageResponse { @@ -2559,7 +2559,7 @@ export interface CreateVpcLinkRequest { /** *

A list of tags.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; } export namespace CreateVpcLinkRequest { @@ -2595,7 +2595,7 @@ export interface CreateVpcLinkResponse { /** *

Tags for the VPC link.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; /** *

The ID of the VPC link.

@@ -3116,7 +3116,7 @@ export interface GetApiResponse { /** *

A collection of tags associated with the API.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; /** *

A version identifier for the API.

@@ -3563,7 +3563,7 @@ export interface GetDomainNameResponse { /** *

The collection of tags associated with a domain name.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; } export namespace GetDomainNameResponse { @@ -3717,17 +3717,17 @@ export interface GetIntegrationResult { * {name} * must be a valid and unique method request parameter name.

For HTTP API integrations with a specified integrationSubtype, request parameters are a key-value map specifying parameters that are passed to AWS_PROXY integrations. You can provide static values, or map request data, stage variables, or context variables that are evaluated at runtime. To learn more, see Working with AWS service integrations for HTTP APIs.

For HTTP API itegrations, without a specified integrationSubtype request parameters are a key-value map specifying how to transform HTTP requests before sending them to backend integrations. The key should follow the pattern <action>:<header|querystring|path>.<location>. The action can be append, overwrite or remove. For values, you can provide static values, or map request data, stage variables, or context variables that are evaluated at runtime. To learn more, see Transforming API requests and responses.

*/ - RequestParameters?: { [key: string]: string }; + RequestParameters?: Record; /** *

Represents a map of Velocity templates that are applied on the request payload based on the value of the Content-Type header sent by the client. The content type value is the key in this map, and the template (as a String) is the value. Supported only for WebSocket APIs.

*/ - RequestTemplates?: { [key: string]: string }; + RequestTemplates?: Record; /** *

Supported only for HTTP APIs. You use response parameters to transform the HTTP response from a backend integration before returning the response to clients. Specify a key-value map from a selection key to response parameters. The selection key must be a valid HTTP status code within the range of 200-599. Response parameters are a key-value map. The key must match pattern <action>:<header>.<location> or overwrite.statuscode. The action can be append, overwrite or remove. The value can be a static value, or map to response data, stage variables, or context variables that are evaluated at runtime. To learn more, see Transforming API requests and responses.

*/ - ResponseParameters?: { [key: string]: { [key: string]: string } }; + ResponseParameters?: Record>; /** *

The template selection expression for the integration. Supported only for WebSocket APIs.

@@ -3799,12 +3799,12 @@ export interface GetIntegrationResponseResponse { /** *

A key-value map specifying response parameters that are passed to the method response from the backend. The key is a method response header parameter name and the mapped value is an integration response header value, a static value enclosed within a pair of single quotes, or a JSON expression from the integration response body. The mapping key must match the pattern of method.response.header.{name}, where name is a valid and unique header name. The mapped non-static value must match the pattern of integration.response.header.{name} or integration.response.body.{JSON-expression}, where name is a valid and unique response header name and JSON-expression is a valid JSON expression without the $ prefix.

*/ - ResponseParameters?: { [key: string]: string }; + ResponseParameters?: Record; /** *

The collection of response templates for the integration response as a string-to-string map of key-value pairs. Response templates are represented as a key/value map, with a content-type as the key and a template as the value.

*/ - ResponseTemplates?: { [key: string]: string }; + ResponseTemplates?: Record; /** *

The template selection expressions for the integration response.

@@ -4121,12 +4121,12 @@ export interface GetRouteResult { /** *

The request models for the route. Supported only for WebSocket APIs.

*/ - RequestModels?: { [key: string]: string }; + RequestModels?: Record; /** *

The request parameters for the route. Supported only for WebSocket APIs.

*/ - RequestParameters?: { [key: string]: ParameterConstraints }; + RequestParameters?: Record; /** *

The route ID.

@@ -4193,12 +4193,12 @@ export interface GetRouteResponseResponse { /** *

Represents the response models of a route response.

*/ - ResponseModels?: { [key: string]: string }; + ResponseModels?: Record; /** *

Represents the response parameters of a route response.

*/ - ResponseParameters?: { [key: string]: ParameterConstraints }; + ResponseParameters?: Record; /** *

Represents the identifier of a route response.

@@ -4394,7 +4394,7 @@ export interface GetStageResponse { /** *

Route settings for the stage, by routeKey.

*/ - RouteSettings?: { [key: string]: RouteSettings }; + RouteSettings?: Record; /** *

The name of the stage.

@@ -4404,12 +4404,12 @@ export interface GetStageResponse { /** *

A map that defines the stage variables for a stage resource. Variable names can have alphanumeric and underscore characters, and the values must match [A-Za-z0-9-._~:/?#&=,]+.

*/ - StageVariables?: { [key: string]: string }; + StageVariables?: Record; /** *

The collection of tags. Each tag element is associated with a given resource.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; } export namespace GetStageResponse { @@ -4488,7 +4488,7 @@ export interface GetTagsResponse { /** *

Represents a collection of tags associated with the resource.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; } export namespace GetTagsResponse { @@ -4540,7 +4540,7 @@ export interface GetVpcLinkResponse { /** *

Tags for the VPC link.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; /** *

The ID of the VPC link.

@@ -4712,7 +4712,7 @@ export interface ImportApiResponse { /** *

A collection of tags associated with the API.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; /** *

A version identifier for the API.

@@ -4837,7 +4837,7 @@ export interface ReimportApiResponse { /** *

A collection of tags associated with the API.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; /** *

A version identifier for the API.

@@ -4892,7 +4892,7 @@ export interface TagResourceRequest { /** *

The collection of tags. Each tag element is associated with a given resource.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; } export namespace TagResourceRequest { @@ -5079,7 +5079,7 @@ export interface UpdateApiResponse { /** *

A collection of tags associated with the API.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; /** *

A version identifier for the API.

@@ -5436,7 +5436,7 @@ export interface UpdateDomainNameResponse { /** *

The collection of tags associated with a domain name.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; } export namespace UpdateDomainNameResponse { @@ -5525,17 +5525,17 @@ export interface UpdateIntegrationRequest { * {name} * must be a valid and unique method request parameter name.

For HTTP API integrations with a specified integrationSubtype, request parameters are a key-value map specifying parameters that are passed to AWS_PROXY integrations. You can provide static values, or map request data, stage variables, or context variables that are evaluated at runtime. To learn more, see Working with AWS service integrations for HTTP APIs.

For HTTP API integrations, without a specified integrationSubtype request parameters are a key-value map specifying how to transform HTTP requests before sending them to the backend. The key should follow the pattern <action>:<header|querystring|path>.<location> where action can be append, overwrite or remove. For values, you can provide static values, or map request data, stage variables, or context variables that are evaluated at runtime. To learn more, see Transforming API requests and responses.

*/ - RequestParameters?: { [key: string]: string }; + RequestParameters?: Record; /** *

Represents a map of Velocity templates that are applied on the request payload based on the value of the Content-Type header sent by the client. The content type value is the key in this map, and the template (as a String) is the value. Supported only for WebSocket APIs.

*/ - RequestTemplates?: { [key: string]: string }; + RequestTemplates?: Record; /** *

Supported only for HTTP APIs. You use response parameters to transform the HTTP response from a backend integration before returning the response to clients. Specify a key-value map from a selection key to response parameters. The selection key must be a valid HTTP status code within the range of 200-599. Response parameters are a key-value map. The key must match pattern <action>:<header>.<location> or overwrite.statuscode. The action can be append, overwrite or remove. The value can be a static value, or map to response data, stage variables, or context variables that are evaluated at runtime. To learn more, see Transforming API requests and responses.

*/ - ResponseParameters?: { [key: string]: { [key: string]: string } }; + ResponseParameters?: Record>; /** *

The template selection expression for the integration.

@@ -5641,17 +5641,17 @@ export interface UpdateIntegrationResult { * {name} * must be a valid and unique method request parameter name.

For HTTP API integrations with a specified integrationSubtype, request parameters are a key-value map specifying parameters that are passed to AWS_PROXY integrations. You can provide static values, or map request data, stage variables, or context variables that are evaluated at runtime. To learn more, see Working with AWS service integrations for HTTP APIs.

For HTTP API itegrations, without a specified integrationSubtype request parameters are a key-value map specifying how to transform HTTP requests before sending them to backend integrations. The key should follow the pattern <action>:<header|querystring|path>.<location>. The action can be append, overwrite or remove. For values, you can provide static values, or map request data, stage variables, or context variables that are evaluated at runtime. To learn more, see Transforming API requests and responses.

*/ - RequestParameters?: { [key: string]: string }; + RequestParameters?: Record; /** *

Represents a map of Velocity templates that are applied on the request payload based on the value of the Content-Type header sent by the client. The content type value is the key in this map, and the template (as a String) is the value. Supported only for WebSocket APIs.

*/ - RequestTemplates?: { [key: string]: string }; + RequestTemplates?: Record; /** *

Supported only for HTTP APIs. You use response parameters to transform the HTTP response from a backend integration before returning the response to clients. Specify a key-value map from a selection key to response parameters. The selection key must be a valid HTTP status code within the range of 200-599. Response parameters are a key-value map. The key must match pattern <action>:<header>.<location> or overwrite.statuscode. The action can be append, overwrite or remove. The value can be a static value, or map to response data, stage variables, or context variables that are evaluated at runtime. To learn more, see Transforming API requests and responses.

*/ - ResponseParameters?: { [key: string]: { [key: string]: string } }; + ResponseParameters?: Record>; /** *

The template selection expression for the integration. Supported only for WebSocket APIs.

@@ -5717,12 +5717,12 @@ export interface UpdateIntegrationResponseRequest { * {JSON-expression} * is a valid JSON expression without the $ prefix.

*/ - ResponseParameters?: { [key: string]: string }; + ResponseParameters?: Record; /** *

The collection of response templates for the integration response as a string-to-string map of key-value pairs. Response templates are represented as a key/value map, with a content-type as the key and a template as the value.

*/ - ResponseTemplates?: { [key: string]: string }; + ResponseTemplates?: Record; /** *

The template selection expression for the integration response. Supported only for WebSocket APIs.

@@ -5758,12 +5758,12 @@ export interface UpdateIntegrationResponseResponse { /** *

A key-value map specifying response parameters that are passed to the method response from the backend. The key is a method response header parameter name and the mapped value is an integration response header value, a static value enclosed within a pair of single quotes, or a JSON expression from the integration response body. The mapping key must match the pattern of method.response.header.{name}, where name is a valid and unique header name. The mapped non-static value must match the pattern of integration.response.header.{name} or integration.response.body.{JSON-expression}, where name is a valid and unique response header name and JSON-expression is a valid JSON expression without the $ prefix.

*/ - ResponseParameters?: { [key: string]: string }; + ResponseParameters?: Record; /** *

The collection of response templates for the integration response as a string-to-string map of key-value pairs. Response templates are represented as a key/value map, with a content-type as the key and a template as the value.

*/ - ResponseTemplates?: { [key: string]: string }; + ResponseTemplates?: Record; /** *

The template selection expressions for the integration response.

@@ -5902,12 +5902,12 @@ export interface UpdateRouteRequest { /** *

The request models for the route. Supported only for WebSocket APIs.

*/ - RequestModels?: { [key: string]: string }; + RequestModels?: Record; /** *

The request parameters for the route. Supported only for WebSocket APIs.

*/ - RequestParameters?: { [key: string]: ParameterConstraints }; + RequestParameters?: Record; /** *

The route ID.

@@ -5978,12 +5978,12 @@ export interface UpdateRouteResult { /** *

The request models for the route. Supported only for WebSocket APIs.

*/ - RequestModels?: { [key: string]: string }; + RequestModels?: Record; /** *

The request parameters for the route. Supported only for WebSocket APIs.

*/ - RequestParameters?: { [key: string]: ParameterConstraints }; + RequestParameters?: Record; /** *

The route ID.

@@ -6032,12 +6032,12 @@ export interface UpdateRouteResponseRequest { /** *

The response models for the route response.

*/ - ResponseModels?: { [key: string]: string }; + ResponseModels?: Record; /** *

The route response parameters.

*/ - ResponseParameters?: { [key: string]: ParameterConstraints }; + ResponseParameters?: Record; /** *

The route ID.

@@ -6073,12 +6073,12 @@ export interface UpdateRouteResponseResponse { /** *

Represents the response models of a route response.

*/ - ResponseModels?: { [key: string]: string }; + ResponseModels?: Record; /** *

Represents the response parameters of a route response.

*/ - ResponseParameters?: { [key: string]: ParameterConstraints }; + ResponseParameters?: Record; /** *

Represents the identifier of a route response.

@@ -6142,7 +6142,7 @@ export interface UpdateStageRequest { /** *

Route settings for the stage.

*/ - RouteSettings?: { [key: string]: RouteSettings }; + RouteSettings?: Record; /** *

The stage name. Stage names can contain only alphanumeric characters, hyphens, and underscores, or be $default. Maximum length is 128 characters.

@@ -6152,7 +6152,7 @@ export interface UpdateStageRequest { /** *

A map that defines the stage variables for a Stage. Variable names can have alphanumeric and underscore characters, and the values must match [A-Za-z0-9-._~:/?#&=,]+.

*/ - StageVariables?: { [key: string]: string }; + StageVariables?: Record; } export namespace UpdateStageRequest { @@ -6218,7 +6218,7 @@ export interface UpdateStageResponse { /** *

Route settings for the stage, by routeKey.

*/ - RouteSettings?: { [key: string]: RouteSettings }; + RouteSettings?: Record; /** *

The name of the stage.

@@ -6228,12 +6228,12 @@ export interface UpdateStageResponse { /** *

A map that defines the stage variables for a stage resource. Variable names can have alphanumeric and underscore characters, and the values must match [A-Za-z0-9-._~:/?#&=,]+.

*/ - StageVariables?: { [key: string]: string }; + StageVariables?: Record; /** *

The collection of tags. Each tag element is associated with a given resource.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; } export namespace UpdateStageResponse { @@ -6293,7 +6293,7 @@ export interface UpdateVpcLinkResponse { /** *

Tags for the VPC link.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; /** *

The ID of the VPC link.

diff --git a/clients/client-apigatewayv2/src/protocols/Aws_restJson1.ts b/clients/client-apigatewayv2/src/protocols/Aws_restJson1.ts index 0db35eca8326..3296f1986d8b 100644 --- a/clients/client-apigatewayv2/src/protocols/Aws_restJson1.ts +++ b/clients/client-apigatewayv2/src/protocols/Aws_restJson1.ts @@ -8324,10 +8324,7 @@ const serializeAws_restJson1IdentitySourceList = (input: string[], context: __Se }); }; -const serializeAws_restJson1IntegrationParameters = ( - input: { [key: string]: string }, - context: __SerdeContext -): any => { +const serializeAws_restJson1IntegrationParameters = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -8365,7 +8362,7 @@ const serializeAws_restJson1ParameterConstraints = (input: ParameterConstraints, }; const serializeAws_restJson1ResponseParameters = ( - input: { [key: string]: { [key: string]: string } }, + input: Record>, context: __SerdeContext ): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { @@ -8379,7 +8376,7 @@ const serializeAws_restJson1ResponseParameters = ( }, {}); }; -const serializeAws_restJson1RouteModels = (input: { [key: string]: string }, context: __SerdeContext): any => { +const serializeAws_restJson1RouteModels = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -8392,7 +8389,7 @@ const serializeAws_restJson1RouteModels = (input: { [key: string]: string }, con }; const serializeAws_restJson1RouteParameters = ( - input: { [key: string]: ParameterConstraints }, + input: Record, context: __SerdeContext ): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { @@ -8420,10 +8417,7 @@ const serializeAws_restJson1RouteSettings = (input: RouteSettings, context: __Se }; }; -const serializeAws_restJson1RouteSettingsMap = ( - input: { [key: string]: RouteSettings }, - context: __SerdeContext -): any => { +const serializeAws_restJson1RouteSettingsMap = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -8446,7 +8440,7 @@ const serializeAws_restJson1SecurityGroupIdList = (input: string[], context: __S }); }; -const serializeAws_restJson1StageVariablesMap = (input: { [key: string]: string }, context: __SerdeContext): any => { +const serializeAws_restJson1StageVariablesMap = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -8469,7 +8463,7 @@ const serializeAws_restJson1SubnetIdList = (input: string[], context: __SerdeCon }); }; -const serializeAws_restJson1Tags = (input: { [key: string]: string }, context: __SerdeContext): any => { +const serializeAws_restJson1Tags = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -8481,7 +8475,7 @@ const serializeAws_restJson1Tags = (input: { [key: string]: string }, context: _ }, {}); }; -const serializeAws_restJson1TemplateMap = (input: { [key: string]: string }, context: __SerdeContext): any => { +const serializeAws_restJson1TemplateMap = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -8925,8 +8919,8 @@ const deserializeAws_restJson1Integration = (output: any, context: __SerdeContex const deserializeAws_restJson1IntegrationParameters = ( output: any, context: __SerdeContext -): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -8997,19 +8991,16 @@ const deserializeAws_restJson1ParameterConstraints = (output: any, context: __Se const deserializeAws_restJson1ResponseParameters = ( output: any, context: __SerdeContext -): { [key: string]: { [key: string]: string } } => { - return Object.entries(output).reduce( - (acc: { [key: string]: { [key: string]: string } }, [key, value]: [string, any]) => { - if (value === null) { - return acc; - } - return { - ...acc, - [key]: deserializeAws_restJson1IntegrationParameters(value, context), - }; - }, - {} - ); +): Record> => { + return Object.entries(output).reduce((acc: Record>, [key, value]: [string, any]) => { + if (value === null) { + return acc; + } + return { + ...acc, + [key]: deserializeAws_restJson1IntegrationParameters(value, context), + }; + }, {}); }; const deserializeAws_restJson1Route = (output: any, context: __SerdeContext): Route => { @@ -9039,8 +9030,8 @@ const deserializeAws_restJson1Route = (output: any, context: __SerdeContext): Ro } as any; }; -const deserializeAws_restJson1RouteModels = (output: any, context: __SerdeContext): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +const deserializeAws_restJson1RouteModels = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -9054,8 +9045,8 @@ const deserializeAws_restJson1RouteModels = (output: any, context: __SerdeContex const deserializeAws_restJson1RouteParameters = ( output: any, context: __SerdeContext -): { [key: string]: ParameterConstraints } => { - return Object.entries(output).reduce((acc: { [key: string]: ParameterConstraints }, [key, value]: [string, any]) => { +): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -9095,8 +9086,8 @@ const deserializeAws_restJson1RouteSettings = (output: any, context: __SerdeCont const deserializeAws_restJson1RouteSettingsMap = ( output: any, context: __SerdeContext -): { [key: string]: RouteSettings } => { - return Object.entries(output).reduce((acc: { [key: string]: RouteSettings }, [key, value]: [string, any]) => { +): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -9159,8 +9150,8 @@ const deserializeAws_restJson1Stage = (output: any, context: __SerdeContext): St } as any; }; -const deserializeAws_restJson1StageVariablesMap = (output: any, context: __SerdeContext): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +const deserializeAws_restJson1StageVariablesMap = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -9183,8 +9174,8 @@ const deserializeAws_restJson1SubnetIdList = (output: any, context: __SerdeConte return retVal; }; -const deserializeAws_restJson1Tags = (output: any, context: __SerdeContext): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +const deserializeAws_restJson1Tags = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -9195,8 +9186,8 @@ const deserializeAws_restJson1Tags = (output: any, context: __SerdeContext): { [ }, {}); }; -const deserializeAws_restJson1TemplateMap = (output: any, context: __SerdeContext): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +const deserializeAws_restJson1TemplateMap = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } diff --git a/clients/client-app-mesh/src/protocols/Aws_restJson1.ts b/clients/client-app-mesh/src/protocols/Aws_restJson1.ts index b9ac5c8dfc72..6364acbfdb69 100644 --- a/clients/client-app-mesh/src/protocols/Aws_restJson1.ts +++ b/clients/client-app-mesh/src/protocols/Aws_restJson1.ts @@ -1898,7 +1898,7 @@ export const deserializeAws_restJson1CreateGatewayRouteCommand = async ( $metadata: deserializeMetadata(output), gatewayRoute: undefined, }; - const data: { [key: string]: any } | undefined = __expectObject(await parseBody(output.body, context)); + const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.gatewayRoute = deserializeAws_restJson1GatewayRouteData(data, context); return Promise.resolve(contents); }; @@ -1961,7 +1961,7 @@ export const deserializeAws_restJson1CreateMeshCommand = async ( $metadata: deserializeMetadata(output), mesh: undefined, }; - const data: { [key: string]: any } | undefined = __expectObject(await parseBody(output.body, context)); + const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.mesh = deserializeAws_restJson1MeshData(data, context); return Promise.resolve(contents); }; @@ -2024,7 +2024,7 @@ export const deserializeAws_restJson1CreateRouteCommand = async ( $metadata: deserializeMetadata(output), route: undefined, }; - const data: { [key: string]: any } | undefined = __expectObject(await parseBody(output.body, context)); + const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.route = deserializeAws_restJson1RouteData(data, context); return Promise.resolve(contents); }; @@ -2087,7 +2087,7 @@ export const deserializeAws_restJson1CreateVirtualGatewayCommand = async ( $metadata: deserializeMetadata(output), virtualGateway: undefined, }; - const data: { [key: string]: any } | undefined = __expectObject(await parseBody(output.body, context)); + const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.virtualGateway = deserializeAws_restJson1VirtualGatewayData(data, context); return Promise.resolve(contents); }; @@ -2150,7 +2150,7 @@ export const deserializeAws_restJson1CreateVirtualNodeCommand = async ( $metadata: deserializeMetadata(output), virtualNode: undefined, }; - const data: { [key: string]: any } | undefined = __expectObject(await parseBody(output.body, context)); + const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.virtualNode = deserializeAws_restJson1VirtualNodeData(data, context); return Promise.resolve(contents); }; @@ -2213,7 +2213,7 @@ export const deserializeAws_restJson1CreateVirtualRouterCommand = async ( $metadata: deserializeMetadata(output), virtualRouter: undefined, }; - const data: { [key: string]: any } | undefined = __expectObject(await parseBody(output.body, context)); + const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.virtualRouter = deserializeAws_restJson1VirtualRouterData(data, context); return Promise.resolve(contents); }; @@ -2276,7 +2276,7 @@ export const deserializeAws_restJson1CreateVirtualServiceCommand = async ( $metadata: deserializeMetadata(output), virtualService: undefined, }; - const data: { [key: string]: any } | undefined = __expectObject(await parseBody(output.body, context)); + const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.virtualService = deserializeAws_restJson1VirtualServiceData(data, context); return Promise.resolve(contents); }; @@ -2339,7 +2339,7 @@ export const deserializeAws_restJson1DeleteGatewayRouteCommand = async ( $metadata: deserializeMetadata(output), gatewayRoute: undefined, }; - const data: { [key: string]: any } | undefined = __expectObject(await parseBody(output.body, context)); + const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.gatewayRoute = deserializeAws_restJson1GatewayRouteData(data, context); return Promise.resolve(contents); }; @@ -2399,7 +2399,7 @@ export const deserializeAws_restJson1DeleteMeshCommand = async ( $metadata: deserializeMetadata(output), mesh: undefined, }; - const data: { [key: string]: any } | undefined = __expectObject(await parseBody(output.body, context)); + const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.mesh = deserializeAws_restJson1MeshData(data, context); return Promise.resolve(contents); }; @@ -2459,7 +2459,7 @@ export const deserializeAws_restJson1DeleteRouteCommand = async ( $metadata: deserializeMetadata(output), route: undefined, }; - const data: { [key: string]: any } | undefined = __expectObject(await parseBody(output.body, context)); + const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.route = deserializeAws_restJson1RouteData(data, context); return Promise.resolve(contents); }; @@ -2519,7 +2519,7 @@ export const deserializeAws_restJson1DeleteVirtualGatewayCommand = async ( $metadata: deserializeMetadata(output), virtualGateway: undefined, }; - const data: { [key: string]: any } | undefined = __expectObject(await parseBody(output.body, context)); + const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.virtualGateway = deserializeAws_restJson1VirtualGatewayData(data, context); return Promise.resolve(contents); }; @@ -2579,7 +2579,7 @@ export const deserializeAws_restJson1DeleteVirtualNodeCommand = async ( $metadata: deserializeMetadata(output), virtualNode: undefined, }; - const data: { [key: string]: any } | undefined = __expectObject(await parseBody(output.body, context)); + const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.virtualNode = deserializeAws_restJson1VirtualNodeData(data, context); return Promise.resolve(contents); }; @@ -2639,7 +2639,7 @@ export const deserializeAws_restJson1DeleteVirtualRouterCommand = async ( $metadata: deserializeMetadata(output), virtualRouter: undefined, }; - const data: { [key: string]: any } | undefined = __expectObject(await parseBody(output.body, context)); + const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.virtualRouter = deserializeAws_restJson1VirtualRouterData(data, context); return Promise.resolve(contents); }; @@ -2699,7 +2699,7 @@ export const deserializeAws_restJson1DeleteVirtualServiceCommand = async ( $metadata: deserializeMetadata(output), virtualService: undefined, }; - const data: { [key: string]: any } | undefined = __expectObject(await parseBody(output.body, context)); + const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.virtualService = deserializeAws_restJson1VirtualServiceData(data, context); return Promise.resolve(contents); }; @@ -2759,7 +2759,7 @@ export const deserializeAws_restJson1DescribeGatewayRouteCommand = async ( $metadata: deserializeMetadata(output), gatewayRoute: undefined, }; - const data: { [key: string]: any } | undefined = __expectObject(await parseBody(output.body, context)); + const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.gatewayRoute = deserializeAws_restJson1GatewayRouteData(data, context); return Promise.resolve(contents); }; @@ -2816,7 +2816,7 @@ export const deserializeAws_restJson1DescribeMeshCommand = async ( $metadata: deserializeMetadata(output), mesh: undefined, }; - const data: { [key: string]: any } | undefined = __expectObject(await parseBody(output.body, context)); + const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.mesh = deserializeAws_restJson1MeshData(data, context); return Promise.resolve(contents); }; @@ -2873,7 +2873,7 @@ export const deserializeAws_restJson1DescribeRouteCommand = async ( $metadata: deserializeMetadata(output), route: undefined, }; - const data: { [key: string]: any } | undefined = __expectObject(await parseBody(output.body, context)); + const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.route = deserializeAws_restJson1RouteData(data, context); return Promise.resolve(contents); }; @@ -2930,7 +2930,7 @@ export const deserializeAws_restJson1DescribeVirtualGatewayCommand = async ( $metadata: deserializeMetadata(output), virtualGateway: undefined, }; - const data: { [key: string]: any } | undefined = __expectObject(await parseBody(output.body, context)); + const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.virtualGateway = deserializeAws_restJson1VirtualGatewayData(data, context); return Promise.resolve(contents); }; @@ -2987,7 +2987,7 @@ export const deserializeAws_restJson1DescribeVirtualNodeCommand = async ( $metadata: deserializeMetadata(output), virtualNode: undefined, }; - const data: { [key: string]: any } | undefined = __expectObject(await parseBody(output.body, context)); + const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.virtualNode = deserializeAws_restJson1VirtualNodeData(data, context); return Promise.resolve(contents); }; @@ -3044,7 +3044,7 @@ export const deserializeAws_restJson1DescribeVirtualRouterCommand = async ( $metadata: deserializeMetadata(output), virtualRouter: undefined, }; - const data: { [key: string]: any } | undefined = __expectObject(await parseBody(output.body, context)); + const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.virtualRouter = deserializeAws_restJson1VirtualRouterData(data, context); return Promise.resolve(contents); }; @@ -3101,7 +3101,7 @@ export const deserializeAws_restJson1DescribeVirtualServiceCommand = async ( $metadata: deserializeMetadata(output), virtualService: undefined, }; - const data: { [key: string]: any } | undefined = __expectObject(await parseBody(output.body, context)); + const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.virtualService = deserializeAws_restJson1VirtualServiceData(data, context); return Promise.resolve(contents); }; @@ -3775,7 +3775,7 @@ export const deserializeAws_restJson1UpdateGatewayRouteCommand = async ( $metadata: deserializeMetadata(output), gatewayRoute: undefined, }; - const data: { [key: string]: any } | undefined = __expectObject(await parseBody(output.body, context)); + const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.gatewayRoute = deserializeAws_restJson1GatewayRouteData(data, context); return Promise.resolve(contents); }; @@ -3838,7 +3838,7 @@ export const deserializeAws_restJson1UpdateMeshCommand = async ( $metadata: deserializeMetadata(output), mesh: undefined, }; - const data: { [key: string]: any } | undefined = __expectObject(await parseBody(output.body, context)); + const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.mesh = deserializeAws_restJson1MeshData(data, context); return Promise.resolve(contents); }; @@ -3898,7 +3898,7 @@ export const deserializeAws_restJson1UpdateRouteCommand = async ( $metadata: deserializeMetadata(output), route: undefined, }; - const data: { [key: string]: any } | undefined = __expectObject(await parseBody(output.body, context)); + const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.route = deserializeAws_restJson1RouteData(data, context); return Promise.resolve(contents); }; @@ -3961,7 +3961,7 @@ export const deserializeAws_restJson1UpdateVirtualGatewayCommand = async ( $metadata: deserializeMetadata(output), virtualGateway: undefined, }; - const data: { [key: string]: any } | undefined = __expectObject(await parseBody(output.body, context)); + const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.virtualGateway = deserializeAws_restJson1VirtualGatewayData(data, context); return Promise.resolve(contents); }; @@ -4024,7 +4024,7 @@ export const deserializeAws_restJson1UpdateVirtualNodeCommand = async ( $metadata: deserializeMetadata(output), virtualNode: undefined, }; - const data: { [key: string]: any } | undefined = __expectObject(await parseBody(output.body, context)); + const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.virtualNode = deserializeAws_restJson1VirtualNodeData(data, context); return Promise.resolve(contents); }; @@ -4087,7 +4087,7 @@ export const deserializeAws_restJson1UpdateVirtualRouterCommand = async ( $metadata: deserializeMetadata(output), virtualRouter: undefined, }; - const data: { [key: string]: any } | undefined = __expectObject(await parseBody(output.body, context)); + const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.virtualRouter = deserializeAws_restJson1VirtualRouterData(data, context); return Promise.resolve(contents); }; @@ -4150,7 +4150,7 @@ export const deserializeAws_restJson1UpdateVirtualServiceCommand = async ( $metadata: deserializeMetadata(output), virtualService: undefined, }; - const data: { [key: string]: any } | undefined = __expectObject(await parseBody(output.body, context)); + const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.virtualService = deserializeAws_restJson1VirtualServiceData(data, context); return Promise.resolve(contents); }; diff --git a/clients/client-appconfig/src/models/models_0.ts b/clients/client-appconfig/src/models/models_0.ts index 28c704a35392..f569b0b1f346 100644 --- a/clients/client-appconfig/src/models/models_0.ts +++ b/clients/client-appconfig/src/models/models_0.ts @@ -160,7 +160,7 @@ export interface CreateApplicationRequest { * resources. Each tag consists of a key and an optional value, both of which you * define.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; } export namespace CreateApplicationRequest { @@ -345,7 +345,7 @@ export interface CreateConfigurationProfileRequest { * AppConfig resources. Each tag consists of a key and an optional value, both of which you * define.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; /** *

The type of configurations contained in the profile. AppConfig supports feature @@ -478,7 +478,7 @@ export interface CreateDeploymentStrategyRequest { * AppConfig resources. Each tag consists of a key and an optional value, both of which you * define.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; } export namespace CreateDeploymentStrategyRequest { @@ -593,7 +593,7 @@ export interface CreateEnvironmentRequest { * resources. Each tag consists of a key and an optional value, both of which you * define.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; } export namespace CreateEnvironmentRequest { @@ -1801,7 +1801,7 @@ export interface ResourceTags { * AppConfig resources. Each tag consists of a key and an optional value, both of which you * define.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; } export namespace ResourceTags { @@ -1849,7 +1849,7 @@ export interface StartDeploymentRequest { * resources. Each tag consists of a key and an optional value, both of which you * define.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; } export namespace StartDeploymentRequest { @@ -1898,7 +1898,7 @@ export interface TagResourceRequest { * up to 128 characters and must not start with aws:. The tag value can be up to * 256 characters.

*/ - Tags: { [key: string]: string } | undefined; + Tags: Record | undefined; } export namespace TagResourceRequest { diff --git a/clients/client-appconfig/src/protocols/Aws_restJson1.ts b/clients/client-appconfig/src/protocols/Aws_restJson1.ts index d2b079e6d913..01d2e0e737e0 100644 --- a/clients/client-appconfig/src/protocols/Aws_restJson1.ts +++ b/clients/client-appconfig/src/protocols/Aws_restJson1.ts @@ -3679,7 +3679,7 @@ const serializeAws_restJson1MonitorList = (input: Monitor[], context: __SerdeCon }); }; -const serializeAws_restJson1TagMap = (input: { [key: string]: string }, context: __SerdeContext): any => { +const serializeAws_restJson1TagMap = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -3956,8 +3956,8 @@ const deserializeAws_restJson1MonitorList = (output: any, context: __SerdeContex return retVal; }; -const deserializeAws_restJson1TagMap = (output: any, context: __SerdeContext): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +const deserializeAws_restJson1TagMap = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } diff --git a/clients/client-appconfigdata/src/models/models_0.ts b/clients/client-appconfigdata/src/models/models_0.ts index 30fbceff9a58..78b180196fd8 100644 --- a/clients/client-appconfigdata/src/models/models_0.ts +++ b/clients/client-appconfigdata/src/models/models_0.ts @@ -48,7 +48,7 @@ export namespace BadRequestDetails { *

One or more specified parameters are not valid for the call.

*/ export interface InvalidParametersMember { - InvalidParameters: { [key: string]: InvalidParameterDetail }; + InvalidParameters: Record; $unknown?: never; } @@ -58,7 +58,7 @@ export namespace BadRequestDetails { } export interface Visitor { - InvalidParameters: (value: { [key: string]: InvalidParameterDetail }) => T; + InvalidParameters: (value: Record) => T; _: (name: string, value: any) => T; } @@ -184,7 +184,7 @@ export class ResourceNotFoundException extends __BaseException { /** *

A map indicating which parameters in the request reference the resource that was not found.

*/ - ReferencedBy?: { [key: string]: string }; + ReferencedBy?: Record; /** * @internal */ diff --git a/clients/client-appconfigdata/src/protocols/Aws_restJson1.ts b/clients/client-appconfigdata/src/protocols/Aws_restJson1.ts index a312a383b09c..602a7eb35cf7 100644 --- a/clients/client-appconfigdata/src/protocols/Aws_restJson1.ts +++ b/clients/client-appconfigdata/src/protocols/Aws_restJson1.ts @@ -304,23 +304,20 @@ const deserializeAws_restJson1InvalidParameterDetail = ( const deserializeAws_restJson1InvalidParameterMap = ( output: any, context: __SerdeContext -): { [key: string]: InvalidParameterDetail } => { - return Object.entries(output).reduce( - (acc: { [key: string]: InvalidParameterDetail }, [key, value]: [string, any]) => { - if (value === null) { - return acc; - } - return { - ...acc, - [key]: deserializeAws_restJson1InvalidParameterDetail(value, context), - }; - }, - {} - ); +): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { + if (value === null) { + return acc; + } + return { + ...acc, + [key]: deserializeAws_restJson1InvalidParameterDetail(value, context), + }; + }, {}); }; -const deserializeAws_restJson1StringMap = (output: any, context: __SerdeContext): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +const deserializeAws_restJson1StringMap = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } diff --git a/clients/client-appflow/src/models/models_0.ts b/clients/client-appflow/src/models/models_0.ts index 7e2820100b3c..405715c90547 100644 --- a/clients/client-appflow/src/models/models_0.ts +++ b/clients/client-appflow/src/models/models_0.ts @@ -1548,7 +1548,7 @@ export interface ConnectorEntityField { /** *

A map that has specific properties related to the ConnectorEntityField.

*/ - customProperties?: { [key: string]: string }; + customProperties?: Record; } export namespace ConnectorEntityField { @@ -1970,7 +1970,7 @@ export interface OAuth2Properties { * provide any additional details that the connector requires to authenticate your * request.

*/ - tokenUrlCustomProperties?: { [key: string]: string }; + tokenUrlCustomProperties?: Record; } export namespace OAuth2Properties { @@ -1989,7 +1989,7 @@ export interface CustomConnectorProfileProperties { /** *

A map of properties that are required to create a profile for the custom connector.

*/ - profileProperties?: { [key: string]: string }; + profileProperties?: Record; /** *

The OAuth 2.0 properties required for OAuth 2.0 authentication.

@@ -2633,7 +2633,7 @@ export interface CustomAuthCredentials { /** *

A map that holds custom authentication credentials.

*/ - credentialsMap?: { [key: string]: string }; + credentialsMap?: Record; } export namespace CustomAuthCredentials { @@ -3619,7 +3619,7 @@ export interface CustomConnectorDestinationProperties { *

The custom properties that are specific to the connector when it's used as a destination * in the flow.

*/ - customProperties?: { [key: string]: string }; + customProperties?: Record; } export namespace CustomConnectorDestinationProperties { @@ -4334,7 +4334,7 @@ export interface CustomConnectorSourceProperties { /** *

Custom properties that are required to use the custom connector as a source.

*/ - customProperties?: { [key: string]: string }; + customProperties?: Record; } export namespace CustomConnectorSourceProperties { @@ -4880,7 +4880,7 @@ export interface Task { *

A map used to store task-related information. The execution service looks for particular * information based on the TaskType.

*/ - taskProperties?: { [key: string]: string }; + taskProperties?: Record; } export namespace Task { @@ -5057,7 +5057,7 @@ export interface CreateFlowRequest { /** *

The tags used to organize, track, or control access for your flow.

*/ - tags?: { [key: string]: string }; + tags?: Record; } export namespace CreateFlowRequest { @@ -5370,7 +5370,7 @@ export interface DescribeConnectorsResponse { /** *

The configuration that is applied to the connectors used in the flow.

*/ - connectorConfigurations?: { [key: string]: ConnectorConfiguration }; + connectorConfigurations?: Record; /** *

Information about the connectors supported in Amazon AppFlow.

@@ -5531,7 +5531,7 @@ export interface DescribeFlowResponse { /** *

The tags used to organize, track, or control access for your flow.

*/ - tags?: { [key: string]: string }; + tags?: Record; } export namespace DescribeFlowResponse { @@ -5780,7 +5780,7 @@ export interface FlowDefinition { /** *

The tags used to organize, track, or control access for your flow.

*/ - tags?: { [key: string]: string }; + tags?: Record; /** *

Describes the details of the most recent flow run.

@@ -5840,7 +5840,7 @@ export interface ListConnectorEntitiesResponse { * This map's key represents the group name, and its value contains the list of entities * belonging to that group.

*/ - connectorEntityMap: { [key: string]: ConnectorEntity[] } | undefined; + connectorEntityMap: Record | undefined; } export namespace ListConnectorEntitiesResponse { @@ -5958,7 +5958,7 @@ export interface ListTagsForResourceResponse { /** *

The tags used to organize, track, or control access for your flow.

*/ - tags?: { [key: string]: string }; + tags?: Record; } export namespace ListTagsForResourceResponse { @@ -6150,7 +6150,7 @@ export interface TagResourceRequest { /** *

The tags used to organize, track, or control access for your flow.

*/ - tags: { [key: string]: string } | undefined; + tags: Record | undefined; } export namespace TagResourceRequest { diff --git a/clients/client-appflow/src/protocols/Aws_restJson1.ts b/clients/client-appflow/src/protocols/Aws_restJson1.ts index eb982068c245..d51ca5a11e74 100644 --- a/clients/client-appflow/src/protocols/Aws_restJson1.ts +++ b/clients/client-appflow/src/protocols/Aws_restJson1.ts @@ -2585,7 +2585,7 @@ const serializeAws_restJson1ConnectorTypeList = (input: (ConnectorType | string) }); }; -const serializeAws_restJson1CredentialsMap = (input: { [key: string]: string }, context: __SerdeContext): any => { +const serializeAws_restJson1CredentialsMap = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -2689,7 +2689,7 @@ const serializeAws_restJson1CustomerProfilesDestinationProperties = ( }; }; -const serializeAws_restJson1CustomProperties = (input: { [key: string]: string }, context: __SerdeContext): any => { +const serializeAws_restJson1CustomProperties = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -3112,7 +3112,7 @@ const serializeAws_restJson1PrefixConfig = (input: PrefixConfig, context: __Serd }; }; -const serializeAws_restJson1ProfilePropertiesMap = (input: { [key: string]: string }, context: __SerdeContext): any => { +const serializeAws_restJson1ProfilePropertiesMap = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -3587,7 +3587,7 @@ const serializeAws_restJson1SuccessResponseHandlingConfig = ( }; }; -const serializeAws_restJson1TagMap = (input: { [key: string]: string }, context: __SerdeContext): any => { +const serializeAws_restJson1TagMap = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -3617,7 +3617,7 @@ const serializeAws_restJson1Task = (input: Task, context: __SerdeContext): any = }; }; -const serializeAws_restJson1TaskPropertiesMap = (input: { [key: string]: string }, context: __SerdeContext): any => { +const serializeAws_restJson1TaskPropertiesMap = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce( (acc: { [key: string]: any }, [key, value]: [OperatorPropertiesKeys | string, any]) => { if (value === null) { @@ -3644,7 +3644,7 @@ const serializeAws_restJson1Tasks = (input: Task[], context: __SerdeContext): an }; const serializeAws_restJson1TokenUrlCustomProperties = ( - input: { [key: string]: string }, + input: Record, context: __SerdeContext ): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { @@ -3969,9 +3969,9 @@ const deserializeAws_restJson1ConnectorConfiguration = ( const deserializeAws_restJson1ConnectorConfigurationsMap = ( output: any, context: __SerdeContext -): { [key: string]: ConnectorConfiguration } => { +): Record => { return Object.entries(output).reduce( - (acc: { [key: string]: ConnectorConfiguration }, [key, value]: [ConnectorType | string, any]) => { + (acc: Record, [key, value]: [ConnectorType | string, any]) => { if (value === null) { return acc; } @@ -4072,8 +4072,8 @@ const deserializeAws_restJson1ConnectorEntityList = (output: any, context: __Ser const deserializeAws_restJson1ConnectorEntityMap = ( output: any, context: __SerdeContext -): { [key: string]: ConnectorEntity[] } => { - return Object.entries(output).reduce((acc: { [key: string]: ConnectorEntity[] }, [key, value]: [string, any]) => { +): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -4514,8 +4514,8 @@ const deserializeAws_restJson1CustomerProfilesMetadata = ( return {} as any; }; -const deserializeAws_restJson1CustomProperties = (output: any, context: __SerdeContext): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +const deserializeAws_restJson1CustomProperties = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -5118,11 +5118,8 @@ const deserializeAws_restJson1PrivateConnectionProvisioningState = ( } as any; }; -const deserializeAws_restJson1ProfilePropertiesMap = ( - output: any, - context: __SerdeContext -): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +const deserializeAws_restJson1ProfilePropertiesMap = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -5663,8 +5660,8 @@ const deserializeAws_restJson1SupportedWriteOperationList = ( return retVal; }; -const deserializeAws_restJson1TagMap = (output: any, context: __SerdeContext): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +const deserializeAws_restJson1TagMap = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -5694,9 +5691,9 @@ const deserializeAws_restJson1Task = (output: any, context: __SerdeContext): Tas } as any; }; -const deserializeAws_restJson1TaskPropertiesMap = (output: any, context: __SerdeContext): { [key: string]: string } => { +const deserializeAws_restJson1TaskPropertiesMap = (output: any, context: __SerdeContext): Record => { return Object.entries(output).reduce( - (acc: { [key: string]: string }, [key, value]: [OperatorPropertiesKeys | string, any]) => { + (acc: Record, [key, value]: [OperatorPropertiesKeys | string, any]) => { if (value === null) { return acc; } @@ -5724,8 +5721,8 @@ const deserializeAws_restJson1Tasks = (output: any, context: __SerdeContext): Ta const deserializeAws_restJson1TokenUrlCustomProperties = ( output: any, context: __SerdeContext -): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } diff --git a/clients/client-appintegrations/src/models/models_0.ts b/clients/client-appintegrations/src/models/models_0.ts index c3b2b646d2a2..468bf4483ed7 100644 --- a/clients/client-appintegrations/src/models/models_0.ts +++ b/clients/client-appintegrations/src/models/models_0.ts @@ -82,7 +82,7 @@ export interface CreateDataIntegrationRequest { /** *

One or more tags.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; /** *

A unique, case-sensitive identifier that you provide to ensure the idempotency of the @@ -139,7 +139,7 @@ export interface CreateDataIntegrationResponse { /** *

One or more tags.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; /** *

A unique, case-sensitive identifier that you provide to ensure the idempotency of the @@ -311,7 +311,7 @@ export interface CreateEventIntegrationRequest { /** *

One or more tags.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; } export namespace CreateEventIntegrationRequest { @@ -469,7 +469,7 @@ export interface GetDataIntegrationResponse { /** *

One or more tags.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; } export namespace GetDataIntegrationResponse { @@ -526,7 +526,7 @@ export interface GetEventIntegrationResponse { /** *

One or more tags.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; } export namespace GetEventIntegrationResponse { @@ -747,7 +747,7 @@ export interface EventIntegrationAssociation { /** *

The metadata associated with the client.

*/ - ClientAssociationMetadata?: { [key: string]: string }; + ClientAssociationMetadata?: Record; } export namespace EventIntegrationAssociation { @@ -834,7 +834,7 @@ export interface EventIntegration { /** *

The tags.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; } export namespace EventIntegration { @@ -887,7 +887,7 @@ export interface ListTagsForResourceResponse { /** *

Information about the tags.

*/ - tags?: { [key: string]: string }; + tags?: Record; } export namespace ListTagsForResourceResponse { @@ -908,7 +908,7 @@ export interface TagResourceRequest { /** *

One or more tags.

*/ - tags: { [key: string]: string } | undefined; + tags: Record | undefined; } export namespace TagResourceRequest { diff --git a/clients/client-appintegrations/src/protocols/Aws_restJson1.ts b/clients/client-appintegrations/src/protocols/Aws_restJson1.ts index da90ef09ef66..006d4024cbe8 100644 --- a/clients/client-appintegrations/src/protocols/Aws_restJson1.ts +++ b/clients/client-appintegrations/src/protocols/Aws_restJson1.ts @@ -1580,7 +1580,7 @@ const serializeAws_restJson1ScheduleConfiguration = (input: ScheduleConfiguratio }; }; -const serializeAws_restJson1TagMap = (input: { [key: string]: string }, context: __SerdeContext): any => { +const serializeAws_restJson1TagMap = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -1595,8 +1595,8 @@ const serializeAws_restJson1TagMap = (input: { [key: string]: string }, context: const deserializeAws_restJson1ClientAssociationMetadata = ( output: any, context: __SerdeContext -): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -1734,8 +1734,8 @@ const deserializeAws_restJson1ScheduleConfiguration = (output: any, context: __S } as any; }; -const deserializeAws_restJson1TagMap = (output: any, context: __SerdeContext): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +const deserializeAws_restJson1TagMap = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } diff --git a/clients/client-application-discovery-service/src/models/models_0.ts b/clients/client-application-discovery-service/src/models/models_0.ts index f8c88421cbf4..0b25f8ef5986 100644 --- a/clients/client-application-discovery-service/src/models/models_0.ts +++ b/clients/client-application-discovery-service/src/models/models_0.ts @@ -648,7 +648,7 @@ export interface DescribeConfigurationsResponse { /** *

A key in the response map. The value is an array of data.

*/ - configurations?: { [key: string]: string }[]; + configurations?: Record[]; } export namespace DescribeConfigurationsResponse { @@ -856,7 +856,7 @@ export interface ContinuousExportDescription { * * */ - schemaStorageConfig?: { [key: string]: string }; + schemaStorageConfig?: Record; } export namespace ContinuousExportDescription { @@ -1814,7 +1814,7 @@ export interface ListConfigurationsResponse { *

Returns configuration details, including the configuration ID, attribute names, and * attribute values.

*/ - configurations?: { [key: string]: string }[]; + configurations?: Record[]; /** *

Token to retrieve the next set of results. For example, if your call to @@ -2029,7 +2029,7 @@ export interface StartContinuousExportResponse { * * */ - schemaStorageConfig?: { [key: string]: string }; + schemaStorageConfig?: Record; } export namespace StartContinuousExportResponse { diff --git a/clients/client-application-discovery-service/src/protocols/Aws_json1_1.ts b/clients/client-application-discovery-service/src/protocols/Aws_json1_1.ts index 690885526b7f..1444e3c4ed98 100644 --- a/clients/client-application-discovery-service/src/protocols/Aws_json1_1.ts +++ b/clients/client-application-discovery-service/src/protocols/Aws_json1_1.ts @@ -2651,8 +2651,8 @@ const deserializeAws_json1_1BatchDeleteImportDataResponse = ( } as any; }; -const deserializeAws_json1_1Configuration = (output: any, context: __SerdeContext): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +const deserializeAws_json1_1Configuration = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -2663,7 +2663,7 @@ const deserializeAws_json1_1Configuration = (output: any, context: __SerdeContex }, {}); }; -const deserializeAws_json1_1Configurations = (output: any, context: __SerdeContext): { [key: string]: string }[] => { +const deserializeAws_json1_1Configurations = (output: any, context: __SerdeContext): Record[] => { const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { @@ -2822,8 +2822,8 @@ const deserializeAws_json1_1DescribeAgentsResponse = (output: any, context: __Se const deserializeAws_json1_1DescribeConfigurationsAttribute = ( output: any, context: __SerdeContext -): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -2837,7 +2837,7 @@ const deserializeAws_json1_1DescribeConfigurationsAttribute = ( const deserializeAws_json1_1DescribeConfigurationsAttributes = ( output: any, context: __SerdeContext -): { [key: string]: string }[] => { +): Record[] => { const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { @@ -3142,8 +3142,8 @@ const deserializeAws_json1_1ResourceNotFoundException = ( } as any; }; -const deserializeAws_json1_1SchemaStorageConfig = (output: any, context: __SerdeContext): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +const deserializeAws_json1_1SchemaStorageConfig = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } diff --git a/clients/client-application-insights/src/models/models_0.ts b/clients/client-application-insights/src/models/models_0.ts index f6ba139a7ccf..7647da4203db 100644 --- a/clients/client-application-insights/src/models/models_0.ts +++ b/clients/client-application-insights/src/models/models_0.ts @@ -86,7 +86,7 @@ export interface ApplicationComponent { /** *

Workloads detected in the application component.

*/ - DetectedWorkload?: { [key: string]: { [key: string]: string } }; + DetectedWorkload?: Record>; } export namespace ApplicationComponent { @@ -1312,7 +1312,7 @@ export interface Problem { /** *

Feedback provided by the user about the problem.

*/ - Feedback?: { [key: string]: FeedbackValue | string }; + Feedback?: Record; /** *

The number of times that the same problem reoccurred after the first time it was diff --git a/clients/client-application-insights/src/protocols/Aws_json1_1.ts b/clients/client-application-insights/src/protocols/Aws_json1_1.ts index 4f59e748ddf8..9452504cb7a2 100644 --- a/clients/client-application-insights/src/protocols/Aws_json1_1.ts +++ b/clients/client-application-insights/src/protocols/Aws_json1_1.ts @@ -2535,9 +2535,9 @@ const deserializeAws_json1_1DescribeProblemResponse = ( const deserializeAws_json1_1DetectedWorkload = ( output: any, context: __SerdeContext -): { [key: string]: { [key: string]: string } } => { +): Record> => { return Object.entries(output).reduce( - (acc: { [key: string]: { [key: string]: string } }, [key, value]: [Tier | string, any]) => { + (acc: Record>, [key, value]: [Tier | string, any]) => { if (value === null) { return acc; } @@ -2553,9 +2553,9 @@ const deserializeAws_json1_1DetectedWorkload = ( const deserializeAws_json1_1Feedback = ( output: any, context: __SerdeContext -): { [key: string]: FeedbackValue | string } => { +): Record => { return Object.entries(output).reduce( - (acc: { [key: string]: FeedbackValue | string }, [key, value]: [FeedbackKey | string, any]) => { + (acc: Record, [key, value]: [FeedbackKey | string, any]) => { if (value === null) { return acc; } @@ -2933,8 +2933,8 @@ const deserializeAws_json1_1ValidationException = (output: any, context: __Serde } as any; }; -const deserializeAws_json1_1WorkloadMetaData = (output: any, context: __SerdeContext): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +const deserializeAws_json1_1WorkloadMetaData = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } diff --git a/clients/client-apprunner/src/models/models_0.ts b/clients/client-apprunner/src/models/models_0.ts index 7616e16f6b19..43f30162e76d 100644 --- a/clients/client-apprunner/src/models/models_0.ts +++ b/clients/client-apprunner/src/models/models_0.ts @@ -907,7 +907,7 @@ export interface CodeConfigurationValues { *

The environment variables that are available to your running App Runner service. An array of key-value pairs. Keys with a prefix of * AWSAPPRUNNER are reserved for system use and aren't valid.

*/ - RuntimeEnvironmentVariables?: { [key: string]: string }; + RuntimeEnvironmentVariables?: Record; } export namespace CodeConfigurationValues { @@ -1039,7 +1039,7 @@ export interface ImageConfiguration { *

Environment variables that are available to your running App Runner service. An array of key-value pairs. Keys with a prefix of AWSAPPRUNNER * are reserved for system use and aren't valid.

*/ - RuntimeEnvironmentVariables?: { [key: string]: string }; + RuntimeEnvironmentVariables?: Record; /** *

An optional command that App Runner runs to start the application in the source image. If specified, this command overrides the Docker image’s default start diff --git a/clients/client-apprunner/src/protocols/Aws_json1_0.ts b/clients/client-apprunner/src/protocols/Aws_json1_0.ts index 7ae07989535e..35deba4b4503 100644 --- a/clients/client-apprunner/src/protocols/Aws_json1_0.ts +++ b/clients/client-apprunner/src/protocols/Aws_json1_0.ts @@ -2539,7 +2539,7 @@ const serializeAws_json1_0ResumeServiceRequest = (input: ResumeServiceRequest, c }; const serializeAws_json1_0RuntimeEnvironmentVariables = ( - input: { [key: string]: string }, + input: Record, context: __SerdeContext ): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { @@ -3387,8 +3387,8 @@ const deserializeAws_json1_0ResumeServiceResponse = (output: any, context: __Ser const deserializeAws_json1_0RuntimeEnvironmentVariables = ( output: any, context: __SerdeContext -): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } diff --git a/clients/client-appstream/src/models/models_0.ts b/clients/client-appstream/src/models/models_0.ts index ff4d5ea358e2..e612d6f319ea 100644 --- a/clients/client-appstream/src/models/models_0.ts +++ b/clients/client-appstream/src/models/models_0.ts @@ -193,7 +193,7 @@ export interface Application { /** *

Additional attributes that describe the application.

*/ - Metadata?: { [key: string]: string }; + Metadata?: Record; /** *

The working directory for the application.

@@ -967,7 +967,7 @@ export interface CreateAppBlockRequest { /** *

The tags assigned to the app block.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; } export namespace CreateAppBlockRequest { @@ -1049,7 +1049,7 @@ export interface CreateApplicationRequest { /** *

The tags assigned to the application.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; } export namespace CreateApplicationRequest { @@ -1656,7 +1656,7 @@ export interface CreateFleetRequest { * *

For more information, see Tagging Your Resources in the Amazon AppStream 2.0 Administration Guide.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; /** *

The amount of time that users can be idle (inactive) before they are disconnected @@ -2263,7 +2263,7 @@ export interface CreateImageBuilderRequest { * *

For more information about tags, see Tagging Your Resources in the Amazon AppStream 2.0 Administration Guide.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; /** *

The list of interface VPC endpoint (interface endpoint) objects. Administrators can connect to the image builder only through the specified endpoints.

@@ -2757,7 +2757,7 @@ export interface CreateStackRequest { * *

For more information about tags, see Tagging Your Resources in the Amazon AppStream 2.0 Administration Guide.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; /** *

The list of interface VPC endpoint (interface endpoint) objects. Users of the stack can connect to AppStream 2.0 only through the specified endpoints.

@@ -2995,7 +2995,7 @@ export interface CreateUpdatedImageRequest { *

If you do not specify a value, the value is set to an empty string.

*

For more information about tags, see Tagging Your Resources in the Amazon AppStream 2.0 Administration Guide.

*/ - newImageTags?: { [key: string]: string }; + newImageTags?: Record; /** *

Indicates whether to display the status of image update availability before AppStream 2.0 initiates the process of creating a new updated image. If this value is set to true, AppStream 2.0 displays whether image updates are available. If this value is set to false, AppStream 2.0 initiates the process of creating a new updated image without displaying whether image updates are available.

@@ -5008,7 +5008,7 @@ export interface ListTagsForResourceResponse { /** *

The information about the tags.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; } export namespace ListTagsForResourceResponse { @@ -5157,7 +5157,7 @@ export interface TagResourceRequest { *

Generally allowed characters are: letters, numbers, and spaces representable in UTF-8, and the following special characters:

*

_ . : / = + \ - @

*/ - Tags: { [key: string]: string } | undefined; + Tags: Record | undefined; } export namespace TagResourceRequest { diff --git a/clients/client-appstream/src/protocols/Aws_json1_1.ts b/clients/client-appstream/src/protocols/Aws_json1_1.ts index 6c40b814c91e..8626d8e84efa 100644 --- a/clients/client-appstream/src/protocols/Aws_json1_1.ts +++ b/clients/client-appstream/src/protocols/Aws_json1_1.ts @@ -5630,7 +5630,7 @@ const serializeAws_json1_1TagResourceRequest = (input: TagResourceRequest, conte }; }; -const serializeAws_json1_1Tags = (input: { [key: string]: string }, context: __SerdeContext): any => { +const serializeAws_json1_1Tags = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -6965,8 +6965,8 @@ const deserializeAws_json1_1ListTagsForResourceResponse = ( } as any; }; -const deserializeAws_json1_1Metadata = (output: any, context: __SerdeContext): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +const deserializeAws_json1_1Metadata = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -7340,8 +7340,8 @@ const deserializeAws_json1_1TagResourceResponse = (output: any, context: __Serde return {} as any; }; -const deserializeAws_json1_1Tags = (output: any, context: __SerdeContext): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +const deserializeAws_json1_1Tags = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } diff --git a/clients/client-appsync/src/models/models_0.ts b/clients/client-appsync/src/models/models_0.ts index 96bcb273f115..105bd48f168f 100644 --- a/clients/client-appsync/src/models/models_0.ts +++ b/clients/client-appsync/src/models/models_0.ts @@ -1910,7 +1910,7 @@ export interface CreateGraphqlApiRequest { /** *

A TagMap object.

*/ - tags?: { [key: string]: string }; + tags?: Record; /** *

A list of additional authentication providers for the GraphqlApi @@ -1981,12 +1981,12 @@ export interface GraphqlApi { /** *

The URIs.

*/ - uris?: { [key: string]: string }; + uris?: Record; /** *

The tags.

*/ - tags?: { [key: string]: string }; + tags?: Record; /** *

A list of additional authentication providers for the GraphqlApi @@ -3442,7 +3442,7 @@ export interface ListTagsForResourceResponse { /** *

A TagMap object.

*/ - tags?: { [key: string]: string }; + tags?: Record; } export namespace ListTagsForResourceResponse { @@ -3555,7 +3555,7 @@ export interface TagResourceRequest { /** *

A TagMap object.

*/ - tags: { [key: string]: string } | undefined; + tags: Record | undefined; } export namespace TagResourceRequest { diff --git a/clients/client-appsync/src/protocols/Aws_restJson1.ts b/clients/client-appsync/src/protocols/Aws_restJson1.ts index 37eb0422b077..951039371151 100644 --- a/clients/client-appsync/src/protocols/Aws_restJson1.ts +++ b/clients/client-appsync/src/protocols/Aws_restJson1.ts @@ -5124,7 +5124,7 @@ const serializeAws_restJson1SyncConfig = (input: SyncConfig, context: __SerdeCon }; }; -const serializeAws_restJson1TagMap = (input: { [key: string]: string }, context: __SerdeContext): any => { +const serializeAws_restJson1TagMap = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -5512,11 +5512,8 @@ const deserializeAws_restJson1LogConfig = (output: any, context: __SerdeContext) } as any; }; -const deserializeAws_restJson1MapOfStringToString = ( - output: any, - context: __SerdeContext -): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +const deserializeAws_restJson1MapOfStringToString = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -5626,8 +5623,8 @@ const deserializeAws_restJson1SyncConfig = (output: any, context: __SerdeContext } as any; }; -const deserializeAws_restJson1TagMap = (output: any, context: __SerdeContext): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +const deserializeAws_restJson1TagMap = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } diff --git a/clients/client-athena/src/models/models_0.ts b/clients/client-athena/src/models/models_0.ts index 45260e01f0d4..53e7a171b5f7 100644 --- a/clients/client-athena/src/models/models_0.ts +++ b/clients/client-athena/src/models/models_0.ts @@ -800,7 +800,7 @@ export interface CreateDataCatalogInput { * * */ - Parameters?: { [key: string]: string }; + Parameters?: Record; /** *

A list of comma separated tags to add to the data catalog that is created.

@@ -1230,7 +1230,7 @@ export interface Database { /** *

A set of custom key/value pairs.

*/ - Parameters?: { [key: string]: string }; + Parameters?: Record; } export namespace Database { @@ -1388,7 +1388,7 @@ export interface DataCatalog { * * */ - Parameters?: { [key: string]: string }; + Parameters?: Record; } export namespace DataCatalog { @@ -1864,7 +1864,7 @@ export interface TableMetadata { /** *

A set of custom key/value pairs for table properties.

*/ - Parameters?: { [key: string]: string }; + Parameters?: Record; } export namespace TableMetadata { @@ -2780,7 +2780,7 @@ export interface UpdateDataCatalogInput { * * */ - Parameters?: { [key: string]: string }; + Parameters?: Record; } export namespace UpdateDataCatalogInput { diff --git a/clients/client-athena/src/protocols/Aws_json1_1.ts b/clients/client-athena/src/protocols/Aws_json1_1.ts index 64f9dc20c2b5..2600bc141e46 100644 --- a/clients/client-athena/src/protocols/Aws_json1_1.ts +++ b/clients/client-athena/src/protocols/Aws_json1_1.ts @@ -2623,7 +2623,7 @@ const serializeAws_json1_1NamedQueryIdList = (input: string[], context: __SerdeC }); }; -const serializeAws_json1_1ParametersMap = (input: { [key: string]: string }, context: __SerdeContext): any => { +const serializeAws_json1_1ParametersMap = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -3359,8 +3359,8 @@ const deserializeAws_json1_1NamedQueryList = (output: any, context: __SerdeConte return retVal; }; -const deserializeAws_json1_1ParametersMap = (output: any, context: __SerdeContext): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +const deserializeAws_json1_1ParametersMap = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } diff --git a/clients/client-auditmanager/src/models/models_0.ts b/clients/client-auditmanager/src/models/models_0.ts index 3e2615e76db9..7ca94b90808a 100644 --- a/clients/client-auditmanager/src/models/models_0.ts +++ b/clients/client-auditmanager/src/models/models_0.ts @@ -608,7 +608,7 @@ export interface Assessment { /** *

The tags that are associated with the assessment.

*/ - tags?: { [key: string]: string }; + tags?: Record; } export namespace Assessment { @@ -1676,7 +1676,7 @@ export interface CreateAssessmentRequest { /** *

The tags that are associated with the assessment.

*/ - tags?: { [key: string]: string }; + tags?: Record; } export namespace CreateAssessmentRequest { @@ -1776,7 +1776,7 @@ export interface CreateAssessmentFrameworkRequest { /** *

The tags that are associated with the framework.

*/ - tags?: { [key: string]: string }; + tags?: Record; } export namespace CreateAssessmentFrameworkRequest { @@ -2040,7 +2040,7 @@ export interface Control { /** *

The tags associated with the control.

*/ - tags?: { [key: string]: string }; + tags?: Record; } export namespace Control { @@ -2156,7 +2156,7 @@ export interface Framework { /** *

The tags that are associated with the framework.

*/ - tags?: { [key: string]: string }; + tags?: Record; } export namespace Framework { @@ -2315,7 +2315,7 @@ export interface CreateControlRequest { /** *

The tags that are associated with the control.

*/ - tags?: { [key: string]: string }; + tags?: Record; } export namespace CreateControlRequest { @@ -3072,7 +3072,7 @@ export interface Evidence { * name (such as allowUsersToChangePassword) and value (such as true * or false).

*/ - attributes?: { [key: string]: string }; + attributes?: Record; /** *

The unique identifier for the IAM user or role that's associated with @@ -4557,7 +4557,7 @@ export interface ListTagsForResourceResponse { /** *

The list of tags that the ListTagsForResource API returned.

*/ - tags?: { [key: string]: string }; + tags?: Record; } export namespace ListTagsForResourceResponse { @@ -4700,7 +4700,7 @@ export interface TagResourceRequest { /** *

The tags that are associated with the resource.

*/ - tags: { [key: string]: string } | undefined; + tags: Record | undefined; } export namespace TagResourceRequest { diff --git a/clients/client-auditmanager/src/protocols/Aws_restJson1.ts b/clients/client-auditmanager/src/protocols/Aws_restJson1.ts index baa07c3a2042..1368f7f17f44 100644 --- a/clients/client-auditmanager/src/protocols/Aws_restJson1.ts +++ b/clients/client-auditmanager/src/protocols/Aws_restJson1.ts @@ -5880,7 +5880,7 @@ const serializeAws_restJson1SourceKeyword = (input: SourceKeyword, context: __Se }; }; -const serializeAws_restJson1TagMap = (input: { [key: string]: string }, context: __SerdeContext): any => { +const serializeAws_restJson1TagMap = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -6789,11 +6789,8 @@ const deserializeAws_restJson1Evidence = (output: any, context: __SerdeContext): } as any; }; -const deserializeAws_restJson1EvidenceAttributes = ( - output: any, - context: __SerdeContext -): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +const deserializeAws_restJson1EvidenceAttributes = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -7088,8 +7085,8 @@ const deserializeAws_restJson1SourceKeyword = (output: any, context: __SerdeCont } as any; }; -const deserializeAws_restJson1TagMap = (output: any, context: __SerdeContext): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +const deserializeAws_restJson1TagMap = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } diff --git a/clients/client-backup/src/models/models_0.ts b/clients/client-backup/src/models/models_0.ts index fdcbf553b77b..5a7c128073d6 100644 --- a/clients/client-backup/src/models/models_0.ts +++ b/clients/client-backup/src/models/models_0.ts @@ -29,7 +29,7 @@ export interface AdvancedBackupSetting { *

For more information about Windows VSS backups, see Creating a VSS-Enabled Windows * Backup.

*/ - BackupOptions?: { [key: string]: string }; + BackupOptions?: Record; } export namespace AdvancedBackupSetting { @@ -266,7 +266,7 @@ export interface BackupJob { * "WindowsVSS":"disabled" to create a regular backup. If you specify an * invalid option, you get an InvalidParameterValueException exception.

*/ - BackupOptions?: { [key: string]: string }; + BackupOptions?: Record; /** *

Represents the type of backup for a backup job.

@@ -415,7 +415,7 @@ export interface BackupRule { *

An array of key-value pair strings that are assigned to resources that are associated * with this rule when restored from backup.

*/ - RecoveryPointTags?: { [key: string]: string }; + RecoveryPointTags?: Record; /** *

Uniquely identifies a rule that is used to schedule the backup of a selection of @@ -537,7 +537,7 @@ export interface BackupRuleInput { *

To help organize your resources, you can assign your own metadata to the resources that * you create. Each tag is a key-value pair.

*/ - RecoveryPointTags?: { [key: string]: string }; + RecoveryPointTags?: Record; /** *

An array of CopyAction objects, which contains the details of the copy @@ -1197,7 +1197,7 @@ export interface ControlScope { * value is optional, but it cannot be an empty string. The structure to assign a tag is: * [{"Key":"string","Value":"string"}].

*/ - Tags?: { [key: string]: string }; + Tags?: Record; } export namespace ControlScope { @@ -1329,7 +1329,7 @@ export interface CreateBackupPlanInput { * you create. Each tag is a key-value pair. The specified tags are assigned to all backups * created with this plan.

*/ - BackupPlanTags?: { [key: string]: string }; + BackupPlanTags?: Record; /** *

Identifies the request and allows failed requests to be retried without the risk of @@ -1602,7 +1602,7 @@ export interface CreateBackupVaultInput { *

Metadata that you can assign to help organize the resources that you create. Each tag is * a key-value pair.

*/ - BackupVaultTags?: { [key: string]: string }; + BackupVaultTags?: Record; /** *

The server-side encryption key that is used to protect your backups; for example, @@ -1724,7 +1724,7 @@ export interface CreateFrameworkInput { *

Metadata that you can assign to help organize the frameworks that you create. Each tag * is a key-value pair.

*/ - FrameworkTags?: { [key: string]: string }; + FrameworkTags?: Record; } export namespace CreateFrameworkInput { @@ -1865,7 +1865,7 @@ export interface CreateReportPlanInput { *

Metadata that you can assign to help organize the report plans that you create. Each tag * is a key-value pair.

*/ - ReportPlanTags?: { [key: string]: string }; + ReportPlanTags?: Record; /** *

A customer-chosen string that you can use to distinguish between otherwise identical @@ -2390,7 +2390,7 @@ export interface DescribeBackupJobOutput { /** *

Represents the options specified as part of backup plan or on-demand backup job.

*/ - BackupOptions?: { [key: string]: string }; + BackupOptions?: Record; /** *

Represents the actual backup type selected for a backup job. For example, if a @@ -2673,7 +2673,7 @@ export interface DescribeGlobalSettingsOutput { /** *

The status of the flag isCrossAccountBackupEnabled.

*/ - GlobalSettings?: { [key: string]: string }; + GlobalSettings?: Record; /** *

The date and time that the flag isCrossAccountBackupEnabled was last @@ -2948,7 +2948,7 @@ export interface DescribeRegionSettingsOutput { /** *

Returns a list of all services along with the opt-in preferences in the Region.

*/ - ResourceTypeOptInPreference?: { [key: string]: boolean }; + ResourceTypeOptInPreference?: Record; /** *

Returns whether Backup fully manages the backups for a resource type.

@@ -2960,7 +2960,7 @@ export interface DescribeRegionSettingsOutput { * DynamoDB backup by enabling * Backup's advanced DynamoDB backup features.

*/ - ResourceTypeManagementPreference?: { [key: string]: boolean }; + ResourceTypeManagementPreference?: Record; } export namespace DescribeRegionSettingsOutput { @@ -3768,7 +3768,7 @@ export interface GetRecoveryPointRestoreMetadataOutput { * backed-up resource. These values vary depending on the service that is being * restored.

*/ - RestoreMetadata?: { [key: string]: string }; + RestoreMetadata?: Record; } export namespace GetRecoveryPointRestoreMetadataOutput { @@ -5272,7 +5272,7 @@ export interface ListTagsOutput { *

To help organize your resources, you can assign your own metadata to the resources you * create. Each tag is a key-value pair.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; } export namespace ListTagsOutput { @@ -5503,7 +5503,7 @@ export interface StartBackupJobInput { *

To help organize your resources, you can assign your own metadata to the resources that * you create. Each tag is a key-value pair.

*/ - RecoveryPointTags?: { [key: string]: string }; + RecoveryPointTags?: Record; /** *

Specifies the backup option for a selected resource. This option is only available for @@ -5513,7 +5513,7 @@ export interface StartBackupJobInput { * "WindowsVSS""disabled" to create a regular backup. The * WindowsVSS option is not enabled by default.

*/ - BackupOptions?: { [key: string]: string }; + BackupOptions?: Record; } export namespace StartBackupJobInput { @@ -5738,7 +5738,7 @@ export interface StartRestoreJobInput { * * */ - Metadata: { [key: string]: string } | undefined; + Metadata: Record | undefined; /** *

The Amazon Resource Name (ARN) of the IAM role that Backup uses to create @@ -5864,7 +5864,7 @@ export interface TagResourceInput { * metadata to the resources you create. For clarity, this is the structure to assign tags: * [{"Key":"string","Value":"string"}].

*/ - Tags: { [key: string]: string } | undefined; + Tags: Record | undefined; } export namespace TagResourceInput { @@ -6036,7 +6036,7 @@ export interface UpdateGlobalSettingsInput { * update-global-settings --global-settings isCrossAccountBackupEnabled=false * --region us-west-2.

*/ - GlobalSettings?: { [key: string]: string }; + GlobalSettings?: Record; } export namespace UpdateGlobalSettingsInput { @@ -6133,7 +6133,7 @@ export interface UpdateRegionSettingsInput { /** *

Updates the list of services along with the opt-in preferences for the Region.

*/ - ResourceTypeOptInPreference?: { [key: string]: boolean }; + ResourceTypeOptInPreference?: Record; /** *

Enables or disables full Backup management of backups for a resource type. @@ -6141,7 +6141,7 @@ export interface UpdateRegionSettingsInput { * Backup's advanced DynamoDB backup features, follow the * procedure to enable advanced DynamoDB backup programmatically.

*/ - ResourceTypeManagementPreference?: { [key: string]: boolean }; + ResourceTypeManagementPreference?: Record; } export namespace UpdateRegionSettingsInput { diff --git a/clients/client-backup/src/protocols/Aws_restJson1.ts b/clients/client-backup/src/protocols/Aws_restJson1.ts index 2fac9c79b703..377282e58c0f 100644 --- a/clients/client-backup/src/protocols/Aws_restJson1.ts +++ b/clients/client-backup/src/protocols/Aws_restJson1.ts @@ -6653,7 +6653,7 @@ const serializeAws_restJson1AdvancedBackupSettings = (input: AdvancedBackupSetti }); }; -const serializeAws_restJson1BackupOptions = (input: { [key: string]: string }, context: __SerdeContext): any => { +const serializeAws_restJson1BackupOptions = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -6890,7 +6890,7 @@ const serializeAws_restJson1FrameworkControls = (input: FrameworkControl[], cont }); }; -const serializeAws_restJson1GlobalSettings = (input: { [key: string]: string }, context: __SerdeContext): any => { +const serializeAws_restJson1GlobalSettings = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -6922,7 +6922,7 @@ const serializeAws_restJson1ListOfTags = (input: Condition[], context: __SerdeCo }); }; -const serializeAws_restJson1Metadata = (input: { [key: string]: string }, context: __SerdeContext): any => { +const serializeAws_restJson1Metadata = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -6979,7 +6979,7 @@ const serializeAws_restJson1ResourceTypeList = (input: string[], context: __Serd }; const serializeAws_restJson1ResourceTypeManagementPreference = ( - input: { [key: string]: boolean }, + input: Record, context: __SerdeContext ): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { @@ -6994,7 +6994,7 @@ const serializeAws_restJson1ResourceTypeManagementPreference = ( }; const serializeAws_restJson1ResourceTypeOptInPreference = ( - input: { [key: string]: boolean }, + input: Record, context: __SerdeContext ): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { @@ -7019,7 +7019,7 @@ const serializeAws_restJson1stringList = (input: string[], context: __SerdeConte }); }; -const serializeAws_restJson1stringMap = (input: { [key: string]: string }, context: __SerdeContext): any => { +const serializeAws_restJson1stringMap = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -7042,7 +7042,7 @@ const serializeAws_restJson1TagKeyList = (input: string[], context: __SerdeConte }); }; -const serializeAws_restJson1Tags = (input: { [key: string]: string }, context: __SerdeContext): any => { +const serializeAws_restJson1Tags = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -7134,8 +7134,8 @@ const deserializeAws_restJson1BackupJobsList = (output: any, context: __SerdeCon return retVal; }; -const deserializeAws_restJson1BackupOptions = (output: any, context: __SerdeContext): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +const deserializeAws_restJson1BackupOptions = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -7616,8 +7616,8 @@ const deserializeAws_restJson1FrameworkList = (output: any, context: __SerdeCont return retVal; }; -const deserializeAws_restJson1GlobalSettings = (output: any, context: __SerdeContext): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +const deserializeAws_restJson1GlobalSettings = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -7647,8 +7647,8 @@ const deserializeAws_restJson1ListOfTags = (output: any, context: __SerdeContext return retVal; }; -const deserializeAws_restJson1Metadata = (output: any, context: __SerdeContext): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +const deserializeAws_restJson1Metadata = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -7917,8 +7917,8 @@ const deserializeAws_restJson1ResourceTypeList = (output: any, context: __SerdeC const deserializeAws_restJson1ResourceTypeManagementPreference = ( output: any, context: __SerdeContext -): { [key: string]: boolean } => { - return Object.entries(output).reduce((acc: { [key: string]: boolean }, [key, value]: [string, any]) => { +): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -7932,8 +7932,8 @@ const deserializeAws_restJson1ResourceTypeManagementPreference = ( const deserializeAws_restJson1ResourceTypeOptInPreference = ( output: any, context: __SerdeContext -): { [key: string]: boolean } => { - return Object.entries(output).reduce((acc: { [key: string]: boolean }, [key, value]: [string, any]) => { +): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -8004,8 +8004,8 @@ const deserializeAws_restJson1stringList = (output: any, context: __SerdeContext return retVal; }; -const deserializeAws_restJson1stringMap = (output: any, context: __SerdeContext): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +const deserializeAws_restJson1stringMap = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -8016,8 +8016,8 @@ const deserializeAws_restJson1stringMap = (output: any, context: __SerdeContext) }, {}); }; -const deserializeAws_restJson1Tags = (output: any, context: __SerdeContext): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +const deserializeAws_restJson1Tags = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } diff --git a/clients/client-batch/src/models/models_0.ts b/clients/client-batch/src/models/models_0.ts index 45394b4f003b..e80055ed45d4 100644 --- a/clients/client-batch/src/models/models_0.ts +++ b/clients/client-batch/src/models/models_0.ts @@ -35,7 +35,7 @@ export interface ArrayPropertiesDetail { *

A summary of the number of array job children in each available job status. This parameter is returned for * parent array jobs.

*/ - statusSummary?: { [key: string]: number }; + statusSummary?: Record; /** *

The size of the array job. This parameter is returned for parent array jobs.

@@ -586,7 +586,7 @@ export interface ComputeResource { * specified.

* */ - tags?: { [key: string]: string }; + tags?: Record; /** *

The Amazon EC2 placement group to associate with your compute resources. If you intend to submit multi-node parallel @@ -751,7 +751,7 @@ export interface CreateComputeEnvironmentRequest { *

These tags can be updated or removed using the TagResource and UntagResource API operations. These tags don't * propagate to the underlying compute resources.

*/ - tags?: { [key: string]: string }; + tags?: Record; } export namespace CreateComputeEnvironmentRequest { @@ -882,7 +882,7 @@ export interface CreateJobQueueRequest { *

The tags that you apply to the job queue to help you categorize and organize your resources. Each tag consists * of a key and an optional value. For more information, see Tagging your Batch resources in Batch User Guide.

*/ - tags?: { [key: string]: string }; + tags?: Record; } export namespace CreateJobQueueRequest { @@ -1015,7 +1015,7 @@ export interface CreateSchedulingPolicyRequest { * Reference.

*

These tags can be updated or removed using the TagResource and UntagResource API operations.

*/ - tags?: { [key: string]: string }; + tags?: Record; } export namespace CreateSchedulingPolicyRequest { @@ -1276,7 +1276,7 @@ export interface ComputeEnvironmentDetail { /** *

The tags applied to the compute environment.

*/ - tags?: { [key: string]: string }; + tags?: Record; /** *

The type of the compute environment: MANAGED or UNMANAGED. For more information, see @@ -1775,7 +1775,7 @@ export interface LogConfiguration { * container instance and run the following command: sudo docker version | grep "Server API version" *

*/ - options?: { [key: string]: string }; + options?: Record; /** *

The secrets to pass to the log configuration. For more information, see Specifying sensitive data in the @@ -2621,7 +2621,7 @@ export interface JobDefinition { * parameter defaults from the job definition. For more information about specifying parameters, see Job definition parameters in the * Batch User Guide.

*/ - parameters?: { [key: string]: string }; + parameters?: Record; /** *

The retry strategy to use for failed jobs that are submitted with this job definition.

@@ -2651,7 +2651,7 @@ export interface JobDefinition { /** *

The tags applied to the job definition.

*/ - tags?: { [key: string]: string }; + tags?: Record; /** *

Specifies whether to propagate the tags from the job or job definition to the corresponding Amazon ECS task. If no @@ -2810,7 +2810,7 @@ export interface JobQueueDetail { *

The tags applied to the job queue. For more information, see Tagging your Batch resources in * Batch User Guide.

*/ - tags?: { [key: string]: string }; + tags?: Record; } export namespace JobQueueDetail { @@ -3225,7 +3225,7 @@ export interface JobDetail { *

Additional parameters passed to the job that replace parameter substitution placeholders or override any * corresponding parameter defaults from the job definition.

*/ - parameters?: { [key: string]: string }; + parameters?: Record; /** *

An object representing the details of the container that's associated with the job.

@@ -3258,7 +3258,7 @@ export interface JobDetail { /** *

The tags applied to the job.

*/ - tags?: { [key: string]: string }; + tags?: Record; /** *

Specifies whether to propagate the tags from the job or job definition to the corresponding Amazon ECS task. If no @@ -3345,7 +3345,7 @@ export interface SchedulingPolicyDetail { * a key and an optional value. For more information, see Tagging Amazon Web Services resources in Amazon Web Services General * Reference.

*/ - tags?: { [key: string]: string }; + tags?: Record; } export namespace SchedulingPolicyDetail { @@ -3765,7 +3765,7 @@ export interface ListTagsForResourceResponse { /** *

The tags for the resource.

*/ - tags?: { [key: string]: string }; + tags?: Record; } export namespace ListTagsForResourceResponse { @@ -3806,7 +3806,7 @@ export interface RegisterJobDefinitionRequest { * key-value pair mapping. Parameters in a SubmitJob request override any corresponding parameter defaults * from the job definition.

*/ - parameters?: { [key: string]: string }; + parameters?: Record; /** *

The scheduling priority for jobs that are submitted with this job definition. This will only affect jobs in job @@ -3867,7 +3867,7 @@ export interface RegisterJobDefinitionRequest { *

The tags that you apply to the job definition to help you categorize and organize your resources. Each tag * consists of a key and an optional value. For more information, see Tagging Amazon Web Services Resources in Batch User Guide.

*/ - tags?: { [key: string]: string }; + tags?: Record; /** *

The platform capabilities required by the job definition. If no value is specified, it defaults to @@ -4114,7 +4114,7 @@ export interface SubmitJobRequest { * definition. Parameters are specified as a key and value pair mapping. Parameters in a SubmitJob request * override any corresponding parameter defaults from the job definition.

*/ - parameters?: { [key: string]: string }; + parameters?: Record; /** *

A list of container overrides in the JSON format that specify the name of a container in the specified job @@ -4165,7 +4165,7 @@ export interface SubmitJobRequest { * of a key and an optional value. For more information, see Tagging Amazon Web Services Resources in Amazon Web Services General * Reference.

*/ - tags?: { [key: string]: string }; + tags?: Record; } export namespace SubmitJobRequest { @@ -4218,7 +4218,7 @@ export interface TagResourceRequest { * a key and an optional value. For more information, see Tagging Amazon Web Services Resources in Amazon Web Services General * Reference.

*/ - tags: { [key: string]: string } | undefined; + tags: Record | undefined; } export namespace TagResourceRequest { @@ -4478,7 +4478,7 @@ export interface ComputeResourceUpdate { * specified.

* */ - tags?: { [key: string]: string }; + tags?: Record; /** *

The Amazon EC2 placement group to associate with your compute resources. If you intend to submit multi-node parallel diff --git a/clients/client-batch/src/protocols/Aws_restJson1.ts b/clients/client-batch/src/protocols/Aws_restJson1.ts index 8a5a2b6a5663..d1a82ba47f4e 100644 --- a/clients/client-batch/src/protocols/Aws_restJson1.ts +++ b/clients/client-batch/src/protocols/Aws_restJson1.ts @@ -2485,7 +2485,7 @@ const serializeAws_restJson1LogConfiguration = (input: LogConfiguration, context }; const serializeAws_restJson1LogConfigurationOptionsMap = ( - input: { [key: string]: string }, + input: Record, context: __SerdeContext ): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { @@ -2586,7 +2586,7 @@ const serializeAws_restJson1NodeRangeProperty = (input: NodeRangeProperty, conte }; }; -const serializeAws_restJson1ParametersMap = (input: { [key: string]: string }, context: __SerdeContext): any => { +const serializeAws_restJson1ParametersMap = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -2689,7 +2689,7 @@ const serializeAws_restJson1StringList = (input: string[], context: __SerdeConte }); }; -const serializeAws_restJson1TagrisTagsMap = (input: { [key: string]: string }, context: __SerdeContext): any => { +const serializeAws_restJson1TagrisTagsMap = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -2701,7 +2701,7 @@ const serializeAws_restJson1TagrisTagsMap = (input: { [key: string]: string }, c }, {}); }; -const serializeAws_restJson1TagsMap = (input: { [key: string]: string }, context: __SerdeContext): any => { +const serializeAws_restJson1TagsMap = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -2786,8 +2786,8 @@ const serializeAws_restJson1Volumes = (input: Volume[], context: __SerdeContext) const deserializeAws_restJson1ArrayJobStatusSummary = ( output: any, context: __SerdeContext -): { [key: string]: number } => { - return Object.entries(output).reduce((acc: { [key: string]: number }, [key, value]: [string, any]) => { +): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -3516,8 +3516,8 @@ const deserializeAws_restJson1LogConfiguration = (output: any, context: __SerdeC const deserializeAws_restJson1LogConfigurationOptionsMap = ( output: any, context: __SerdeContext -): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -3622,8 +3622,8 @@ const deserializeAws_restJson1NodeRangeProperty = (output: any, context: __Serde } as any; }; -const deserializeAws_restJson1ParametersMap = (output: any, context: __SerdeContext): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +const deserializeAws_restJson1ParametersMap = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -3785,8 +3785,8 @@ const deserializeAws_restJson1StringList = (output: any, context: __SerdeContext return retVal; }; -const deserializeAws_restJson1TagrisTagsMap = (output: any, context: __SerdeContext): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +const deserializeAws_restJson1TagrisTagsMap = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -3797,8 +3797,8 @@ const deserializeAws_restJson1TagrisTagsMap = (output: any, context: __SerdeCont }, {}); }; -const deserializeAws_restJson1TagsMap = (output: any, context: __SerdeContext): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +const deserializeAws_restJson1TagsMap = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } diff --git a/clients/client-billingconductor/src/models/models_0.ts b/clients/client-billingconductor/src/models/models_0.ts index a5b6b8c96de3..6315a16272dc 100644 --- a/clients/client-billingconductor/src/models/models_0.ts +++ b/clients/client-billingconductor/src/models/models_0.ts @@ -596,7 +596,7 @@ export interface CreateBillingGroupInput { *

A map that contains tag keys and tag values that are attached to a billing group. This * feature isn't available during the beta.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; } export namespace CreateBillingGroupInput { @@ -1291,7 +1291,7 @@ export interface CreateCustomLineItemInput { /** *

A map that contains tag keys and tag values that are attached to a custom line item.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; /** *

@@ -2229,7 +2229,7 @@ export interface ListTagsForResourceResponse { * The tags for the resource. *

*/ - Tags?: { [key: string]: string }; + Tags?: Record; } export namespace ListTagsForResourceResponse { @@ -2271,7 +2271,7 @@ export interface CreatePricingPlanInput { * A map that contains tag keys and tag values that are attached to a pricing plan. *

*/ - Tags?: { [key: string]: string }; + Tags?: Record; } export namespace CreatePricingPlanInput { @@ -2730,7 +2730,7 @@ export interface CreatePricingRuleInput { * A map that contains tag keys and tag values that are attached to a pricing rule. *

*/ - Tags?: { [key: string]: string }; + Tags?: Record; } export namespace CreatePricingRuleInput { @@ -3179,7 +3179,7 @@ export interface TagResourceRequest { * The tags to add to the resource as a list of key-value pairs. *

*/ - Tags: { [key: string]: string } | undefined; + Tags: Record | undefined; } export namespace TagResourceRequest { diff --git a/clients/client-billingconductor/src/protocols/Aws_restJson1.ts b/clients/client-billingconductor/src/protocols/Aws_restJson1.ts index 7c49c8553612..05f482698766 100644 --- a/clients/client-billingconductor/src/protocols/Aws_restJson1.ts +++ b/clients/client-billingconductor/src/protocols/Aws_restJson1.ts @@ -3351,7 +3351,7 @@ const serializeAws_restJson1PricingRuleArnsNonEmptyInput = (input: string[], con }); }; -const serializeAws_restJson1TagMap = (input: { [key: string]: string }, context: __SerdeContext): any => { +const serializeAws_restJson1TagMap = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -3736,8 +3736,8 @@ const deserializeAws_restJson1PricingRuleListElement = ( } as any; }; -const deserializeAws_restJson1TagMap = (output: any, context: __SerdeContext): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +const deserializeAws_restJson1TagMap = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } diff --git a/clients/client-braket/src/models/models_0.ts b/clients/client-braket/src/models/models_0.ts index d31bc5ddd47f..51cd4e4947a3 100644 --- a/clients/client-braket/src/models/models_0.ts +++ b/clients/client-braket/src/models/models_0.ts @@ -719,7 +719,7 @@ export interface CreateJobRequest { * the training job. The values are set with a string of JSON key:value pairs, where the key * is the name of the hyperparameter and the value is the value of th hyperparameter.

*/ - hyperParameters?: { [key: string]: string }; + hyperParameters?: Record; /** *

The quantum processing unit (QPU) or simulator used to create an Amazon Braket @@ -731,7 +731,7 @@ export interface CreateJobRequest { *

A tag object that consists of a key and an optional value, used to manage metadata for * Amazon Braket resources.

*/ - tags?: { [key: string]: string }; + tags?: Record; } export namespace CreateJobRequest { @@ -898,7 +898,7 @@ export interface GetJobResponse { * the traiing job. The values are set with a string of JSON key:value pairs, where the key is * the name of the hyperparameter and the value is the value of th hyperparameter.

*/ - hyperParameters?: { [key: string]: string }; + hyperParameters?: Record; /** *

A list of parameters that specify the name and type of input data and where it is @@ -968,7 +968,7 @@ export interface GetJobResponse { *

A tag object that consists of a key and an optional value, used to manage metadata for * Amazon Braket resources.

*/ - tags?: { [key: string]: string }; + tags?: Record; } export namespace GetJobResponse { @@ -1090,7 +1090,7 @@ export interface JobSummary { *

A tag object that consists of a key and an optional value, used to manage metadata for * Amazon Braket resources.

*/ - tags?: { [key: string]: string }; + tags?: Record; } export namespace JobSummary { @@ -1146,7 +1146,7 @@ export interface ListTagsForResourceResponse { /** *

Displays the key, value pairs of tags associated with this resource.

*/ - tags?: { [key: string]: string }; + tags?: Record; } export namespace ListTagsForResourceResponse { @@ -1239,7 +1239,7 @@ export interface CreateQuantumTaskRequest { /** *

Tags to be added to the quantum task you're creating.

*/ - tags?: { [key: string]: string }; + tags?: Record; /** *

The token for an Amazon Braket job that associates it with the quantum task.

@@ -1371,7 +1371,7 @@ export interface GetQuantumTaskResponse { /** *

The tags that belong to this task.

*/ - tags?: { [key: string]: string }; + tags?: Record; /** *

The ARN of the Amazon Braket job associated with the quantum task.

@@ -1500,7 +1500,7 @@ export interface QuantumTaskSummary { /** *

Displays the key, value pairs of tags associated with this quantum task.

*/ - tags?: { [key: string]: string }; + tags?: Record; } export namespace QuantumTaskSummary { @@ -1546,7 +1546,7 @@ export interface TagResourceRequest { /** *

Specify the tags to add to the resource.

*/ - tags: { [key: string]: string } | undefined; + tags: Record | undefined; } export namespace TagResourceRequest { diff --git a/clients/client-braket/src/protocols/Aws_restJson1.ts b/clients/client-braket/src/protocols/Aws_restJson1.ts index 940e305f9db8..e14a90c5a64b 100644 --- a/clients/client-braket/src/protocols/Aws_restJson1.ts +++ b/clients/client-braket/src/protocols/Aws_restJson1.ts @@ -1529,7 +1529,7 @@ const serializeAws_restJson1DeviceConfig = (input: DeviceConfig, context: __Serd }; }; -const serializeAws_restJson1HyperParameters = (input: { [key: string]: string }, context: __SerdeContext): any => { +const serializeAws_restJson1HyperParameters = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -1682,7 +1682,7 @@ const serializeAws_restJson1String256List = (input: string[], context: __SerdeCo }); }; -const serializeAws_restJson1TagsMap = (input: { [key: string]: string }, context: __SerdeContext): any => { +const serializeAws_restJson1TagsMap = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -1753,8 +1753,8 @@ const deserializeAws_restJson1DeviceSummaryList = (output: any, context: __Serde return retVal; }; -const deserializeAws_restJson1HyperParameters = (output: any, context: __SerdeContext): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +const deserializeAws_restJson1HyperParameters = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -1925,8 +1925,8 @@ const deserializeAws_restJson1ScriptModeConfig = (output: any, context: __SerdeC } as any; }; -const deserializeAws_restJson1TagsMap = (output: any, context: __SerdeContext): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +const deserializeAws_restJson1TagsMap = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } diff --git a/clients/client-budgets/src/models/models_0.ts b/clients/client-budgets/src/models/models_0.ts index a441fac9086a..74afc8cf47e8 100644 --- a/clients/client-budgets/src/models/models_0.ts +++ b/clients/client-budgets/src/models/models_0.ts @@ -708,7 +708,7 @@ export interface Budget { * BudgetLimit. They don't contain * PlannedBudgetLimits.

*/ - PlannedBudgetLimits?: { [key: string]: Spend }; + PlannedBudgetLimits?: Record; /** *

The cost filters, such as Region, Service, member account, Tag, or Cost Category, that are applied to a budget.

@@ -731,7 +731,7 @@ export interface Budget { * * */ - CostFilters?: { [key: string]: string[] }; + CostFilters?: Record; /** *

The types of costs that are included in this COST budget.

@@ -1933,7 +1933,7 @@ export interface BudgetPerformanceHistory { /** *

The history of the cost filters for a budget during the specified time period.

*/ - CostFilters?: { [key: string]: string[] }; + CostFilters?: Record; /** *

The history of the cost types for a budget during the specified time period.

diff --git a/clients/client-budgets/src/protocols/Aws_json1_1.ts b/clients/client-budgets/src/protocols/Aws_json1_1.ts index 89ec16bb1855..68f2e474a1c0 100644 --- a/clients/client-budgets/src/protocols/Aws_json1_1.ts +++ b/clients/client-budgets/src/protocols/Aws_json1_1.ts @@ -1895,7 +1895,7 @@ const serializeAws_json1_1CalculatedSpend = (input: CalculatedSpend, context: __ }; }; -const serializeAws_json1_1CostFilters = (input: { [key: string]: string[] }, context: __SerdeContext): any => { +const serializeAws_json1_1CostFilters = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -2271,7 +2271,7 @@ const serializeAws_json1_1NotificationWithSubscribersList = ( }); }; -const serializeAws_json1_1PlannedBudgetLimits = (input: { [key: string]: Spend }, context: __SerdeContext): any => { +const serializeAws_json1_1PlannedBudgetLimits = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -2680,8 +2680,8 @@ const deserializeAws_json1_1CalculatedSpend = (output: any, context: __SerdeCont } as any; }; -const deserializeAws_json1_1CostFilters = (output: any, context: __SerdeContext): { [key: string]: string[] } => { - return Object.entries(output).reduce((acc: { [key: string]: string[] }, [key, value]: [string, any]) => { +const deserializeAws_json1_1CostFilters = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -3065,8 +3065,8 @@ const deserializeAws_json1_1Notifications = (output: any, context: __SerdeContex return retVal; }; -const deserializeAws_json1_1PlannedBudgetLimits = (output: any, context: __SerdeContext): { [key: string]: Spend } => { - return Object.entries(output).reduce((acc: { [key: string]: Spend }, [key, value]: [string, any]) => { +const deserializeAws_json1_1PlannedBudgetLimits = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } diff --git a/clients/client-chime-sdk-messaging/src/models/models_0.ts b/clients/client-chime-sdk-messaging/src/models/models_0.ts index ac828b96a5d3..44512afbdb72 100644 --- a/clients/client-chime-sdk-messaging/src/models/models_0.ts +++ b/clients/client-chime-sdk-messaging/src/models/models_0.ts @@ -808,7 +808,7 @@ export interface ChannelMessageCallback { /** *

The attributes for the message, used for message filtering along with a FilterRule defined in the PushNotificationPreferences.

*/ - MessageAttributes?: { [key: string]: MessageAttributeValue }; + MessageAttributes?: Record; } export namespace ChannelMessageCallback { @@ -1212,7 +1212,7 @@ export interface ChannelMessage { /** *

The attributes for the message, used for message filtering along with a FilterRule defined in the PushNotificationPreferences.

*/ - MessageAttributes?: { [key: string]: MessageAttributeValue }; + MessageAttributes?: Record; } export namespace ChannelMessage { @@ -1294,7 +1294,7 @@ export interface ChannelMessageSummary { /** *

The message attribues listed in a the summary of a channel message.

*/ - MessageAttributes?: { [key: string]: MessageAttributeValue }; + MessageAttributes?: Record; } export namespace ChannelMessageSummary { @@ -3117,7 +3117,7 @@ export interface SendChannelMessageRequest { /** *

The attributes for the message, used for message filtering along with a FilterRule defined in the PushNotificationPreferences.

*/ - MessageAttributes?: { [key: string]: MessageAttributeValue }; + MessageAttributes?: Record; } export namespace SendChannelMessageRequest { diff --git a/clients/client-chime-sdk-messaging/src/protocols/Aws_restJson1.ts b/clients/client-chime-sdk-messaging/src/protocols/Aws_restJson1.ts index 2135d848d87d..70a09ee0a8c4 100644 --- a/clients/client-chime-sdk-messaging/src/protocols/Aws_restJson1.ts +++ b/clients/client-chime-sdk-messaging/src/protocols/Aws_restJson1.ts @@ -4838,7 +4838,7 @@ const serializeAws_restJson1MemberArns = (input: string[], context: __SerdeConte }; const serializeAws_restJson1MessageAttributeMap = ( - input: { [key: string]: MessageAttributeValue }, + input: Record, context: __SerdeContext ): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { @@ -5463,8 +5463,8 @@ const deserializeAws_restJson1Members = (output: any, context: __SerdeContext): const deserializeAws_restJson1MessageAttributeMap = ( output: any, context: __SerdeContext -): { [key: string]: MessageAttributeValue } => { - return Object.entries(output).reduce((acc: { [key: string]: MessageAttributeValue }, [key, value]: [string, any]) => { +): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } diff --git a/clients/client-chime/src/models/models_0.ts b/clients/client-chime/src/models/models_0.ts index a6932b1959dd..da2042bb48ae 100644 --- a/clients/client-chime/src/models/models_0.ts +++ b/clients/client-chime/src/models/models_0.ts @@ -4160,7 +4160,7 @@ export interface CreateSipMediaApplicationCallRequest { /** *

The SIP headers added to an outbound call leg.

*/ - SipHeaders?: { [key: string]: string }; + SipHeaders?: Record; } export namespace CreateSipMediaApplicationCallRequest { diff --git a/clients/client-chime/src/models/models_1.ts b/clients/client-chime/src/models/models_1.ts index 722772dd2c4c..a6d65c9a70b5 100644 --- a/clients/client-chime/src/models/models_1.ts +++ b/clients/client-chime/src/models/models_1.ts @@ -4315,7 +4315,7 @@ export interface UpdateSipMediaApplicationCallRequest { /** *

Arguments made available to the Lambda function as part of the CALL_UPDATE_REQUESTED event. Can contain 0-20 key-value pairs.

*/ - Arguments: { [key: string]: string } | undefined; + Arguments: Record | undefined; } export namespace UpdateSipMediaApplicationCallRequest { diff --git a/clients/client-chime/src/protocols/Aws_restJson1.ts b/clients/client-chime/src/protocols/Aws_restJson1.ts index fa3001166ab4..dd4c66543f76 100644 --- a/clients/client-chime/src/protocols/Aws_restJson1.ts +++ b/clients/client-chime/src/protocols/Aws_restJson1.ts @@ -20329,7 +20329,7 @@ const serializeAws_restJson1SigninDelegateGroupList = (input: SigninDelegateGrou }); }; -const serializeAws_restJson1SipHeadersMap = (input: { [key: string]: string }, context: __SerdeContext): any => { +const serializeAws_restJson1SipHeadersMap = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -20403,7 +20403,7 @@ const serializeAws_restJson1SipRuleTargetApplicationList = ( }; const serializeAws_restJson1SMAUpdateCallArgumentsMap = ( - input: { [key: string]: string }, + input: Record, context: __SerdeContext ): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { diff --git a/clients/client-clouddirectory/src/models/models_0.ts b/clients/client-clouddirectory/src/models/models_0.ts index 28d14fb1173a..f29a9656c135 100644 --- a/clients/client-clouddirectory/src/models/models_0.ts +++ b/clients/client-clouddirectory/src/models/models_0.ts @@ -1839,7 +1839,7 @@ export interface BatchListObjectChildrenResponse { *

The children structure, which is a map with the key as the LinkName and * ObjectIdentifier as the value.

*/ - Children?: { [key: string]: string }; + Children?: Record; /** *

The pagination token.

@@ -3429,7 +3429,7 @@ export interface Rule { /** *

The minimum and maximum parameters that are associated with the rule.

*/ - Parameters?: { [key: string]: string }; + Parameters?: Record; } export namespace Rule { @@ -3472,7 +3472,7 @@ export interface FacetAttributeDefinition { /** *

Validation rules attached to the attribute definition.

*/ - Rules?: { [key: string]: Rule }; + Rules?: Record; } export namespace FacetAttributeDefinition { @@ -3871,7 +3871,7 @@ export interface TypedLinkAttributeDefinition { /** *

Validation rules that are attached to the attribute definition.

*/ - Rules?: { [key: string]: Rule }; + Rules?: Record; /** *

The required behavior of the TypedLinkAttributeDefinition.

@@ -5535,7 +5535,7 @@ export interface ListObjectChildrenResponse { *

Children structure, which is a map with key as the LinkName and * ObjectIdentifier as the value.

*/ - Children?: { [key: string]: string }; + Children?: Record; /** *

The pagination token.

@@ -5677,7 +5677,7 @@ export interface ListObjectParentsResponse { *

The parent structure, which is a map with key as the ObjectIdentifier and * LinkName as the value.

*/ - Parents?: { [key: string]: string }; + Parents?: Record; /** *

The pagination token.

diff --git a/clients/client-clouddirectory/src/protocols/Aws_restJson1.ts b/clients/client-clouddirectory/src/protocols/Aws_restJson1.ts index 45b8e4f419ca..899bc80db010 100644 --- a/clients/client-clouddirectory/src/protocols/Aws_restJson1.ts +++ b/clients/client-clouddirectory/src/protocols/Aws_restJson1.ts @@ -8238,7 +8238,7 @@ const serializeAws_restJson1Rule = (input: Rule, context: __SerdeContext): any = }; }; -const serializeAws_restJson1RuleMap = (input: { [key: string]: Rule }, context: __SerdeContext): any => { +const serializeAws_restJson1RuleMap = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -8250,7 +8250,7 @@ const serializeAws_restJson1RuleMap = (input: { [key: string]: Rule }, context: }, {}); }; -const serializeAws_restJson1RuleParameterMap = (input: { [key: string]: string }, context: __SerdeContext): any => { +const serializeAws_restJson1RuleParameterMap = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -9167,8 +9167,8 @@ const deserializeAws_restJson1IndexAttachmentList = (output: any, context: __Ser const deserializeAws_restJson1LinkNameToObjectIdentifierMap = ( output: any, context: __SerdeContext -): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -9219,8 +9219,8 @@ const deserializeAws_restJson1ObjectIdentifierList = (output: any, context: __Se const deserializeAws_restJson1ObjectIdentifierToLinkNameMap = ( output: any, context: __SerdeContext -): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -9317,8 +9317,8 @@ const deserializeAws_restJson1Rule = (output: any, context: __SerdeContext): Rul } as any; }; -const deserializeAws_restJson1RuleMap = (output: any, context: __SerdeContext): { [key: string]: Rule } => { - return Object.entries(output).reduce((acc: { [key: string]: Rule }, [key, value]: [string, any]) => { +const deserializeAws_restJson1RuleMap = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -9329,8 +9329,8 @@ const deserializeAws_restJson1RuleMap = (output: any, context: __SerdeContext): }, {}); }; -const deserializeAws_restJson1RuleParameterMap = (output: any, context: __SerdeContext): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +const deserializeAws_restJson1RuleParameterMap = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } diff --git a/clients/client-cloudformation/src/models/models_0.ts b/clients/client-cloudformation/src/models/models_0.ts index 03717da2c7ab..1148e081f69a 100644 --- a/clients/client-cloudformation/src/models/models_0.ts +++ b/clients/client-cloudformation/src/models/models_0.ts @@ -1416,7 +1416,7 @@ export interface ResourceToImport { * (for example, BucketName for AWS::S3::Bucket resources) and the * value is the actual property value (for example, MyS3Bucket).

*/ - ResourceIdentifier: { [key: string]: string } | undefined; + ResourceIdentifier: Record | undefined; } export namespace ResourceToImport { diff --git a/clients/client-cloudformation/src/protocols/Aws_query.ts b/clients/client-cloudformation/src/protocols/Aws_query.ts index 0c13872259e6..43b11d059391 100644 --- a/clients/client-cloudformation/src/protocols/Aws_query.ts +++ b/clients/client-cloudformation/src/protocols/Aws_query.ts @@ -6042,7 +6042,7 @@ const serializeAws_queryRegisterTypeInput = (input: RegisterTypeInput, context: }; const serializeAws_queryResourceIdentifierProperties = ( - input: { [key: string]: string }, + input: Record, context: __SerdeContext ): any => { const entries: any = {}; diff --git a/clients/client-cloudfront/src/protocols/Aws_restXml.ts b/clients/client-cloudfront/src/protocols/Aws_restXml.ts index 534cdefde21c..4d16a4148a3e 100644 --- a/clients/client-cloudfront/src/protocols/Aws_restXml.ts +++ b/clients/client-cloudfront/src/protocols/Aws_restXml.ts @@ -3693,7 +3693,7 @@ export const deserializeAws_restXmlCreateCachePolicyCommand = async ( if (output.headers["etag"] !== undefined) { contents.ETag = output.headers["etag"]; } - const data: { [key: string]: any } | undefined = __expectObject(await parseBody(output.body, context)); + const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.CachePolicy = deserializeAws_restXmlCachePolicy(data, context); return Promise.resolve(contents); }; @@ -3764,7 +3764,7 @@ export const deserializeAws_restXmlCreateCloudFrontOriginAccessIdentityCommand = if (output.headers["etag"] !== undefined) { contents.ETag = output.headers["etag"]; } - const data: { [key: string]: any } | undefined = __expectObject(await parseBody(output.body, context)); + const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.CloudFrontOriginAccessIdentity = deserializeAws_restXmlCloudFrontOriginAccessIdentity(data, context); return Promise.resolve(contents); }; @@ -3826,7 +3826,7 @@ export const deserializeAws_restXmlCreateDistributionCommand = async ( if (output.headers["etag"] !== undefined) { contents.ETag = output.headers["etag"]; } - const data: { [key: string]: any } | undefined = __expectObject(await parseBody(output.body, context)); + const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.Distribution = deserializeAws_restXmlDistribution(data, context); return Promise.resolve(contents); }; @@ -4062,7 +4062,7 @@ export const deserializeAws_restXmlCreateDistributionWithTagsCommand = async ( if (output.headers["etag"] !== undefined) { contents.ETag = output.headers["etag"]; } - const data: { [key: string]: any } | undefined = __expectObject(await parseBody(output.body, context)); + const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.Distribution = deserializeAws_restXmlDistribution(data, context); return Promise.resolve(contents); }; @@ -4301,7 +4301,7 @@ export const deserializeAws_restXmlCreateFieldLevelEncryptionConfigCommand = asy if (output.headers["etag"] !== undefined) { contents.ETag = output.headers["etag"]; } - const data: { [key: string]: any } | undefined = __expectObject(await parseBody(output.body, context)); + const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.FieldLevelEncryption = deserializeAws_restXmlFieldLevelEncryption(data, context); return Promise.resolve(contents); }; @@ -4372,7 +4372,7 @@ export const deserializeAws_restXmlCreateFieldLevelEncryptionProfileCommand = as if (output.headers["etag"] !== undefined) { contents.ETag = output.headers["etag"]; } - const data: { [key: string]: any } | undefined = __expectObject(await parseBody(output.body, context)); + const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.FieldLevelEncryptionProfile = deserializeAws_restXmlFieldLevelEncryptionProfile(data, context); return Promise.resolve(contents); }; @@ -4443,7 +4443,7 @@ export const deserializeAws_restXmlCreateFunctionCommand = async ( if (output.headers["etag"] !== undefined) { contents.ETag = output.headers["etag"]; } - const data: { [key: string]: any } | undefined = __expectObject(await parseBody(output.body, context)); + const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.FunctionSummary = deserializeAws_restXmlFunctionSummary(data, context); return Promise.resolve(contents); }; @@ -4501,7 +4501,7 @@ export const deserializeAws_restXmlCreateInvalidationCommand = async ( if (output.headers["location"] !== undefined) { contents.Location = output.headers["location"]; } - const data: { [key: string]: any } | undefined = __expectObject(await parseBody(output.body, context)); + const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.Invalidation = deserializeAws_restXmlInvalidation(data, context); return Promise.resolve(contents); }; @@ -4569,7 +4569,7 @@ export const deserializeAws_restXmlCreateKeyGroupCommand = async ( if (output.headers["etag"] !== undefined) { contents.ETag = output.headers["etag"]; } - const data: { [key: string]: any } | undefined = __expectObject(await parseBody(output.body, context)); + const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.KeyGroup = deserializeAws_restXmlKeyGroup(data, context); return Promise.resolve(contents); }; @@ -4620,7 +4620,7 @@ export const deserializeAws_restXmlCreateMonitoringSubscriptionCommand = async ( $metadata: deserializeMetadata(output), MonitoringSubscription: undefined, }; - const data: { [key: string]: any } | undefined = __expectObject(await parseBody(output.body, context)); + const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.MonitoringSubscription = deserializeAws_restXmlMonitoringSubscription(data, context); return Promise.resolve(contents); }; @@ -4676,7 +4676,7 @@ export const deserializeAws_restXmlCreateOriginRequestPolicyCommand = async ( if (output.headers["etag"] !== undefined) { contents.ETag = output.headers["etag"]; } - const data: { [key: string]: any } | undefined = __expectObject(await parseBody(output.body, context)); + const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.OriginRequestPolicy = deserializeAws_restXmlOriginRequestPolicy(data, context); return Promise.resolve(contents); }; @@ -4747,7 +4747,7 @@ export const deserializeAws_restXmlCreatePublicKeyCommand = async ( if (output.headers["etag"] !== undefined) { contents.ETag = output.headers["etag"]; } - const data: { [key: string]: any } | undefined = __expectObject(await parseBody(output.body, context)); + const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.PublicKey = deserializeAws_restXmlPublicKey(data, context); return Promise.resolve(contents); }; @@ -4856,7 +4856,7 @@ export const deserializeAws_restXmlCreateResponseHeadersPolicyCommand = async ( if (output.headers["etag"] !== undefined) { contents.ETag = output.headers["etag"]; } - const data: { [key: string]: any } | undefined = __expectObject(await parseBody(output.body, context)); + const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.ResponseHeadersPolicy = deserializeAws_restXmlResponseHeadersPolicy(data, context); return Promise.resolve(contents); }; @@ -4924,7 +4924,7 @@ export const deserializeAws_restXmlCreateStreamingDistributionCommand = async ( if (output.headers["etag"] !== undefined) { contents.ETag = output.headers["etag"]; } - const data: { [key: string]: any } | undefined = __expectObject(await parseBody(output.body, context)); + const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.StreamingDistribution = deserializeAws_restXmlStreamingDistribution(data, context); return Promise.resolve(contents); }; @@ -5007,7 +5007,7 @@ export const deserializeAws_restXmlCreateStreamingDistributionWithTagsCommand = if (output.headers["etag"] !== undefined) { contents.ETag = output.headers["etag"]; } - const data: { [key: string]: any } | undefined = __expectObject(await parseBody(output.body, context)); + const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.StreamingDistribution = deserializeAws_restXmlStreamingDistribution(data, context); return Promise.resolve(contents); }; @@ -5762,7 +5762,7 @@ export const deserializeAws_restXmlDescribeFunctionCommand = async ( if (output.headers["etag"] !== undefined) { contents.ETag = output.headers["etag"]; } - const data: { [key: string]: any } | undefined = __expectObject(await parseBody(output.body, context)); + const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.FunctionSummary = deserializeAws_restXmlFunctionSummary(data, context); return Promise.resolve(contents); }; @@ -5811,7 +5811,7 @@ export const deserializeAws_restXmlGetCachePolicyCommand = async ( if (output.headers["etag"] !== undefined) { contents.ETag = output.headers["etag"]; } - const data: { [key: string]: any } | undefined = __expectObject(await parseBody(output.body, context)); + const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.CachePolicy = deserializeAws_restXmlCachePolicy(data, context); return Promise.resolve(contents); }; @@ -5860,7 +5860,7 @@ export const deserializeAws_restXmlGetCachePolicyConfigCommand = async ( if (output.headers["etag"] !== undefined) { contents.ETag = output.headers["etag"]; } - const data: { [key: string]: any } | undefined = __expectObject(await parseBody(output.body, context)); + const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.CachePolicyConfig = deserializeAws_restXmlCachePolicyConfig(data, context); return Promise.resolve(contents); }; @@ -5909,7 +5909,7 @@ export const deserializeAws_restXmlGetCloudFrontOriginAccessIdentityCommand = as if (output.headers["etag"] !== undefined) { contents.ETag = output.headers["etag"]; } - const data: { [key: string]: any } | undefined = __expectObject(await parseBody(output.body, context)); + const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.CloudFrontOriginAccessIdentity = deserializeAws_restXmlCloudFrontOriginAccessIdentity(data, context); return Promise.resolve(contents); }; @@ -5958,7 +5958,7 @@ export const deserializeAws_restXmlGetCloudFrontOriginAccessIdentityConfigComman if (output.headers["etag"] !== undefined) { contents.ETag = output.headers["etag"]; } - const data: { [key: string]: any } | undefined = __expectObject(await parseBody(output.body, context)); + const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.CloudFrontOriginAccessIdentityConfig = deserializeAws_restXmlCloudFrontOriginAccessIdentityConfig( data, context @@ -6010,7 +6010,7 @@ export const deserializeAws_restXmlGetDistributionCommand = async ( if (output.headers["etag"] !== undefined) { contents.ETag = output.headers["etag"]; } - const data: { [key: string]: any } | undefined = __expectObject(await parseBody(output.body, context)); + const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.Distribution = deserializeAws_restXmlDistribution(data, context); return Promise.resolve(contents); }; @@ -6059,7 +6059,7 @@ export const deserializeAws_restXmlGetDistributionConfigCommand = async ( if (output.headers["etag"] !== undefined) { contents.ETag = output.headers["etag"]; } - const data: { [key: string]: any } | undefined = __expectObject(await parseBody(output.body, context)); + const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.DistributionConfig = deserializeAws_restXmlDistributionConfig(data, context); return Promise.resolve(contents); }; @@ -6108,7 +6108,7 @@ export const deserializeAws_restXmlGetFieldLevelEncryptionCommand = async ( if (output.headers["etag"] !== undefined) { contents.ETag = output.headers["etag"]; } - const data: { [key: string]: any } | undefined = __expectObject(await parseBody(output.body, context)); + const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.FieldLevelEncryption = deserializeAws_restXmlFieldLevelEncryption(data, context); return Promise.resolve(contents); }; @@ -6157,7 +6157,7 @@ export const deserializeAws_restXmlGetFieldLevelEncryptionConfigCommand = async if (output.headers["etag"] !== undefined) { contents.ETag = output.headers["etag"]; } - const data: { [key: string]: any } | undefined = __expectObject(await parseBody(output.body, context)); + const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.FieldLevelEncryptionConfig = deserializeAws_restXmlFieldLevelEncryptionConfig(data, context); return Promise.resolve(contents); }; @@ -6206,7 +6206,7 @@ export const deserializeAws_restXmlGetFieldLevelEncryptionProfileCommand = async if (output.headers["etag"] !== undefined) { contents.ETag = output.headers["etag"]; } - const data: { [key: string]: any } | undefined = __expectObject(await parseBody(output.body, context)); + const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.FieldLevelEncryptionProfile = deserializeAws_restXmlFieldLevelEncryptionProfile(data, context); return Promise.resolve(contents); }; @@ -6255,7 +6255,7 @@ export const deserializeAws_restXmlGetFieldLevelEncryptionProfileConfigCommand = if (output.headers["etag"] !== undefined) { contents.ETag = output.headers["etag"]; } - const data: { [key: string]: any } | undefined = __expectObject(await parseBody(output.body, context)); + const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.FieldLevelEncryptionProfileConfig = deserializeAws_restXmlFieldLevelEncryptionProfileConfig(data, context); return Promise.resolve(contents); }; @@ -6353,7 +6353,7 @@ export const deserializeAws_restXmlGetInvalidationCommand = async ( $metadata: deserializeMetadata(output), Invalidation: undefined, }; - const data: { [key: string]: any } | undefined = __expectObject(await parseBody(output.body, context)); + const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.Invalidation = deserializeAws_restXmlInvalidation(data, context); return Promise.resolve(contents); }; @@ -6405,7 +6405,7 @@ export const deserializeAws_restXmlGetKeyGroupCommand = async ( if (output.headers["etag"] !== undefined) { contents.ETag = output.headers["etag"]; } - const data: { [key: string]: any } | undefined = __expectObject(await parseBody(output.body, context)); + const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.KeyGroup = deserializeAws_restXmlKeyGroup(data, context); return Promise.resolve(contents); }; @@ -6451,7 +6451,7 @@ export const deserializeAws_restXmlGetKeyGroupConfigCommand = async ( if (output.headers["etag"] !== undefined) { contents.ETag = output.headers["etag"]; } - const data: { [key: string]: any } | undefined = __expectObject(await parseBody(output.body, context)); + const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.KeyGroupConfig = deserializeAws_restXmlKeyGroupConfig(data, context); return Promise.resolve(contents); }; @@ -6493,7 +6493,7 @@ export const deserializeAws_restXmlGetMonitoringSubscriptionCommand = async ( $metadata: deserializeMetadata(output), MonitoringSubscription: undefined, }; - const data: { [key: string]: any } | undefined = __expectObject(await parseBody(output.body, context)); + const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.MonitoringSubscription = deserializeAws_restXmlMonitoringSubscription(data, context); return Promise.resolve(contents); }; @@ -6545,7 +6545,7 @@ export const deserializeAws_restXmlGetOriginRequestPolicyCommand = async ( if (output.headers["etag"] !== undefined) { contents.ETag = output.headers["etag"]; } - const data: { [key: string]: any } | undefined = __expectObject(await parseBody(output.body, context)); + const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.OriginRequestPolicy = deserializeAws_restXmlOriginRequestPolicy(data, context); return Promise.resolve(contents); }; @@ -6594,7 +6594,7 @@ export const deserializeAws_restXmlGetOriginRequestPolicyConfigCommand = async ( if (output.headers["etag"] !== undefined) { contents.ETag = output.headers["etag"]; } - const data: { [key: string]: any } | undefined = __expectObject(await parseBody(output.body, context)); + const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.OriginRequestPolicyConfig = deserializeAws_restXmlOriginRequestPolicyConfig(data, context); return Promise.resolve(contents); }; @@ -6643,7 +6643,7 @@ export const deserializeAws_restXmlGetPublicKeyCommand = async ( if (output.headers["etag"] !== undefined) { contents.ETag = output.headers["etag"]; } - const data: { [key: string]: any } | undefined = __expectObject(await parseBody(output.body, context)); + const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.PublicKey = deserializeAws_restXmlPublicKey(data, context); return Promise.resolve(contents); }; @@ -6692,7 +6692,7 @@ export const deserializeAws_restXmlGetPublicKeyConfigCommand = async ( if (output.headers["etag"] !== undefined) { contents.ETag = output.headers["etag"]; } - const data: { [key: string]: any } | undefined = __expectObject(await parseBody(output.body, context)); + const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.PublicKeyConfig = deserializeAws_restXmlPublicKeyConfig(data, context); return Promise.resolve(contents); }; @@ -6791,7 +6791,7 @@ export const deserializeAws_restXmlGetResponseHeadersPolicyCommand = async ( if (output.headers["etag"] !== undefined) { contents.ETag = output.headers["etag"]; } - const data: { [key: string]: any } | undefined = __expectObject(await parseBody(output.body, context)); + const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.ResponseHeadersPolicy = deserializeAws_restXmlResponseHeadersPolicy(data, context); return Promise.resolve(contents); }; @@ -6840,7 +6840,7 @@ export const deserializeAws_restXmlGetResponseHeadersPolicyConfigCommand = async if (output.headers["etag"] !== undefined) { contents.ETag = output.headers["etag"]; } - const data: { [key: string]: any } | undefined = __expectObject(await parseBody(output.body, context)); + const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.ResponseHeadersPolicyConfig = deserializeAws_restXmlResponseHeadersPolicyConfig(data, context); return Promise.resolve(contents); }; @@ -6889,7 +6889,7 @@ export const deserializeAws_restXmlGetStreamingDistributionCommand = async ( if (output.headers["etag"] !== undefined) { contents.ETag = output.headers["etag"]; } - const data: { [key: string]: any } | undefined = __expectObject(await parseBody(output.body, context)); + const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.StreamingDistribution = deserializeAws_restXmlStreamingDistribution(data, context); return Promise.resolve(contents); }; @@ -6938,7 +6938,7 @@ export const deserializeAws_restXmlGetStreamingDistributionConfigCommand = async if (output.headers["etag"] !== undefined) { contents.ETag = output.headers["etag"]; } - const data: { [key: string]: any } | undefined = __expectObject(await parseBody(output.body, context)); + const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.StreamingDistributionConfig = deserializeAws_restXmlStreamingDistributionConfig(data, context); return Promise.resolve(contents); }; @@ -6983,7 +6983,7 @@ export const deserializeAws_restXmlListCachePoliciesCommand = async ( $metadata: deserializeMetadata(output), CachePolicyList: undefined, }; - const data: { [key: string]: any } | undefined = __expectObject(await parseBody(output.body, context)); + const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.CachePolicyList = deserializeAws_restXmlCachePolicyList(data, context); return Promise.resolve(contents); }; @@ -7031,7 +7031,7 @@ export const deserializeAws_restXmlListCloudFrontOriginAccessIdentitiesCommand = $metadata: deserializeMetadata(output), CloudFrontOriginAccessIdentityList: undefined, }; - const data: { [key: string]: any } | undefined = __expectObject(await parseBody(output.body, context)); + const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.CloudFrontOriginAccessIdentityList = deserializeAws_restXmlCloudFrontOriginAccessIdentityList(data, context); return Promise.resolve(contents); }; @@ -7073,7 +7073,7 @@ export const deserializeAws_restXmlListConflictingAliasesCommand = async ( $metadata: deserializeMetadata(output), ConflictingAliasesList: undefined, }; - const data: { [key: string]: any } | undefined = __expectObject(await parseBody(output.body, context)); + const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.ConflictingAliasesList = deserializeAws_restXmlConflictingAliasesList(data, context); return Promise.resolve(contents); }; @@ -7118,7 +7118,7 @@ export const deserializeAws_restXmlListDistributionsCommand = async ( $metadata: deserializeMetadata(output), DistributionList: undefined, }; - const data: { [key: string]: any } | undefined = __expectObject(await parseBody(output.body, context)); + const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.DistributionList = deserializeAws_restXmlDistributionList(data, context); return Promise.resolve(contents); }; @@ -7160,7 +7160,7 @@ export const deserializeAws_restXmlListDistributionsByCachePolicyIdCommand = asy $metadata: deserializeMetadata(output), DistributionIdList: undefined, }; - const data: { [key: string]: any } | undefined = __expectObject(await parseBody(output.body, context)); + const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.DistributionIdList = deserializeAws_restXmlDistributionIdList(data, context); return Promise.resolve(contents); }; @@ -7208,7 +7208,7 @@ export const deserializeAws_restXmlListDistributionsByKeyGroupCommand = async ( $metadata: deserializeMetadata(output), DistributionIdList: undefined, }; - const data: { [key: string]: any } | undefined = __expectObject(await parseBody(output.body, context)); + const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.DistributionIdList = deserializeAws_restXmlDistributionIdList(data, context); return Promise.resolve(contents); }; @@ -7253,7 +7253,7 @@ export const deserializeAws_restXmlListDistributionsByOriginRequestPolicyIdComma $metadata: deserializeMetadata(output), DistributionIdList: undefined, }; - const data: { [key: string]: any } | undefined = __expectObject(await parseBody(output.body, context)); + const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.DistributionIdList = deserializeAws_restXmlDistributionIdList(data, context); return Promise.resolve(contents); }; @@ -7301,7 +7301,7 @@ export const deserializeAws_restXmlListDistributionsByRealtimeLogConfigCommand = $metadata: deserializeMetadata(output), DistributionList: undefined, }; - const data: { [key: string]: any } | undefined = __expectObject(await parseBody(output.body, context)); + const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.DistributionList = deserializeAws_restXmlDistributionList(data, context); return Promise.resolve(contents); }; @@ -7343,7 +7343,7 @@ export const deserializeAws_restXmlListDistributionsByResponseHeadersPolicyIdCom $metadata: deserializeMetadata(output), DistributionIdList: undefined, }; - const data: { [key: string]: any } | undefined = __expectObject(await parseBody(output.body, context)); + const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.DistributionIdList = deserializeAws_restXmlDistributionIdList(data, context); return Promise.resolve(contents); }; @@ -7391,7 +7391,7 @@ export const deserializeAws_restXmlListDistributionsByWebACLIdCommand = async ( $metadata: deserializeMetadata(output), DistributionList: undefined, }; - const data: { [key: string]: any } | undefined = __expectObject(await parseBody(output.body, context)); + const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.DistributionList = deserializeAws_restXmlDistributionList(data, context); return Promise.resolve(contents); }; @@ -7436,7 +7436,7 @@ export const deserializeAws_restXmlListFieldLevelEncryptionConfigsCommand = asyn $metadata: deserializeMetadata(output), FieldLevelEncryptionList: undefined, }; - const data: { [key: string]: any } | undefined = __expectObject(await parseBody(output.body, context)); + const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.FieldLevelEncryptionList = deserializeAws_restXmlFieldLevelEncryptionList(data, context); return Promise.resolve(contents); }; @@ -7478,7 +7478,7 @@ export const deserializeAws_restXmlListFieldLevelEncryptionProfilesCommand = asy $metadata: deserializeMetadata(output), FieldLevelEncryptionProfileList: undefined, }; - const data: { [key: string]: any } | undefined = __expectObject(await parseBody(output.body, context)); + const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.FieldLevelEncryptionProfileList = deserializeAws_restXmlFieldLevelEncryptionProfileList(data, context); return Promise.resolve(contents); }; @@ -7520,7 +7520,7 @@ export const deserializeAws_restXmlListFunctionsCommand = async ( $metadata: deserializeMetadata(output), FunctionList: undefined, }; - const data: { [key: string]: any } | undefined = __expectObject(await parseBody(output.body, context)); + const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.FunctionList = deserializeAws_restXmlFunctionList(data, context); return Promise.resolve(contents); }; @@ -7565,7 +7565,7 @@ export const deserializeAws_restXmlListInvalidationsCommand = async ( $metadata: deserializeMetadata(output), InvalidationList: undefined, }; - const data: { [key: string]: any } | undefined = __expectObject(await parseBody(output.body, context)); + const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.InvalidationList = deserializeAws_restXmlInvalidationList(data, context); return Promise.resolve(contents); }; @@ -7613,7 +7613,7 @@ export const deserializeAws_restXmlListKeyGroupsCommand = async ( $metadata: deserializeMetadata(output), KeyGroupList: undefined, }; - const data: { [key: string]: any } | undefined = __expectObject(await parseBody(output.body, context)); + const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.KeyGroupList = deserializeAws_restXmlKeyGroupList(data, context); return Promise.resolve(contents); }; @@ -7655,7 +7655,7 @@ export const deserializeAws_restXmlListOriginRequestPoliciesCommand = async ( $metadata: deserializeMetadata(output), OriginRequestPolicyList: undefined, }; - const data: { [key: string]: any } | undefined = __expectObject(await parseBody(output.body, context)); + const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.OriginRequestPolicyList = deserializeAws_restXmlOriginRequestPolicyList(data, context); return Promise.resolve(contents); }; @@ -7703,7 +7703,7 @@ export const deserializeAws_restXmlListPublicKeysCommand = async ( $metadata: deserializeMetadata(output), PublicKeyList: undefined, }; - const data: { [key: string]: any } | undefined = __expectObject(await parseBody(output.body, context)); + const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.PublicKeyList = deserializeAws_restXmlPublicKeyList(data, context); return Promise.resolve(contents); }; @@ -7745,7 +7745,7 @@ export const deserializeAws_restXmlListRealtimeLogConfigsCommand = async ( $metadata: deserializeMetadata(output), RealtimeLogConfigs: undefined, }; - const data: { [key: string]: any } | undefined = __expectObject(await parseBody(output.body, context)); + const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.RealtimeLogConfigs = deserializeAws_restXmlRealtimeLogConfigs(data, context); return Promise.resolve(contents); }; @@ -7793,7 +7793,7 @@ export const deserializeAws_restXmlListResponseHeadersPoliciesCommand = async ( $metadata: deserializeMetadata(output), ResponseHeadersPolicyList: undefined, }; - const data: { [key: string]: any } | undefined = __expectObject(await parseBody(output.body, context)); + const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.ResponseHeadersPolicyList = deserializeAws_restXmlResponseHeadersPolicyList(data, context); return Promise.resolve(contents); }; @@ -7841,7 +7841,7 @@ export const deserializeAws_restXmlListStreamingDistributionsCommand = async ( $metadata: deserializeMetadata(output), StreamingDistributionList: undefined, }; - const data: { [key: string]: any } | undefined = __expectObject(await parseBody(output.body, context)); + const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.StreamingDistributionList = deserializeAws_restXmlStreamingDistributionList(data, context); return Promise.resolve(contents); }; @@ -7883,7 +7883,7 @@ export const deserializeAws_restXmlListTagsForResourceCommand = async ( $metadata: deserializeMetadata(output), Tags: undefined, }; - const data: { [key: string]: any } | undefined = __expectObject(await parseBody(output.body, context)); + const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.Tags = deserializeAws_restXmlTags(data, context); return Promise.resolve(contents); }; @@ -7934,7 +7934,7 @@ export const deserializeAws_restXmlPublishFunctionCommand = async ( $metadata: deserializeMetadata(output), FunctionSummary: undefined, }; - const data: { [key: string]: any } | undefined = __expectObject(await parseBody(output.body, context)); + const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.FunctionSummary = deserializeAws_restXmlFunctionSummary(data, context); return Promise.resolve(contents); }; @@ -8037,7 +8037,7 @@ export const deserializeAws_restXmlTestFunctionCommand = async ( $metadata: deserializeMetadata(output), TestResult: undefined, }; - const data: { [key: string]: any } | undefined = __expectObject(await parseBody(output.body, context)); + const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.TestResult = deserializeAws_restXmlTestResult(data, context); return Promise.resolve(contents); }; @@ -8144,7 +8144,7 @@ export const deserializeAws_restXmlUpdateCachePolicyCommand = async ( if (output.headers["etag"] !== undefined) { contents.ETag = output.headers["etag"]; } - const data: { [key: string]: any } | undefined = __expectObject(await parseBody(output.body, context)); + const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.CachePolicy = deserializeAws_restXmlCachePolicy(data, context); return Promise.resolve(contents); }; @@ -8220,7 +8220,7 @@ export const deserializeAws_restXmlUpdateCloudFrontOriginAccessIdentityCommand = if (output.headers["etag"] !== undefined) { contents.ETag = output.headers["etag"]; } - const data: { [key: string]: any } | undefined = __expectObject(await parseBody(output.body, context)); + const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.CloudFrontOriginAccessIdentity = deserializeAws_restXmlCloudFrontOriginAccessIdentity(data, context); return Promise.resolve(contents); }; @@ -8287,7 +8287,7 @@ export const deserializeAws_restXmlUpdateDistributionCommand = async ( if (output.headers["etag"] !== undefined) { contents.ETag = output.headers["etag"]; } - const data: { [key: string]: any } | undefined = __expectObject(await parseBody(output.body, context)); + const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.Distribution = deserializeAws_restXmlDistribution(data, context); return Promise.resolve(contents); }; @@ -8519,7 +8519,7 @@ export const deserializeAws_restXmlUpdateFieldLevelEncryptionConfigCommand = asy if (output.headers["etag"] !== undefined) { contents.ETag = output.headers["etag"]; } - const data: { [key: string]: any } | undefined = __expectObject(await parseBody(output.body, context)); + const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.FieldLevelEncryption = deserializeAws_restXmlFieldLevelEncryption(data, context); return Promise.resolve(contents); }; @@ -8595,7 +8595,7 @@ export const deserializeAws_restXmlUpdateFieldLevelEncryptionProfileCommand = as if (output.headers["etag"] !== undefined) { contents.ETag = output.headers["etag"]; } - const data: { [key: string]: any } | undefined = __expectObject(await parseBody(output.body, context)); + const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.FieldLevelEncryptionProfile = deserializeAws_restXmlFieldLevelEncryptionProfile(data, context); return Promise.resolve(contents); }; @@ -8674,7 +8674,7 @@ export const deserializeAws_restXmlUpdateFunctionCommand = async ( if (output.headers["ettag"] !== undefined) { contents.ETag = output.headers["ettag"]; } - const data: { [key: string]: any } | undefined = __expectObject(await parseBody(output.body, context)); + const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.FunctionSummary = deserializeAws_restXmlFunctionSummary(data, context); return Promise.resolve(contents); }; @@ -8735,7 +8735,7 @@ export const deserializeAws_restXmlUpdateKeyGroupCommand = async ( if (output.headers["etag"] !== undefined) { contents.ETag = output.headers["etag"]; } - const data: { [key: string]: any } | undefined = __expectObject(await parseBody(output.body, context)); + const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.KeyGroup = deserializeAws_restXmlKeyGroup(data, context); return Promise.resolve(contents); }; @@ -8796,7 +8796,7 @@ export const deserializeAws_restXmlUpdateOriginRequestPolicyCommand = async ( if (output.headers["etag"] !== undefined) { contents.ETag = output.headers["etag"]; } - const data: { [key: string]: any } | undefined = __expectObject(await parseBody(output.body, context)); + const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.OriginRequestPolicy = deserializeAws_restXmlOriginRequestPolicy(data, context); return Promise.resolve(contents); }; @@ -8872,7 +8872,7 @@ export const deserializeAws_restXmlUpdatePublicKeyCommand = async ( if (output.headers["etag"] !== undefined) { contents.ETag = output.headers["etag"]; } - const data: { [key: string]: any } | undefined = __expectObject(await parseBody(output.body, context)); + const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.PublicKey = deserializeAws_restXmlPublicKey(data, context); return Promise.resolve(contents); }; @@ -8986,7 +8986,7 @@ export const deserializeAws_restXmlUpdateResponseHeadersPolicyCommand = async ( if (output.headers["etag"] !== undefined) { contents.ETag = output.headers["etag"]; } - const data: { [key: string]: any } | undefined = __expectObject(await parseBody(output.body, context)); + const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.ResponseHeadersPolicy = deserializeAws_restXmlResponseHeadersPolicy(data, context); return Promise.resolve(contents); }; @@ -9059,7 +9059,7 @@ export const deserializeAws_restXmlUpdateStreamingDistributionCommand = async ( if (output.headers["etag"] !== undefined) { contents.ETag = output.headers["etag"]; } - const data: { [key: string]: any } | undefined = __expectObject(await parseBody(output.body, context)); + const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.StreamingDistribution = deserializeAws_restXmlStreamingDistribution(data, context); return Promise.resolve(contents); }; diff --git a/clients/client-cloudhsm-v2/src/models/models_0.ts b/clients/client-cloudhsm-v2/src/models/models_0.ts index 024d0ee1c0e1..216a55df5990 100644 --- a/clients/client-cloudhsm-v2/src/models/models_0.ts +++ b/clients/client-cloudhsm-v2/src/models/models_0.ts @@ -582,7 +582,7 @@ export interface Cluster { /** *

A map from availability zone to the cluster’s subnet in that availability zone.

*/ - SubnetMapping?: { [key: string]: string }; + SubnetMapping?: Record; /** *

The identifier (ID) of the virtual private cloud (VPC) that contains the @@ -814,7 +814,7 @@ export interface DescribeBackupsRequest { * backup retention policy. False returns all backups with a backup retention policy * defined at the cluster.

*/ - Filters?: { [key: string]: string[] }; + Filters?: Record; /** *

Designates whether or not to sort the return backups by ascending chronological order @@ -865,7 +865,7 @@ export interface DescribeClustersRequest { *

Use the states filter to return only clusters that match the specified * state.

*/ - Filters?: { [key: string]: string[] }; + Filters?: Record; /** *

The NextToken value that you received in the previous response. Use this diff --git a/clients/client-cloudhsm-v2/src/protocols/Aws_json1_1.ts b/clients/client-cloudhsm-v2/src/protocols/Aws_json1_1.ts index 519145ce1e03..f7c03d8b7eb0 100644 --- a/clients/client-cloudhsm-v2/src/protocols/Aws_json1_1.ts +++ b/clients/client-cloudhsm-v2/src/protocols/Aws_json1_1.ts @@ -1284,7 +1284,7 @@ const serializeAws_json1_1DescribeClustersRequest = (input: DescribeClustersRequ }; }; -const serializeAws_json1_1Filters = (input: { [key: string]: string[] }, context: __SerdeContext): any => { +const serializeAws_json1_1Filters = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -1653,11 +1653,8 @@ const deserializeAws_json1_1DestinationBackup = (output: any, context: __SerdeCo } as any; }; -const deserializeAws_json1_1ExternalSubnetMapping = ( - output: any, - context: __SerdeContext -): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +const deserializeAws_json1_1ExternalSubnetMapping = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } diff --git a/clients/client-cloudsearch-domain/src/models/models_0.ts b/clients/client-cloudsearch-domain/src/models/models_0.ts index 991c5c4977a4..afd477c2c9f5 100644 --- a/clients/client-cloudsearch-domain/src/models/models_0.ts +++ b/clients/client-cloudsearch-domain/src/models/models_0.ts @@ -375,17 +375,17 @@ export interface Hit { /** *

The fields returned from a document that matches the search request.

*/ - fields?: { [key: string]: string[] }; + fields?: Record; /** *

The expressions returned from a document that matches the search request.

*/ - exprs?: { [key: string]: string }; + exprs?: Record; /** *

The highlights returned from a document that matches the search request.

*/ - highlights?: { [key: string]: string }; + highlights?: Record; } export namespace Hit { @@ -529,12 +529,12 @@ export interface SearchResponse { /** *

The requested facet information.

*/ - facets?: { [key: string]: BucketInfo }; + facets?: Record; /** *

The requested field statistics information.

*/ - stats?: { [key: string]: FieldStats }; + stats?: Record; } export namespace SearchResponse { diff --git a/clients/client-cloudsearch-domain/src/protocols/Aws_restJson1.ts b/clients/client-cloudsearch-domain/src/protocols/Aws_restJson1.ts index a73b96edb10c..3aba13c1dcba 100644 --- a/clients/client-cloudsearch-domain/src/protocols/Aws_restJson1.ts +++ b/clients/client-cloudsearch-domain/src/protocols/Aws_restJson1.ts @@ -376,8 +376,8 @@ const deserializeAws_restJson1DocumentServiceWarnings = ( return retVal; }; -const deserializeAws_restJson1Exprs = (output: any, context: __SerdeContext): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +const deserializeAws_restJson1Exprs = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -388,8 +388,8 @@ const deserializeAws_restJson1Exprs = (output: any, context: __SerdeContext): { }, {}); }; -const deserializeAws_restJson1Facets = (output: any, context: __SerdeContext): { [key: string]: BucketInfo } => { - return Object.entries(output).reduce((acc: { [key: string]: BucketInfo }, [key, value]: [string, any]) => { +const deserializeAws_restJson1Facets = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -400,8 +400,8 @@ const deserializeAws_restJson1Facets = (output: any, context: __SerdeContext): { }, {}); }; -const deserializeAws_restJson1Fields = (output: any, context: __SerdeContext): { [key: string]: string[] } => { - return Object.entries(output).reduce((acc: { [key: string]: string[] }, [key, value]: [string, any]) => { +const deserializeAws_restJson1Fields = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -437,8 +437,8 @@ const deserializeAws_restJson1FieldValue = (output: any, context: __SerdeContext return retVal; }; -const deserializeAws_restJson1Highlights = (output: any, context: __SerdeContext): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +const deserializeAws_restJson1Highlights = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -498,8 +498,8 @@ const deserializeAws_restJson1SearchStatus = (output: any, context: __SerdeConte } as any; }; -const deserializeAws_restJson1Stats = (output: any, context: __SerdeContext): { [key: string]: FieldStats } => { - return Object.entries(output).reduce((acc: { [key: string]: FieldStats }, [key, value]: [string, any]) => { +const deserializeAws_restJson1Stats = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } diff --git a/clients/client-cloudsearch/src/models/models_0.ts b/clients/client-cloudsearch/src/models/models_0.ts index 9e7b46c4a244..7327d325d596 100644 --- a/clients/client-cloudsearch/src/models/models_0.ts +++ b/clients/client-cloudsearch/src/models/models_0.ts @@ -2381,7 +2381,7 @@ export interface ListDomainNamesResponse { /** *

The names of the search domains owned by an account.

*/ - DomainNames?: { [key: string]: string }; + DomainNames?: Record; } export namespace ListDomainNamesResponse { diff --git a/clients/client-cloudsearch/src/protocols/Aws_query.ts b/clients/client-cloudsearch/src/protocols/Aws_query.ts index 63be970f57e5..9d32174668f9 100644 --- a/clients/client-cloudsearch/src/protocols/Aws_query.ts +++ b/clients/client-cloudsearch/src/protocols/Aws_query.ts @@ -3443,7 +3443,7 @@ const deserializeAws_queryDomainEndpointOptionsStatus = ( return contents; }; -const deserializeAws_queryDomainNameMap = (output: any, context: __SerdeContext): { [key: string]: string } => { +const deserializeAws_queryDomainNameMap = (output: any, context: __SerdeContext): Record => { return output.reduce((acc: any, pair: any) => { if (pair["value"] === null) { return acc; diff --git a/clients/client-cloudtrail/src/models/models_0.ts b/clients/client-cloudtrail/src/models/models_0.ts index c2eedaa44406..3ae3a844b9ad 100644 --- a/clients/client-cloudtrail/src/models/models_0.ts +++ b/clients/client-cloudtrail/src/models/models_0.ts @@ -2811,7 +2811,7 @@ export interface GetQueryResultsResponse { /** *

Contains the individual event results of the query.

*/ - QueryResultRows?: { [key: string]: string }[][]; + QueryResultRows?: Record[][]; /** *

A token you can use to get the next page of query results.

diff --git a/clients/client-cloudtrail/src/protocols/Aws_json1_1.ts b/clients/client-cloudtrail/src/protocols/Aws_json1_1.ts index c262e91f9ad6..c10134444115 100644 --- a/clients/client-cloudtrail/src/protocols/Aws_json1_1.ts +++ b/clients/client-cloudtrail/src/protocols/Aws_json1_1.ts @@ -4875,8 +4875,8 @@ const deserializeAws_json1_1QueryIdNotFoundException = ( } as any; }; -const deserializeAws_json1_1QueryResultColumn = (output: any, context: __SerdeContext): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +const deserializeAws_json1_1QueryResultColumn = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -4887,7 +4887,7 @@ const deserializeAws_json1_1QueryResultColumn = (output: any, context: __SerdeCo }, {}); }; -const deserializeAws_json1_1QueryResultRow = (output: any, context: __SerdeContext): { [key: string]: string }[] => { +const deserializeAws_json1_1QueryResultRow = (output: any, context: __SerdeContext): Record[] => { const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { @@ -4899,7 +4899,7 @@ const deserializeAws_json1_1QueryResultRow = (output: any, context: __SerdeConte return retVal; }; -const deserializeAws_json1_1QueryResultRows = (output: any, context: __SerdeContext): { [key: string]: string }[][] => { +const deserializeAws_json1_1QueryResultRows = (output: any, context: __SerdeContext): Record[][] => { const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { diff --git a/clients/client-cloudwatch-events/src/models/models_0.ts b/clients/client-cloudwatch-events/src/models/models_0.ts index 59d932cfa371..675cb0b7fb88 100644 --- a/clients/client-cloudwatch-events/src/models/models_0.ts +++ b/clients/client-cloudwatch-events/src/models/models_0.ts @@ -3375,13 +3375,13 @@ export interface HttpParameters { *

The headers that need to be sent as part of request invoking the API Gateway REST API or * EventBridge ApiDestination.

*/ - HeaderParameters?: { [key: string]: string }; + HeaderParameters?: Record; /** *

The query string keys/values that need to be sent as part of request invoking the API Gateway * REST API or EventBridge ApiDestination.

*/ - QueryStringParameters?: { [key: string]: string }; + QueryStringParameters?: Record; } export namespace HttpParameters { @@ -3408,7 +3408,7 @@ export interface InputTransformer { * notation.

*

The keys cannot start with "Amazon Web Services."

*/ - InputPathsMap?: { [key: string]: string }; + InputPathsMap?: Record; /** *

Input template where you specify placeholders that will be filled with the values of the diff --git a/clients/client-cloudwatch-events/src/protocols/Aws_json1_1.ts b/clients/client-cloudwatch-events/src/protocols/Aws_json1_1.ts index d5eb576b46b0..e3f1cb55c0d4 100644 --- a/clients/client-cloudwatch-events/src/protocols/Aws_json1_1.ts +++ b/clients/client-cloudwatch-events/src/protocols/Aws_json1_1.ts @@ -4107,7 +4107,7 @@ const serializeAws_json1_1EventResourceList = (input: string[], context: __Serde }); }; -const serializeAws_json1_1HeaderParametersMap = (input: { [key: string]: string }, context: __SerdeContext): any => { +const serializeAws_json1_1HeaderParametersMap = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -4440,10 +4440,7 @@ const serializeAws_json1_1PutTargetsRequest = (input: PutTargetsRequest, context }; }; -const serializeAws_json1_1QueryStringParametersMap = ( - input: { [key: string]: string }, - context: __SerdeContext -): any => { +const serializeAws_json1_1QueryStringParametersMap = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -4743,7 +4740,7 @@ const serializeAws_json1_1TestEventPatternRequest = (input: TestEventPatternRequ }; }; -const serializeAws_json1_1TransformerPaths = (input: { [key: string]: string }, context: __SerdeContext): any => { +const serializeAws_json1_1TransformerPaths = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -5605,8 +5602,8 @@ const deserializeAws_json1_1EventSourceList = (output: any, context: __SerdeCont return retVal; }; -const deserializeAws_json1_1HeaderParametersMap = (output: any, context: __SerdeContext): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +const deserializeAws_json1_1HeaderParametersMap = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -6075,8 +6072,8 @@ const deserializeAws_json1_1PutTargetsResultEntryList = ( const deserializeAws_json1_1QueryStringParametersMap = ( output: any, context: __SerdeContext -): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -6468,8 +6465,8 @@ const deserializeAws_json1_1TestEventPatternResponse = ( } as any; }; -const deserializeAws_json1_1TransformerPaths = (output: any, context: __SerdeContext): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +const deserializeAws_json1_1TransformerPaths = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } diff --git a/clients/client-cloudwatch-logs/src/models/models_0.ts b/clients/client-cloudwatch-logs/src/models/models_0.ts index f0dc7ec0ab97..e67b5f4c572a 100644 --- a/clients/client-cloudwatch-logs/src/models/models_0.ts +++ b/clients/client-cloudwatch-logs/src/models/models_0.ts @@ -262,7 +262,7 @@ export interface CreateLogGroupRequest { * For more information about using tags to control access, see * Controlling access to Amazon Web Services resources using tags.

*/ - tags?: { [key: string]: string }; + tags?: Record; } export namespace CreateLogGroupRequest { @@ -1115,7 +1115,7 @@ export interface MetricTransformation { *

* */ - dimensions?: { [key: string]: string }; + dimensions?: Record; /** *

The unit to assign to the metric. If you omit this, the unit is set as None.

@@ -1958,7 +1958,7 @@ export interface GetLogRecordResponse { /** *

The requested log event, as a JSON string.

*/ - logRecord?: { [key: string]: string }; + logRecord?: Record; } export namespace GetLogRecordResponse { @@ -2147,7 +2147,7 @@ export interface ListTagsLogGroupResponse { /** *

The tags for the log group.

*/ - tags?: { [key: string]: string }; + tags?: Record; } export namespace ListTagsLogGroupResponse { @@ -2786,7 +2786,7 @@ export interface TagLogGroupRequest { /** *

The key-value pairs to use for the tags.

*/ - tags: { [key: string]: string } | undefined; + tags: Record | undefined; } export namespace TagLogGroupRequest { @@ -2838,7 +2838,7 @@ export interface MetricFilterMatchRecord { /** *

The values extracted from the event data by the filter.

*/ - extractedValues?: { [key: string]: string }; + extractedValues?: Record; } export namespace MetricFilterMatchRecord { diff --git a/clients/client-cloudwatch-logs/src/protocols/Aws_json1_1.ts b/clients/client-cloudwatch-logs/src/protocols/Aws_json1_1.ts index f001747b1b88..46c491d33766 100644 --- a/clients/client-cloudwatch-logs/src/protocols/Aws_json1_1.ts +++ b/clients/client-cloudwatch-logs/src/protocols/Aws_json1_1.ts @@ -3169,7 +3169,7 @@ const serializeAws_json1_1DescribeSubscriptionFiltersRequest = ( }; }; -const serializeAws_json1_1Dimensions = (input: { [key: string]: string }, context: __SerdeContext): any => { +const serializeAws_json1_1Dimensions = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -3448,7 +3448,7 @@ const serializeAws_json1_1TagLogGroupRequest = (input: TagLogGroupRequest, conte }; }; -const serializeAws_json1_1Tags = (input: { [key: string]: string }, context: __SerdeContext): any => { +const serializeAws_json1_1Tags = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -3656,8 +3656,8 @@ const deserializeAws_json1_1Destinations = (output: any, context: __SerdeContext return retVal; }; -const deserializeAws_json1_1Dimensions = (output: any, context: __SerdeContext): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +const deserializeAws_json1_1Dimensions = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -3717,8 +3717,8 @@ const deserializeAws_json1_1ExportTaskStatus = (output: any, context: __SerdeCon } as any; }; -const deserializeAws_json1_1ExtractedValues = (output: any, context: __SerdeContext): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +const deserializeAws_json1_1ExtractedValues = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -3916,8 +3916,8 @@ const deserializeAws_json1_1LogGroups = (output: any, context: __SerdeContext): return retVal; }; -const deserializeAws_json1_1LogRecord = (output: any, context: __SerdeContext): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +const deserializeAws_json1_1LogRecord = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -4328,8 +4328,8 @@ const deserializeAws_json1_1SubscriptionFilters = (output: any, context: __Serde return retVal; }; -const deserializeAws_json1_1Tags = (output: any, context: __SerdeContext): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +const deserializeAws_json1_1Tags = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } diff --git a/clients/client-cloudwatch/src/models/models_0.ts b/clients/client-cloudwatch/src/models/models_0.ts index 1232e3b4b4e4..b65f6cdd7706 100644 --- a/clients/client-cloudwatch/src/models/models_0.ts +++ b/clients/client-cloudwatch/src/models/models_0.ts @@ -788,7 +788,7 @@ export interface Datapoint { /** *

The percentile statistic for the data point.

*/ - ExtendedStatistics?: { [key: string]: number }; + ExtendedStatistics?: Record; } export namespace Datapoint { diff --git a/clients/client-cloudwatch/src/protocols/Aws_query.ts b/clients/client-cloudwatch/src/protocols/Aws_query.ts index 160a2ac1c1e5..cdf6231a6462 100644 --- a/clients/client-cloudwatch/src/protocols/Aws_query.ts +++ b/clients/client-cloudwatch/src/protocols/Aws_query.ts @@ -4504,7 +4504,7 @@ const deserializeAws_queryDatapoints = (output: any, context: __SerdeContext): D }); }; -const deserializeAws_queryDatapointValueMap = (output: any, context: __SerdeContext): { [key: string]: number } => { +const deserializeAws_queryDatapointValueMap = (output: any, context: __SerdeContext): Record => { return output.reduce((acc: any, pair: any) => { if (pair["value"] === null) { return acc; diff --git a/clients/client-codeartifact/src/models/models_0.ts b/clients/client-codeartifact/src/models/models_0.ts index f2dd529a8bee..117f1628c68a 100644 --- a/clients/client-codeartifact/src/models/models_0.ts +++ b/clients/client-codeartifact/src/models/models_0.ts @@ -57,7 +57,7 @@ export interface AssetSummary { * The hashes of the asset. *

*/ - hashes?: { [key: string]: string }; + hashes?: Record; } export namespace AssetSummary { @@ -620,7 +620,7 @@ export interface CopyPackageVersionsRequest { *

* */ - versionRevisions?: { [key: string]: string }; + versionRevisions?: Record; /** *

@@ -764,7 +764,7 @@ export interface CopyPackageVersionsResult { * A list of the package versions that were successfully copied to your repository. *

*/ - successfulVersions?: { [key: string]: SuccessfulPackageVersionInfo }; + successfulVersions?: Record; /** *

@@ -804,7 +804,7 @@ export interface CopyPackageVersionsResult { * * */ - failedVersions?: { [key: string]: PackageVersionError }; + failedVersions?: Record; } export namespace CopyPackageVersionsResult { @@ -1292,7 +1292,7 @@ export interface DeletePackageVersionsResult { * status of every successful version will be Deleted. *

*/ - successfulVersions?: { [key: string]: SuccessfulPackageVersionInfo }; + successfulVersions?: Record; /** *

@@ -1332,7 +1332,7 @@ export interface DeletePackageVersionsResult { * * */ - failedVersions?: { [key: string]: PackageVersionError }; + failedVersions?: Record; } export namespace DeletePackageVersionsResult { @@ -1924,7 +1924,7 @@ export interface DisposePackageVersionsRequest { * The revisions of the package versions you want to dispose. *

*/ - versionRevisions?: { [key: string]: string }; + versionRevisions?: Record; /** *

@@ -1949,7 +1949,7 @@ export interface DisposePackageVersionsResult { * A list of the package versions that were successfully disposed. *

*/ - successfulVersions?: { [key: string]: SuccessfulPackageVersionInfo }; + successfulVersions?: Record; /** *

@@ -1989,7 +1989,7 @@ export interface DisposePackageVersionsResult { * * */ - failedVersions?: { [key: string]: PackageVersionError }; + failedVersions?: Record; } export namespace DisposePackageVersionsResult { @@ -3900,7 +3900,7 @@ export interface UpdatePackageVersionsStatusRequest { * package version (for example, 3.5.2), and the map value is the * package version revision.

*/ - versionRevisions?: { [key: string]: string }; + versionRevisions?: Record; /** *

The package version’s expected status before it is updated. If @@ -3934,13 +3934,13 @@ export interface UpdatePackageVersionsStatusResult { * a status that failed to update. *

*/ - successfulVersions?: { [key: string]: SuccessfulPackageVersionInfo }; + successfulVersions?: Record; /** *

A list of SuccessfulPackageVersionInfo objects, one for each package version * with a status that successfully updated.

*/ - failedVersions?: { [key: string]: PackageVersionError }; + failedVersions?: Record; } export namespace UpdatePackageVersionsStatusResult { diff --git a/clients/client-codeartifact/src/protocols/Aws_restJson1.ts b/clients/client-codeartifact/src/protocols/Aws_restJson1.ts index e1af7f856617..986a563ccdcb 100644 --- a/clients/client-codeartifact/src/protocols/Aws_restJson1.ts +++ b/clients/client-codeartifact/src/protocols/Aws_restJson1.ts @@ -3410,7 +3410,7 @@ const serializeAws_restJson1PackageVersionList = (input: string[], context: __Se }; const serializeAws_restJson1PackageVersionRevisionMap = ( - input: { [key: string]: string }, + input: Record, context: __SerdeContext ): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { @@ -3471,19 +3471,16 @@ const serializeAws_restJson1UpstreamRepositoryList = (input: UpstreamRepository[ }); }; -const deserializeAws_restJson1AssetHashes = (output: any, context: __SerdeContext): { [key: string]: string } => { - return Object.entries(output).reduce( - (acc: { [key: string]: string }, [key, value]: [HashAlgorithm | string, any]) => { - if (value === null) { - return acc; - } - return { - ...acc, - [key]: __expectString(value) as any, - }; - }, - {} - ); +const deserializeAws_restJson1AssetHashes = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [HashAlgorithm | string, any]) => { + if (value === null) { + return acc; + } + return { + ...acc, + [key]: __expectString(value) as any, + }; + }, {}); }; const deserializeAws_restJson1AssetSummary = (output: any, context: __SerdeContext): AssetSummary => { @@ -3648,8 +3645,8 @@ const deserializeAws_restJson1PackageVersionError = (output: any, context: __Ser const deserializeAws_restJson1PackageVersionErrorMap = ( output: any, context: __SerdeContext -): { [key: string]: PackageVersionError } => { - return Object.entries(output).reduce((acc: { [key: string]: PackageVersionError }, [key, value]: [string, any]) => { +): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -3772,9 +3769,9 @@ const deserializeAws_restJson1SuccessfulPackageVersionInfo = ( const deserializeAws_restJson1SuccessfulPackageVersionInfoMap = ( output: any, context: __SerdeContext -): { [key: string]: SuccessfulPackageVersionInfo } => { +): Record => { return Object.entries(output).reduce( - (acc: { [key: string]: SuccessfulPackageVersionInfo }, [key, value]: [string, any]) => { + (acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } diff --git a/clients/client-codebuild/src/models/models_0.ts b/clients/client-codebuild/src/models/models_0.ts index c11c88109003..e2f8aa90d6bd 100644 --- a/clients/client-codebuild/src/models/models_0.ts +++ b/clients/client-codebuild/src/models/models_0.ts @@ -3606,7 +3606,7 @@ export interface TestReportSummary { *

A map that contains the number of each type of status returned by the test results in * this TestReportSummary.

*/ - statusCounts: { [key: string]: number } | undefined; + statusCounts: Record | undefined; /** *

The number of nanoseconds it took to run all of the test cases in this report. diff --git a/clients/client-codebuild/src/protocols/Aws_json1_1.ts b/clients/client-codebuild/src/protocols/Aws_json1_1.ts index cd5d1ef05985..e06f80cc373f 100644 --- a/clients/client-codebuild/src/protocols/Aws_json1_1.ts +++ b/clients/client-codebuild/src/protocols/Aws_json1_1.ts @@ -5633,8 +5633,8 @@ const deserializeAws_json1_1Reports = (output: any, context: __SerdeContext): Re return retVal; }; -const deserializeAws_json1_1ReportStatusCounts = (output: any, context: __SerdeContext): { [key: string]: number } => { - return Object.entries(output).reduce((acc: { [key: string]: number }, [key, value]: [string, any]) => { +const deserializeAws_json1_1ReportStatusCounts = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } diff --git a/clients/client-codecommit/src/models/models_0.ts b/clients/client-codecommit/src/models/models_0.ts index 28d211f77f4a..2b66aced5a23 100644 --- a/clients/client-codecommit/src/models/models_0.ts +++ b/clients/client-codecommit/src/models/models_0.ts @@ -3981,7 +3981,7 @@ export interface CreateRepositoryInput { /** *

One or more tag key-value pairs to use when tagging this repository.

*/ - tags?: { [key: string]: string }; + tags?: Record; } export namespace CreateRepositoryInput { @@ -4711,7 +4711,7 @@ export interface Comment { /** *

A string to integer map that represents the number of individual users who have responded to a comment with the specified reactions.

*/ - reactionCounts?: { [key: string]: number }; + reactionCounts?: Record; } export namespace Comment { diff --git a/clients/client-codecommit/src/models/models_1.ts b/clients/client-codecommit/src/models/models_1.ts index fe6dee7766d1..174625bf13a6 100644 --- a/clients/client-codecommit/src/models/models_1.ts +++ b/clients/client-codecommit/src/models/models_1.ts @@ -205,7 +205,7 @@ export interface ListTagsForResourceOutput { /** *

A list of tag key and value pairs associated with the specified resource.

*/ - tags?: { [key: string]: string }; + tags?: Record; /** *

An enumeration token that allows the operation to batch the next results of the operation.

@@ -1714,7 +1714,7 @@ export interface TagResourceInput { /** *

The key-value pair to use when tagging this repository.

*/ - tags: { [key: string]: string } | undefined; + tags: Record | undefined; } export namespace TagResourceInput { diff --git a/clients/client-codecommit/src/protocols/Aws_json1_1.ts b/clients/client-codecommit/src/protocols/Aws_json1_1.ts index 7173ac05b9e3..655095a0d37f 100644 --- a/clients/client-codecommit/src/protocols/Aws_json1_1.ts +++ b/clients/client-codecommit/src/protocols/Aws_json1_1.ts @@ -11345,7 +11345,7 @@ const serializeAws_json1_1TagResourceInput = (input: TagResourceInput, context: }; }; -const serializeAws_json1_1TagsMap = (input: { [key: string]: string }, context: __SerdeContext): any => { +const serializeAws_json1_1TagsMap = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -14445,8 +14445,8 @@ const deserializeAws_json1_1PutRepositoryTriggersOutput = ( } as any; }; -const deserializeAws_json1_1ReactionCountsMap = (output: any, context: __SerdeContext): { [key: string]: number } => { - return Object.entries(output).reduce((acc: { [key: string]: number }, [key, value]: [string, any]) => { +const deserializeAws_json1_1ReactionCountsMap = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -14952,8 +14952,8 @@ const deserializeAws_json1_1TagPolicyException = (output: any, context: __SerdeC } as any; }; -const deserializeAws_json1_1TagsMap = (output: any, context: __SerdeContext): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +const deserializeAws_json1_1TagsMap = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } diff --git a/clients/client-codedeploy/src/models/models_0.ts b/clients/client-codedeploy/src/models/models_0.ts index 70137443145f..102496bca758 100644 --- a/clients/client-codedeploy/src/models/models_0.ts +++ b/clients/client-codedeploy/src/models/models_0.ts @@ -6410,7 +6410,7 @@ export interface ListDeploymentTargetsInput { * * */ - targetFilters?: { [key: string]: string[] }; + targetFilters?: Record; } export namespace ListDeploymentTargetsInput { diff --git a/clients/client-codedeploy/src/protocols/Aws_json1_1.ts b/clients/client-codedeploy/src/protocols/Aws_json1_1.ts index 9a83a2a7d589..76319f798bc8 100644 --- a/clients/client-codedeploy/src/protocols/Aws_json1_1.ts +++ b/clients/client-codedeploy/src/protocols/Aws_json1_1.ts @@ -6333,7 +6333,7 @@ const serializeAws_json1_1TagResourceInput = (input: TagResourceInput, context: }; }; -const serializeAws_json1_1TargetFilters = (input: { [key: string]: string[] }, context: __SerdeContext): any => { +const serializeAws_json1_1TargetFilters = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [TargetFilterName | string, any]) => { if (value === null) { return acc; diff --git a/clients/client-codeguru-reviewer/src/models/models_0.ts b/clients/client-codeguru-reviewer/src/models/models_0.ts index cd1b5b483e8a..0df396635dca 100644 --- a/clients/client-codeguru-reviewer/src/models/models_0.ts +++ b/clients/client-codeguru-reviewer/src/models/models_0.ts @@ -236,7 +236,7 @@ export interface AssociateRepositoryRequest { * * */ - Tags?: { [key: string]: string }; + Tags?: Record; /** *

A KMSKeyDetails object that contains:

@@ -524,7 +524,7 @@ export interface AssociateRepositoryResponse { * * */ - Tags?: { [key: string]: string }; + Tags?: Record; } export namespace AssociateRepositoryResponse { @@ -1486,7 +1486,7 @@ export interface DescribeRepositoryAssociationResponse { * * */ - Tags?: { [key: string]: string }; + Tags?: Record; } export namespace DescribeRepositoryAssociationResponse { @@ -1568,7 +1568,7 @@ export interface DisassociateRepositoryResponse { * * */ - Tags?: { [key: string]: string }; + Tags?: Record; } export namespace DisassociateRepositoryResponse { @@ -2481,7 +2481,7 @@ export interface ListTagsForResourceResponse { * * */ - Tags?: { [key: string]: string }; + Tags?: Record; } export namespace ListTagsForResourceResponse { @@ -2570,7 +2570,7 @@ export interface TagResourceRequest { * * */ - Tags: { [key: string]: string } | undefined; + Tags: Record | undefined; } export namespace TagResourceRequest { diff --git a/clients/client-codeguru-reviewer/src/protocols/Aws_restJson1.ts b/clients/client-codeguru-reviewer/src/protocols/Aws_restJson1.ts index b81346ac3f99..da7e2f4ce322 100644 --- a/clients/client-codeguru-reviewer/src/protocols/Aws_restJson1.ts +++ b/clients/client-codeguru-reviewer/src/protocols/Aws_restJson1.ts @@ -1632,7 +1632,7 @@ const serializeAws_restJson1SourceCodeType = (input: SourceCodeType, context: __ }; }; -const serializeAws_restJson1TagMap = (input: { [key: string]: string }, context: __SerdeContext): any => { +const serializeAws_restJson1TagMap = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -2051,8 +2051,8 @@ const deserializeAws_restJson1SourceCodeType = (output: any, context: __SerdeCon } as any; }; -const deserializeAws_restJson1TagMap = (output: any, context: __SerdeContext): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +const deserializeAws_restJson1TagMap = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } diff --git a/clients/client-codeguruprofiler/src/models/models_0.ts b/clients/client-codeguruprofiler/src/models/models_0.ts index d853cf20a294..f2fab5704a5c 100644 --- a/clients/client-codeguruprofiler/src/models/models_0.ts +++ b/clients/client-codeguruprofiler/src/models/models_0.ts @@ -326,7 +326,7 @@ export interface AgentConfiguration { * * */ - agentParameters?: { [key: string]: string }; + agentParameters?: Record; } export namespace AgentConfiguration { @@ -843,7 +843,7 @@ export interface BatchGetFrameMetricDataResponse { /** *

List of instances which remained unprocessed. This will create a missing time step in the list of end times.

*/ - unprocessedEndTimes: { [key: string]: TimestampStructure[] } | undefined; + unprocessedEndTimes: Record | undefined; /** *

Details of the metrics to request a time series of values. The metric includes @@ -1010,7 +1010,7 @@ export interface ListTagsForResourceResponse { * returned in the response. *

*/ - tags?: { [key: string]: string }; + tags?: Record; } export namespace ListTagsForResourceResponse { @@ -1130,7 +1130,7 @@ export interface ConfigureAgentRequest { * * */ - metadata?: { [key: string]: string }; + metadata?: Record; } export namespace ConfigureAgentRequest { @@ -1214,7 +1214,7 @@ export interface CreateProfilingGroupRequest { * A list of tags to add to the created profiling group. *

*/ - tags?: { [key: string]: string }; + tags?: Record; } export namespace CreateProfilingGroupRequest { @@ -1338,7 +1338,7 @@ export interface ProfilingGroupDescription { * A list of the tags that belong to this profiling group. *

*/ - tags?: { [key: string]: string }; + tags?: Record; } export namespace ProfilingGroupDescription { @@ -2669,7 +2669,7 @@ export interface TagResourceRequest { * The list of tags that are added to the specified resource. *

*/ - tags: { [key: string]: string } | undefined; + tags: Record | undefined; } export namespace TagResourceRequest { diff --git a/clients/client-codeguruprofiler/src/protocols/Aws_restJson1.ts b/clients/client-codeguruprofiler/src/protocols/Aws_restJson1.ts index 02f2445c4f3c..92371701e8a7 100644 --- a/clients/client-codeguruprofiler/src/protocols/Aws_restJson1.ts +++ b/clients/client-codeguruprofiler/src/protocols/Aws_restJson1.ts @@ -1080,7 +1080,7 @@ export const deserializeAws_restJson1ConfigureAgentCommand = async ( $metadata: deserializeMetadata(output), configuration: undefined, }; - const data: { [key: string]: any } | undefined = __expectObject(await parseBody(output.body, context)); + const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.configuration = deserializeAws_restJson1AgentConfiguration(data, context); return Promise.resolve(contents); }; @@ -1131,7 +1131,7 @@ export const deserializeAws_restJson1CreateProfilingGroupCommand = async ( $metadata: deserializeMetadata(output), profilingGroup: undefined, }; - const data: { [key: string]: any } | undefined = __expectObject(await parseBody(output.body, context)); + const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.profilingGroup = deserializeAws_restJson1ProfilingGroupDescription(data, context); return Promise.resolve(contents); }; @@ -1237,7 +1237,7 @@ export const deserializeAws_restJson1DescribeProfilingGroupCommand = async ( $metadata: deserializeMetadata(output), profilingGroup: undefined, }; - const data: { [key: string]: any } | undefined = __expectObject(await parseBody(output.body, context)); + const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.profilingGroup = deserializeAws_restJson1ProfilingGroupDescription(data, context); return Promise.resolve(contents); }; @@ -2168,7 +2168,7 @@ export const deserializeAws_restJson1UpdateProfilingGroupCommand = async ( $metadata: deserializeMetadata(output), profilingGroup: undefined, }; - const data: { [key: string]: any } | undefined = __expectObject(await parseBody(output.body, context)); + const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.profilingGroup = deserializeAws_restJson1ProfilingGroupDescription(data, context); return Promise.resolve(contents); }; @@ -2370,7 +2370,7 @@ const serializeAws_restJson1FrameMetrics = (input: FrameMetric[], context: __Ser }); }; -const serializeAws_restJson1Metadata = (input: { [key: string]: string }, context: __SerdeContext): any => { +const serializeAws_restJson1Metadata = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [MetadataField | string, any]) => { if (value === null) { return acc; @@ -2393,7 +2393,7 @@ const serializeAws_restJson1Principals = (input: string[], context: __SerdeConte }); }; -const serializeAws_restJson1TagsMap = (input: { [key: string]: string }, context: __SerdeContext): any => { +const serializeAws_restJson1TagsMap = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -2436,9 +2436,9 @@ const deserializeAws_restJson1AgentOrchestrationConfig = ( } as any; }; -const deserializeAws_restJson1AgentParameters = (output: any, context: __SerdeContext): { [key: string]: string } => { +const deserializeAws_restJson1AgentParameters = (output: any, context: __SerdeContext): Record => { return Object.entries(output).reduce( - (acc: { [key: string]: string }, [key, value]: [AgentParameterField | string, any]) => { + (acc: Record, [key, value]: [AgentParameterField | string, any]) => { if (value === null) { return acc; } @@ -2847,8 +2847,8 @@ const deserializeAws_restJson1Strings = (output: any, context: __SerdeContext): return retVal; }; -const deserializeAws_restJson1TagsMap = (output: any, context: __SerdeContext): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +const deserializeAws_restJson1TagsMap = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -2907,8 +2907,8 @@ const deserializeAws_restJson1TimestampStructure = (output: any, context: __Serd const deserializeAws_restJson1UnprocessedEndTimeMap = ( output: any, context: __SerdeContext -): { [key: string]: TimestampStructure[] } => { - return Object.entries(output).reduce((acc: { [key: string]: TimestampStructure[] }, [key, value]: [string, any]) => { +): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } diff --git a/clients/client-codepipeline/src/models/models_0.ts b/clients/client-codepipeline/src/models/models_0.ts index 1c8a15da04cf..3996eea19336 100644 --- a/clients/client-codepipeline/src/models/models_0.ts +++ b/clients/client-codepipeline/src/models/models_0.ts @@ -201,7 +201,7 @@ export interface ActionConfiguration { /** *

The configuration data for the action.

*/ - configuration?: { [key: string]: string }; + configuration?: Record; } export namespace ActionConfiguration { @@ -457,7 +457,7 @@ export interface ActionDeclaration { * "Configuration" : { Key : Value }, *

*/ - configuration?: { [key: string]: string }; + configuration?: Record; /** *

The name or ID of the result of the action declaration, such as a test or build @@ -663,13 +663,13 @@ export interface ActionExecutionInput { /** *

Configuration data for an action execution.

*/ - configuration?: { [key: string]: string }; + configuration?: Record; /** *

Configuration data for an action execution with all variable references replaced with * their real values for the execution.

*/ - resolvedConfiguration?: { [key: string]: string }; + resolvedConfiguration?: Record; /** *

The ARN of the IAM service role that performs the declared action. This is assumed @@ -755,7 +755,7 @@ export interface ActionExecutionOutput { *

The outputVariables field shows the key-value pairs that were output as part of that * execution.

*/ - outputVariables?: { [key: string]: string }; + outputVariables?: Record; } export namespace ActionExecutionOutput { @@ -2047,7 +2047,7 @@ export interface PipelineDeclaration { * artifactStores.

* */ - artifactStores?: { [key: string]: ArtifactStore }; + artifactStores?: Record; /** *

The stage in which to perform the action.

@@ -4146,7 +4146,7 @@ export interface PollForJobsInput { * property, you must supply that property as a key in the map. Only jobs whose action * configuration matches the mapped value are returned.

*/ - queryParam?: { [key: string]: string }; + queryParam?: Record; } export namespace PollForJobsInput { @@ -4627,7 +4627,7 @@ export interface PutJobSuccessResultInput { * downstream action configuration. outputVariables can be included only when * there is no continuation token on the request.

*/ - outputVariables?: { [key: string]: string }; + outputVariables?: Record; } export namespace PutJobSuccessResultInput { diff --git a/clients/client-codepipeline/src/protocols/Aws_json1_1.ts b/clients/client-codepipeline/src/protocols/Aws_json1_1.ts index 1e314ff9afb1..28318a678d55 100644 --- a/clients/client-codepipeline/src/protocols/Aws_json1_1.ts +++ b/clients/client-codepipeline/src/protocols/Aws_json1_1.ts @@ -3245,7 +3245,7 @@ const serializeAws_json1_1AcknowledgeThirdPartyJobInput = ( }; }; -const serializeAws_json1_1ActionConfigurationMap = (input: { [key: string]: string }, context: __SerdeContext): any => { +const serializeAws_json1_1ActionConfigurationMap = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -3487,10 +3487,7 @@ const serializeAws_json1_1ArtifactStore = (input: ArtifactStore, context: __Serd }; }; -const serializeAws_json1_1ArtifactStoreMap = ( - input: { [key: string]: ArtifactStore }, - context: __SerdeContext -): any => { +const serializeAws_json1_1ArtifactStoreMap = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -3830,7 +3827,7 @@ const serializeAws_json1_1OutputArtifactList = (input: OutputArtifact[], context }); }; -const serializeAws_json1_1OutputVariablesMap = (input: { [key: string]: string }, context: __SerdeContext): any => { +const serializeAws_json1_1OutputVariablesMap = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -4015,7 +4012,7 @@ const serializeAws_json1_1PutWebhookInput = (input: PutWebhookInput, context: __ }; }; -const serializeAws_json1_1QueryParamMap = (input: { [key: string]: string }, context: __SerdeContext): any => { +const serializeAws_json1_1QueryParamMap = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -4239,11 +4236,8 @@ const deserializeAws_json1_1ActionConfiguration = (output: any, context: __Serde } as any; }; -const deserializeAws_json1_1ActionConfigurationMap = ( - output: any, - context: __SerdeContext -): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +const deserializeAws_json1_1ActionConfigurationMap = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -4770,8 +4764,8 @@ const deserializeAws_json1_1ArtifactStore = (output: any, context: __SerdeContex const deserializeAws_json1_1ArtifactStoreMap = ( output: any, context: __SerdeContext -): { [key: string]: ArtifactStore } => { - return Object.entries(output).reduce((acc: { [key: string]: ArtifactStore }, [key, value]: [string, any]) => { +): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -5324,8 +5318,8 @@ const deserializeAws_json1_1OutputArtifactList = (output: any, context: __SerdeC return retVal; }; -const deserializeAws_json1_1OutputVariablesMap = (output: any, context: __SerdeContext): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +const deserializeAws_json1_1OutputVariablesMap = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -5633,8 +5627,8 @@ const deserializeAws_json1_1RequestFailedException = (output: any, context: __Se const deserializeAws_json1_1ResolvedActionConfigurationMap = ( output: any, context: __SerdeContext -): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } diff --git a/clients/client-codestar-notifications/src/models/models_0.ts b/clients/client-codestar-notifications/src/models/models_0.ts index 1600c0a0734c..f72e2db86a16 100644 --- a/clients/client-codestar-notifications/src/models/models_0.ts +++ b/clients/client-codestar-notifications/src/models/models_0.ts @@ -150,7 +150,7 @@ export interface CreateNotificationRuleRequest { /** *

A list of tags to apply to this notification rule. Key names cannot start with "aws".

*/ - Tags?: { [key: string]: string }; + Tags?: Record; /** *

The status of the notification rule. The default value is ENABLED. If the status is @@ -466,7 +466,7 @@ export interface DescribeNotificationRuleResult { /** *

The tags associated with the notification rule.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; } export namespace DescribeNotificationRuleResult { @@ -733,7 +733,7 @@ export interface ListTagsForResourceResult { /** *

The tags associated with the notification rule.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; } export namespace ListTagsForResourceResult { @@ -889,7 +889,7 @@ export interface TagResourceRequest { /** *

The list of tags to associate with the resource. Tag key names cannot start with "aws".

*/ - Tags: { [key: string]: string } | undefined; + Tags: Record | undefined; } export namespace TagResourceRequest { @@ -905,7 +905,7 @@ export interface TagResourceResult { /** *

The list of tags associated with the resource.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; } export namespace TagResourceResult { diff --git a/clients/client-codestar-notifications/src/protocols/Aws_restJson1.ts b/clients/client-codestar-notifications/src/protocols/Aws_restJson1.ts index 5c75e3b52920..0a4389cf271a 100644 --- a/clients/client-codestar-notifications/src/protocols/Aws_restJson1.ts +++ b/clients/client-codestar-notifications/src/protocols/Aws_restJson1.ts @@ -1294,7 +1294,7 @@ const serializeAws_restJson1TagKeys = (input: string[], context: __SerdeContext) }); }; -const serializeAws_restJson1Tags = (input: { [key: string]: string }, context: __SerdeContext): any => { +const serializeAws_restJson1Tags = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -1370,8 +1370,8 @@ const deserializeAws_restJson1NotificationRuleSummary = ( } as any; }; -const deserializeAws_restJson1Tags = (output: any, context: __SerdeContext): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +const deserializeAws_restJson1Tags = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } diff --git a/clients/client-codestar/src/models/models_0.ts b/clients/client-codestar/src/models/models_0.ts index dcac680cf27f..8e25bb250715 100644 --- a/clients/client-codestar/src/models/models_0.ts +++ b/clients/client-codestar/src/models/models_0.ts @@ -414,7 +414,7 @@ export interface Toolchain { *

The list of parameter overrides to be passed into the toolchain template during stack * provisioning, if any.

*/ - stackParameters?: { [key: string]: string }; + stackParameters?: Record; } export namespace Toolchain { @@ -464,7 +464,7 @@ export interface CreateProjectRequest { /** *

The tags created for the project.

*/ - tags?: { [key: string]: string }; + tags?: Record; } export namespace CreateProjectRequest { @@ -1147,7 +1147,7 @@ export interface ListTagsForProjectResult { /** *

The tags for the project.

*/ - tags?: { [key: string]: string }; + tags?: Record; /** *

Reserved for future use.

@@ -1346,7 +1346,7 @@ export interface TagProjectRequest { /** *

The tags you want to add to the project.

*/ - tags: { [key: string]: string } | undefined; + tags: Record | undefined; } export namespace TagProjectRequest { @@ -1362,7 +1362,7 @@ export interface TagProjectResult { /** *

The tags for the project.

*/ - tags?: { [key: string]: string }; + tags?: Record; } export namespace TagProjectResult { diff --git a/clients/client-codestar/src/protocols/Aws_json1_1.ts b/clients/client-codestar/src/protocols/Aws_json1_1.ts index bbfd9b8a8118..43b331a366f1 100644 --- a/clients/client-codestar/src/protocols/Aws_json1_1.ts +++ b/clients/client-codestar/src/protocols/Aws_json1_1.ts @@ -1630,7 +1630,7 @@ const serializeAws_json1_1TagProjectRequest = (input: TagProjectRequest, context }; }; -const serializeAws_json1_1Tags = (input: { [key: string]: string }, context: __SerdeContext): any => { +const serializeAws_json1_1Tags = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -1642,7 +1642,7 @@ const serializeAws_json1_1Tags = (input: { [key: string]: string }, context: __S }, {}); }; -const serializeAws_json1_1TemplateParameterMap = (input: { [key: string]: string }, context: __SerdeContext): any => { +const serializeAws_json1_1TemplateParameterMap = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -1981,8 +1981,8 @@ const deserializeAws_json1_1TagProjectResult = (output: any, context: __SerdeCon } as any; }; -const deserializeAws_json1_1Tags = (output: any, context: __SerdeContext): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +const deserializeAws_json1_1Tags = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } diff --git a/clients/client-cognito-identity-provider/src/models/models_0.ts b/clients/client-cognito-identity-provider/src/models/models_0.ts index 5313912cd1f7..a4f4621abd21 100644 --- a/clients/client-cognito-identity-provider/src/models/models_0.ts +++ b/clients/client-cognito-identity-provider/src/models/models_0.ts @@ -606,7 +606,7 @@ export interface AdminConfirmSignUpRequest { * * */ - ClientMetadata?: { [key: string]: string }; + ClientMetadata?: Record; } export namespace AdminConfirmSignUpRequest { @@ -913,7 +913,7 @@ export interface AdminCreateUserRequest { * * */ - ClientMetadata?: { [key: string]: string }; + ClientMetadata?: Record; } export namespace AdminCreateUserRequest { @@ -1969,7 +1969,7 @@ export interface AdminInitiateAuthRequest { * * */ - AuthParameters?: { [key: string]: string }; + AuthParameters?: Record; /** *

A map of custom key-value pairs that you can provide as input for certain custom @@ -2041,7 +2041,7 @@ export interface AdminInitiateAuthRequest { * * */ - ClientMetadata?: { [key: string]: string }; + ClientMetadata?: Record; /** *

The analytics metadata for collecting Amazon Pinpoint metrics for @@ -2266,7 +2266,7 @@ export interface AdminInitiateAuthResponse { * AdminRespondToAuthChallenge API ChallengeResponses, the * USERNAME attribute can't be an alias.

*/ - ChallengeParameters?: { [key: string]: string }; + ChallengeParameters?: Record; /** *

The result of the authentication response. This is only returned if the caller doesn't @@ -2961,7 +2961,7 @@ export interface AdminResetUserPasswordRequest { * * */ - ClientMetadata?: { [key: string]: string }; + ClientMetadata?: Record; } export namespace AdminResetUserPasswordRequest { @@ -3087,7 +3087,7 @@ export interface AdminRespondToAuthChallengeRequest { * USERNAMEUSER_ID_FOR_SRP attribute. This happens even if you specified * an alias in your call to AdminInitiateAuth.

*/ - ChallengeResponses?: { [key: string]: string }; + ChallengeResponses?: Record; /** *

The session that should be passed both ways in challenge-response calls to the @@ -3173,7 +3173,7 @@ export interface AdminRespondToAuthChallengeRequest { * * */ - ClientMetadata?: { [key: string]: string }; + ClientMetadata?: Record; } export namespace AdminRespondToAuthChallengeRequest { @@ -3206,7 +3206,7 @@ export interface AdminRespondToAuthChallengeResponse { /** *

The challenge parameters. For more information, see AdminInitiateAuth.

*/ - ChallengeParameters?: { [key: string]: string }; + ChallengeParameters?: Record; /** *

The result returned by the server in response to the authentication request.

@@ -3647,7 +3647,7 @@ export interface AdminUpdateUserAttributesRequest { * * */ - ClientMetadata?: { [key: string]: string }; + ClientMetadata?: Record; } export namespace AdminUpdateUserAttributesRequest { @@ -4085,7 +4085,7 @@ export interface ConfirmForgotPasswordRequest { * * */ - ClientMetadata?: { [key: string]: string }; + ClientMetadata?: Record; } export namespace ConfirmForgotPasswordRequest { @@ -4199,7 +4199,7 @@ export interface ConfirmSignUpRequest { * * */ - ClientMetadata?: { [key: string]: string }; + ClientMetadata?: Record; } export namespace ConfirmSignUpRequest { @@ -4455,12 +4455,12 @@ export interface CreateIdentityProviderRequest { * * */ - ProviderDetails: { [key: string]: string } | undefined; + ProviderDetails: Record | undefined; /** *

A mapping of IdP attributes to standard and custom user pool attributes.

*/ - AttributeMapping?: { [key: string]: string }; + AttributeMapping?: Record; /** *

A list of IdP identifiers.

@@ -4616,12 +4616,12 @@ export interface IdentityProviderType { * * */ - ProviderDetails?: { [key: string]: string }; + ProviderDetails?: Record; /** *

A mapping of IdP attributes to standard and custom user pool attributes.

*/ - AttributeMapping?: { [key: string]: string }; + AttributeMapping?: Record; /** *

A list of IdP identifiers.

@@ -5671,7 +5671,7 @@ export interface CreateUserPoolRequest { * to categorize and manage user pools in different ways, such as by purpose, owner, * environment, or other criteria.

*/ - UserPoolTags?: { [key: string]: string }; + UserPoolTags?: Record; /** *

The configuration for AdminCreateUser requests.

@@ -5868,7 +5868,7 @@ export interface UserPoolType { * user pools to categorize and manage them in different ways, such as by purpose, owner, * environment, or other criteria.

*/ - UserPoolTags?: { [key: string]: string }; + UserPoolTags?: Record; /** *

The reason why the SMS configuration can't send the messages to your users.

@@ -7564,7 +7564,7 @@ export interface ForgotPasswordRequest { * * */ - ClientMetadata?: { [key: string]: string }; + ClientMetadata?: Record; } export namespace ForgotPasswordRequest { @@ -8045,7 +8045,7 @@ export interface GetUserAttributeVerificationCodeRequest { * * */ - ClientMetadata?: { [key: string]: string }; + ClientMetadata?: Record; } export namespace GetUserAttributeVerificationCodeRequest { @@ -8297,7 +8297,7 @@ export interface InitiateAuthRequest { * * */ - AuthParameters?: { [key: string]: string }; + AuthParameters?: Record; /** *

A map of custom key-value pairs that you can provide as input for certain custom @@ -8369,7 +8369,7 @@ export interface InitiateAuthRequest { * * */ - ClientMetadata?: { [key: string]: string }; + ClientMetadata?: Record; /** *

The app client ID.

@@ -8494,7 +8494,7 @@ export interface InitiateAuthResponse { *

All challenges require USERNAME and SECRET_HASH (if * applicable).

*/ - ChallengeParameters?: { [key: string]: string }; + ChallengeParameters?: Record; /** *

The result of the authentication response. This result is only returned if the caller @@ -8769,7 +8769,7 @@ export interface ListTagsForResourceResponse { /** *

The tags that are assigned to the user pool.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; } export namespace ListTagsForResourceResponse { @@ -9304,7 +9304,7 @@ export interface ResendConfirmationCodeRequest { * * */ - ClientMetadata?: { [key: string]: string }; + ClientMetadata?: Record; } export namespace ResendConfirmationCodeRequest { @@ -9432,7 +9432,7 @@ export interface RespondToAuthChallengeRequest { * * */ - ChallengeResponses?: { [key: string]: string }; + ChallengeResponses?: Record; /** *

The Amazon Pinpoint analytics metadata that contributes to your metrics for @@ -9486,7 +9486,7 @@ export interface RespondToAuthChallengeRequest { * * */ - ClientMetadata?: { [key: string]: string }; + ClientMetadata?: Record; } export namespace RespondToAuthChallengeRequest { @@ -9519,7 +9519,7 @@ export interface RespondToAuthChallengeResponse { /** *

The challenge parameters. For more information, see InitiateAuth.

*/ - ChallengeParameters?: { [key: string]: string }; + ChallengeParameters?: Record; /** *

The result returned by the server in response to the request to respond to the @@ -10005,7 +10005,7 @@ export interface SignUpRequest { * * */ - ClientMetadata?: { [key: string]: string }; + ClientMetadata?: Record; } export namespace SignUpRequest { diff --git a/clients/client-cognito-identity-provider/src/models/models_1.ts b/clients/client-cognito-identity-provider/src/models/models_1.ts index 513a50fa64b6..8ad9f3160fe5 100644 --- a/clients/client-cognito-identity-provider/src/models/models_1.ts +++ b/clients/client-cognito-identity-provider/src/models/models_1.ts @@ -130,7 +130,7 @@ export interface TagResourceRequest { /** *

The tags to assign to the user pool.

*/ - Tags: { [key: string]: string } | undefined; + Tags: Record | undefined; } export namespace TagResourceRequest { @@ -349,12 +349,12 @@ export interface UpdateIdentityProviderRequest { *

The IdP details to be updated, such as MetadataURL and * MetadataFile.

*/ - ProviderDetails?: { [key: string]: string }; + ProviderDetails?: Record; /** *

The IdP attribute mapping to be changed.

*/ - AttributeMapping?: { [key: string]: string }; + AttributeMapping?: Record; /** *

A list of IdP identifiers.

@@ -491,7 +491,7 @@ export interface UpdateUserAttributesRequest { * * */ - ClientMetadata?: { [key: string]: string }; + ClientMetadata?: Record; } export namespace UpdateUserAttributesRequest { @@ -635,7 +635,7 @@ export interface UpdateUserPoolRequest { * to categorize and manage user pools in different ways, such as by purpose, owner, * environment, or other criteria.

*/ - UserPoolTags?: { [key: string]: string }; + UserPoolTags?: Record; /** *

The configuration for AdminCreateUser requests.

diff --git a/clients/client-cognito-identity-provider/src/protocols/Aws_json1_1.ts b/clients/client-cognito-identity-provider/src/protocols/Aws_json1_1.ts index 5ea6f2115f37..79e0dc46d6e4 100644 --- a/clients/client-cognito-identity-provider/src/protocols/Aws_json1_1.ts +++ b/clients/client-cognito-identity-provider/src/protocols/Aws_json1_1.ts @@ -9258,7 +9258,7 @@ const serializeAws_json1_1AttributeListType = (input: AttributeType[], context: }); }; -const serializeAws_json1_1AttributeMappingType = (input: { [key: string]: string }, context: __SerdeContext): any => { +const serializeAws_json1_1AttributeMappingType = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -9302,7 +9302,7 @@ const serializeAws_json1_1AttributeType = (input: AttributeType, context: __Serd }; }; -const serializeAws_json1_1AuthParametersType = (input: { [key: string]: string }, context: __SerdeContext): any => { +const serializeAws_json1_1AuthParametersType = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -9336,7 +9336,7 @@ const serializeAws_json1_1CallbackURLsListType = (input: string[], context: __Se }); }; -const serializeAws_json1_1ChallengeResponsesType = (input: { [key: string]: string }, context: __SerdeContext): any => { +const serializeAws_json1_1ChallengeResponsesType = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -9358,7 +9358,7 @@ const serializeAws_json1_1ChangePasswordRequest = (input: ChangePasswordRequest, }; }; -const serializeAws_json1_1ClientMetadataType = (input: { [key: string]: string }, context: __SerdeContext): any => { +const serializeAws_json1_1ClientMetadataType = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -10354,7 +10354,7 @@ const serializeAws_json1_1PasswordPolicyType = (input: PasswordPolicyType, conte }; }; -const serializeAws_json1_1ProviderDetailsType = (input: { [key: string]: string }, context: __SerdeContext): any => { +const serializeAws_json1_1ProviderDetailsType = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -11109,7 +11109,7 @@ const serializeAws_json1_1UserPoolTagsListType = (input: string[], context: __Se }); }; -const serializeAws_json1_1UserPoolTagsType = (input: { [key: string]: string }, context: __SerdeContext): any => { +const serializeAws_json1_1UserPoolTagsType = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -11534,11 +11534,8 @@ const deserializeAws_json1_1AttributeListType = (output: any, context: __SerdeCo return retVal; }; -const deserializeAws_json1_1AttributeMappingType = ( - output: any, - context: __SerdeContext -): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +const deserializeAws_json1_1AttributeMappingType = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -11655,8 +11652,8 @@ const deserializeAws_json1_1CallbackURLsListType = (output: any, context: __Serd const deserializeAws_json1_1ChallengeParametersType = ( output: any, context: __SerdeContext -): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -12754,8 +12751,8 @@ const deserializeAws_json1_1ProviderDescription = (output: any, context: __Serde } as any; }; -const deserializeAws_json1_1ProviderDetailsType = (output: any, context: __SerdeContext): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +const deserializeAws_json1_1ProviderDetailsType = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -13625,8 +13622,8 @@ const deserializeAws_json1_1UserPoolTaggingException = ( } as any; }; -const deserializeAws_json1_1UserPoolTagsType = (output: any, context: __SerdeContext): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +const deserializeAws_json1_1UserPoolTagsType = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } diff --git a/clients/client-cognito-identity/src/models/models_0.ts b/clients/client-cognito-identity/src/models/models_0.ts index 9d91c32110eb..8881f3e7b74a 100644 --- a/clients/client-cognito-identity/src/models/models_0.ts +++ b/clients/client-cognito-identity/src/models/models_0.ts @@ -68,7 +68,7 @@ export interface CreateIdentityPoolInput { /** *

Optional key:value pairs mapping provider names to provider app IDs.

*/ - SupportedLoginProviders?: { [key: string]: string }; + SupportedLoginProviders?: Record; /** *

The "domain" by which Cognito will refer to your users. This name acts as a @@ -102,7 +102,7 @@ export interface CreateIdentityPoolInput { * pools to categorize and manage them in different ways, such as by purpose, owner, * environment, or other criteria.

*/ - IdentityPoolTags?: { [key: string]: string }; + IdentityPoolTags?: Record; } export namespace CreateIdentityPoolInput { @@ -142,7 +142,7 @@ export interface IdentityPool { /** *

Optional key:value pairs mapping provider names to provider app IDs.

*/ - SupportedLoginProviders?: { [key: string]: string }; + SupportedLoginProviders?: Record; /** *

The "domain" by which Cognito will refer to your users.

@@ -170,7 +170,7 @@ export interface IdentityPool { * identity pools to categorize and manage them in different ways, such as by purpose, owner, * environment, or other criteria.

*/ - IdentityPoolTags?: { [key: string]: string }; + IdentityPoolTags?: Record; } export namespace IdentityPool { @@ -518,7 +518,7 @@ export interface GetCredentialsForIdentityInput { * examples in the External Identity Providers section of the Amazon Cognito Developer * Guide.

*/ - Logins?: { [key: string]: string }; + Logins?: Record; /** *

The Amazon Resource Name (ARN) of the role to be assumed when multiple roles were @@ -663,7 +663,7 @@ export interface GetIdInput { * * */ - Logins?: { [key: string]: string }; + Logins?: Record; } export namespace GetIdInput { @@ -835,7 +835,7 @@ export interface GetIdentityPoolRolesResponse { *

The map of roles associated with this pool. Currently only authenticated and * unauthenticated roles are supported.

*/ - Roles?: { [key: string]: string }; + Roles?: Record; /** *

How users for a specific identity provider are to mapped to roles. This is a @@ -843,7 +843,7 @@ export interface GetIdentityPoolRolesResponse { * provider, for example, "graph.facebook.com" or * "cognito-idp.us-east-1.amazonaws.com/us-east-1_abcdefghi:app_client_id".

*/ - RoleMappings?: { [key: string]: RoleMapping }; + RoleMappings?: Record; } export namespace GetIdentityPoolRolesResponse { @@ -870,7 +870,7 @@ export interface GetOpenIdTokenInput { * provider's authflow. For accounts.google.com, an Amazon Cognito user pool provider, or any * other OpenID Connect provider, always include the id_token.

*/ - Logins?: { [key: string]: string }; + Logins?: Record; } export namespace GetOpenIdTokenInput { @@ -951,12 +951,12 @@ export interface GetOpenIdTokenForDeveloperIdentityInput { * identifier from your backend that uniquely identifies a user. When you create an identity * pool, you can specify the supported logins.

*/ - Logins: { [key: string]: string } | undefined; + Logins: Record | undefined; /** *

Use this operation to configure attribute mappings for custom providers.

*/ - PrincipalTags?: { [key: string]: string }; + PrincipalTags?: Record; /** *

The expiration time of the token, in seconds. You can specify a custom expiration @@ -1047,7 +1047,7 @@ export interface GetPrincipalTagAttributeMapResponse { /** *

You can use this operation to add principal tags. The PrincipalTagsoperation enables you to reference user attributes in your IAM permissions policy.

*/ - PrincipalTags?: { [key: string]: string }; + PrincipalTags?: Record; } export namespace GetPrincipalTagAttributeMapResponse { @@ -1216,7 +1216,7 @@ export interface ListTagsForResourceResponse { /** *

The tags that are assigned to the identity pool.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; } export namespace ListTagsForResourceResponse { @@ -1403,7 +1403,7 @@ export interface SetIdentityPoolRolesInput { *

The map of roles associated with this pool. For a given role, the key will be either * "authenticated" or "unauthenticated" and the value will be the Role ARN.

*/ - Roles: { [key: string]: string } | undefined; + Roles: Record | undefined; /** *

How users for a specific identity provider are to mapped to roles. This is a string @@ -1412,7 +1412,7 @@ export interface SetIdentityPoolRolesInput { * "cognito-idp.us-east-1.amazonaws.com/us-east-1_abcdefghi:app_client_id".

*

Up to 25 rules can be specified per identity provider.

*/ - RoleMappings?: { [key: string]: RoleMapping }; + RoleMappings?: Record; } export namespace SetIdentityPoolRolesInput { @@ -1443,7 +1443,7 @@ export interface SetPrincipalTagAttributeMapInput { /** *

You can use this operation to add principal tags.

*/ - PrincipalTags?: { [key: string]: string }; + PrincipalTags?: Record; } export namespace SetPrincipalTagAttributeMapInput { @@ -1474,7 +1474,7 @@ export interface SetPrincipalTagAttributeMapResponse { /** *

You can use this operation to add principal tags. The PrincipalTagsoperation enables you to reference user attributes in your IAM permissions policy.

*/ - PrincipalTags?: { [key: string]: string }; + PrincipalTags?: Record; } export namespace SetPrincipalTagAttributeMapResponse { @@ -1495,7 +1495,7 @@ export interface TagResourceInput { /** *

The tags to assign to the identity pool.

*/ - Tags: { [key: string]: string } | undefined; + Tags: Record | undefined; } export namespace TagResourceInput { @@ -1565,7 +1565,7 @@ export interface UnlinkIdentityInput { *

A set of optional name-value pairs that map provider names to provider * tokens.

*/ - Logins: { [key: string]: string } | undefined; + Logins: Record | undefined; /** *

Provider names to unlink from this identity.

diff --git a/clients/client-cognito-identity/src/protocols/Aws_json1_1.ts b/clients/client-cognito-identity/src/protocols/Aws_json1_1.ts index 46ab19b7e2b3..e22cca18e30f 100644 --- a/clients/client-cognito-identity/src/protocols/Aws_json1_1.ts +++ b/clients/client-cognito-identity/src/protocols/Aws_json1_1.ts @@ -2112,7 +2112,7 @@ const serializeAws_json1_1IdentityPoolTagsListType = (input: string[], context: }); }; -const serializeAws_json1_1IdentityPoolTagsType = (input: { [key: string]: string }, context: __SerdeContext): any => { +const serializeAws_json1_1IdentityPoolTagsType = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -2124,7 +2124,7 @@ const serializeAws_json1_1IdentityPoolTagsType = (input: { [key: string]: string }, {}); }; -const serializeAws_json1_1IdentityProviders = (input: { [key: string]: string }, context: __SerdeContext): any => { +const serializeAws_json1_1IdentityProviders = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -2173,7 +2173,7 @@ const serializeAws_json1_1LoginsList = (input: string[], context: __SerdeContext }); }; -const serializeAws_json1_1LoginsMap = (input: { [key: string]: string }, context: __SerdeContext): any => { +const serializeAws_json1_1LoginsMap = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -2247,7 +2247,7 @@ const serializeAws_json1_1OIDCProviderList = (input: string[], context: __SerdeC }); }; -const serializeAws_json1_1PrincipalTags = (input: { [key: string]: string }, context: __SerdeContext): any => { +const serializeAws_json1_1PrincipalTags = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -2271,7 +2271,7 @@ const serializeAws_json1_1RoleMapping = (input: RoleMapping, context: __SerdeCon }; }; -const serializeAws_json1_1RoleMappingMap = (input: { [key: string]: RoleMapping }, context: __SerdeContext): any => { +const serializeAws_json1_1RoleMappingMap = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -2283,7 +2283,7 @@ const serializeAws_json1_1RoleMappingMap = (input: { [key: string]: RoleMapping }, {}); }; -const serializeAws_json1_1RolesMap = (input: { [key: string]: string }, context: __SerdeContext): any => { +const serializeAws_json1_1RolesMap = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -2629,11 +2629,8 @@ const deserializeAws_json1_1IdentityPoolsList = ( return retVal; }; -const deserializeAws_json1_1IdentityPoolTagsType = ( - output: any, - context: __SerdeContext -): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +const deserializeAws_json1_1IdentityPoolTagsType = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -2644,8 +2641,8 @@ const deserializeAws_json1_1IdentityPoolTagsType = ( }, {}); }; -const deserializeAws_json1_1IdentityProviders = (output: any, context: __SerdeContext): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +const deserializeAws_json1_1IdentityProviders = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -2796,8 +2793,8 @@ const deserializeAws_json1_1OIDCProviderList = (output: any, context: __SerdeCon return retVal; }; -const deserializeAws_json1_1PrincipalTags = (output: any, context: __SerdeContext): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +const deserializeAws_json1_1PrincipalTags = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -2837,8 +2834,8 @@ const deserializeAws_json1_1RoleMapping = (output: any, context: __SerdeContext) } as any; }; -const deserializeAws_json1_1RoleMappingMap = (output: any, context: __SerdeContext): { [key: string]: RoleMapping } => { - return Object.entries(output).reduce((acc: { [key: string]: RoleMapping }, [key, value]: [string, any]) => { +const deserializeAws_json1_1RoleMappingMap = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -2849,8 +2846,8 @@ const deserializeAws_json1_1RoleMappingMap = (output: any, context: __SerdeConte }, {}); }; -const deserializeAws_json1_1RolesMap = (output: any, context: __SerdeContext): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +const deserializeAws_json1_1RolesMap = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } diff --git a/clients/client-cognito-sync/src/models/models_0.ts b/clients/client-cognito-sync/src/models/models_0.ts index 799602d1e4c5..3972d9b0ddda 100644 --- a/clients/client-cognito-sync/src/models/models_0.ts +++ b/clients/client-cognito-sync/src/models/models_0.ts @@ -661,7 +661,7 @@ export interface GetCognitoEventsResponse { /** *

The Cognito Events returned from the GetCognitoEvents request

*/ - Events?: { [key: string]: string }; + Events?: Record; } export namespace GetCognitoEventsResponse { @@ -1174,7 +1174,7 @@ export interface SetCognitoEventsRequest { /** *

The events to configure

*/ - Events: { [key: string]: string } | undefined; + Events: Record | undefined; } export namespace SetCognitoEventsRequest { diff --git a/clients/client-cognito-sync/src/protocols/Aws_restJson1.ts b/clients/client-cognito-sync/src/protocols/Aws_restJson1.ts index fca461b60fb2..74745902b285 100644 --- a/clients/client-cognito-sync/src/protocols/Aws_restJson1.ts +++ b/clients/client-cognito-sync/src/protocols/Aws_restJson1.ts @@ -2052,7 +2052,7 @@ const serializeAws_restJson1CognitoStreams = (input: CognitoStreams, context: __ }; }; -const serializeAws_restJson1Events = (input: { [key: string]: string }, context: __SerdeContext): any => { +const serializeAws_restJson1Events = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -2148,8 +2148,8 @@ const deserializeAws_restJson1DatasetList = (output: any, context: __SerdeContex return retVal; }; -const deserializeAws_restJson1Events = (output: any, context: __SerdeContext): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +const deserializeAws_restJson1Events = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } diff --git a/clients/client-config-service/src/models/models_0.ts b/clients/client-config-service/src/models/models_0.ts index 6d78446f6734..f6aafe15dd35 100644 --- a/clients/client-config-service/src/models/models_0.ts +++ b/clients/client-config-service/src/models/models_0.ts @@ -904,7 +904,7 @@ export interface BaseConfigurationItem { * resource types to supplement the information returned for the * configuration parameter.

*/ - supplementaryConfiguration?: { [key: string]: string }; + supplementaryConfiguration?: Record; } export namespace BaseConfigurationItem { @@ -2161,7 +2161,7 @@ export interface ConfigurationItem { *

A mapping of key value tags associated with the * resource.

*/ - tags?: { [key: string]: string }; + tags?: Record; /** *

A list of CloudTrail event IDs.

@@ -2189,7 +2189,7 @@ export interface ConfigurationItem { * resource types to supplement the information returned for the * configuration parameter.

*/ - supplementaryConfiguration?: { [key: string]: string }; + supplementaryConfiguration?: Record; } export namespace ConfigurationItem { @@ -5524,7 +5524,7 @@ export interface RemediationConfiguration { /** *

An object of the RemediationParameterValue.

*/ - Parameters?: { [key: string]: RemediationParameterValue }; + Parameters?: Record; /** *

The type of a resource.

diff --git a/clients/client-config-service/src/models/models_1.ts b/clients/client-config-service/src/models/models_1.ts index 8329cda59f9b..9f2920b04d5e 100644 --- a/clients/client-config-service/src/models/models_1.ts +++ b/clients/client-config-service/src/models/models_1.ts @@ -259,7 +259,7 @@ export interface PutResourceConfigRequest { /** *

Tags associated with the resource.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; } export namespace PutResourceConfigRequest { diff --git a/clients/client-config-service/src/protocols/Aws_json1_1.ts b/clients/client-config-service/src/protocols/Aws_json1_1.ts index c1a9926205cb..6f66a9039278 100644 --- a/clients/client-config-service/src/protocols/Aws_json1_1.ts +++ b/clients/client-config-service/src/protocols/Aws_json1_1.ts @@ -8527,7 +8527,7 @@ const serializeAws_json1_1RemediationExceptionResourceKeys = ( }; const serializeAws_json1_1RemediationParameters = ( - input: { [key: string]: RemediationParameterValue }, + input: Record, context: __SerdeContext ): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { @@ -8866,7 +8866,7 @@ const serializeAws_json1_1TagResourceRequest = (input: TagResourceRequest, conte }; }; -const serializeAws_json1_1Tags = (input: { [key: string]: string }, context: __SerdeContext): any => { +const serializeAws_json1_1Tags = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -11970,9 +11970,9 @@ const deserializeAws_json1_1RemediationInProgressException = ( const deserializeAws_json1_1RemediationParameters = ( output: any, context: __SerdeContext -): { [key: string]: RemediationParameterValue } => { +): Record => { return Object.entries(output).reduce( - (acc: { [key: string]: RemediationParameterValue }, [key, value]: [string, any]) => { + (acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -12323,8 +12323,8 @@ const deserializeAws_json1_1StoredQueryMetadataList = (output: any, context: __S const deserializeAws_json1_1SupplementaryConfiguration = ( output: any, context: __SerdeContext -): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -12354,8 +12354,8 @@ const deserializeAws_json1_1TagList = (output: any, context: __SerdeContext): Ta return retVal; }; -const deserializeAws_json1_1Tags = (output: any, context: __SerdeContext): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +const deserializeAws_json1_1Tags = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } diff --git a/clients/client-connect-contact-lens/src/models/models_0.ts b/clients/client-connect-contact-lens/src/models/models_0.ts index f9a600d8a79c..ea87d1068baf 100644 --- a/clients/client-connect-contact-lens/src/models/models_0.ts +++ b/clients/client-connect-contact-lens/src/models/models_0.ts @@ -154,7 +154,7 @@ export interface Categories { /** *

The category rule that was matched and when it occurred in the transcript.

*/ - MatchedDetails: { [key: string]: CategoryDetails } | undefined; + MatchedDetails: Record | undefined; } export namespace Categories { diff --git a/clients/client-connect-contact-lens/src/protocols/Aws_restJson1.ts b/clients/client-connect-contact-lens/src/protocols/Aws_restJson1.ts index dcbd7cf551a7..a6b22c67f766 100644 --- a/clients/client-connect-contact-lens/src/protocols/Aws_restJson1.ts +++ b/clients/client-connect-contact-lens/src/protocols/Aws_restJson1.ts @@ -267,8 +267,8 @@ const deserializeAws_restJson1MatchedCategories = (output: any, context: __Serde const deserializeAws_restJson1MatchedDetails = ( output: any, context: __SerdeContext -): { [key: string]: CategoryDetails } => { - return Object.entries(output).reduce((acc: { [key: string]: CategoryDetails }, [key, value]: [string, any]) => { +): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } diff --git a/clients/client-connect/src/models/models_0.ts b/clients/client-connect/src/models/models_0.ts index e1994bbf57d5..044c69107366 100644 --- a/clients/client-connect/src/models/models_0.ts +++ b/clients/client-connect/src/models/models_0.ts @@ -101,7 +101,7 @@ export interface AgentStatus { /** *

The tags used to organize, track, or control access for this resource.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; } export namespace AgentStatus { @@ -959,7 +959,7 @@ export interface ClaimPhoneNumberRequest { /** *

The tags used to organize, track, or control access for this resource.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; /** *

A unique, case-sensitive identifier that you provide to ensure the idempotency of the @@ -1048,7 +1048,7 @@ export interface CreateAgentStatusRequest { /** *

The tags used to organize, track, or control access for this resource.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; } export namespace CreateAgentStatusRequest { @@ -1144,7 +1144,7 @@ export interface CreateContactFlowRequest { /** *

One or more tags.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; } export namespace CreateContactFlowRequest { @@ -1244,7 +1244,7 @@ export interface CreateContactFlowModuleRequest { /** *

The tags used to organize, track, or control access for this resource.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; /** *

A unique, case-sensitive identifier that you provide to ensure the idempotency of the @@ -1396,7 +1396,7 @@ export interface CreateHoursOfOperationRequest { /** *

The tags used to organize, track, or control access for this resource.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; } export namespace CreateHoursOfOperationRequest { @@ -1545,7 +1545,7 @@ export interface CreateIntegrationAssociationRequest { /** *

The tags used to organize, track, or control access for this resource.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; } export namespace CreateIntegrationAssociationRequest { @@ -1646,7 +1646,7 @@ export interface CreateQueueRequest { /** *

The tags used to organize, track, or control access for this resource.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; } export namespace CreateQueueRequest { @@ -1813,7 +1813,7 @@ export interface CreateQuickConnectRequest { /** *

The tags used to organize, track, or control access for this resource.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; } export namespace CreateQuickConnectRequest { @@ -1910,7 +1910,7 @@ export interface CreateRoutingProfileRequest { /** *

One or more tags.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; } export namespace CreateRoutingProfileRequest { @@ -1967,7 +1967,7 @@ export interface CreateSecurityProfileRequest { /** *

The tags used to organize, track, or control access for this resource.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; } export namespace CreateSecurityProfileRequest { @@ -2368,7 +2368,7 @@ export interface CreateUseCaseRequest { /** *

The tags used to organize, track, or control access for this resource.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; } export namespace CreateUseCaseRequest { @@ -2530,7 +2530,7 @@ export interface CreateUserRequest { /** *

One or more tags.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; } export namespace CreateUserRequest { @@ -2583,7 +2583,7 @@ export interface CreateUserHierarchyGroupRequest { /** *

The tags used to organize, track, or control access for this resource.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; } export namespace CreateUserHierarchyGroupRequest { @@ -2653,7 +2653,7 @@ export interface CreateVocabularyRequest { /** *

The tags used to organize, track, or control access for this resource.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; } export namespace CreateVocabularyRequest { @@ -3326,7 +3326,7 @@ export interface ContactFlow { /** *

One or more tags.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; } export namespace ContactFlow { @@ -3427,7 +3427,7 @@ export interface ContactFlowModule { /** *

The tags used to organize, track, or control access for this resource.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; } export namespace ContactFlowModule { @@ -3513,7 +3513,7 @@ export interface HoursOfOperation { /** *

The tags used to organize, track, or control access for this resource.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; } export namespace HoursOfOperation { @@ -4115,7 +4115,7 @@ export interface ClaimedPhoneNumberSummary { /** *

The tags used to organize, track, or control access for this resource.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; /** *

The status of the phone number.

@@ -4221,7 +4221,7 @@ export interface Queue { /** *

The tags used to organize, track, or control access for this resource.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; } export namespace Queue { @@ -4302,7 +4302,7 @@ export interface QuickConnect { /** *

The tags used to organize, track, or control access for this resource.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; } export namespace QuickConnect { @@ -4394,7 +4394,7 @@ export interface RoutingProfile { /** *

One or more tags.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; } export namespace RoutingProfile { @@ -4475,7 +4475,7 @@ export interface SecurityProfile { /** *

The tags used to organize, track, or control access for this resource.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; } export namespace SecurityProfile { @@ -4577,7 +4577,7 @@ export interface User { *

The * tags.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; } export namespace User { @@ -4726,7 +4726,7 @@ export interface HierarchyGroup { /** *

The tags used to organize, track, or control access for this resource.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; } export namespace HierarchyGroup { @@ -4928,7 +4928,7 @@ export interface Vocabulary { /** *

The tags used to organize, track, or control access for this resource.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; } export namespace Vocabulary { @@ -5197,7 +5197,7 @@ export interface GetContactAttributesResponse { /** *

Information about the attributes.

*/ - Attributes?: { [key: string]: string }; + Attributes?: Record; } export namespace GetContactAttributesResponse { @@ -6116,7 +6116,7 @@ export interface GetTaskTemplateResponse { /** *

The tags used to organize, track, or control access for this resource.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; } export namespace GetTaskTemplateResponse { diff --git a/clients/client-connect/src/models/models_1.ts b/clients/client-connect/src/models/models_1.ts index 413db92dca53..26d5c89fd63e 100644 --- a/clients/client-connect/src/models/models_1.ts +++ b/clients/client-connect/src/models/models_1.ts @@ -257,7 +257,7 @@ export interface ListTagsForResourceResponse { /** *

Information about the tags.

*/ - tags?: { [key: string]: string }; + tags?: Record; } export namespace ListTagsForResourceResponse { @@ -1026,7 +1026,7 @@ export interface UserSearchSummary { /** *

The tags used to organize, track, or control access for this resource.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; /** *

The name of the user.

@@ -1251,7 +1251,7 @@ export interface StartChatContactRequest { *

There can be up to 32,768 UTF-8 bytes across all key-value pairs per contact. Attribute keys * can include only alphanumeric, dash, and underscore characters.

*/ - Attributes?: { [key: string]: string }; + Attributes?: Record; /** *

Information identifying the participant.

@@ -1587,7 +1587,7 @@ export interface StartOutboundVoiceContactRequest { *

There can be up to 32,768 UTF-8 bytes across all key-value pairs per contact. Attribute keys * can include only alphanumeric, dash, and underscore characters.

*/ - Attributes?: { [key: string]: string }; + Attributes?: Record; /** *

Configuration of the answering machine detection for this outbound call.

@@ -1687,7 +1687,7 @@ export interface StartTaskContactRequest { *

There can be up to 32,768 UTF-8 bytes across all key-value pairs per contact. Attribute keys * can include only alphanumeric, dash, and underscore characters.

*/ - Attributes?: { [key: string]: string }; + Attributes?: Record; /** *

The name of a task that is shown to an agent in the Contact Control Panel (CCP).

@@ -1697,7 +1697,7 @@ export interface StartTaskContactRequest { /** *

A formatted URL that is shown to an agent in the Contact Control Panel (CCP).

*/ - References?: { [key: string]: Reference }; + References?: Record; /** *

A description of the task that is shown to an agent in the Contact Control Panel @@ -1931,7 +1931,7 @@ export interface TagResourceRequest { /** *

One or more tags. For example, { "tags": {"key1":"value1", "key2":"value2"} }.

*/ - tags: { [key: string]: string } | undefined; + tags: Record | undefined; } export namespace TagResourceRequest { @@ -2098,7 +2098,7 @@ export interface UpdateContactRequest { /** *

Well-formed data on contact, shown to agents on Contact Control Panel (CCP).

*/ - References?: { [key: string]: Reference }; + References?: Record; } export namespace UpdateContactRequest { @@ -2139,7 +2139,7 @@ export interface UpdateContactAttributesRequest { *

You can have up to 32,768 UTF-8 bytes across all attributes for a contact. Attribute keys * can include only alphanumeric, dash, and underscore characters.

*/ - Attributes: { [key: string]: string } | undefined; + Attributes: Record | undefined; } export namespace UpdateContactAttributesRequest { diff --git a/clients/client-connect/src/protocols/Aws_restJson1.ts b/clients/client-connect/src/protocols/Aws_restJson1.ts index ed283827351a..5e593eaaf208 100644 --- a/clients/client-connect/src/protocols/Aws_restJson1.ts +++ b/clients/client-connect/src/protocols/Aws_restJson1.ts @@ -15397,7 +15397,7 @@ const serializeAws_restJson1AnswerMachineDetectionConfig = ( }; }; -const serializeAws_restJson1Attributes = (input: { [key: string]: string }, context: __SerdeContext): any => { +const serializeAws_restJson1Attributes = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -15437,7 +15437,7 @@ const serializeAws_restJson1ChatStreamingConfiguration = ( }; }; -const serializeAws_restJson1ContactReferences = (input: { [key: string]: Reference }, context: __SerdeContext): any => { +const serializeAws_restJson1ContactReferences = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -15986,7 +15986,7 @@ const serializeAws_restJson1TagCondition = (input: TagCondition, context: __Serd }; }; -const serializeAws_restJson1TagMap = (input: { [key: string]: string }, context: __SerdeContext): any => { +const serializeAws_restJson1TagMap = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -16241,8 +16241,8 @@ const deserializeAws_restJson1Attribute = (output: any, context: __SerdeContext) } as any; }; -const deserializeAws_restJson1Attributes = (output: any, context: __SerdeContext): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +const deserializeAws_restJson1Attributes = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -17631,8 +17631,8 @@ const deserializeAws_restJson1StringReference = (output: any, context: __SerdeCo } as any; }; -const deserializeAws_restJson1TagMap = (output: any, context: __SerdeContext): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +const deserializeAws_restJson1TagMap = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } diff --git a/clients/client-connectparticipant/src/models/models_0.ts b/clients/client-connectparticipant/src/models/models_0.ts index 70f95cb823f8..66dc6b291b7a 100644 --- a/clients/client-connectparticipant/src/models/models_0.ts +++ b/clients/client-connectparticipant/src/models/models_0.ts @@ -763,7 +763,7 @@ export interface UploadMetadata { /** *

The headers to be provided while uploading the file to the URL.

*/ - HeadersToInclude?: { [key: string]: string }; + HeadersToInclude?: Record; } export namespace UploadMetadata { diff --git a/clients/client-connectparticipant/src/protocols/Aws_restJson1.ts b/clients/client-connectparticipant/src/protocols/Aws_restJson1.ts index e266c011b997..9ac343f79bb7 100644 --- a/clients/client-connectparticipant/src/protocols/Aws_restJson1.ts +++ b/clients/client-connectparticipant/src/protocols/Aws_restJson1.ts @@ -930,8 +930,8 @@ const deserializeAws_restJson1UploadMetadata = (output: any, context: __SerdeCon const deserializeAws_restJson1UploadMetadataSignedHeaders = ( output: any, context: __SerdeContext -): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } diff --git a/clients/client-cost-explorer/src/models/models_0.ts b/clients/client-cost-explorer/src/models/models_0.ts index 80656f24b7d8..92f3d46f0cbe 100644 --- a/clients/client-cost-explorer/src/models/models_0.ts +++ b/clients/client-cost-explorer/src/models/models_0.ts @@ -1317,7 +1317,7 @@ export interface DimensionValuesWithAttributes { /** *

The attribute that applies to a specific Dimension.

*/ - Attributes?: { [key: string]: string }; + Attributes?: Record; } export namespace DimensionValuesWithAttributes { @@ -1365,7 +1365,7 @@ export interface Group { /** *

The metrics that are included in this group.

*/ - Metrics?: { [key: string]: MetricValue }; + Metrics?: Record; } export namespace Group { @@ -1389,7 +1389,7 @@ export interface ResultByTime { /** *

The total amount of cost or usage accrued during the time period.

*/ - Total?: { [key: string]: MetricValue }; + Total?: Record; /** *

The groups that this time period includes.

@@ -1907,7 +1907,7 @@ export interface ReservationCoverageGroup { /** *

The attributes for this group of reservations.

*/ - Attributes?: { [key: string]: string }; + Attributes?: Record; /** *

How much instance usage this group of reservations covered.

@@ -2722,7 +2722,7 @@ export interface ReservationUtilizationGroup { /** *

The attributes for this group of reservations.

*/ - Attributes?: { [key: string]: string }; + Attributes?: Record; /** *

How much you used this group of reservations.

@@ -3483,7 +3483,7 @@ export interface SavingsPlansCoverage { /** *

The attribute that applies to a specific Dimension.

*/ - Attributes?: { [key: string]: string }; + Attributes?: Record; /** *

The amount of Savings Plans eligible usage that the Savings Plans covered.

@@ -4070,7 +4070,7 @@ export interface SavingsPlansUtilizationDetail { /** *

The attribute that applies to a specific Dimension.

*/ - Attributes?: { [key: string]: string }; + Attributes?: Record; /** *

A ratio of your effectiveness of using existing Savings Plans to apply to workloads diff --git a/clients/client-cost-explorer/src/protocols/Aws_json1_1.ts b/clients/client-cost-explorer/src/protocols/Aws_json1_1.ts index 8d248a86e0ed..d318330c90c5 100644 --- a/clients/client-cost-explorer/src/protocols/Aws_json1_1.ts +++ b/clients/client-cost-explorer/src/protocols/Aws_json1_1.ts @@ -3445,8 +3445,8 @@ const deserializeAws_json1_1AnomalySubscriptions = (output: any, context: __Serd return retVal; }; -const deserializeAws_json1_1Attributes = (output: any, context: __SerdeContext): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +const deserializeAws_json1_1Attributes = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -4547,8 +4547,8 @@ const deserializeAws_json1_1MatchOptions = (output: any, context: __SerdeContext return retVal; }; -const deserializeAws_json1_1Metrics = (output: any, context: __SerdeContext): { [key: string]: MetricValue } => { - return Object.entries(output).reduce((acc: { [key: string]: MetricValue }, [key, value]: [string, any]) => { +const deserializeAws_json1_1Metrics = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } diff --git a/clients/client-customer-profiles/src/models/models_0.ts b/clients/client-customer-profiles/src/models/models_0.ts index abdf2865390d..3b8abee819d5 100644 --- a/clients/client-customer-profiles/src/models/models_0.ts +++ b/clients/client-customer-profiles/src/models/models_0.ts @@ -666,7 +666,7 @@ export interface Task { *

A map used to store task-related information. The service looks for particular * information based on the TaskType.

*/ - TaskProperties?: { [key: string]: string }; + TaskProperties?: Record; /** *

Specifies the particular task implementation that Amazon AppFlow performs.

@@ -1244,7 +1244,7 @@ export interface CreateDomainRequest { /** *

The tags used to organize, track, or control access for this resource.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; } export namespace CreateDomainRequest { @@ -1339,7 +1339,7 @@ export interface CreateDomainResponse { /** *

The tags used to organize, track, or control access for this resource.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; } export namespace CreateDomainResponse { @@ -1403,7 +1403,7 @@ export interface CreateIntegrationWorkflowRequest { /** *

The tags used to organize, track, or control access for this resource.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; } export namespace CreateIntegrationWorkflowRequest { @@ -1560,7 +1560,7 @@ export interface CreateProfileRequest { /** *

A key value pair of attributes of a customer profile.

*/ - Attributes?: { [key: string]: string }; + Attributes?: Record; } export namespace CreateProfileRequest { @@ -2020,7 +2020,7 @@ export interface GetDomainResponse { /** *

The tags used to organize, track, or control access for this resource.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; } export namespace GetDomainResponse { @@ -2286,14 +2286,14 @@ export interface GetIntegrationResponse { /** *

The tags used to organize, track, or control access for this resource.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; /** *

A map in which each key is an event type from an external application such as Segment or Shopify, and each value is an ObjectTypeName (template) used to ingest the event. * It supports the following event types: SegmentIdentify, ShopifyCreateCustomers, ShopifyUpdateCustomers, ShopifyCreateDraftOrders, * ShopifyUpdateDraftOrders, ShopifyCreateOrders, and ShopifyUpdatedOrders.

*/ - ObjectTypeNames?: { [key: string]: string }; + ObjectTypeNames?: Record; /** *

Unique identifier for the workflow.

@@ -2546,12 +2546,12 @@ export interface GetProfileObjectTypeResponse { /** *

A map of the name and ObjectType field.

*/ - Fields?: { [key: string]: ObjectTypeField }; + Fields?: Record; /** *

A list of unique keys that can be used to map data to the profile.

*/ - Keys?: { [key: string]: ObjectTypeKey[] }; + Keys?: Record; /** *

The timestamp of when the domain was created.

@@ -2566,7 +2566,7 @@ export interface GetProfileObjectTypeResponse { /** *

The tags used to organize, track, or control access for this resource.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; } export namespace GetProfileObjectTypeResponse { @@ -2628,12 +2628,12 @@ export interface GetProfileObjectTypeTemplateResponse { /** *

A map of the name and ObjectType field.

*/ - Fields?: { [key: string]: ObjectTypeField }; + Fields?: Record; /** *

A list of unique keys that can be used to map data to the profile.

*/ - Keys?: { [key: string]: ObjectTypeKey[] }; + Keys?: Record; } export namespace GetProfileObjectTypeTemplateResponse { @@ -2900,14 +2900,14 @@ export interface ListIntegrationItem { /** *

The tags used to organize, track, or control access for this resource.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; /** *

A map in which each key is an event type from an external application such as Segment or Shopify, and each value is an ObjectTypeName (template) used to ingest the event. * It supports the following event types: SegmentIdentify, ShopifyCreateCustomers, ShopifyUpdateCustomers, ShopifyCreateDraftOrders, * ShopifyUpdateDraftOrders, ShopifyCreateOrders, and ShopifyUpdatedOrders.

*/ - ObjectTypeNames?: { [key: string]: string }; + ObjectTypeNames?: Record; /** *

Unique identifier for the workflow.

@@ -2988,7 +2988,7 @@ export interface ListDomainItem { /** *

The tags used to organize, track, or control access for this resource.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; } export namespace ListDomainItem { @@ -3385,7 +3385,7 @@ export interface ListProfileObjectTypeItem { /** *

The tags used to organize, track, or control access for this resource.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; } export namespace ListProfileObjectTypeItem { @@ -3509,7 +3509,7 @@ export interface ListTagsForResourceResponse { /** *

The tags used to organize, track, or control access for this resource.

*/ - tags?: { [key: string]: string }; + tags?: Record; } export namespace ListTagsForResourceResponse { @@ -3740,7 +3740,7 @@ export interface FieldSourceProfileIds { /** *

A unique identifier for the attributes field to be merged.

*/ - Attributes?: { [key: string]: string }; + Attributes?: Record; } export namespace FieldSourceProfileIds { @@ -3820,7 +3820,7 @@ export interface PutIntegrationRequest { /** *

The tags used to organize, track, or control access for this resource.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; /** *

The configuration that controls how Customer Profiles retrieves data from the @@ -3833,7 +3833,7 @@ export interface PutIntegrationRequest { * It supports the following event types: SegmentIdentify, ShopifyCreateCustomers, ShopifyUpdateCustomers, ShopifyCreateDraftOrders, * ShopifyUpdateDraftOrders, ShopifyCreateOrders, and ShopifyUpdatedOrders.

*/ - ObjectTypeNames?: { [key: string]: string }; + ObjectTypeNames?: Record; } export namespace PutIntegrationRequest { @@ -3874,14 +3874,14 @@ export interface PutIntegrationResponse { /** *

The tags used to organize, track, or control access for this resource.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; /** *

A map in which each key is an event type from an external application such as Segment or Shopify, and each value is an ObjectTypeName (template) used to ingest the event. * It supports the following event types: SegmentIdentify, ShopifyCreateCustomers, ShopifyUpdateCustomers, ShopifyCreateDraftOrders, * ShopifyUpdateDraftOrders, ShopifyCreateOrders, and ShopifyUpdatedOrders.

*/ - ObjectTypeNames?: { [key: string]: string }; + ObjectTypeNames?: Record; /** *

Unique identifier for the workflow.

@@ -3990,17 +3990,17 @@ export interface PutProfileObjectTypeRequest { /** *

A map of the name and ObjectType field.

*/ - Fields?: { [key: string]: ObjectTypeField }; + Fields?: Record; /** *

A list of unique keys that can be used to map data to the profile.

*/ - Keys?: { [key: string]: ObjectTypeKey[] }; + Keys?: Record; /** *

The tags used to organize, track, or control access for this resource.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; } export namespace PutProfileObjectTypeRequest { @@ -4058,12 +4058,12 @@ export interface PutProfileObjectTypeResponse { /** *

A map of the name and ObjectType field.

*/ - Fields?: { [key: string]: ObjectTypeField }; + Fields?: Record; /** *

A list of unique keys that can be used to map data to the profile.

*/ - Keys?: { [key: string]: ObjectTypeKey[] }; + Keys?: Record; /** *

The timestamp of when the domain was created.

@@ -4078,7 +4078,7 @@ export interface PutProfileObjectTypeResponse { /** *

The tags used to organize, track, or control access for this resource.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; } export namespace PutProfileObjectTypeResponse { @@ -4246,7 +4246,7 @@ export interface Profile { /** *

A key value pair of attributes of a customer profile.

*/ - Attributes?: { [key: string]: string }; + Attributes?: Record; } export namespace Profile { @@ -4288,7 +4288,7 @@ export interface TagResourceRequest { /** *

The tags used to organize, track, or control access for this resource.

*/ - tags: { [key: string]: string } | undefined; + tags: Record | undefined; } export namespace TagResourceRequest { @@ -4385,7 +4385,7 @@ export interface UpdateDomainRequest { /** *

The tags used to organize, track, or control access for this resource.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; } export namespace UpdateDomainRequest { @@ -4445,7 +4445,7 @@ export interface UpdateDomainResponse { /** *

The tags used to organize, track, or control access for this resource.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; } export namespace UpdateDomainResponse { @@ -4638,7 +4638,7 @@ export interface UpdateProfileRequest { /** *

A key value pair of attributes of a customer profile.

*/ - Attributes?: { [key: string]: string }; + Attributes?: Record; } export namespace UpdateProfileRequest { diff --git a/clients/client-customer-profiles/src/protocols/Aws_restJson1.ts b/clients/client-customer-profiles/src/protocols/Aws_restJson1.ts index 95ec1fe6f783..f83fa6f422d6 100644 --- a/clients/client-customer-profiles/src/protocols/Aws_restJson1.ts +++ b/clients/client-customer-profiles/src/protocols/Aws_restJson1.ts @@ -4233,7 +4233,7 @@ const serializeAws_restJson1AppflowIntegration = (input: AppflowIntegration, con }; }; -const serializeAws_restJson1Attributes = (input: { [key: string]: string }, context: __SerdeContext): any => { +const serializeAws_restJson1Attributes = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -4245,7 +4245,7 @@ const serializeAws_restJson1Attributes = (input: { [key: string]: string }, cont }, {}); }; -const serializeAws_restJson1AttributeSourceIdMap = (input: { [key: string]: string }, context: __SerdeContext): any => { +const serializeAws_restJson1AttributeSourceIdMap = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -4327,7 +4327,7 @@ const serializeAws_restJson1ExportingConfig = (input: ExportingConfig, context: }; }; -const serializeAws_restJson1FieldMap = (input: { [key: string]: ObjectTypeField }, context: __SerdeContext): any => { +const serializeAws_restJson1FieldMap = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -4429,7 +4429,7 @@ const serializeAws_restJson1JobSchedule = (input: JobSchedule, context: __SerdeC }; }; -const serializeAws_restJson1KeyMap = (input: { [key: string]: ObjectTypeKey[] }, context: __SerdeContext): any => { +const serializeAws_restJson1KeyMap = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -4524,7 +4524,7 @@ const serializeAws_restJson1ObjectTypeKeyList = (input: ObjectTypeKey[], context }); }; -const serializeAws_restJson1ObjectTypeNames = (input: { [key: string]: string }, context: __SerdeContext): any => { +const serializeAws_restJson1ObjectTypeNames = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -4682,7 +4682,7 @@ const serializeAws_restJson1StandardIdentifierList = ( }); }; -const serializeAws_restJson1TagMap = (input: { [key: string]: string }, context: __SerdeContext): any => { +const serializeAws_restJson1TagMap = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -4712,7 +4712,7 @@ const serializeAws_restJson1Task = (input: Task, context: __SerdeContext): any = }; }; -const serializeAws_restJson1TaskPropertiesMap = (input: { [key: string]: string }, context: __SerdeContext): any => { +const serializeAws_restJson1TaskPropertiesMap = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce( (acc: { [key: string]: any }, [key, value]: [OperatorPropertiesKeys | string, any]) => { if (value === null) { @@ -4772,7 +4772,7 @@ const serializeAws_restJson1UpdateAddress = (input: UpdateAddress, context: __Se }; }; -const serializeAws_restJson1UpdateAttributes = (input: { [key: string]: string }, context: __SerdeContext): any => { +const serializeAws_restJson1UpdateAttributes = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -4852,8 +4852,8 @@ const deserializeAws_restJson1AppflowIntegrationWorkflowStep = ( } as any; }; -const deserializeAws_restJson1Attributes = (output: any, context: __SerdeContext): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +const deserializeAws_restJson1Attributes = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -4933,8 +4933,8 @@ const deserializeAws_restJson1ExportingLocation = (output: any, context: __Serde } as any; }; -const deserializeAws_restJson1FieldMap = (output: any, context: __SerdeContext): { [key: string]: ObjectTypeField } => { - return Object.entries(output).reduce((acc: { [key: string]: ObjectTypeField }, [key, value]: [string, any]) => { +const deserializeAws_restJson1FieldMap = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -5024,8 +5024,8 @@ const deserializeAws_restJson1JobStats = (output: any, context: __SerdeContext): } as any; }; -const deserializeAws_restJson1KeyMap = (output: any, context: __SerdeContext): { [key: string]: ObjectTypeKey[] } => { - return Object.entries(output).reduce((acc: { [key: string]: ObjectTypeKey[] }, [key, value]: [string, any]) => { +const deserializeAws_restJson1KeyMap = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -5238,8 +5238,8 @@ const deserializeAws_restJson1ObjectTypeKeyList = (output: any, context: __Serde return retVal; }; -const deserializeAws_restJson1ObjectTypeNames = (output: any, context: __SerdeContext): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +const deserializeAws_restJson1ObjectTypeNames = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -5399,8 +5399,8 @@ const deserializeAws_restJson1StandardIdentifierList = ( return retVal; }; -const deserializeAws_restJson1TagMap = (output: any, context: __SerdeContext): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +const deserializeAws_restJson1TagMap = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } diff --git a/clients/client-data-pipeline/src/models/models_0.ts b/clients/client-data-pipeline/src/models/models_0.ts index ddeb93c06ba8..f7e33bc533c3 100644 --- a/clients/client-data-pipeline/src/models/models_0.ts +++ b/clients/client-data-pipeline/src/models/models_0.ts @@ -862,7 +862,7 @@ export interface TaskObject { /** *

Connection information for the location where the task runner will publish the output of the task.

*/ - objects?: { [key: string]: PipelineObject }; + objects?: Record; } export namespace TaskObject { diff --git a/clients/client-data-pipeline/src/protocols/Aws_json1_1.ts b/clients/client-data-pipeline/src/protocols/Aws_json1_1.ts index 9f777a36228c..6b04ce9364e2 100644 --- a/clients/client-data-pipeline/src/protocols/Aws_json1_1.ts +++ b/clients/client-data-pipeline/src/protocols/Aws_json1_1.ts @@ -2035,8 +2035,8 @@ const deserializeAws_json1_1PipelineObjectList = (output: any, context: __SerdeC const deserializeAws_json1_1PipelineObjectMap = ( output: any, context: __SerdeContext -): { [key: string]: PipelineObject } => { - return Object.entries(output).reduce((acc: { [key: string]: PipelineObject }, [key, value]: [string, any]) => { +): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } diff --git a/clients/client-databrew/src/models/models_0.ts b/clients/client-databrew/src/models/models_0.ts index 48ab8b667f61..20a9af57f3c0 100644 --- a/clients/client-databrew/src/models/models_0.ts +++ b/clients/client-databrew/src/models/models_0.ts @@ -521,7 +521,7 @@ export interface FilterExpression { /** *

The map of substitution variable names to their values used in this filter expression.

*/ - ValuesMap: { [key: string]: string } | undefined; + ValuesMap: Record | undefined; } export namespace FilterExpression { @@ -633,7 +633,7 @@ export interface PathOptions { /** *

A structure that maps names of parameters used in the Amazon S3 path of a dataset to their definitions.

*/ - Parameters?: { [key: string]: DatasetParameter }; + Parameters?: Record; } export namespace PathOptions { @@ -677,7 +677,7 @@ export interface CreateDatasetRequest { /** *

Metadata tags to apply to this dataset.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; } export namespace CreateDatasetRequest { @@ -763,7 +763,7 @@ export interface StatisticOverride { /** *

A map that includes overrides of an evaluation’s parameters.

*/ - Parameters: { [key: string]: string } | undefined; + Parameters: Record | undefined; } export namespace StatisticOverride { @@ -1131,7 +1131,7 @@ export interface CreateProfileJobRequest { /** *

Metadata tags to apply to this job.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; /** *

The job's timeout in minutes. A job that attempts to run longer than this timeout @@ -1236,7 +1236,7 @@ export interface CreateProjectRequest { /** *

Metadata tags to apply to this project.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; } export namespace CreateProjectRequest { @@ -1299,7 +1299,7 @@ export interface RecipeAction { /** *

Contextual parameters for the transformation.

*/ - Parameters?: { [key: string]: string }; + Parameters?: Record; } export namespace RecipeAction { @@ -1396,7 +1396,7 @@ export interface CreateRecipeRequest { /** *

Metadata tags to apply to this recipe.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; } export namespace CreateRecipeRequest { @@ -1781,7 +1781,7 @@ export interface CreateRecipeJobRequest { /** *

Metadata tags to apply to this job.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; /** *

The job's timeout in minutes. A job that attempts to run longer than this timeout @@ -1900,7 +1900,7 @@ export interface Rule { * should be enclosed in backticks, for example, ":col1": "`Column A`". *

*/ - SubstitutionMap?: { [key: string]: string }; + SubstitutionMap?: Record; /** *

The threshold used with a non-aggregate check expression. Non-aggregate check expressions @@ -1952,7 +1952,7 @@ export interface CreateRulesetRequest { /** *

Metadata tags to apply to the ruleset.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; } export namespace CreateRulesetRequest { @@ -1997,7 +1997,7 @@ export interface CreateScheduleRequest { /** *

Metadata tags to apply to this schedule.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; /** *

A unique name for the schedule. Valid characters are alphanumeric (A-Z, a-z, 0-9), @@ -2316,7 +2316,7 @@ export interface DescribeDatasetResponse { /** *

Metadata tags associated with this dataset.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; /** *

The Amazon Resource Name (ARN) of the dataset.

@@ -2492,7 +2492,7 @@ export interface DescribeJobResponse { /** *

Metadata tags associated with this job.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; /** *

The job's timeout in minutes. A job that attempts to run longer than this timeout @@ -2745,7 +2745,7 @@ export interface DescribeProjectResponse { /** *

Metadata tags associated with this project.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; /** *

Describes the current state of the session:

@@ -2863,7 +2863,7 @@ export interface DescribeRecipeResponse { /** *

Metadata tags associated with this project.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; /** *

The ARN of the recipe.

@@ -2952,7 +2952,7 @@ export interface DescribeRulesetResponse { /** *

Metadata tags that have been applied to the ruleset.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; } export namespace DescribeRulesetResponse { @@ -3021,7 +3021,7 @@ export interface DescribeScheduleResponse { /** *

Metadata tags associated with this schedule.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; /** *

The name of the schedule.

@@ -3123,7 +3123,7 @@ export interface Dataset { /** *

Metadata tags that have been applied to the dataset.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; /** *

The unique Amazon Resource Name (ARN) for the dataset.

@@ -3495,7 +3495,7 @@ export interface Job { /** *

Metadata tags that have been applied to the job.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; /** *

A sample configuration for profile jobs only, which determines the number of rows on which the @@ -3621,7 +3621,7 @@ export interface Project { /** *

Metadata tags that have been applied to the project.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; /** *

The Amazon Resource Name (ARN) of the role that will be assumed for this @@ -3764,7 +3764,7 @@ export interface Recipe { /** *

Metadata tags that have been applied to the recipe.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; /** *

The identifier for the version for the recipe. Must be one of the following:

@@ -3949,7 +3949,7 @@ export interface RulesetItem { /** *

Metadata tags that have been applied to the ruleset.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; /** *

The Amazon Resource Name (ARN) of a resource (dataset) that the ruleset is @@ -4064,7 +4064,7 @@ export interface Schedule { /** *

Metadata tags that have been applied to the schedule.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; /** *

The name of the schedule.

@@ -4124,7 +4124,7 @@ export interface ListTagsForResourceResponse { /** *

A list of tags associated with the DataBrew resource.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; } export namespace ListTagsForResourceResponse { @@ -4415,7 +4415,7 @@ export interface TagResourceRequest { /** *

One or more tags to be assigned to the resource.

*/ - Tags: { [key: string]: string } | undefined; + Tags: Record | undefined; } export namespace TagResourceRequest { diff --git a/clients/client-databrew/src/protocols/Aws_restJson1.ts b/clients/client-databrew/src/protocols/Aws_restJson1.ts index b748b8a829e4..ec1adc6e6b83 100644 --- a/clients/client-databrew/src/protocols/Aws_restJson1.ts +++ b/clients/client-databrew/src/protocols/Aws_restJson1.ts @@ -4645,7 +4645,7 @@ const serializeAws_restJson1OutputList = (input: Output[], context: __SerdeConte }); }; -const serializeAws_restJson1ParameterMap = (input: { [key: string]: string }, context: __SerdeContext): any => { +const serializeAws_restJson1ParameterMap = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -4671,7 +4671,7 @@ const serializeAws_restJson1PathOptions = (input: PathOptions, context: __SerdeC }; const serializeAws_restJson1PathParametersMap = ( - input: { [key: string]: DatasetParameter }, + input: Record, context: __SerdeContext ): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { @@ -4881,7 +4881,7 @@ const serializeAws_restJson1StatisticsConfiguration = ( }; }; -const serializeAws_restJson1TagMap = (input: { [key: string]: string }, context: __SerdeContext): any => { +const serializeAws_restJson1TagMap = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -4926,7 +4926,7 @@ const serializeAws_restJson1ValidationConfigurationList = ( }); }; -const serializeAws_restJson1ValuesMap = (input: { [key: string]: string }, context: __SerdeContext): any => { +const serializeAws_restJson1ValuesMap = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -5537,8 +5537,8 @@ const deserializeAws_restJson1OutputList = (output: any, context: __SerdeContext return retVal; }; -const deserializeAws_restJson1ParameterMap = (output: any, context: __SerdeContext): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +const deserializeAws_restJson1ParameterMap = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -5569,8 +5569,8 @@ const deserializeAws_restJson1PathOptions = (output: any, context: __SerdeContex const deserializeAws_restJson1PathParametersMap = ( output: any, context: __SerdeContext -): { [key: string]: DatasetParameter } => { - return Object.entries(output).reduce((acc: { [key: string]: DatasetParameter }, [key, value]: [string, any]) => { +): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -5964,8 +5964,8 @@ const deserializeAws_restJson1StatisticsConfiguration = ( } as any; }; -const deserializeAws_restJson1TagMap = (output: any, context: __SerdeContext): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +const deserializeAws_restJson1TagMap = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -6009,8 +6009,8 @@ const deserializeAws_restJson1ValidationConfigurationList = ( return retVal; }; -const deserializeAws_restJson1ValuesMap = (output: any, context: __SerdeContext): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +const deserializeAws_restJson1ValuesMap = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } diff --git a/clients/client-dataexchange/src/models/models_0.ts b/clients/client-dataexchange/src/models/models_0.ts index 80704541d1a4..959f793c5db1 100644 --- a/clients/client-dataexchange/src/models/models_0.ts +++ b/clients/client-dataexchange/src/models/models_0.ts @@ -587,7 +587,7 @@ export interface CreateDataSetRequest { /** *

A data set tag is an optional label that you can assign to a data set when you create it. Each tag consists of a key and an optional value, both of which you define. When you use tagging, you can also use tag-based access control in IAM policies to control access to these data sets and revisions.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; } export namespace CreateDataSetRequest { @@ -672,7 +672,7 @@ export interface CreateDataSetResponse { /** *

The tags for the data set.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; /** *

The date and time that the data set was last updated, in ISO 8601 format.

@@ -1735,7 +1735,7 @@ export interface CreateRevisionRequest { /** *

A revision tag is an optional label that you can assign to a revision when you create it. Each tag consists of a key and an optional value, both of which you define. When you use tagging, you can also use tag-based access control in IAM policies to control access to these data sets and revisions.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; } export namespace CreateRevisionRequest { @@ -1786,7 +1786,7 @@ export interface CreateRevisionResponse { /** *

The tags for the revision.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; /** *

The date and time that the revision was last updated, in ISO 8601 format.

@@ -2049,7 +2049,7 @@ export interface GetDataSetResponse { /** *

The tags for the data set.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; /** *

The date and time that the data set was last updated, in ISO 8601 format.

@@ -2250,7 +2250,7 @@ export interface GetRevisionResponse { /** *

The tags for the revision.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; /** *

The date and time that the revision was last updated, in ISO 8601 format.

@@ -2778,7 +2778,7 @@ export interface ListTagsForResourceResponse { /** * A label that consists of a customer-defined key and an optional value. */ - Tags?: { [key: string]: string }; + Tags?: Record; } export namespace ListTagsForResourceResponse { @@ -2897,7 +2897,7 @@ export interface SendApiAssetRequest { /** *

Attach query string parameters to the end of the URI (for example, /v1/examplePath?exampleParam=exampleValue).

*/ - QueryStringParameters?: { [key: string]: string }; + QueryStringParameters?: Record; /** *

Asset ID value for the API request.

@@ -2912,7 +2912,7 @@ export interface SendApiAssetRequest { /** *

Any header value prefixed with x-amzn-dataexchange-header- will have that stripped before sending the Asset API request. Use this when you want to override a header that AWS Data Exchange uses. Alternatively, you can use the header without a prefix to the HTTP request.

*/ - RequestHeaders?: { [key: string]: string }; + RequestHeaders?: Record; /** *

HTTP method value for the API request. Alternatively, you can use the appropriate verb in your request.

@@ -2948,7 +2948,7 @@ export interface SendApiAssetResponse { /** *

The response headers from the underlying API tracked by the API asset.

*/ - ResponseHeaders?: { [key: string]: string }; + ResponseHeaders?: Record; } export namespace SendApiAssetResponse { @@ -2999,7 +2999,7 @@ export interface TagResourceRequest { /** * A label that consists of a customer-defined key and an optional value. */ - Tags: { [key: string]: string } | undefined; + Tags: Record | undefined; } export namespace TagResourceRequest { diff --git a/clients/client-dataexchange/src/protocols/Aws_restJson1.ts b/clients/client-dataexchange/src/protocols/Aws_restJson1.ts index 9eed1b5207f7..b0e13e7afe48 100644 --- a/clients/client-dataexchange/src/protocols/Aws_restJson1.ts +++ b/clients/client-dataexchange/src/protocols/Aws_restJson1.ts @@ -3508,7 +3508,7 @@ const serializeAws_restJson1ListOfRevisionDestinationEntry = ( }); }; -const serializeAws_restJson1MapOf__string = (input: { [key: string]: string }, context: __SerdeContext): any => { +const serializeAws_restJson1MapOf__string = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -4082,8 +4082,8 @@ const deserializeAws_restJson1ListOfRevisionEntry = (output: any, context: __Ser return retVal; }; -const deserializeAws_restJson1MapOf__string = (output: any, context: __SerdeContext): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +const deserializeAws_restJson1MapOf__string = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } diff --git a/clients/client-detective/src/models/models_0.ts b/clients/client-detective/src/models/models_0.ts index c1c778e26f93..4bf7aa25773d 100644 --- a/clients/client-detective/src/models/models_0.ts +++ b/clients/client-detective/src/models/models_0.ts @@ -170,7 +170,7 @@ export interface CreateGraphRequest { * you provide the tag key and the tag value. Each tag key can contain up to 128 characters. * Each tag value can contain up to 256 characters.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; } export namespace CreateGraphRequest { @@ -948,7 +948,7 @@ export interface ListTagsForResourceResponse { *

The tag values that are assigned to the behavior graph. The request returns up to 50 tag * values.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; } export namespace ListTagsForResourceResponse { @@ -1012,7 +1012,7 @@ export interface TagResourceRequest { * provide the tag key and the tag value. Each tag key can contain up to 128 characters. Each * tag value can contain up to 256 characters.

*/ - Tags: { [key: string]: string } | undefined; + Tags: Record | undefined; } export namespace TagResourceRequest { diff --git a/clients/client-detective/src/protocols/Aws_restJson1.ts b/clients/client-detective/src/protocols/Aws_restJson1.ts index 0e022fdc9aad..09c0eefa0fd1 100644 --- a/clients/client-detective/src/protocols/Aws_restJson1.ts +++ b/clients/client-detective/src/protocols/Aws_restJson1.ts @@ -1725,7 +1725,7 @@ const serializeAws_restJson1AccountList = (input: Account[], context: __SerdeCon }); }; -const serializeAws_restJson1TagMap = (input: { [key: string]: string }, context: __SerdeContext): any => { +const serializeAws_restJson1TagMap = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -1837,8 +1837,8 @@ const deserializeAws_restJson1MemberDetailList = (output: any, context: __SerdeC return retVal; }; -const deserializeAws_restJson1TagMap = (output: any, context: __SerdeContext): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +const deserializeAws_restJson1TagMap = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } diff --git a/clients/client-device-farm/src/models/models_0.ts b/clients/client-device-farm/src/models/models_0.ts index 903714b6bf80..d0fcb3c79b3f 100644 --- a/clients/client-device-farm/src/models/models_0.ts +++ b/clients/client-device-farm/src/models/models_0.ts @@ -46,13 +46,13 @@ export interface AccountSettings { /** *

Returns the unmetered devices you have purchased or want to purchase.

*/ - unmeteredDevices?: { [key: string]: number }; + unmeteredDevices?: Record; /** *

Returns the unmetered remote access devices you have purchased or want to * purchase.

*/ - unmeteredRemoteAccessDevices?: { [key: string]: number }; + unmeteredRemoteAccessDevices?: Record; /** *

The maximum number of minutes a test run executes before it times out.

@@ -70,7 +70,7 @@ export interface AccountSettings { * offering-id represents one of the IDs returned by the * ListOfferings command.

*/ - maxSlots?: { [key: string]: number }; + maxSlots?: Record; /** *

The default number of minutes (at the account level) a test run executes before it times out. The @@ -3279,7 +3279,7 @@ export interface ScheduleRunTest { * * */ - parameters?: { [key: string]: string }; + parameters?: Record; } export namespace ScheduleRunTest { @@ -3952,12 +3952,12 @@ export interface GetOfferingStatusResult { /** *

When specified, gets the offering status for the current period.

*/ - current?: { [key: string]: OfferingStatus }; + current?: Record; /** *

When specified, gets the offering status for the next period.

*/ - nextPeriod?: { [key: string]: OfferingStatus }; + nextPeriod?: Record; /** *

An identifier that was returned from the previous call to this operation, which can @@ -6939,7 +6939,7 @@ export interface ListUniqueProblemsResult { * * */ - uniqueProblems?: { [key: string]: UniqueProblem[] }; + uniqueProblems?: Record; /** *

If the number of items that are returned is significantly large, this is an identifier that is also diff --git a/clients/client-device-farm/src/protocols/Aws_json1_1.ts b/clients/client-device-farm/src/protocols/Aws_json1_1.ts index 049384d8bad3..3859e80720a1 100644 --- a/clients/client-device-farm/src/protocols/Aws_json1_1.ts +++ b/clients/client-device-farm/src/protocols/Aws_json1_1.ts @@ -6504,7 +6504,7 @@ const serializeAws_json1_1TestGridVpcConfig = (input: TestGridVpcConfig, context }; }; -const serializeAws_json1_1TestParameters = (input: { [key: string]: string }, context: __SerdeContext): any => { +const serializeAws_json1_1TestParameters = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -7739,8 +7739,8 @@ const deserializeAws_json1_1Location = (output: any, context: __SerdeContext): L } as any; }; -const deserializeAws_json1_1MaxSlotMap = (output: any, context: __SerdeContext): { [key: string]: number } => { - return Object.entries(output).reduce((acc: { [key: string]: number }, [key, value]: [string, any]) => { +const deserializeAws_json1_1MaxSlotMap = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -7861,8 +7861,8 @@ const deserializeAws_json1_1OfferingStatus = (output: any, context: __SerdeConte const deserializeAws_json1_1OfferingStatusMap = ( output: any, context: __SerdeContext -): { [key: string]: OfferingStatus } => { - return Object.entries(output).reduce((acc: { [key: string]: OfferingStatus }, [key, value]: [string, any]) => { +): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -7986,19 +7986,16 @@ const deserializeAws_json1_1Projects = (output: any, context: __SerdeContext): P return retVal; }; -const deserializeAws_json1_1PurchasedDevicesMap = (output: any, context: __SerdeContext): { [key: string]: number } => { - return Object.entries(output).reduce( - (acc: { [key: string]: number }, [key, value]: [DevicePlatform | string, any]) => { - if (value === null) { - return acc; - } - return { - ...acc, - [key]: __expectInt32(value) as any, - }; - }, - {} - ); +const deserializeAws_json1_1PurchasedDevicesMap = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [DevicePlatform | string, any]) => { + if (value === null) { + return acc; + } + return { + ...acc, + [key]: __expectInt32(value) as any, + }; + }, {}); }; const deserializeAws_json1_1PurchaseOfferingResult = (output: any, context: __SerdeContext): PurchaseOfferingResult => { @@ -8578,9 +8575,9 @@ const deserializeAws_json1_1UniqueProblems = (output: any, context: __SerdeConte const deserializeAws_json1_1UniqueProblemsByExecutionResultMap = ( output: any, context: __SerdeContext -): { [key: string]: UniqueProblem[] } => { +): Record => { return Object.entries(output).reduce( - (acc: { [key: string]: UniqueProblem[] }, [key, value]: [ExecutionResult | string, any]) => { + (acc: Record, [key, value]: [ExecutionResult | string, any]) => { if (value === null) { return acc; } diff --git a/clients/client-devops-guru/src/models/models_0.ts b/clients/client-devops-guru/src/models/models_0.ts index 3b5617c2854d..55417855fcd9 100644 --- a/clients/client-devops-guru/src/models/models_0.ts +++ b/clients/client-devops-guru/src/models/models_0.ts @@ -893,7 +893,7 @@ export interface PerformanceInsightsMetricQuery { * * */ - Filter?: { [key: string]: string }; + Filter?: Record; } export namespace PerformanceInsightsMetricQuery { diff --git a/clients/client-devops-guru/src/protocols/Aws_restJson1.ts b/clients/client-devops-guru/src/protocols/Aws_restJson1.ts index f980ee88edfe..271bb8a1a5d3 100644 --- a/clients/client-devops-guru/src/protocols/Aws_restJson1.ts +++ b/clients/client-devops-guru/src/protocols/Aws_restJson1.ts @@ -3893,8 +3893,8 @@ const deserializeAws_restJson1PerformanceInsightsMetricDimensions = ( const deserializeAws_restJson1PerformanceInsightsMetricFilterMap = ( output: any, context: __SerdeContext -): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } diff --git a/clients/client-dlm/src/models/models_0.ts b/clients/client-dlm/src/models/models_0.ts index 537e87a0694e..08c8560933ea 100644 --- a/clients/client-dlm/src/models/models_0.ts +++ b/clients/client-dlm/src/models/models_0.ts @@ -706,7 +706,7 @@ export interface CreateLifecyclePolicyRequest { /** *

The tags to apply to the lifecycle policy during creation.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; } export namespace CreateLifecyclePolicyRequest { @@ -948,7 +948,7 @@ export interface LifecyclePolicySummary { /** *

The tags.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; /** *

The type of policy. EBS_SNAPSHOT_MANAGEMENT indicates that the policy @@ -1047,7 +1047,7 @@ export interface LifecyclePolicy { /** *

The tags.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; /** *

The Amazon Resource Name (ARN) of the policy.

@@ -1100,7 +1100,7 @@ export interface ListTagsForResourceResponse { /** *

Information about the tags.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; } export namespace ListTagsForResourceResponse { @@ -1121,7 +1121,7 @@ export interface TagResourceRequest { /** *

One or more tags.

*/ - Tags: { [key: string]: string } | undefined; + Tags: Record | undefined; } export namespace TagResourceRequest { diff --git a/clients/client-dlm/src/protocols/Aws_restJson1.ts b/clients/client-dlm/src/protocols/Aws_restJson1.ts index fb0cd75c285a..3a0638a4d1e4 100644 --- a/clients/client-dlm/src/protocols/Aws_restJson1.ts +++ b/clients/client-dlm/src/protocols/Aws_restJson1.ts @@ -1137,7 +1137,7 @@ const serializeAws_restJson1Tag = (input: Tag, context: __SerdeContext): any => }; }; -const serializeAws_restJson1TagMap = (input: { [key: string]: string }, context: __SerdeContext): any => { +const serializeAws_restJson1TagMap = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -1636,8 +1636,8 @@ const deserializeAws_restJson1Tag = (output: any, context: __SerdeContext): Tag } as any; }; -const deserializeAws_restJson1TagMap = (output: any, context: __SerdeContext): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +const deserializeAws_restJson1TagMap = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } diff --git a/clients/client-drs/src/models/models_0.ts b/clients/client-drs/src/models/models_0.ts index d27955a90435..66a4871831c5 100644 --- a/clients/client-drs/src/models/models_0.ts +++ b/clients/client-drs/src/models/models_0.ts @@ -83,7 +83,7 @@ export interface ConversionProperties { /** *

A mapping between the volumes being converted and the converted snapshot ids

*/ - volumeToConversionMap?: { [key: string]: { [key: string]: string } }; + volumeToConversionMap?: Record>; /** *

The root volume name of a conversion job

@@ -103,7 +103,7 @@ export interface ConversionProperties { /** *

A mapping between the volumes and their sizes

*/ - volumeToVolumeSize?: { [key: string]: number }; + volumeToVolumeSize?: Record; } export namespace ConversionProperties { @@ -148,7 +148,7 @@ export interface CreateExtendedSourceServerRequest { /** *

A list of tags associated with the extended source server.

*/ - tags?: { [key: string]: string }; + tags?: Record; } export namespace CreateExtendedSourceServerRequest { @@ -689,7 +689,7 @@ export interface SourceServer { /** *

The tags associated with the Source Server.

*/ - tags?: { [key: string]: string }; + tags?: Record; /** *

The ID of the Recovery Instance associated with this Source Server.

@@ -1094,7 +1094,7 @@ export interface CreateReplicationConfigurationTemplateRequest { /** *

A set of tags to be associated with all resources created in the replication staging area: EC2 replication server, EBS volumes, EBS snapshots, etc.

*/ - stagingAreaTags: { [key: string]: string } | undefined; + stagingAreaTags: Record | undefined; /** *

The Point in time (PIT) policy to manage snapshots taken during replication.

@@ -1104,7 +1104,7 @@ export interface CreateReplicationConfigurationTemplateRequest { /** *

A set of tags to be associated with the Replication Configuration Template resource.

*/ - tags?: { [key: string]: string }; + tags?: Record; } export namespace CreateReplicationConfigurationTemplateRequest { @@ -1187,12 +1187,12 @@ export interface ReplicationConfigurationTemplate { /** *

A set of tags to be associated with all resources created in the replication staging area: EC2 replication server, EBS volumes, EBS snapshots, etc.

*/ - stagingAreaTags?: { [key: string]: string }; + stagingAreaTags?: Record; /** *

A set of tags to be associated with the Replication Configuration Template resource.

*/ - tags?: { [key: string]: string }; + tags?: Record; /** *

The Point in time (PIT) policy to manage snapshots taken during replication.

@@ -1603,7 +1603,7 @@ export interface Job { /** *

A list of tags associated with the Job.

*/ - tags?: { [key: string]: string }; + tags?: Record; } export namespace Job { @@ -2078,7 +2078,7 @@ export interface RecoveryInstance { /** *

An array of tags that are associated with the Recovery Instance.

*/ - tags?: { [key: string]: string }; + tags?: Record; /** *

An object representing failback related information of the Recovery Instance.

@@ -2485,7 +2485,7 @@ export interface StagingSourceServer { /** *

A list of tags associated with the staging source server.

*/ - tags?: { [key: string]: string }; + tags?: Record; } export namespace StagingSourceServer { @@ -2582,7 +2582,7 @@ export interface ListTagsForResourceResponse { /** *

The tags of the requested resource.

*/ - tags?: { [key: string]: string }; + tags?: Record; } export namespace ListTagsForResourceResponse { @@ -2651,7 +2651,7 @@ export interface StartFailbackLaunchRequest { /** *

The tags to be associated with the failback launch Job.

*/ - tags?: { [key: string]: string }; + tags?: Record; } export namespace StartFailbackLaunchRequest { @@ -2830,7 +2830,7 @@ export interface UpdateReplicationConfigurationTemplateRequest { /** *

A set of tags to be associated with all resources created in the replication staging area: EC2 replication server, EBS volumes, EBS snapshots, etc.

*/ - stagingAreaTags?: { [key: string]: string }; + stagingAreaTags?: Record; /** *

The Point in time (PIT) policy to manage snapshots taken during replication.

@@ -3083,7 +3083,7 @@ export interface ReplicationConfiguration { /** *

A set of tags to be associated with all resources created in the replication staging area: EC2 replication server, EBS volumes, EBS snapshots, etc.

*/ - stagingAreaTags?: { [key: string]: string }; + stagingAreaTags?: Record; /** *

The Point in time (PIT) policy to manage snapshots taken during replication.

@@ -3155,7 +3155,7 @@ export interface StartRecoveryRequest { /** *

The tags to be associated with the Recovery Job.

*/ - tags?: { [key: string]: string }; + tags?: Record; } export namespace StartRecoveryRequest { @@ -3305,7 +3305,7 @@ export interface UpdateReplicationConfigurationRequest { /** *

A set of tags to be associated with all resources created in the replication staging area: EC2 replication server, EBS volumes, EBS snapshots, etc.

*/ - stagingAreaTags?: { [key: string]: string }; + stagingAreaTags?: Record; /** *

The Point in time (PIT) policy to manage snapshots taken during replication.

@@ -3332,7 +3332,7 @@ export interface TagResourceRequest { /** *

Array of tags to be added or updated.

*/ - tags: { [key: string]: string } | undefined; + tags: Record | undefined; } export namespace TagResourceRequest { diff --git a/clients/client-drs/src/protocols/Aws_restJson1.ts b/clients/client-drs/src/protocols/Aws_restJson1.ts index d51d43d7561b..5de4bf8db973 100644 --- a/clients/client-drs/src/protocols/Aws_restJson1.ts +++ b/clients/client-drs/src/protocols/Aws_restJson1.ts @@ -3806,7 +3806,7 @@ const serializeAws_restJson1StartRecoveryRequestSourceServers = ( }); }; -const serializeAws_restJson1TagsMap = (input: { [key: string]: string }, context: __SerdeContext): any => { +const serializeAws_restJson1TagsMap = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -3836,8 +3836,8 @@ const deserializeAws_restJson1Accounts = (output: any, context: __SerdeContext): return retVal; }; -const deserializeAws_restJson1ConversionMap = (output: any, context: __SerdeContext): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +const deserializeAws_restJson1ConversionMap = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -4640,8 +4640,8 @@ const deserializeAws_restJson1StagingSourceServersList = ( return retVal; }; -const deserializeAws_restJson1TagsMap = (output: any, context: __SerdeContext): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +const deserializeAws_restJson1TagsMap = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -4680,23 +4680,20 @@ const deserializeAws_restJson1ValidationExceptionFieldList = ( const deserializeAws_restJson1VolumeToConversionMap = ( output: any, context: __SerdeContext -): { [key: string]: { [key: string]: string } } => { - return Object.entries(output).reduce( - (acc: { [key: string]: { [key: string]: string } }, [key, value]: [string, any]) => { - if (value === null) { - return acc; - } - return { - ...acc, - [key]: deserializeAws_restJson1ConversionMap(value, context), - }; - }, - {} - ); +): Record> => { + return Object.entries(output).reduce((acc: Record>, [key, value]: [string, any]) => { + if (value === null) { + return acc; + } + return { + ...acc, + [key]: deserializeAws_restJson1ConversionMap(value, context), + }; + }, {}); }; -const deserializeAws_restJson1VolumeToSizeMap = (output: any, context: __SerdeContext): { [key: string]: number } => { - return Object.entries(output).reduce((acc: { [key: string]: number }, [key, value]: [string, any]) => { +const deserializeAws_restJson1VolumeToSizeMap = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } diff --git a/clients/client-dynamodb-streams/src/models/models_0.ts b/clients/client-dynamodb-streams/src/models/models_0.ts index 55613260138e..0f126f33a513 100644 --- a/clients/client-dynamodb-streams/src/models/models_0.ts +++ b/clients/client-dynamodb-streams/src/models/models_0.ts @@ -790,7 +790,7 @@ export namespace AttributeValue { SS?: never; NS?: never; BS?: never; - M: { [key: string]: AttributeValue }; + M: Record; L?: never; NULL?: never; BOOL?: never; @@ -878,7 +878,7 @@ export namespace AttributeValue { SS: (value: string[]) => T; NS: (value: string[]) => T; BS: (value: Uint8Array[]) => T; - M: (value: { [key: string]: AttributeValue }) => T; + M: (value: Record) => T; L: (value: AttributeValue[]) => T; NULL: (value: boolean) => T; BOOL: (value: boolean) => T; @@ -938,17 +938,17 @@ export interface StreamRecord { /** *

The primary key attribute(s) for the DynamoDB item that was modified.

*/ - Keys?: { [key: string]: AttributeValue }; + Keys?: Record; /** *

The item in the DynamoDB table as it appeared after it was modified.

*/ - NewImage?: { [key: string]: AttributeValue }; + NewImage?: Record; /** *

The item in the DynamoDB table as it appeared before it was modified.

*/ - OldImage?: { [key: string]: AttributeValue }; + OldImage?: Record; /** *

The sequence number of the stream record.

diff --git a/clients/client-dynamodb-streams/src/protocols/Aws_json1_0.ts b/clients/client-dynamodb-streams/src/protocols/Aws_json1_0.ts index 32183ae3a9bc..7e54c91ce61d 100644 --- a/clients/client-dynamodb-streams/src/protocols/Aws_json1_0.ts +++ b/clients/client-dynamodb-streams/src/protocols/Aws_json1_0.ts @@ -396,11 +396,8 @@ const serializeAws_json1_0ListStreamsInput = (input: ListStreamsInput, context: }; }; -const deserializeAws_json1_0AttributeMap = ( - output: any, - context: __SerdeContext -): { [key: string]: AttributeValue } => { - return Object.entries(output).reduce((acc: { [key: string]: AttributeValue }, [key, value]: [string, any]) => { +const deserializeAws_json1_0AttributeMap = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -566,8 +563,8 @@ const deserializeAws_json1_0ListStreamsOutput = (output: any, context: __SerdeCo const deserializeAws_json1_0MapAttributeValue = ( output: any, context: __SerdeContext -): { [key: string]: AttributeValue } => { - return Object.entries(output).reduce((acc: { [key: string]: AttributeValue }, [key, value]: [string, any]) => { +): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } diff --git a/clients/client-dynamodb/src/models/models_0.ts b/clients/client-dynamodb/src/models/models_0.ts index 4250965e7ec6..60cbcb0eee51 100644 --- a/clients/client-dynamodb/src/models/models_0.ts +++ b/clients/client-dynamodb/src/models/models_0.ts @@ -1131,13 +1131,13 @@ export interface ConsumedCapacity { *

The amount of throughput consumed on each local index affected by the * operation.

*/ - LocalSecondaryIndexes?: { [key: string]: Capacity }; + LocalSecondaryIndexes?: Record; /** *

The amount of throughput consumed on each global index affected by the * operation.

*/ - GlobalSecondaryIndexes?: { [key: string]: Capacity }; + GlobalSecondaryIndexes?: Record; } export namespace ConsumedCapacity { @@ -6471,7 +6471,7 @@ export namespace AttributeValue { SS?: never; NS?: never; BS?: never; - M: { [key: string]: AttributeValue }; + M: Record; L?: never; NULL?: never; BOOL?: never; @@ -6559,7 +6559,7 @@ export namespace AttributeValue { SS: (value: string[]) => T; NS: (value: string[]) => T; BS: (value: Uint8Array[]) => T; - M: (value: { [key: string]: AttributeValue }) => T; + M: (value: Record) => T; L: (value: AttributeValue[]) => T; NULL: (value: boolean) => T; BOOL: (value: boolean) => T; @@ -6788,7 +6788,7 @@ export interface BatchStatementResponse { /** *

A DynamoDB item associated with a BatchStatementResponse

*/ - Item?: { [key: string]: AttributeValue }; + Item?: Record; } export namespace BatchStatementResponse { @@ -6819,7 +6819,7 @@ export interface CancellationReason { /** *

Item in the request which caused the transaction to get cancelled.

*/ - Item?: { [key: string]: AttributeValue }; + Item?: Record; /** *

Status code for the result of the cancelled transaction.

@@ -7098,7 +7098,7 @@ export interface DeleteRequest { * to delete. All of the table's primary key attributes must be specified, and their data * types must match those of the table's key schema.

*/ - Key: { [key: string]: AttributeValue } | undefined; + Key: Record | undefined; } export namespace DeleteRequest { @@ -7203,7 +7203,7 @@ export interface Get { *

A map of attribute names to AttributeValue objects that specifies the * primary key of the item to retrieve.

*/ - Key: { [key: string]: AttributeValue } | undefined; + Key: Record | undefined; /** *

The name of the table from which to retrieve the specified item.

@@ -7222,7 +7222,7 @@ export interface Get { *

One or more substitution tokens for attribute names in the ProjectionExpression * parameter.

*/ - ExpressionAttributeNames?: { [key: string]: string }; + ExpressionAttributeNames?: Record; } export namespace Get { @@ -7260,7 +7260,7 @@ export interface GetItemInput { * composite primary key, you must provide values for both the partition key and the sort * key.

*/ - Key: { [key: string]: AttributeValue } | undefined; + Key: Record | undefined; /** *

This is a legacy parameter. Use ProjectionExpression instead. For more @@ -7369,7 +7369,7 @@ export interface GetItemInput { *

For more information on expression attribute names, see Specifying Item Attributes in the Amazon DynamoDB Developer * Guide.

*/ - ExpressionAttributeNames?: { [key: string]: string }; + ExpressionAttributeNames?: Record; } export namespace GetItemInput { @@ -7398,7 +7398,7 @@ export interface GetItemOutput { *

A map of attribute names to AttributeValue objects, as specified by * ProjectionExpression.

*/ - Item?: { [key: string]: AttributeValue }; + Item?: Record; /** *

The capacity units consumed by the GetItem operation. The data returned @@ -7440,7 +7440,7 @@ export interface ItemCollectionMetrics { *

The partition key value of the item collection. This value is the same as the * partition key value of the item.

*/ - ItemCollectionKey?: { [key: string]: AttributeValue }; + ItemCollectionKey?: Record; /** *

An estimate of item collection size, in gigabytes. This value is a two-element array @@ -7479,7 +7479,7 @@ export interface ItemResponse { /** *

Map of attribute data consisting of the data type and attribute value.

*/ - Item?: { [key: string]: AttributeValue }; + Item?: Record; } export namespace ItemResponse { @@ -7536,7 +7536,7 @@ export interface PutRequest { * attributes are present in the item that are part of an index key schema for the table, * their types must match the index key schema.

*/ - Item: { [key: string]: AttributeValue } | undefined; + Item: Record | undefined; } export namespace PutRequest { @@ -7570,7 +7570,7 @@ export interface KeysAndAttributes { *

The primary key attribute values that define the items and the attributes associated * with the items.

*/ - Keys: { [key: string]: AttributeValue }[] | undefined; + Keys: Record[] | undefined; /** *

This is a legacy parameter. Use ProjectionExpression instead. For more @@ -7650,7 +7650,7 @@ export interface KeysAndAttributes { *

For more information on expression attribute names, see Accessing Item Attributes in the Amazon DynamoDB Developer * Guide.

*/ - ExpressionAttributeNames?: { [key: string]: string }; + ExpressionAttributeNames?: Record; } export namespace KeysAndAttributes { @@ -8218,7 +8218,7 @@ export interface BatchGetItemInput { * * */ - RequestItems: { [key: string]: KeysAndAttributes } | undefined; + RequestItems: Record | undefined; /** *

Determines the level of detail about either provisioned or on-demand throughput @@ -8602,7 +8602,7 @@ export interface TransactWriteItemsOutput { * UpdateItem, PutItem, or DeleteItem * operations.

*/ - ItemCollectionMetrics?: { [key: string]: ItemCollectionMetrics[] }; + ItemCollectionMetrics?: Record; } export namespace TransactWriteItemsOutput { @@ -8632,7 +8632,7 @@ export interface ConditionCheck { *

The primary key of the item to be checked. Each element consists of an attribute name * and a value for that attribute.

*/ - Key: { [key: string]: AttributeValue } | undefined; + Key: Record | undefined; /** *

Name of the table for the check item request.

@@ -8648,12 +8648,12 @@ export interface ConditionCheck { /** *

One or more substitution tokens for attribute names in an expression.

*/ - ExpressionAttributeNames?: { [key: string]: string }; + ExpressionAttributeNames?: Record; /** *

One or more values that can be substituted in an expression.

*/ - ExpressionAttributeValues?: { [key: string]: AttributeValue }; + ExpressionAttributeValues?: Record; /** *

Use ReturnValuesOnConditionCheckFailure to get the item attributes if the @@ -8699,7 +8699,7 @@ export interface Delete { *

The primary key of the item to be deleted. Each element consists of an attribute name * and a value for that attribute.

*/ - Key: { [key: string]: AttributeValue } | undefined; + Key: Record | undefined; /** *

Name of the table in which the item to be deleted resides.

@@ -8715,12 +8715,12 @@ export interface Delete { /** *

One or more substitution tokens for attribute names in an expression.

*/ - ExpressionAttributeNames?: { [key: string]: string }; + ExpressionAttributeNames?: Record; /** *

One or more values that can be substituted in an expression.

*/ - ExpressionAttributeValues?: { [key: string]: AttributeValue }; + ExpressionAttributeValues?: Record; /** *

Use ReturnValuesOnConditionCheckFailure to get the item attributes if the @@ -8769,7 +8769,7 @@ export interface Put { * attributes are present in the item that are part of an index key schema for the table, * their types must match the index key schema.

*/ - Item: { [key: string]: AttributeValue } | undefined; + Item: Record | undefined; /** *

Name of the table in which to write the item.

@@ -8785,12 +8785,12 @@ export interface Put { /** *

One or more substitution tokens for attribute names in an expression.

*/ - ExpressionAttributeNames?: { [key: string]: string }; + ExpressionAttributeNames?: Record; /** *

One or more values that can be substituted in an expression.

*/ - ExpressionAttributeValues?: { [key: string]: AttributeValue }; + ExpressionAttributeValues?: Record; /** *

Use ReturnValuesOnConditionCheckFailure to get the item attributes if the @@ -8836,7 +8836,7 @@ export interface Update { *

The primary key of the item to be updated. Each element consists of an attribute name * and a value for that attribute.

*/ - Key: { [key: string]: AttributeValue } | undefined; + Key: Record | undefined; /** *

An expression that defines one or more attributes to be updated, the action to be @@ -8858,12 +8858,12 @@ export interface Update { /** *

One or more substitution tokens for attribute names in an expression.

*/ - ExpressionAttributeNames?: { [key: string]: string }; + ExpressionAttributeNames?: Record; /** *

One or more values that can be substituted in an expression.

*/ - ExpressionAttributeValues?: { [key: string]: AttributeValue }; + ExpressionAttributeValues?: Record; /** *

Use ReturnValuesOnConditionCheckFailure to get the item attributes if the @@ -8911,7 +8911,7 @@ export interface DeleteItemOutput { * response only if ReturnValues was specified as ALL_OLD in the * request.

*/ - Attributes?: { [key: string]: AttributeValue }; + Attributes?: Record; /** *

The capacity units consumed by the DeleteItem operation. The data @@ -8979,7 +8979,7 @@ export interface ExecuteStatementOutput { * operation; a map of attribute names and their values. For the write operations this * value will be empty.

*/ - Items?: { [key: string]: AttributeValue }[]; + Items?: Record[]; /** *

If the response of a read request exceeds the response payload limit DynamoDB will set @@ -9006,7 +9006,7 @@ export interface ExecuteStatementOutput { * is more data in the result set. The only way to know when you have reached the end of * the result set is when LastEvaluatedKey is empty.

*/ - LastEvaluatedKey?: { [key: string]: AttributeValue }; + LastEvaluatedKey?: Record; } export namespace ExecuteStatementOutput { @@ -9047,7 +9047,7 @@ export interface PutItemOutput { * only if ReturnValues is specified as ALL_OLD in the request. * Each element consists of an attribute name and an attribute value.

*/ - Attributes?: { [key: string]: AttributeValue }; + Attributes?: Record; /** *

The capacity units consumed by the PutItem operation. The data returned @@ -9117,7 +9117,7 @@ export interface QueryOutput { *

An array of item attributes that match the query criteria. Each element in this array * consists of an attribute name and the value for that attribute.

*/ - Items?: { [key: string]: AttributeValue }[]; + Items?: Record[]; /** *

The number of items in the response.

@@ -9150,7 +9150,7 @@ export interface QueryOutput { * is more data in the result set. The only way to know when you have reached the end of * the result set is when LastEvaluatedKey is empty.

*/ - LastEvaluatedKey?: { [key: string]: AttributeValue }; + LastEvaluatedKey?: Record; /** *

The capacity units consumed by the Query operation. The data returned @@ -9200,7 +9200,7 @@ export interface ScanOutput { *

An array of item attributes that match the scan criteria. Each element in this array * consists of an attribute name and the value for that attribute.

*/ - Items?: { [key: string]: AttributeValue }[]; + Items?: Record[]; /** *

The number of items in the response.

@@ -9233,7 +9233,7 @@ export interface ScanOutput { * is more data in the result set. The only way to know when you have reached the end of * the result set is when LastEvaluatedKey is empty.

*/ - LastEvaluatedKey?: { [key: string]: AttributeValue }; + LastEvaluatedKey?: Record; /** *

The capacity units consumed by the Scan operation. The data returned @@ -9286,7 +9286,7 @@ export interface UpdateItemOutput { * specified as something other than NONE in the request. Each element * represents one attribute.

*/ - Attributes?: { [key: string]: AttributeValue }; + Attributes?: Record; /** *

The capacity units consumed by the UpdateItem operation. The data @@ -9386,7 +9386,7 @@ export interface BatchGetItemOutput { * of a table name, along with a map of attribute data consisting of the data type and * attribute value.

*/ - Responses?: { [key: string]: { [key: string]: AttributeValue }[] }; + Responses?: Record[]>; /** *

A map of tables and their respective keys that were not processed with the current @@ -9417,7 +9417,7 @@ export interface BatchGetItemOutput { *

If there are no unprocessed keys remaining, the response contains an empty * UnprocessedKeys map.

*/ - UnprocessedKeys?: { [key: string]: KeysAndAttributes }; + UnprocessedKeys?: Record; /** *

The read capacity units consumed by the entire BatchGetItem @@ -9446,7 +9446,7 @@ export namespace BatchGetItemOutput { ...obj, ...(obj.Responses && { Responses: Object.entries(obj.Responses).reduce( - (acc: any, [key, value]: [string, { [key: string]: AttributeValue }[]]) => ({ + (acc: any, [key, value]: [string, Record[]]) => ({ ...acc, [key]: value.map((item) => Object.entries(item).reduce( @@ -9572,7 +9572,7 @@ export interface ScanInput { * information, see ScanFilter in the Amazon DynamoDB Developer * Guide.

*/ - ScanFilter?: { [key: string]: Condition }; + ScanFilter?: Record; /** *

This is a legacy parameter. Use FilterExpression instead. For more @@ -9591,7 +9591,7 @@ export interface ScanInput { * Scan returned the corresponding value of * LastEvaluatedKey.

*/ - ExclusiveStartKey?: { [key: string]: AttributeValue }; + ExclusiveStartKey?: Record; /** *

Determines the level of detail about either provisioned or on-demand throughput @@ -9732,7 +9732,7 @@ export interface ScanInput { *

For more information on expression attribute names, see Specifying Item Attributes in the Amazon DynamoDB Developer * Guide.

*/ - ExpressionAttributeNames?: { [key: string]: string }; + ExpressionAttributeNames?: Record; /** *

One or more values that can be substituted in an expression.

@@ -9755,7 +9755,7 @@ export interface ScanInput { *

For more information on expression attribute values, see Condition Expressions in the Amazon DynamoDB Developer * Guide.

*/ - ExpressionAttributeValues?: { [key: string]: AttributeValue }; + ExpressionAttributeValues?: Record; /** *

A Boolean value that determines the read consistency model during the scan:

@@ -9865,7 +9865,7 @@ export interface BatchWriteItemInput { * * */ - RequestItems: { [key: string]: WriteRequest[] } | undefined; + RequestItems: Record | undefined; /** *

Determines the level of detail about either provisioned or on-demand throughput @@ -9940,14 +9940,14 @@ export interface DeleteItemInput { * composite primary key, you must provide values for both the partition key and the sort * key.

*/ - Key: { [key: string]: AttributeValue } | undefined; + Key: Record | undefined; /** *

This is a legacy parameter. Use ConditionExpression instead. For more * information, see Expected in the Amazon DynamoDB Developer * Guide.

*/ - Expected?: { [key: string]: ExpectedAttributeValue }; + Expected?: Record; /** *

This is a legacy parameter. Use ConditionExpression instead. For more @@ -10096,7 +10096,7 @@ export interface DeleteItemInput { *

For more information on expression attribute names, see Specifying Item Attributes in the Amazon DynamoDB Developer * Guide.

*/ - ExpressionAttributeNames?: { [key: string]: string }; + ExpressionAttributeNames?: Record; /** *

One or more values that can be substituted in an expression.

@@ -10119,7 +10119,7 @@ export interface DeleteItemInput { *

For more information on expression attribute values, see Condition Expressions in the Amazon DynamoDB Developer * Guide.

*/ - ExpressionAttributeValues?: { [key: string]: AttributeValue }; + ExpressionAttributeValues?: Record; } export namespace DeleteItemInput { @@ -10187,14 +10187,14 @@ export interface PutItemInput { *

Each element in the Item map is an AttributeValue * object.

*/ - Item: { [key: string]: AttributeValue } | undefined; + Item: Record | undefined; /** *

This is a legacy parameter. Use ConditionExpression instead. For more * information, see Expected in the Amazon DynamoDB Developer * Guide.

*/ - Expected?: { [key: string]: ExpectedAttributeValue }; + Expected?: Record; /** *

Use ReturnValues if you want to get the item attributes as they appeared @@ -10346,7 +10346,7 @@ export interface PutItemInput { *

For more information on expression attribute names, see Specifying Item Attributes in the Amazon DynamoDB Developer * Guide.

*/ - ExpressionAttributeNames?: { [key: string]: string }; + ExpressionAttributeNames?: Record; /** *

One or more values that can be substituted in an expression.

@@ -10369,7 +10369,7 @@ export interface PutItemInput { *

For more information on expression attribute values, see Condition Expressions in the Amazon DynamoDB Developer * Guide.

*/ - ExpressionAttributeValues?: { [key: string]: AttributeValue }; + ExpressionAttributeValues?: Record; } export namespace PutItemInput { @@ -10517,14 +10517,14 @@ export interface QueryInput { * information, see KeyConditions in the Amazon DynamoDB Developer * Guide.

*/ - KeyConditions?: { [key: string]: Condition }; + KeyConditions?: Record; /** *

This is a legacy parameter. Use FilterExpression instead. For more * information, see QueryFilter in the Amazon DynamoDB Developer * Guide.

*/ - QueryFilter?: { [key: string]: Condition }; + QueryFilter?: Record; /** *

This is a legacy parameter. Use FilterExpression instead. For more @@ -10554,7 +10554,7 @@ export interface QueryInput { *

The data type for ExclusiveStartKey must be String, Number, or Binary. No * set data types are allowed.

*/ - ExclusiveStartKey?: { [key: string]: AttributeValue }; + ExclusiveStartKey?: Record; /** *

Determines the level of detail about either provisioned or on-demand throughput @@ -10791,7 +10791,7 @@ export interface QueryInput { *

For more information on expression attribute names, see Specifying Item Attributes in the Amazon DynamoDB Developer * Guide.

*/ - ExpressionAttributeNames?: { [key: string]: string }; + ExpressionAttributeNames?: Record; /** *

One or more values that can be substituted in an expression.

@@ -10814,7 +10814,7 @@ export interface QueryInput { *

For more information on expression attribute values, see Specifying Conditions in the Amazon DynamoDB Developer * Guide.

*/ - ExpressionAttributeValues?: { [key: string]: AttributeValue }; + ExpressionAttributeValues?: Record; } export namespace QueryInput { @@ -10914,7 +10914,7 @@ export interface BatchWriteItemOutput { *

If there are no unprocessed items remaining, the response contains an empty * UnprocessedItems map.

*/ - UnprocessedItems?: { [key: string]: WriteRequest[] }; + UnprocessedItems?: Record; /** *

A list of tables that were processed by BatchWriteItem and, for each @@ -10940,7 +10940,7 @@ export interface BatchWriteItemOutput { * * */ - ItemCollectionMetrics?: { [key: string]: ItemCollectionMetrics[] }; + ItemCollectionMetrics?: Record; /** *

The capacity units consumed by the entire BatchWriteItem @@ -11005,21 +11005,21 @@ export interface UpdateItemInput { * composite primary key, you must provide values for both the partition key and the sort * key.

*/ - Key: { [key: string]: AttributeValue } | undefined; + Key: Record | undefined; /** *

This is a legacy parameter. Use UpdateExpression instead. For more * information, see AttributeUpdates in the Amazon DynamoDB Developer * Guide.

*/ - AttributeUpdates?: { [key: string]: AttributeValueUpdate }; + AttributeUpdates?: Record; /** *

This is a legacy parameter. Use ConditionExpression instead. For more * information, see Expected in the Amazon DynamoDB Developer * Guide.

*/ - Expected?: { [key: string]: ExpectedAttributeValue }; + Expected?: Record; /** *

This is a legacy parameter. Use ConditionExpression instead. For more @@ -11291,7 +11291,7 @@ export interface UpdateItemInput { *

For more information about expression attribute names, see Specifying Item Attributes in the Amazon DynamoDB Developer * Guide.

*/ - ExpressionAttributeNames?: { [key: string]: string }; + ExpressionAttributeNames?: Record; /** *

One or more values that can be substituted in an expression.

@@ -11314,7 +11314,7 @@ export interface UpdateItemInput { *

For more information on expression attribute values, see Condition Expressions in the Amazon DynamoDB Developer * Guide.

*/ - ExpressionAttributeValues?: { [key: string]: AttributeValue }; + ExpressionAttributeValues?: Record; } export namespace UpdateItemInput { diff --git a/clients/client-dynamodb/src/protocols/Aws_json1_0.ts b/clients/client-dynamodb/src/protocols/Aws_json1_0.ts index 76700622f72a..ae0f7ff4db89 100644 --- a/clients/client-dynamodb/src/protocols/Aws_json1_0.ts +++ b/clients/client-dynamodb/src/protocols/Aws_json1_0.ts @@ -4083,7 +4083,7 @@ const serializeAws_json1_0AttributeNameList = (input: string[], context: __Serde }; const serializeAws_json1_0AttributeUpdates = ( - input: { [key: string]: AttributeValueUpdate }, + input: Record, context: __SerdeContext ): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { @@ -4204,7 +4204,7 @@ const serializeAws_json1_0BatchGetItemInput = (input: BatchGetItemInput, context }; const serializeAws_json1_0BatchGetRequestMap = ( - input: { [key: string]: KeysAndAttributes }, + input: Record, context: __SerdeContext ): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { @@ -4244,7 +4244,7 @@ const serializeAws_json1_0BatchWriteItemInput = (input: BatchWriteItemInput, con }; const serializeAws_json1_0BatchWriteItemRequestMap = ( - input: { [key: string]: WriteRequest[] }, + input: Record, context: __SerdeContext ): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { @@ -4632,7 +4632,7 @@ const serializeAws_json1_0ExecuteTransactionInput = (input: ExecuteTransactionIn }; const serializeAws_json1_0ExpectedAttributeMap = ( - input: { [key: string]: ExpectedAttributeValue }, + input: Record, context: __SerdeContext ): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { @@ -4680,7 +4680,7 @@ const serializeAws_json1_0ExportTableToPointInTimeInput = ( }; const serializeAws_json1_0ExpressionAttributeNameMap = ( - input: { [key: string]: string }, + input: Record, context: __SerdeContext ): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { @@ -4695,7 +4695,7 @@ const serializeAws_json1_0ExpressionAttributeNameMap = ( }; const serializeAws_json1_0ExpressionAttributeValueMap = ( - input: { [key: string]: AttributeValue }, + input: Record, context: __SerdeContext ): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { @@ -4709,7 +4709,7 @@ const serializeAws_json1_0ExpressionAttributeValueMap = ( }, {}); }; -const serializeAws_json1_0FilterConditionMap = (input: { [key: string]: Condition }, context: __SerdeContext): any => { +const serializeAws_json1_0FilterConditionMap = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -4878,7 +4878,7 @@ const serializeAws_json1_0GlobalTableGlobalSecondaryIndexSettingsUpdateList = ( }); }; -const serializeAws_json1_0Key = (input: { [key: string]: AttributeValue }, context: __SerdeContext): any => { +const serializeAws_json1_0Key = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -4890,7 +4890,7 @@ const serializeAws_json1_0Key = (input: { [key: string]: AttributeValue }, conte }, {}); }; -const serializeAws_json1_0KeyConditions = (input: { [key: string]: Condition }, context: __SerdeContext): any => { +const serializeAws_json1_0KeyConditions = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -4902,7 +4902,7 @@ const serializeAws_json1_0KeyConditions = (input: { [key: string]: Condition }, }, {}); }; -const serializeAws_json1_0KeyList = (input: { [key: string]: AttributeValue }[], context: __SerdeContext): any => { +const serializeAws_json1_0KeyList = (input: Record[], context: __SerdeContext): any => { return input .filter((e: any) => e != null) .map((entry) => { @@ -5057,10 +5057,7 @@ const serializeAws_json1_0LocalSecondaryIndexList = (input: LocalSecondaryIndex[ }); }; -const serializeAws_json1_0MapAttributeValue = ( - input: { [key: string]: AttributeValue }, - context: __SerdeContext -): any => { +const serializeAws_json1_0MapAttributeValue = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -5239,7 +5236,7 @@ const serializeAws_json1_0PutItemInput = (input: PutItemInput, context: __SerdeC }; const serializeAws_json1_0PutItemInputAttributeMap = ( - input: { [key: string]: AttributeValue }, + input: Record, context: __SerdeContext ): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { @@ -6131,11 +6128,8 @@ const deserializeAws_json1_0AttributeDefinitions = (output: any, context: __Serd return retVal; }; -const deserializeAws_json1_0AttributeMap = ( - output: any, - context: __SerdeContext -): { [key: string]: AttributeValue } => { - return Object.entries(output).reduce((acc: { [key: string]: AttributeValue }, [key, value]: [string, any]) => { +const deserializeAws_json1_0AttributeMap = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -6383,8 +6377,8 @@ const deserializeAws_json1_0BatchGetItemOutput = (output: any, context: __SerdeC const deserializeAws_json1_0BatchGetRequestMap = ( output: any, context: __SerdeContext -): { [key: string]: KeysAndAttributes } => { - return Object.entries(output).reduce((acc: { [key: string]: KeysAndAttributes }, [key, value]: [string, any]) => { +): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -6398,9 +6392,9 @@ const deserializeAws_json1_0BatchGetRequestMap = ( const deserializeAws_json1_0BatchGetResponseMap = ( output: any, context: __SerdeContext -): { [key: string]: { [key: string]: AttributeValue }[] } => { +): Record[]> => { return Object.entries(output).reduce( - (acc: { [key: string]: { [key: string]: AttributeValue }[] }, [key, value]: [string, any]) => { + (acc: Record[]>, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -6454,8 +6448,8 @@ const deserializeAws_json1_0BatchWriteItemOutput = (output: any, context: __Serd const deserializeAws_json1_0BatchWriteItemRequestMap = ( output: any, context: __SerdeContext -): { [key: string]: WriteRequest[] } => { - return Object.entries(output).reduce((acc: { [key: string]: WriteRequest[] }, [key, value]: [string, any]) => { +): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -6981,8 +6975,8 @@ const deserializeAws_json1_0ExportTableToPointInTimeOutput = ( const deserializeAws_json1_0ExpressionAttributeNameMap = ( output: any, context: __SerdeContext -): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -7197,8 +7191,8 @@ const deserializeAws_json1_0InvalidRestoreTimeException = ( const deserializeAws_json1_0ItemCollectionKeyAttributeMap = ( output: any, context: __SerdeContext -): { [key: string]: AttributeValue } => { - return Object.entries(output).reduce((acc: { [key: string]: AttributeValue }, [key, value]: [string, any]) => { +): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -7240,19 +7234,16 @@ const deserializeAws_json1_0ItemCollectionMetricsMultiple = ( const deserializeAws_json1_0ItemCollectionMetricsPerTable = ( output: any, context: __SerdeContext -): { [key: string]: ItemCollectionMetrics[] } => { - return Object.entries(output).reduce( - (acc: { [key: string]: ItemCollectionMetrics[] }, [key, value]: [string, any]) => { - if (value === null) { - return acc; - } - return { - ...acc, - [key]: deserializeAws_json1_0ItemCollectionMetricsMultiple(value, context), - }; - }, - {} - ); +): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { + if (value === null) { + return acc; + } + return { + ...acc, + [key]: deserializeAws_json1_0ItemCollectionMetricsMultiple(value, context), + }; + }, {}); }; const deserializeAws_json1_0ItemCollectionSizeEstimateRange = (output: any, context: __SerdeContext): number[] => { @@ -7276,7 +7267,7 @@ const deserializeAws_json1_0ItemCollectionSizeLimitExceededException = ( } as any; }; -const deserializeAws_json1_0ItemList = (output: any, context: __SerdeContext): { [key: string]: AttributeValue }[] => { +const deserializeAws_json1_0ItemList = (output: any, context: __SerdeContext): Record[] => { const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { @@ -7309,8 +7300,8 @@ const deserializeAws_json1_0ItemResponseList = (output: any, context: __SerdeCon return retVal; }; -const deserializeAws_json1_0Key = (output: any, context: __SerdeContext): { [key: string]: AttributeValue } => { - return Object.entries(output).reduce((acc: { [key: string]: AttributeValue }, [key, value]: [string, any]) => { +const deserializeAws_json1_0Key = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -7321,7 +7312,7 @@ const deserializeAws_json1_0Key = (output: any, context: __SerdeContext): { [key }, {}); }; -const deserializeAws_json1_0KeyList = (output: any, context: __SerdeContext): { [key: string]: AttributeValue }[] => { +const deserializeAws_json1_0KeyList = (output: any, context: __SerdeContext): Record[] => { const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { @@ -7562,8 +7553,8 @@ const deserializeAws_json1_0LocalSecondaryIndexInfo = ( const deserializeAws_json1_0MapAttributeValue = ( output: any, context: __SerdeContext -): { [key: string]: AttributeValue } => { - return Object.entries(output).reduce((acc: { [key: string]: AttributeValue }, [key, value]: [string, any]) => { +): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -7693,8 +7684,8 @@ const deserializeAws_json1_0ProvisionedThroughputOverride = ( const deserializeAws_json1_0PutItemInputAttributeMap = ( output: any, context: __SerdeContext -): { [key: string]: AttributeValue } => { - return Object.entries(output).reduce((acc: { [key: string]: AttributeValue }, [key, value]: [string, any]) => { +): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -8121,8 +8112,8 @@ const deserializeAws_json1_0ScanOutput = (output: any, context: __SerdeContext): const deserializeAws_json1_0SecondaryIndexesCapacityMap = ( output: any, context: __SerdeContext -): { [key: string]: Capacity } => { - return Object.entries(output).reduce((acc: { [key: string]: Capacity }, [key, value]: [string, any]) => { +): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } diff --git a/clients/client-ecr/src/models/models_0.ts b/clients/client-ecr/src/models/models_0.ts index ab5327d2553f..14455a8dd674 100644 --- a/clients/client-ecr/src/models/models_0.ts +++ b/clients/client-ecr/src/models/models_0.ts @@ -1715,7 +1715,7 @@ export interface ImageScanFindingsSummary { /** *

The image vulnerability counts, sorted by severity.

*/ - findingSeverityCounts?: { [key: string]: number }; + findingSeverityCounts?: Record; } export namespace ImageScanFindingsSummary { @@ -2213,7 +2213,7 @@ export interface Resource { /** *

The tags attached to the resource.

*/ - tags?: { [key: string]: string }; + tags?: Record; /** *

The type of resource.

@@ -2482,7 +2482,7 @@ export interface ImageScanFindings { /** *

The image vulnerability counts, sorted by severity.

*/ - findingSeverityCounts?: { [key: string]: number }; + findingSeverityCounts?: Record; /** *

The findings from the image scan.

diff --git a/clients/client-ecr/src/protocols/Aws_json1_1.ts b/clients/client-ecr/src/protocols/Aws_json1_1.ts index 0eb4b8658e37..71c0260832eb 100644 --- a/clients/client-ecr/src/protocols/Aws_json1_1.ts +++ b/clients/client-ecr/src/protocols/Aws_json1_1.ts @@ -4654,22 +4654,16 @@ const deserializeAws_json1_1EnhancedImageScanFindingList = ( return retVal; }; -const deserializeAws_json1_1FindingSeverityCounts = ( - output: any, - context: __SerdeContext -): { [key: string]: number } => { - return Object.entries(output).reduce( - (acc: { [key: string]: number }, [key, value]: [FindingSeverity | string, any]) => { - if (value === null) { - return acc; - } - return { - ...acc, - [key]: __expectInt32(value) as any, - }; - }, - {} - ); +const deserializeAws_json1_1FindingSeverityCounts = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [FindingSeverity | string, any]) => { + if (value === null) { + return acc; + } + return { + ...acc, + [key]: __expectInt32(value) as any, + }; + }, {}); }; const deserializeAws_json1_1GetAuthorizationTokenResponse = ( @@ -5884,8 +5878,8 @@ const deserializeAws_json1_1TagResourceResponse = (output: any, context: __Serde return {} as any; }; -const deserializeAws_json1_1Tags = (output: any, context: __SerdeContext): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +const deserializeAws_json1_1Tags = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } diff --git a/clients/client-ecs/src/models/models_0.ts b/clients/client-ecs/src/models/models_0.ts index 6f6c87e3b256..bca60714fa1e 100644 --- a/clients/client-ecs/src/models/models_0.ts +++ b/clients/client-ecs/src/models/models_0.ts @@ -3888,7 +3888,7 @@ export interface FirelensConfiguration { * type.

* */ - options?: { [key: string]: string }; + options?: Record; } export namespace FirelensConfiguration { @@ -4389,7 +4389,7 @@ export interface LogConfiguration { *

The configuration options to send to the log driver. This parameter requires version 1.19 of the Docker Remote API or greater on your container instance. To check the Docker Remote API version on your container instance, log in to your container instance and run the following command: sudo docker version --format '{{.Server.APIVersion}}' *

*/ - options?: { [key: string]: string }; + options?: Record; /** *

The secrets to pass to the log configuration. For more information, see Specifying @@ -5303,7 +5303,7 @@ export interface ContainerDefinition { * Docker Remote API and the --label option to docker run. This parameter requires version 1.18 of the Docker Remote API or greater on your container instance. To check the Docker Remote API version on your container instance, log in to your container instance and run the following command: sudo docker version --format '{{.Server.APIVersion}}' *

*/ - dockerLabels?: { [key: string]: string }; + dockerLabels?: Record; /** *

A list of ulimits to set in the container. If a ulimit value is specified @@ -5695,7 +5695,7 @@ export interface DockerVolumeConfiguration { * Docker Remote API and the xxopt option to docker * volume create.

*/ - driverOpts?: { [key: string]: string }; + driverOpts?: Record; /** *

Custom metadata to add to your Docker volume. This parameter maps to @@ -5703,7 +5703,7 @@ export interface DockerVolumeConfiguration { * Docker Remote API and the xxlabel option to docker * volume create.

*/ - labels?: { [key: string]: string }; + labels?: Record; } export namespace DockerVolumeConfiguration { diff --git a/clients/client-ecs/src/protocols/Aws_json1_1.ts b/clients/client-ecs/src/protocols/Aws_json1_1.ts index 66d6d7c31d7d..1f6723319acd 100644 --- a/clients/client-ecs/src/protocols/Aws_json1_1.ts +++ b/clients/client-ecs/src/protocols/Aws_json1_1.ts @@ -4900,7 +4900,7 @@ const serializeAws_json1_1DiscoverPollEndpointRequest = ( }; }; -const serializeAws_json1_1DockerLabelsMap = (input: { [key: string]: string }, context: __SerdeContext): any => { +const serializeAws_json1_1DockerLabelsMap = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -5035,7 +5035,7 @@ const serializeAws_json1_1FirelensConfiguration = (input: FirelensConfiguration, }; const serializeAws_json1_1FirelensConfigurationOptionsMap = ( - input: { [key: string]: string }, + input: Record, context: __SerdeContext ): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { @@ -5328,7 +5328,7 @@ const serializeAws_json1_1LogConfiguration = (input: LogConfiguration, context: }; const serializeAws_json1_1LogConfigurationOptionsMap = ( - input: { [key: string]: string }, + input: Record, context: __SerdeContext ): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { @@ -5854,7 +5854,7 @@ const serializeAws_json1_1StringList = (input: string[], context: __SerdeContext }); }; -const serializeAws_json1_1StringMap = (input: { [key: string]: string }, context: __SerdeContext): any => { +const serializeAws_json1_1StringMap = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -7264,8 +7264,8 @@ const deserializeAws_json1_1DiscoverPollEndpointResponse = ( } as any; }; -const deserializeAws_json1_1DockerLabelsMap = (output: any, context: __SerdeContext): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +const deserializeAws_json1_1DockerLabelsMap = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -7426,8 +7426,8 @@ const deserializeAws_json1_1FirelensConfiguration = (output: any, context: __Ser const deserializeAws_json1_1FirelensConfigurationOptionsMap = ( output: any, context: __SerdeContext -): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -7785,8 +7785,8 @@ const deserializeAws_json1_1LogConfiguration = (output: any, context: __SerdeCon const deserializeAws_json1_1LogConfigurationOptionsMap = ( output: any, context: __SerdeContext -): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -8438,8 +8438,8 @@ const deserializeAws_json1_1StringList = (output: any, context: __SerdeContext): return retVal; }; -const deserializeAws_json1_1StringMap = (output: any, context: __SerdeContext): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +const deserializeAws_json1_1StringMap = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } diff --git a/clients/client-eks/src/models/models_0.ts b/clients/client-eks/src/models/models_0.ts index 1ee60c8f177f..c972e4262ceb 100644 --- a/clients/client-eks/src/models/models_0.ts +++ b/clients/client-eks/src/models/models_0.ts @@ -150,7 +150,7 @@ export interface Addon { * Add-on tags do not propagate to any other resources associated with the cluster. *

*/ - tags?: { [key: string]: string }; + tags?: Record; } export namespace Addon { @@ -832,7 +832,7 @@ export interface OidcIdentityProviderConfigRequest { * number of claims that you can require, see Amazon EKS service * quotas in the Amazon EKS User Guide.

*/ - requiredClaims?: { [key: string]: string }; + requiredClaims?: Record; } export namespace OidcIdentityProviderConfigRequest { @@ -860,7 +860,7 @@ export interface AssociateIdentityProviderConfigRequest { *

The metadata to apply to the configuration to assist with categorization and * organization. Each tag consists of a key and an optional value. You define both.

*/ - tags?: { [key: string]: string }; + tags?: Record; /** *

Unique, case-sensitive identifier that you provide to ensure the idempotency of the @@ -887,7 +887,7 @@ export interface AssociateIdentityProviderConfigResponse { /** *

The tags for the resource.

*/ - tags?: { [key: string]: string }; + tags?: Record; } export namespace AssociateIdentityProviderConfigResponse { @@ -970,7 +970,7 @@ export interface CreateAddonRequest { *

The metadata to apply to the cluster to assist with categorization and organization. * Each tag consists of a key and an optional value. You define both.

*/ - tags?: { [key: string]: string }; + tags?: Record; } export namespace CreateAddonRequest { @@ -1258,7 +1258,7 @@ export interface CreateClusterRequest { *

The metadata to apply to the cluster to assist with categorization and organization. * Each tag consists of a key and an optional value. You define both.

*/ - tags?: { [key: string]: string }; + tags?: Record; /** *

The encryption configuration for the cluster.

@@ -1585,7 +1585,7 @@ export interface Cluster { * Cluster tags do not propagate to any other resources associated with the * cluster.

*/ - tags?: { [key: string]: string }; + tags?: Record; /** *

The encryption configuration for the cluster.

@@ -1727,7 +1727,7 @@ export interface FargateProfileSelector { *

The Kubernetes labels that the selector should match. A pod must contain all of the * labels that are specified in the selector for it to be considered a match.

*/ - labels?: { [key: string]: string }; + labels?: Record; } export namespace FargateProfileSelector { @@ -1786,7 +1786,7 @@ export interface CreateFargateProfileRequest { * Fargate profile tags do not propagate to any other resources associated with the * Fargate profile, such as the pods that are scheduled with it.

*/ - tags?: { [key: string]: string }; + tags?: Record; } export namespace CreateFargateProfileRequest { @@ -1854,7 +1854,7 @@ export interface FargateProfile { * Fargate profile tags do not propagate to any other resources associated with the * Fargate profile, such as the pods that are scheduled with it.

*/ - tags?: { [key: string]: string }; + tags?: Record; } export namespace FargateProfile { @@ -2161,7 +2161,7 @@ export interface CreateNodegroupRequest { *

The Kubernetes labels to be applied to the nodes in the node group when they are * created.

*/ - labels?: { [key: string]: string }; + labels?: Record; /** *

The Kubernetes taints to be applied to the nodes in the node group. For more information, see Node taints on managed node groups.

@@ -2174,7 +2174,7 @@ export interface CreateNodegroupRequest { * define both. Node group tags do not propagate to any other resources associated with the node * group, such as the Amazon EC2 instances or subnets.

*/ - tags?: { [key: string]: string }; + tags?: Record; /** *

Unique, case-sensitive identifier that you provide to ensure the idempotency of the @@ -2532,7 +2532,7 @@ export interface Nodegroup { * may be other Kubernetes labels applied to the nodes in this group.

* */ - labels?: { [key: string]: string }; + labels?: Record; /** *

The Kubernetes taints to be applied to the nodes in the node group when they are @@ -2578,7 +2578,7 @@ export interface Nodegroup { * tags do not propagate to any other resources associated with the node group, such as the * Amazon EC2 instances or subnets.

*/ - tags?: { [key: string]: string }; + tags?: Record; } export namespace Nodegroup { @@ -3084,13 +3084,13 @@ export interface OidcIdentityProviderConfig { *

The key-value pairs that describe required claims in the identity token. If set, each * claim is verified to be present in the token with a matching value.

*/ - requiredClaims?: { [key: string]: string }; + requiredClaims?: Record; /** *

The metadata to apply to the provider configuration to assist with categorization and * organization. Each tag consists of a key and an optional value. You define both.

*/ - tags?: { [key: string]: string }; + tags?: Record; /** *

The status of the OIDC identity provider.

@@ -3636,7 +3636,7 @@ export interface ListTagsForResourceResponse { /** *

The tags for the resource.

*/ - tags?: { [key: string]: string }; + tags?: Record; } export namespace ListTagsForResourceResponse { @@ -3799,7 +3799,7 @@ export interface RegisterClusterRequest { * define. Cluster tags do not propagate to any other resources associated with the * cluster.

*/ - tags?: { [key: string]: string }; + tags?: Record; } export namespace RegisterClusterRequest { @@ -3856,7 +3856,7 @@ export interface TagResourceRequest { /** *

The tags to add to the resource. A tag is an array of key-value pairs.

*/ - tags: { [key: string]: string } | undefined; + tags: Record | undefined; } export namespace TagResourceRequest { @@ -4091,7 +4091,7 @@ export interface UpdateLabelsPayload { /** *

Kubernetes labels to be added or updated.

*/ - addOrUpdateLabels?: { [key: string]: string }; + addOrUpdateLabels?: Record; /** *

Kubernetes labels to be removed.

diff --git a/clients/client-eks/src/protocols/Aws_restJson1.ts b/clients/client-eks/src/protocols/Aws_restJson1.ts index 4ed5af8da5de..1c0a1ea79725 100644 --- a/clients/client-eks/src/protocols/Aws_restJson1.ts +++ b/clients/client-eks/src/protocols/Aws_restJson1.ts @@ -3701,7 +3701,7 @@ const serializeAws_restJson1EncryptionConfigList = (input: EncryptionConfig[], c }); }; -const serializeAws_restJson1FargateProfileLabel = (input: { [key: string]: string }, context: __SerdeContext): any => { +const serializeAws_restJson1FargateProfileLabel = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -3764,7 +3764,7 @@ const serializeAws_restJson1labelsKeyList = (input: string[], context: __SerdeCo }); }; -const serializeAws_restJson1labelsMap = (input: { [key: string]: string }, context: __SerdeContext): any => { +const serializeAws_restJson1labelsMap = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -3880,7 +3880,7 @@ const serializeAws_restJson1RemoteAccessConfig = (input: RemoteAccessConfig, con }; }; -const serializeAws_restJson1requiredClaimsMap = (input: { [key: string]: string }, context: __SerdeContext): any => { +const serializeAws_restJson1requiredClaimsMap = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -3903,7 +3903,7 @@ const serializeAws_restJson1StringList = (input: string[], context: __SerdeConte }); }; -const serializeAws_restJson1TagMap = (input: { [key: string]: string }, context: __SerdeContext): any => { +const serializeAws_restJson1TagMap = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -4271,11 +4271,8 @@ const deserializeAws_restJson1FargateProfile = (output: any, context: __SerdeCon } as any; }; -const deserializeAws_restJson1FargateProfileLabel = ( - output: any, - context: __SerdeContext -): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +const deserializeAws_restJson1FargateProfileLabel = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -4394,8 +4391,8 @@ const deserializeAws_restJson1KubernetesNetworkConfigResponse = ( } as any; }; -const deserializeAws_restJson1labelsMap = (output: any, context: __SerdeContext): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +const deserializeAws_restJson1labelsMap = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -4612,8 +4609,8 @@ const deserializeAws_restJson1RemoteAccessConfig = (output: any, context: __Serd } as any; }; -const deserializeAws_restJson1requiredClaimsMap = (output: any, context: __SerdeContext): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +const deserializeAws_restJson1requiredClaimsMap = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -4636,8 +4633,8 @@ const deserializeAws_restJson1StringList = (output: any, context: __SerdeContext return retVal; }; -const deserializeAws_restJson1TagMap = (output: any, context: __SerdeContext): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +const deserializeAws_restJson1TagMap = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } diff --git a/clients/client-elastic-inference/src/models/models_0.ts b/clients/client-elastic-inference/src/models/models_0.ts index e30e976ca6f2..6a8925952dee 100644 --- a/clients/client-elastic-inference/src/models/models_0.ts +++ b/clients/client-elastic-inference/src/models/models_0.ts @@ -474,7 +474,7 @@ export interface ListTagsForResourceResult { * The tags of the Elastic Inference Accelerator. *

*/ - tags?: { [key: string]: string }; + tags?: Record; } export namespace ListTagsForResourceResult { @@ -499,7 +499,7 @@ export interface TagResourceRequest { * The tags to add to the Elastic Inference Accelerator. *

*/ - tags: { [key: string]: string } | undefined; + tags: Record | undefined; } export namespace TagResourceRequest { diff --git a/clients/client-elastic-inference/src/protocols/Aws_restJson1.ts b/clients/client-elastic-inference/src/protocols/Aws_restJson1.ts index 93faba49a0e5..bc685e2ed878 100644 --- a/clients/client-elastic-inference/src/protocols/Aws_restJson1.ts +++ b/clients/client-elastic-inference/src/protocols/Aws_restJson1.ts @@ -604,7 +604,7 @@ const serializeAws_restJson1FilterList = (input: Filter[], context: __SerdeConte }); }; -const serializeAws_restJson1TagMap = (input: { [key: string]: string }, context: __SerdeContext): any => { +const serializeAws_restJson1TagMap = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -732,8 +732,8 @@ const deserializeAws_restJson1MemoryInfo = (output: any, context: __SerdeContext } as any; }; -const deserializeAws_restJson1TagMap = (output: any, context: __SerdeContext): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +const deserializeAws_restJson1TagMap = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } diff --git a/clients/client-elastic-load-balancing-v2/src/models/models_0.ts b/clients/client-elastic-load-balancing-v2/src/models/models_0.ts index a227fefcf58a..77a1262adf60 100644 --- a/clients/client-elastic-load-balancing-v2/src/models/models_0.ts +++ b/clients/client-elastic-load-balancing-v2/src/models/models_0.ts @@ -53,7 +53,7 @@ export interface AuthenticateCognitoActionConfig { *

The query parameters (up to 10) to include in the redirect request to the authorization * endpoint.

*/ - AuthenticationRequestExtraParams?: { [key: string]: string }; + AuthenticationRequestExtraParams?: Record; /** *

The behavior if the user is not authenticated. The following are possible values:

@@ -153,7 +153,7 @@ export interface AuthenticateOidcActionConfig { *

The query parameters (up to 10) to include in the redirect request to the authorization * endpoint.

*/ - AuthenticationRequestExtraParams?: { [key: string]: string }; + AuthenticationRequestExtraParams?: Record; /** *

The behavior if the user is not authenticated. The following are possible values:

diff --git a/clients/client-elastic-load-balancing-v2/src/protocols/Aws_query.ts b/clients/client-elastic-load-balancing-v2/src/protocols/Aws_query.ts index 3d51663fbdd3..18b618526a6f 100644 --- a/clients/client-elastic-load-balancing-v2/src/protocols/Aws_query.ts +++ b/clients/client-elastic-load-balancing-v2/src/protocols/Aws_query.ts @@ -3188,7 +3188,7 @@ const serializeAws_queryAlpnPolicyName = (input: string[], context: __SerdeConte }; const serializeAws_queryAuthenticateCognitoActionAuthenticationRequestExtraParams = ( - input: { [key: string]: string }, + input: Record, context: __SerdeContext ): any => { const entries: any = {}; @@ -3243,7 +3243,7 @@ const serializeAws_queryAuthenticateCognitoActionConfig = ( }; const serializeAws_queryAuthenticateOidcActionAuthenticationRequestExtraParams = ( - input: { [key: string]: string }, + input: Record, context: __SerdeContext ): any => { const entries: any = {}; @@ -4780,7 +4780,7 @@ const deserializeAws_queryALPNPolicyNotSupportedException = ( const deserializeAws_queryAuthenticateCognitoActionAuthenticationRequestExtraParams = ( output: any, context: __SerdeContext -): { [key: string]: string } => { +): Record => { return output.reduce((acc: any, pair: any) => { if (pair["value"] === null) { return acc; @@ -4846,7 +4846,7 @@ const deserializeAws_queryAuthenticateCognitoActionConfig = ( const deserializeAws_queryAuthenticateOidcActionAuthenticationRequestExtraParams = ( output: any, context: __SerdeContext -): { [key: string]: string } => { +): Record => { return output.reduce((acc: any, pair: any) => { if (pair["value"] === null) { return acc; diff --git a/clients/client-elastic-transcoder/src/models/models_0.ts b/clients/client-elastic-transcoder/src/models/models_0.ts index 9008ed520dc7..75d24533a91e 100644 --- a/clients/client-elastic-transcoder/src/models/models_0.ts +++ b/clients/client-elastic-transcoder/src/models/models_0.ts @@ -1740,7 +1740,7 @@ export interface CreateJobRequest { * Elastic Transcoder does not guarantee that key/value pairs are returned in the same * order in which you specify them.

*/ - UserMetadata?: { [key: string]: string }; + UserMetadata?: Record; } export namespace CreateJobRequest { @@ -2270,7 +2270,7 @@ export interface Job { * * */ - UserMetadata?: { [key: string]: string }; + UserMetadata?: Record; /** *

Details about the timing of a job.

@@ -3715,7 +3715,7 @@ export interface VideoParameters { *

The number of times you want the output gif to loop. Valid values include Infinite and * integers between 0 and 100, inclusive.

*/ - CodecOptions?: { [key: string]: string }; + CodecOptions?: Record; /** *

Applicable only when the value of Video:Codec is one of H.264, MPEG2, diff --git a/clients/client-elastic-transcoder/src/protocols/Aws_restJson1.ts b/clients/client-elastic-transcoder/src/protocols/Aws_restJson1.ts index 382c4f966e84..b3c494d66b7f 100644 --- a/clients/client-elastic-transcoder/src/protocols/Aws_restJson1.ts +++ b/clients/client-elastic-transcoder/src/protocols/Aws_restJson1.ts @@ -1850,7 +1850,7 @@ const serializeAws_restJson1Clip = (input: Clip, context: __SerdeContext): any = }; }; -const serializeAws_restJson1CodecOptions = (input: { [key: string]: string }, context: __SerdeContext): any => { +const serializeAws_restJson1CodecOptions = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -2166,7 +2166,7 @@ const serializeAws_restJson1TimeSpan = (input: TimeSpan, context: __SerdeContext }; }; -const serializeAws_restJson1UserMetadata = (input: { [key: string]: string }, context: __SerdeContext): any => { +const serializeAws_restJson1UserMetadata = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -2335,8 +2335,8 @@ const deserializeAws_restJson1Clip = (output: any, context: __SerdeContext): Cli } as any; }; -const deserializeAws_restJson1CodecOptions = (output: any, context: __SerdeContext): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +const deserializeAws_restJson1CodecOptions = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -2815,8 +2815,8 @@ const deserializeAws_restJson1Timing = (output: any, context: __SerdeContext): T } as any; }; -const deserializeAws_restJson1UserMetadata = (output: any, context: __SerdeContext): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +const deserializeAws_restJson1UserMetadata = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } diff --git a/clients/client-elasticsearch-service/src/models/models_0.ts b/clients/client-elasticsearch-service/src/models/models_0.ts index c8696ee72d58..9007fbe0b41a 100644 --- a/clients/client-elasticsearch-service/src/models/models_0.ts +++ b/clients/client-elasticsearch-service/src/models/models_0.ts @@ -457,7 +457,7 @@ export interface AdvancedOptionsStatus { /** *

Specifies the status of advanced options for the specified Elasticsearch domain.

*/ - Options: { [key: string]: string } | undefined; + Options: Record | undefined; /** *

Specifies the status of OptionStatus for advanced options for the specified Elasticsearch domain.

@@ -1517,12 +1517,12 @@ export interface CreateElasticsearchDomainRequest { *

Option to allow references to indices in an HTTP request body. Must be false when configuring access to individual sub-resources. By default, the value is true. * See Configuration Advanced Options for more information.

*/ - AdvancedOptions?: { [key: string]: string }; + AdvancedOptions?: Record; /** *

Map of LogType and LogPublishingOption, each containing options to publish a given type of Elasticsearch log.

*/ - LogPublishingOptions?: { [key: string]: LogPublishingOption }; + LogPublishingOptions?: Record; /** *

Options to specify configuration that will be applied to the domain endpoint.

@@ -1688,7 +1688,7 @@ export interface ElasticsearchDomainStatus { /** *

Map containing the Elasticsearch domain endpoints used to submit index and search requests. Example key, value: 'vpc','vpc-endpoint-h2dsd34efgyghrtguk5gt6j2foh4.us-east-1.es.amazonaws.com'.

*/ - Endpoints?: { [key: string]: string }; + Endpoints?: Record; /** *

The status of the Elasticsearch domain configuration. True if Amazon Elasticsearch Service is processing configuration changes. False if the configuration is active.

@@ -1744,12 +1744,12 @@ export interface ElasticsearchDomainStatus { /** *

Specifies the status of the AdvancedOptions

*/ - AdvancedOptions?: { [key: string]: string }; + AdvancedOptions?: Record; /** *

Log publishing options for the given domain.

*/ - LogPublishingOptions?: { [key: string]: LogPublishingOption }; + LogPublishingOptions?: Record; /** *

The current status of the Elasticsearch domain's service software.

@@ -2904,7 +2904,7 @@ export interface LogPublishingOptionsStatus { /** *

The log publishing options configured for the Elasticsearch domain.

*/ - Options?: { [key: string]: LogPublishingOption }; + Options?: Record; /** *

The status of the log publishing options for the Elasticsearch domain. See OptionStatus for the status information that's included.

@@ -3420,7 +3420,7 @@ export interface DescribeElasticsearchInstanceTypeLimitsResponse { * *

*/ - LimitsByRole?: { [key: string]: Limits }; + LimitsByRole?: Record; } export namespace DescribeElasticsearchInstanceTypeLimitsResponse { @@ -5063,7 +5063,7 @@ export interface UpdateElasticsearchDomainConfigRequest { *

Modifies the advanced option to allow references to indices in an HTTP request body. Must be false when configuring access to individual sub-resources. By default, the value is true. * See Configuration Advanced Options for more information.

*/ - AdvancedOptions?: { [key: string]: string }; + AdvancedOptions?: Record; /** *

IAM access policy as a JSON-formatted string.

@@ -5073,7 +5073,7 @@ export interface UpdateElasticsearchDomainConfigRequest { /** *

Map of LogType and LogPublishingOption, each containing options to publish a given type of Elasticsearch log.

*/ - LogPublishingOptions?: { [key: string]: LogPublishingOption }; + LogPublishingOptions?: Record; /** *

Options to specify configuration that will be applied to the domain endpoint.

diff --git a/clients/client-elasticsearch-service/src/protocols/Aws_restJson1.ts b/clients/client-elasticsearch-service/src/protocols/Aws_restJson1.ts index 08dd1801d1c2..fa44cf37dec1 100644 --- a/clients/client-elasticsearch-service/src/protocols/Aws_restJson1.ts +++ b/clients/client-elasticsearch-service/src/protocols/Aws_restJson1.ts @@ -4117,7 +4117,7 @@ const deserializeAws_restJson1ValidationExceptionResponse = async ( return __decorateServiceException(exception, parsedOutput.body); }; -const serializeAws_restJson1AdvancedOptions = (input: { [key: string]: string }, context: __SerdeContext): any => { +const serializeAws_restJson1AdvancedOptions = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -4373,7 +4373,7 @@ const serializeAws_restJson1LogPublishingOption = (input: LogPublishingOption, c }; const serializeAws_restJson1LogPublishingOptions = ( - input: { [key: string]: LogPublishingOption }, + input: Record, context: __SerdeContext ): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [LogType | string, any]) => { @@ -4533,8 +4533,8 @@ const deserializeAws_restJson1AdditionalLimitList = (output: any, context: __Ser return retVal; }; -const deserializeAws_restJson1AdvancedOptions = (output: any, context: __SerdeContext): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +const deserializeAws_restJson1AdvancedOptions = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -5210,8 +5210,8 @@ const deserializeAws_restJson1EncryptionAtRestOptionsStatus = ( } as any; }; -const deserializeAws_restJson1EndpointsMap = (output: any, context: __SerdeContext): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +const deserializeAws_restJson1EndpointsMap = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -5320,8 +5320,8 @@ const deserializeAws_restJson1Limits = (output: any, context: __SerdeContext): L } as any; }; -const deserializeAws_restJson1LimitsByRole = (output: any, context: __SerdeContext): { [key: string]: Limits } => { - return Object.entries(output).reduce((acc: { [key: string]: Limits }, [key, value]: [string, any]) => { +const deserializeAws_restJson1LimitsByRole = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -5354,9 +5354,9 @@ const deserializeAws_restJson1LogPublishingOption = (output: any, context: __Ser const deserializeAws_restJson1LogPublishingOptions = ( output: any, context: __SerdeContext -): { [key: string]: LogPublishingOption } => { +): Record => { return Object.entries(output).reduce( - (acc: { [key: string]: LogPublishingOption }, [key, value]: [LogType | string, any]) => { + (acc: Record, [key, value]: [LogType | string, any]) => { if (value === null) { return acc; } diff --git a/clients/client-emr-containers/src/models/models_0.ts b/clients/client-emr-containers/src/models/models_0.ts index 6c65fd905d8d..fcda20dbff65 100644 --- a/clients/client-emr-containers/src/models/models_0.ts +++ b/clients/client-emr-containers/src/models/models_0.ts @@ -320,7 +320,7 @@ export interface CreateVirtualClusterRequest { /** *

The tags assigned to the virtual cluster.

*/ - tags?: { [key: string]: string }; + tags?: Record; } export namespace CreateVirtualClusterRequest { @@ -638,7 +638,7 @@ export interface VirtualCluster { /** *

The assigned tags of the virtual cluster.

*/ - tags?: { [key: string]: string }; + tags?: Record; } export namespace VirtualCluster { @@ -780,7 +780,7 @@ export interface ListTagsForResourceResponse { /** *

The tags assigned to resources.

*/ - tags?: { [key: string]: string }; + tags?: Record; } export namespace ListTagsForResourceResponse { @@ -902,7 +902,7 @@ export interface TagResourceRequest { /** *

The tags assigned to resources.

*/ - tags: { [key: string]: string } | undefined; + tags: Record | undefined; } export namespace TagResourceRequest { @@ -969,7 +969,7 @@ export interface Configuration { /** *

A set of properties specified within a configuration classification.

*/ - properties?: { [key: string]: string }; + properties?: Record; /** *

A list of additional configurations to apply within a configuration object.

@@ -1064,7 +1064,7 @@ export interface CreateManagedEndpointRequest { *

The tags of the managed endpoint. *

*/ - tags?: { [key: string]: string }; + tags?: Record; } export namespace CreateManagedEndpointRequest { @@ -1180,7 +1180,7 @@ export interface Endpoint { *

The tags of the endpoint. *

*/ - tags?: { [key: string]: string }; + tags?: Record; } export namespace Endpoint { @@ -1277,7 +1277,7 @@ export interface JobRun { /** *

The assigned tags of the job run.

*/ - tags?: { [key: string]: string }; + tags?: Record; } export namespace JobRun { @@ -1332,7 +1332,7 @@ export interface StartJobRunRequest { /** *

The tags assigned to job runs.

*/ - tags?: { [key: string]: string }; + tags?: Record; } export namespace StartJobRunRequest { diff --git a/clients/client-emr-containers/src/protocols/Aws_restJson1.ts b/clients/client-emr-containers/src/protocols/Aws_restJson1.ts index a0048d65dab2..9dd549fa2a75 100644 --- a/clients/client-emr-containers/src/protocols/Aws_restJson1.ts +++ b/clients/client-emr-containers/src/protocols/Aws_restJson1.ts @@ -1576,10 +1576,7 @@ const serializeAws_restJson1S3MonitoringConfiguration = ( }; }; -const serializeAws_restJson1SensitivePropertiesMap = ( - input: { [key: string]: string }, - context: __SerdeContext -): any => { +const serializeAws_restJson1SensitivePropertiesMap = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -1603,7 +1600,7 @@ const serializeAws_restJson1SparkSubmitJobDriver = (input: SparkSubmitJobDriver, }; }; -const serializeAws_restJson1TagMap = (input: { [key: string]: string }, context: __SerdeContext): any => { +const serializeAws_restJson1TagMap = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -1848,8 +1845,8 @@ const deserializeAws_restJson1S3MonitoringConfiguration = ( const deserializeAws_restJson1SensitivePropertiesMap = ( output: any, context: __SerdeContext -): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -1883,8 +1880,8 @@ const deserializeAws_restJson1SubnetIds = (output: any, context: __SerdeContext) return retVal; }; -const deserializeAws_restJson1TagMap = (output: any, context: __SerdeContext): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +const deserializeAws_restJson1TagMap = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } diff --git a/clients/client-emr-serverless/src/models/models_0.ts b/clients/client-emr-serverless/src/models/models_0.ts index 2c6370a8ba31..ca29b6c5fc4e 100644 --- a/clients/client-emr-serverless/src/models/models_0.ts +++ b/clients/client-emr-serverless/src/models/models_0.ts @@ -206,7 +206,7 @@ export interface Application { /** *

The initial capacity of the application.

*/ - initialCapacity?: { [key: string]: InitialCapacityConfig }; + initialCapacity?: Record; /** *

The maximum capacity of the application. This is cumulative across all workers at any @@ -228,7 +228,7 @@ export interface Application { /** *

The tags assigned to the application.

*/ - tags?: { [key: string]: string }; + tags?: Record; /** *

The configuration for an application to automatically start on job submission.

@@ -359,7 +359,7 @@ export interface CreateApplicationRequest { /** *

The capacity to initialize when the application is created.

*/ - initialCapacity?: { [key: string]: InitialCapacityConfig }; + initialCapacity?: Record; /** *

The maximum capacity to allocate when the application is created. This is cumulative @@ -371,7 +371,7 @@ export interface CreateApplicationRequest { /** *

The tags assigned to the application.

*/ - tags?: { [key: string]: string }; + tags?: Record; /** *

The configuration for an application to automatically start on job submission.

@@ -676,7 +676,7 @@ export interface UpdateApplicationRequest { /** *

The capacity to initialize when the application is updated.

*/ - initialCapacity?: { [key: string]: InitialCapacityConfig }; + initialCapacity?: Record; /** *

The maximum capacity to allocate when the application is updated. This is cumulative @@ -1202,7 +1202,7 @@ export interface ListTagsForResourceResponse { /** *

The tags for the resource.

*/ - tags?: { [key: string]: string }; + tags?: Record; } export namespace ListTagsForResourceResponse { @@ -1223,7 +1223,7 @@ export interface TagResourceRequest { /** *

The tags to add to the resource. A tag is an array of key-value pairs.

*/ - tags: { [key: string]: string } | undefined; + tags: Record | undefined; } export namespace TagResourceRequest { @@ -1293,7 +1293,7 @@ export interface Configuration { /** *

A set of properties specified within a configuration classification.

*/ - properties?: { [key: string]: string }; + properties?: Record; /** *

A list of additional configurations to apply within a configuration object.

@@ -1414,7 +1414,7 @@ export interface JobRun { /** *

The tags assigned to the job run.

*/ - tags?: { [key: string]: string }; + tags?: Record; /** *

The aggregate vCPU, memory, and storage resources used from the time job start executing till the time job is terminated, @@ -1476,7 +1476,7 @@ export interface StartJobRunRequest { /** *

The tags assigned to the job run.

*/ - tags?: { [key: string]: string }; + tags?: Record; /** *

The maximum duration for the job run to run. If the job run runs beyond this duration, it will be automatically cancelled.

diff --git a/clients/client-emr-serverless/src/protocols/Aws_restJson1.ts b/clients/client-emr-serverless/src/protocols/Aws_restJson1.ts index b70d2b158e89..fa6bb02c0cf1 100644 --- a/clients/client-emr-serverless/src/protocols/Aws_restJson1.ts +++ b/clients/client-emr-serverless/src/protocols/Aws_restJson1.ts @@ -1442,7 +1442,7 @@ const serializeAws_restJson1InitialCapacityConfig = (input: InitialCapacityConfi }; const serializeAws_restJson1InitialCapacityConfigMap = ( - input: { [key: string]: InitialCapacityConfig }, + input: Record, context: __SerdeContext ): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { @@ -1541,10 +1541,7 @@ const serializeAws_restJson1SecurityGroupIds = (input: string[], context: __Serd }); }; -const serializeAws_restJson1SensitivePropertiesMap = ( - input: { [key: string]: string }, - context: __SerdeContext -): any => { +const serializeAws_restJson1SensitivePropertiesMap = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -1579,7 +1576,7 @@ const serializeAws_restJson1SubnetIds = (input: string[], context: __SerdeContex }); }; -const serializeAws_restJson1TagMap = (input: { [key: string]: string }, context: __SerdeContext): any => { +const serializeAws_restJson1TagMap = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -1763,8 +1760,8 @@ const deserializeAws_restJson1InitialCapacityConfig = (output: any, context: __S const deserializeAws_restJson1InitialCapacityConfigMap = ( output: any, context: __SerdeContext -): { [key: string]: InitialCapacityConfig } => { - return Object.entries(output).reduce((acc: { [key: string]: InitialCapacityConfig }, [key, value]: [string, any]) => { +): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -1946,8 +1943,8 @@ const deserializeAws_restJson1SecurityGroupIds = (output: any, context: __SerdeC const deserializeAws_restJson1SensitivePropertiesMap = ( output: any, context: __SerdeContext -): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -1981,8 +1978,8 @@ const deserializeAws_restJson1SubnetIds = (output: any, context: __SerdeContext) return retVal; }; -const deserializeAws_restJson1TagMap = (output: any, context: __SerdeContext): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +const deserializeAws_restJson1TagMap = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } diff --git a/clients/client-emr/src/models/models_0.ts b/clients/client-emr/src/models/models_0.ts index a4037f579abd..050cd772b5d0 100644 --- a/clients/client-emr/src/models/models_0.ts +++ b/clients/client-emr/src/models/models_0.ts @@ -1057,7 +1057,7 @@ export interface Application { *

This option is for advanced users only. This is meta information about third-party * applications that third-party vendors use for testing purposes.

*/ - AdditionalInfo?: { [key: string]: string }; + AdditionalInfo?: Record; } export namespace Application { @@ -3088,7 +3088,7 @@ export interface HadoopStepConfig { *

The list of Java properties that are set when the step runs. You can use these * properties to pass key-value pairs to your main function.

*/ - Properties?: { [key: string]: string }; + Properties?: Record; /** *

The name of the main class in the specified Java file. If not specified, the JAR file @@ -5756,7 +5756,7 @@ export interface Configuration { /** *

A set of properties specified within a configuration classification.

*/ - Properties?: { [key: string]: string }; + Properties?: Record; } export namespace Configuration { @@ -5808,7 +5808,7 @@ export interface BlockPublicAccessConfiguration { /** *

A set of properties specified within a configuration classification.

*/ - Properties?: { [key: string]: string }; + Properties?: Record; } export namespace BlockPublicAccessConfiguration { diff --git a/clients/client-emr/src/protocols/Aws_json1_1.ts b/clients/client-emr/src/protocols/Aws_json1_1.ts index ae31bcf02367..2ca550f98eca 100644 --- a/clients/client-emr/src/protocols/Aws_json1_1.ts +++ b/clients/client-emr/src/protocols/Aws_json1_1.ts @@ -4812,7 +4812,7 @@ const serializeAws_json1_1StringList = (input: string[], context: __SerdeContext }); }; -const serializeAws_json1_1StringMap = (input: { [key: string]: string }, context: __SerdeContext): any => { +const serializeAws_json1_1StringMap = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -6920,8 +6920,8 @@ const deserializeAws_json1_1StringList = (output: any, context: __SerdeContext): return retVal; }; -const deserializeAws_json1_1StringMap = (output: any, context: __SerdeContext): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +const deserializeAws_json1_1StringMap = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } diff --git a/clients/client-eventbridge/src/models/models_0.ts b/clients/client-eventbridge/src/models/models_0.ts index 3f1492a07b6b..a903fdebed3c 100644 --- a/clients/client-eventbridge/src/models/models_0.ts +++ b/clients/client-eventbridge/src/models/models_0.ts @@ -3858,13 +3858,13 @@ export interface HttpParameters { *

The headers that need to be sent as part of request invoking the API Gateway REST API or * EventBridge ApiDestination.

*/ - HeaderParameters?: { [key: string]: string }; + HeaderParameters?: Record; /** *

The query string keys/values that need to be sent as part of request invoking the API Gateway * REST API or EventBridge ApiDestination.

*/ - QueryStringParameters?: { [key: string]: string }; + QueryStringParameters?: Record; } export namespace HttpParameters { @@ -3891,7 +3891,7 @@ export interface InputTransformer { * notation.

*

The keys cannot start with "Amazon Web Services."

*/ - InputPathsMap?: { [key: string]: string }; + InputPathsMap?: Record; /** *

Input template where you specify placeholders that will be filled with the values of the diff --git a/clients/client-eventbridge/src/protocols/Aws_json1_1.ts b/clients/client-eventbridge/src/protocols/Aws_json1_1.ts index cfc6bcc4ba2f..279286e46203 100644 --- a/clients/client-eventbridge/src/protocols/Aws_json1_1.ts +++ b/clients/client-eventbridge/src/protocols/Aws_json1_1.ts @@ -4487,7 +4487,7 @@ const serializeAws_json1_1FailoverConfig = (input: FailoverConfig, context: __Se }; }; -const serializeAws_json1_1HeaderParametersMap = (input: { [key: string]: string }, context: __SerdeContext): any => { +const serializeAws_json1_1HeaderParametersMap = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -4836,10 +4836,7 @@ const serializeAws_json1_1PutTargetsRequest = (input: PutTargetsRequest, context }; }; -const serializeAws_json1_1QueryStringParametersMap = ( - input: { [key: string]: string }, - context: __SerdeContext -): any => { +const serializeAws_json1_1QueryStringParametersMap = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -5160,7 +5157,7 @@ const serializeAws_json1_1TestEventPatternRequest = (input: TestEventPatternRequ }; }; -const serializeAws_json1_1TransformerPaths = (input: { [key: string]: string }, context: __SerdeContext): any => { +const serializeAws_json1_1TransformerPaths = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -6177,8 +6174,8 @@ const deserializeAws_json1_1FailoverConfig = (output: any, context: __SerdeConte } as any; }; -const deserializeAws_json1_1HeaderParametersMap = (output: any, context: __SerdeContext): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +const deserializeAws_json1_1HeaderParametersMap = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -6663,8 +6660,8 @@ const deserializeAws_json1_1PutTargetsResultEntryList = ( const deserializeAws_json1_1QueryStringParametersMap = ( output: any, context: __SerdeContext -): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -7077,8 +7074,8 @@ const deserializeAws_json1_1TestEventPatternResponse = ( } as any; }; -const deserializeAws_json1_1TransformerPaths = (output: any, context: __SerdeContext): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +const deserializeAws_json1_1TransformerPaths = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } diff --git a/clients/client-evidently/src/models/models_0.ts b/clients/client-evidently/src/models/models_0.ts index aab1bc23adf1..fac1401f3ff0 100644 --- a/clients/client-evidently/src/models/models_0.ts +++ b/clients/client-evidently/src/models/models_0.ts @@ -540,7 +540,7 @@ export interface OnlineAbConfig { * thousandths of a percent, so 20,000 for a variation would allocate 20% of the experiment * traffic to that variation.

*/ - treatmentWeights?: { [key: string]: number }; + treatmentWeights?: Record; } export namespace OnlineAbConfig { @@ -647,7 +647,7 @@ export interface CreateExperimentRequest { *

You can associate as many as 50 tags with an experiment.

*

For more information, see Tagging Amazon Web Services resources.

*/ - tags?: { [key: string]: string }; + tags?: Record; } export namespace CreateExperimentRequest { @@ -773,7 +773,7 @@ export interface OnlineAbDefinition { * thousandths of a percent, so 20,000 for a variation would allocate 20% of the experiment * traffic to that variation.

*/ - treatmentWeights?: { [key: string]: number }; + treatmentWeights?: Record; } export namespace OnlineAbDefinition { @@ -831,7 +831,7 @@ export interface Treatment { *

The feature variation used for this treatment. This is a key-value pair. The key is the * feature name, and the value is the variation name.

*/ - featureVariations?: { [key: string]: string }; + featureVariations?: Record; } export namespace Treatment { @@ -944,7 +944,7 @@ export interface Experiment { /** *

The list of tag keys and values associated with this experiment.

*/ - tags?: { [key: string]: string }; + tags?: Record; } export namespace Experiment { @@ -1094,7 +1094,7 @@ export interface CreateFeatureRequest { *

You can associate as many as 50 tags with a feature.

*

For more information, see Tagging Amazon Web Services resources.

*/ - tags?: { [key: string]: string }; + tags?: Record; /** *

Specify users that should always be served a specific variation of a feature. Each user @@ -1102,7 +1102,7 @@ export interface CreateFeatureRequest { * account ID, or some other identifier. For the value, specify the name of the variation that * they are to be served.

*/ - entityOverrides?: { [key: string]: string }; + entityOverrides?: Record; } export namespace CreateFeatureRequest { @@ -1254,7 +1254,7 @@ export interface Feature { /** *

The list of tag keys and values associated with this feature.

*/ - tags?: { [key: string]: string }; + tags?: Record; /** *

A set of key-value pairs that specify users who should always be served a specific @@ -1264,7 +1264,7 @@ export interface Feature { *

For the override to be successful, the value of the key must match the entityId used * in the EvaluateFeature operation.

*/ - entityOverrides?: { [key: string]: string }; + entityOverrides?: Record; } export namespace Feature { @@ -1363,7 +1363,7 @@ export interface ScheduledSplitConfig { * launch. This is a set of key-value pairs. The keys are variation names. The values represent * the percentage of traffic to allocate to that variation during this step.

*/ - groupWeights: { [key: string]: number } | undefined; + groupWeights: Record | undefined; } export namespace ScheduledSplitConfig { @@ -1448,7 +1448,7 @@ export interface CreateLaunchRequest { *

You can associate as many as 50 tags with a launch.

*

For more information, see Tagging Amazon Web Services resources.

*/ - tags?: { [key: string]: string }; + tags?: Record; } export namespace CreateLaunchRequest { @@ -1502,7 +1502,7 @@ export interface LaunchGroup { /** *

The feature variation for this launch group. This is a key-value pair.

*/ - featureVariations: { [key: string]: string } | undefined; + featureVariations: Record | undefined; } export namespace LaunchGroup { @@ -1548,7 +1548,7 @@ export interface ScheduledSplit { * launch. This is a set of key-value pairs. The keys are variation names. The values represent * the percentage of traffic to allocate to that variation during this step.

*/ - groupWeights?: { [key: string]: number }; + groupWeights?: Record; } export namespace ScheduledSplit { @@ -1675,7 +1675,7 @@ export interface Launch { /** *

The list of tag keys and values associated with this launch.

*/ - tags?: { [key: string]: string }; + tags?: Record; } export namespace Launch { @@ -1784,7 +1784,7 @@ export interface CreateProjectRequest { *

You can associate as many as 50 tags with a project.

*

For more information, see Tagging Amazon Web Services resources.

*/ - tags?: { [key: string]: string }; + tags?: Record; } export namespace CreateProjectRequest { @@ -1924,7 +1924,7 @@ export interface Project { /** *

The list of tag keys and values associated with this project.

*/ - tags?: { [key: string]: string }; + tags?: Record; } export namespace Project { @@ -2243,7 +2243,7 @@ export interface ListTagsForResourceResponse { /** *

The list of tag keys and values associated with the resource you specified.

*/ - tags?: { [key: string]: string }; + tags?: Record; } export namespace ListTagsForResourceResponse { @@ -2858,7 +2858,7 @@ export interface FeatureSummary { /** *

The list of tag keys and values associated with this feature.

*/ - tags?: { [key: string]: string }; + tags?: Record; } export namespace FeatureSummary { @@ -2945,7 +2945,7 @@ export interface UpdateFeatureRequest { * account ID, or some other identifier. For the value, specify the name of the variation that * they are to be served.

*/ - entityOverrides?: { [key: string]: string }; + entityOverrides?: Record; } export namespace UpdateFeatureRequest { @@ -3343,7 +3343,7 @@ export interface ProjectSummary { /** *

The list of tag keys and values associated with this project.

*/ - tags?: { [key: string]: string }; + tags?: Record; } export namespace ProjectSummary { @@ -3541,7 +3541,7 @@ export interface TagResourceRequest { /** *

The list of key-value pairs to associate with the resource.

*/ - tags: { [key: string]: string } | undefined; + tags: Record | undefined; } export namespace TagResourceRequest { diff --git a/clients/client-evidently/src/protocols/Aws_restJson1.ts b/clients/client-evidently/src/protocols/Aws_restJson1.ts index 61a027ee41a6..647637819d20 100644 --- a/clients/client-evidently/src/protocols/Aws_restJson1.ts +++ b/clients/client-evidently/src/protocols/Aws_restJson1.ts @@ -3354,7 +3354,7 @@ const serializeAws_restJson1CloudWatchLogsDestinationConfig = ( }; }; -const serializeAws_restJson1EntityOverrideMap = (input: { [key: string]: string }, context: __SerdeContext): any => { +const serializeAws_restJson1EntityOverrideMap = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -3434,7 +3434,7 @@ const serializeAws_restJson1ExperimentResultRequestTypeList = ( }); }; -const serializeAws_restJson1GroupToWeightMap = (input: { [key: string]: number }, context: __SerdeContext): any => { +const serializeAws_restJson1GroupToWeightMap = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -3598,7 +3598,7 @@ const serializeAws_restJson1ScheduledSplitsLaunchConfig = ( }; }; -const serializeAws_restJson1TagMap = (input: { [key: string]: string }, context: __SerdeContext): any => { +const serializeAws_restJson1TagMap = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -3641,7 +3641,7 @@ const serializeAws_restJson1TreatmentNameList = (input: string[], context: __Ser }); }; -const serializeAws_restJson1TreatmentToWeightMap = (input: { [key: string]: number }, context: __SerdeContext): any => { +const serializeAws_restJson1TreatmentToWeightMap = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -3714,8 +3714,8 @@ const deserializeAws_restJson1DoubleValueList = (output: any, context: __SerdeCo return retVal; }; -const deserializeAws_restJson1EntityOverrideMap = (output: any, context: __SerdeContext): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +const deserializeAws_restJson1EntityOverrideMap = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -3979,8 +3979,8 @@ const deserializeAws_restJson1FeatureSummary = (output: any, context: __SerdeCon const deserializeAws_restJson1FeatureToVariationMap = ( output: any, context: __SerdeContext -): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -3991,8 +3991,8 @@ const deserializeAws_restJson1FeatureToVariationMap = ( }, {}); }; -const deserializeAws_restJson1GroupToWeightMap = (output: any, context: __SerdeContext): { [key: string]: number } => { - return Object.entries(output).reduce((acc: { [key: string]: number }, [key, value]: [string, any]) => { +const deserializeAws_restJson1GroupToWeightMap = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -4309,8 +4309,8 @@ const deserializeAws_restJson1ScheduledStepList = (output: any, context: __Serde return retVal; }; -const deserializeAws_restJson1TagMap = (output: any, context: __SerdeContext): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +const deserializeAws_restJson1TagMap = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -4356,11 +4356,8 @@ const deserializeAws_restJson1TreatmentList = (output: any, context: __SerdeCont return retVal; }; -const deserializeAws_restJson1TreatmentToWeightMap = ( - output: any, - context: __SerdeContext -): { [key: string]: number } => { - return Object.entries(output).reduce((acc: { [key: string]: number }, [key, value]: [string, any]) => { +const deserializeAws_restJson1TreatmentToWeightMap = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } diff --git a/clients/client-finspace-data/src/models/models_0.ts b/clients/client-finspace-data/src/models/models_0.ts index 9f0857c824c6..b803f15ba39b 100644 --- a/clients/client-finspace-data/src/models/models_0.ts +++ b/clients/client-finspace-data/src/models/models_0.ts @@ -115,7 +115,7 @@ export interface CreateChangesetRequest { *

*

The S3 path that you specify must allow the FinSpace role access. To do that, you first need to configure the IAM policy on S3 bucket. For more information, see Loading data from an Amazon S3 Bucket using the FinSpace API section.

*/ - sourceParams: { [key: string]: string } | undefined; + sourceParams: Record | undefined; /** *

Options that define the structure of the source file(s) including the format type (formatType), header row (withHeader), data separation character (separator) and the type of compression (compression). @@ -165,7 +165,7 @@ export interface CreateChangesetRequest { *

*

For more information about supported file formats, see Supported Data Types and File Formats in the FinSpace User Guide.

*/ - formatParams: { [key: string]: string } | undefined; + formatParams: Record | undefined; } export namespace CreateChangesetRequest { @@ -680,7 +680,7 @@ export interface DataViewDestinationTypeParams { * }
*

*/ - s3DestinationExportFileFormatOptions?: { [key: string]: string }; + s3DestinationExportFileFormatOptions?: Record; } export namespace DataViewDestinationTypeParams { @@ -1235,12 +1235,12 @@ export interface GetChangesetResponse { /** *

Options that define the location of the data being ingested.

*/ - sourceParams?: { [key: string]: string }; + sourceParams?: Record; /** *

Structure of the source file(s).

*/ - formatParams?: { [key: string]: string }; + formatParams?: Record; /** *

The timestamp at which the Changeset was created in FinSpace. The value is determined as epoch time in milliseconds. For example, the value for Monday, November 1, 2021 12:00:00 PM UTC is specified as 1635768000000.

@@ -1957,12 +1957,12 @@ export interface ChangesetSummary { /** *

Options that define the location of the data being ingested.

*/ - sourceParams?: { [key: string]: string }; + sourceParams?: Record; /** *

Options that define the structure of the source file(s).

*/ - formatParams?: { [key: string]: string }; + formatParams?: Record; /** *

The timestamp at which the Changeset was created in FinSpace. The value is determined as epoch time in milliseconds. For example, the value for Monday, November 1, 2021 12:00:00 PM UTC is specified as 1635768000000.

@@ -2699,7 +2699,7 @@ export interface UpdateChangesetRequest { *

*

The S3 path that you specify must allow the FinSpace role access. To do that, you first need to configure the IAM policy on S3 bucket. For more information, see Loading data from an Amazon S3 Bucket using the FinSpace APIsection.

*/ - sourceParams: { [key: string]: string } | undefined; + sourceParams: Record | undefined; /** *

Options that define the structure of the source file(s) including the format type (formatType), header row (withHeader), data separation character (separator) and the type of compression (compression). @@ -2749,7 +2749,7 @@ export interface UpdateChangesetRequest { *

*

For more information about supported file formats, see Supported Data Types and File Formats in the FinSpace User Guide.

*/ - formatParams: { [key: string]: string } | undefined; + formatParams: Record | undefined; } export namespace UpdateChangesetRequest { diff --git a/clients/client-finspace-data/src/protocols/Aws_restJson1.ts b/clients/client-finspace-data/src/protocols/Aws_restJson1.ts index 45d25afdc9d7..f6195f0396ac 100644 --- a/clients/client-finspace-data/src/protocols/Aws_restJson1.ts +++ b/clients/client-finspace-data/src/protocols/Aws_restJson1.ts @@ -2800,7 +2800,7 @@ const serializeAws_restJson1DataViewDestinationTypeParams = ( }; }; -const serializeAws_restJson1FormatParams = (input: { [key: string]: string }, context: __SerdeContext): any => { +const serializeAws_restJson1FormatParams = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -2852,7 +2852,7 @@ const serializeAws_restJson1ResourcePermissionsList = (input: ResourcePermission }; const serializeAws_restJson1S3DestinationFormatOptions = ( - input: { [key: string]: string }, + input: Record, context: __SerdeContext ): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { @@ -2897,7 +2897,7 @@ const serializeAws_restJson1SortColumnList = (input: string[], context: __SerdeC }); }; -const serializeAws_restJson1SourceParams = (input: { [key: string]: string }, context: __SerdeContext): any => { +const serializeAws_restJson1SourceParams = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -3113,8 +3113,8 @@ const deserializeAws_restJson1DataViewSummary = (output: any, context: __SerdeCo } as any; }; -const deserializeAws_restJson1FormatParams = (output: any, context: __SerdeContext): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +const deserializeAws_restJson1FormatParams = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -3166,8 +3166,8 @@ const deserializeAws_restJson1PermissionGroupList = (output: any, context: __Ser const deserializeAws_restJson1S3DestinationFormatOptions = ( output: any, context: __SerdeContext -): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -3212,8 +3212,8 @@ const deserializeAws_restJson1SortColumnList = (output: any, context: __SerdeCon return retVal; }; -const deserializeAws_restJson1SourceParams = (output: any, context: __SerdeContext): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +const deserializeAws_restJson1SourceParams = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } diff --git a/clients/client-finspace/src/models/models_0.ts b/clients/client-finspace/src/models/models_0.ts index 90196e35f28b..005d46b614f8 100644 --- a/clients/client-finspace/src/models/models_0.ts +++ b/clients/client-finspace/src/models/models_0.ts @@ -63,7 +63,7 @@ export interface FederationParameters { * value http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress. * Please check your SAML 2.0 compliant identity provider (IdP) documentation for details.

*/ - attributeMap?: { [key: string]: string }; + attributeMap?: Record; } export namespace FederationParameters { @@ -124,7 +124,7 @@ export interface CreateEnvironmentRequest { /** *

Add tags to your FinSpace environment.

*/ - tags?: { [key: string]: string }; + tags?: Record; /** *

Authentication mode for the environment.

@@ -552,7 +552,7 @@ export interface ListTagsForResourceResponse { /** *

A list of all tags for a resource.

*/ - tags?: { [key: string]: string }; + tags?: Record; } export namespace ListTagsForResourceResponse { @@ -573,7 +573,7 @@ export interface TagResourceRequest { /** *

One or more tags to be assigned to the resource.

*/ - tags: { [key: string]: string } | undefined; + tags: Record | undefined; } export namespace TagResourceRequest { diff --git a/clients/client-finspace/src/protocols/Aws_restJson1.ts b/clients/client-finspace/src/protocols/Aws_restJson1.ts index 7464bfb13387..833e88f7ceb9 100644 --- a/clients/client-finspace/src/protocols/Aws_restJson1.ts +++ b/clients/client-finspace/src/protocols/Aws_restJson1.ts @@ -837,7 +837,7 @@ const deserializeAws_restJson1ValidationExceptionResponse = async ( return __decorateServiceException(exception, parsedOutput.body); }; -const serializeAws_restJson1AttributeMap = (input: { [key: string]: string }, context: __SerdeContext): any => { +const serializeAws_restJson1AttributeMap = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -884,7 +884,7 @@ const serializeAws_restJson1SuperuserParameters = (input: SuperuserParameters, c }; }; -const serializeAws_restJson1TagMap = (input: { [key: string]: string }, context: __SerdeContext): any => { +const serializeAws_restJson1TagMap = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -896,8 +896,8 @@ const serializeAws_restJson1TagMap = (input: { [key: string]: string }, context: }, {}); }; -const deserializeAws_restJson1AttributeMap = (output: any, context: __SerdeContext): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +const deserializeAws_restJson1AttributeMap = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -954,8 +954,8 @@ const deserializeAws_restJson1FederationParameters = (output: any, context: __Se } as any; }; -const deserializeAws_restJson1TagMap = (output: any, context: __SerdeContext): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +const deserializeAws_restJson1TagMap = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } diff --git a/clients/client-firehose/src/models/models_0.ts b/clients/client-firehose/src/models/models_0.ts index 0b38bb2f0f97..f5a5a8713a65 100644 --- a/clients/client-firehose/src/models/models_0.ts +++ b/clients/client-firehose/src/models/models_0.ts @@ -1113,7 +1113,7 @@ export interface OpenXJsonSerDe { * timestamp, set this parameter to {"ts": "timestamp"} to map * this key to a column named ts.

*/ - ColumnToJsonKeyMappings?: { [key: string]: string }; + ColumnToJsonKeyMappings?: Record; } export namespace OpenXJsonSerDe { diff --git a/clients/client-firehose/src/protocols/Aws_json1_1.ts b/clients/client-firehose/src/protocols/Aws_json1_1.ts index 8650e99d9ff0..5d9e1a3e1954 100644 --- a/clients/client-firehose/src/protocols/Aws_json1_1.ts +++ b/clients/client-firehose/src/protocols/Aws_json1_1.ts @@ -1114,10 +1114,7 @@ const serializeAws_json1_1CloudWatchLoggingOptions = ( }; }; -const serializeAws_json1_1ColumnToJsonKeyMappings = ( - input: { [key: string]: string }, - context: __SerdeContext -): any => { +const serializeAws_json1_1ColumnToJsonKeyMappings = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -2360,8 +2357,8 @@ const deserializeAws_json1_1CloudWatchLoggingOptions = ( const deserializeAws_json1_1ColumnToJsonKeyMappings = ( output: any, context: __SerdeContext -): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } diff --git a/clients/client-fis/src/models/models_0.ts b/clients/client-fis/src/models/models_0.ts index 930faa9cee7a..a80eb34f21de 100644 --- a/clients/client-fis/src/models/models_0.ts +++ b/clients/client-fis/src/models/models_0.ts @@ -64,17 +64,17 @@ export interface Action { /** *

The action parameters, if applicable.

*/ - parameters?: { [key: string]: ActionParameter }; + parameters?: Record; /** *

The supported targets for the action.

*/ - targets?: { [key: string]: ActionTarget }; + targets?: Record; /** *

The tags for the action.

*/ - tags?: { [key: string]: string }; + tags?: Record; } export namespace Action { @@ -103,12 +103,12 @@ export interface ActionSummary { /** *

The targets for the action.

*/ - targets?: { [key: string]: ActionTarget }; + targets?: Record; /** *

The tags for the action.

*/ - tags?: { [key: string]: string }; + tags?: Record; } export namespace ActionSummary { @@ -158,12 +158,12 @@ export interface CreateExperimentTemplateActionInput { /** *

The parameters for the action, if applicable.

*/ - parameters?: { [key: string]: string }; + parameters?: Record; /** *

The targets for the action.

*/ - targets?: { [key: string]: string }; + targets?: Record; /** *

The name of the action that must be completed before the current action starts. Omit this parameter to run the action at the start of the experiment.

@@ -325,7 +325,7 @@ export interface CreateExperimentTemplateTargetInput { /** *

The tags for the target resources.

*/ - resourceTags?: { [key: string]: string }; + resourceTags?: Record; /** *

The filters to apply to identify target resources using specific attributes.

@@ -353,7 +353,7 @@ export interface CreateExperimentTemplateTargetInput { /** *

The resource type parameters.

*/ - parameters?: { [key: string]: string }; + parameters?: Record; } export namespace CreateExperimentTemplateTargetInput { @@ -384,12 +384,12 @@ export interface CreateExperimentTemplateRequest { /** *

The targets for the experiment.

*/ - targets?: { [key: string]: CreateExperimentTemplateTargetInput }; + targets?: Record; /** *

The actions for the experiment.

*/ - actions: { [key: string]: CreateExperimentTemplateActionInput } | undefined; + actions: Record | undefined; /** *

The Amazon Resource Name (ARN) of an IAM role that grants the FIS service permission to perform service actions on your behalf.

@@ -399,7 +399,7 @@ export interface CreateExperimentTemplateRequest { /** *

The tags to apply to the experiment template.

*/ - tags?: { [key: string]: string }; + tags?: Record; /** *

The configuration for experiment logging.

@@ -433,12 +433,12 @@ export interface ExperimentTemplateAction { /** *

The parameters for the action.

*/ - parameters?: { [key: string]: string }; + parameters?: Record; /** *

The targets for the action.

*/ - targets?: { [key: string]: string }; + targets?: Record; /** *

The name of the action that must be completed before the current action starts.

@@ -592,7 +592,7 @@ export interface ExperimentTemplateTarget { /** *

The tags for the target resources.

*/ - resourceTags?: { [key: string]: string }; + resourceTags?: Record; /** *

The filters to apply to identify target resources using specific attributes.

@@ -607,7 +607,7 @@ export interface ExperimentTemplateTarget { /** *

The resource type parameters.

*/ - parameters?: { [key: string]: string }; + parameters?: Record; } export namespace ExperimentTemplateTarget { @@ -636,12 +636,12 @@ export interface ExperimentTemplate { /** *

The targets for the experiment.

*/ - targets?: { [key: string]: ExperimentTemplateTarget }; + targets?: Record; /** *

The actions for the experiment.

*/ - actions?: { [key: string]: ExperimentTemplateAction }; + actions?: Record; /** *

The stop conditions for the experiment.

@@ -666,7 +666,7 @@ export interface ExperimentTemplate { /** *

The tags for the experiment template.

*/ - tags?: { [key: string]: string }; + tags?: Record; /** *

The configuration for experiment logging.

@@ -840,12 +840,12 @@ export interface ExperimentAction { /** *

The parameters for the action.

*/ - parameters?: { [key: string]: string }; + parameters?: Record; /** *

The targets for the action.

*/ - targets?: { [key: string]: string }; + targets?: Record; /** *

The name of the action that must be completed before this action starts.

@@ -1048,7 +1048,7 @@ export interface ExperimentTarget { /** *

The tags for the target resources.

*/ - resourceTags?: { [key: string]: string }; + resourceTags?: Record; /** *

The filters to apply to identify target resources using specific attributes.

@@ -1063,7 +1063,7 @@ export interface ExperimentTarget { /** *

The resource type parameters.

*/ - parameters?: { [key: string]: string }; + parameters?: Record; } export namespace ExperimentTarget { @@ -1102,12 +1102,12 @@ export interface Experiment { /** *

The targets for the experiment.

*/ - targets?: { [key: string]: ExperimentTarget }; + targets?: Record; /** *

The actions for the experiment.

*/ - actions?: { [key: string]: ExperimentAction }; + actions?: Record; /** *

The stop conditions for the experiment.

@@ -1132,7 +1132,7 @@ export interface Experiment { /** *

The tags for the experiment.

*/ - tags?: { [key: string]: string }; + tags?: Record; /** *

The configuration for experiment logging.

@@ -1176,7 +1176,7 @@ export interface ExperimentSummary { /** *

The tags for the experiment.

*/ - tags?: { [key: string]: string }; + tags?: Record; } export namespace ExperimentSummary { @@ -1215,7 +1215,7 @@ export interface ExperimentTemplateSummary { /** *

The tags for the experiment template.

*/ - tags?: { [key: string]: string }; + tags?: Record; } export namespace ExperimentTemplateSummary { @@ -1381,7 +1381,7 @@ export interface TargetResourceType { /** *

The parameters for the resource type.

*/ - parameters?: { [key: string]: TargetResourceTypeParameter }; + parameters?: Record; } export namespace TargetResourceType { @@ -1555,7 +1555,7 @@ export interface ListTagsForResourceResponse { /** *

The tags for the resource.

*/ - tags?: { [key: string]: string }; + tags?: Record; } export namespace ListTagsForResourceResponse { @@ -1647,7 +1647,7 @@ export interface StartExperimentRequest { /** *

The tags to apply to the experiment.

*/ - tags?: { [key: string]: string }; + tags?: Record; } export namespace StartExperimentRequest { @@ -1716,7 +1716,7 @@ export interface TagResourceRequest { /** *

The tags for the resource.

*/ - tags: { [key: string]: string } | undefined; + tags: Record | undefined; } export namespace TagResourceRequest { @@ -1788,12 +1788,12 @@ export interface UpdateExperimentTemplateActionInputItem { /** *

The parameters for the action, if applicable.

*/ - parameters?: { [key: string]: string }; + parameters?: Record; /** *

The targets for the action.

*/ - targets?: { [key: string]: string }; + targets?: Record; /** *

The name of the action that must be completed before the current action starts. Omit this parameter to run the action at the start of the experiment.

@@ -1882,7 +1882,7 @@ export interface UpdateExperimentTemplateTargetInput { /** *

The tags for the target resources.

*/ - resourceTags?: { [key: string]: string }; + resourceTags?: Record; /** *

The filters to apply to identify target resources using specific attributes.

@@ -1897,7 +1897,7 @@ export interface UpdateExperimentTemplateTargetInput { /** *

The resource type parameters.

*/ - parameters?: { [key: string]: string }; + parameters?: Record; } export namespace UpdateExperimentTemplateTargetInput { @@ -1928,12 +1928,12 @@ export interface UpdateExperimentTemplateRequest { /** *

The targets for the experiment.

*/ - targets?: { [key: string]: UpdateExperimentTemplateTargetInput }; + targets?: Record; /** *

The actions for the experiment.

*/ - actions?: { [key: string]: UpdateExperimentTemplateActionInputItem }; + actions?: Record; /** *

The Amazon Resource Name (ARN) of an IAM role that grants the FIS service permission to perform service actions on your behalf.

diff --git a/clients/client-fis/src/protocols/Aws_restJson1.ts b/clients/client-fis/src/protocols/Aws_restJson1.ts index 7dd987f50b87..f0e2a4e0cc32 100644 --- a/clients/client-fis/src/protocols/Aws_restJson1.ts +++ b/clients/client-fis/src/protocols/Aws_restJson1.ts @@ -1435,7 +1435,7 @@ const serializeAws_restJson1CreateExperimentTemplateActionInput = ( }; const serializeAws_restJson1CreateExperimentTemplateActionInputMap = ( - input: { [key: string]: CreateExperimentTemplateActionInput }, + input: Record, context: __SerdeContext ): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { @@ -1522,7 +1522,7 @@ const serializeAws_restJson1CreateExperimentTemplateTargetInput = ( }; const serializeAws_restJson1CreateExperimentTemplateTargetInputMap = ( - input: { [key: string]: CreateExperimentTemplateTargetInput }, + input: Record, context: __SerdeContext ): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { @@ -1537,7 +1537,7 @@ const serializeAws_restJson1CreateExperimentTemplateTargetInputMap = ( }; const serializeAws_restJson1ExperimentTemplateActionParameterMap = ( - input: { [key: string]: string }, + input: Record, context: __SerdeContext ): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { @@ -1566,7 +1566,7 @@ const serializeAws_restJson1ExperimentTemplateActionStartAfterList = ( }; const serializeAws_restJson1ExperimentTemplateActionTargetMap = ( - input: { [key: string]: string }, + input: Record, context: __SerdeContext ): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { @@ -1638,7 +1638,7 @@ const serializeAws_restJson1ExperimentTemplateTargetInputFilter = ( }; const serializeAws_restJson1ExperimentTemplateTargetParameterMap = ( - input: { [key: string]: string }, + input: Record, context: __SerdeContext ): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { @@ -1663,7 +1663,7 @@ const serializeAws_restJson1ResourceArnList = (input: string[], context: __Serde }); }; -const serializeAws_restJson1TagMap = (input: { [key: string]: string }, context: __SerdeContext): any => { +const serializeAws_restJson1TagMap = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -1698,7 +1698,7 @@ const serializeAws_restJson1UpdateExperimentTemplateActionInputItem = ( }; const serializeAws_restJson1UpdateExperimentTemplateActionInputMap = ( - input: { [key: string]: UpdateExperimentTemplateActionInputItem }, + input: Record, context: __SerdeContext ): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { @@ -1785,7 +1785,7 @@ const serializeAws_restJson1UpdateExperimentTemplateTargetInput = ( }; const serializeAws_restJson1UpdateExperimentTemplateTargetInputMap = ( - input: { [key: string]: UpdateExperimentTemplateTargetInput }, + input: Record, context: __SerdeContext ): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { @@ -1828,8 +1828,8 @@ const deserializeAws_restJson1ActionParameter = (output: any, context: __SerdeCo const deserializeAws_restJson1ActionParameterMap = ( output: any, context: __SerdeContext -): { [key: string]: ActionParameter } => { - return Object.entries(output).reduce((acc: { [key: string]: ActionParameter }, [key, value]: [string, any]) => { +): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -1876,8 +1876,8 @@ const deserializeAws_restJson1ActionTarget = (output: any, context: __SerdeConte const deserializeAws_restJson1ActionTargetMap = ( output: any, context: __SerdeContext -): { [key: string]: ActionTarget } => { - return Object.entries(output).reduce((acc: { [key: string]: ActionTarget }, [key, value]: [string, any]) => { +): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -1966,8 +1966,8 @@ const deserializeAws_restJson1ExperimentAction = (output: any, context: __SerdeC const deserializeAws_restJson1ExperimentActionMap = ( output: any, context: __SerdeContext -): { [key: string]: ExperimentAction } => { - return Object.entries(output).reduce((acc: { [key: string]: ExperimentAction }, [key, value]: [string, any]) => { +): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -1981,8 +1981,8 @@ const deserializeAws_restJson1ExperimentActionMap = ( const deserializeAws_restJson1ExperimentActionParameterMap = ( output: any, context: __SerdeContext -): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -2015,8 +2015,8 @@ const deserializeAws_restJson1ExperimentActionState = (output: any, context: __S const deserializeAws_restJson1ExperimentActionTargetMap = ( output: any, context: __SerdeContext -): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -2192,8 +2192,8 @@ const deserializeAws_restJson1ExperimentTargetFilterValues = (output: any, conte const deserializeAws_restJson1ExperimentTargetMap = ( output: any, context: __SerdeContext -): { [key: string]: ExperimentTarget } => { - return Object.entries(output).reduce((acc: { [key: string]: ExperimentTarget }, [key, value]: [string, any]) => { +): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -2207,8 +2207,8 @@ const deserializeAws_restJson1ExperimentTargetMap = ( const deserializeAws_restJson1ExperimentTargetParameterMap = ( output: any, context: __SerdeContext -): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -2280,26 +2280,23 @@ const deserializeAws_restJson1ExperimentTemplateAction = ( const deserializeAws_restJson1ExperimentTemplateActionMap = ( output: any, context: __SerdeContext -): { [key: string]: ExperimentTemplateAction } => { - return Object.entries(output).reduce( - (acc: { [key: string]: ExperimentTemplateAction }, [key, value]: [string, any]) => { - if (value === null) { - return acc; - } - return { - ...acc, - [key]: deserializeAws_restJson1ExperimentTemplateAction(value, context), - }; - }, - {} - ); +): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { + if (value === null) { + return acc; + } + return { + ...acc, + [key]: deserializeAws_restJson1ExperimentTemplateAction(value, context), + }; + }, {}); }; const deserializeAws_restJson1ExperimentTemplateActionParameterMap = ( output: any, context: __SerdeContext -): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -2328,8 +2325,8 @@ const deserializeAws_restJson1ExperimentTemplateActionStartAfterList = ( const deserializeAws_restJson1ExperimentTemplateActionTargetMap = ( output: any, context: __SerdeContext -): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -2513,26 +2510,23 @@ const deserializeAws_restJson1ExperimentTemplateTargetFilterValues = ( const deserializeAws_restJson1ExperimentTemplateTargetMap = ( output: any, context: __SerdeContext -): { [key: string]: ExperimentTemplateTarget } => { - return Object.entries(output).reduce( - (acc: { [key: string]: ExperimentTemplateTarget }, [key, value]: [string, any]) => { - if (value === null) { - return acc; - } - return { - ...acc, - [key]: deserializeAws_restJson1ExperimentTemplateTarget(value, context), - }; - }, - {} - ); +): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { + if (value === null) { + return acc; + } + return { + ...acc, + [key]: deserializeAws_restJson1ExperimentTemplateTarget(value, context), + }; + }, {}); }; const deserializeAws_restJson1ExperimentTemplateTargetParameterMap = ( output: any, context: __SerdeContext -): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -2555,8 +2549,8 @@ const deserializeAws_restJson1ResourceArnList = (output: any, context: __SerdeCo return retVal; }; -const deserializeAws_restJson1TagMap = (output: any, context: __SerdeContext): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +const deserializeAws_restJson1TagMap = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -2591,9 +2585,9 @@ const deserializeAws_restJson1TargetResourceTypeParameter = ( const deserializeAws_restJson1TargetResourceTypeParameterMap = ( output: any, context: __SerdeContext -): { [key: string]: TargetResourceTypeParameter } => { +): Record => { return Object.entries(output).reduce( - (acc: { [key: string]: TargetResourceTypeParameter }, [key, value]: [string, any]) => { + (acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } diff --git a/clients/client-fms/src/models/models_0.ts b/clients/client-fms/src/models/models_0.ts index 7d46e3b23887..16a8a2990465 100644 --- a/clients/client-fms/src/models/models_0.ts +++ b/clients/client-fms/src/models/models_0.ts @@ -103,7 +103,7 @@ export interface AppsListData { /** *

A map of previous version numbers to their corresponding App object arrays.

*/ - PreviousAppsList?: { [key: string]: App[] }; + PreviousAppsList?: Record; } export namespace AppsListData { @@ -694,7 +694,7 @@ export interface ComplianceViolator { /** *

Metadata about the resource that doesn't comply with the policy scope.

*/ - Metadata?: { [key: string]: string }; + Metadata?: Record; } export namespace ComplianceViolator { @@ -749,7 +749,7 @@ export interface PolicyComplianceDetail { *

Details about problems with dependent services, such as WAF or Config, * and the error message received that indicates the problem with the service.

*/ - IssueInfoMap?: { [key: string]: string }; + IssueInfoMap?: Record; } export namespace PolicyComplianceDetail { @@ -1316,7 +1316,7 @@ export interface Policy { * * */ - IncludeMap?: { [key: string]: string[] }; + IncludeMap?: Record; /** *

Specifies the Amazon Web Services account IDs and Organizations organizational units (OUs) to exclude from the policy. @@ -1341,7 +1341,7 @@ export interface Policy { * * */ - ExcludeMap?: { [key: string]: string[] }; + ExcludeMap?: Record; } export namespace Policy { @@ -1563,7 +1563,7 @@ export interface ProtocolsListData { /** *

A map of previous version numbers to their corresponding protocol arrays.

*/ - PreviousProtocolsList?: { [key: string]: string[] }; + PreviousProtocolsList?: Record; } export namespace ProtocolsListData { @@ -3661,7 +3661,7 @@ export interface PolicyComplianceStatus { *

Details about problems with dependent services, such as WAF or Config, * and the error message received that indicates the problem with the service.

*/ - IssueInfoMap?: { [key: string]: string }; + IssueInfoMap?: Record; } export namespace PolicyComplianceStatus { diff --git a/clients/client-fms/src/protocols/Aws_json1_1.ts b/clients/client-fms/src/protocols/Aws_json1_1.ts index 386dee3ba170..50f5bf71f27c 100644 --- a/clients/client-fms/src/protocols/Aws_json1_1.ts +++ b/clients/client-fms/src/protocols/Aws_json1_1.ts @@ -2268,10 +2268,7 @@ const serializeAws_json1_1CustomerPolicyScopeIdList = (input: string[], context: }); }; -const serializeAws_json1_1CustomerPolicyScopeMap = ( - input: { [key: string]: string[] }, - context: __SerdeContext -): any => { +const serializeAws_json1_1CustomerPolicyScopeMap = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce( (acc: { [key: string]: any }, [key, value]: [CustomerPolicyScopeIdType | string, any]) => { if (value === null) { @@ -2540,7 +2537,7 @@ const serializeAws_json1_1PolicyOption = (input: PolicyOption, context: __SerdeC }; }; -const serializeAws_json1_1PreviousAppsList = (input: { [key: string]: App[] }, context: __SerdeContext): any => { +const serializeAws_json1_1PreviousAppsList = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -2552,10 +2549,7 @@ const serializeAws_json1_1PreviousAppsList = (input: { [key: string]: App[] }, c }, {}); }; -const serializeAws_json1_1PreviousProtocolsList = ( - input: { [key: string]: string[] }, - context: __SerdeContext -): any => { +const serializeAws_json1_1PreviousProtocolsList = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -2894,8 +2888,8 @@ const deserializeAws_json1_1ComplianceViolator = (output: any, context: __SerdeC const deserializeAws_json1_1ComplianceViolatorMetadata = ( output: any, context: __SerdeContext -): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -2933,9 +2927,9 @@ const deserializeAws_json1_1CustomerPolicyScopeIdList = (output: any, context: _ const deserializeAws_json1_1CustomerPolicyScopeMap = ( output: any, context: __SerdeContext -): { [key: string]: string[] } => { +): Record => { return Object.entries(output).reduce( - (acc: { [key: string]: string[] }, [key, value]: [CustomerPolicyScopeIdType | string, any]) => { + (acc: Record, [key, value]: [CustomerPolicyScopeIdType | string, any]) => { if (value === null) { return acc; } @@ -3335,9 +3329,9 @@ const deserializeAws_json1_1InvalidTypeException = (output: any, context: __Serd } as any; }; -const deserializeAws_json1_1IssueInfoMap = (output: any, context: __SerdeContext): { [key: string]: string } => { +const deserializeAws_json1_1IssueInfoMap = (output: any, context: __SerdeContext): Record => { return Object.entries(output).reduce( - (acc: { [key: string]: string }, [key, value]: [DependentServiceName | string, any]) => { + (acc: Record, [key, value]: [DependentServiceName | string, any]) => { if (value === null) { return acc; } @@ -3909,8 +3903,8 @@ const deserializeAws_json1_1PossibleRemediationActions = ( } as any; }; -const deserializeAws_json1_1PreviousAppsList = (output: any, context: __SerdeContext): { [key: string]: App[] } => { - return Object.entries(output).reduce((acc: { [key: string]: App[] }, [key, value]: [string, any]) => { +const deserializeAws_json1_1PreviousAppsList = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -3924,8 +3918,8 @@ const deserializeAws_json1_1PreviousAppsList = (output: any, context: __SerdeCon const deserializeAws_json1_1PreviousProtocolsList = ( output: any, context: __SerdeContext -): { [key: string]: string[] } => { - return Object.entries(output).reduce((acc: { [key: string]: string[] }, [key, value]: [string, any]) => { +): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } diff --git a/clients/client-forecast/src/models/models_0.ts b/clients/client-forecast/src/models/models_0.ts index 085222ebfe05..c6e062d84a49 100644 --- a/clients/client-forecast/src/models/models_0.ts +++ b/clients/client-forecast/src/models/models_0.ts @@ -245,7 +245,7 @@ export interface AdditionalDataset { * * */ - Configuration?: { [key: string]: string[] }; + Configuration?: Record; } export namespace AdditionalDataset { @@ -348,7 +348,7 @@ export interface AttributeConfig { * parameter. For example, to set backfilling to a value of 2, include the following: * "backfill": "value" and "backfill_value":"2".

*/ - Transformations: { [key: string]: string } | undefined; + Transformations: Record | undefined; } export namespace AttributeConfig { @@ -2030,7 +2030,7 @@ export interface FeaturizationMethod { * backfilling to a value of 2, include the following: "backfill": "value" and * "backfill_value":"2".

*/ - FeaturizationMethodParameters?: { [key: string]: string }; + FeaturizationMethodParameters?: Record; } export namespace FeaturizationMethod { @@ -2779,7 +2779,7 @@ export interface CreatePredictorRequest { * override are listed in the individual algorithms. For the list of supported algorithms, see * aws-forecast-choosing-recipes.

*/ - TrainingParameters?: { [key: string]: string }; + TrainingParameters?: Record; /** *

Used to override the default evaluation parameters of the specified algorithm. Amazon Forecast @@ -3839,7 +3839,7 @@ export interface DescribeDatasetImportJobResponse { /** *

Statistical information about each field in the input data.

*/ - FieldStatistics?: { [key: string]: Statistics }; + FieldStatistics?: Record; /** *

The size of the dataset in gigabytes (GB) after the import job has finished.

@@ -4781,7 +4781,7 @@ export interface DescribePredictorResponse { * AutoML or choosing HPO with CNN-QR or DeepAR+, the optimized values for the chosen * hyperparameters are returned. For more information, see aws-forecast-choosing-recipes.

*/ - TrainingParameters?: { [key: string]: string }; + TrainingParameters?: Record; /** *

Used to override the default evaluation parameters of the specified algorithm. Amazon Forecast diff --git a/clients/client-forecast/src/protocols/Aws_json1_1.ts b/clients/client-forecast/src/protocols/Aws_json1_1.ts index 935e06b81f01..e67ba456d88d 100644 --- a/clients/client-forecast/src/protocols/Aws_json1_1.ts +++ b/clients/client-forecast/src/protocols/Aws_json1_1.ts @@ -3567,7 +3567,7 @@ const serializeAws_json1_1CategoricalParameterRanges = ( }); }; -const serializeAws_json1_1Configuration = (input: { [key: string]: string[] }, context: __SerdeContext): any => { +const serializeAws_json1_1Configuration = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -4126,7 +4126,7 @@ const serializeAws_json1_1FeaturizationMethod = (input: FeaturizationMethod, con }; const serializeAws_json1_1FeaturizationMethodParameters = ( - input: { [key: string]: string }, + input: Record, context: __SerdeContext ): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { @@ -4537,7 +4537,7 @@ const serializeAws_json1_1TimeSeriesSelector = (input: TimeSeriesSelector, conte }; }; -const serializeAws_json1_1TrainingParameters = (input: { [key: string]: string }, context: __SerdeContext): any => { +const serializeAws_json1_1TrainingParameters = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -4549,7 +4549,7 @@ const serializeAws_json1_1TrainingParameters = (input: { [key: string]: string } }, {}); }; -const serializeAws_json1_1Transformations = (input: { [key: string]: string }, context: __SerdeContext): any => { +const serializeAws_json1_1Transformations = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -4704,8 +4704,8 @@ const deserializeAws_json1_1CategoricalParameterRanges = ( return retVal; }; -const deserializeAws_json1_1Configuration = (output: any, context: __SerdeContext): { [key: string]: string[] } => { - return Object.entries(output).reduce((acc: { [key: string]: string[] }, [key, value]: [string, any]) => { +const deserializeAws_json1_1Configuration = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -5522,8 +5522,8 @@ const deserializeAws_json1_1FeaturizationMethod = (output: any, context: __Serde const deserializeAws_json1_1FeaturizationMethodParameters = ( output: any, context: __SerdeContext -): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -5558,8 +5558,8 @@ const deserializeAws_json1_1Featurizations = (output: any, context: __SerdeConte return retVal; }; -const deserializeAws_json1_1FieldStatistics = (output: any, context: __SerdeContext): { [key: string]: Statistics } => { - return Object.entries(output).reduce((acc: { [key: string]: Statistics }, [key, value]: [string, any]) => { +const deserializeAws_json1_1FieldStatistics = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -6371,8 +6371,8 @@ const deserializeAws_json1_1TimeSeriesSelector = (output: any, context: __SerdeC } as any; }; -const deserializeAws_json1_1TrainingParameters = (output: any, context: __SerdeContext): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +const deserializeAws_json1_1TrainingParameters = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -6383,8 +6383,8 @@ const deserializeAws_json1_1TrainingParameters = (output: any, context: __SerdeC }, {}); }; -const deserializeAws_json1_1Transformations = (output: any, context: __SerdeContext): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +const deserializeAws_json1_1Transformations = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } diff --git a/clients/client-forecastquery/src/models/models_0.ts b/clients/client-forecastquery/src/models/models_0.ts index d4cc4d751b20..cd870f5cd999 100644 --- a/clients/client-forecastquery/src/models/models_0.ts +++ b/clients/client-forecastquery/src/models/models_0.ts @@ -95,7 +95,7 @@ export interface QueryForecastRequest { * *

To get the full forecast, use the CreateForecastExportJob operation.

*/ - Filters: { [key: string]: string } | undefined; + Filters: Record | undefined; /** *

If the result of the previous request was truncated, the response includes a @@ -159,7 +159,7 @@ export interface Forecast { * * */ - Predictions?: { [key: string]: DataPoint[] }; + Predictions?: Record; } export namespace Forecast { diff --git a/clients/client-forecastquery/src/protocols/Aws_json1_1.ts b/clients/client-forecastquery/src/protocols/Aws_json1_1.ts index d49633693123..bf1f392290c0 100644 --- a/clients/client-forecastquery/src/protocols/Aws_json1_1.ts +++ b/clients/client-forecastquery/src/protocols/Aws_json1_1.ts @@ -159,7 +159,7 @@ const deserializeAws_json1_1ResourceNotFoundExceptionResponse = async ( return __decorateServiceException(exception, body); }; -const serializeAws_json1_1Filters = (input: { [key: string]: string }, context: __SerdeContext): any => { +const serializeAws_json1_1Filters = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -219,8 +219,8 @@ const deserializeAws_json1_1LimitExceededException = (output: any, context: __Se } as any; }; -const deserializeAws_json1_1Predictions = (output: any, context: __SerdeContext): { [key: string]: DataPoint[] } => { - return Object.entries(output).reduce((acc: { [key: string]: DataPoint[] }, [key, value]: [string, any]) => { +const deserializeAws_json1_1Predictions = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } diff --git a/clients/client-frauddetector/src/models/models_0.ts b/clients/client-frauddetector/src/models/models_0.ts index 4c08e5d88770..70a351589290 100644 --- a/clients/client-frauddetector/src/models/models_0.ts +++ b/clients/client-frauddetector/src/models/models_0.ts @@ -836,7 +836,7 @@ export interface LabelSchema { *

The label mapper maps the Amazon Fraud Detector supported model classification labels (FRAUD, LEGIT) to the appropriate event type labels. For example, if "FRAUD" and "LEGIT" are Amazon Fraud Detector supported labels, this mapper could be: {"FRAUD" => ["0"], "LEGIT" => ["1"]} or {"FRAUD" => ["false"], "LEGIT" => ["true"]} or {"FRAUD" => ["fraud", "abuse"], "LEGIT" => ["legit", "safe"]}. The value part of the mapper is a list, because you may have multiple label variants from your event type for a single Amazon Fraud Detector label. *

*/ - labelMapper: { [key: string]: string[] } | undefined; + labelMapper: Record | undefined; /** *

The action to take for unlabeled events.

@@ -2634,7 +2634,7 @@ export interface Event { /** *

Names of the event type's variables you defined in Amazon Fraud Detector to represent data elements and their corresponding values for the event you are sending for evaluation.

*/ - eventVariables?: { [key: string]: string }; + eventVariables?: Record; /** *

The label associated with the event.

@@ -2756,12 +2756,12 @@ export interface GetEventPredictionRequest { *

If a null value is provided explicitly for a variable, the model and rules will use “null” as the value. If a variable is not provided (no variable name in the eventVariables map), model and rules * will use the default value that is provided for the variable.

*/ - eventVariables: { [key: string]: string } | undefined; + eventVariables: Record | undefined; /** *

The Amazon SageMaker model endpoint input data blobs.

*/ - externalModelEndpointDataBlobs?: { [key: string]: ModelEndpointDataBlob }; + externalModelEndpointDataBlobs?: Record; } export namespace GetEventPredictionRequest { @@ -2816,7 +2816,7 @@ export interface ExternalModelOutputs { /** *

The fraud prediction scores from Amazon SageMaker model.

*/ - outputs?: { [key: string]: string }; + outputs?: Record; } export namespace ExternalModelOutputs { @@ -2840,7 +2840,7 @@ export interface ModelScores { /** *

The model's fraud prediction scores.

*/ - scores?: { [key: string]: number }; + scores?: Record; } export namespace ModelScores { @@ -2992,14 +2992,14 @@ export interface EvaluatedExternalModel { * Input variables use for generating predictions. *

*/ - inputVariables?: { [key: string]: string }; + inputVariables?: Record; /** *

* Output variables. *

*/ - outputVariables?: { [key: string]: string }; + outputVariables?: Record; } export namespace EvaluatedExternalModel { @@ -3647,12 +3647,12 @@ export interface ModelOutputConfiguration { /** *

A map of JSON keys in response from SageMaker to the Amazon Fraud Detector variables.

*/ - jsonKeyToVariableMap?: { [key: string]: string }; + jsonKeyToVariableMap?: Record; /** *

A map of CSV index values in the SageMaker response to the Amazon Fraud Detector variables.

*/ - csvIndexToVariableMap?: { [key: string]: string }; + csvIndexToVariableMap?: Record; } export namespace ModelOutputConfiguration { @@ -4911,7 +4911,7 @@ export interface SendEventRequest { /** *

Names of the event type's variables you defined in Amazon Fraud Detector to represent data elements and their corresponding values for the event you are sending for evaluation.

*/ - eventVariables: { [key: string]: string } | undefined; + eventVariables: Record | undefined; /** *

The label to associate with the event. Required if specifying labelTimestamp.

diff --git a/clients/client-frauddetector/src/protocols/Aws_json1_1.ts b/clients/client-frauddetector/src/protocols/Aws_json1_1.ts index 477ab735dd1e..49d32078e73d 100644 --- a/clients/client-frauddetector/src/protocols/Aws_json1_1.ts +++ b/clients/client-frauddetector/src/protocols/Aws_json1_1.ts @@ -5220,7 +5220,7 @@ const serializeAws_json1_1CreateVariableRequest = (input: CreateVariableRequest, }; }; -const serializeAws_json1_1CsvIndexToVariableMap = (input: { [key: string]: string }, context: __SerdeContext): any => { +const serializeAws_json1_1CsvIndexToVariableMap = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -5378,7 +5378,7 @@ const serializeAws_json1_1Entity = (input: Entity, context: __SerdeContext): any }; }; -const serializeAws_json1_1EventVariableMap = (input: { [key: string]: string }, context: __SerdeContext): any => { +const serializeAws_json1_1EventVariableMap = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -5399,7 +5399,7 @@ const serializeAws_json1_1ExternalEventsDetail = (input: ExternalEventsDetail, c }; const serializeAws_json1_1ExternalModelEndpointDataBlobMap = ( - input: { [key: string]: ModelEndpointDataBlob }, + input: Record, context: __SerdeContext ): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { @@ -5617,7 +5617,7 @@ const serializeAws_json1_1IngestedEventsTimeWindow = ( }; }; -const serializeAws_json1_1JsonKeyToVariableMap = (input: { [key: string]: string }, context: __SerdeContext): any => { +const serializeAws_json1_1JsonKeyToVariableMap = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -5629,7 +5629,7 @@ const serializeAws_json1_1JsonKeyToVariableMap = (input: { [key: string]: string }, {}); }; -const serializeAws_json1_1labelMapper = (input: { [key: string]: string[] }, context: __SerdeContext): any => { +const serializeAws_json1_1labelMapper = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -6340,11 +6340,8 @@ const deserializeAws_json1_1CreateVariableResult = (output: any, context: __Serd return {} as any; }; -const deserializeAws_json1_1CsvIndexToVariableMap = ( - output: any, - context: __SerdeContext -): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +const deserializeAws_json1_1CsvIndexToVariableMap = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -6622,8 +6619,8 @@ const deserializeAws_json1_1Event = (output: any, context: __SerdeContext): Even } as any; }; -const deserializeAws_json1_1EventAttributeMap = (output: any, context: __SerdeContext): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +const deserializeAws_json1_1EventAttributeMap = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -6747,8 +6744,8 @@ const deserializeAws_json1_1ExternalModelOutputs = (output: any, context: __Serd const deserializeAws_json1_1ExternalModelPredictionMap = ( output: any, context: __SerdeContext -): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -7114,11 +7111,8 @@ const deserializeAws_json1_1InternalServerException = ( } as any; }; -const deserializeAws_json1_1JsonKeyToVariableMap = ( - output: any, - context: __SerdeContext -): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +const deserializeAws_json1_1JsonKeyToVariableMap = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -7157,8 +7151,8 @@ const deserializeAws_json1_1labelList = (output: any, context: __SerdeContext): return retVal; }; -const deserializeAws_json1_1labelMapper = (output: any, context: __SerdeContext): { [key: string]: string[] } => { - return Object.entries(output).reduce((acc: { [key: string]: string[] }, [key, value]: [string, any]) => { +const deserializeAws_json1_1labelMapper = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -7390,8 +7384,8 @@ const deserializeAws_json1_1LogOddsMetric = (output: any, context: __SerdeContex } as any; }; -const deserializeAws_json1_1MapOfStrings = (output: any, context: __SerdeContext): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +const deserializeAws_json1_1MapOfStrings = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -7477,8 +7471,8 @@ const deserializeAws_json1_1ModelOutputConfiguration = ( } as any; }; -const deserializeAws_json1_1ModelPredictionMap = (output: any, context: __SerdeContext): { [key: string]: number } => { - return Object.entries(output).reduce((acc: { [key: string]: number }, [key, value]: [string, any]) => { +const deserializeAws_json1_1ModelPredictionMap = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } diff --git a/clients/client-gamelift/src/models/models_0.ts b/clients/client-gamelift/src/models/models_0.ts index 60117f9ade01..de4d8805be3c 100644 --- a/clients/client-gamelift/src/models/models_0.ts +++ b/clients/client-gamelift/src/models/models_0.ts @@ -284,7 +284,7 @@ export interface AttributeValue { *

For a map of up to 10 data type:value pairs. Maximum length for each string value * is 100 characters.

*/ - SDM?: { [key: string]: number }; + SDM?: Record; } export namespace AttributeValue { @@ -3874,7 +3874,7 @@ export interface CreatePlayerSessionsInput { * as needed for use in the game. Any player data strings for player IDs that are not * included in the PlayerIds parameter are ignored.

*/ - PlayerDataMap?: { [key: string]: string }; + PlayerDataMap?: Record; } export namespace CreatePlayerSessionsInput { @@ -6778,7 +6778,7 @@ export interface Player { * matchmaking rule set. Example: "PlayerAttributes": {"skill": {"N": "23"}, * "gameMode": {"S": "deathmatch"}}.

*/ - PlayerAttributes?: { [key: string]: AttributeValue }; + PlayerAttributes?: Record; /** *

Name of the team that the player is assigned to in a match. Team names are defined @@ -6794,7 +6794,7 @@ export interface Player { * assumes that no Regions are available to the player and the ticket is not matchable. *

*/ - LatencyInMs?: { [key: string]: number }; + LatencyInMs?: Record; } export namespace Player { diff --git a/clients/client-gamelift/src/protocols/Aws_json1_1.ts b/clients/client-gamelift/src/protocols/Aws_json1_1.ts index 3352a4229bf3..5385678dea7a 100644 --- a/clients/client-gamelift/src/protocols/Aws_json1_1.ts +++ b/clients/client-gamelift/src/protocols/Aws_json1_1.ts @@ -8024,7 +8024,7 @@ const serializeAws_json1_1IpPermissionsList = (input: IpPermission[], context: _ }); }; -const serializeAws_json1_1LatencyMap = (input: { [key: string]: number }, context: __SerdeContext): any => { +const serializeAws_json1_1LatencyMap = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -8201,7 +8201,7 @@ const serializeAws_json1_1Player = (input: Player, context: __SerdeContext): any }; const serializeAws_json1_1PlayerAttributeMap = ( - input: { [key: string]: AttributeValue }, + input: Record, context: __SerdeContext ): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { @@ -8215,7 +8215,7 @@ const serializeAws_json1_1PlayerAttributeMap = ( }, {}); }; -const serializeAws_json1_1PlayerDataMap = (input: { [key: string]: string }, context: __SerdeContext): any => { +const serializeAws_json1_1PlayerDataMap = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -8555,7 +8555,7 @@ const serializeAws_json1_1StopMatchmakingInput = (input: StopMatchmakingInput, c }; }; -const serializeAws_json1_1StringDoubleMap = (input: { [key: string]: number }, context: __SerdeContext): any => { +const serializeAws_json1_1StringDoubleMap = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -10268,8 +10268,8 @@ const deserializeAws_json1_1IpPermissionsList = (output: any, context: __SerdeCo return retVal; }; -const deserializeAws_json1_1LatencyMap = (output: any, context: __SerdeContext): { [key: string]: number } => { - return Object.entries(output).reduce((acc: { [key: string]: number }, [key, value]: [string, any]) => { +const deserializeAws_json1_1LatencyMap = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -10614,8 +10614,8 @@ const deserializeAws_json1_1Player = (output: any, context: __SerdeContext): Pla const deserializeAws_json1_1PlayerAttributeMap = ( output: any, context: __SerdeContext -): { [key: string]: AttributeValue } => { - return Object.entries(output).reduce((acc: { [key: string]: AttributeValue }, [key, value]: [string, any]) => { +): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -11003,8 +11003,8 @@ const deserializeAws_json1_1StopMatchmakingOutput = (output: any, context: __Ser return {} as any; }; -const deserializeAws_json1_1StringDoubleMap = (output: any, context: __SerdeContext): { [key: string]: number } => { - return Object.entries(output).reduce((acc: { [key: string]: number }, [key, value]: [string, any]) => { +const deserializeAws_json1_1StringDoubleMap = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } diff --git a/clients/client-gamesparks/src/models/models_0.ts b/clients/client-gamesparks/src/models/models_0.ts index d12d97f76db6..f258a611d66b 100644 --- a/clients/client-gamesparks/src/models/models_0.ts +++ b/clients/client-gamesparks/src/models/models_0.ts @@ -92,7 +92,7 @@ export interface CreateGameRequest { /** *

The list of tags to apply to the game.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; } export namespace CreateGameRequest { @@ -151,7 +151,7 @@ export interface GameDetails { /** *

The tags associated with the game.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; } export namespace GameDetails { @@ -330,7 +330,7 @@ export interface SnapshotDetails { /** *

The sections in the snapshot.

*/ - Sections?: { [key: string]: Section }; + Sections?: Record; /** *

The timestamp of when the snapshot was created.

@@ -424,7 +424,7 @@ export interface CreateStageRequest { /** *

The list of tags to apply to the stage.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; } export namespace CreateStageRequest { @@ -491,7 +491,7 @@ export interface StageDetails { /** *

The tags associated with the stage.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; /** *

The Amazon CloudWatch log group for game runtimes deployed to the stage.

@@ -788,7 +788,7 @@ export interface GameConfigurationDetails { /** *

Configuration data, organized by section name.

*/ - Sections?: { [key: string]: Section }; + Sections?: Record; /** *

The date when the game was created.

@@ -1484,7 +1484,7 @@ export interface GameSummary { /** *

The tags associated with the game.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; } export namespace GameSummary { @@ -1848,7 +1848,7 @@ export interface StageSummary { /** *

The tags associated with the stage.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; } export namespace StageSummary { @@ -1907,7 +1907,7 @@ export interface ListTagsForResourceResult { /** *

The tags associated with the resource.

*/ - tags?: { [key: string]: string }; + tags?: Record; } export namespace ListTagsForResourceResult { @@ -2057,7 +2057,7 @@ export interface TagResourceRequest { /** *

The tags to add to the resource.

*/ - tags: { [key: string]: string } | undefined; + tags: Record | undefined; } export namespace TagResourceRequest { diff --git a/clients/client-gamesparks/src/protocols/Aws_restJson1.ts b/clients/client-gamesparks/src/protocols/Aws_restJson1.ts index 01286f903a15..9d0a25bf072a 100644 --- a/clients/client-gamesparks/src/protocols/Aws_restJson1.ts +++ b/clients/client-gamesparks/src/protocols/Aws_restJson1.ts @@ -3372,7 +3372,7 @@ const serializeAws_restJson1SectionModificationList = (input: SectionModificatio }); }; -const serializeAws_restJson1TagMap = (input: { [key: string]: string }, context: __SerdeContext): any => { +const serializeAws_restJson1TagMap = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -3584,8 +3584,8 @@ const deserializeAws_restJson1Section = (output: any, context: __SerdeContext): } as any; }; -const deserializeAws_restJson1Sections = (output: any, context: __SerdeContext): { [key: string]: Section } => { - return Object.entries(output).reduce((acc: { [key: string]: Section }, [key, value]: [string, any]) => { +const deserializeAws_restJson1Sections = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -3750,8 +3750,8 @@ const deserializeAws_restJson1StageSummaryList = (output: any, context: __SerdeC return retVal; }; -const deserializeAws_restJson1TagMap = (output: any, context: __SerdeContext): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +const deserializeAws_restJson1TagMap = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } diff --git a/clients/client-glacier/src/models/models_0.ts b/clients/client-glacier/src/models/models_0.ts index c7cdcf83f6dc..aa00b313f319 100644 --- a/clients/client-glacier/src/models/models_0.ts +++ b/clients/client-glacier/src/models/models_0.ts @@ -299,7 +299,7 @@ export interface AddTagsToVaultInput { *

The tags to add to the vault. Each tag is composed of a key and a value. The value * can be an empty string.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; } export namespace AddTagsToVaultInput { @@ -940,12 +940,12 @@ export interface S3Location { /** *

The tag-set that is applied to the job results.

*/ - Tagging?: { [key: string]: string }; + Tagging?: Record; /** *

A map of metadata to store with the job results in Amazon S3.

*/ - UserMetadata?: { [key: string]: string }; + UserMetadata?: Record; /** *

The storage class used to store the job results.

@@ -2518,7 +2518,7 @@ export interface ListTagsForVaultOutput { /** *

The tags attached to the vault. Each tag is composed of a key and a value.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; } export namespace ListTagsForVaultOutput { diff --git a/clients/client-glacier/src/protocols/Aws_restJson1.ts b/clients/client-glacier/src/protocols/Aws_restJson1.ts index 4963a5731626..0dd6072544b3 100644 --- a/clients/client-glacier/src/protocols/Aws_restJson1.ts +++ b/clients/client-glacier/src/protocols/Aws_restJson1.ts @@ -2393,7 +2393,7 @@ export const deserializeAws_restJson1GetVaultAccessPolicyCommand = async ( $metadata: deserializeMetadata(output), policy: undefined, }; - const data: { [key: string]: any } | undefined = __expectObject(await parseBody(output.body, context)); + const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.policy = deserializeAws_restJson1VaultAccessPolicy(data, context); return Promise.resolve(contents); }; @@ -2509,7 +2509,7 @@ export const deserializeAws_restJson1GetVaultNotificationsCommand = async ( $metadata: deserializeMetadata(output), vaultNotificationConfig: undefined, }; - const data: { [key: string]: any } | undefined = __expectObject(await parseBody(output.body, context)); + const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.vaultNotificationConfig = deserializeAws_restJson1VaultNotificationConfig(data, context); return Promise.resolve(contents); }; @@ -3715,7 +3715,7 @@ const serializeAws_restJson1Grantee = (input: Grantee, context: __SerdeContext): }; }; -const serializeAws_restJson1hashmap = (input: { [key: string]: string }, context: __SerdeContext): any => { +const serializeAws_restJson1hashmap = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -3842,7 +3842,7 @@ const serializeAws_restJson1TagKeyList = (input: string[], context: __SerdeConte }); }; -const serializeAws_restJson1TagMap = (input: { [key: string]: string }, context: __SerdeContext): any => { +const serializeAws_restJson1TagMap = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -4012,8 +4012,8 @@ const deserializeAws_restJson1Grantee = (output: any, context: __SerdeContext): } as any; }; -const deserializeAws_restJson1hashmap = (output: any, context: __SerdeContext): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +const deserializeAws_restJson1hashmap = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -4173,8 +4173,8 @@ const deserializeAws_restJson1SelectParameters = (output: any, context: __SerdeC } as any; }; -const deserializeAws_restJson1TagMap = (output: any, context: __SerdeContext): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +const deserializeAws_restJson1TagMap = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } diff --git a/clients/client-glue/src/models/models_0.ts b/clients/client-glue/src/models/models_0.ts index 3b75a65672b9..b8f90723eeb3 100644 --- a/clients/client-glue/src/models/models_0.ts +++ b/clients/client-glue/src/models/models_0.ts @@ -63,7 +63,7 @@ export interface Action { *

For information about how to specify and consume your own Job arguments, see the Calling Glue APIs in Python topic in the developer guide.

*

For information about the key-value pairs that Glue consumes to set up your job, see the Special Parameters Used by Glue topic in the developer guide.

*/ - Arguments?: { [key: string]: string }; + Arguments?: Record; /** *

The JobRun timeout in minutes. This is the maximum time that a job run can @@ -343,7 +343,7 @@ export interface Column { /** *

These key-value pairs define properties associated with the column.

*/ - Parameters?: { [key: string]: string }; + Parameters?: Record; } export namespace Column { @@ -432,7 +432,7 @@ export interface SerDeInfo { /** *

These key-value pairs define initialization parameters for the SerDe.

*/ - Parameters?: { [key: string]: string }; + Parameters?: Record; } export namespace SerDeInfo { @@ -463,7 +463,7 @@ export interface SkewedInfo { /** *

A mapping of skewed values to the columns that contain them.

*/ - SkewedColumnValueLocationMaps?: { [key: string]: string }; + SkewedColumnValueLocationMaps?: Record; } export namespace SkewedInfo { @@ -560,7 +560,7 @@ export interface StorageDescriptor { /** *

The user-supplied properties in key-value form.

*/ - Parameters?: { [key: string]: string }; + Parameters?: Record; /** *

The information about values that appear frequently in a column (skewed values).

@@ -616,7 +616,7 @@ export interface PartitionInput { /** *

These key-value pairs define partition parameters.

*/ - Parameters?: { [key: string]: string }; + Parameters?: Record; /** *

The last time at which column statistics were computed for this partition.

@@ -908,7 +908,7 @@ export interface BatchDeleteConnectionResponse { *

A map of the names of connections that were not successfully * deleted to error details.

*/ - Errors?: { [key: string]: ErrorDetail }; + Errors?: Record; } export namespace BatchDeleteConnectionResponse { @@ -2227,7 +2227,7 @@ export interface DevEndpoint { * *

You can specify a version of Python support for development endpoints by using the Arguments parameter in the CreateDevEndpoint or UpdateDevEndpoint APIs. If no arguments are provided, the version defaults to Python 2.

*/ - Arguments?: { [key: string]: string }; + Arguments?: Record; } export namespace DevEndpoint { @@ -3358,7 +3358,7 @@ export interface JDBCConnectorOptions { /** *

Custom data type mapping that builds a mapping from a JDBC data type to an Glue data type. For example, the option "dataTypeMapping":{"FLOAT":"STRING"} maps data fields of JDBC type FLOAT into the Java String type by calling the ResultSet.getString() method of the driver, and uses it to build the Glue record. The ResultSet object is implemented by each driver, so the behavior is specific to the driver you use. Refer to the documentation for your JDBC driver to understand how the driver performs the conversions.

*/ - DataTypeMapping?: { [key: string]: GlueRecordType | string }; + DataTypeMapping?: Record; } export namespace JDBCConnectorOptions { @@ -3461,7 +3461,7 @@ export interface JDBCConnectorTarget { /** *

Additional connection options for the connector.

*/ - AdditionalOptions?: { [key: string]: string }; + AdditionalOptions?: Record; /** *

Specifies the data schema for the JDBC target.

@@ -4700,7 +4700,7 @@ export interface SparkConnectorSource { /** *

Additional connection options for the connector.

*/ - AdditionalOptions?: { [key: string]: string }; + AdditionalOptions?: Record; /** *

Specifies data schema for the custom spark source.

@@ -4749,7 +4749,7 @@ export interface SparkConnectorTarget { /** *

Additional connection options for the connector.

*/ - AdditionalOptions?: { [key: string]: string }; + AdditionalOptions?: Record; /** *

Specifies the data schema for the custom spark target.

@@ -5084,7 +5084,7 @@ export interface Partition { /** *

These key-value pairs define partition parameters.

*/ - Parameters?: { [key: string]: string }; + Parameters?: Record; /** *

The last time at which column statistics were computed for this @@ -5608,7 +5608,7 @@ export interface JobRun { *

For information about how to specify and consume your own job arguments, see the Calling Glue APIs in Python topic in the developer guide.

*

For information about the key-value pairs that Glue consumes to set up your job, see the Special Parameters Used by Glue topic in the developer guide.

*/ - Arguments?: { [key: string]: string }; + Arguments?: Record; /** *

An error message associated with this job run.

@@ -5948,7 +5948,7 @@ export interface WorkflowRun { /** *

The workflow run properties which were set during the run.

*/ - WorkflowRunProperties?: { [key: string]: string }; + WorkflowRunProperties?: Record; /** *

The date and time when the workflow run was started.

@@ -6017,7 +6017,7 @@ export interface Workflow { * The run properties are made available to each job in the workflow. A job can modify * the properties for the next jobs in the flow.

*/ - DefaultRunProperties?: { [key: string]: string }; + DefaultRunProperties?: Record; /** *

The date and time when the workflow was created.

@@ -6462,7 +6462,7 @@ export interface CreateBlueprintRequest { /** *

The tags to be applied to this blueprint.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; } export namespace CreateBlueprintRequest { @@ -6813,7 +6813,7 @@ export interface ConnectionInput { /** *

These key-value pairs define parameters for the connection.

*/ - ConnectionProperties: { [key: string]: string } | undefined; + ConnectionProperties: Record | undefined; /** *

A map of physical connection requirements, such as virtual private cloud (VPC) and @@ -6847,7 +6847,7 @@ export interface CreateConnectionRequest { /** *

The tags you assign to the connection.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; } export namespace CreateConnectionRequest { @@ -6955,7 +6955,7 @@ export interface CreateCrawlerRequest { * crawler. For more information about tags in Glue, see Amazon Web Services Tags in Glue in the developer * guide.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; } export namespace CreateCrawlerRequest { @@ -7174,7 +7174,7 @@ export interface DatabaseInput { * of the database.

*

These key-value pairs define parameters and properties of the database.

*/ - Parameters?: { [key: string]: string }; + Parameters?: Record; /** *

Creates a set of default permissions on the table for principals.

@@ -7341,12 +7341,12 @@ export interface CreateDevEndpointRequest { /** *

The tags to use with this DevEndpoint. You may use tags to limit access to the DevEndpoint. For more information about tags in Glue, see Amazon Web Services Tags in Glue in the developer guide.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; /** *

A map of arguments used to configure the DevEndpoint.

*/ - Arguments?: { [key: string]: string }; + Arguments?: Record; } export namespace CreateDevEndpointRequest { @@ -7469,7 +7469,7 @@ export interface CreateDevEndpointResponse { * *

You can specify a version of Python support for development endpoints by using the Arguments parameter in the CreateDevEndpoint or UpdateDevEndpoint APIs. If no arguments are provided, the version defaults to Python 2.

*/ - Arguments?: { [key: string]: string }; + Arguments?: Record; } export namespace CreateDevEndpointResponse { @@ -7828,7 +7828,7 @@ export interface CreateMLTransformRequest { /** *

The tags to use with this machine learning transform. You may use tags to limit access to the machine learning transform. For more information about tags in Glue, see Amazon Web Services Tags in Glue in the developer guide.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; /** *

The encryption-at-rest settings of the transform that apply to accessing user data. Machine learning transforms can access user data encrypted in Amazon S3 using KMS.

@@ -7985,7 +7985,7 @@ export interface CreateRegistryInput { /** *

Amazon Web Services tags that contain a key value pair and may be searched by console, command line, or API.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; } export namespace CreateRegistryInput { @@ -8016,7 +8016,7 @@ export interface CreateRegistryResponse { /** *

The tags for the registry.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; } export namespace CreateRegistryResponse { @@ -8127,7 +8127,7 @@ export interface CreateSchemaInput { /** *

Amazon Web Services tags that contain a key value pair and may be searched by console, command line, or API. If specified, follows the Amazon Web Services tags-on-create pattern.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; /** *

The schema definition using the DataFormat setting for SchemaName.

@@ -8216,7 +8216,7 @@ export interface CreateSchemaResponse { /** *

The tags for the schema.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; /** *

The unique identifier of the first schema version.

@@ -8602,7 +8602,7 @@ export interface CreateSessionRequest { /** *

A map array of key-value pairs. Max is 75 pairs.

*/ - DefaultArguments?: { [key: string]: string }; + DefaultArguments?: Record; /** *

The number of connections to use for the session.

@@ -8639,7 +8639,7 @@ export interface CreateSessionRequest { /** *

The map of key value pairs (tags) belonging to the session.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; /** *

The origin of the request.

@@ -8707,7 +8707,7 @@ export interface Session { /** *

A map array of key-value pairs. Max is 75 pairs.

*/ - DefaultArguments?: { [key: string]: string }; + DefaultArguments?: Record; /** *

The number of connections used for the session.

@@ -8862,7 +8862,7 @@ export interface TableInput { /** *

These key-value pairs define properties associated with the table.

*/ - Parameters?: { [key: string]: string }; + Parameters?: Record; /** *

A TableIdentifier structure that describes a target table for resource linking.

@@ -8980,7 +8980,7 @@ export interface CreateTriggerRequest { * For more information about tags in Glue, see * Amazon Web Services Tags in Glue in the developer guide.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; /** *

Batch condition that must be met (specified number of events received or batch time window expired) @@ -9142,12 +9142,12 @@ export interface CreateWorkflowRequest { /** *

A collection of properties to be used as part of each execution of the workflow.

*/ - DefaultRunProperties?: { [key: string]: string }; + DefaultRunProperties?: Record; /** *

The tags to be used with this workflow.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; /** *

You can use this parameter to prevent unwanted multiple updates to data, to control costs, or in some cases, to prevent exceeding the maximum number of concurrent runs of any of the component jobs. If you leave this parameter blank, there is no limit to the number of concurrent workflow runs.

diff --git a/clients/client-glue/src/models/models_1.ts b/clients/client-glue/src/models/models_1.ts index d7b967ae6acf..3de9fa621b37 100644 --- a/clients/client-glue/src/models/models_1.ts +++ b/clients/client-glue/src/models/models_1.ts @@ -2287,7 +2287,7 @@ export interface Connection { * * */ - ConnectionProperties?: { [key: string]: string }; + ConnectionProperties?: Record; /** *

A map of physical connection requirements, such as virtual private cloud (VPC) and @@ -2692,7 +2692,7 @@ export interface Database { *

These key-value pairs define parameters and properties * of the database.

*/ - Parameters?: { [key: string]: string }; + Parameters?: Record; /** *

The time at which the metadata database was created in the catalog.

@@ -4955,7 +4955,7 @@ export interface GetPlanRequest { * * */ - AdditionalPlanOptionsMap?: { [key: string]: string }; + AdditionalPlanOptionsMap?: Record; } export namespace GetPlanRequest { @@ -5930,7 +5930,7 @@ export interface Table { /** *

These key-value pairs define properties associated with the table.

*/ - Parameters?: { [key: string]: string }; + Parameters?: Record; /** *

The person or entity who created the table.

@@ -6207,7 +6207,7 @@ export interface GetTagsResponse { /** *

The requested tags.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; } export namespace GetTagsResponse { @@ -6745,7 +6745,7 @@ export interface GetWorkflowRunPropertiesResponse { /** *

The workflow run properties which were set during the specified run.

*/ - RunProperties?: { [key: string]: string }; + RunProperties?: Record; } export namespace GetWorkflowRunPropertiesResponse { @@ -6850,7 +6850,7 @@ export interface ListBlueprintsRequest { /** *

Filters the list by an Amazon Web Services resource tag.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; } export namespace ListBlueprintsRequest { @@ -6897,7 +6897,7 @@ export interface ListCrawlersRequest { /** *

Specifies to return only these tagged resources.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; } export namespace ListCrawlersRequest { @@ -6987,7 +6987,7 @@ export interface ListDevEndpointsRequest { /** *

Specifies to return only these tagged resources.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; } export namespace ListDevEndpointsRequest { @@ -7036,7 +7036,7 @@ export interface ListJobsRequest { /** *

Specifies to return only these tagged resources.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; } export namespace ListJobsRequest { @@ -7094,7 +7094,7 @@ export interface ListMLTransformsRequest { /** *

Specifies to return only these tagged resources.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; } export namespace ListMLTransformsRequest { @@ -7419,7 +7419,7 @@ export interface ListSessionsRequest { /** *

Tags belonging to the session.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; /** *

The origin of the request.

@@ -7523,7 +7523,7 @@ export interface ListTriggersRequest { /** *

Specifies to return only these tagged resources.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; } export namespace ListTriggersRequest { @@ -7833,7 +7833,7 @@ export interface PutWorkflowRunPropertiesRequest { /** *

The properties to put for the specified run.

*/ - RunProperties: { [key: string]: string } | undefined; + RunProperties: Record | undefined; } export namespace PutWorkflowRunPropertiesRequest { @@ -7954,7 +7954,7 @@ export interface QuerySchemaVersionMetadataResponse { /** *

A map of a metadata key and associated values.

*/ - MetadataInfoMap?: { [key: string]: MetadataInfo }; + MetadataInfoMap?: Record; /** *

The unique version ID of the schema version.

diff --git a/clients/client-glue/src/models/models_2.ts b/clients/client-glue/src/models/models_2.ts index 9659a5164a57..89eb6610d579 100644 --- a/clients/client-glue/src/models/models_2.ts +++ b/clients/client-glue/src/models/models_2.ts @@ -600,7 +600,7 @@ export interface StartJobRunRequest { *

For information about how to specify and consume your own Job arguments, see the Calling Glue APIs in Python topic in the developer guide.

*

For information about the key-value pairs that Glue consumes to set up your job, see the Special Parameters Used by Glue topic in the developer guide.

*/ - Arguments?: { [key: string]: string }; + Arguments?: Record; /** * @deprecated @@ -839,7 +839,7 @@ export interface StartWorkflowRunRequest { /** *

The workflow run properties for the new workflow run.

*/ - RunProperties?: { [key: string]: string }; + RunProperties?: Record; } export namespace StartWorkflowRunRequest { @@ -1104,7 +1104,7 @@ export interface TagResourceRequest { /** *

Tags to add to this resource.

*/ - TagsToAdd: { [key: string]: string } | undefined; + TagsToAdd: Record | undefined; } export namespace TagResourceRequest { @@ -1840,7 +1840,7 @@ export interface UpdateDevEndpointRequest { * *

You can specify a version of Python support for development endpoints by using the Arguments parameter in the CreateDevEndpoint or UpdateDevEndpoint APIs. If no arguments are provided, the version defaults to Python 2.

*/ - AddArguments?: { [key: string]: string }; + AddArguments?: Record; } export namespace UpdateDevEndpointRequest { @@ -2336,7 +2336,7 @@ export interface UpdateWorkflowRequest { /** *

A collection of properties to be used as part of each execution of the workflow.

*/ - DefaultRunProperties?: { [key: string]: string }; + DefaultRunProperties?: Record; /** *

You can use this parameter to prevent unwanted multiple updates to data, to control costs, or in some cases, to prevent exceeding the maximum number of concurrent runs of any of the component jobs. If you leave this parameter blank, there is no limit to the number of concurrent workflow runs.

@@ -2781,12 +2781,12 @@ export interface CreateJobRequest { *

For information about how to specify and consume your own Job arguments, see the Calling Glue APIs in Python topic in the developer guide.

*

For information about the key-value pairs that Glue consumes to set up your job, see the Special Parameters Used by Glue topic in the developer guide.

*/ - DefaultArguments?: { [key: string]: string }; + DefaultArguments?: Record; /** *

Non-overridable arguments for this job, specified as name-value pairs.

*/ - NonOverridableArguments?: { [key: string]: string }; + NonOverridableArguments?: Record; /** *

The connections used for this job.

@@ -2852,7 +2852,7 @@ export interface CreateJobRequest { /** *

The tags to use with this job. You may use tags to limit access to the job. For more information about tags in Glue, see Amazon Web Services Tags in Glue in the developer guide.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; /** *

Specifies configuration properties of a job notification.

@@ -2894,7 +2894,7 @@ export interface CreateJobRequest { /** *

The representation of a directed acyclic graph on which both the Glue Studio visual component and Glue Studio code generation is based.

*/ - CodeGenConfigurationNodes?: { [key: string]: CodeGenConfigurationNode }; + CodeGenConfigurationNodes?: Record; } export namespace CreateJobRequest { @@ -2959,12 +2959,12 @@ export interface Job { *

For information about how to specify and consume your own Job arguments, see the Calling Glue APIs in Python topic in the developer guide.

*

For information about the key-value pairs that Glue consumes to set up your job, see the Special Parameters Used by Glue topic in the developer guide.

*/ - DefaultArguments?: { [key: string]: string }; + DefaultArguments?: Record; /** *

Non-overridable arguments for this job, specified as name-value pairs.

*/ - NonOverridableArguments?: { [key: string]: string }; + NonOverridableArguments?: Record; /** *

The connections used for this job.

@@ -3069,7 +3069,7 @@ export interface Job { /** *

The representation of a directed acyclic graph on which both the Glue Studio visual component and Glue Studio code generation is based.

*/ - CodeGenConfigurationNodes?: { [key: string]: CodeGenConfigurationNode }; + CodeGenConfigurationNodes?: Record; } export namespace Job { @@ -3121,12 +3121,12 @@ export interface JobUpdate { *

For information about how to specify and consume your own Job arguments, see the Calling Glue APIs in Python topic in the developer guide.

*

For information about the key-value pairs that Glue consumes to set up your job, see the Special Parameters Used by Glue topic in the developer guide.

*/ - DefaultArguments?: { [key: string]: string }; + DefaultArguments?: Record; /** *

Non-overridable arguments for this job, specified as name-value pairs.

*/ - NonOverridableArguments?: { [key: string]: string }; + NonOverridableArguments?: Record; /** *

The connections used for this job.

@@ -3226,7 +3226,7 @@ export interface JobUpdate { /** *

The representation of a directed acyclic graph on which both the Glue Studio visual component and Glue Studio code generation is based.

*/ - CodeGenConfigurationNodes?: { [key: string]: CodeGenConfigurationNode }; + CodeGenConfigurationNodes?: Record; } export namespace JobUpdate { diff --git a/clients/client-glue/src/protocols/Aws_json1_1.ts b/clients/client-glue/src/protocols/Aws_json1_1.ts index 916f6790bae6..a0780eeeea69 100644 --- a/clients/client-glue/src/protocols/Aws_json1_1.ts +++ b/clients/client-glue/src/protocols/Aws_json1_1.ts @@ -13602,7 +13602,7 @@ const serializeAws_json1_1ActionList = (input: Action[], context: __SerdeContext }); }; -const serializeAws_json1_1AdditionalOptions = (input: { [key: string]: string }, context: __SerdeContext): any => { +const serializeAws_json1_1AdditionalOptions = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -13614,10 +13614,7 @@ const serializeAws_json1_1AdditionalOptions = (input: { [key: string]: string }, }, {}); }; -const serializeAws_json1_1AdditionalPlanOptionsMap = ( - input: { [key: string]: string }, - context: __SerdeContext -): any => { +const serializeAws_json1_1AdditionalPlanOptionsMap = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -14369,7 +14366,7 @@ const serializeAws_json1_1CodeGenConfigurationNode = ( }; const serializeAws_json1_1CodeGenConfigurationNodes = ( - input: { [key: string]: CodeGenConfigurationNode }, + input: Record, context: __SerdeContext ): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { @@ -14574,7 +14571,7 @@ const serializeAws_json1_1ConnectionPasswordEncryption = ( }; }; -const serializeAws_json1_1ConnectionProperties = (input: { [key: string]: string }, context: __SerdeContext): any => { +const serializeAws_json1_1ConnectionProperties = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce( (acc: { [key: string]: any }, [key, value]: [ConnectionPropertyKey | string, any]) => { if (value === null) { @@ -15766,7 +15763,7 @@ const serializeAws_json1_1FindMatchesParameters = (input: FindMatchesParameters, }; }; -const serializeAws_json1_1GenericMap = (input: { [key: string]: string }, context: __SerdeContext): any => { +const serializeAws_json1_1GenericMap = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -16595,7 +16592,7 @@ const serializeAws_json1_1JDBCConnectorTarget = (input: JDBCConnectorTarget, con }; const serializeAws_json1_1JDBCDataTypeMapping = ( - input: { [key: string]: GlueRecordType | string }, + input: Record, context: __SerdeContext ): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [JDBCDataType | string, any]) => { @@ -16978,7 +16975,7 @@ const serializeAws_json1_1Location = (input: Location, context: __SerdeContext): }; }; -const serializeAws_json1_1LocationMap = (input: { [key: string]: string }, context: __SerdeContext): any => { +const serializeAws_json1_1LocationMap = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -17071,7 +17068,7 @@ const serializeAws_json1_1Mappings = (input: Mapping[], context: __SerdeContext) }); }; -const serializeAws_json1_1MapValue = (input: { [key: string]: string }, context: __SerdeContext): any => { +const serializeAws_json1_1MapValue = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -17280,10 +17277,7 @@ const serializeAws_json1_1OracleSQLCatalogTarget = (input: OracleSQLCatalogTarge }; }; -const serializeAws_json1_1OrchestrationArgumentsMap = ( - input: { [key: string]: string }, - context: __SerdeContext -): any => { +const serializeAws_json1_1OrchestrationArgumentsMap = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -17324,7 +17318,7 @@ const serializeAws_json1_1OrderList = (input: Order[], context: __SerdeContext): }); }; -const serializeAws_json1_1ParametersMap = (input: { [key: string]: string }, context: __SerdeContext): any => { +const serializeAws_json1_1ParametersMap = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -18487,7 +18481,7 @@ const serializeAws_json1_1TagResourceRequest = (input: TagResourceRequest, conte }; }; -const serializeAws_json1_1TagsMap = (input: { [key: string]: string }, context: __SerdeContext): any => { +const serializeAws_json1_1TagsMap = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -19037,7 +19031,7 @@ const serializeAws_json1_1WorkflowNames = (input: string[], context: __SerdeCont }); }; -const serializeAws_json1_1WorkflowRunProperties = (input: { [key: string]: string }, context: __SerdeContext): any => { +const serializeAws_json1_1WorkflowRunProperties = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -19084,8 +19078,8 @@ const deserializeAws_json1_1ActionList = (output: any, context: __SerdeContext): return retVal; }; -const deserializeAws_json1_1AdditionalOptions = (output: any, context: __SerdeContext): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +const deserializeAws_json1_1AdditionalOptions = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -20045,19 +20039,16 @@ const deserializeAws_json1_1CodeGenConfigurationNode = ( const deserializeAws_json1_1CodeGenConfigurationNodes = ( output: any, context: __SerdeContext -): { [key: string]: CodeGenConfigurationNode } => { - return Object.entries(output).reduce( - (acc: { [key: string]: CodeGenConfigurationNode }, [key, value]: [string, any]) => { - if (value === null) { - return acc; - } - return { - ...acc, - [key]: deserializeAws_json1_1CodeGenConfigurationNode(value, context), - }; - }, - {} - ); +): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { + if (value === null) { + return acc; + } + return { + ...acc, + [key]: deserializeAws_json1_1CodeGenConfigurationNode(value, context), + }; + }, {}); }; const deserializeAws_json1_1CodeGenEdge = (output: any, context: __SerdeContext): CodeGenEdge => { @@ -20400,12 +20391,9 @@ const deserializeAws_json1_1ConnectionPasswordEncryption = ( } as any; }; -const deserializeAws_json1_1ConnectionProperties = ( - output: any, - context: __SerdeContext -): { [key: string]: string } => { +const deserializeAws_json1_1ConnectionProperties = (output: any, context: __SerdeContext): Record => { return Object.entries(output).reduce( - (acc: { [key: string]: string }, [key, value]: [ConnectionPropertyKey | string, any]) => { + (acc: Record, [key, value]: [ConnectionPropertyKey | string, any]) => { if (value === null) { return acc; } @@ -21539,8 +21527,8 @@ const deserializeAws_json1_1EntityNotFoundException = ( } as any; }; -const deserializeAws_json1_1ErrorByName = (output: any, context: __SerdeContext): { [key: string]: ErrorDetail } => { - return Object.entries(output).reduce((acc: { [key: string]: ErrorDetail }, [key, value]: [string, any]) => { +const deserializeAws_json1_1ErrorByName = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -21706,8 +21694,8 @@ const deserializeAws_json1_1FindMatchesTaskRunProperties = ( } as any; }; -const deserializeAws_json1_1GenericMap = (output: any, context: __SerdeContext): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +const deserializeAws_json1_1GenericMap = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -22779,9 +22767,9 @@ const deserializeAws_json1_1JDBCConnectorTarget = (output: any, context: __Serde const deserializeAws_json1_1JDBCDataTypeMapping = ( output: any, context: __SerdeContext -): { [key: string]: GlueRecordType | string } => { +): Record => { return Object.entries(output).reduce( - (acc: { [key: string]: GlueRecordType | string }, [key, value]: [JDBCDataType | string, any]) => { + (acc: Record, [key, value]: [JDBCDataType | string, any]) => { if (value === null) { return acc; } @@ -23331,8 +23319,8 @@ const deserializeAws_json1_1ListWorkflowsResponse = (output: any, context: __Ser } as any; }; -const deserializeAws_json1_1LocationMap = (output: any, context: __SerdeContext): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +const deserializeAws_json1_1LocationMap = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -23431,8 +23419,8 @@ const deserializeAws_json1_1Mappings = (output: any, context: __SerdeContext): M return retVal; }; -const deserializeAws_json1_1MapValue = (output: any, context: __SerdeContext): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +const deserializeAws_json1_1MapValue = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -23481,11 +23469,8 @@ const deserializeAws_json1_1MetadataInfo = (output: any, context: __SerdeContext } as any; }; -const deserializeAws_json1_1MetadataInfoMap = ( - output: any, - context: __SerdeContext -): { [key: string]: MetadataInfo } => { - return Object.entries(output).reduce((acc: { [key: string]: MetadataInfo }, [key, value]: [string, any]) => { +const deserializeAws_json1_1MetadataInfoMap = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -23765,8 +23750,8 @@ const deserializeAws_json1_1OracleSQLCatalogTarget = (output: any, context: __Se const deserializeAws_json1_1OrchestrationArgumentsMap = ( output: any, context: __SerdeContext -): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -23833,8 +23818,8 @@ const deserializeAws_json1_1OtherMetadataValueListItem = ( } as any; }; -const deserializeAws_json1_1ParametersMap = (output: any, context: __SerdeContext): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +const deserializeAws_json1_1ParametersMap = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -25364,8 +25349,8 @@ const deserializeAws_json1_1TagResourceResponse = (output: any, context: __Serde return {} as any; }; -const deserializeAws_json1_1TagsMap = (output: any, context: __SerdeContext): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +const deserializeAws_json1_1TagsMap = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -25902,11 +25887,8 @@ const deserializeAws_json1_1WorkflowRun = (output: any, context: __SerdeContext) } as any; }; -const deserializeAws_json1_1WorkflowRunProperties = ( - output: any, - context: __SerdeContext -): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +const deserializeAws_json1_1WorkflowRunProperties = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } diff --git a/clients/client-grafana/src/models/models_0.ts b/clients/client-grafana/src/models/models_0.ts index a67eaafdf62f..e861e4e8c435 100644 --- a/clients/client-grafana/src/models/models_0.ts +++ b/clients/client-grafana/src/models/models_0.ts @@ -726,7 +726,7 @@ export interface WorkspaceDescription { /** *

The list of tags associated with the workspace.

*/ - tags?: { [key: string]: string }; + tags?: Record; } export namespace WorkspaceDescription { @@ -1110,7 +1110,7 @@ export interface ListTagsForResourceResponse { /** *

The list of tags that are associated with the resource.

*/ - tags?: { [key: string]: string }; + tags?: Record; } export namespace ListTagsForResourceResponse { @@ -1384,7 +1384,7 @@ export interface TagResourceRequest { *

The list of tag keys and values to associate with the resource. You can associate tag keys only, tags (key and values) only * or a combination of tag keys and tags.

*/ - tags: { [key: string]: string } | undefined; + tags: Record | undefined; } export namespace TagResourceRequest { @@ -1532,7 +1532,7 @@ export interface CreateWorkspaceRequest { /** *

The list of tags associated with the workspace.

*/ - tags?: { [key: string]: string }; + tags?: Record; } export namespace CreateWorkspaceRequest { @@ -1714,7 +1714,7 @@ export interface WorkspaceSummary { /** *

The list of tags associated with the workspace.

*/ - tags?: { [key: string]: string }; + tags?: Record; } export namespace WorkspaceSummary { diff --git a/clients/client-grafana/src/protocols/Aws_restJson1.ts b/clients/client-grafana/src/protocols/Aws_restJson1.ts index a3b63194511e..b8e5d252cdb0 100644 --- a/clients/client-grafana/src/protocols/Aws_restJson1.ts +++ b/clients/client-grafana/src/protocols/Aws_restJson1.ts @@ -1876,7 +1876,7 @@ const serializeAws_restJson1SamlConfiguration = (input: SamlConfiguration, conte }; }; -const serializeAws_restJson1TagMap = (input: { [key: string]: string }, context: __SerdeContext): any => { +const serializeAws_restJson1TagMap = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -2131,8 +2131,8 @@ const deserializeAws_restJson1SamlConfiguration = (output: any, context: __Serde } as any; }; -const deserializeAws_restJson1TagMap = (output: any, context: __SerdeContext): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +const deserializeAws_restJson1TagMap = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } diff --git a/clients/client-greengrass/src/models/models_0.ts b/clients/client-greengrass/src/models/models_0.ts index 23db9e0eb6f3..4398f919698b 100644 --- a/clients/client-greengrass/src/models/models_0.ts +++ b/clients/client-greengrass/src/models/models_0.ts @@ -54,7 +54,7 @@ export interface Connector { /** * The parameters or configuration that the connector uses. */ - Parameters?: { [key: string]: string }; + Parameters?: Record; } export namespace Connector { @@ -142,7 +142,7 @@ export interface DefinitionInformation { /** * Tag(s) attached to the resource arn. */ - Tags?: { [key: string]: string }; + Tags?: Record; } export namespace DefinitionInformation { @@ -297,7 +297,7 @@ export interface FunctionConfigurationEnvironment { /** * Environment variables for the Lambda function's configuration. */ - Variables?: { [key: string]: string }; + Variables?: Record; } export namespace FunctionConfigurationEnvironment { @@ -1179,7 +1179,7 @@ export interface CreateConnectorDefinitionRequest { /** * Tag(s) to add to the new resource. */ - tags?: { [key: string]: string }; + tags?: Record; } export namespace CreateConnectorDefinitionRequest { @@ -1316,7 +1316,7 @@ export interface CreateCoreDefinitionRequest { /** * Tag(s) to add to the new resource. */ - tags?: { [key: string]: string }; + tags?: Record; } export namespace CreateCoreDefinitionRequest { @@ -1526,7 +1526,7 @@ export interface CreateDeviceDefinitionRequest { /** * Tag(s) to add to the new resource. */ - tags?: { [key: string]: string }; + tags?: Record; } export namespace CreateDeviceDefinitionRequest { @@ -1727,7 +1727,7 @@ export interface CreateFunctionDefinitionRequest { /** * Tag(s) to add to the new resource. */ - tags?: { [key: string]: string }; + tags?: Record; } export namespace CreateFunctionDefinitionRequest { @@ -1918,7 +1918,7 @@ export interface CreateGroupRequest { /** * Tag(s) to add to the new resource. */ - tags?: { [key: string]: string }; + tags?: Record; } export namespace CreateGroupRequest { @@ -2138,7 +2138,7 @@ export interface CreateLoggerDefinitionRequest { /** * Tag(s) to add to the new resource. */ - tags?: { [key: string]: string }; + tags?: Record; } export namespace CreateLoggerDefinitionRequest { @@ -2291,7 +2291,7 @@ export interface CreateResourceDefinitionRequest { /** * Tag(s) to add to the new resource. */ - tags?: { [key: string]: string }; + tags?: Record; } export namespace CreateResourceDefinitionRequest { @@ -2546,7 +2546,7 @@ export interface CreateSubscriptionDefinitionRequest { /** * Tag(s) to add to the new resource. */ - tags?: { [key: string]: string }; + tags?: Record; } export namespace CreateSubscriptionDefinitionRequest { @@ -3057,7 +3057,7 @@ export interface GetBulkDeploymentStatusResponse { /** * Tag(s) attached to the resource arn. */ - tags?: { [key: string]: string }; + tags?: Record; } export namespace GetBulkDeploymentStatusResponse { @@ -3161,7 +3161,7 @@ export interface GetConnectorDefinitionResponse { /** * Tag(s) attached to the resource arn. */ - tags?: { [key: string]: string }; + tags?: Record; } export namespace GetConnectorDefinitionResponse { @@ -3295,7 +3295,7 @@ export interface GetCoreDefinitionResponse { /** * Tag(s) attached to the resource arn. */ - tags?: { [key: string]: string }; + tags?: Record; } export namespace GetCoreDefinitionResponse { @@ -3481,7 +3481,7 @@ export interface GetDeviceDefinitionResponse { /** * Tag(s) attached to the resource arn. */ - tags?: { [key: string]: string }; + tags?: Record; } export namespace GetDeviceDefinitionResponse { @@ -3615,7 +3615,7 @@ export interface GetFunctionDefinitionResponse { /** * Tag(s) attached to the resource arn. */ - tags?: { [key: string]: string }; + tags?: Record; } export namespace GetFunctionDefinitionResponse { @@ -3749,7 +3749,7 @@ export interface GetGroupResponse { /** * Tag(s) attached to the resource arn. */ - tags?: { [key: string]: string }; + tags?: Record; } export namespace GetGroupResponse { @@ -3962,7 +3962,7 @@ export interface GetLoggerDefinitionResponse { /** * Tag(s) attached to the resource arn. */ - tags?: { [key: string]: string }; + tags?: Record; } export namespace GetLoggerDefinitionResponse { @@ -4091,7 +4091,7 @@ export interface GetResourceDefinitionResponse { /** * Tag(s) attached to the resource arn. */ - tags?: { [key: string]: string }; + tags?: Record; } export namespace GetResourceDefinitionResponse { @@ -4247,7 +4247,7 @@ export interface GetSubscriptionDefinitionResponse { /** * Tag(s) attached to the resource arn. */ - tags?: { [key: string]: string }; + tags?: Record; } export namespace GetSubscriptionDefinitionResponse { @@ -5306,7 +5306,7 @@ export interface ListTagsForResourceResponse { /** * The key-value pair for the resource tag. */ - tags?: { [key: string]: string }; + tags?: Record; } export namespace ListTagsForResourceResponse { @@ -5387,7 +5387,7 @@ export interface StartBulkDeploymentRequest { /** * Tag(s) to add to the new resource. */ - tags?: { [key: string]: string }; + tags?: Record; } export namespace StartBulkDeploymentRequest { @@ -5459,7 +5459,7 @@ export interface TagResourceRequest { /** * The key-value pair for the resource tag. */ - tags?: { [key: string]: string }; + tags?: Record; } export namespace TagResourceRequest { diff --git a/clients/client-greengrass/src/protocols/Aws_restJson1.ts b/clients/client-greengrass/src/protocols/Aws_restJson1.ts index 92a38d79f17a..3fadc5480378 100644 --- a/clients/client-greengrass/src/protocols/Aws_restJson1.ts +++ b/clients/client-greengrass/src/protocols/Aws_restJson1.ts @@ -8398,7 +8398,7 @@ const serializeAws_restJson1__listOfSubscription = (input: Subscription[], conte }); }; -const serializeAws_restJson1__mapOf__string = (input: { [key: string]: string }, context: __SerdeContext): any => { +const serializeAws_restJson1__mapOf__string = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -8799,7 +8799,7 @@ const serializeAws_restJson1SubscriptionDefinitionVersion = ( }; }; -const serializeAws_restJson1Tags = (input: { [key: string]: string }, context: __SerdeContext): any => { +const serializeAws_restJson1Tags = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -9011,8 +9011,8 @@ const deserializeAws_restJson1__listOfVersionInformation = ( return retVal; }; -const deserializeAws_restJson1__mapOf__string = (output: any, context: __SerdeContext): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +const deserializeAws_restJson1__mapOf__string = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -9545,8 +9545,8 @@ const deserializeAws_restJson1SubscriptionDefinitionVersion = ( } as any; }; -const deserializeAws_restJson1Tags = (output: any, context: __SerdeContext): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +const deserializeAws_restJson1Tags = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } diff --git a/clients/client-greengrassv2/src/models/models_0.ts b/clients/client-greengrassv2/src/models/models_0.ts index b24f13640710..01102d48e4c4 100644 --- a/clients/client-greengrassv2/src/models/models_0.ts +++ b/clients/client-greengrassv2/src/models/models_0.ts @@ -515,7 +515,7 @@ export interface CloudComponentStatus { * errors contains the artifact's URI as a key, and the error message as the value * for that key.

*/ - errors?: { [key: string]: string }; + errors?: Record; /** *

The vendor guidance state for the component version. This state indicates whether @@ -573,7 +573,7 @@ export interface ComponentPlatform { * see the Greengrass nucleus * component in the IoT Greengrass V2 Developer Guide.

*/ - attributes?: { [key: string]: string }; + attributes?: Record; } export namespace ComponentPlatform { @@ -678,7 +678,7 @@ export interface ComponentCandidate { * version requirements from component recipes.

*

IoT Greengrass V2 uses semantic version constraints. For more information, see Semantic Versioning.

*/ - versionRequirements?: { [key: string]: string }; + versionRequirements?: Record; } export namespace ComponentCandidate { @@ -1281,7 +1281,7 @@ export interface LambdaExecutionParameters { /** *

The map of environment variables that are available to the Lambda function when it runs.

*/ - environmentVariables?: { [key: string]: string }; + environmentVariables?: Record; /** *

The parameters for the Linux process that contains the Lambda function.

@@ -1329,7 +1329,7 @@ export interface LambdaFunctionRecipeSource { /** *

The component versions on which this Lambda function component depends.

*/ - componentDependencies?: { [key: string]: ComponentDependencyRequirement }; + componentDependencies?: Record; /** *

The system and runtime parameters for the Lambda function as it runs on the Greengrass core @@ -1366,7 +1366,7 @@ export interface CreateComponentVersionRequest { * information, see Tag your * resources in the IoT Greengrass V2 Developer Guide.

*/ - tags?: { [key: string]: string }; + tags?: Record; /** *

A unique, case-sensitive identifier that you can provide to ensure that the request is idempotent. @@ -1844,7 +1844,7 @@ export interface CreateDeploymentRequest { *

The components to deploy. This is a dictionary, where each key is the name of a component, * and each key's value is the version and configuration to deploy for that component.

*/ - components?: { [key: string]: ComponentDeploymentSpecification }; + components?: Record; /** *

The job configuration for the deployment configuration. The job configuration specifies @@ -1863,7 +1863,7 @@ export interface CreateDeploymentRequest { * information, see Tag your * resources in the IoT Greengrass V2 Developer Guide.

*/ - tags?: { [key: string]: string }; + tags?: Record; /** *

A unique, case-sensitive identifier that you can provide to ensure that the request is idempotent. @@ -2083,7 +2083,7 @@ export interface DescribeComponentResponse { * information, see Tag your * resources in the IoT Greengrass V2 Developer Guide.

*/ - tags?: { [key: string]: string }; + tags?: Record; } export namespace DescribeComponentResponse { @@ -2240,7 +2240,7 @@ export interface GetComponentResponse { * information, see Tag your * resources in the IoT Greengrass V2 Developer Guide.

*/ - tags?: { [key: string]: string }; + tags?: Record; } export namespace GetComponentResponse { @@ -2398,7 +2398,7 @@ export interface GetCoreDeviceResponse { * information, see Tag your * resources in the IoT Greengrass V2 Developer Guide.

*/ - tags?: { [key: string]: string }; + tags?: Record; } export namespace GetCoreDeviceResponse { @@ -2466,7 +2466,7 @@ export interface GetDeploymentResponse { *

The components to deploy. This is a dictionary, where each key is the name of a component, * and each key's value is the version and configuration to deploy for that component.

*/ - components?: { [key: string]: ComponentDeploymentSpecification }; + components?: Record; /** *

The deployment policies for the deployment. These policies define how the deployment @@ -2495,7 +2495,7 @@ export interface GetDeploymentResponse { * information, see Tag your * resources in the IoT Greengrass V2 Developer Guide.

*/ - tags?: { [key: string]: string }; + tags?: Record; } export namespace GetDeploymentResponse { @@ -2982,7 +2982,7 @@ export interface ListTagsForResourceResponse { * information, see Tag your * resources in the IoT Greengrass V2 Developer Guide.

*/ - tags?: { [key: string]: string }; + tags?: Record; } export namespace ListTagsForResourceResponse { @@ -3106,7 +3106,7 @@ export interface TagResourceRequest { * information, see Tag your * resources in the IoT Greengrass V2 Developer Guide.

*/ - tags: { [key: string]: string } | undefined; + tags: Record | undefined; } export namespace TagResourceRequest { diff --git a/clients/client-greengrassv2/src/protocols/Aws_restJson1.ts b/clients/client-greengrassv2/src/protocols/Aws_restJson1.ts index 006a61e453b0..7cd2af5d3688 100644 --- a/clients/client-greengrassv2/src/protocols/Aws_restJson1.ts +++ b/clients/client-greengrassv2/src/protocols/Aws_restJson1.ts @@ -3053,7 +3053,7 @@ const serializeAws_restJson1ComponentConfigurationUpdate = ( }; const serializeAws_restJson1ComponentDependencyMap = ( - input: { [key: string]: ComponentDependencyRequirement }, + input: Record, context: __SerdeContext ): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { @@ -3096,7 +3096,7 @@ const serializeAws_restJson1ComponentDeploymentSpecification = ( }; const serializeAws_restJson1ComponentDeploymentSpecifications = ( - input: { [key: string]: ComponentDeploymentSpecification }, + input: Record, context: __SerdeContext ): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { @@ -3143,7 +3143,7 @@ const serializeAws_restJson1ComponentRunWith = (input: ComponentRunWith, context }; const serializeAws_restJson1ComponentVersionRequirementMap = ( - input: { [key: string]: string }, + input: Record, context: __SerdeContext ): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { @@ -3377,7 +3377,7 @@ const serializeAws_restJson1LambdaDeviceMount = (input: LambdaDeviceMount, conte }; const serializeAws_restJson1LambdaEnvironmentVariables = ( - input: { [key: string]: string }, + input: Record, context: __SerdeContext ): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { @@ -3515,10 +3515,7 @@ const serializeAws_restJson1LambdaVolumeMount = (input: LambdaVolumeMount, conte }; }; -const serializeAws_restJson1PlatformAttributesMap = ( - input: { [key: string]: string }, - context: __SerdeContext -): any => { +const serializeAws_restJson1PlatformAttributesMap = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -3537,7 +3534,7 @@ const serializeAws_restJson1SystemResourceLimits = (input: SystemResourceLimits, }; }; -const serializeAws_restJson1TagMap = (input: { [key: string]: string }, context: __SerdeContext): any => { +const serializeAws_restJson1TagMap = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -3672,9 +3669,9 @@ const deserializeAws_restJson1ComponentDeploymentSpecification = ( const deserializeAws_restJson1ComponentDeploymentSpecifications = ( output: any, context: __SerdeContext -): { [key: string]: ComponentDeploymentSpecification } => { +): Record => { return Object.entries(output).reduce( - (acc: { [key: string]: ComponentDeploymentSpecification }, [key, value]: [string, any]) => { + (acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -4065,8 +4062,8 @@ const deserializeAws_restJson1IoTJobTimeoutConfig = (output: any, context: __Ser const deserializeAws_restJson1PlatformAttributesMap = ( output: any, context: __SerdeContext -): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -4106,8 +4103,8 @@ const deserializeAws_restJson1ResolvedComponentVersionsList = ( return retVal; }; -const deserializeAws_restJson1StringMap = (output: any, context: __SerdeContext): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +const deserializeAws_restJson1StringMap = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -4125,8 +4122,8 @@ const deserializeAws_restJson1SystemResourceLimits = (output: any, context: __Se } as any; }; -const deserializeAws_restJson1TagMap = (output: any, context: __SerdeContext): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +const deserializeAws_restJson1TagMap = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } diff --git a/clients/client-groundstation/src/models/models_0.ts b/clients/client-groundstation/src/models/models_0.ts index 96f315a69ae3..f0c7a699a86d 100644 --- a/clients/client-groundstation/src/models/models_0.ts +++ b/clients/client-groundstation/src/models/models_0.ts @@ -755,7 +755,7 @@ export interface CreateConfigRequest { /** *

Tags assigned to a Config.

*/ - tags?: { [key: string]: string }; + tags?: Record; } export namespace CreateConfigRequest { @@ -874,7 +874,7 @@ export interface GetConfigResponse { /** *

Tags assigned to a Config.

*/ - tags?: { [key: string]: string }; + tags?: Record; } export namespace GetConfigResponse { @@ -1445,7 +1445,7 @@ export interface DescribeContactResponse { /** *

Tags assigned to a contact.

*/ - tags?: { [key: string]: string }; + tags?: Record; /** *

Region of a contact.

@@ -1589,7 +1589,7 @@ export interface ContactData { /** *

Tags assigned to a contact.

*/ - tags?: { [key: string]: string }; + tags?: Record; } export namespace ContactData { @@ -1657,7 +1657,7 @@ export interface ReserveContactRequest { /** *

Tags assigned to a contact.

*/ - tags?: { [key: string]: string }; + tags?: Record; } export namespace ReserveContactRequest { @@ -1681,7 +1681,7 @@ export interface CreateDataflowEndpointGroupRequest { /** *

Tags of a dataflow endpoint group.

*/ - tags?: { [key: string]: string }; + tags?: Record; } export namespace CreateDataflowEndpointGroupRequest { @@ -1751,7 +1751,7 @@ export interface CreateMissionProfileRequest { /** *

Tags assigned to a mission profile.

*/ - tags?: { [key: string]: string }; + tags?: Record; } export namespace CreateMissionProfileRequest { @@ -1842,7 +1842,7 @@ export interface GetDataflowEndpointGroupResponse { /** *

Tags assigned to a dataflow endpoint group.

*/ - tags?: { [key: string]: string }; + tags?: Record; } export namespace GetDataflowEndpointGroupResponse { @@ -2081,7 +2081,7 @@ export interface GetMissionProfileResponse { /** *

Tags assigned to a mission profile.

*/ - tags?: { [key: string]: string }; + tags?: Record; } export namespace GetMissionProfileResponse { @@ -2254,7 +2254,7 @@ export interface ListTagsForResourceResponse { /** *

Tags assigned to a resource.

*/ - tags?: { [key: string]: string }; + tags?: Record; } export namespace ListTagsForResourceResponse { @@ -2493,7 +2493,7 @@ export interface TagResourceRequest { /** *

Tags assigned to a resource.

*/ - tags: { [key: string]: string } | undefined; + tags: Record | undefined; } export namespace TagResourceRequest { diff --git a/clients/client-groundstation/src/protocols/Aws_restJson1.ts b/clients/client-groundstation/src/protocols/Aws_restJson1.ts index e16d1a663bd5..32fbc350faf8 100644 --- a/clients/client-groundstation/src/protocols/Aws_restJson1.ts +++ b/clients/client-groundstation/src/protocols/Aws_restJson1.ts @@ -2645,7 +2645,7 @@ const serializeAws_restJson1SubnetList = (input: string[], context: __SerdeConte }); }; -const serializeAws_restJson1TagsMap = (input: { [key: string]: string }, context: __SerdeContext): any => { +const serializeAws_restJson1TagsMap = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -3206,8 +3206,8 @@ const deserializeAws_restJson1SubnetList = (output: any, context: __SerdeContext return retVal; }; -const deserializeAws_restJson1TagsMap = (output: any, context: __SerdeContext): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +const deserializeAws_restJson1TagsMap = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } diff --git a/clients/client-guardduty/src/models/models_0.ts b/clients/client-guardduty/src/models/models_0.ts index 4e7d9e8e5432..cfcebb3e9b67 100644 --- a/clients/client-guardduty/src/models/models_0.ts +++ b/clients/client-guardduty/src/models/models_0.ts @@ -1204,7 +1204,7 @@ export interface CreateDetectorRequest { /** *

The tags to be added to a new detector resource.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; } export namespace CreateDetectorRequest { @@ -1245,7 +1245,7 @@ export interface FindingCriteria { *

Represents a map of finding properties that match specified conditions and values when * querying findings.

*/ - Criterion?: { [key: string]: Condition }; + Criterion?: Record; } export namespace FindingCriteria { @@ -1477,7 +1477,7 @@ export interface CreateFilterRequest { /** *

The tags to be added to a new filter resource.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; } export namespace CreateFilterRequest { @@ -1551,7 +1551,7 @@ export interface CreateIPSetRequest { /** *

The tags to be added to a new IP set resource.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; } export namespace CreateIPSetRequest { @@ -1802,7 +1802,7 @@ export interface CreateThreatIntelSetRequest { /** *

The tags to be added to a new threat list resource.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; } export namespace CreateThreatIntelSetRequest { @@ -3459,7 +3459,7 @@ export interface FindingStatistics { /** *

Represents a map of severity to count statistics for a set of findings.

*/ - CountBySeverity?: { [key: string]: number }; + CountBySeverity?: Record; } export namespace FindingStatistics { @@ -3525,7 +3525,7 @@ export interface GetDetectorResponse { /** *

The tags of the detector resource.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; } export namespace GetDetectorResponse { @@ -3588,7 +3588,7 @@ export interface GetFilterResponse { /** *

The tags of the filter resource.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; } export namespace GetFilterResponse { @@ -3797,7 +3797,7 @@ export interface GetIPSetResponse { /** *

The tags of the IPSet resource.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; } export namespace GetIPSetResponse { @@ -4091,7 +4091,7 @@ export interface GetThreatIntelSetResponse { /** *

The tags of the threat list resource.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; } export namespace GetThreatIntelSetResponse { @@ -5017,7 +5017,7 @@ export interface ListTagsForResourceResponse { /** *

The tags associated with the resource.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; } export namespace ListTagsForResourceResponse { @@ -5168,7 +5168,7 @@ export interface TagResourceRequest { /** *

The tags to be added to a resource.

*/ - Tags: { [key: string]: string } | undefined; + Tags: Record | undefined; } export namespace TagResourceRequest { diff --git a/clients/client-guardduty/src/protocols/Aws_restJson1.ts b/clients/client-guardduty/src/protocols/Aws_restJson1.ts index 009caa3e33f5..d97089418366 100644 --- a/clients/client-guardduty/src/protocols/Aws_restJson1.ts +++ b/clients/client-guardduty/src/protocols/Aws_restJson1.ts @@ -5171,7 +5171,7 @@ const serializeAws_restJson1Condition = (input: Condition, context: __SerdeConte }; }; -const serializeAws_restJson1Criterion = (input: { [key: string]: Condition }, context: __SerdeContext): any => { +const serializeAws_restJson1Criterion = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -5394,7 +5394,7 @@ const serializeAws_restJson1SortCriteria = (input: SortCriteria, context: __Serd }; }; -const serializeAws_restJson1TagMap = (input: { [key: string]: string }, context: __SerdeContext): any => { +const serializeAws_restJson1TagMap = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -5616,8 +5616,8 @@ const deserializeAws_restJson1Containers = (output: any, context: __SerdeContext return retVal; }; -const deserializeAws_restJson1CountBySeverity = (output: any, context: __SerdeContext): { [key: string]: number } => { - return Object.entries(output).reduce((acc: { [key: string]: number }, [key, value]: [string, any]) => { +const deserializeAws_restJson1CountBySeverity = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -5635,8 +5635,8 @@ const deserializeAws_restJson1Country = (output: any, context: __SerdeContext): } as any; }; -const deserializeAws_restJson1Criterion = (output: any, context: __SerdeContext): { [key: string]: Condition } => { - return Object.entries(output).reduce((acc: { [key: string]: Condition }, [key, value]: [string, any]) => { +const deserializeAws_restJson1Criterion = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -6585,8 +6585,8 @@ const deserializeAws_restJson1Tag = (output: any, context: __SerdeContext): Tag } as any; }; -const deserializeAws_restJson1TagMap = (output: any, context: __SerdeContext): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +const deserializeAws_restJson1TagMap = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } diff --git a/clients/client-health/src/models/models_0.ts b/clients/client-health/src/models/models_0.ts index 19bbe612bc20..9fa23e706071 100644 --- a/clients/client-health/src/models/models_0.ts +++ b/clients/client-health/src/models/models_0.ts @@ -64,7 +64,7 @@ export interface AffectedEntity { *

Currently, the tags property isn't supported.

* */ - tags?: { [key: string]: string }; + tags?: Record; } export namespace AffectedEntity { @@ -245,7 +245,7 @@ export interface EntityFilter { *

Currently, the tags property isn't supported.

* */ - tags?: { [key: string]: string }[]; + tags?: Record[]; /** *

A list of entity status codes (IMPAIRED, UNIMPAIRED, or @@ -634,7 +634,7 @@ export interface EventFilter { *

Currently, the tags property isn't supported.

* */ - tags?: { [key: string]: string }[]; + tags?: Record[]; /** *

A list of event status codes.

@@ -946,7 +946,7 @@ export interface EventDetails { /** *

Additional metadata about the event.

*/ - eventMetadata?: { [key: string]: string }; + eventMetadata?: Record; } export namespace EventDetails { @@ -1100,7 +1100,7 @@ export interface OrganizationEventDetails { /** *

Additional metadata about the event.

*/ - eventMetadata?: { [key: string]: string }; + eventMetadata?: Record; } export namespace OrganizationEventDetails { diff --git a/clients/client-health/src/protocols/Aws_json1_1.ts b/clients/client-health/src/protocols/Aws_json1_1.ts index 40ed5cd88808..252e5257344d 100644 --- a/clients/client-health/src/protocols/Aws_json1_1.ts +++ b/clients/client-health/src/protocols/Aws_json1_1.ts @@ -1342,7 +1342,7 @@ const serializeAws_json1_1serviceList = (input: string[], context: __SerdeContex }); }; -const serializeAws_json1_1tagFilter = (input: { [key: string]: string }[], context: __SerdeContext): any => { +const serializeAws_json1_1tagFilter = (input: Record[], context: __SerdeContext): any => { return input .filter((e: any) => e != null) .map((entry) => { @@ -1353,7 +1353,7 @@ const serializeAws_json1_1tagFilter = (input: { [key: string]: string }[], conte }); }; -const serializeAws_json1_1tagSet = (input: { [key: string]: string }, context: __SerdeContext): any => { +const serializeAws_json1_1tagSet = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -1744,8 +1744,8 @@ const deserializeAws_json1_1EventList = (output: any, context: __SerdeContext): return retVal; }; -const deserializeAws_json1_1eventMetadata = (output: any, context: __SerdeContext): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +const deserializeAws_json1_1eventMetadata = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -1863,8 +1863,8 @@ const deserializeAws_json1_1OrganizationEventList = (output: any, context: __Ser return retVal; }; -const deserializeAws_json1_1tagSet = (output: any, context: __SerdeContext): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +const deserializeAws_json1_1tagSet = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } diff --git a/clients/client-honeycode/src/models/models_0.ts b/clients/client-honeycode/src/models/models_0.ts index dc16ff5bbb23..613a06916afe 100644 --- a/clients/client-honeycode/src/models/models_0.ts +++ b/clients/client-honeycode/src/models/models_0.ts @@ -125,7 +125,7 @@ export interface CreateRowData { * cell and the value is the CellInput object that represents the data to set in that cell. *

*/ - cellsToCreate: { [key: string]: CellInput } | undefined; + cellsToCreate: Record | undefined; } export namespace CreateRowData { @@ -244,7 +244,7 @@ export interface BatchCreateTableRowsResult { /** *

The map of batch item id to the row id that was created for that item.

*/ - createdRows: { [key: string]: string } | undefined; + createdRows: Record | undefined; /** *

@@ -499,7 +499,7 @@ export interface UpdateRowData { * cell and the value is the CellInput object that represents the data to set in that cell. *

*/ - cellsToUpdate: { [key: string]: CellInput } | undefined; + cellsToUpdate: Record | undefined; } export namespace UpdateRowData { @@ -677,7 +677,7 @@ export interface UpsertRowData { * of the cell and the value is the CellInput object that represents the data to set in that cell. *

*/ - cellsToUpdate: { [key: string]: CellInput } | undefined; + cellsToUpdate: Record | undefined; } export namespace UpsertRowData { @@ -802,7 +802,7 @@ export interface BatchUpsertTableRowsResult { * with the list of row ids that were affected. *

*/ - rows: { [key: string]: UpsertRowsResult } | undefined; + rows: Record | undefined; /** *

The updated workbook cursor after updating or appending rows in the table.

@@ -1173,7 +1173,7 @@ export interface DestinationOptions { /** *

A map of the column id to the import properties for each column.

*/ - columnMap?: { [key: string]: SourceDataColumnProperties }; + columnMap?: Record; } export namespace DestinationOptions { @@ -1360,7 +1360,7 @@ export interface GetScreenDataRequest { * to the screen. *

*/ - variables?: { [key: string]: VariableValue }; + variables?: Record; /** *

@@ -1467,7 +1467,7 @@ export interface GetScreenDataResult { /** *

A map of all the rows on the screen keyed by block name.

*/ - results: { [key: string]: ResultSet } | undefined; + results: Record | undefined; /** *

@@ -1536,7 +1536,7 @@ export interface InvokeScreenAutomationRequest { * to the screen. Any variables defined in a screen are required to be passed in the call. *

*/ - variables?: { [key: string]: VariableValue }; + variables?: Record; /** *

@@ -1935,7 +1935,7 @@ export interface ListTagsForResourceResult { /** *

The resource's tags.

*/ - tags?: { [key: string]: string }; + tags?: Record; } export namespace ListTagsForResourceResult { @@ -2140,7 +2140,7 @@ export interface TagResourceRequest { /** *

A list of tags to apply to the resource.

*/ - tags: { [key: string]: string } | undefined; + tags: Record | undefined; } export namespace TagResourceRequest { diff --git a/clients/client-honeycode/src/protocols/Aws_restJson1.ts b/clients/client-honeycode/src/protocols/Aws_restJson1.ts index 2a79b76564c5..61b249e01f8a 100644 --- a/clients/client-honeycode/src/protocols/Aws_restJson1.ts +++ b/clients/client-honeycode/src/protocols/Aws_restJson1.ts @@ -2011,7 +2011,7 @@ const serializeAws_restJson1Filter = (input: Filter, context: __SerdeContext): a }; const serializeAws_restJson1ImportColumnMap = ( - input: { [key: string]: SourceDataColumnProperties }, + input: Record, context: __SerdeContext ): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { @@ -2053,7 +2053,7 @@ const serializeAws_restJson1ImportOptions = (input: ImportOptions, context: __Se }; }; -const serializeAws_restJson1RowDataInput = (input: { [key: string]: CellInput }, context: __SerdeContext): any => { +const serializeAws_restJson1RowDataInput = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -2085,7 +2085,7 @@ const serializeAws_restJson1SourceDataColumnProperties = ( }; }; -const serializeAws_restJson1TagsMap = (input: { [key: string]: string }, context: __SerdeContext): any => { +const serializeAws_restJson1TagsMap = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -2147,10 +2147,7 @@ const serializeAws_restJson1VariableValue = (input: VariableValue, context: __Se }; }; -const serializeAws_restJson1VariableValueMap = ( - input: { [key: string]: VariableValue }, - context: __SerdeContext -): any => { +const serializeAws_restJson1VariableValueMap = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -2194,8 +2191,8 @@ const deserializeAws_restJson1ColumnMetadata = (output: any, context: __SerdeCon } as any; }; -const deserializeAws_restJson1CreatedRowsMap = (output: any, context: __SerdeContext): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +const deserializeAws_restJson1CreatedRowsMap = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -2281,9 +2278,9 @@ const deserializeAws_restJson1FormattedValuesList = (output: any, context: __Ser const deserializeAws_restJson1ImportColumnMap = ( output: any, context: __SerdeContext -): { [key: string]: SourceDataColumnProperties } => { +): Record => { return Object.entries(output).reduce( - (acc: { [key: string]: SourceDataColumnProperties }, [key, value]: [string, any]) => { + (acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -2393,8 +2390,8 @@ const deserializeAws_restJson1ResultSet = (output: any, context: __SerdeContext) } as any; }; -const deserializeAws_restJson1ResultSetMap = (output: any, context: __SerdeContext): { [key: string]: ResultSet } => { - return Object.entries(output).reduce((acc: { [key: string]: ResultSet }, [key, value]: [string, any]) => { +const deserializeAws_restJson1ResultSetMap = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -2511,8 +2508,8 @@ const deserializeAws_restJson1Tables = (output: any, context: __SerdeContext): T return retVal; }; -const deserializeAws_restJson1TagsMap = (output: any, context: __SerdeContext): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +const deserializeAws_restJson1TagsMap = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -2536,8 +2533,8 @@ const deserializeAws_restJson1UpsertRowsResult = (output: any, context: __SerdeC const deserializeAws_restJson1UpsertRowsResultMap = ( output: any, context: __SerdeContext -): { [key: string]: UpsertRowsResult } => { - return Object.entries(output).reduce((acc: { [key: string]: UpsertRowsResult }, [key, value]: [string, any]) => { +): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } diff --git a/clients/client-iam/src/models/models_0.ts b/clients/client-iam/src/models/models_0.ts index 2df5a45bd3a0..84235c987bd0 100644 --- a/clients/client-iam/src/models/models_0.ts +++ b/clients/client-iam/src/models/models_0.ts @@ -3771,7 +3771,7 @@ export interface GetAccountSummaryResponse { *

A set of key–value pairs containing information about IAM entity usage and * IAM quotas.

*/ - SummaryMap?: { [key: string]: number }; + SummaryMap?: Record; } export namespace GetAccountSummaryResponse { @@ -9313,7 +9313,7 @@ export interface ResourceSpecificResult { * This parameter is returned only for cross-account simulations. This parameter explains how * each policy type contributes to the resource-specific evaluation decision.

*/ - EvalDecisionDetails?: { [key: string]: PolicyEvaluationDecisionType | string }; + EvalDecisionDetails?: Record; /** *

Contains information about the effect that a permissions boundary has on a policy @@ -9401,7 +9401,7 @@ export interface EvaluationResult { * this case, policy evaluation does not proceed any further and this parameter is not * returned.

*/ - EvalDecisionDetails?: { [key: string]: PolicyEvaluationDecisionType | string }; + EvalDecisionDetails?: Record; /** *

The individual results of the simulation of the API operation specified in diff --git a/clients/client-iam/src/protocols/Aws_query.ts b/clients/client-iam/src/protocols/Aws_query.ts index 02193310d561..8a7c729a9cdf 100644 --- a/clients/client-iam/src/protocols/Aws_query.ts +++ b/clients/client-iam/src/protocols/Aws_query.ts @@ -14379,7 +14379,7 @@ const deserializeAws_queryErrorDetails = (output: any, context: __SerdeContext): const deserializeAws_queryEvalDecisionDetailsType = ( output: any, context: __SerdeContext -): { [key: string]: PolicyEvaluationDecisionType | string } => { +): Record => { return output.reduce((acc: any, pair: any) => { if (pair["value"] === null) { return acc; @@ -17469,7 +17469,7 @@ const deserializeAws_queryStatementListType = (output: any, context: __SerdeCont }); }; -const deserializeAws_querysummaryMapType = (output: any, context: __SerdeContext): { [key: string]: number } => { +const deserializeAws_querysummaryMapType = (output: any, context: __SerdeContext): Record => { return output.reduce((acc: any, pair: any) => { if (pair["value"] === null) { return acc; diff --git a/clients/client-imagebuilder/src/models/models_0.ts b/clients/client-imagebuilder/src/models/models_0.ts index a06d643fbaea..e7737ceac545 100644 --- a/clients/client-imagebuilder/src/models/models_0.ts +++ b/clients/client-imagebuilder/src/models/models_0.ts @@ -211,7 +211,7 @@ export interface AmiDistributionConfiguration { /** *

The tags to apply to AMIs distributed to this Region.

*/ - amiTags?: { [key: string]: string }; + amiTags?: Record; /** *

The KMS key identifier used to encrypt the distributed image.

@@ -604,7 +604,7 @@ export interface Component { /** *

The tags associated with the component.

*/ - tags?: { [key: string]: string }; + tags?: Record; } export namespace Component { @@ -733,7 +733,7 @@ export interface ComponentSummary { /** *

The tags associated with the component.

*/ - tags?: { [key: string]: string }; + tags?: Record; } export namespace ComponentSummary { @@ -1161,7 +1161,7 @@ export interface ContainerRecipe { /** *

Tags that are attached to the container recipe.

*/ - tags?: { [key: string]: string }; + tags?: Record; /** *

The working directory for use during build and test workflows.

@@ -1225,7 +1225,7 @@ export interface ContainerRecipeSummary { /** *

Tags that are attached to the container recipe.

*/ - tags?: { [key: string]: string }; + tags?: Record; } export namespace ContainerRecipeSummary { @@ -1308,7 +1308,7 @@ export interface CreateComponentRequest { /** *

The tags of the component.

*/ - tags?: { [key: string]: string }; + tags?: Record; /** *

The idempotency token of the component.

@@ -1480,7 +1480,7 @@ export interface CreateContainerRecipeRequest { /** *

Tags that are attached to the container recipe.

*/ - tags?: { [key: string]: string }; + tags?: Record; /** *

The working directory for use during build and test workflows.

@@ -1818,7 +1818,7 @@ export interface CreateDistributionConfigurationRequest { /** *

The tags of the distribution configuration.

*/ - tags?: { [key: string]: string }; + tags?: Record; /** *

The idempotency token of the distribution configuration.

@@ -1928,7 +1928,7 @@ export interface CreateImageRequest { /** *

The tags of the image.

*/ - tags?: { [key: string]: string }; + tags?: Record; /** *

The idempotency token used to make this request idempotent.

@@ -2082,7 +2082,7 @@ export interface CreateImagePipelineRequest { /** *

The tags of the image pipeline.

*/ - tags?: { [key: string]: string }; + tags?: Record; /** *

The idempotency token used to make this request idempotent.

@@ -2176,7 +2176,7 @@ export interface CreateImageRecipeRequest { /** *

The tags of the image recipe.

*/ - tags?: { [key: string]: string }; + tags?: Record; /** *

The working directory used during build and test workflows.

@@ -2387,7 +2387,7 @@ export interface CreateInfrastructureConfigurationRequest { /** *

The tags attached to the resource created by Image Builder.

*/ - resourceTags?: { [key: string]: string }; + resourceTags?: Record; /** *

The instance metadata options that you can set for the HTTP requests that @@ -2398,7 +2398,7 @@ export interface CreateInfrastructureConfigurationRequest { /** *

The tags of the infrastructure configuration.

*/ - tags?: { [key: string]: string }; + tags?: Record; /** *

The idempotency token used to make this request idempotent.

@@ -2764,7 +2764,7 @@ export interface DistributionConfiguration { /** *

The tags of the distribution configuration.

*/ - tags?: { [key: string]: string }; + tags?: Record; } export namespace DistributionConfiguration { @@ -2808,7 +2808,7 @@ export interface DistributionConfigurationSummary { /** *

The tags associated with the distribution configuration.

*/ - tags?: { [key: string]: string }; + tags?: Record; /** *

A list of Regions where the container image is distributed to.

@@ -3141,7 +3141,7 @@ export interface ImageRecipe { /** *

The tags of the image recipe.

*/ - tags?: { [key: string]: string }; + tags?: Record; /** *

The working directory to be used during build and test workflows.

@@ -3244,7 +3244,7 @@ export interface InfrastructureConfiguration { /** *

The tags attached to the resource created by Image Builder.

*/ - resourceTags?: { [key: string]: string }; + resourceTags?: Record; /** *

The instance metadata option settings for the infrastructure configuration.

@@ -3254,7 +3254,7 @@ export interface InfrastructureConfiguration { /** *

The tags of the infrastructure configuration.

*/ - tags?: { [key: string]: string }; + tags?: Record; } export namespace InfrastructureConfiguration { @@ -3420,7 +3420,7 @@ export interface Image { /** *

The tags of the image.

*/ - tags?: { [key: string]: string }; + tags?: Record; /** *

Indicates the type of build that created this image. The build can be initiated @@ -3584,7 +3584,7 @@ export interface ImagePipeline { /** *

The tags of this image pipeline.

*/ - tags?: { [key: string]: string }; + tags?: Record; } export namespace ImagePipeline { @@ -3841,7 +3841,7 @@ export interface ImportComponentRequest { /** *

The tags of the component.

*/ - tags?: { [key: string]: string }; + tags?: Record; /** *

The idempotency token of the component.

@@ -3933,7 +3933,7 @@ export interface ImportVmImageRequest { /** *

Tags that are attached to the import resources.

*/ - tags?: { [key: string]: string }; + tags?: Record; /** *

Unique, case-sensitive identifier you provide to ensure @@ -4415,7 +4415,7 @@ export interface ImageSummary { /** *

The tags of the image.

*/ - tags?: { [key: string]: string }; + tags?: Record; /** *

Indicates the type of build that created this image. The build can be initiated @@ -4802,7 +4802,7 @@ export interface ImageRecipeSummary { /** *

The tags of the image recipe.

*/ - tags?: { [key: string]: string }; + tags?: Record; } export namespace ImageRecipeSummary { @@ -5121,12 +5121,12 @@ export interface InfrastructureConfigurationSummary { /** *

The tags attached to the image created by Image Builder.

*/ - resourceTags?: { [key: string]: string }; + resourceTags?: Record; /** *

The tags of the infrastructure configuration.

*/ - tags?: { [key: string]: string }; + tags?: Record; /** *

The instance types of the infrastructure configuration.

@@ -5216,7 +5216,7 @@ export interface ListTagsForResourceResponse { /** *

The tags for the specified resource.

*/ - tags?: { [key: string]: string }; + tags?: Record; } export namespace ListTagsForResourceResponse { @@ -5471,7 +5471,7 @@ export interface TagResourceRequest { /** *

The tags to apply to the resource.

*/ - tags: { [key: string]: string } | undefined; + tags: Record | undefined; } export namespace TagResourceRequest { @@ -5751,7 +5751,7 @@ export interface UpdateInfrastructureConfigurationRequest { /** *

The tags attached to the resource created by Image Builder.

*/ - resourceTags?: { [key: string]: string }; + resourceTags?: Record; /** *

The instance metadata options that you can set for the HTTP requests that pipeline builds diff --git a/clients/client-imagebuilder/src/protocols/Aws_restJson1.ts b/clients/client-imagebuilder/src/protocols/Aws_restJson1.ts index 052d2db43862..624c0bf07c98 100644 --- a/clients/client-imagebuilder/src/protocols/Aws_restJson1.ts +++ b/clients/client-imagebuilder/src/protocols/Aws_restJson1.ts @@ -5891,7 +5891,7 @@ const serializeAws_restJson1OsVersionList = (input: string[], context: __SerdeCo }); }; -const serializeAws_restJson1ResourceTagMap = (input: { [key: string]: string }, context: __SerdeContext): any => { +const serializeAws_restJson1ResourceTagMap = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -5961,7 +5961,7 @@ const serializeAws_restJson1SystemsManagerAgent = (input: SystemsManagerAgent, c }; }; -const serializeAws_restJson1TagMap = (input: { [key: string]: string }, context: __SerdeContext): any => { +const serializeAws_restJson1TagMap = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -7060,8 +7060,8 @@ const deserializeAws_restJson1RegionList = (output: any, context: __SerdeContext return retVal; }; -const deserializeAws_restJson1ResourceTagMap = (output: any, context: __SerdeContext): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +const deserializeAws_restJson1ResourceTagMap = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -7126,8 +7126,8 @@ const deserializeAws_restJson1SystemsManagerAgent = (output: any, context: __Ser } as any; }; -const deserializeAws_restJson1TagMap = (output: any, context: __SerdeContext): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +const deserializeAws_restJson1TagMap = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } diff --git a/clients/client-inspector/src/models/models_0.ts b/clients/client-inspector/src/models/models_0.ts index cc5c67354208..a752fce2875f 100644 --- a/clients/client-inspector/src/models/models_0.ts +++ b/clients/client-inspector/src/models/models_0.ts @@ -130,7 +130,7 @@ export interface AddAttributesToFindingsResponse { *

Attribute details that cannot be described. An error code is provided for each failed * item.

*/ - failedItems: { [key: string]: FailedItemDetails } | undefined; + failedItems: Record | undefined; } export namespace AddAttributesToFindingsResponse { @@ -681,7 +681,7 @@ export interface AssessmentRun { /** *

Provides a total count of generated findings per severity.

*/ - findingCounts: { [key: string]: number } | undefined; + findingCounts: Record | undefined; } export namespace AssessmentRun { @@ -1667,7 +1667,7 @@ export interface DescribeAssessmentRunsResponse { *

Assessment run details that cannot be described. An error code is provided for each * failed item.

*/ - failedItems: { [key: string]: FailedItemDetails } | undefined; + failedItems: Record | undefined; } export namespace DescribeAssessmentRunsResponse { @@ -1705,7 +1705,7 @@ export interface DescribeAssessmentTargetsResponse { *

Assessment target details that cannot be described. An error code is provided for * each failed item.

*/ - failedItems: { [key: string]: FailedItemDetails } | undefined; + failedItems: Record | undefined; } export namespace DescribeAssessmentTargetsResponse { @@ -1740,7 +1740,7 @@ export interface DescribeAssessmentTemplatesResponse { *

Assessment template details that cannot be described. An error code is provided for * each failed item.

*/ - failedItems: { [key: string]: FailedItemDetails } | undefined; + failedItems: Record | undefined; } export namespace DescribeAssessmentTemplatesResponse { @@ -1884,13 +1884,13 @@ export interface DescribeExclusionsResponse { /** *

Information about the exclusions.

*/ - exclusions: { [key: string]: Exclusion } | undefined; + exclusions: Record | undefined; /** *

Exclusion details that cannot be described. An error code is provided for each failed * item.

*/ - failedItems: { [key: string]: FailedItemDetails } | undefined; + failedItems: Record | undefined; } export namespace DescribeExclusionsResponse { @@ -2069,7 +2069,7 @@ export interface DescribeFindingsResponse { *

Finding details that cannot be described. An error code is provided for each failed * item.

*/ - failedItems: { [key: string]: FailedItemDetails } | undefined; + failedItems: Record | undefined; } export namespace DescribeFindingsResponse { @@ -2140,7 +2140,7 @@ export interface DescribeResourceGroupsResponse { *

Resource group details that cannot be described. An error code is provided for each * failed item.

*/ - failedItems: { [key: string]: FailedItemDetails } | undefined; + failedItems: Record | undefined; } export namespace DescribeResourceGroupsResponse { @@ -2223,7 +2223,7 @@ export interface DescribeRulesPackagesResponse { *

Rules package details that cannot be described. An error code is provided for each * failed item.

*/ - failedItems: { [key: string]: FailedItemDetails } | undefined; + failedItems: Record | undefined; } export namespace DescribeRulesPackagesResponse { @@ -3203,7 +3203,7 @@ export interface RemoveAttributesFromFindingsResponse { *

Attributes details that cannot be described. An error code is provided for each * failed item.

*/ - failedItems: { [key: string]: FailedItemDetails } | undefined; + failedItems: Record | undefined; } export namespace RemoveAttributesFromFindingsResponse { diff --git a/clients/client-inspector/src/protocols/Aws_json1_1.ts b/clients/client-inspector/src/protocols/Aws_json1_1.ts index 4878ed191f4a..501f842d5f77 100644 --- a/clients/client-inspector/src/protocols/Aws_json1_1.ts +++ b/clients/client-inspector/src/protocols/Aws_json1_1.ts @@ -3742,8 +3742,8 @@ const deserializeAws_json1_1AssessmentRunAgentList = (output: any, context: __Se const deserializeAws_json1_1AssessmentRunFindingCounts = ( output: any, context: __SerdeContext -): { [key: string]: number } => { - return Object.entries(output).reduce((acc: { [key: string]: number }, [key, value]: [Severity | string, any]) => { +): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [Severity | string, any]) => { if (value === null) { return acc; } @@ -4171,8 +4171,8 @@ const deserializeAws_json1_1Exclusion = (output: any, context: __SerdeContext): } as any; }; -const deserializeAws_json1_1ExclusionMap = (output: any, context: __SerdeContext): { [key: string]: Exclusion } => { - return Object.entries(output).reduce((acc: { [key: string]: Exclusion }, [key, value]: [string, any]) => { +const deserializeAws_json1_1ExclusionMap = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -4218,11 +4218,8 @@ const deserializeAws_json1_1FailedItemDetails = (output: any, context: __SerdeCo } as any; }; -const deserializeAws_json1_1FailedItems = ( - output: any, - context: __SerdeContext -): { [key: string]: FailedItemDetails } => { - return Object.entries(output).reduce((acc: { [key: string]: FailedItemDetails }, [key, value]: [string, any]) => { +const deserializeAws_json1_1FailedItems = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } diff --git a/clients/client-inspector2/src/models/models_0.ts b/clients/client-inspector2/src/models/models_0.ts index bdb9533854d6..325b8cb20532 100644 --- a/clients/client-inspector2/src/models/models_0.ts +++ b/clients/client-inspector2/src/models/models_0.ts @@ -1043,7 +1043,7 @@ export interface Ec2InstanceAggregationResponse { /** *

The tags attached to the instance.

*/ - instanceTags?: { [key: string]: string }; + instanceTags?: Record; /** *

The Amazon Web Services account the Amazon EC2 instance belongs to.

@@ -2251,7 +2251,7 @@ export interface Ec2Metadata { /** *

The tags attached to the instance.

*/ - tags?: { [key: string]: string }; + tags?: Record; /** *

The ID of the Amazon Machine Image (AMI) used to launch the instance.

@@ -2761,7 +2761,7 @@ export interface CreateFilterRequest { /** *

A list of tags for the filter.

*/ - tags?: { [key: string]: string }; + tags?: Record; } export namespace CreateFilterRequest { @@ -3387,7 +3387,7 @@ export interface Filter { /** *

The tags attached to the filter.

*/ - tags?: { [key: string]: string }; + tags?: Record; } export namespace Filter { @@ -3757,7 +3757,7 @@ export interface Resource { /** *

The tags attached to the resource.

*/ - tags?: { [key: string]: string }; + tags?: Record; /** *

An object that contains details about the resource involved in a finding.

@@ -4596,7 +4596,7 @@ export interface ListTagsForResourceResponse { /** *

The tags associated with the resource.

*/ - tags?: { [key: string]: string }; + tags?: Record; } export namespace ListTagsForResourceResponse { @@ -4731,7 +4731,7 @@ export interface TagResourceRequest { /** *

The tags to be added to a resource.

*/ - tags: { [key: string]: string } | undefined; + tags: Record | undefined; } export namespace TagResourceRequest { diff --git a/clients/client-inspector2/src/protocols/Aws_restJson1.ts b/clients/client-inspector2/src/protocols/Aws_restJson1.ts index 4c8902949c30..f3718d484ea3 100644 --- a/clients/client-inspector2/src/protocols/Aws_restJson1.ts +++ b/clients/client-inspector2/src/protocols/Aws_restJson1.ts @@ -3412,7 +3412,7 @@ const serializeAws_restJson1StringFilterList = (input: StringFilter[], context: }); }; -const serializeAws_restJson1TagMap = (input: { [key: string]: string }, context: __SerdeContext): any => { +const serializeAws_restJson1TagMap = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -4722,8 +4722,8 @@ const deserializeAws_restJson1TagList = (output: any, context: __SerdeContext): return retVal; }; -const deserializeAws_restJson1TagMap = (output: any, context: __SerdeContext): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +const deserializeAws_restJson1TagMap = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } diff --git a/clients/client-iot-1click-devices-service/src/models/models_0.ts b/clients/client-iot-1click-devices-service/src/models/models_0.ts index 7ae0130970ac..a96a07fec374 100644 --- a/clients/client-iot-1click-devices-service/src/models/models_0.ts +++ b/clients/client-iot-1click-devices-service/src/models/models_0.ts @@ -13,7 +13,7 @@ export interface DeviceDescription { *

An array of zero or more elements of DeviceAttribute objects providing * user specified device attributes.

*/ - Attributes?: { [key: string]: string }; + Attributes?: Record; /** *

The unique identifier of the device.

@@ -39,7 +39,7 @@ export interface DeviceDescription { /** *

The tags currently associated with the AWS IoT 1-Click device.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; } export namespace DeviceDescription { @@ -321,7 +321,7 @@ export interface FinalizeDeviceClaimRequest { * *

*/ - Tags?: { [key: string]: string }; + Tags?: Record; } export namespace FinalizeDeviceClaimRequest { @@ -672,7 +672,7 @@ export interface ListTagsForResourceResponse { * *

*/ - Tags?: { [key: string]: string }; + Tags?: Record; } export namespace ListTagsForResourceResponse { @@ -697,7 +697,7 @@ export interface TagResourceRequest { * *

*/ - Tags: { [key: string]: string } | undefined; + Tags: Record | undefined; } export namespace TagResourceRequest { diff --git a/clients/client-iot-1click-devices-service/src/protocols/Aws_restJson1.ts b/clients/client-iot-1click-devices-service/src/protocols/Aws_restJson1.ts index 2e48a766b491..565d6d9f7ab0 100644 --- a/clients/client-iot-1click-devices-service/src/protocols/Aws_restJson1.ts +++ b/clients/client-iot-1click-devices-service/src/protocols/Aws_restJson1.ts @@ -1266,7 +1266,7 @@ const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async ( return __decorateServiceException(exception, parsedOutput.body); }; -const serializeAws_restJson1__mapOf__string = (input: { [key: string]: string }, context: __SerdeContext): any => { +const serializeAws_restJson1__mapOf__string = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -1324,8 +1324,8 @@ const deserializeAws_restJson1__listOfDeviceMethod = (output: any, context: __Se return retVal; }; -const deserializeAws_restJson1__mapOf__string = (output: any, context: __SerdeContext): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +const deserializeAws_restJson1__mapOf__string = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -1351,8 +1351,8 @@ const deserializeAws_restJson1Device = (output: any, context: __SerdeContext): D } as any; }; -const deserializeAws_restJson1DeviceAttributes = (output: any, context: __SerdeContext): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +const deserializeAws_restJson1DeviceAttributes = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } diff --git a/clients/client-iot-1click-projects/src/models/models_0.ts b/clients/client-iot-1click-projects/src/models/models_0.ts index bd5210f4d6b2..12e2ec10de96 100644 --- a/clients/client-iot-1click-projects/src/models/models_0.ts +++ b/clients/client-iot-1click-projects/src/models/models_0.ts @@ -146,7 +146,7 @@ export interface CreatePlacementRequest { *

Optional user-defined key/value pairs providing contextual data (such as location or * function) for the placement.

*/ - attributes?: { [key: string]: string }; + attributes?: Record; } export namespace CreatePlacementRequest { @@ -182,7 +182,7 @@ export interface DeviceTemplate { *

An optional Lambda function to invoke instead of the default Lambda function provided by * the placement template.

*/ - callbackOverrides?: { [key: string]: string }; + callbackOverrides?: Record; } export namespace DeviceTemplate { @@ -202,13 +202,13 @@ export interface PlacementTemplate { *

The default attributes (key/value pairs) to be applied to all placements using this * template.

*/ - defaultAttributes?: { [key: string]: string }; + defaultAttributes?: Record; /** *

An object specifying the DeviceTemplate for all placements using this * (PlacementTemplate) template.

*/ - deviceTemplates?: { [key: string]: DeviceTemplate }; + deviceTemplates?: Record; } export namespace PlacementTemplate { @@ -244,7 +244,7 @@ export interface CreateProjectRequest { * { {"key1": "value1", "key2": "value2"} }. For more information, see AWS Tagging * Strategies.

*/ - tags?: { [key: string]: string }; + tags?: Record; } export namespace CreateProjectRequest { @@ -385,7 +385,7 @@ export interface PlacementDescription { /** *

The user-defined attributes associated with the placement.

*/ - attributes: { [key: string]: string } | undefined; + attributes: Record | undefined; /** *

The date when the placement was initially created, in UNIX epoch time format.

@@ -480,7 +480,7 @@ export interface ProjectDescription { /** *

The tags (metadata key/value pairs) associated with the project.

*/ - tags?: { [key: string]: string }; + tags?: Record; } export namespace ProjectDescription { @@ -570,7 +570,7 @@ export interface GetDevicesInPlacementResponse { /** *

An object containing the devices (zero or more) within the placement.

*/ - devices: { [key: string]: string } | undefined; + devices: Record | undefined; } export namespace GetDevicesInPlacementResponse { @@ -718,7 +718,7 @@ export interface ProjectSummary { /** *

The tags (metadata key/value pairs) associated with the project.

*/ - tags?: { [key: string]: string }; + tags?: Record; } export namespace ProjectSummary { @@ -772,7 +772,7 @@ export interface ListTagsForResourceResponse { /** *

The tags (metadata key/value pairs) which you have assigned to the resource.

*/ - tags?: { [key: string]: string }; + tags?: Record; } export namespace ListTagsForResourceResponse { @@ -794,7 +794,7 @@ export interface TagResourceRequest { *

The new or modifying tag(s) for the resource. See AWS IoT 1-Click Service Limits for the maximum number of tags allowed per * resource.

*/ - tags: { [key: string]: string } | undefined; + tags: Record | undefined; } export namespace TagResourceRequest { @@ -864,7 +864,7 @@ export interface UpdatePlacementRequest { *

The user-defined object of attributes used to update the placement. The maximum number of * key/value pairs is 50.

*/ - attributes?: { [key: string]: string }; + attributes?: Record; } export namespace UpdatePlacementRequest { diff --git a/clients/client-iot-1click-projects/src/protocols/Aws_restJson1.ts b/clients/client-iot-1click-projects/src/protocols/Aws_restJson1.ts index 7e7807a8edd0..ca27d4fc3a5d 100644 --- a/clients/client-iot-1click-projects/src/protocols/Aws_restJson1.ts +++ b/clients/client-iot-1click-projects/src/protocols/Aws_restJson1.ts @@ -1517,7 +1517,7 @@ const deserializeAws_restJson1TooManyRequestsExceptionResponse = async ( }; const serializeAws_restJson1DefaultPlacementAttributeMap = ( - input: { [key: string]: string }, + input: Record, context: __SerdeContext ): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { @@ -1532,7 +1532,7 @@ const serializeAws_restJson1DefaultPlacementAttributeMap = ( }; const serializeAws_restJson1DeviceCallbackOverrideMap = ( - input: { [key: string]: string }, + input: Record, context: __SerdeContext ): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { @@ -1557,7 +1557,7 @@ const serializeAws_restJson1DeviceTemplate = (input: DeviceTemplate, context: __ }; const serializeAws_restJson1DeviceTemplateMap = ( - input: { [key: string]: DeviceTemplate }, + input: Record, context: __SerdeContext ): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { @@ -1571,10 +1571,7 @@ const serializeAws_restJson1DeviceTemplateMap = ( }, {}); }; -const serializeAws_restJson1PlacementAttributeMap = ( - input: { [key: string]: string }, - context: __SerdeContext -): any => { +const serializeAws_restJson1PlacementAttributeMap = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -1599,7 +1596,7 @@ const serializeAws_restJson1PlacementTemplate = (input: PlacementTemplate, conte }; }; -const serializeAws_restJson1TagMap = (input: { [key: string]: string }, context: __SerdeContext): any => { +const serializeAws_restJson1TagMap = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -1614,8 +1611,8 @@ const serializeAws_restJson1TagMap = (input: { [key: string]: string }, context: const deserializeAws_restJson1DefaultPlacementAttributeMap = ( output: any, context: __SerdeContext -): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -1629,8 +1626,8 @@ const deserializeAws_restJson1DefaultPlacementAttributeMap = ( const deserializeAws_restJson1DeviceCallbackOverrideMap = ( output: any, context: __SerdeContext -): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -1641,8 +1638,8 @@ const deserializeAws_restJson1DeviceCallbackOverrideMap = ( }, {}); }; -const deserializeAws_restJson1DeviceMap = (output: any, context: __SerdeContext): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +const deserializeAws_restJson1DeviceMap = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -1666,8 +1663,8 @@ const deserializeAws_restJson1DeviceTemplate = (output: any, context: __SerdeCon const deserializeAws_restJson1DeviceTemplateMap = ( output: any, context: __SerdeContext -): { [key: string]: DeviceTemplate } => { - return Object.entries(output).reduce((acc: { [key: string]: DeviceTemplate }, [key, value]: [string, any]) => { +): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -1681,8 +1678,8 @@ const deserializeAws_restJson1DeviceTemplateMap = ( const deserializeAws_restJson1PlacementAttributeMap = ( output: any, context: __SerdeContext -): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -1807,8 +1804,8 @@ const deserializeAws_restJson1ProjectSummaryList = (output: any, context: __Serd return retVal; }; -const deserializeAws_restJson1TagMap = (output: any, context: __SerdeContext): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +const deserializeAws_restJson1TagMap = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } diff --git a/clients/client-iot-jobs-data-plane/src/models/models_0.ts b/clients/client-iot-jobs-data-plane/src/models/models_0.ts index 64b4d2dcde56..5b1d1bce2903 100644 --- a/clients/client-iot-jobs-data-plane/src/models/models_0.ts +++ b/clients/client-iot-jobs-data-plane/src/models/models_0.ts @@ -88,7 +88,7 @@ export interface JobExecution { /** *

A collection of name/value pairs that describe the status of the job execution.

*/ - statusDetails?: { [key: string]: string }; + statusDetails?: Record; /** *

The time, in milliseconds since the epoch, when the job execution was enqueued.

@@ -368,7 +368,7 @@ export interface StartNextPendingJobExecutionRequest { *

A collection of name/value pairs that describe the status of the job execution. If not specified, the * statusDetails are unchanged.

*/ - statusDetails?: { [key: string]: string }; + statusDetails?: Record; /** *

Specifies the amount of time this device has to finish execution of this job. If the job @@ -428,7 +428,7 @@ export interface UpdateJobExecutionRequest { *

Optional. A collection of name/value pairs that describe the status of the job execution. If not * specified, the statusDetails are unchanged.

*/ - statusDetails?: { [key: string]: string }; + statusDetails?: Record; /** *

Specifies the amount of time this device has to finish execution of this job. If the job @@ -489,7 +489,7 @@ export interface JobExecutionState { /** *

A collection of name/value pairs that describe the status of the job execution.

*/ - statusDetails?: { [key: string]: string }; + statusDetails?: Record; /** *

The version of the job execution. Job execution versions are incremented each time they are updated by a diff --git a/clients/client-iot-jobs-data-plane/src/protocols/Aws_restJson1.ts b/clients/client-iot-jobs-data-plane/src/protocols/Aws_restJson1.ts index e62956f2f530..c6607df80bec 100644 --- a/clients/client-iot-jobs-data-plane/src/protocols/Aws_restJson1.ts +++ b/clients/client-iot-jobs-data-plane/src/protocols/Aws_restJson1.ts @@ -561,7 +561,7 @@ const deserializeAws_restJson1ThrottlingExceptionResponse = async ( return __decorateServiceException(exception, parsedOutput.body); }; -const serializeAws_restJson1DetailsMap = (input: { [key: string]: string }, context: __SerdeContext): any => { +const serializeAws_restJson1DetailsMap = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -573,8 +573,8 @@ const serializeAws_restJson1DetailsMap = (input: { [key: string]: string }, cont }, {}); }; -const deserializeAws_restJson1DetailsMap = (output: any, context: __SerdeContext): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +const deserializeAws_restJson1DetailsMap = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } diff --git a/clients/client-iot/src/models/models_0.ts b/clients/client-iot/src/models/models_0.ts index 2506618184d4..9782cecb5a0a 100644 --- a/clients/client-iot/src/models/models_0.ts +++ b/clients/client-iot/src/models/models_0.ts @@ -1019,7 +1019,7 @@ export interface KafkaAction { /** *

Properties of the Apache Kafka producer client.

*/ - clientProperties: { [key: string]: string } | undefined; + clientProperties: Record | undefined; } export namespace KafkaAction { @@ -2424,7 +2424,7 @@ export interface AttributePayload { * {\"attributes\":{\"string1\":\"string2\"}} *

*/ - attributes?: { [key: string]: string }; + attributes?: Record; /** *

Specifies whether the list of attributes provided in the AttributePayload is merged with @@ -2633,7 +2633,7 @@ export interface NonCompliantResource { /** *

Other information about the noncompliant resource.

*/ - additionalInfo?: { [key: string]: string }; + additionalInfo?: Record; } export namespace NonCompliantResource { @@ -2662,7 +2662,7 @@ export interface RelatedResource { /** *

Other information about the resource.

*/ - additionalInfo?: { [key: string]: string }; + additionalInfo?: Record; } export namespace RelatedResource { @@ -2921,7 +2921,7 @@ export interface AuditMitigationActionsTaskTarget { /** *

Specifies a filter in the form of an audit check and set of reason codes that identify the findings from the audit to which the audit mitigation actions task apply.

*/ - auditCheckToReasonCodeFilter?: { [key: string]: string[] }; + auditCheckToReasonCodeFilter?: Record; } export namespace AuditMitigationActionsTaskTarget { @@ -3144,7 +3144,7 @@ export interface AuthorizerDescription { *

The public keys used to validate the token signature returned by your custom * authentication service.

*/ - tokenSigningPublicKeys?: { [key: string]: string }; + tokenSigningPublicKeys?: Record; /** *

The status of the authorizer.

@@ -3522,7 +3522,7 @@ export interface CancelJobExecutionRequest { *

A collection of name/value pairs that describe the status of the job execution. If not * specified, the statusDetails are unchanged. You can specify at most 10 name/value pairs.

*/ - statusDetails?: { [key: string]: string }; + statusDetails?: Record; } export namespace CancelJobExecutionRequest { @@ -3782,7 +3782,7 @@ export interface CreateAuthorizerRequest { *

The public keys used to verify the digital signature returned by your custom * authentication service.

*/ - tokenSigningPublicKeys?: { [key: string]: string }; + tokenSigningPublicKeys?: Record; /** *

The status of the create authorizer request.

@@ -4808,7 +4808,7 @@ export interface CreateJobRequest { * create jobs from them.

* */ - documentParameters?: { [key: string]: string }; + documentParameters?: Record; } export namespace CreateJobRequest { @@ -5775,7 +5775,7 @@ export interface OTAUpdateFile { /** *

A list of name/attribute pairs.

*/ - attributes?: { [key: string]: string }; + attributes?: Record; } export namespace OTAUpdateFile { @@ -5860,7 +5860,7 @@ export interface CreateOTAUpdateRequest { /** *

A list of additional OTA update parameters which are name-value pairs.

*/ - additionalParameters?: { [key: string]: string }; + additionalParameters?: Record; /** *

Metadata which can be used to manage updates.

@@ -6478,7 +6478,7 @@ export interface CreateSecurityProfileRequest { *

Specifies the destinations to which alerts are sent. (Alerts are always sent to the * console.) Alerts are generated when a device (thing) violates a behavior.

*/ - alertTargets?: { [key: string]: AlertTarget }; + alertTargets?: Record; /** * @deprecated diff --git a/clients/client-iot/src/models/models_1.ts b/clients/client-iot/src/models/models_1.ts index 8ce1310fa050..0d60f9524924 100644 --- a/clients/client-iot/src/models/models_1.ts +++ b/clients/client-iot/src/models/models_1.ts @@ -395,12 +395,12 @@ export interface DescribeAccountAuditConfigurationResponse { *

Information about the targets to which audit notifications are sent for * this account.

*/ - auditNotificationTargetConfigurations?: { [key: string]: AuditNotificationTarget }; + auditNotificationTargetConfigurations?: Record; /** *

Which audit checks are enabled and disabled for this account.

*/ - auditCheckConfigurations?: { [key: string]: AuditCheckConfiguration }; + auditCheckConfigurations?: Record; } export namespace DescribeAccountAuditConfigurationResponse { @@ -513,7 +513,7 @@ export interface DescribeAuditMitigationActionsTaskResponse { /** *

Aggregate counts of the results when the mitigation tasks were applied to the findings for this audit mitigation actions task.

*/ - taskStatistics?: { [key: string]: TaskStatisticsForAuditCheck }; + taskStatistics?: Record; /** *

Identifies the findings to which the mitigation actions are applied. This can be by audit checks, by audit task, or a set of findings.

@@ -523,7 +523,7 @@ export interface DescribeAuditMitigationActionsTaskResponse { /** *

Specifies the mitigation actions that should be applied to specific audit checks.

*/ - auditCheckToActionsMapping?: { [key: string]: string[] }; + auditCheckToActionsMapping?: Record; /** *

Specifies the mitigation actions and their parameters that are applied as part of this task.

@@ -704,7 +704,7 @@ export interface DescribeAuditTaskResponse { /** *

Detailed information about each check performed during this audit.

*/ - auditDetails?: { [key: string]: AuditCheckDetails }; + auditDetails?: Record; } export namespace DescribeAuditTaskResponse { @@ -1790,7 +1790,7 @@ export interface DescribeEventConfigurationsResponse { /** *

The event configurations.

*/ - eventConfigurations?: { [key: string]: Configuration }; + eventConfigurations?: Record; /** *

The creation date of the event configuration.

@@ -2194,7 +2194,7 @@ export interface Job { * create jobs from them.

* */ - documentParameters?: { [key: string]: string }; + documentParameters?: Record; isConcurrent?: boolean; } @@ -2274,7 +2274,7 @@ export interface JobExecutionStatusDetails { /** *

The job execution status.

*/ - detailsMap?: { [key: string]: string }; + detailsMap?: Record; } export namespace JobExecutionStatusDetails { @@ -3014,7 +3014,7 @@ export interface DescribeSecurityProfileResponse { /** *

Where the alerts are sent. (Alerts are always sent to the console.)

*/ - alertTargets?: { [key: string]: AlertTarget }; + alertTargets?: Record; /** * @deprecated @@ -3206,7 +3206,7 @@ export interface DescribeThingResponse { /** *

The thing attributes.

*/ - attributes?: { [key: string]: string }; + attributes?: Record; /** *

The current version of the thing record in the registry.

@@ -4484,7 +4484,7 @@ export interface OTAUpdateInfo { /** *

A collection of name/value pairs

*/ - additionalParameters?: { [key: string]: string }; + additionalParameters?: Record; } export namespace OTAUpdateInfo { diff --git a/clients/client-iot/src/models/models_2.ts b/clients/client-iot/src/models/models_2.ts index 41a5c8ee66bc..36ee07ac8f94 100644 --- a/clients/client-iot/src/models/models_2.ts +++ b/clients/client-iot/src/models/models_2.ts @@ -298,7 +298,7 @@ export interface ThingAttribute { /** *

A list of thing attributes which are name-value pairs.

*/ - attributes?: { [key: string]: string }; + attributes?: Record; /** *

The version of the thing record in the registry.

@@ -1334,7 +1334,7 @@ export interface RegisterThingRequest { /** *

The parameters for provisioning a thing. See Provisioning Templates for more information.

*/ - parameters?: { [key: string]: string }; + parameters?: Record; } export namespace RegisterThingRequest { @@ -1355,7 +1355,7 @@ export interface RegisterThingResponse { /** *

ARNs for the generated resources.

*/ - resourceArns?: { [key: string]: string }; + resourceArns?: Record; } export namespace RegisterThingResponse { @@ -1578,7 +1578,7 @@ export interface ThingGroupDocument { /** *

The thing group attributes.

*/ - attributes?: { [key: string]: string }; + attributes?: Record; /** *

Parent group names.

@@ -1653,7 +1653,7 @@ export interface ThingDocument { /** *

The attributes.

*/ - attributes?: { [key: string]: string }; + attributes?: Record; /** *

The unnamed shadow and named shadow.

@@ -1878,7 +1878,7 @@ export interface StartAuditMitigationActionsTaskRequest { /** *

For an audit check, specifies which mitigation actions to apply. Those actions must be defined in your Amazon Web Services accounts.

*/ - auditCheckToActionsMapping: { [key: string]: string[] } | undefined; + auditCheckToActionsMapping: Record | undefined; /** *

Each audit mitigation task must have a unique client request token. If you try to start a new task with the same token as a task that already exists, an exception occurs. If you omit this value, a unique client request token is generated automatically.

@@ -2239,7 +2239,7 @@ export interface HttpContext { /** *

The header keys and values in an HTTP authorization request.

*/ - headers?: { [key: string]: string }; + headers?: Record; /** *

The query string keys and values in an HTTP authorization request.

@@ -2499,7 +2499,7 @@ export interface UpdateAccountAuditConfigurationRequest { /** *

Information about the targets to which audit notifications are sent.

*/ - auditNotificationTargetConfigurations?: { [key: string]: AuditNotificationTarget }; + auditNotificationTargetConfigurations?: Record; /** *

Specifies which audit checks are enabled and disabled for this account. Use @@ -2516,7 +2516,7 @@ export interface UpdateAccountAuditConfigurationRequest { *

On the first call to UpdateAccountAuditConfiguration, * this parameter is required and must specify at least one enabled check.

*/ - auditCheckConfigurations?: { [key: string]: AuditCheckConfiguration }; + auditCheckConfigurations?: Record; } export namespace UpdateAccountAuditConfigurationRequest { @@ -2614,7 +2614,7 @@ export interface UpdateAuthorizerRequest { /** *

The public keys used to verify the token signature.

*/ - tokenSigningPublicKeys?: { [key: string]: string }; + tokenSigningPublicKeys?: Record; /** *

The status of the update authorizer request.

@@ -3046,7 +3046,7 @@ export interface UpdateEventConfigurationsRequest { /** *

The new event configuration values.

*/ - eventConfigurations?: { [key: string]: Configuration }; + eventConfigurations?: Record; } export namespace UpdateEventConfigurationsRequest { @@ -3467,7 +3467,7 @@ export interface UpdateSecurityProfileRequest { /** *

Where the alerts are sent. (Alerts are always sent to the console.)

*/ - alertTargets?: { [key: string]: AlertTarget }; + alertTargets?: Record; /** * @deprecated @@ -3550,7 +3550,7 @@ export interface UpdateSecurityProfileResponse { /** *

Where the alerts are sent. (Alerts are always sent to the console.)

*/ - alertTargets?: { [key: string]: AlertTarget }; + alertTargets?: Record; /** * @deprecated diff --git a/clients/client-iot/src/protocols/Aws_restJson1.ts b/clients/client-iot/src/protocols/Aws_restJson1.ts index 59ec89660d67..5f65f4ab404f 100644 --- a/clients/client-iot/src/protocols/Aws_restJson1.ts +++ b/clients/client-iot/src/protocols/Aws_restJson1.ts @@ -23601,10 +23601,7 @@ const serializeAws_restJson1AdditionalMetricsToRetainV2List = ( }); }; -const serializeAws_restJson1AdditionalParameterMap = ( - input: { [key: string]: string }, - context: __SerdeContext -): any => { +const serializeAws_restJson1AdditionalParameterMap = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -23657,7 +23654,7 @@ const serializeAws_restJson1AlertTarget = (input: AlertTarget, context: __SerdeC }; }; -const serializeAws_restJson1AlertTargets = (input: { [key: string]: AlertTarget }, context: __SerdeContext): any => { +const serializeAws_restJson1AlertTargets = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [AlertTargetType | string, any]) => { if (value === null) { return acc; @@ -23717,7 +23714,7 @@ const serializeAws_restJson1AttributePayload = (input: AttributePayload, context }; }; -const serializeAws_restJson1Attributes = (input: { [key: string]: string }, context: __SerdeContext): any => { +const serializeAws_restJson1Attributes = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -23729,7 +23726,7 @@ const serializeAws_restJson1Attributes = (input: { [key: string]: string }, cont }, {}); }; -const serializeAws_restJson1AttributesMap = (input: { [key: string]: string }, context: __SerdeContext): any => { +const serializeAws_restJson1AttributesMap = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -23751,7 +23748,7 @@ const serializeAws_restJson1AuditCheckConfiguration = ( }; const serializeAws_restJson1AuditCheckConfigurations = ( - input: { [key: string]: AuditCheckConfiguration }, + input: Record, context: __SerdeContext ): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { @@ -23766,7 +23763,7 @@ const serializeAws_restJson1AuditCheckConfigurations = ( }; const serializeAws_restJson1AuditCheckToActionsMapping = ( - input: { [key: string]: string[] }, + input: Record, context: __SerdeContext ): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { @@ -23781,7 +23778,7 @@ const serializeAws_restJson1AuditCheckToActionsMapping = ( }; const serializeAws_restJson1AuditCheckToReasonCodeFilter = ( - input: { [key: string]: string[] }, + input: Record, context: __SerdeContext ): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { @@ -23825,7 +23822,7 @@ const serializeAws_restJson1AuditNotificationTarget = ( }; const serializeAws_restJson1AuditNotificationTargetConfigurations = ( - input: { [key: string]: AuditNotificationTarget }, + input: Record, context: __SerdeContext ): any => { return Object.entries(input).reduce( @@ -24039,7 +24036,7 @@ const serializeAws_restJson1Cidrs = (input: string[], context: __SerdeContext): }); }; -const serializeAws_restJson1ClientProperties = (input: { [key: string]: string }, context: __SerdeContext): any => { +const serializeAws_restJson1ClientProperties = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -24146,7 +24143,7 @@ const serializeAws_restJson1Destination = (input: Destination, context: __SerdeC }; }; -const serializeAws_restJson1DetailsMap = (input: { [key: string]: string }, context: __SerdeContext): any => { +const serializeAws_restJson1DetailsMap = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -24237,7 +24234,7 @@ const serializeAws_restJson1EnableIoTLoggingParams = (input: EnableIoTLoggingPar }; const serializeAws_restJson1EventConfigurations = ( - input: { [key: string]: Configuration }, + input: Record, context: __SerdeContext ): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [EventType | string, any]) => { @@ -24357,7 +24354,7 @@ const serializeAws_restJson1HttpContext = (input: HttpContext, context: __SerdeC }; }; -const serializeAws_restJson1HttpHeaders = (input: { [key: string]: string }, context: __SerdeContext): any => { +const serializeAws_restJson1HttpHeaders = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -24640,7 +24637,7 @@ const serializeAws_restJson1OTAUpdateFiles = (input: OTAUpdateFile[], context: _ }); }; -const serializeAws_restJson1ParameterMap = (input: { [key: string]: string }, context: __SerdeContext): any => { +const serializeAws_restJson1ParameterMap = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -24652,7 +24649,7 @@ const serializeAws_restJson1ParameterMap = (input: { [key: string]: string }, co }, {}); }; -const serializeAws_restJson1Parameters = (input: { [key: string]: string }, context: __SerdeContext): any => { +const serializeAws_restJson1Parameters = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -24734,7 +24731,7 @@ const serializeAws_restJson1ProvisioningHook = (input: ProvisioningHook, context }; }; -const serializeAws_restJson1PublicKeyMap = (input: { [key: string]: string }, context: __SerdeContext): any => { +const serializeAws_restJson1PublicKeyMap = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -25552,8 +25549,8 @@ const deserializeAws_restJson1AdditionalMetricsToRetainV2List = ( const deserializeAws_restJson1AdditionalParameterMap = ( output: any, context: __SerdeContext -): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -25606,9 +25603,9 @@ const deserializeAws_restJson1AlertTarget = (output: any, context: __SerdeContex } as any; }; -const deserializeAws_restJson1AlertTargets = (output: any, context: __SerdeContext): { [key: string]: AlertTarget } => { +const deserializeAws_restJson1AlertTargets = (output: any, context: __SerdeContext): Record => { return Object.entries(output).reduce( - (acc: { [key: string]: AlertTarget }, [key, value]: [AlertTargetType | string, any]) => { + (acc: Record, [key, value]: [AlertTargetType | string, any]) => { if (value === null) { return acc; } @@ -25692,8 +25689,8 @@ const deserializeAws_restJson1AttributePayload = (output: any, context: __SerdeC } as any; }; -const deserializeAws_restJson1Attributes = (output: any, context: __SerdeContext): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +const deserializeAws_restJson1Attributes = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -25704,8 +25701,8 @@ const deserializeAws_restJson1Attributes = (output: any, context: __SerdeContext }, {}); }; -const deserializeAws_restJson1AttributesMap = (output: any, context: __SerdeContext): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +const deserializeAws_restJson1AttributesMap = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -25728,19 +25725,16 @@ const deserializeAws_restJson1AuditCheckConfiguration = ( const deserializeAws_restJson1AuditCheckConfigurations = ( output: any, context: __SerdeContext -): { [key: string]: AuditCheckConfiguration } => { - return Object.entries(output).reduce( - (acc: { [key: string]: AuditCheckConfiguration }, [key, value]: [string, any]) => { - if (value === null) { - return acc; - } - return { - ...acc, - [key]: deserializeAws_restJson1AuditCheckConfiguration(value, context), - }; - }, - {} - ); +): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { + if (value === null) { + return acc; + } + return { + ...acc, + [key]: deserializeAws_restJson1AuditCheckConfiguration(value, context), + }; + }, {}); }; const deserializeAws_restJson1AuditCheckDetails = (output: any, context: __SerdeContext): AuditCheckDetails => { @@ -25758,8 +25752,8 @@ const deserializeAws_restJson1AuditCheckDetails = (output: any, context: __Serde const deserializeAws_restJson1AuditCheckToActionsMapping = ( output: any, context: __SerdeContext -): { [key: string]: string[] } => { - return Object.entries(output).reduce((acc: { [key: string]: string[] }, [key, value]: [string, any]) => { +): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -25773,8 +25767,8 @@ const deserializeAws_restJson1AuditCheckToActionsMapping = ( const deserializeAws_restJson1AuditCheckToReasonCodeFilter = ( output: any, context: __SerdeContext -): { [key: string]: string[] } => { - return Object.entries(output).reduce((acc: { [key: string]: string[] }, [key, value]: [string, any]) => { +): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -25788,8 +25782,8 @@ const deserializeAws_restJson1AuditCheckToReasonCodeFilter = ( const deserializeAws_restJson1AuditDetails = ( output: any, context: __SerdeContext -): { [key: string]: AuditCheckDetails } => { - return Object.entries(output).reduce((acc: { [key: string]: AuditCheckDetails }, [key, value]: [string, any]) => { +): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -25910,9 +25904,9 @@ const deserializeAws_restJson1AuditMitigationActionsTaskMetadataList = ( const deserializeAws_restJson1AuditMitigationActionsTaskStatistics = ( output: any, context: __SerdeContext -): { [key: string]: TaskStatisticsForAuditCheck } => { +): Record => { return Object.entries(output).reduce( - (acc: { [key: string]: TaskStatisticsForAuditCheck }, [key, value]: [string, any]) => { + (acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -25956,9 +25950,9 @@ const deserializeAws_restJson1AuditNotificationTarget = ( const deserializeAws_restJson1AuditNotificationTargetConfigurations = ( output: any, context: __SerdeContext -): { [key: string]: AuditNotificationTarget } => { +): Record => { return Object.entries(output).reduce( - (acc: { [key: string]: AuditNotificationTarget }, [key, value]: [AuditNotificationType | string, any]) => { + (acc: Record, [key, value]: [AuditNotificationType | string, any]) => { if (value === null) { return acc; } @@ -26431,8 +26425,8 @@ const deserializeAws_restJson1Cidrs = (output: any, context: __SerdeContext): st return retVal; }; -const deserializeAws_restJson1ClientProperties = (output: any, context: __SerdeContext): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +const deserializeAws_restJson1ClientProperties = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -26549,8 +26543,8 @@ const deserializeAws_restJson1Destination = (output: any, context: __SerdeContex } as any; }; -const deserializeAws_restJson1DetailsMap = (output: any, context: __SerdeContext): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +const deserializeAws_restJson1DetailsMap = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -26834,9 +26828,9 @@ const deserializeAws_restJson1ErrorInfo = (output: any, context: __SerdeContext) const deserializeAws_restJson1EventConfigurations = ( output: any, context: __SerdeContext -): { [key: string]: Configuration } => { +): Record => { return Object.entries(output).reduce( - (acc: { [key: string]: Configuration }, [key, value]: [EventType | string, any]) => { + (acc: Record, [key, value]: [EventType | string, any]) => { if (value === null) { return acc; } @@ -27816,8 +27810,8 @@ const deserializeAws_restJson1OutgoingCertificates = (output: any, context: __Se return retVal; }; -const deserializeAws_restJson1ParameterMap = (output: any, context: __SerdeContext): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +const deserializeAws_restJson1ParameterMap = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -28049,8 +28043,8 @@ const deserializeAws_restJson1ProvisioningTemplateVersionSummary = ( } as any; }; -const deserializeAws_restJson1PublicKeyMap = (output: any, context: __SerdeContext): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +const deserializeAws_restJson1PublicKeyMap = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -28176,8 +28170,8 @@ const deserializeAws_restJson1RepublishAction = (output: any, context: __SerdeCo } as any; }; -const deserializeAws_restJson1ResourceArns = (output: any, context: __SerdeContext): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +const deserializeAws_restJson1ResourceArns = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -28626,8 +28620,8 @@ const deserializeAws_restJson1StringList = (output: any, context: __SerdeContext return retVal; }; -const deserializeAws_restJson1StringMap = (output: any, context: __SerdeContext): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +const deserializeAws_restJson1StringMap = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } diff --git a/clients/client-iotanalytics/src/models/models_0.ts b/clients/client-iotanalytics/src/models/models_0.ts index 237b2a78f7e6..88b9897e69b3 100644 --- a/clients/client-iotanalytics/src/models/models_0.ts +++ b/clients/client-iotanalytics/src/models/models_0.ts @@ -20,7 +20,7 @@ export interface AddAttributesActivity { * use RemoveAttributeActivity.

* */ - attributes: { [key: string]: string } | undefined; + attributes: Record | undefined; /** *

The next activity in the pipeline.

diff --git a/clients/client-iotanalytics/src/protocols/Aws_restJson1.ts b/clients/client-iotanalytics/src/protocols/Aws_restJson1.ts index 1e526bafe8cc..450b01aba622 100644 --- a/clients/client-iotanalytics/src/protocols/Aws_restJson1.ts +++ b/clients/client-iotanalytics/src/protocols/Aws_restJson1.ts @@ -3326,7 +3326,7 @@ const serializeAws_restJson1AddAttributesActivity = (input: AddAttributesActivit }; }; -const serializeAws_restJson1AttributeNameMapping = (input: { [key: string]: string }, context: __SerdeContext): any => { +const serializeAws_restJson1AttributeNameMapping = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -4061,11 +4061,8 @@ const deserializeAws_restJson1AddAttributesActivity = (output: any, context: __S } as any; }; -const deserializeAws_restJson1AttributeNameMapping = ( - output: any, - context: __SerdeContext -): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +const deserializeAws_restJson1AttributeNameMapping = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } diff --git a/clients/client-iotdeviceadvisor/src/models/models_0.ts b/clients/client-iotdeviceadvisor/src/models/models_0.ts index f55887065d2f..2ffd6922b705 100644 --- a/clients/client-iotdeviceadvisor/src/models/models_0.ts +++ b/clients/client-iotdeviceadvisor/src/models/models_0.ts @@ -94,7 +94,7 @@ export interface CreateSuiteDefinitionRequest { /** *

The tags to be attached to the suite definition.

*/ - tags?: { [key: string]: string }; + tags?: Record; } export namespace CreateSuiteDefinitionRequest { @@ -318,7 +318,7 @@ export interface GetSuiteDefinitionResponse { /** *

Tags attached to the suite definition.

*/ - tags?: { [key: string]: string }; + tags?: Record; } export namespace GetSuiteDefinitionResponse { @@ -599,7 +599,7 @@ export interface GetSuiteRunResponse { /** *

The tags attached to the suite run.

*/ - tags?: { [key: string]: string }; + tags?: Record; } export namespace GetSuiteRunResponse { @@ -868,7 +868,7 @@ export interface ListTagsForResourceResponse { /** *

The tags attached to the IoT Device Advisor resource.

*/ - tags?: { [key: string]: string }; + tags?: Record; } export namespace ListTagsForResourceResponse { @@ -899,7 +899,7 @@ export interface StartSuiteRunRequest { /** *

The tags to be attached to the suite run.

*/ - tags?: { [key: string]: string }; + tags?: Record; } export namespace StartSuiteRunRequest { @@ -978,7 +978,7 @@ export interface TagResourceRequest { /** *

The tags to be attached to the IoT Device Advisor resource.

*/ - tags: { [key: string]: string } | undefined; + tags: Record | undefined; } export namespace TagResourceRequest { diff --git a/clients/client-iotdeviceadvisor/src/protocols/Aws_restJson1.ts b/clients/client-iotdeviceadvisor/src/protocols/Aws_restJson1.ts index edd9d42d2268..a9126e4246d6 100644 --- a/clients/client-iotdeviceadvisor/src/protocols/Aws_restJson1.ts +++ b/clients/client-iotdeviceadvisor/src/protocols/Aws_restJson1.ts @@ -1436,7 +1436,7 @@ const serializeAws_restJson1SuiteRunConfiguration = (input: SuiteRunConfiguratio }; }; -const serializeAws_restJson1TagMap = (input: { [key: string]: string }, context: __SerdeContext): any => { +const serializeAws_restJson1TagMap = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -1602,8 +1602,8 @@ const deserializeAws_restJson1SuiteRunsList = (output: any, context: __SerdeCont return retVal; }; -const deserializeAws_restJson1TagMap = (output: any, context: __SerdeContext): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +const deserializeAws_restJson1TagMap = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } diff --git a/clients/client-iotfleethub/src/models/models_0.ts b/clients/client-iotfleethub/src/models/models_0.ts index 14cf28b28d56..75509962394b 100644 --- a/clients/client-iotfleethub/src/models/models_0.ts +++ b/clients/client-iotfleethub/src/models/models_0.ts @@ -92,7 +92,7 @@ export interface CreateApplicationRequest { /** *

A set of key/value pairs that you can use to manage the web application resource.

*/ - tags?: { [key: string]: string }; + tags?: Record; } export namespace CreateApplicationRequest { @@ -328,7 +328,7 @@ export interface DescribeApplicationResponse { /** *

A set of key/value pairs that you can use to manage the web application resource.

*/ - tags?: { [key: string]: string }; + tags?: Record; } export namespace DescribeApplicationResponse { @@ -397,7 +397,7 @@ export interface ListTagsForResourceResponse { /** *

The list of tags assigned to the resource.

*/ - tags?: { [key: string]: string }; + tags?: Record; } export namespace ListTagsForResourceResponse { @@ -418,7 +418,7 @@ export interface TagResourceRequest { /** *

The new or modified tags for the resource.

*/ - tags: { [key: string]: string } | undefined; + tags: Record | undefined; } export namespace TagResourceRequest { diff --git a/clients/client-iotfleethub/src/protocols/Aws_restJson1.ts b/clients/client-iotfleethub/src/protocols/Aws_restJson1.ts index ea15e8c7c301..f571775ebb0c 100644 --- a/clients/client-iotfleethub/src/protocols/Aws_restJson1.ts +++ b/clients/client-iotfleethub/src/protocols/Aws_restJson1.ts @@ -833,7 +833,7 @@ const deserializeAws_restJson1ThrottlingExceptionResponse = async ( return __decorateServiceException(exception, parsedOutput.body); }; -const serializeAws_restJson1TagMap = (input: { [key: string]: string }, context: __SerdeContext): any => { +const serializeAws_restJson1TagMap = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -869,8 +869,8 @@ const deserializeAws_restJson1ApplicationSummary = (output: any, context: __Serd } as any; }; -const deserializeAws_restJson1TagMap = (output: any, context: __SerdeContext): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +const deserializeAws_restJson1TagMap = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } diff --git a/clients/client-iotsitewise/src/models/models_0.ts b/clients/client-iotsitewise/src/models/models_0.ts index c5fea5814926..90cf2d7505a8 100644 --- a/clients/client-iotsitewise/src/models/models_0.ts +++ b/clients/client-iotsitewise/src/models/models_0.ts @@ -2900,7 +2900,7 @@ export interface CreateAccessPolicyRequest { * information, see Tagging your * IoT SiteWise resources in the IoT SiteWise User Guide.

*/ - tags?: { [key: string]: string }; + tags?: Record; } export namespace CreateAccessPolicyRequest { @@ -2957,7 +2957,7 @@ export interface CreateAssetRequest { * Tagging your IoT SiteWise * resources in the IoT SiteWise User Guide.

*/ - tags?: { [key: string]: string }; + tags?: Record; /** *

A description for the asset.

@@ -3082,7 +3082,7 @@ export interface CreateAssetModelRequest { * see Tagging your IoT SiteWise * resources in the IoT SiteWise User Guide.

*/ - tags?: { [key: string]: string }; + tags?: Record; } export namespace CreateAssetModelRequest { @@ -3156,7 +3156,7 @@ export interface CreateDashboardRequest { * see Tagging your IoT SiteWise * resources in the IoT SiteWise User Guide.

*/ - tags?: { [key: string]: string }; + tags?: Record; } export namespace CreateDashboardRequest { @@ -3279,7 +3279,7 @@ export interface CreateGatewayRequest { * Tagging your IoT SiteWise * resources in the IoT SiteWise User Guide.

*/ - tags?: { [key: string]: string }; + tags?: Record; } export namespace CreateGatewayRequest { @@ -3383,7 +3383,7 @@ export interface CreatePortalRequest { * Tagging your IoT SiteWise * resources in the IoT SiteWise User Guide.

*/ - tags?: { [key: string]: string }; + tags?: Record; /** *

The service to use to authenticate users to the portal. Choose from the following @@ -3566,7 +3566,7 @@ export interface CreateProjectRequest { * Tagging your IoT SiteWise * resources in the IoT SiteWise User Guide.

*/ - tags?: { [key: string]: string }; + tags?: Record; } export namespace CreateProjectRequest { @@ -6345,7 +6345,7 @@ export interface ListTagsForResourceResponse { * see Tagging your IoT SiteWise * resources in the IoT SiteWise User Guide.

*/ - tags?: { [key: string]: string }; + tags?: Record; } export namespace ListTagsForResourceResponse { @@ -6725,7 +6725,7 @@ export interface TagResourceRequest { * see Tagging your IoT SiteWise * resources in the IoT SiteWise User Guide.

*/ - tags: { [key: string]: string } | undefined; + tags: Record | undefined; } export namespace TagResourceRequest { diff --git a/clients/client-iotsitewise/src/protocols/Aws_restJson1.ts b/clients/client-iotsitewise/src/protocols/Aws_restJson1.ts index 7c333a5341bd..1c003683dffe 100644 --- a/clients/client-iotsitewise/src/protocols/Aws_restJson1.ts +++ b/clients/client-iotsitewise/src/protocols/Aws_restJson1.ts @@ -7860,7 +7860,7 @@ const serializeAws_restJson1RetentionPeriod = (input: RetentionPeriod, context: }; }; -const serializeAws_restJson1TagMap = (input: { [key: string]: string }, context: __SerdeContext): any => { +const serializeAws_restJson1TagMap = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -9281,8 +9281,8 @@ const deserializeAws_restJson1RetentionPeriod = (output: any, context: __SerdeCo } as any; }; -const deserializeAws_restJson1TagMap = (output: any, context: __SerdeContext): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +const deserializeAws_restJson1TagMap = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } diff --git a/clients/client-iottwinmaker/src/models/models_0.ts b/clients/client-iottwinmaker/src/models/models_0.ts index 4501c2270de4..59842bdb0ce5 100644 --- a/clients/client-iottwinmaker/src/models/models_0.ts +++ b/clients/client-iottwinmaker/src/models/models_0.ts @@ -34,7 +34,7 @@ export interface EntityPropertyReference { /** *

A mapping of external IDs to property names. External IDs uniquely identify properties from external data stores.

*/ - externalIdProperty?: { [key: string]: string }; + externalIdProperty?: Record; /** *

The ID of the entity.

@@ -406,7 +406,7 @@ export interface CreateSceneRequest { /** *

Metadata that you can use to manage the scene.

*/ - tags?: { [key: string]: string }; + tags?: Record; } export namespace CreateSceneRequest { @@ -463,7 +463,7 @@ export interface CreateWorkspaceRequest { /** *

Metadata that you can use to manage the workspace

*/ - tags?: { [key: string]: string }; + tags?: Record; } export namespace CreateWorkspaceRequest { @@ -1494,7 +1494,7 @@ export interface ListTagsForResourceResponse { /** *

Metadata that you can use to manage a resource.

*/ - tags?: { [key: string]: string }; + tags?: Record; /** *

The string that specifies the next page of results.

@@ -1601,7 +1601,7 @@ export interface TagResourceRequest { /** *

Metadata to add to this resource.

*/ - tags: { [key: string]: string } | undefined; + tags: Record | undefined; } export namespace TagResourceRequest { @@ -1893,7 +1893,7 @@ export interface DataValue { /** *

An object that maps strings to multiple DataValue objects.

*/ - mapValue?: { [key: string]: DataValue }; + mapValue?: Record; /** *

A value that relates a component to another component.

@@ -2172,7 +2172,7 @@ export interface GetPropertyValueResponse { *

An object that maps strings to the properties and latest property values in the response. Each string * in the mapping must be unique to this object.

*/ - propertyValues: { [key: string]: PropertyLatestValue } | undefined; + propertyValues: Record | undefined; } export namespace GetPropertyValueResponse { @@ -2363,7 +2363,7 @@ export interface PropertyDefinitionRequest { *

A mapping that specifies configuration information about the property. Use this field to * specify information that you read from and write to an external source.

*/ - configuration?: { [key: string]: string }; + configuration?: Record; } export namespace PropertyDefinitionRequest { @@ -2427,7 +2427,7 @@ export interface PropertyDefinitionResponse { /** *

A mapping that specifies configuration information about the property.

*/ - configuration?: { [key: string]: string }; + configuration?: Record; } export namespace PropertyDefinitionResponse { @@ -2481,7 +2481,7 @@ export interface CreateComponentTypeRequest { *

An object that maps strings to the property definitions in the component type. Each string * in the mapping must be unique to this object.

*/ - propertyDefinitions?: { [key: string]: PropertyDefinitionRequest }; + propertyDefinitions?: Record; /** *

Specifies the parent component type to extend.

@@ -2492,12 +2492,12 @@ export interface CreateComponentTypeRequest { *

An object that maps strings to the functions in the component type. Each string in the * mapping must be unique to this object.

*/ - functions?: { [key: string]: FunctionRequest }; + functions?: Record; /** *

Metadata that you can use to manage the component type.

*/ - tags?: { [key: string]: string }; + tags?: Record; } export namespace CreateComponentTypeRequest { @@ -2535,7 +2535,7 @@ export interface GetComponentTypeResponse { *

An object that maps strings to the property definitions in the component type. Each string * in the mapping must be unique to this object.

*/ - propertyDefinitions?: { [key: string]: PropertyDefinitionResponse }; + propertyDefinitions?: Record; /** *

The name of the parent component type that this component type extends.

@@ -2546,7 +2546,7 @@ export interface GetComponentTypeResponse { *

An object that maps strings to the functions in the component type. Each string * in the mapping must be unique to this object.

*/ - functions?: { [key: string]: FunctionResponse }; + functions?: Record; /** *

The date and time when the component type was created.

@@ -2615,7 +2615,7 @@ export interface UpdateComponentTypeRequest { *

An object that maps strings to the property definitions in the component type. Each string * in the mapping must be unique to this object.

*/ - propertyDefinitions?: { [key: string]: PropertyDefinitionRequest }; + propertyDefinitions?: Record; /** *

Specifies the component type that this component type extends.

@@ -2626,7 +2626,7 @@ export interface UpdateComponentTypeRequest { *

An object that maps strings to the functions in the component type. Each string * in the mapping must be unique to this object.

*/ - functions?: { [key: string]: FunctionRequest }; + functions?: Record; } export namespace UpdateComponentTypeRequest { @@ -2709,7 +2709,7 @@ export interface ComponentRequest { *

An object that maps strings to the properties to set in the component type. Each string * in the mapping must be unique to this object.

*/ - properties?: { [key: string]: PropertyRequest }; + properties?: Record; } export namespace ComponentRequest { @@ -2754,7 +2754,7 @@ export interface ComponentResponse { *

An object that maps strings to the properties to set in the component type. Each string * in the mapping must be unique to this object.

*/ - properties?: { [key: string]: PropertyResponse }; + properties?: Record; } export namespace ComponentResponse { @@ -2789,7 +2789,7 @@ export interface ComponentUpdateRequest { *

An object that maps strings to the properties to set in the component type update. Each string * in the mapping must be unique to this object.

*/ - propertyUpdates?: { [key: string]: PropertyRequest }; + propertyUpdates?: Record; } export namespace ComponentUpdateRequest { @@ -2826,7 +2826,7 @@ export interface CreateEntityRequest { *

An object that maps strings to the components in the entity. Each string * in the mapping must be unique to this object.

*/ - components?: { [key: string]: ComponentRequest }; + components?: Record; /** *

The ID of the entity's parent entity.

@@ -2836,7 +2836,7 @@ export interface CreateEntityRequest { /** *

Metadata that you can use to manage the entity.

*/ - tags?: { [key: string]: string }; + tags?: Record; } export namespace CreateEntityRequest { @@ -2883,7 +2883,7 @@ export interface GetEntityResponse { *

An object that maps strings to the components in the entity. Each string * in the mapping must be unique to this object.

*/ - components?: { [key: string]: ComponentResponse }; + components?: Record; /** *

The ID of the parent entity for this entity.

@@ -2940,7 +2940,7 @@ export interface UpdateEntityRequest { *

An object that maps strings to the component updates in the request. Each string * in the mapping must be unique to this object.

*/ - componentUpdates?: { [key: string]: ComponentUpdateRequest }; + componentUpdates?: Record; /** *

An object that describes the update request for a parent entity.

diff --git a/clients/client-iottwinmaker/src/protocols/Aws_restJson1.ts b/clients/client-iottwinmaker/src/protocols/Aws_restJson1.ts index 38cf3ea1e47b..433015bcd029 100644 --- a/clients/client-iottwinmaker/src/protocols/Aws_restJson1.ts +++ b/clients/client-iottwinmaker/src/protocols/Aws_restJson1.ts @@ -3134,7 +3134,7 @@ const serializeAws_restJson1ComponentRequest = (input: ComponentRequest, context }; const serializeAws_restJson1ComponentsMapRequest = ( - input: { [key: string]: ComponentRequest }, + input: Record, context: __SerdeContext ): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { @@ -3162,7 +3162,7 @@ const serializeAws_restJson1ComponentUpdateRequest = (input: ComponentUpdateRequ }; const serializeAws_restJson1ComponentUpdatesMapRequest = ( - input: { [key: string]: ComponentUpdateRequest }, + input: Record, context: __SerdeContext ): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { @@ -3176,7 +3176,7 @@ const serializeAws_restJson1ComponentUpdatesMapRequest = ( }, {}); }; -const serializeAws_restJson1Configuration = (input: { [key: string]: string }, context: __SerdeContext): any => { +const serializeAws_restJson1Configuration = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -3242,7 +3242,7 @@ const serializeAws_restJson1DataValueList = (input: DataValue[], context: __Serd }); }; -const serializeAws_restJson1DataValueMap = (input: { [key: string]: DataValue }, context: __SerdeContext): any => { +const serializeAws_restJson1DataValueMap = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -3291,7 +3291,7 @@ const serializeAws_restJson1ExtendsFrom = (input: string[], context: __SerdeCont }); }; -const serializeAws_restJson1ExternalIdProperty = (input: { [key: string]: string }, context: __SerdeContext): any => { +const serializeAws_restJson1ExternalIdProperty = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -3318,7 +3318,7 @@ const serializeAws_restJson1FunctionRequest = (input: FunctionRequest, context: }; const serializeAws_restJson1FunctionsRequest = ( - input: { [key: string]: FunctionRequest }, + input: Record, context: __SerdeContext ): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { @@ -3430,7 +3430,7 @@ const serializeAws_restJson1PropertyDefinitionRequest = ( }; const serializeAws_restJson1PropertyDefinitionsRequest = ( - input: { [key: string]: PropertyDefinitionRequest }, + input: Record, context: __SerdeContext ): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { @@ -3477,7 +3477,7 @@ const serializeAws_restJson1PropertyRequest = (input: PropertyRequest, context: }; const serializeAws_restJson1PropertyRequests = ( - input: { [key: string]: PropertyRequest }, + input: Record, context: __SerdeContext ): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { @@ -3576,7 +3576,7 @@ const serializeAws_restJson1SelectedPropertyList = (input: string[], context: __ }); }; -const serializeAws_restJson1TagMap = (input: { [key: string]: string }, context: __SerdeContext): any => { +const serializeAws_restJson1TagMap = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -3631,8 +3631,8 @@ const deserializeAws_restJson1ComponentResponse = (output: any, context: __Serde const deserializeAws_restJson1ComponentsMap = ( output: any, context: __SerdeContext -): { [key: string]: ComponentResponse } => { - return Object.entries(output).reduce((acc: { [key: string]: ComponentResponse }, [key, value]: [string, any]) => { +): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -3678,8 +3678,8 @@ const deserializeAws_restJson1ComponentTypeSummary = (output: any, context: __Se } as any; }; -const deserializeAws_restJson1Configuration = (output: any, context: __SerdeContext): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +const deserializeAws_restJson1Configuration = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -3754,8 +3754,8 @@ const deserializeAws_restJson1DataValueList = (output: any, context: __SerdeCont return retVal; }; -const deserializeAws_restJson1DataValueMap = (output: any, context: __SerdeContext): { [key: string]: DataValue } => { - return Object.entries(output).reduce((acc: { [key: string]: DataValue }, [key, value]: [string, any]) => { +const deserializeAws_restJson1DataValueMap = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -3859,11 +3859,8 @@ const deserializeAws_restJson1ExtendsFrom = (output: any, context: __SerdeContex return retVal; }; -const deserializeAws_restJson1ExternalIdProperty = ( - output: any, - context: __SerdeContext -): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +const deserializeAws_restJson1ExternalIdProperty = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -3892,8 +3889,8 @@ const deserializeAws_restJson1FunctionResponse = (output: any, context: __SerdeC const deserializeAws_restJson1FunctionsResponse = ( output: any, context: __SerdeContext -): { [key: string]: FunctionResponse } => { - return Object.entries(output).reduce((acc: { [key: string]: FunctionResponse }, [key, value]: [string, any]) => { +): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -3940,9 +3937,9 @@ const deserializeAws_restJson1PropertyDefinitionResponse = ( const deserializeAws_restJson1PropertyDefinitionsResponse = ( output: any, context: __SerdeContext -): { [key: string]: PropertyDefinitionResponse } => { +): Record => { return Object.entries(output).reduce( - (acc: { [key: string]: PropertyDefinitionResponse }, [key, value]: [string, any]) => { + (acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -3971,8 +3968,8 @@ const deserializeAws_restJson1PropertyLatestValue = (output: any, context: __Ser const deserializeAws_restJson1PropertyLatestValueMap = ( output: any, context: __SerdeContext -): { [key: string]: PropertyLatestValue } => { - return Object.entries(output).reduce((acc: { [key: string]: PropertyLatestValue }, [key, value]: [string, any]) => { +): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -3999,8 +3996,8 @@ const deserializeAws_restJson1PropertyResponse = (output: any, context: __SerdeC const deserializeAws_restJson1PropertyResponses = ( output: any, context: __SerdeContext -): { [key: string]: PropertyResponse } => { - return Object.entries(output).reduce((acc: { [key: string]: PropertyResponse }, [key, value]: [string, any]) => { +): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -4152,8 +4149,8 @@ const deserializeAws_restJson1Status = (output: any, context: __SerdeContext): S } as any; }; -const deserializeAws_restJson1TagMap = (output: any, context: __SerdeContext): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +const deserializeAws_restJson1TagMap = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } diff --git a/clients/client-ivs/src/models/models_0.ts b/clients/client-ivs/src/models/models_0.ts index 5d496924bd93..025825d5422a 100644 --- a/clients/client-ivs/src/models/models_0.ts +++ b/clients/client-ivs/src/models/models_0.ts @@ -123,7 +123,7 @@ export interface Channel { /** *

Array of 1-50 maps, each of the form string:string (key:value).

*/ - tags?: { [key: string]: string }; + tags?: Record; } export namespace Channel { @@ -223,7 +223,7 @@ export interface StreamKey { /** *

Array of 1-50 maps, each of the form string:string (key:value).

*/ - tags?: { [key: string]: string }; + tags?: Record; } export namespace StreamKey { @@ -308,7 +308,7 @@ export interface CreateChannelRequest { /** *

Array of 1-50 maps, each of the form string:string (key:value).

*/ - tags?: { [key: string]: string }; + tags?: Record; } export namespace CreateChannelRequest { @@ -553,7 +553,7 @@ export interface CreateRecordingConfigurationRequest { /** *

Array of 1-50 maps, each of the form string:string (key:value).

*/ - tags?: { [key: string]: string }; + tags?: Record; /** *

A complex type that allows you to enable/disable the recording of thumbnails for a live @@ -605,7 +605,7 @@ export interface RecordingConfiguration { /** *

Array of 1-50 maps, each of the form string:string (key:value).

*/ - tags?: { [key: string]: string }; + tags?: Record; /** *

A complex type that allows you to enable/disable the recording of thumbnails for a live @@ -672,7 +672,7 @@ export interface CreateStreamKeyRequest { /** *

Array of 1-50 maps, each of the form string:string (key:value).

*/ - tags?: { [key: string]: string }; + tags?: Record; } export namespace CreateStreamKeyRequest { @@ -846,7 +846,7 @@ export interface PlaybackKeyPair { /** *

Array of 1-50 maps, each of the form string:string (key:value).

*/ - tags?: { [key: string]: string }; + tags?: Record; } export namespace PlaybackKeyPair { @@ -1310,7 +1310,7 @@ export interface ImportPlaybackKeyPairRequest { /** *

Any tags provided with the request are added to the playback key pair tags.

*/ - tags?: { [key: string]: string }; + tags?: Record; } export namespace ImportPlaybackKeyPairRequest { @@ -1407,7 +1407,7 @@ export interface ChannelSummary { /** *

Array of 1-50 maps, each of the form string:string (key:value).

*/ - tags?: { [key: string]: string }; + tags?: Record; } export namespace ChannelSummary { @@ -1480,7 +1480,7 @@ export interface PlaybackKeyPairSummary { /** *

Array of 1-50 maps, each of the form string:string (key:value).

*/ - tags?: { [key: string]: string }; + tags?: Record; } export namespace PlaybackKeyPairSummary { @@ -1564,7 +1564,7 @@ export interface RecordingConfigurationSummary { /** *

Array of 1-50 maps, each of the form string:string (key:value).

*/ - tags?: { [key: string]: string }; + tags?: Record; } export namespace RecordingConfigurationSummary { @@ -1642,7 +1642,7 @@ export interface StreamKeySummary { /** *

Array of 1-50 maps, each of the form string:string (key:value).

*/ - tags?: { [key: string]: string }; + tags?: Record; } export namespace StreamKeySummary { @@ -1895,7 +1895,7 @@ export interface ListTagsForResourceResponse { /** *

*/ - tags: { [key: string]: string } | undefined; + tags: Record | undefined; } export namespace ListTagsForResourceResponse { @@ -2014,7 +2014,7 @@ export interface TagResourceRequest { /** *

Array of tags to be added or updated.

*/ - tags: { [key: string]: string } | undefined; + tags: Record | undefined; } export namespace TagResourceRequest { diff --git a/clients/client-ivs/src/protocols/Aws_restJson1.ts b/clients/client-ivs/src/protocols/Aws_restJson1.ts index 9710e2182d5b..a6fcd7e4e2bc 100644 --- a/clients/client-ivs/src/protocols/Aws_restJson1.ts +++ b/clients/client-ivs/src/protocols/Aws_restJson1.ts @@ -2512,7 +2512,7 @@ const serializeAws_restJson1StreamKeyArnList = (input: string[], context: __Serd }); }; -const serializeAws_restJson1Tags = (input: { [key: string]: string }, context: __SerdeContext): any => { +const serializeAws_restJson1Tags = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -2916,8 +2916,8 @@ const deserializeAws_restJson1StreamSummary = (output: any, context: __SerdeCont } as any; }; -const deserializeAws_restJson1Tags = (output: any, context: __SerdeContext): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +const deserializeAws_restJson1Tags = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } diff --git a/clients/client-ivschat/src/models/models_0.ts b/clients/client-ivschat/src/models/models_0.ts index 9bbb8ff8b958..066f74e7d21b 100644 --- a/clients/client-ivschat/src/models/models_0.ts +++ b/clients/client-ivschat/src/models/models_0.ts @@ -58,7 +58,7 @@ export interface CreateChatTokenRequest { * Map keys and values can contain UTF-8 encoded text. The maximum length of this field is 1 * KB total.

*/ - attributes?: { [key: string]: string }; + attributes?: Record; } export namespace CreateChatTokenRequest { @@ -305,7 +305,7 @@ export interface CreateRoomRequest { *

Tags to attach to the resource. Array of maps, each of the form string:string * (key:value).

*/ - tags?: { [key: string]: string }; + tags?: Record; } export namespace CreateRoomRequest { @@ -365,7 +365,7 @@ export interface CreateRoomResponse { /** *

Tags attached to the resource, from the request.

*/ - tags?: { [key: string]: string }; + tags?: Record; } export namespace CreateRoomResponse { @@ -618,7 +618,7 @@ export interface GetRoomResponse { *

Tags attached to the resource. Array of maps, each of the form string:string * (key:value).

*/ - tags?: { [key: string]: string }; + tags?: Record; } export namespace GetRoomResponse { @@ -702,7 +702,7 @@ export interface RoomSummary { /** *

Tags attached to the resource.

*/ - tags?: { [key: string]: string }; + tags?: Record; } export namespace RoomSummary { @@ -776,7 +776,7 @@ export interface ListTagsForResourceResponse { *

Tags to attach to the resource. Array of maps, each of the form string:string * (key:value).

*/ - tags: { [key: string]: string } | undefined; + tags: Record | undefined; } export namespace ListTagsForResourceResponse { @@ -804,7 +804,7 @@ export interface SendEventRequest { *

Application-defined metadata to attach to the event sent to clients. The maximum length * of the metadata is 1 KB total.

*/ - attributes?: { [key: string]: string }; + attributes?: Record; } export namespace SendEventRequest { @@ -842,7 +842,7 @@ export interface TagResourceRequest { /** *

Array of tags to be added or updated.

*/ - tags: { [key: string]: string } | undefined; + tags: Record | undefined; } export namespace TagResourceRequest { @@ -985,7 +985,7 @@ export interface UpdateRoomResponse { /** *

Tags attached to the resource.

*/ - tags?: { [key: string]: string }; + tags?: Record; } export namespace UpdateRoomResponse { diff --git a/clients/client-ivschat/src/protocols/Aws_restJson1.ts b/clients/client-ivschat/src/protocols/Aws_restJson1.ts index c94fc6ef5028..282d8541b00f 100644 --- a/clients/client-ivschat/src/protocols/Aws_restJson1.ts +++ b/clients/client-ivschat/src/protocols/Aws_restJson1.ts @@ -1282,7 +1282,7 @@ const deserializeAws_restJson1ValidationExceptionResponse = async ( return __decorateServiceException(exception, parsedOutput.body); }; -const serializeAws_restJson1ChatTokenAttributes = (input: { [key: string]: string }, context: __SerdeContext): any => { +const serializeAws_restJson1ChatTokenAttributes = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -1308,7 +1308,7 @@ const serializeAws_restJson1ChatTokenCapabilities = ( }); }; -const serializeAws_restJson1EventAttributes = (input: { [key: string]: string }, context: __SerdeContext): any => { +const serializeAws_restJson1EventAttributes = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -1328,7 +1328,7 @@ const serializeAws_restJson1MessageReviewHandler = (input: MessageReviewHandler, }; }; -const serializeAws_restJson1Tags = (input: { [key: string]: string }, context: __SerdeContext): any => { +const serializeAws_restJson1Tags = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -1383,8 +1383,8 @@ const deserializeAws_restJson1RoomSummary = (output: any, context: __SerdeContex } as any; }; -const deserializeAws_restJson1Tags = (output: any, context: __SerdeContext): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +const deserializeAws_restJson1Tags = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } diff --git a/clients/client-kafka/src/models/models_0.ts b/clients/client-kafka/src/models/models_0.ts index 83ccc8287f98..699b602bc496 100644 --- a/clients/client-kafka/src/models/models_0.ts +++ b/clients/client-kafka/src/models/models_0.ts @@ -814,7 +814,7 @@ export interface Cluster { /** *

Tags attached to the cluster.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; /** *

Information about the provisioned cluster.

@@ -991,7 +991,7 @@ export interface ClusterInfo { /** *

Tags attached to the cluster.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; /** *

The connection string to use to connect to the Apache ZooKeeper cluster.

@@ -1909,7 +1909,7 @@ export interface CreateClusterRequest { /** *

Create tags when creating the cluster.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; } export namespace CreateClusterRequest { @@ -2039,7 +2039,7 @@ export interface CreateClusterV2Request { /** *

A map of tags that you want the cluster to have.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; /** *

Information about the provisioned cluster.

@@ -2943,7 +2943,7 @@ export interface ListTagsForResourceResponse { /** *

The key-value pair for the resource tag.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; } export namespace ListTagsForResourceResponse { @@ -3009,7 +3009,7 @@ export interface TagResourceRequest { /** *

The key-value pair for the resource tag.

*/ - Tags: { [key: string]: string } | undefined; + Tags: Record | undefined; } export namespace TagResourceRequest { diff --git a/clients/client-kafka/src/protocols/Aws_restJson1.ts b/clients/client-kafka/src/protocols/Aws_restJson1.ts index b11f873e69be..8dd29691320e 100644 --- a/clients/client-kafka/src/protocols/Aws_restJson1.ts +++ b/clients/client-kafka/src/protocols/Aws_restJson1.ts @@ -3731,7 +3731,7 @@ const serializeAws_restJson1__listOfVpcConfig = (input: VpcConfig[], context: __ }); }; -const serializeAws_restJson1__mapOf__string = (input: { [key: string]: string }, context: __SerdeContext): any => { +const serializeAws_restJson1__mapOf__string = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -4216,8 +4216,8 @@ const deserializeAws_restJson1__listOfVpcConfig = (output: any, context: __Serde return retVal; }; -const deserializeAws_restJson1__mapOf__string = (output: any, context: __SerdeContext): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +const deserializeAws_restJson1__mapOf__string = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } diff --git a/clients/client-kafkaconnect/src/models/models_0.ts b/clients/client-kafkaconnect/src/models/models_0.ts index d89921b3b552..db897e6e7987 100644 --- a/clients/client-kafkaconnect/src/models/models_0.ts +++ b/clients/client-kafkaconnect/src/models/models_0.ts @@ -1406,7 +1406,7 @@ export interface CreateConnectorRequest { /** *

A map of keys to values that represent the configuration for the connector.

*/ - connectorConfiguration: { [key: string]: string } | undefined; + connectorConfiguration: Record | undefined; /** *

A summary description of the connector.

@@ -1921,7 +1921,7 @@ export interface DescribeConnectorResponse { /** *

A map of keys to values that represent the configuration for the connector.

*/ - connectorConfiguration?: { [key: string]: string }; + connectorConfiguration?: Record; /** *

A summary description of the connector.

diff --git a/clients/client-kafkaconnect/src/protocols/Aws_restJson1.ts b/clients/client-kafkaconnect/src/protocols/Aws_restJson1.ts index 920471bea334..736724eb657d 100644 --- a/clients/client-kafkaconnect/src/protocols/Aws_restJson1.ts +++ b/clients/client-kafkaconnect/src/protocols/Aws_restJson1.ts @@ -1563,7 +1563,7 @@ const serializeAws_restJson1__listOfPlugin = (input: Plugin[], context: __SerdeC }); }; -const serializeAws_restJson1__mapOf__string = (input: { [key: string]: string }, context: __SerdeContext): any => { +const serializeAws_restJson1__mapOf__string = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -1882,8 +1882,8 @@ const deserializeAws_restJson1__listOfWorkerConfigurationSummary = ( return retVal; }; -const deserializeAws_restJson1__mapOf__string = (output: any, context: __SerdeContext): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +const deserializeAws_restJson1__mapOf__string = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } diff --git a/clients/client-kendra/src/models/models_0.ts b/clients/client-kendra/src/models/models_0.ts index f660a95802c4..5869a6d9c8ed 100644 --- a/clients/client-kendra/src/models/models_0.ts +++ b/clients/client-kendra/src/models/models_0.ts @@ -6144,7 +6144,7 @@ export interface Relevance { * document. When those terms appear they are given the specified * importance instead of the regular importance for the boost.

*/ - ValueImportanceMap?: { [key: string]: number }; + ValueImportanceMap?: Record; } export namespace Relevance { diff --git a/clients/client-kendra/src/protocols/Aws_json1_1.ts b/clients/client-kendra/src/protocols/Aws_json1_1.ts index b894b8e5e1b8..e950c19c4b91 100644 --- a/clients/client-kendra/src/protocols/Aws_json1_1.ts +++ b/clients/client-kendra/src/protocols/Aws_json1_1.ts @@ -7480,7 +7480,7 @@ const serializeAws_json1_1UserTokenConfigurationList = ( }); }; -const serializeAws_json1_1ValueImportanceMap = (input: { [key: string]: number }, context: __SerdeContext): any => { +const serializeAws_json1_1ValueImportanceMap = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -10951,8 +10951,8 @@ const deserializeAws_json1_1ValidationException = (output: any, context: __Serde } as any; }; -const deserializeAws_json1_1ValueImportanceMap = (output: any, context: __SerdeContext): { [key: string]: number } => { - return Object.entries(output).reduce((acc: { [key: string]: number }, [key, value]: [string, any]) => { +const deserializeAws_json1_1ValueImportanceMap = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } diff --git a/clients/client-kinesis-analytics-v2/src/models/models_0.ts b/clients/client-kinesis-analytics-v2/src/models/models_0.ts index 0ffa657f8b44..f67236ebb2e8 100644 --- a/clients/client-kinesis-analytics-v2/src/models/models_0.ts +++ b/clients/client-kinesis-analytics-v2/src/models/models_0.ts @@ -1926,7 +1926,7 @@ export interface PropertyGroup { /** *

Describes the value of an application execution property key-value pair.

*/ - PropertyMap: { [key: string]: string } | undefined; + PropertyMap: Record | undefined; } export namespace PropertyGroup { diff --git a/clients/client-kinesis-analytics-v2/src/protocols/Aws_json1_1.ts b/clients/client-kinesis-analytics-v2/src/protocols/Aws_json1_1.ts index 4894591ada9e..421c1a6595d7 100644 --- a/clients/client-kinesis-analytics-v2/src/protocols/Aws_json1_1.ts +++ b/clients/client-kinesis-analytics-v2/src/protocols/Aws_json1_1.ts @@ -3825,7 +3825,7 @@ const serializeAws_json1_1PropertyGroups = (input: PropertyGroup[], context: __S }); }; -const serializeAws_json1_1PropertyMap = (input: { [key: string]: string }, context: __SerdeContext): any => { +const serializeAws_json1_1PropertyMap = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -5388,8 +5388,8 @@ const deserializeAws_json1_1PropertyGroups = (output: any, context: __SerdeConte return retVal; }; -const deserializeAws_json1_1PropertyMap = (output: any, context: __SerdeContext): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +const deserializeAws_json1_1PropertyMap = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } diff --git a/clients/client-kinesis-video-archived-media/src/models/models_0.ts b/clients/client-kinesis-video-archived-media/src/models/models_0.ts index 1907c438fdb9..d82aeaeb0fe0 100644 --- a/clients/client-kinesis-video-archived-media/src/models/models_0.ts +++ b/clients/client-kinesis-video-archived-media/src/models/models_0.ts @@ -1029,7 +1029,7 @@ export interface GetImagesInput { * The FormatConfig value accepts ints from 1 to 100. If the value is 1, the image will be generated with less quality and the best compression. * If the value is 100, the image will be generated with the best quality and less compression. If no value is provided, the default value of the JPEGQuality key will be set to 80.

*/ - FormatConfig?: { [key: string]: string }; + FormatConfig?: Record; /** *

The width of the output image that is used in conjunction with the HeightPixels parameter. When both WidthPixels and HeightPixels parameters are provided, diff --git a/clients/client-kinesis-video-archived-media/src/protocols/Aws_restJson1.ts b/clients/client-kinesis-video-archived-media/src/protocols/Aws_restJson1.ts index 52158315d1d1..bdb63d45348c 100644 --- a/clients/client-kinesis-video-archived-media/src/protocols/Aws_restJson1.ts +++ b/clients/client-kinesis-video-archived-media/src/protocols/Aws_restJson1.ts @@ -815,7 +815,7 @@ const serializeAws_restJson1DASHTimestampRange = (input: DASHTimestampRange, con }; }; -const serializeAws_restJson1FormatConfig = (input: { [key: string]: string }, context: __SerdeContext): any => { +const serializeAws_restJson1FormatConfig = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [FormatConfigKey | string, any]) => { if (value === null) { return acc; diff --git a/clients/client-kinesis-video/src/models/models_0.ts b/clients/client-kinesis-video/src/models/models_0.ts index 3e093ddcd6a1..10dd542647af 100644 --- a/clients/client-kinesis-video/src/models/models_0.ts +++ b/clients/client-kinesis-video/src/models/models_0.ts @@ -424,7 +424,7 @@ export interface CreateStreamInput { *

A list of tags to associate with the specified stream. Each tag is a key-value pair * (the value is optional).

*/ - Tags?: { [key: string]: string }; + Tags?: Record; } export namespace CreateStreamInput { @@ -728,7 +728,7 @@ export interface ImageGenerationConfiguration { * If the value is 100, the image will be generated with the best quality and less compression. If no value is provided, the default value of the JPEGQuality * key will be set to 80.

*/ - FormatConfig?: { [key: string]: string }; + FormatConfig?: Record; /** *

The width of the output image that is used in conjunction with the HeightPixels parameter. When both WidthPixels and @@ -1317,7 +1317,7 @@ export interface ListTagsForResourceOutput { /** *

A map of tag keys and values associated with the specified signaling channel.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; } export namespace ListTagsForResourceOutput { @@ -1369,7 +1369,7 @@ export interface ListTagsForStreamOutput { /** *

A map of tag keys and values associated with the specified stream.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; } export namespace ListTagsForStreamOutput { @@ -1431,7 +1431,7 @@ export interface TagStreamInput { *

A list of tags to associate with the specified stream. Each tag is a key-value pair * (the value is optional).

*/ - Tags: { [key: string]: string } | undefined; + Tags: Record | undefined; } export namespace TagStreamInput { diff --git a/clients/client-kinesis-video/src/protocols/Aws_restJson1.ts b/clients/client-kinesis-video/src/protocols/Aws_restJson1.ts index 6cef0132e6ea..a61cd8e94d67 100644 --- a/clients/client-kinesis-video/src/protocols/Aws_restJson1.ts +++ b/clients/client-kinesis-video/src/protocols/Aws_restJson1.ts @@ -2256,7 +2256,7 @@ const serializeAws_restJson1ChannelNameCondition = (input: ChannelNameCondition, }; }; -const serializeAws_restJson1FormatConfig = (input: { [key: string]: string }, context: __SerdeContext): any => { +const serializeAws_restJson1FormatConfig = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [FormatConfigKey | string, any]) => { if (value === null) { return acc; @@ -2334,7 +2334,7 @@ const serializeAws_restJson1NotificationDestinationConfig = ( }; }; -const serializeAws_restJson1ResourceTags = (input: { [key: string]: string }, context: __SerdeContext): any => { +const serializeAws_restJson1ResourceTags = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -2446,19 +2446,16 @@ const deserializeAws_restJson1ChannelInfoList = (output: any, context: __SerdeCo return retVal; }; -const deserializeAws_restJson1FormatConfig = (output: any, context: __SerdeContext): { [key: string]: string } => { - return Object.entries(output).reduce( - (acc: { [key: string]: string }, [key, value]: [FormatConfigKey | string, any]) => { - if (value === null) { - return acc; - } - return { - ...acc, - [key]: __expectString(value) as any, - }; - }, - {} - ); +const deserializeAws_restJson1FormatConfig = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [FormatConfigKey | string, any]) => { + if (value === null) { + return acc; + } + return { + ...acc, + [key]: __expectString(value) as any, + }; + }, {}); }; const deserializeAws_restJson1ImageGenerationConfiguration = ( @@ -2540,8 +2537,8 @@ const deserializeAws_restJson1ResourceEndpointListItem = ( } as any; }; -const deserializeAws_restJson1ResourceTags = (output: any, context: __SerdeContext): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +const deserializeAws_restJson1ResourceTags = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } diff --git a/clients/client-kinesis/src/models/models_0.ts b/clients/client-kinesis/src/models/models_0.ts index ad7332e608c4..e6940373a57a 100644 --- a/clients/client-kinesis/src/models/models_0.ts +++ b/clients/client-kinesis/src/models/models_0.ts @@ -15,7 +15,7 @@ export interface AddTagsToStreamInput { /** *

A set of up to 10 key-value pairs to use to create the tags.

*/ - Tags: { [key: string]: string } | undefined; + Tags: Record | undefined; } export namespace AddTagsToStreamInput { diff --git a/clients/client-kinesis/src/protocols/Aws_json1_1.ts b/clients/client-kinesis/src/protocols/Aws_json1_1.ts index 85c478b007c0..70a1dee4266f 100644 --- a/clients/client-kinesis/src/protocols/Aws_json1_1.ts +++ b/clients/client-kinesis/src/protocols/Aws_json1_1.ts @@ -2580,7 +2580,7 @@ const serializeAws_json1_1TagKeyList = (input: string[], context: __SerdeContext }); }; -const serializeAws_json1_1TagMap = (input: { [key: string]: string }, context: __SerdeContext): any => { +const serializeAws_json1_1TagMap = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; diff --git a/clients/client-kms/src/models/models_0.ts b/clients/client-kms/src/models/models_0.ts index 8c4f2edc13a3..b00f17b24494 100644 --- a/clients/client-kms/src/models/models_0.ts +++ b/clients/client-kms/src/models/models_0.ts @@ -682,14 +682,14 @@ export interface GrantConstraints { * context in the request includes the key-value pairs specified in this constraint, although it * can include additional key-value pairs.

*/ - EncryptionContextSubset?: { [key: string]: string }; + EncryptionContextSubset?: Record; /** *

A list of key-value pairs that must match the encryption context in the cryptographic operation * request. The grant allows the operation only when the encryption context in the request is the * same as the encryption context specified in this constraint.

*/ - EncryptionContextEquals?: { [key: string]: string }; + EncryptionContextEquals?: Record; } export namespace GrantConstraints { @@ -1823,7 +1823,7 @@ export interface DecryptRequest { *

For more information, see * Encryption context in the Key Management Service Developer Guide.

*/ - EncryptionContext?: { [key: string]: string }; + EncryptionContext?: Record; /** *

A list of grant tokens.

@@ -2439,7 +2439,7 @@ export interface EncryptRequest { *

For more information, see * Encryption context in the Key Management Service Developer Guide.

*/ - EncryptionContext?: { [key: string]: string }; + EncryptionContext?: Record; /** *

A list of grant tokens.

@@ -2552,7 +2552,7 @@ export interface GenerateDataKeyRequest { *

For more information, see * Encryption context in the Key Management Service Developer Guide.

*/ - EncryptionContext?: { [key: string]: string }; + EncryptionContext?: Record; /** *

Specifies the length of the data key in bytes. For example, use the value 64 to generate a @@ -2626,7 +2626,7 @@ export interface GenerateDataKeyPairRequest { *

For more information, see * Encryption context in the Key Management Service Developer Guide.

*/ - EncryptionContext?: { [key: string]: string }; + EncryptionContext?: Record; /** *

Specifies the symmetric encryption KMS key that encrypts the private key in the data key @@ -2727,7 +2727,7 @@ export interface GenerateDataKeyPairWithoutPlaintextRequest { *

For more information, see * Encryption context in the Key Management Service Developer Guide.

*/ - EncryptionContext?: { [key: string]: string }; + EncryptionContext?: Record; /** *

Specifies the symmetric encryption KMS key that encrypts the private key in the data key @@ -2850,7 +2850,7 @@ export interface GenerateDataKeyWithoutPlaintextRequest { *

For more information, see * Encryption context in the Key Management Service Developer Guide.

*/ - EncryptionContext?: { [key: string]: string }; + EncryptionContext?: Record; /** *

The length of the data key. Use AES_128 to generate a 128-bit symmetric key, @@ -4091,7 +4091,7 @@ export interface ReEncryptRequest { *

For more information, see * Encryption context in the Key Management Service Developer Guide.

*/ - SourceEncryptionContext?: { [key: string]: string }; + SourceEncryptionContext?: Record; /** *

Specifies the KMS key that KMS will use to decrypt the ciphertext before it is @@ -4165,7 +4165,7 @@ export interface ReEncryptRequest { *

For more information, see * Encryption context in the Key Management Service Developer Guide.

*/ - DestinationEncryptionContext?: { [key: string]: string }; + DestinationEncryptionContext?: Record; /** *

Specifies the encryption algorithm that KMS will use to decrypt the ciphertext before it diff --git a/clients/client-kms/src/protocols/Aws_json1_1.ts b/clients/client-kms/src/protocols/Aws_json1_1.ts index 0fd8d49b44e3..2287e1df1417 100644 --- a/clients/client-kms/src/protocols/Aws_json1_1.ts +++ b/clients/client-kms/src/protocols/Aws_json1_1.ts @@ -4456,7 +4456,7 @@ const serializeAws_json1_1EnableKeyRotationRequest = ( }; }; -const serializeAws_json1_1EncryptionContextType = (input: { [key: string]: string }, context: __SerdeContext): any => { +const serializeAws_json1_1EncryptionContextType = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -5180,11 +5180,8 @@ const deserializeAws_json1_1EncryptionAlgorithmSpecList = ( return retVal; }; -const deserializeAws_json1_1EncryptionContextType = ( - output: any, - context: __SerdeContext -): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +const deserializeAws_json1_1EncryptionContextType = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } diff --git a/clients/client-lakeformation/src/models/models_0.ts b/clients/client-lakeformation/src/models/models_0.ts index 80add1c4e98e..7bdf65836910 100644 --- a/clients/client-lakeformation/src/models/models_0.ts +++ b/clients/client-lakeformation/src/models/models_0.ts @@ -3020,7 +3020,7 @@ export interface StorageOptimizer { /** *

A map of the storage optimizer configuration. Currently contains only one key-value pair: is_enabled indicates true or false for acceleration.

*/ - Config?: { [key: string]: string }; + Config?: Record; /** *

A message that contains information about any error (if present).

@@ -3476,7 +3476,7 @@ export interface QueryPlanningContext { /** *

A map consisting of key-value pairs.

*/ - QueryParameters?: { [key: string]: string }; + QueryParameters?: Record; /** *

The transaction ID at which to read the table contents. If this transaction is not committed, the read will be treated as part of that transaction and will see its writes. If this transaction has aborted, an error will be returned. If not set, defaults to the most recent committed transaction. Cannot be specified along with QueryAsOfTime.

@@ -3764,7 +3764,7 @@ export interface UpdateTableStorageOptimizerRequest { /** *

Name of the table for which to enable the storage optimizer.

*/ - StorageOptimizerConfig: { [key: string]: { [key: string]: string } } | undefined; + StorageOptimizerConfig: Record> | undefined; } export namespace UpdateTableStorageOptimizerRequest { diff --git a/clients/client-lakeformation/src/protocols/Aws_restJson1.ts b/clients/client-lakeformation/src/protocols/Aws_restJson1.ts index 8406f1836f04..d0faf6ebc47b 100644 --- a/clients/client-lakeformation/src/protocols/Aws_restJson1.ts +++ b/clients/client-lakeformation/src/protocols/Aws_restJson1.ts @@ -4582,7 +4582,7 @@ const serializeAws_restJson1PrincipalPermissionsList = ( }); }; -const serializeAws_restJson1QueryParameterMap = (input: { [key: string]: string }, context: __SerdeContext): any => { +const serializeAws_restJson1QueryParameterMap = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -4648,10 +4648,7 @@ const serializeAws_restJson1RowFilter = (input: RowFilter, context: __SerdeConte }; }; -const serializeAws_restJson1StorageOptimizerConfig = ( - input: { [key: string]: string }, - context: __SerdeContext -): any => { +const serializeAws_restJson1StorageOptimizerConfig = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -4664,7 +4661,7 @@ const serializeAws_restJson1StorageOptimizerConfig = ( }; const serializeAws_restJson1StorageOptimizerConfigMap = ( - input: { [key: string]: { [key: string]: string } }, + input: Record>, context: __SerdeContext ): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [OptimizerType | string, any]) => { @@ -5379,8 +5376,8 @@ const deserializeAws_restJson1StorageOptimizer = (output: any, context: __SerdeC const deserializeAws_restJson1StorageOptimizerConfig = ( output: any, context: __SerdeContext -): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } diff --git a/clients/client-lambda/src/models/models_0.ts b/clients/client-lambda/src/models/models_0.ts index 4d539196ea31..911d248ff39e 100644 --- a/clients/client-lambda/src/models/models_0.ts +++ b/clients/client-lambda/src/models/models_0.ts @@ -446,7 +446,7 @@ export interface AliasRoutingConfiguration { /** *

The second version, and the percentage of traffic that's routed to it.

*/ - AdditionalVersionWeights?: { [key: string]: number }; + AdditionalVersionWeights?: Record; } export namespace AliasRoutingConfiguration { @@ -825,7 +825,7 @@ export interface SelfManagedEventSource { *

The list of bootstrap servers for your Kafka brokers in the following format: "KAFKA_BOOTSTRAP_SERVERS": * ["abc.xyz.com:xxxx","abc2.xyz.com:xxxx"].

*/ - Endpoints?: { [key: string]: string[] }; + Endpoints?: Record; } export namespace SelfManagedEventSource { @@ -1384,7 +1384,7 @@ export interface Environment { *

Environment variable key-value pairs. For more information, see * Using Lambda environment variables.

*/ - Variables?: { [key: string]: string }; + Variables?: Record; } export namespace Environment { @@ -1666,7 +1666,7 @@ export interface CreateFunctionRequest { *

A list of tags to apply to the * function.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; /** *

A list of function layers @@ -1747,7 +1747,7 @@ export interface EnvironmentResponse { /** *

Environment variable key-value pairs.

*/ - Variables?: { [key: string]: string }; + Variables?: Record; /** *

Error messages for environment variables that couldn't be applied.

@@ -2882,7 +2882,7 @@ export interface GetFunctionResponse { /** *

The function's tags.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; /** *

The function's reserved @@ -5109,7 +5109,7 @@ export interface ListTagsResponse { /** *

The function's tags.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; } export namespace ListTagsResponse { @@ -5768,7 +5768,7 @@ export interface TagResourceRequest { /** *

A list of tags to apply to the function.

*/ - Tags: { [key: string]: string } | undefined; + Tags: Record | undefined; } export namespace TagResourceRequest { diff --git a/clients/client-lambda/src/protocols/Aws_restJson1.ts b/clients/client-lambda/src/protocols/Aws_restJson1.ts index 545d516f1511..23b85cc4d5ab 100644 --- a/clients/client-lambda/src/protocols/Aws_restJson1.ts +++ b/clients/client-lambda/src/protocols/Aws_restJson1.ts @@ -8273,7 +8273,7 @@ const deserializeAws_restJson1UnsupportedMediaTypeExceptionResponse = async ( }; const serializeAws_restJson1AdditionalVersionWeights = ( - input: { [key: string]: number }, + input: Record, context: __SerdeContext ): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { @@ -8429,7 +8429,7 @@ const serializeAws_restJson1EndpointLists = (input: string[], context: __SerdeCo }); }; -const serializeAws_restJson1Endpoints = (input: { [key: string]: string[] }, context: __SerdeContext): any => { +const serializeAws_restJson1Endpoints = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [EndPointType | string, any]) => { if (value === null) { return acc; @@ -8448,7 +8448,7 @@ const serializeAws_restJson1Environment = (input: Environment, context: __SerdeC }; }; -const serializeAws_restJson1EnvironmentVariables = (input: { [key: string]: string }, context: __SerdeContext): any => { +const serializeAws_restJson1EnvironmentVariables = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -8678,7 +8678,7 @@ const serializeAws_restJson1SubnetIds = (input: string[], context: __SerdeContex }); }; -const serializeAws_restJson1Tags = (input: { [key: string]: string }, context: __SerdeContext): any => { +const serializeAws_restJson1Tags = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -8738,8 +8738,8 @@ const deserializeAws_restJson1AccountUsage = (output: any, context: __SerdeConte const deserializeAws_restJson1AdditionalVersionWeights = ( output: any, context: __SerdeContext -): { [key: string]: number } => { - return Object.entries(output).reduce((acc: { [key: string]: number }, [key, value]: [string, any]) => { +): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -8955,19 +8955,16 @@ const deserializeAws_restJson1EndpointLists = (output: any, context: __SerdeCont return retVal; }; -const deserializeAws_restJson1Endpoints = (output: any, context: __SerdeContext): { [key: string]: string[] } => { - return Object.entries(output).reduce( - (acc: { [key: string]: string[] }, [key, value]: [EndPointType | string, any]) => { - if (value === null) { - return acc; - } - return { - ...acc, - [key]: deserializeAws_restJson1EndpointLists(value, context), - }; - }, - {} - ); +const deserializeAws_restJson1Endpoints = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [EndPointType | string, any]) => { + if (value === null) { + return acc; + } + return { + ...acc, + [key]: deserializeAws_restJson1EndpointLists(value, context), + }; + }, {}); }; const deserializeAws_restJson1EnvironmentError = (output: any, context: __SerdeContext): EnvironmentError => { @@ -8990,11 +8987,8 @@ const deserializeAws_restJson1EnvironmentResponse = (output: any, context: __Ser } as any; }; -const deserializeAws_restJson1EnvironmentVariables = ( - output: any, - context: __SerdeContext -): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +const deserializeAws_restJson1EnvironmentVariables = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -9575,8 +9569,8 @@ const deserializeAws_restJson1SubnetIds = (output: any, context: __SerdeContext) return retVal; }; -const deserializeAws_restJson1Tags = (output: any, context: __SerdeContext): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +const deserializeAws_restJson1Tags = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } diff --git a/clients/client-lex-model-building-service/src/models/models_0.ts b/clients/client-lex-model-building-service/src/models/models_0.ts index 4ebaf3520223..7fc96bcb136d 100644 --- a/clients/client-lex-model-building-service/src/models/models_0.ts +++ b/clients/client-lex-model-building-service/src/models/models_0.ts @@ -1970,7 +1970,7 @@ export interface GetBotChannelAssociationResponse { *

Provides information that the messaging platform needs to * communicate with the Amazon Lex bot.

*/ - botConfiguration?: { [key: string]: string }; + botConfiguration?: Record; /** *

The status of the bot channel.

@@ -2106,7 +2106,7 @@ export interface BotChannelAssociation { *

Provides information necessary to communicate with the messaging * platform.

*/ - botConfiguration?: { [key: string]: string }; + botConfiguration?: Record; /** *

The status of the bot channel.

diff --git a/clients/client-lex-model-building-service/src/protocols/Aws_restJson1.ts b/clients/client-lex-model-building-service/src/protocols/Aws_restJson1.ts index c2259a9b6e5a..a838c595befd 100644 --- a/clients/client-lex-model-building-service/src/protocols/Aws_restJson1.ts +++ b/clients/client-lex-model-building-service/src/protocols/Aws_restJson1.ts @@ -5333,8 +5333,8 @@ const deserializeAws_restJson1BuiltinSlotTypeMetadataList = ( const deserializeAws_restJson1ChannelConfigurationMap = ( output: any, context: __SerdeContext -): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } diff --git a/clients/client-lex-models-v2/src/models/models_0.ts b/clients/client-lex-models-v2/src/models/models_0.ts index 270c40ac4fb8..edfd4239b3a3 100644 --- a/clients/client-lex-models-v2/src/models/models_0.ts +++ b/clients/client-lex-models-v2/src/models/models_0.ts @@ -614,7 +614,7 @@ export interface BotImportSpecification { * update tags. To update tags, use the TagResource * operation.

*/ - botTags?: { [key: string]: string }; + botTags?: Record; /** *

A list of tags to add to the test alias for a bot. You can only add @@ -622,7 +622,7 @@ export interface BotImportSpecification { * operation to update tags. To update tags on the test alias, use the * TagResource operation.

*/ - testBotAliasTags?: { [key: string]: string }; + testBotAliasTags?: Record; } export namespace BotImportSpecification { @@ -1734,7 +1734,7 @@ export interface CreateBotRequest { * update tags. To update tags, use the TagResource * operation.

*/ - botTags?: { [key: string]: string }; + botTags?: Record; /** *

A list of tags to add to the test alias for a bot. You can only add @@ -1742,7 +1742,7 @@ export interface CreateBotRequest { * operation to update tags. To update tags on the test alias, use the * TagResource operation.

*/ - testBotAliasTags?: { [key: string]: string }; + testBotAliasTags?: Record; } export namespace CreateBotRequest { @@ -1803,12 +1803,12 @@ export interface CreateBotResponse { /** *

A list of tags associated with the bot.

*/ - botTags?: { [key: string]: string }; + botTags?: Record; /** *

A list of tags associated with the test alias for the bot.

*/ - testBotAliasTags?: { [key: string]: string }; + testBotAliasTags?: Record; } export namespace CreateBotResponse { @@ -1865,7 +1865,7 @@ export interface CreateBotAliasRequest { * this parameter to specify a specific Lambda function to run different * functions in different locales.

*/ - botAliasLocaleSettings?: { [key: string]: BotAliasLocaleSettings }; + botAliasLocaleSettings?: Record; /** *

Specifies whether Amazon Lex logs text and audio for a conversation with @@ -1892,7 +1892,7 @@ export interface CreateBotAliasRequest { * operation to update the tags on a bot alias. To update tags, use the * TagResource operation.

*/ - tags?: { [key: string]: string }; + tags?: Record; } export namespace CreateBotAliasRequest { @@ -1928,7 +1928,7 @@ export interface CreateBotAliasResponse { /** *

Configuration information for a specific locale.

*/ - botAliasLocaleSettings?: { [key: string]: BotAliasLocaleSettings }; + botAliasLocaleSettings?: Record; /** *

The conversation log settings specified for the alias.

@@ -1964,7 +1964,7 @@ export interface CreateBotAliasResponse { /** *

A list of tags associated with the bot alias.

*/ - tags?: { [key: string]: string }; + tags?: Record; } export namespace CreateBotAliasResponse { @@ -2135,7 +2135,7 @@ export interface CreateBotVersionRequest { * version for each locale. When you specify a source version, the locale * data is copied from the source version to the new version.

*/ - botVersionLocaleSpecification: { [key: string]: BotVersionLocaleDetails } | undefined; + botVersionLocaleSpecification: Record | undefined; } export namespace CreateBotVersionRequest { @@ -2166,7 +2166,7 @@ export interface CreateBotVersionResponse { /** *

The source versions used for each locale in the new version.

*/ - botVersionLocaleSpecification?: { [key: string]: BotVersionLocaleDetails }; + botVersionLocaleSpecification?: Record; /** *

When you send a request to create or update a bot, Amazon Lex sets the @@ -3320,7 +3320,7 @@ export interface CreateResourcePolicyStatementRequest { * SourceArn global condition key.

*

For more information, see IAM JSON policy elements: Condition .

*/ - condition?: { [key: string]: { [key: string]: string } }; + condition?: Record>; /** *

The identifier of the revision of the policy to edit. If this @@ -4972,7 +4972,7 @@ export interface DescribeBotAliasResponse { /** *

The locale settings that are unique to the alias.

*/ - botAliasLocaleSettings?: { [key: string]: BotAliasLocaleSettings }; + botAliasLocaleSettings?: Record; /** *

Specifics of how Amazon Lex logs text and audio conversations with the @@ -8391,7 +8391,7 @@ export interface ListTagsForResourceResponse { /** *

The tags associated with a resource.

*/ - tags?: { [key: string]: string }; + tags?: Record; } export namespace ListTagsForResourceResponse { @@ -8726,7 +8726,7 @@ export interface TagResourceRequest { *

A list of tag keys to add to the resource. If a tag key already * exists, the existing value is replaced with the new value.

*/ - tags: { [key: string]: string } | undefined; + tags: Record | undefined; } export namespace TagResourceRequest { @@ -8921,7 +8921,7 @@ export interface UpdateBotAliasRequest { *

The new Lambda functions to use in each locale for the bot * alias.

*/ - botAliasLocaleSettings?: { [key: string]: BotAliasLocaleSettings }; + botAliasLocaleSettings?: Record; /** *

The new settings for storing conversation logs in Amazon CloudWatch Logs and @@ -8975,7 +8975,7 @@ export interface UpdateBotAliasResponse { *

The updated Lambda functions to use in each locale for the bot * alias.

*/ - botAliasLocaleSettings?: { [key: string]: BotAliasLocaleSettings }; + botAliasLocaleSettings?: Record; /** *

The updated settings for storing conversation logs in Amazon CloudWatch Logs and diff --git a/clients/client-lex-models-v2/src/protocols/Aws_restJson1.ts b/clients/client-lex-models-v2/src/protocols/Aws_restJson1.ts index d7c3d047792e..59c0b334308d 100644 --- a/clients/client-lex-models-v2/src/protocols/Aws_restJson1.ts +++ b/clients/client-lex-models-v2/src/protocols/Aws_restJson1.ts @@ -8871,7 +8871,7 @@ const serializeAws_restJson1BotAliasLocaleSettings = (input: BotAliasLocaleSetti }; const serializeAws_restJson1BotAliasLocaleSettingsMap = ( - input: { [key: string]: BotAliasLocaleSettings }, + input: Record, context: __SerdeContext ): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { @@ -9004,7 +9004,7 @@ const serializeAws_restJson1BotVersionLocaleDetails = ( }; const serializeAws_restJson1BotVersionLocaleSpecification = ( - input: { [key: string]: BotVersionLocaleDetails }, + input: Record, context: __SerdeContext ): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { @@ -9077,7 +9077,7 @@ const serializeAws_restJson1CodeHookSpecification = (input: CodeHookSpecificatio }; }; -const serializeAws_restJson1ConditionKeyValueMap = (input: { [key: string]: string }, context: __SerdeContext): any => { +const serializeAws_restJson1ConditionKeyValueMap = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -9090,7 +9090,7 @@ const serializeAws_restJson1ConditionKeyValueMap = (input: { [key: string]: stri }; const serializeAws_restJson1ConditionMap = ( - input: { [key: string]: { [key: string]: string } }, + input: Record>, context: __SerdeContext ): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { @@ -9972,7 +9972,7 @@ const serializeAws_restJson1SynonymList = (input: SampleValue[], context: __Serd }); }; -const serializeAws_restJson1TagMap = (input: { [key: string]: string }, context: __SerdeContext): any => { +const serializeAws_restJson1TagMap = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -10227,19 +10227,16 @@ const deserializeAws_restJson1BotAliasLocaleSettings = ( const deserializeAws_restJson1BotAliasLocaleSettingsMap = ( output: any, context: __SerdeContext -): { [key: string]: BotAliasLocaleSettings } => { - return Object.entries(output).reduce( - (acc: { [key: string]: BotAliasLocaleSettings }, [key, value]: [string, any]) => { - if (value === null) { - return acc; - } - return { - ...acc, - [key]: deserializeAws_restJson1BotAliasLocaleSettings(value, context), - }; - }, - {} - ); +): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { + if (value === null) { + return acc; + } + return { + ...acc, + [key]: deserializeAws_restJson1BotAliasLocaleSettings(value, context), + }; + }, {}); }; const deserializeAws_restJson1BotAliasSummary = (output: any, context: __SerdeContext): BotAliasSummary => { @@ -10487,19 +10484,16 @@ const deserializeAws_restJson1BotVersionLocaleDetails = ( const deserializeAws_restJson1BotVersionLocaleSpecification = ( output: any, context: __SerdeContext -): { [key: string]: BotVersionLocaleDetails } => { - return Object.entries(output).reduce( - (acc: { [key: string]: BotVersionLocaleDetails }, [key, value]: [string, any]) => { - if (value === null) { - return acc; - } - return { - ...acc, - [key]: deserializeAws_restJson1BotVersionLocaleDetails(value, context), - }; - }, - {} - ); +): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { + if (value === null) { + return acc; + } + return { + ...acc, + [key]: deserializeAws_restJson1BotVersionLocaleDetails(value, context), + }; + }, {}); }; const deserializeAws_restJson1BotVersionSummary = (output: any, context: __SerdeContext): BotVersionSummary => { @@ -11511,8 +11505,8 @@ const deserializeAws_restJson1SynonymList = (output: any, context: __SerdeContex return retVal; }; -const deserializeAws_restJson1TagMap = (output: any, context: __SerdeContext): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +const deserializeAws_restJson1TagMap = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } diff --git a/clients/client-lex-runtime-service/src/models/models_0.ts b/clients/client-lex-runtime-service/src/models/models_0.ts index 7a4d11331892..474f47dc7824 100644 --- a/clients/client-lex-runtime-service/src/models/models_0.ts +++ b/clients/client-lex-runtime-service/src/models/models_0.ts @@ -61,7 +61,7 @@ export interface ActiveContext { *

State variables for the current context. You can use these values as * default values for slots in subsequent events.

*/ - parameters: { [key: string]: string } | undefined; + parameters: Record | undefined; } export namespace ActiveContext { @@ -340,7 +340,7 @@ export interface DialogAction { /** *

Map of the slots that have been gathered and their values.

*/ - slots?: { [key: string]: string }; + slots?: Record; /** *

The name of the slot that should be elicited from the user.

@@ -445,7 +445,7 @@ export interface IntentSummary { /** *

Map of the slots that have been gathered and their values.

*/ - slots?: { [key: string]: string }; + slots?: Record; /** *

The status of the intent after the user responds to the confirmation @@ -561,7 +561,7 @@ export interface GetSessionResponse { * information. It contains application information passed between Amazon Lex and * a client application.

*/ - sessionAttributes?: { [key: string]: string }; + sessionAttributes?: Record; /** *

A unique identifier for the session.

@@ -1262,7 +1262,7 @@ export interface PostTextRequest { * application.

*

For more information, see Setting Session Attributes.

*/ - sessionAttributes?: { [key: string]: string }; + sessionAttributes?: Record; /** *

Request-specific information passed between Amazon Lex and a client @@ -1272,7 +1272,7 @@ export interface PostTextRequest { * x-amz-lex:.

*

For more information, see Setting Request Attributes.

*/ - requestAttributes?: { [key: string]: string }; + requestAttributes?: Record; /** *

The text that the user entered (Amazon Lex interprets this text).

@@ -1346,7 +1346,7 @@ export interface PredictedIntent { /** *

The slot and slot values associated with the predicted intent.

*/ - slots?: { [key: string]: string }; + slots?: Record; } export namespace PredictedIntent { @@ -1530,13 +1530,13 @@ export interface PostTextResponse { * specify a valueSelectionStrategy, the default is * ORIGINAL_VALUE.

*/ - slots?: { [key: string]: string }; + slots?: Record; /** *

A map of key-value pairs representing the session-specific context * information.

*/ - sessionAttributes?: { [key: string]: string }; + sessionAttributes?: Record; /** *

The message to convey to the user. The message can come from the bot's @@ -1728,7 +1728,7 @@ export interface PutSessionRequest { * information. It contains application information passed between Amazon Lex and * a client application.

*/ - sessionAttributes?: { [key: string]: string }; + sessionAttributes?: Record; /** *

Sets the next action that the bot should take to fulfill the diff --git a/clients/client-lex-runtime-service/src/protocols/Aws_restJson1.ts b/clients/client-lex-runtime-service/src/protocols/Aws_restJson1.ts index f8f9197bb437..e56076d85984 100644 --- a/clients/client-lex-runtime-service/src/protocols/Aws_restJson1.ts +++ b/clients/client-lex-runtime-service/src/protocols/Aws_restJson1.ts @@ -1060,7 +1060,7 @@ const serializeAws_restJson1ActiveContext = (input: ActiveContext, context: __Se }; const serializeAws_restJson1ActiveContextParametersMap = ( - input: { [key: string]: string }, + input: Record, context: __SerdeContext ): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { @@ -1138,7 +1138,7 @@ const serializeAws_restJson1IntentSummaryList = (input: IntentSummary[], context }); }; -const serializeAws_restJson1StringMap = (input: { [key: string]: string }, context: __SerdeContext): any => { +const serializeAws_restJson1StringMap = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -1167,8 +1167,8 @@ const deserializeAws_restJson1ActiveContext = (output: any, context: __SerdeCont const deserializeAws_restJson1ActiveContextParametersMap = ( output: any, context: __SerdeContext -): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -1337,8 +1337,8 @@ const deserializeAws_restJson1SentimentResponse = (output: any, context: __Serde } as any; }; -const deserializeAws_restJson1StringMap = (output: any, context: __SerdeContext): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +const deserializeAws_restJson1StringMap = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } diff --git a/clients/client-lex-runtime-v2/src/models/models_0.ts b/clients/client-lex-runtime-v2/src/models/models_0.ts index 87d20a02274b..2ccefc823724 100644 --- a/clients/client-lex-runtime-v2/src/models/models_0.ts +++ b/clients/client-lex-runtime-v2/src/models/models_0.ts @@ -81,7 +81,7 @@ export interface ActiveContext { * list of contexts for the session. If you specify an empty list, all * contexts for the session are cleared.

*/ - contextAttributes: { [key: string]: string } | undefined; + contextAttributes: Record | undefined; } export namespace ActiveContext { @@ -772,7 +772,7 @@ export interface RuntimeHints { * accuracy.

*

The intent name and slot name must exist.

*/ - slotHints?: { [key: string]: { [key: string]: RuntimeHintDetails } }; + slotHints?: Record>; } export namespace RuntimeHints { @@ -1431,7 +1431,7 @@ export interface Intent { * to the value of the slot. If a slot has not been filled, the value is * null.

*/ - slots?: { [key: string]: Slot }; + slots?: Record; /** *

Contains fulfillment information for the intent.

@@ -1520,7 +1520,7 @@ export interface SessionState { * information. It contains application information passed between Amazon Lex V2 * and a client application.

*/ - sessionAttributes?: { [key: string]: string }; + sessionAttributes?: Record; /** *

A unique identifier for a specific request.

@@ -1560,7 +1560,7 @@ export interface ConfigurationEvent { * attributes. Don't create any request attributes for prefix * x-amz-lex:.

*/ - requestAttributes?: { [key: string]: string }; + requestAttributes?: Record; /** *

The message that Amazon Lex V2 returns in the response can be either text or @@ -1696,7 +1696,7 @@ export interface PutSessionRequest { * attributes. Don't create any request attributes with the prefix * x-amz-lex:.

*/ - requestAttributes?: { [key: string]: string }; + requestAttributes?: Record; /** *

The message that Amazon Lex V2 returns in the response can be either text or @@ -1761,7 +1761,7 @@ export interface RecognizeTextRequest { * attributes. Don't create any request attributes with the prefix * x-amz-lex:.

*/ - requestAttributes?: { [key: string]: string }; + requestAttributes?: Record; } export namespace RecognizeTextRequest { @@ -2061,7 +2061,7 @@ export interface IntentResultEvent { /** *

The attributes sent in the request.

*/ - requestAttributes?: { [key: string]: string }; + requestAttributes?: Record; /** *

The identifier of the session in use.

@@ -2115,7 +2115,7 @@ export interface RecognizeTextResponse { /** *

The attributes sent in the request.

*/ - requestAttributes?: { [key: string]: string }; + requestAttributes?: Record; /** *

The identifier of the session in use.

diff --git a/clients/client-lex-runtime-v2/src/protocols/Aws_restJson1.ts b/clients/client-lex-runtime-v2/src/protocols/Aws_restJson1.ts index 54b441bb3bb0..f99b1ad90347 100644 --- a/clients/client-lex-runtime-v2/src/protocols/Aws_restJson1.ts +++ b/clients/client-lex-runtime-v2/src/protocols/Aws_restJson1.ts @@ -1402,7 +1402,7 @@ const serializeAws_restJson1ActiveContext = (input: ActiveContext, context: __Se }; const serializeAws_restJson1ActiveContextParametersMap = ( - input: { [key: string]: string }, + input: Record, context: __SerdeContext ): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { @@ -1635,7 +1635,7 @@ const serializeAws_restJson1Slot = (input: Slot, context: __SerdeContext): any = }; const serializeAws_restJson1SlotHintsIntentMap = ( - input: { [key: string]: { [key: string]: RuntimeHintDetails } }, + input: Record>, context: __SerdeContext ): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { @@ -1650,7 +1650,7 @@ const serializeAws_restJson1SlotHintsIntentMap = ( }; const serializeAws_restJson1SlotHintsSlotMap = ( - input: { [key: string]: RuntimeHintDetails }, + input: Record, context: __SerdeContext ): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { @@ -1664,7 +1664,7 @@ const serializeAws_restJson1SlotHintsSlotMap = ( }, {}); }; -const serializeAws_restJson1Slots = (input: { [key: string]: Slot }, context: __SerdeContext): any => { +const serializeAws_restJson1Slots = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -1704,7 +1704,7 @@ const serializeAws_restJson1StringList = (input: string[], context: __SerdeConte }); }; -const serializeAws_restJson1StringMap = (input: { [key: string]: string }, context: __SerdeContext): any => { +const serializeAws_restJson1StringMap = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -1771,8 +1771,8 @@ const deserializeAws_restJson1ActiveContext = (output: any, context: __SerdeCont const deserializeAws_restJson1ActiveContextParametersMap = ( output: any, context: __SerdeContext -): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -2099,9 +2099,9 @@ const deserializeAws_restJson1Slot = (output: any, context: __SerdeContext): Slo const deserializeAws_restJson1SlotHintsIntentMap = ( output: any, context: __SerdeContext -): { [key: string]: { [key: string]: RuntimeHintDetails } } => { +): Record> => { return Object.entries(output).reduce( - (acc: { [key: string]: { [key: string]: RuntimeHintDetails } }, [key, value]: [string, any]) => { + (acc: Record>, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -2117,8 +2117,8 @@ const deserializeAws_restJson1SlotHintsIntentMap = ( const deserializeAws_restJson1SlotHintsSlotMap = ( output: any, context: __SerdeContext -): { [key: string]: RuntimeHintDetails } => { - return Object.entries(output).reduce((acc: { [key: string]: RuntimeHintDetails }, [key, value]: [string, any]) => { +): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -2129,8 +2129,8 @@ const deserializeAws_restJson1SlotHintsSlotMap = ( }, {}); }; -const deserializeAws_restJson1Slots = (output: any, context: __SerdeContext): { [key: string]: Slot } => { - return Object.entries(output).reduce((acc: { [key: string]: Slot }, [key, value]: [string, any]) => { +const deserializeAws_restJson1Slots = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -2239,8 +2239,8 @@ const deserializeAws_restJson1StringList = (output: any, context: __SerdeContext return retVal; }; -const deserializeAws_restJson1StringMap = (output: any, context: __SerdeContext): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +const deserializeAws_restJson1StringMap = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } diff --git a/clients/client-lightsail/src/models/models_0.ts b/clients/client-lightsail/src/models/models_0.ts index 35f78f79cd24..c7ba6cbd7c1e 100644 --- a/clients/client-lightsail/src/models/models_0.ts +++ b/clients/client-lightsail/src/models/models_0.ts @@ -3253,12 +3253,12 @@ export interface Container { /** *

The environment variables of the container.

*/ - environment?: { [key: string]: string }; + environment?: Record; /** *

The open firewall ports of the container.

*/ - ports?: { [key: string]: ContainerServiceProtocol | string }; + ports?: Record; } export namespace Container { @@ -3436,7 +3436,7 @@ export interface ContainerServiceDeployment { /** *

An object that describes the configuration for the containers of the deployment.

*/ - containers?: { [key: string]: Container }; + containers?: Record; /** *

An object that describes the endpoint of the deployment.

@@ -3794,7 +3794,7 @@ export interface ContainerService { * information about how to specify public domain names for your Lightsail container * service.

*/ - publicDomainNames?: { [key: string]: string[] }; + publicDomainNames?: Record; /** *

The publicly accessible URL of the container service.

@@ -3864,7 +3864,7 @@ export interface ContainerServiceDeploymentRequest { /** *

An object that describes the configuration for the containers of the deployment.

*/ - containers?: { [key: string]: Container }; + containers?: Record; /** *

An object that describes the endpoint of the deployment.

@@ -4622,7 +4622,7 @@ export interface CreateContainerServiceRequest { *

You can specify public domain names using a string to array map as shown in the example * later on this page.

*/ - publicDomainNames?: { [key: string]: string[] }; + publicDomainNames?: Record; /** *

An object that describes a deployment for the container service.

@@ -4680,7 +4680,7 @@ export interface CreateContainerServiceDeploymentRequest { *

An object that describes the settings of the containers that will be launched on the * container service.

*/ - containers?: { [key: string]: Container }; + containers?: Record; /** *

An object that describes the settings of the public endpoint for the container @@ -5426,7 +5426,7 @@ export interface DomainEntry { * response. It is now deprecated.

* */ - options?: { [key: string]: string }; + options?: Record; } export namespace DomainEntry { @@ -5600,7 +5600,7 @@ export interface CreateInstancesFromSnapshotRequest { /** *

An object containing information about one or more disk mappings.

*/ - attachedDiskMapping?: { [key: string]: DiskMap[] }; + attachedDiskMapping?: Record; /** *

The Availability Zone where you want to create your instances. Use the following @@ -8833,7 +8833,7 @@ export interface GetContainerAPIMetadataResult { *

Metadata about Lightsail containers, such as the current version of the Lightsail * Control (lightsailctl) plugin.

*/ - metadata?: { [key: string]: string }[]; + metadata?: Record[]; } export namespace GetContainerAPIMetadataResult { diff --git a/clients/client-lightsail/src/models/models_1.ts b/clients/client-lightsail/src/models/models_1.ts index 92626ac20e8f..da8ea6b452a6 100644 --- a/clients/client-lightsail/src/models/models_1.ts +++ b/clients/client-lightsail/src/models/models_1.ts @@ -1835,7 +1835,7 @@ export interface LoadBalancer { *

A string to string map of the configuration options for your load balancer. Valid values * are listed below.

*/ - configurationOptions?: { [key: string]: string }; + configurationOptions?: Record; /** *

The IP address type of the load balancer.

@@ -5750,7 +5750,7 @@ export interface UpdateContainerServiceRequest { *

You can specify public domain names using a string to array map as shown in the example * later on this page.

*/ - publicDomainNames?: { [key: string]: string[] }; + publicDomainNames?: Record; /** *

An object to describe the configuration for the container service to access private diff --git a/clients/client-lightsail/src/protocols/Aws_json1_1.ts b/clients/client-lightsail/src/protocols/Aws_json1_1.ts index 79a92a550368..d7f629f068a5 100644 --- a/clients/client-lightsail/src/protocols/Aws_json1_1.ts +++ b/clients/client-lightsail/src/protocols/Aws_json1_1.ts @@ -12121,7 +12121,7 @@ const serializeAws_json1_1AttachDiskRequest = (input: AttachDiskRequest, context }; }; -const serializeAws_json1_1AttachedDiskMap = (input: { [key: string]: DiskMap[] }, context: __SerdeContext): any => { +const serializeAws_json1_1AttachedDiskMap = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -12283,7 +12283,7 @@ const serializeAws_json1_1Container = (input: Container, context: __SerdeContext }; }; -const serializeAws_json1_1ContainerMap = (input: { [key: string]: Container }, context: __SerdeContext): any => { +const serializeAws_json1_1ContainerMap = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -12337,7 +12337,7 @@ const serializeAws_json1_1ContainerServiceHealthCheckConfig = ( }; const serializeAws_json1_1ContainerServicePublicDomains = ( - input: { [key: string]: string[] }, + input: Record, context: __SerdeContext ): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { @@ -13049,7 +13049,7 @@ const serializeAws_json1_1DomainEntry = (input: DomainEntry, context: __SerdeCon }; }; -const serializeAws_json1_1DomainEntryOptions = (input: { [key: string]: string }, context: __SerdeContext): any => { +const serializeAws_json1_1DomainEntryOptions = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -13098,7 +13098,7 @@ const serializeAws_json1_1EndpointRequest = (input: EndpointRequest, context: __ }; }; -const serializeAws_json1_1Environment = (input: { [key: string]: string }, context: __SerdeContext): any => { +const serializeAws_json1_1Environment = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -13857,7 +13857,7 @@ const serializeAws_json1_1PortInfoList = (input: PortInfo[], context: __SerdeCon }; const serializeAws_json1_1PortMap = ( - input: { [key: string]: ContainerServiceProtocol | string }, + input: Record, context: __SerdeContext ): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { @@ -15057,8 +15057,8 @@ const deserializeAws_json1_1ContainerImageList = (output: any, context: __SerdeC return retVal; }; -const deserializeAws_json1_1ContainerMap = (output: any, context: __SerdeContext): { [key: string]: Container } => { - return Object.entries(output).reduce((acc: { [key: string]: Container }, [key, value]: [string, any]) => { +const deserializeAws_json1_1ContainerMap = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -15235,8 +15235,8 @@ const deserializeAws_json1_1ContainerServiceLogEventList = ( const deserializeAws_json1_1ContainerServiceMetadataEntry = ( output: any, context: __SerdeContext -): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -15250,7 +15250,7 @@ const deserializeAws_json1_1ContainerServiceMetadataEntry = ( const deserializeAws_json1_1ContainerServiceMetadataEntryList = ( output: any, context: __SerdeContext -): { [key: string]: string }[] => { +): Record[] => { const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { @@ -15291,8 +15291,8 @@ const deserializeAws_json1_1ContainerServicePowerList = ( const deserializeAws_json1_1ContainerServicePublicDomains = ( output: any, context: __SerdeContext -): { [key: string]: string[] } => { - return Object.entries(output).reduce((acc: { [key: string]: string[] }, [key, value]: [string, any]) => { +): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -16135,8 +16135,8 @@ const deserializeAws_json1_1DomainEntryList = (output: any, context: __SerdeCont return retVal; }; -const deserializeAws_json1_1DomainEntryOptions = (output: any, context: __SerdeContext): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +const deserializeAws_json1_1DomainEntryOptions = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -16207,8 +16207,8 @@ const deserializeAws_json1_1EnableAddOnResult = (output: any, context: __SerdeCo } as any; }; -const deserializeAws_json1_1Environment = (output: any, context: __SerdeContext): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +const deserializeAws_json1_1Environment = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -17496,9 +17496,9 @@ const deserializeAws_json1_1LoadBalancer = (output: any, context: __SerdeContext const deserializeAws_json1_1LoadBalancerConfigurationOptions = ( output: any, context: __SerdeContext -): { [key: string]: string } => { +): Record => { return Object.entries(output).reduce( - (acc: { [key: string]: string }, [key, value]: [LoadBalancerAttributeName | string, any]) => { + (acc: Record, [key, value]: [LoadBalancerAttributeName | string, any]) => { if (value === null) { return acc; } @@ -17970,9 +17970,9 @@ const deserializeAws_json1_1PortList = (output: any, context: __SerdeContext): n const deserializeAws_json1_1PortMap = ( output: any, context: __SerdeContext -): { [key: string]: ContainerServiceProtocol | string } => { +): Record => { return Object.entries(output).reduce( - (acc: { [key: string]: ContainerServiceProtocol | string }, [key, value]: [string, any]) => { + (acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } diff --git a/clients/client-location/src/models/models_0.ts b/clients/client-location/src/models/models_0.ts index 79d9d3d6ff72..3ccce4e1a087 100644 --- a/clients/client-location/src/models/models_0.ts +++ b/clients/client-location/src/models/models_0.ts @@ -456,7 +456,7 @@ export interface DevicePositionUpdate { *

Format: "key" : "value" *

*/ - PositionProperties?: { [key: string]: string }; + PositionProperties?: Record; } export namespace DevicePositionUpdate { @@ -607,7 +607,7 @@ export interface DevicePosition { /** *

The properties associated with the position.

*/ - PositionProperties?: { [key: string]: string }; + PositionProperties?: Record; } export namespace DevicePosition { @@ -1970,7 +1970,7 @@ export interface CreateGeofenceCollectionRequest { * * */ - Tags?: { [key: string]: string }; + Tags?: Record; /** *

A key identifier for an AWS KMS customer managed key. Enter a key ID, key ARN, alias name, or alias ARN. @@ -2169,7 +2169,7 @@ export interface CreateMapRequest { * * */ - Tags?: { [key: string]: string }; + Tags?: Record; } export namespace CreateMapRequest { @@ -2362,7 +2362,7 @@ export interface CreatePlaceIndexRequest { * * */ - Tags?: { [key: string]: string }; + Tags?: Record; } export namespace CreatePlaceIndexRequest { @@ -2499,7 +2499,7 @@ export interface CreateRouteCalculatorRequest { * * */ - Tags?: { [key: string]: string }; + Tags?: Record; } export namespace CreateRouteCalculatorRequest { @@ -2630,7 +2630,7 @@ export interface CreateTrackerRequest { * * */ - Tags?: { [key: string]: string }; + Tags?: Record; /** *

Specifies the position filtering for the tracker resource.

@@ -2909,7 +2909,7 @@ export interface DescribeGeofenceCollectionResponse { /** *

Displays the key, value pairs of tags associated with this resource.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; /** *

The timestamp for when the geofence resource was created in ISO 8601 @@ -2995,7 +2995,7 @@ export interface DescribeMapResponse { /** *

Tags associated with the map resource.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; /** *

The timestamp for when the map resource was created in ISO 8601 @@ -3104,7 +3104,7 @@ export interface DescribePlaceIndexResponse { /** *

Tags associated with place index resource.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; } export namespace DescribePlaceIndexResponse { @@ -3209,7 +3209,7 @@ export interface DescribeRouteCalculatorResponse { /** *

Tags associated with route calculator resource.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; } export namespace DescribeRouteCalculatorResponse { @@ -3278,7 +3278,7 @@ export interface DescribeTrackerResponse { /** *

The tags associated with the tracker resource.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; /** *

The timestamp for when the tracker resource was created in ISO 8601 @@ -3384,7 +3384,7 @@ export interface ListTagsForResourceResponse { * * */ - Tags?: { [key: string]: string }; + Tags?: Record; } export namespace ListTagsForResourceResponse { @@ -3436,7 +3436,7 @@ export interface TagResourceRequest { * * */ - Tags: { [key: string]: string } | undefined; + Tags: Record | undefined; } export namespace TagResourceRequest { @@ -3991,7 +3991,7 @@ export interface GetDevicePositionResponse { /** *

The properties associated with the position.

*/ - PositionProperties?: { [key: string]: string }; + PositionProperties?: Record; } export namespace GetDevicePositionResponse { @@ -4406,7 +4406,7 @@ export interface ListDevicePositionsResponseEntry { /** *

The properties associated with the position.

*/ - PositionProperties?: { [key: string]: string }; + PositionProperties?: Record; } export namespace ListDevicePositionsResponseEntry { diff --git a/clients/client-location/src/protocols/Aws_restJson1.ts b/clients/client-location/src/protocols/Aws_restJson1.ts index 5f506b3425ab..a2652fbfc6d1 100644 --- a/clients/client-location/src/protocols/Aws_restJson1.ts +++ b/clients/client-location/src/protocols/Aws_restJson1.ts @@ -5968,7 +5968,7 @@ const serializeAws_restJson1PositionList = (input: number[][], context: __SerdeC }); }; -const serializeAws_restJson1PropertyMap = (input: { [key: string]: string }, context: __SerdeContext): any => { +const serializeAws_restJson1PropertyMap = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -5980,7 +5980,7 @@ const serializeAws_restJson1PropertyMap = (input: { [key: string]: string }, con }, {}); }; -const serializeAws_restJson1TagMap = (input: { [key: string]: string }, context: __SerdeContext): any => { +const serializeAws_restJson1TagMap = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -6745,8 +6745,8 @@ const deserializeAws_restJson1PositionList = (output: any, context: __SerdeConte return retVal; }; -const deserializeAws_restJson1PropertyMap = (output: any, context: __SerdeContext): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +const deserializeAws_restJson1PropertyMap = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -6972,8 +6972,8 @@ const deserializeAws_restJson1StepList = (output: any, context: __SerdeContext): return retVal; }; -const deserializeAws_restJson1TagMap = (output: any, context: __SerdeContext): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +const deserializeAws_restJson1TagMap = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } diff --git a/clients/client-lookoutmetrics/src/models/models_0.ts b/clients/client-lookoutmetrics/src/models/models_0.ts index bd6b58b9692c..c8d62270e4a5 100644 --- a/clients/client-lookoutmetrics/src/models/models_0.ts +++ b/clients/client-lookoutmetrics/src/models/models_0.ts @@ -431,7 +431,7 @@ export interface AlertSummary { /** *

The alert's tags.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; } export namespace AlertSummary { @@ -554,7 +554,7 @@ export interface AnomalyDetectorSummary { /** *

The detector's tags.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; } export namespace AnomalyDetectorSummary { @@ -1116,7 +1116,7 @@ export interface CreateAlertRequest { /** *

A list of tags to apply to the alert.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; } export namespace CreateAlertRequest { @@ -1212,7 +1212,7 @@ export interface CreateAnomalyDetectorRequest { /** *

A list of tags to apply to the anomaly detector.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; } export namespace CreateAnomalyDetectorRequest { @@ -1659,7 +1659,7 @@ export interface CreateMetricSetRequest { /** *

A list of tags to apply to the dataset.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; } export namespace CreateMetricSetRequest { @@ -2904,7 +2904,7 @@ export interface MetricSetSummary { /** *

The dataset's tags.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; } export namespace MetricSetSummary { @@ -2958,7 +2958,7 @@ export interface ListTagsForResourceResponse { /** *

The resource's tags.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; } export namespace ListTagsForResourceResponse { @@ -3013,7 +3013,7 @@ export interface TagResourceRequest { * symbols: _.:/=+@- *

*/ - Tags: { [key: string]: string } | undefined; + Tags: Record | undefined; } export namespace TagResourceRequest { diff --git a/clients/client-lookoutmetrics/src/protocols/Aws_restJson1.ts b/clients/client-lookoutmetrics/src/protocols/Aws_restJson1.ts index 929d901976fa..94d1015dfa4b 100644 --- a/clients/client-lookoutmetrics/src/protocols/Aws_restJson1.ts +++ b/clients/client-lookoutmetrics/src/protocols/Aws_restJson1.ts @@ -3157,7 +3157,7 @@ const serializeAws_restJson1SubnetIdList = (input: string[], context: __SerdeCon }); }; -const serializeAws_restJson1TagMap = (input: { [key: string]: string }, context: __SerdeContext): any => { +const serializeAws_restJson1TagMap = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -4040,8 +4040,8 @@ const deserializeAws_restJson1SubnetIdList = (output: any, context: __SerdeConte return retVal; }; -const deserializeAws_restJson1TagMap = (output: any, context: __SerdeContext): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +const deserializeAws_restJson1TagMap = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } diff --git a/clients/client-machine-learning/src/models/models_0.ts b/clients/client-machine-learning/src/models/models_0.ts index bbb6af179a55..7d1570fc1f96 100644 --- a/clients/client-machine-learning/src/models/models_0.ts +++ b/clients/client-machine-learning/src/models/models_0.ts @@ -1263,7 +1263,7 @@ export interface CreateMLModelInput { * * */ - Parameters?: { [key: string]: string }; + Parameters?: Record; /** *

The DataSource that points to the training data.

@@ -2471,7 +2471,7 @@ export namespace DescribeEvaluationsInput { *

*/ export interface PerformanceMetrics { - Properties?: { [key: string]: string }; + Properties?: Record; } export namespace PerformanceMetrics { @@ -2904,7 +2904,7 @@ export interface MLModel { * * */ - TrainingParameters?: { [key: string]: string }; + TrainingParameters?: Record; /** *

The location of the data file or directory in Amazon Simple Storage Service (Amazon S3).

@@ -3644,7 +3644,7 @@ export interface GetMLModelOutput { * * */ - TrainingParameters?: { [key: string]: string }; + TrainingParameters?: Record; /** *

The location of the data file or directory in Amazon Simple Storage Service (Amazon S3).

@@ -3763,7 +3763,7 @@ export interface PredictInput { /** *

A map of variable name-value pairs that represent an observation.

*/ - Record: { [key: string]: string } | undefined; + Record: Record | undefined; PredictEndpoint: string | undefined; } @@ -3847,12 +3847,12 @@ export interface Prediction { /** *

Provides the raw classification score corresponding to each label.

*/ - predictedScores?: { [key: string]: number }; + predictedScores?: Record; /** *

Provides any additional details regarding the prediction.

*/ - details?: { [key: string]: string }; + details?: Record; } export namespace Prediction { diff --git a/clients/client-machine-learning/src/protocols/Aws_json1_1.ts b/clients/client-machine-learning/src/protocols/Aws_json1_1.ts index 5a70b75a8e00..d1aec56a611f 100644 --- a/clients/client-machine-learning/src/protocols/Aws_json1_1.ts +++ b/clients/client-machine-learning/src/protocols/Aws_json1_1.ts @@ -2335,7 +2335,7 @@ const serializeAws_json1_1RDSDataSpec = (input: RDSDataSpec, context: __SerdeCon }; }; -const serializeAws_json1_1Record = (input: { [key: string]: string }, context: __SerdeContext): any => { +const serializeAws_json1_1Record = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -2427,7 +2427,7 @@ const serializeAws_json1_1TagList = (input: Tag[], context: __SerdeContext): any }); }; -const serializeAws_json1_1TrainingParameters = (input: { [key: string]: string }, context: __SerdeContext): any => { +const serializeAws_json1_1TrainingParameters = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -2749,9 +2749,9 @@ const deserializeAws_json1_1DescribeTagsOutput = (output: any, context: __SerdeC } as any; }; -const deserializeAws_json1_1DetailsMap = (output: any, context: __SerdeContext): { [key: string]: string } => { +const deserializeAws_json1_1DetailsMap = (output: any, context: __SerdeContext): Record => { return Object.entries(output).reduce( - (acc: { [key: string]: string }, [key, value]: [DetailsAttributes | string, any]) => { + (acc: Record, [key, value]: [DetailsAttributes | string, any]) => { if (value === null) { return acc; } @@ -3081,8 +3081,8 @@ const deserializeAws_json1_1PerformanceMetrics = (output: any, context: __SerdeC const deserializeAws_json1_1PerformanceMetricsProperties = ( output: any, context: __SerdeContext -): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -3187,11 +3187,8 @@ const deserializeAws_json1_1ResourceNotFoundException = ( } as any; }; -const deserializeAws_json1_1ScoreValuePerLabelMap = ( - output: any, - context: __SerdeContext -): { [key: string]: number } => { - return Object.entries(output).reduce((acc: { [key: string]: number }, [key, value]: [string, any]) => { +const deserializeAws_json1_1ScoreValuePerLabelMap = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -3230,8 +3227,8 @@ const deserializeAws_json1_1TagList = (output: any, context: __SerdeContext): Ta return retVal; }; -const deserializeAws_json1_1TrainingParameters = (output: any, context: __SerdeContext): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +const deserializeAws_json1_1TrainingParameters = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } diff --git a/clients/client-macie2/src/models/models_0.ts b/clients/client-macie2/src/models/models_0.ts index 08a68531ae2a..a1db1ed6b6d7 100644 --- a/clients/client-macie2/src/models/models_0.ts +++ b/clients/client-macie2/src/models/models_0.ts @@ -2159,7 +2159,7 @@ export interface FindingsFilterListItem { /** *

A map of key-value pairs that identifies the tags (keys and values) that are associated with the filter.

*/ - tags?: { [key: string]: string }; + tags?: Record; } export namespace FindingsFilterListItem { @@ -2757,7 +2757,7 @@ export interface Member { /** *

A map of key-value pairs that identifies the tags (keys and values) that are associated with the account in Amazon Macie.

*/ - tags?: { [key: string]: string }; + tags?: Record; /** *

The date and time, in UTC and extended ISO 8601 format, of the most recent change to the status of the relationship between the account and the administrator account.

@@ -3818,7 +3818,7 @@ export interface CreateClassificationJobRequest { /** *

A map of key-value pairs that specifies the tags to associate with the job.

A job can have a maximum of 50 tags. Each tag consists of a tag key and an associated tag value. The maximum length of a tag key is 128 characters. The maximum length of a tag value is 256 characters.

*/ - tags?: { [key: string]: string }; + tags?: Record; } export namespace CreateClassificationJobRequest { @@ -3925,7 +3925,7 @@ export interface CreateCustomDataIdentifierRequest { /** *

A map of key-value pairs that specifies the tags to associate with the custom data identifier.

A custom data identifier can have a maximum of 50 tags. Each tag consists of a tag key and an associated tag value. The maximum length of a tag key is 128 characters. The maximum length of a tag value is 256 characters.

*/ - tags?: { [key: string]: string }; + tags?: Record; } export namespace CreateCustomDataIdentifierRequest { @@ -4009,7 +4009,7 @@ export interface FindingCriteria { /** *

A condition that specifies the property, operator, and one or more values to use to filter the results.

*/ - criterion?: { [key: string]: CriterionAdditionalProperties }; + criterion?: Record; } export namespace FindingCriteria { @@ -4055,7 +4055,7 @@ export interface CreateFindingsFilterRequest { /** *

A map of key-value pairs that specifies the tags to associate with the filter.

A findings filter can have a maximum of 50 tags. Each tag consists of a tag key and an associated tag value. The maximum length of a tag key is 128 characters. The maximum length of a tag value is 256 characters.

*/ - tags?: { [key: string]: string }; + tags?: Record; } export namespace CreateFindingsFilterRequest { @@ -4139,7 +4139,7 @@ export interface CreateMemberRequest { /** *

A map of key-value pairs that specifies the tags to associate with the account in Amazon Macie.

An account can have a maximum of 50 tags. Each tag consists of a tag key and an associated tag value. The maximum length of a tag key is 128 characters. The maximum length of a tag value is 256 characters.

*/ - tags?: { [key: string]: string }; + tags?: Record; } export namespace CreateMemberRequest { @@ -4343,7 +4343,7 @@ export interface DescribeBucketsRequest { /** *

The criteria to use to filter the query results.

*/ - criteria?: { [key: string]: BucketCriteriaAdditionalProperties }; + criteria?: Record; /** *

The maximum number of items to include in each page of the response. The default value is 50.

@@ -4525,7 +4525,7 @@ export interface DescribeClassificationJobResponse { /** *

A map of key-value pairs that specifies which tags (keys and values) are associated with the classification job.

*/ - tags?: { [key: string]: string }; + tags?: Record; /** *

If the current status of the job is USER_PAUSED, specifies when the job was paused and when the job or job run will expire and be cancelled if it isn't resumed. This value is present only if the value for jobStatus is USER_PAUSED.

@@ -5024,7 +5024,7 @@ export interface GetCustomDataIdentifierResponse { /** *

A map of key-value pairs that identifies the tags (keys and values) that are associated with the custom data identifier.

*/ - tags?: { [key: string]: string }; + tags?: Record; } export namespace GetCustomDataIdentifierResponse { @@ -5152,7 +5152,7 @@ export interface GetFindingsFilterResponse { /** *

A map of key-value pairs that identifies the tags (keys and values) that are associated with the filter.

*/ - tags?: { [key: string]: string }; + tags?: Record; } export namespace GetFindingsFilterResponse { @@ -5425,7 +5425,7 @@ export interface GetMemberResponse { /** *

A map of key-value pairs that identifies the tags (keys and values) that are associated with the member account in Amazon Macie.

*/ - tags?: { [key: string]: string }; + tags?: Record; /** *

The date and time, in UTC and extended ISO 8601 format, of the most recent change to the status of the relationship between the account and the administrator account.

@@ -6008,7 +6008,7 @@ export interface ListTagsForResourceResponse { /** *

A map of key-value pairs that identifies the tags (keys and values) that are associated with the resource.

*/ - tags?: { [key: string]: string }; + tags?: Record; } export namespace ListTagsForResourceResponse { @@ -6219,7 +6219,7 @@ export interface TagResourceRequest { /** *

A map of key-value pairs that specifies the tags to associate with the resource.

A resource can have a maximum of 50 tags. Each tag consists of a tag key and an associated tag value. The maximum length of a tag key is 128 characters. The maximum length of a tag value is 256 characters.

*/ - tags: { [key: string]: string } | undefined; + tags: Record | undefined; } export namespace TagResourceRequest { diff --git a/clients/client-macie2/src/protocols/Aws_restJson1.ts b/clients/client-macie2/src/protocols/Aws_restJson1.ts index 3e3830d35173..64e6b2302b64 100644 --- a/clients/client-macie2/src/protocols/Aws_restJson1.ts +++ b/clients/client-macie2/src/protocols/Aws_restJson1.ts @@ -5892,7 +5892,7 @@ const serializeAws_restJson1AccountDetail = (input: AccountDetail, context: __Se }; const serializeAws_restJson1BucketCriteria = ( - input: { [key: string]: BucketCriteriaAdditionalProperties }, + input: Record, context: __SerdeContext ): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { @@ -5963,7 +5963,7 @@ const serializeAws_restJson1CriteriaForJob = (input: CriteriaForJob, context: __ }; const serializeAws_restJson1Criterion = ( - input: { [key: string]: CriterionAdditionalProperties }, + input: Record, context: __SerdeContext ): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { @@ -6302,7 +6302,7 @@ const serializeAws_restJson1TagCriterionPairForJob = (input: TagCriterionPairFor }; }; -const serializeAws_restJson1TagMap = (input: { [key: string]: string }, context: __SerdeContext): any => { +const serializeAws_restJson1TagMap = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -7013,9 +7013,9 @@ const deserializeAws_restJson1CriteriaForJob = (output: any, context: __SerdeCon const deserializeAws_restJson1Criterion = ( output: any, context: __SerdeContext -): { [key: string]: CriterionAdditionalProperties } => { +): Record => { return Object.entries(output).reduce( - (acc: { [key: string]: CriterionAdditionalProperties }, [key, value]: [string, any]) => { + (acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -7938,8 +7938,8 @@ const deserializeAws_restJson1TagCriterionPairForJob = ( } as any; }; -const deserializeAws_restJson1TagMap = (output: any, context: __SerdeContext): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +const deserializeAws_restJson1TagMap = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } diff --git a/clients/client-managedblockchain/src/models/models_0.ts b/clients/client-managedblockchain/src/models/models_0.ts index 786f428f7010..07ead0c12949 100644 --- a/clients/client-managedblockchain/src/models/models_0.ts +++ b/clients/client-managedblockchain/src/models/models_0.ts @@ -209,7 +209,7 @@ export interface MemberConfiguration { *

Tags assigned to the member. Tags consist of a key and optional value. For more information about tags, see Tagging Resources in the Amazon Managed Blockchain Hyperledger Fabric Developer Guide.

*

When specifying tags during creation, you can specify multiple key-value pairs in a single request, with an overall maximum of 50 tags added to each resource.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; /** *

The Amazon Resource Name (ARN) of the customer managed key in AWS Key Management Service (AWS KMS) to use for encryption at rest in the member. This parameter is inherited by any nodes that this member creates.

@@ -591,7 +591,7 @@ export interface CreateNetworkInput { *

When specifying tags during creation, you can specify multiple key-value pairs in a single request, with an overall maximum of 50 tags added to each resource.

*

For more information about tags, see Tagging Resources in the Amazon Managed Blockchain Ethereum Developer Guide, or Tagging Resources in the Amazon Managed Blockchain Hyperledger Fabric Developer Guide.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; } export namespace CreateNetworkInput { @@ -756,7 +756,7 @@ export interface CreateNodeInput { *

When specifying tags during creation, you can specify multiple key-value pairs in a single request, with an overall maximum of 50 tags added to each resource.

*

For more information about tags, see Tagging Resources in the Amazon Managed Blockchain Ethereum Developer Guide, or Tagging Resources in the Amazon Managed Blockchain Hyperledger Fabric Developer Guide.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; } export namespace CreateNodeInput { @@ -887,7 +887,7 @@ export interface CreateProposalInput { *

When specifying tags during creation, you can specify multiple key-value pairs in a single request, with an overall maximum of 50 tags added to each resource. If the proposal is for a network invitation, the invitation inherits the tags added to the proposal.

*

For more information about tags, see Tagging Resources in the Amazon Managed Blockchain Ethereum Developer Guide, or Tagging Resources in the Amazon Managed Blockchain Hyperledger Fabric Developer Guide.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; } export namespace CreateProposalInput { @@ -1158,7 +1158,7 @@ export interface Member { /** *

Tags assigned to the member. Tags consist of a key and optional value. For more information about tags, see Tagging Resources in the Amazon Managed Blockchain Hyperledger Fabric Developer Guide.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; /** *

The Amazon Resource Name (ARN) of the member. For more information about ARNs and their format, see Amazon Resource Names (ARNs) in the AWS General Reference.

@@ -1359,7 +1359,7 @@ export interface Network { *

Tags assigned to the network. Each tag consists of a key and optional value.

*

For more information about tags, see Tagging Resources in the Amazon Managed Blockchain Ethereum Developer Guide, or Tagging Resources in the Amazon Managed Blockchain Hyperledger Fabric Developer Guide.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; /** *

The Amazon Resource Name (ARN) of the network. For more information about ARNs and their format, see Amazon Resource Names (ARNs) in the AWS General Reference.

@@ -1602,7 +1602,7 @@ export interface Node { *

Tags assigned to the node. Each tag consists of a key and optional value.

*

For more information about tags, see Tagging Resources in the Amazon Managed Blockchain Ethereum Developer Guide, or Tagging Resources in the Amazon Managed Blockchain Hyperledger Fabric Developer Guide.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; /** *

The Amazon Resource Name (ARN) of the node. For more information about ARNs and their format, see Amazon Resource Names (ARNs) in the AWS General Reference.

@@ -1771,7 +1771,7 @@ export interface Proposal { *

Tags assigned to the proposal. Each tag consists of a key and optional value.

*

For more information about tags, see Tagging Resources in the Amazon Managed Blockchain Ethereum Developer Guide, or Tagging Resources in the Amazon Managed Blockchain Hyperledger Fabric Developer Guide.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; /** *

The Amazon Resource Name (ARN) of the proposal. For more information about ARNs and their format, see Amazon Resource Names (ARNs) in the AWS General Reference.

@@ -2572,7 +2572,7 @@ export interface ListTagsForResourceResponse { /** *

The tags assigned to the resource.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; } export namespace ListTagsForResourceResponse { @@ -2620,7 +2620,7 @@ export interface TagResourceRequest { /** *

The tags to assign to the specified resource. Tag values can be empty, for example, "MyTagKey" : "". You can specify multiple key-value pairs in a single request, with an overall maximum of 50 tags added to each resource.

*/ - Tags: { [key: string]: string } | undefined; + Tags: Record | undefined; } export namespace TagResourceRequest { diff --git a/clients/client-managedblockchain/src/protocols/Aws_restJson1.ts b/clients/client-managedblockchain/src/protocols/Aws_restJson1.ts index ffcec2937afc..71203902c7a2 100644 --- a/clients/client-managedblockchain/src/protocols/Aws_restJson1.ts +++ b/clients/client-managedblockchain/src/protocols/Aws_restJson1.ts @@ -2443,7 +2443,7 @@ const serializeAws_restJson1ApprovalThresholdPolicy = ( }; }; -const serializeAws_restJson1InputTagMap = (input: { [key: string]: string }, context: __SerdeContext): any => { +const serializeAws_restJson1InputTagMap = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -3035,8 +3035,8 @@ const deserializeAws_restJson1NodeSummaryList = (output: any, context: __SerdeCo return retVal; }; -const deserializeAws_restJson1OutputTagMap = (output: any, context: __SerdeContext): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +const deserializeAws_restJson1OutputTagMap = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } diff --git a/clients/client-marketplace-commerce-analytics/src/models/models_0.ts b/clients/client-marketplace-commerce-analytics/src/models/models_0.ts index 0d78c9655aa3..6744660d6ee1 100644 --- a/clients/client-marketplace-commerce-analytics/src/models/models_0.ts +++ b/clients/client-marketplace-commerce-analytics/src/models/models_0.ts @@ -184,7 +184,7 @@ export interface GenerateDataSetRequest { * key-value pairs can be used to correlated responses with tracking * information from other systems. */ - customerDefinedValues?: { [key: string]: string }; + customerDefinedValues?: Record; } export namespace GenerateDataSetRequest { @@ -292,7 +292,7 @@ export interface StartSupportDataExportRequest { * (Optional) Key-value pairs which will be returned, unmodified, in the * Amazon SNS notification message and the data set metadata file. */ - customerDefinedValues?: { [key: string]: string }; + customerDefinedValues?: Record; } export namespace StartSupportDataExportRequest { diff --git a/clients/client-marketplace-commerce-analytics/src/protocols/Aws_json1_1.ts b/clients/client-marketplace-commerce-analytics/src/protocols/Aws_json1_1.ts index 6ec7155b30b9..69b5961720ef 100644 --- a/clients/client-marketplace-commerce-analytics/src/protocols/Aws_json1_1.ts +++ b/clients/client-marketplace-commerce-analytics/src/protocols/Aws_json1_1.ts @@ -150,7 +150,7 @@ const deserializeAws_json1_1MarketplaceCommerceAnalyticsExceptionResponse = asyn return __decorateServiceException(exception, body); }; -const serializeAws_json1_1CustomerDefinedValues = (input: { [key: string]: string }, context: __SerdeContext): any => { +const serializeAws_json1_1CustomerDefinedValues = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; diff --git a/clients/client-marketplace-entitlement-service/src/models/models_0.ts b/clients/client-marketplace-entitlement-service/src/models/models_0.ts index 2c4d8000bd9d..64b82b4df220 100644 --- a/clients/client-marketplace-entitlement-service/src/models/models_0.ts +++ b/clients/client-marketplace-entitlement-service/src/models/models_0.ts @@ -25,7 +25,7 @@ export interface GetEntitlementsRequest { * unioned for each value in the value list, and then * intersected for each filter key.

*/ - Filter?: { [key: string]: string[] }; + Filter?: Record; /** *

For paginated calls to GetEntitlements, pass the NextToken from the previous diff --git a/clients/client-marketplace-entitlement-service/src/protocols/Aws_json1_1.ts b/clients/client-marketplace-entitlement-service/src/protocols/Aws_json1_1.ts index 41aae3c0a2f5..2b0a5183228d 100644 --- a/clients/client-marketplace-entitlement-service/src/protocols/Aws_json1_1.ts +++ b/clients/client-marketplace-entitlement-service/src/protocols/Aws_json1_1.ts @@ -143,10 +143,7 @@ const serializeAws_json1_1FilterValueList = (input: string[], context: __SerdeCo }); }; -const serializeAws_json1_1GetEntitlementFilters = ( - input: { [key: string]: string[] }, - context: __SerdeContext -): any => { +const serializeAws_json1_1GetEntitlementFilters = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce( (acc: { [key: string]: any }, [key, value]: [GetEntitlementFilterName | string, any]) => { if (value === null) { diff --git a/clients/client-mediaconnect/src/models/models_0.ts b/clients/client-mediaconnect/src/models/models_0.ts index 1a1d3ca0824d..06b20ea6b601 100644 --- a/clients/client-mediaconnect/src/models/models_0.ts +++ b/clients/client-mediaconnect/src/models/models_0.ts @@ -2674,7 +2674,7 @@ export interface ListTagsForResourceResponse { /** * A map from tag keys to values. Tag keys can have a maximum character length of 128 characters, and tag values can have a maximum length of 256 characters. */ - Tags?: { [key: string]: string }; + Tags?: Record; } export namespace ListTagsForResourceResponse { @@ -3032,7 +3032,7 @@ export interface TagResourceRequest { /** * A map from tag keys to values. Tag keys can have a maximum character length of 128 characters, and tag values can have a maximum length of 256 characters. */ - Tags: { [key: string]: string } | undefined; + Tags: Record | undefined; } export namespace TagResourceRequest { diff --git a/clients/client-mediaconnect/src/protocols/Aws_restJson1.ts b/clients/client-mediaconnect/src/protocols/Aws_restJson1.ts index 0de77b42e85b..8216d1ee2e2f 100644 --- a/clients/client-mediaconnect/src/protocols/Aws_restJson1.ts +++ b/clients/client-mediaconnect/src/protocols/Aws_restJson1.ts @@ -3319,7 +3319,7 @@ const serializeAws_restJson1__listOfVpcInterfaceRequest = ( }); }; -const serializeAws_restJson1__mapOf__string = (input: { [key: string]: string }, context: __SerdeContext): any => { +const serializeAws_restJson1__mapOf__string = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -3833,8 +3833,8 @@ const deserializeAws_restJson1__listOfVpcInterface = (output: any, context: __Se return retVal; }; -const deserializeAws_restJson1__mapOf__string = (output: any, context: __SerdeContext): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +const deserializeAws_restJson1__mapOf__string = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } diff --git a/clients/client-mediaconvert/src/models/models_0.ts b/clients/client-mediaconvert/src/models/models_0.ts index 4e5fe6286a7f..5c3ca5c5635e 100644 --- a/clients/client-mediaconvert/src/models/models_0.ts +++ b/clients/client-mediaconvert/src/models/models_0.ts @@ -3313,17 +3313,17 @@ export interface Input { /** * Use audio selector groups to combine multiple sidecar audio inputs so that you can assign them to a single output audio tab (AudioDescription). Note that, if you're working with embedded audio, it's simpler to assign multiple input tracks into a single audio selector rather than use an audio selector group. */ - AudioSelectorGroups?: { [key: string]: AudioSelectorGroup }; + AudioSelectorGroups?: Record; /** * Use Audio selectors (AudioSelectors) to specify a track or set of tracks from the input that you will use in your outputs. You can use multiple Audio selectors per input. */ - AudioSelectors?: { [key: string]: AudioSelector }; + AudioSelectors?: Record; /** * Use captions selectors to specify the captions data from your input that you use in your outputs. You can use up to 20 captions selectors per input. */ - CaptionSelectors?: { [key: string]: CaptionSelector }; + CaptionSelectors?: Record; /** * Use Cropping selection (crop) to specify the video area that the service will include in the output video frame. If you specify a value here, it will override any value that you specify in the output setting Cropping selection (crop). @@ -3437,17 +3437,17 @@ export interface InputTemplate { /** * Use audio selector groups to combine multiple sidecar audio inputs so that you can assign them to a single output audio tab (AudioDescription). Note that, if you're working with embedded audio, it's simpler to assign multiple input tracks into a single audio selector rather than use an audio selector group. */ - AudioSelectorGroups?: { [key: string]: AudioSelectorGroup }; + AudioSelectorGroups?: Record; /** * Use Audio selectors (AudioSelectors) to specify a track or set of tracks from the input that you will use in your outputs. You can use multiple Audio selectors per input. */ - AudioSelectors?: { [key: string]: AudioSelector }; + AudioSelectors?: Record; /** * Use captions selectors to specify the captions data from your input that you use in your outputs. You can use up to 20 captions selectors per input. */ - CaptionSelectors?: { [key: string]: CaptionSelector }; + CaptionSelectors?: Record; /** * Use Cropping selection (crop) to specify the video area that the service will include in the output video frame. If you specify a value here, it will override any value that you specify in the output setting Cropping selection (crop). diff --git a/clients/client-mediaconvert/src/models/models_1.ts b/clients/client-mediaconvert/src/models/models_1.ts index e024d3a067af..8376e59445b2 100644 --- a/clients/client-mediaconvert/src/models/models_1.ts +++ b/clients/client-mediaconvert/src/models/models_1.ts @@ -4209,7 +4209,7 @@ export interface Job { /** * User-defined metadata that you want to associate with an MediaConvert job. You specify metadata in key/value pairs. */ - UserMetadata?: { [key: string]: string }; + UserMetadata?: Record; } export namespace Job { @@ -4843,12 +4843,12 @@ export interface CreateJobRequest { /** * Optional. The tags that you want to add to the resource. You can tag resources with a key-value pair or with only a key. Use standard AWS tags on your job for automatic integration with AWS services and for custom integrations and workflows. */ - Tags?: { [key: string]: string }; + Tags?: Record; /** * Optional. User-defined metadata that you want to associate with an MediaConvert job. You specify metadata in key/value pairs. Use only for existing integrations or workflows that rely on job metadata tags. Otherwise, we recommend that you use standard AWS tags. */ - UserMetadata?: { [key: string]: string }; + UserMetadata?: Record; } export namespace CreateJobRequest { @@ -4925,7 +4925,7 @@ export interface CreateJobTemplateRequest { /** * The tags that you want to add to the resource. You can tag resources with a key-value pair or with only a key. */ - Tags?: { [key: string]: string }; + Tags?: Record; } export namespace CreateJobTemplateRequest { @@ -4977,7 +4977,7 @@ export interface CreatePresetRequest { /** * The tags that you want to add to the resource. You can tag resources with a key-value pair or with only a key. */ - Tags?: { [key: string]: string }; + Tags?: Record; } export namespace CreatePresetRequest { @@ -5063,7 +5063,7 @@ export interface CreateQueueRequest { /** * The tags that you want to add to the resource. You can tag resources with a key-value pair or with only a key. */ - Tags?: { [key: string]: string }; + Tags?: Record; } export namespace CreateQueueRequest { diff --git a/clients/client-mediaconvert/src/models/models_2.ts b/clients/client-mediaconvert/src/models/models_2.ts index 32f59e476ecb..79fa66e5970f 100644 --- a/clients/client-mediaconvert/src/models/models_2.ts +++ b/clients/client-mediaconvert/src/models/models_2.ts @@ -219,7 +219,7 @@ export interface ResourceTags { /** * The tags for the resource. */ - Tags?: { [key: string]: string }; + Tags?: Record; } export namespace ResourceTags { @@ -288,7 +288,7 @@ export interface TagResourceRequest { /** * The tags that you want to add to the resource. You can tag resources with a key-value pair or with only a key. */ - Tags: { [key: string]: string } | undefined; + Tags: Record | undefined; } export namespace TagResourceRequest { diff --git a/clients/client-mediaconvert/src/protocols/Aws_restJson1.ts b/clients/client-mediaconvert/src/protocols/Aws_restJson1.ts index f016e38ed9c9..06f6dda18b62 100644 --- a/clients/client-mediaconvert/src/protocols/Aws_restJson1.ts +++ b/clients/client-mediaconvert/src/protocols/Aws_restJson1.ts @@ -3209,7 +3209,7 @@ const serializeAws_restJson1__listOfTeletextPageType = ( }); }; -const serializeAws_restJson1__mapOf__string = (input: { [key: string]: string }, context: __SerdeContext): any => { +const serializeAws_restJson1__mapOf__string = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -3222,7 +3222,7 @@ const serializeAws_restJson1__mapOf__string = (input: { [key: string]: string }, }; const serializeAws_restJson1__mapOfAudioSelector = ( - input: { [key: string]: AudioSelector }, + input: Record, context: __SerdeContext ): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { @@ -3237,7 +3237,7 @@ const serializeAws_restJson1__mapOfAudioSelector = ( }; const serializeAws_restJson1__mapOfAudioSelectorGroup = ( - input: { [key: string]: AudioSelectorGroup }, + input: Record, context: __SerdeContext ): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { @@ -3252,7 +3252,7 @@ const serializeAws_restJson1__mapOfAudioSelectorGroup = ( }; const serializeAws_restJson1__mapOfCaptionSelector = ( - input: { [key: string]: CaptionSelector }, + input: Record, context: __SerdeContext ): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { @@ -6769,8 +6769,8 @@ const deserializeAws_restJson1__listOfTeletextPageType = ( return retVal; }; -const deserializeAws_restJson1__mapOf__string = (output: any, context: __SerdeContext): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +const deserializeAws_restJson1__mapOf__string = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -6784,8 +6784,8 @@ const deserializeAws_restJson1__mapOf__string = (output: any, context: __SerdeCo const deserializeAws_restJson1__mapOfAudioSelector = ( output: any, context: __SerdeContext -): { [key: string]: AudioSelector } => { - return Object.entries(output).reduce((acc: { [key: string]: AudioSelector }, [key, value]: [string, any]) => { +): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -6799,8 +6799,8 @@ const deserializeAws_restJson1__mapOfAudioSelector = ( const deserializeAws_restJson1__mapOfAudioSelectorGroup = ( output: any, context: __SerdeContext -): { [key: string]: AudioSelectorGroup } => { - return Object.entries(output).reduce((acc: { [key: string]: AudioSelectorGroup }, [key, value]: [string, any]) => { +): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -6814,8 +6814,8 @@ const deserializeAws_restJson1__mapOfAudioSelectorGroup = ( const deserializeAws_restJson1__mapOfCaptionSelector = ( output: any, context: __SerdeContext -): { [key: string]: CaptionSelector } => { - return Object.entries(output).reduce((acc: { [key: string]: CaptionSelector }, [key, value]: [string, any]) => { +): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } diff --git a/clients/client-medialive/src/models/models_0.ts b/clients/client-medialive/src/models/models_0.ts index c58c7446cbe8..a6354589b9ae 100644 --- a/clients/client-medialive/src/models/models_0.ts +++ b/clients/client-medialive/src/models/models_0.ts @@ -2962,7 +2962,7 @@ export interface ChannelSummary { /** * A collection of key-value pairs. */ - Tags?: { [key: string]: string }; + Tags?: Record; /** * Settings for any VPC outputs. @@ -3223,7 +3223,7 @@ export interface Input { /** * A collection of key-value pairs. */ - Tags?: { [key: string]: string }; + Tags?: Record; /** * The different types of inputs that AWS Elemental MediaLive supports. @@ -3598,7 +3598,7 @@ export interface InputSecurityGroup { /** * A collection of key-value pairs. */ - Tags?: { [key: string]: string }; + Tags?: Record; /** * Whitelist rules and their sync status @@ -3847,7 +3847,7 @@ export interface MultiplexSummary { /** * A collection of key-value pairs. */ - Tags?: { [key: string]: string }; + Tags?: Record; } export namespace MultiplexSummary { diff --git a/clients/client-medialive/src/models/models_1.ts b/clients/client-medialive/src/models/models_1.ts index f71c6cf1e9ca..655e5306b166 100644 --- a/clients/client-medialive/src/models/models_1.ts +++ b/clients/client-medialive/src/models/models_1.ts @@ -917,7 +917,7 @@ export interface Reservation { /** * A collection of key-value pairs */ - Tags?: { [key: string]: string }; + Tags?: Record; /** * Recurring usage charge for each reserved resource, e.g. '157.0' @@ -4104,7 +4104,7 @@ export interface Channel { /** * A collection of key-value pairs. */ - Tags?: { [key: string]: string }; + Tags?: Record; /** * Settings for VPC output @@ -4285,7 +4285,7 @@ export interface CreateChannelRequest { /** * A collection of key-value pairs. */ - Tags?: { [key: string]: string }; + Tags?: Record; /** * Settings for the VPC outputs @@ -4402,7 +4402,7 @@ export interface CreateInputRequest { /** * A collection of key-value pairs. */ - Tags?: { [key: string]: string }; + Tags?: Record; /** * The different types of inputs that AWS Elemental MediaLive supports. @@ -4453,7 +4453,7 @@ export interface CreateInputSecurityGroupRequest { /** * A collection of key-value pairs. */ - Tags?: { [key: string]: string }; + Tags?: Record; /** * List of IPv4 CIDR addresses to whitelist @@ -4551,7 +4551,7 @@ export interface CreateMultiplexRequest { /** * A collection of key-value pairs. */ - Tags?: { [key: string]: string }; + Tags?: Record; } export namespace CreateMultiplexRequest { @@ -4615,7 +4615,7 @@ export interface Multiplex { /** * A collection of key-value pairs. */ - Tags?: { [key: string]: string }; + Tags?: Record; } export namespace Multiplex { @@ -4955,7 +4955,7 @@ export interface CreatePartnerInputRequest { /** * A collection of key-value pairs. */ - Tags?: { [key: string]: string }; + Tags?: Record; } export namespace CreatePartnerInputRequest { @@ -4998,7 +4998,7 @@ export interface CreateTagsRequest { /** * Placeholder documentation for Tags */ - Tags?: { [key: string]: string }; + Tags?: Record; } export namespace CreateTagsRequest { @@ -5118,7 +5118,7 @@ export interface DeleteChannelResponse { /** * A collection of key-value pairs. */ - Tags?: { [key: string]: string }; + Tags?: Record; /** * Settings for VPC output @@ -5272,7 +5272,7 @@ export interface DeleteMultiplexResponse { /** * A collection of key-value pairs. */ - Tags?: { [key: string]: string }; + Tags?: Record; } export namespace DeleteMultiplexResponse { @@ -5453,7 +5453,7 @@ export interface DeleteReservationResponse { /** * A collection of key-value pairs */ - Tags?: { [key: string]: string }; + Tags?: Record; /** * Recurring usage charge for each reserved resource, e.g. '157.0' @@ -5635,7 +5635,7 @@ export interface DescribeChannelResponse { /** * A collection of key-value pairs. */ - Tags?: { [key: string]: string }; + Tags?: Record; /** * Settings for VPC output @@ -5750,7 +5750,7 @@ export interface DescribeInputResponse { /** * A collection of key-value pairs. */ - Tags?: { [key: string]: string }; + Tags?: Record; /** * The different types of inputs that AWS Elemental MediaLive supports. @@ -5969,7 +5969,7 @@ export interface DescribeInputSecurityGroupResponse { /** * A collection of key-value pairs. */ - Tags?: { [key: string]: string }; + Tags?: Record; /** * Whitelist rules and their sync status @@ -6057,7 +6057,7 @@ export interface DescribeMultiplexResponse { /** * A collection of key-value pairs. */ - Tags?: { [key: string]: string }; + Tags?: Record; } export namespace DescribeMultiplexResponse { @@ -6326,7 +6326,7 @@ export interface DescribeReservationResponse { /** * A collection of key-value pairs */ - Tags?: { [key: string]: string }; + Tags?: Record; /** * Recurring usage charge for each reserved resource, e.g. '157.0' @@ -6978,7 +6978,7 @@ export interface ListTagsForResourceResponse { /** * Placeholder documentation for Tags */ - Tags?: { [key: string]: string }; + Tags?: Record; } export namespace ListTagsForResourceResponse { @@ -7051,7 +7051,7 @@ export interface PurchaseOfferingRequest { /** * A collection of key-value pairs */ - Tags?: { [key: string]: string }; + Tags?: Record; } export namespace PurchaseOfferingRequest { @@ -7223,7 +7223,7 @@ export interface StartChannelResponse { /** * A collection of key-value pairs. */ - Tags?: { [key: string]: string }; + Tags?: Record; /** * Settings for VPC output @@ -7311,7 +7311,7 @@ export interface StartMultiplexResponse { /** * A collection of key-value pairs. */ - Tags?: { [key: string]: string }; + Tags?: Record; } export namespace StartMultiplexResponse { @@ -7431,7 +7431,7 @@ export interface StopChannelResponse { /** * A collection of key-value pairs. */ - Tags?: { [key: string]: string }; + Tags?: Record; /** * Settings for VPC output @@ -7519,7 +7519,7 @@ export interface StopMultiplexResponse { /** * A collection of key-value pairs. */ - Tags?: { [key: string]: string }; + Tags?: Record; } export namespace StopMultiplexResponse { @@ -7907,7 +7907,7 @@ export interface UpdateInputSecurityGroupRequest { /** * A collection of key-value pairs. */ - Tags?: { [key: string]: string }; + Tags?: Record; /** * List of IPv4 CIDR addresses to whitelist diff --git a/clients/client-medialive/src/protocols/Aws_restJson1.ts b/clients/client-medialive/src/protocols/Aws_restJson1.ts index cddca4ba561b..d39e16685d92 100644 --- a/clients/client-medialive/src/protocols/Aws_restJson1.ts +++ b/clients/client-medialive/src/protocols/Aws_restJson1.ts @@ -9867,7 +9867,7 @@ const serializeAws_restJson1StopTimecode = (input: StopTimecode, context: __Serd }; }; -const serializeAws_restJson1Tags = (input: { [key: string]: string }, context: __SerdeContext): any => { +const serializeAws_restJson1Tags = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -13539,8 +13539,8 @@ const deserializeAws_restJson1StopTimecode = (output: any, context: __SerdeConte } as any; }; -const deserializeAws_restJson1Tags = (output: any, context: __SerdeContext): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +const deserializeAws_restJson1Tags = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } diff --git a/clients/client-mediapackage-vod/src/models/models_0.ts b/clients/client-mediapackage-vod/src/models/models_0.ts index b3e7adc0d104..e3467b3734ce 100644 --- a/clients/client-mediapackage-vod/src/models/models_0.ts +++ b/clients/client-mediapackage-vod/src/models/models_0.ts @@ -49,7 +49,7 @@ export interface AssetShallow { /** * A collection of tags associated with a resource */ - Tags?: { [key: string]: string }; + Tags?: Record; } export namespace AssetShallow { @@ -598,7 +598,7 @@ export interface PackagingConfiguration { /** * A collection of tags associated with a resource */ - Tags?: { [key: string]: string }; + Tags?: Record; } export namespace PackagingConfiguration { @@ -685,7 +685,7 @@ export interface PackagingGroup { /** * A collection of tags associated with a resource */ - Tags?: { [key: string]: string }; + Tags?: Record; } export namespace PackagingGroup { @@ -750,7 +750,7 @@ export interface ConfigureLogsResponse { /** * A collection of tags associated with a resource */ - Tags?: { [key: string]: string }; + Tags?: Record; } export namespace ConfigureLogsResponse { @@ -920,7 +920,7 @@ export interface CreateAssetRequest { /** * A collection of tags associated with a resource */ - Tags?: { [key: string]: string }; + Tags?: Record; } export namespace CreateAssetRequest { @@ -976,7 +976,7 @@ export interface CreateAssetResponse { /** * A collection of tags associated with a resource */ - Tags?: { [key: string]: string }; + Tags?: Record; } export namespace CreateAssetResponse { @@ -1025,7 +1025,7 @@ export interface CreatePackagingConfigurationRequest { /** * A collection of tags associated with a resource */ - Tags?: { [key: string]: string }; + Tags?: Record; } export namespace CreatePackagingConfigurationRequest { @@ -1076,7 +1076,7 @@ export interface CreatePackagingConfigurationResponse { /** * A collection of tags associated with a resource */ - Tags?: { [key: string]: string }; + Tags?: Record; } export namespace CreatePackagingConfigurationResponse { @@ -1110,7 +1110,7 @@ export interface CreatePackagingGroupRequest { /** * A collection of tags associated with a resource */ - Tags?: { [key: string]: string }; + Tags?: Record; } export namespace CreatePackagingGroupRequest { @@ -1151,7 +1151,7 @@ export interface CreatePackagingGroupResponse { /** * A collection of tags associated with a resource */ - Tags?: { [key: string]: string }; + Tags?: Record; } export namespace CreatePackagingGroupResponse { @@ -1304,7 +1304,7 @@ export interface DescribeAssetResponse { /** * A collection of tags associated with a resource */ - Tags?: { [key: string]: string }; + Tags?: Record; } export namespace DescribeAssetResponse { @@ -1371,7 +1371,7 @@ export interface DescribePackagingConfigurationResponse { /** * A collection of tags associated with a resource */ - Tags?: { [key: string]: string }; + Tags?: Record; } export namespace DescribePackagingConfigurationResponse { @@ -1428,7 +1428,7 @@ export interface DescribePackagingGroupResponse { /** * A collection of tags associated with a resource */ - Tags?: { [key: string]: string }; + Tags?: Record; } export namespace DescribePackagingGroupResponse { @@ -1596,7 +1596,7 @@ export interface ListTagsForResourceResponse { /** * A collection of tags associated with a resource */ - Tags?: { [key: string]: string }; + Tags?: Record; } export namespace ListTagsForResourceResponse { @@ -1617,7 +1617,7 @@ export interface TagResourceRequest { /** * A collection of tags associated with a resource */ - Tags: { [key: string]: string } | undefined; + Tags: Record | undefined; } export namespace TagResourceRequest { @@ -1703,7 +1703,7 @@ export interface UpdatePackagingGroupResponse { /** * A collection of tags associated with a resource */ - Tags?: { [key: string]: string }; + Tags?: Record; } export namespace UpdatePackagingGroupResponse { diff --git a/clients/client-mediapackage-vod/src/protocols/Aws_restJson1.ts b/clients/client-mediapackage-vod/src/protocols/Aws_restJson1.ts index b56350002042..3a843adcc935 100644 --- a/clients/client-mediapackage-vod/src/protocols/Aws_restJson1.ts +++ b/clients/client-mediapackage-vod/src/protocols/Aws_restJson1.ts @@ -1901,7 +1901,7 @@ const serializeAws_restJson1__listOfMssManifest = (input: MssManifest[], context }); }; -const serializeAws_restJson1__mapOf__string = (input: { [key: string]: string }, context: __SerdeContext): any => { +const serializeAws_restJson1__mapOf__string = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -2108,7 +2108,7 @@ const serializeAws_restJson1StreamSelection = (input: StreamSelection, context: }; }; -const serializeAws_restJson1Tags = (input: { [key: string]: string }, context: __SerdeContext): any => { +const serializeAws_restJson1Tags = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -2234,8 +2234,8 @@ const deserializeAws_restJson1__listOfPackagingGroup = (output: any, context: __ return retVal; }; -const deserializeAws_restJson1__mapOf__string = (output: any, context: __SerdeContext): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +const deserializeAws_restJson1__mapOf__string = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -2495,8 +2495,8 @@ const deserializeAws_restJson1StreamSelection = (output: any, context: __SerdeCo } as any; }; -const deserializeAws_restJson1Tags = (output: any, context: __SerdeContext): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +const deserializeAws_restJson1Tags = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } diff --git a/clients/client-mediapackage/src/models/models_0.ts b/clients/client-mediapackage/src/models/models_0.ts index 7add8b1855f4..05351544dd8c 100644 --- a/clients/client-mediapackage/src/models/models_0.ts +++ b/clients/client-mediapackage/src/models/models_0.ts @@ -146,7 +146,7 @@ export interface Channel { /** * A collection of tags associated with a resource */ - Tags?: { [key: string]: string }; + Tags?: Record; } export namespace Channel { @@ -1077,7 +1077,7 @@ export interface OriginEndpoint { /** * A collection of tags associated with a resource */ - Tags?: { [key: string]: string }; + Tags?: Record; /** * Amount of delay (seconds) to enforce on the playback of live content. @@ -1208,7 +1208,7 @@ export interface ConfigureLogsResponse { /** * A collection of tags associated with a resource */ - Tags?: { [key: string]: string }; + Tags?: Record; } export namespace ConfigureLogsResponse { @@ -1364,7 +1364,7 @@ export interface CreateChannelRequest { /** * A collection of tags associated with a resource */ - Tags?: { [key: string]: string }; + Tags?: Record; } export namespace CreateChannelRequest { @@ -1410,7 +1410,7 @@ export interface CreateChannelResponse { /** * A collection of tags associated with a resource */ - Tags?: { [key: string]: string }; + Tags?: Record; } export namespace CreateChannelResponse { @@ -1590,7 +1590,7 @@ export interface CreateOriginEndpointRequest { /** * A collection of tags associated with a resource */ - Tags?: { [key: string]: string }; + Tags?: Record; /** * Amount of delay (seconds) to enforce on the playback of live content. @@ -1680,7 +1680,7 @@ export interface CreateOriginEndpointResponse { /** * A collection of tags associated with a resource */ - Tags?: { [key: string]: string }; + Tags?: Record; /** * Amount of delay (seconds) to enforce on the playback of live content. @@ -1812,7 +1812,7 @@ export interface DescribeChannelResponse { /** * A collection of tags associated with a resource */ - Tags?: { [key: string]: string }; + Tags?: Record; } export namespace DescribeChannelResponse { @@ -1983,7 +1983,7 @@ export interface DescribeOriginEndpointResponse { /** * A collection of tags associated with a resource */ - Tags?: { [key: string]: string }; + Tags?: Record; /** * Amount of delay (seconds) to enforce on the playback of live content. @@ -2166,7 +2166,7 @@ export namespace ListTagsForResourceRequest { } export interface ListTagsForResourceResponse { - Tags?: { [key: string]: string }; + Tags?: Record; } export namespace ListTagsForResourceResponse { @@ -2228,7 +2228,7 @@ export interface RotateChannelCredentialsResponse { /** * A collection of tags associated with a resource */ - Tags?: { [key: string]: string }; + Tags?: Record; } export namespace RotateChannelCredentialsResponse { @@ -2295,7 +2295,7 @@ export interface RotateIngestEndpointCredentialsResponse { /** * A collection of tags associated with a resource */ - Tags?: { [key: string]: string }; + Tags?: Record; } export namespace RotateIngestEndpointCredentialsResponse { @@ -2309,7 +2309,7 @@ export namespace RotateIngestEndpointCredentialsResponse { export interface TagResourceRequest { ResourceArn: string | undefined; - Tags: { [key: string]: string } | undefined; + Tags: Record | undefined; } export namespace TagResourceRequest { @@ -2396,7 +2396,7 @@ export interface UpdateChannelResponse { /** * A collection of tags associated with a resource */ - Tags?: { [key: string]: string }; + Tags?: Record; } export namespace UpdateChannelResponse { @@ -2553,7 +2553,7 @@ export interface UpdateOriginEndpointResponse { /** * A collection of tags associated with a resource */ - Tags?: { [key: string]: string }; + Tags?: Record; /** * Amount of delay (seconds) to enforce on the playback of live content. diff --git a/clients/client-mediapackage/src/protocols/Aws_restJson1.ts b/clients/client-mediapackage/src/protocols/Aws_restJson1.ts index b086dc0ff6de..22806c02b7e9 100644 --- a/clients/client-mediapackage/src/protocols/Aws_restJson1.ts +++ b/clients/client-mediapackage/src/protocols/Aws_restJson1.ts @@ -2292,7 +2292,7 @@ const serializeAws_restJson1__listOfHlsManifestCreateOrUpdateParameters = ( }); }; -const serializeAws_restJson1__mapOf__string = (input: { [key: string]: string }, context: __SerdeContext): any => { +const serializeAws_restJson1__mapOf__string = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -2567,7 +2567,7 @@ const serializeAws_restJson1StreamSelection = (input: StreamSelection, context: }; }; -const serializeAws_restJson1Tags = (input: { [key: string]: string }, context: __SerdeContext): any => { +const serializeAws_restJson1Tags = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -2666,8 +2666,8 @@ const deserializeAws_restJson1__listOfOriginEndpoint = (output: any, context: __ return retVal; }; -const deserializeAws_restJson1__mapOf__string = (output: any, context: __SerdeContext): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +const deserializeAws_restJson1__mapOf__string = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -3001,8 +3001,8 @@ const deserializeAws_restJson1StreamSelection = (output: any, context: __SerdeCo } as any; }; -const deserializeAws_restJson1Tags = (output: any, context: __SerdeContext): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +const deserializeAws_restJson1Tags = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } diff --git a/clients/client-mediatailor/src/models/models_0.ts b/clients/client-mediatailor/src/models/models_0.ts index 50e2440755ac..4db3a71a9502 100644 --- a/clients/client-mediatailor/src/models/models_0.ts +++ b/clients/client-mediatailor/src/models/models_0.ts @@ -305,7 +305,7 @@ export interface Channel { /** *

The tags to assign to the channel.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; /** *

The tier for this channel. STANDARD tier channels can contain live programs.

@@ -393,7 +393,7 @@ export interface LiveSource { /** *

The tags assigned to the live source.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; } export namespace LiveSource { @@ -643,7 +643,7 @@ export interface PlaybackConfiguration { /** *

The player parameters and aliases used as dynamic variables during session initialization. For more information, see Domain Variables.

*/ - ConfigurationAliases?: { [key: string]: { [key: string]: string } }; + ConfigurationAliases?: Record>; /** *

The configuration for a DASH source.

@@ -703,7 +703,7 @@ export interface PlaybackConfiguration { /** *

The tags to assign to the playback configuration.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; /** *

The name that is used to associate this playback configuration with a custom transcode profile. This overrides the dynamic transcoding defaults of MediaTailor. Use this only if you have already set up custom profiles with the help of AWS Support.

@@ -761,7 +761,7 @@ export interface PrefetchRetrieval { /** *

The dynamic variables to use for substitution during prefetch requests to the ad decision server (ADS).

You intially configure dynamic variables for the ADS URL when you set up your playback configuration. When you specify DynamicVariables for prefetch retrieval, MediaTailor includes the dynamic variables in the request to the ADS.

*/ - DynamicVariables?: { [key: string]: string }; + DynamicVariables?: Record; /** *

The time when prefetch retrieval ends for the ad break. Prefetching will be attempted for manifest requests that occur at or before this time.

@@ -1097,7 +1097,7 @@ export interface SourceLocation { /** *

The tags assigned to the source location.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; } export namespace SourceLocation { @@ -1141,7 +1141,7 @@ export interface VodSource { /** *

The tags assigned to the VOD source.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; /** *

The name of the VOD source.

@@ -1297,7 +1297,7 @@ export interface CreateChannelRequest { /** *

The tags to assign to the channel.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; /** *

The tier of the channel.

@@ -1358,7 +1358,7 @@ export interface CreateChannelResponse { /** *

The tags assigned to the channel.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; /** *

The channel's tier.

@@ -1394,7 +1394,7 @@ export interface CreateLiveSourceRequest { /** *

The tags to assign to the live source.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; } export namespace CreateLiveSourceRequest { @@ -1440,7 +1440,7 @@ export interface CreateLiveSourceResponse { /** *

The tags assigned to the live source.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; } export namespace CreateLiveSourceResponse { @@ -1723,7 +1723,7 @@ export interface CreateSourceLocationRequest { /** *

The tags to assign to the source location.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; } export namespace CreateSourceLocationRequest { @@ -1779,7 +1779,7 @@ export interface CreateSourceLocationResponse { /** *

The tags assigned to the source location.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; } export namespace CreateSourceLocationResponse { @@ -1805,7 +1805,7 @@ export interface CreateVodSourceRequest { /** *

The tags to assign to the VOD source.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; /** *

The identifier for the VOD source you are working on.

@@ -1851,7 +1851,7 @@ export interface CreateVodSourceResponse { /** *

The tags assigned to the VOD source.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; /** *

The name of the VOD source.

@@ -2188,7 +2188,7 @@ export interface DescribeChannelResponse { /** *

The tags assigned to the channel.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; /** *

The channel's tier.

@@ -2260,7 +2260,7 @@ export interface DescribeLiveSourceResponse { /** *

The tags assigned to the live source.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; } export namespace DescribeLiveSourceResponse { @@ -2409,7 +2409,7 @@ export interface DescribeSourceLocationResponse { /** *

The tags assigned to the source location.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; } export namespace DescribeSourceLocationResponse { @@ -2471,7 +2471,7 @@ export interface DescribeVodSourceResponse { /** *

The tags assigned to the VOD source.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; /** *

The name of the VOD source.

@@ -2612,7 +2612,7 @@ export interface GetPlaybackConfigurationResponse { /** *

The player parameters and aliases used as dynamic variables during session initialization. For more information, see Domain Variables.

*/ - ConfigurationAliases?: { [key: string]: { [key: string]: string } }; + ConfigurationAliases?: Record>; /** *

The configuration for DASH content.

@@ -2672,7 +2672,7 @@ export interface GetPlaybackConfigurationResponse { /** *

The tags assigned to the playback configuration.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; /** *

The name that is used to associate this playback configuration with a custom transcode profile. This overrides the dynamic transcoding defaults of MediaTailor. Use this only if you have already set up custom profiles with the help of AWS Support.

@@ -3048,7 +3048,7 @@ export interface ListTagsForResourceResponse { /** *

A comma-separated list of tag key:value pairs.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; } export namespace ListTagsForResourceResponse { @@ -3163,7 +3163,7 @@ export interface PutPlaybackConfigurationRequest { /** *

The player parameters and aliases used as dynamic variables during session initialization. For more information, see Domain Variables.

*/ - ConfigurationAliases?: { [key: string]: { [key: string]: string } }; + ConfigurationAliases?: Record>; /** *

The configuration for DASH content.

@@ -3198,7 +3198,7 @@ export interface PutPlaybackConfigurationRequest { /** *

The tags to assign to the playback configuration.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; /** *

The name that is used to associate this playback configuration with a custom transcode profile. This overrides the dynamic transcoding defaults of MediaTailor. Use this only if you have already set up custom profiles with the help of AWS Support.

@@ -3244,7 +3244,7 @@ export interface PutPlaybackConfigurationResponse { /** *

The player parameters and aliases used as dynamic variables during session initialization. For more information, see Domain Variables.

*/ - ConfigurationAliases?: { [key: string]: { [key: string]: string } }; + ConfigurationAliases?: Record>; /** *

The configuration for DASH content.

@@ -3304,7 +3304,7 @@ export interface PutPlaybackConfigurationResponse { /** *

The tags assigned to the playback configuration.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; /** *

The name that is used to associate this playback configuration with a custom transcode profile. This overrides the dynamic transcoding defaults of MediaTailor. Use this only if you have already set up custom profiles with the help of AWS Support.

@@ -3389,7 +3389,7 @@ export interface TagResourceRequest { /** *

A comma-separated list of tag key:value pairs.

*/ - Tags: { [key: string]: string } | undefined; + Tags: Record | undefined; } export namespace TagResourceRequest { @@ -3492,7 +3492,7 @@ export interface UpdateChannelResponse { /** *

The tags assigned to the channel.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; /** *

The channel's tier.

@@ -3569,7 +3569,7 @@ export interface UpdateLiveSourceResponse { /** *

The tags assigned to the live source.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; } export namespace UpdateLiveSourceResponse { @@ -3661,7 +3661,7 @@ export interface UpdateSourceLocationResponse { /** *

The tags assigned to the source location.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; } export namespace UpdateSourceLocationResponse { @@ -3728,7 +3728,7 @@ export interface UpdateVodSourceResponse { /** *

The tags assigned to the VOD source.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; /** *

The name of the VOD source.

diff --git a/clients/client-mediatailor/src/protocols/Aws_restJson1.ts b/clients/client-mediatailor/src/protocols/Aws_restJson1.ts index 3ec282d7072c..a854bb5978a4 100644 --- a/clients/client-mediatailor/src/protocols/Aws_restJson1.ts +++ b/clients/client-mediatailor/src/protocols/Aws_restJson1.ts @@ -4128,7 +4128,7 @@ const serializeAws_restJson1__listOfSegmentDeliveryConfiguration = ( }); }; -const serializeAws_restJson1__mapOf__string = (input: { [key: string]: string }, context: __SerdeContext): any => { +const serializeAws_restJson1__mapOf__string = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -4204,7 +4204,7 @@ const serializeAws_restJson1CdnConfiguration = (input: CdnConfiguration, context }; const serializeAws_restJson1ConfigurationAliasesRequest = ( - input: { [key: string]: { [key: string]: string } }, + input: Record>, context: __SerdeContext ): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { @@ -4597,8 +4597,8 @@ const deserializeAws_restJson1__listOfVodSource = (output: any, context: __Serde return retVal; }; -const deserializeAws_restJson1__mapOf__string = (output: any, context: __SerdeContext): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +const deserializeAws_restJson1__mapOf__string = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -4721,19 +4721,16 @@ const deserializeAws_restJson1Channel = (output: any, context: __SerdeContext): const deserializeAws_restJson1ConfigurationAliasesResponse = ( output: any, context: __SerdeContext -): { [key: string]: { [key: string]: string } } => { - return Object.entries(output).reduce( - (acc: { [key: string]: { [key: string]: string } }, [key, value]: [string, any]) => { - if (value === null) { - return acc; - } - return { - ...acc, - [key]: deserializeAws_restJson1__mapOf__string(value, context), - }; - }, - {} - ); +): Record> => { + return Object.entries(output).reduce((acc: Record>, [key, value]: [string, any]) => { + if (value === null) { + return acc; + } + return { + ...acc, + [key]: deserializeAws_restJson1__mapOf__string(value, context), + }; + }, {}); }; const deserializeAws_restJson1DashConfiguration = (output: any, context: __SerdeContext): DashConfiguration => { diff --git a/clients/client-mgn/src/models/models_0.ts b/clients/client-mgn/src/models/models_0.ts index afc121b9a916..5083c61d51c1 100644 --- a/clients/client-mgn/src/models/models_0.ts +++ b/clients/client-mgn/src/models/models_0.ts @@ -505,7 +505,7 @@ export interface Job { /** *

Tags associated with specific Job.

*/ - tags?: { [key: string]: string }; + tags?: Record; } export namespace Job { @@ -585,7 +585,7 @@ export interface ListTagsForResourceResponse { /** *

List tags for resource response.

*/ - tags?: { [key: string]: string }; + tags?: Record; } export namespace ListTagsForResourceResponse { @@ -710,12 +710,12 @@ export interface CreateReplicationConfigurationTemplateRequest { /** *

Request to configure Staging Area tags during Replication Settings template creation.

*/ - stagingAreaTags: { [key: string]: string } | undefined; + stagingAreaTags: Record | undefined; /** *

Request to configure tags during Replication Settings template creation.

*/ - tags?: { [key: string]: string }; + tags?: Record; } export namespace CreateReplicationConfigurationTemplateRequest { @@ -798,12 +798,12 @@ export interface ReplicationConfigurationTemplate { /** *

Replication Configuration template Staging Area Tags.

*/ - stagingAreaTags?: { [key: string]: string }; + stagingAreaTags?: Record; /** *

Replication Configuration template Tags.

*/ - tags?: { [key: string]: string }; + tags?: Record; } export namespace ReplicationConfigurationTemplate { @@ -961,7 +961,7 @@ export interface UpdateReplicationConfigurationTemplateRequest { /** *

Update replication configuration template Staging Area Tags request.

*/ - stagingAreaTags?: { [key: string]: string }; + stagingAreaTags?: Record; } export namespace UpdateReplicationConfigurationTemplateRequest { @@ -1733,7 +1733,7 @@ export interface SourceServer { /** *

Source server Tags.

*/ - tags?: { [key: string]: string }; + tags?: Record; /** *

Source server launched instance.

@@ -2163,7 +2163,7 @@ export interface ReplicationConfiguration { /** *

Replication Configuration Staging Area tags.

*/ - stagingAreaTags?: { [key: string]: string }; + stagingAreaTags?: Record; } export namespace ReplicationConfiguration { @@ -2217,7 +2217,7 @@ export interface StartCutoverRequest { /** *

Start Cutover by Tags.

*/ - tags?: { [key: string]: string }; + tags?: Record; } export namespace StartCutoverRequest { @@ -2323,7 +2323,7 @@ export interface StartTestRequest { /** *

Start Test by Tags.

*/ - tags?: { [key: string]: string }; + tags?: Record; } export namespace StartTestRequest { @@ -2362,7 +2362,7 @@ export interface TerminateTargetInstancesRequest { /** *

Terminate Target instance by Tags.

*/ - tags?: { [key: string]: string }; + tags?: Record; } export namespace TerminateTargetInstancesRequest { @@ -2517,7 +2517,7 @@ export interface UpdateReplicationConfigurationRequest { /** *

Update replication configuration Staging Area Tags request.

*/ - stagingAreaTags?: { [key: string]: string }; + stagingAreaTags?: Record; } export namespace UpdateReplicationConfigurationRequest { @@ -2560,7 +2560,7 @@ export interface TagResourceRequest { /** *

Tag resource by Tags.

*/ - tags: { [key: string]: string } | undefined; + tags: Record | undefined; } export namespace TagResourceRequest { @@ -2669,12 +2669,12 @@ export interface VcenterClient { /** *

Tags for Source Server of vCenter client.

*/ - sourceServerTags?: { [key: string]: string }; + sourceServerTags?: Record; /** *

Tags for vCenter client.

*/ - tags?: { [key: string]: string }; + tags?: Record; } export namespace VcenterClient { diff --git a/clients/client-mgn/src/protocols/Aws_restJson1.ts b/clients/client-mgn/src/protocols/Aws_restJson1.ts index b1c4e713e43f..2ee35fb26762 100644 --- a/clients/client-mgn/src/protocols/Aws_restJson1.ts +++ b/clients/client-mgn/src/protocols/Aws_restJson1.ts @@ -3452,7 +3452,7 @@ const serializeAws_restJson1StartTestRequestSourceServerIDs = (input: string[], }); }; -const serializeAws_restJson1TagsMap = (input: { [key: string]: string }, context: __SerdeContext): any => { +const serializeAws_restJson1TagsMap = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -4027,8 +4027,8 @@ const deserializeAws_restJson1SourceServersList = (output: any, context: __Serde return retVal; }; -const deserializeAws_restJson1TagsMap = (output: any, context: __SerdeContext): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +const deserializeAws_restJson1TagsMap = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } diff --git a/clients/client-migration-hub-refactor-spaces/src/models/models_0.ts b/clients/client-migration-hub-refactor-spaces/src/models/models_0.ts index f353e56f93c6..2bc304d82d08 100644 --- a/clients/client-migration-hub-refactor-spaces/src/models/models_0.ts +++ b/clients/client-migration-hub-refactor-spaces/src/models/models_0.ts @@ -235,7 +235,7 @@ export interface ErrorResponse { /** *

Additional details about the error.

*/ - AdditionalDetails?: { [key: string]: string }; + AdditionalDetails?: Record; } export namespace ErrorResponse { @@ -309,7 +309,7 @@ export interface ApplicationSummary { /** *

The tags assigned to the application.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; /** *

Any error associated with the application resource.

@@ -399,7 +399,7 @@ export interface CreateApplicationRequest { /** *

The tags to assign to the application. A tag is a label that you assign to an Amazon Web Services resource. Each tag consists of a key-value pair.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; /** *

A unique, case-sensitive identifier that you provide to ensure the idempotency of the @@ -479,7 +479,7 @@ export interface CreateApplicationResponse { /** *

The tags assigned to the application. A tag is a label that you assign to an Amazon Web Services resource. Each tag consists of a key-value pair.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; /** *

A timestamp that indicates when the application was last updated.

@@ -686,7 +686,7 @@ export interface CreateEnvironmentRequest { /** *

The tags to assign to the environment. A tag is a label that you assign to an Amazon Web Services resource. Each tag consists of a key-value pair.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; /** *

A unique, case-sensitive identifier that you provide to ensure the idempotency of the @@ -751,7 +751,7 @@ export interface CreateEnvironmentResponse { /** *

The tags assigned to the created environment. A tag is a label that you assign to an Amazon Web Services resource. Each tag consists of a key-value pair..

*/ - Tags?: { [key: string]: string }; + Tags?: Record; /** *

A timestamp that indicates when the environment was last updated.

@@ -865,7 +865,7 @@ export interface CreateRouteRequest { /** *

The tags to assign to the route. A tag is a label that you assign to an Amazon Web Services resource. Each tag consists of a key-value pair..

*/ - Tags?: { [key: string]: string }; + Tags?: Record; /** *

A unique, case-sensitive identifier that you provide to ensure the idempotency of the @@ -948,7 +948,7 @@ export interface CreateRouteResponse { /** *

The tags assigned to the created route. A tag is a label that you assign to an Amazon Web Services resource. Each tag consists of a key-value pair.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; /** *

A timestamp that indicates when the route was last updated.

@@ -1068,7 +1068,7 @@ export interface CreateServiceRequest { /** *

The tags to assign to the service. A tag is a label that you assign to an Amazon Web Services resource. Each tag consists of a key-value pair..

*/ - Tags?: { [key: string]: string }; + Tags?: Record; /** *

A unique, case-sensitive identifier that you provide to ensure the idempotency of the @@ -1163,7 +1163,7 @@ export interface CreateServiceResponse { /** *

The tags assigned to the created service. A tag is a label that you assign to an Amazon Web Services resource. Each tag consists of a key-value pair..

*/ - Tags?: { [key: string]: string }; + Tags?: Record; /** *

A timestamp that indicates when the service was last updated.

@@ -1519,7 +1519,7 @@ export interface EnvironmentSummary { /** *

The tags assigned to the environment.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; /** *

Any error associated with the environment resource.

@@ -1673,7 +1673,7 @@ export interface GetApplicationResponse { /** *

The tags assigned to the application. A tag is a label that you assign to an Amazon Web Services resource. Each tag consists of a key-value pair.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; /** *

Any error associated with the application resource.

@@ -1761,7 +1761,7 @@ export interface GetEnvironmentResponse { /** *

The tags to assign to the environment. A tag is a label that you assign to an Amazon Web Services resource. Each tag consists of a key-value pair.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; /** *

Any error associated with the environment resource.

@@ -1916,7 +1916,7 @@ export interface GetRouteResponse { /** *

A mapping of Amazon API Gateway path resources to resource IDs.

*/ - PathResourceToId?: { [key: string]: string }; + PathResourceToId?: Record; /** *

The current state of the route.

@@ -1926,7 +1926,7 @@ export interface GetRouteResponse { /** *

The tags assigned to the route. A tag is a label that you assign to an Amazon Web Services resource. Each tag consists of a key-value pair.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; /** *

Any error associated with the route resource.

@@ -2096,7 +2096,7 @@ export interface GetServiceResponse { /** *

The tags assigned to the service. A tag is a label that you assign to an Amazon Web Services resource. Each tag consists of a key-value pair.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; /** *

Any error associated with the service resource.

@@ -2407,7 +2407,7 @@ export interface RouteSummary { /** *

A mapping of Amazon API Gateway path resources to resource IDs.

*/ - PathResourceToId?: { [key: string]: string }; + PathResourceToId?: Record; /** *

The current state of the route.

@@ -2417,7 +2417,7 @@ export interface RouteSummary { /** *

The tags assigned to the route.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; /** *

Any error associated with the route resource.

@@ -2602,7 +2602,7 @@ export interface ServiceSummary { /** *

The tags assigned to the service.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; /** *

Any error associated with the service resource.

@@ -2674,7 +2674,7 @@ export interface ListTagsForResourceResponse { /** *

The list of tags assigned to the resource.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; } export namespace ListTagsForResourceResponse { @@ -2729,7 +2729,7 @@ export interface TagResourceRequest { /** *

The new or modified tags for the resource.

*/ - Tags: { [key: string]: string } | undefined; + Tags: Record | undefined; } export namespace TagResourceRequest { diff --git a/clients/client-migration-hub-refactor-spaces/src/protocols/Aws_restJson1.ts b/clients/client-migration-hub-refactor-spaces/src/protocols/Aws_restJson1.ts index bf6a5c796ead..b22725f28b63 100644 --- a/clients/client-migration-hub-refactor-spaces/src/protocols/Aws_restJson1.ts +++ b/clients/client-migration-hub-refactor-spaces/src/protocols/Aws_restJson1.ts @@ -2960,7 +2960,7 @@ const serializeAws_restJson1LambdaEndpointInput = (input: LambdaEndpointInput, c }; }; -const serializeAws_restJson1TagMap = (input: { [key: string]: string }, context: __SerdeContext): any => { +const serializeAws_restJson1TagMap = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -2991,8 +2991,8 @@ const serializeAws_restJson1UrlEndpointInput = (input: UrlEndpointInput, context }; }; -const deserializeAws_restJson1AdditionalDetails = (output: any, context: __SerdeContext): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +const deserializeAws_restJson1AdditionalDetails = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -3213,8 +3213,8 @@ const deserializeAws_restJson1LambdaEndpointSummary = (output: any, context: __S } as any; }; -const deserializeAws_restJson1PathResourceToId = (output: any, context: __SerdeContext): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +const deserializeAws_restJson1PathResourceToId = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -3329,8 +3329,8 @@ const deserializeAws_restJson1ServiceSummary = (output: any, context: __SerdeCon } as any; }; -const deserializeAws_restJson1TagMap = (output: any, context: __SerdeContext): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +const deserializeAws_restJson1TagMap = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } diff --git a/clients/client-mobile/src/models/models_0.ts b/clients/client-mobile/src/models/models_0.ts index 7ba3502b31ca..296eeb1c10dc 100644 --- a/clients/client-mobile/src/models/models_0.ts +++ b/clients/client-mobile/src/models/models_0.ts @@ -132,7 +132,7 @@ export interface Resource { * Key-value attribute pairs. *

*/ - attributes?: { [key: string]: string }; + attributes?: Record; } export namespace Resource { diff --git a/clients/client-mobile/src/protocols/Aws_restJson1.ts b/clients/client-mobile/src/protocols/Aws_restJson1.ts index cece949c6ef5..d73beabb0126 100644 --- a/clients/client-mobile/src/protocols/Aws_restJson1.ts +++ b/clients/client-mobile/src/protocols/Aws_restJson1.ts @@ -976,8 +976,8 @@ const deserializeAws_restJson1UnauthorizedExceptionResponse = async ( return __decorateServiceException(exception, parsedOutput.body); }; -const deserializeAws_restJson1Attributes = (output: any, context: __SerdeContext): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +const deserializeAws_restJson1Attributes = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } diff --git a/clients/client-mq/src/models/models_0.ts b/clients/client-mq/src/models/models_0.ts index 19f850fadd9e..6aabdfe911cb 100644 --- a/clients/client-mq/src/models/models_0.ts +++ b/clients/client-mq/src/models/models_0.ts @@ -327,7 +327,7 @@ export interface Configuration { /** *

The list of all tags associated with this configuration.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; } export namespace Configuration { @@ -804,7 +804,7 @@ export interface CreateBrokerRequest { /** *

Create tags when creating the broker.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; /** *

Required. The list of broker users (persons or applications) who can access queues and topics. This value can contain only alphanumeric characters, dashes, periods, underscores, and tildes (- . _ ~). This value must be 2-100 characters long.

Amazon MQ for RabbitMQ

When you create an Amazon MQ for RabbitMQ broker, one and only one administrative user is accepted and created when a broker is first provisioned. All subsequent broker users are created by making RabbitMQ API calls directly to brokers or via the RabbitMQ web console.

@@ -959,7 +959,7 @@ export interface CreateConfigurationRequest { /** *

Create tags when creating the configuration.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; } export namespace CreateConfigurationRequest { @@ -1024,7 +1024,7 @@ export interface CreateTagsRequest { /** *

The key-value pair for the resource tag.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; } export namespace CreateTagsRequest { @@ -1487,7 +1487,7 @@ export interface DescribeBrokerResponse { /** *

The list of all tags associated with this broker.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; /** *

The list of all broker usernames for the specified broker.

@@ -1683,7 +1683,7 @@ export interface DescribeConfigurationResponse { /** *

The list of all tags associated with this configuration.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; } export namespace DescribeConfigurationResponse { @@ -1999,7 +1999,7 @@ export interface ListTagsResponse { /** *

The key-value pair for the resource tag.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; } export namespace ListTagsResponse { diff --git a/clients/client-mq/src/protocols/Aws_restJson1.ts b/clients/client-mq/src/protocols/Aws_restJson1.ts index 168f20610a61..5cda9c5fb7fa 100644 --- a/clients/client-mq/src/protocols/Aws_restJson1.ts +++ b/clients/client-mq/src/protocols/Aws_restJson1.ts @@ -2466,7 +2466,7 @@ const serializeAws_restJson1__listOfUser = (input: User[], context: __SerdeConte }); }; -const serializeAws_restJson1__mapOf__string = (input: { [key: string]: string }, context: __SerdeContext): any => { +const serializeAws_restJson1__mapOf__string = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -2724,8 +2724,8 @@ const deserializeAws_restJson1__listOfUserSummary = (output: any, context: __Ser return retVal; }; -const deserializeAws_restJson1__mapOf__string = (output: any, context: __SerdeContext): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +const deserializeAws_restJson1__mapOf__string = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } diff --git a/clients/client-mwaa/src/models/models_0.ts b/clients/client-mwaa/src/models/models_0.ts index 2ff827a9fc07..40b9cabd9f9b 100644 --- a/clients/client-mwaa/src/models/models_0.ts +++ b/clients/client-mwaa/src/models/models_0.ts @@ -233,7 +233,7 @@ export interface CreateEnvironmentInput { /** *

A list of key-value pairs containing the Apache Airflow configuration options you want to attach to your environment. To learn more, see Apache Airflow configuration options.

*/ - AirflowConfigurationOptions?: { [key: string]: string }; + AirflowConfigurationOptions?: Record; /** *

The environment class type. Valid values: mw1.small, mw1.medium, mw1.large. To learn more, see Amazon MWAA environment class.

@@ -268,7 +268,7 @@ export interface CreateEnvironmentInput { /** *

The key-value tag pairs you want to associate to your environment. For example, "Environment": "Staging". To learn more, see Tagging Amazon Web Services resources.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; /** *

The Apache Airflow Web server access mode. To learn more, see Apache Airflow access modes.

@@ -699,7 +699,7 @@ export interface Environment { /** *

A list of key-value pairs containing the Apache Airflow configuration options attached to your environment. To learn more, see Apache Airflow configuration options.

*/ - AirflowConfigurationOptions?: { [key: string]: string }; + AirflowConfigurationOptions?: Record; /** *

The environment class type. Valid values: mw1.small, mw1.medium, mw1.large. To learn more, see Amazon MWAA environment class.

@@ -734,7 +734,7 @@ export interface Environment { /** *

The key-value tag pairs associated to your environment. For example, "Environment": "Staging". To learn more, see Tagging Amazon Web Services resources.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; /** *

The Apache Airflow Web server access mode. To learn more, see Apache Airflow access modes.

@@ -839,7 +839,7 @@ export interface ListTagsForResourceOutput { /** *

The key-value tag pairs associated to your environment. To learn more, see Tagging Amazon Web Services resources.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; } export namespace ListTagsForResourceOutput { @@ -1041,7 +1041,7 @@ export interface TagResourceInput { /** *

The key-value tag pairs you want to associate to your environment. For example, "Environment": "Staging". To learn more, see Tagging Amazon Web Services resources.

*/ - Tags: { [key: string]: string } | undefined; + Tags: Record | undefined; } export namespace TagResourceInput { @@ -1164,7 +1164,7 @@ export interface UpdateEnvironmentInput { /** *

A list of key-value pairs containing the Apache Airflow configuration options you want to attach to your environment. To learn more, see Apache Airflow configuration options.

*/ - AirflowConfigurationOptions?: { [key: string]: string }; + AirflowConfigurationOptions?: Record; /** *

The environment class type. Valid values: mw1.small, mw1.medium, mw1.large. To learn more, see Amazon MWAA environment class.

diff --git a/clients/client-mwaa/src/protocols/Aws_restJson1.ts b/clients/client-mwaa/src/protocols/Aws_restJson1.ts index 501d7e36d0af..d81e20cd5390 100644 --- a/clients/client-mwaa/src/protocols/Aws_restJson1.ts +++ b/clients/client-mwaa/src/protocols/Aws_restJson1.ts @@ -1148,7 +1148,7 @@ const deserializeAws_restJson1ValidationExceptionResponse = async ( }; const serializeAws_restJson1AirflowConfigurationOptions = ( - input: { [key: string]: string }, + input: Record, context: __SerdeContext ): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { @@ -1287,7 +1287,7 @@ const serializeAws_restJson1SubnetList = (input: string[], context: __SerdeConte }); }; -const serializeAws_restJson1TagMap = (input: { [key: string]: string }, context: __SerdeContext): any => { +const serializeAws_restJson1TagMap = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -1314,8 +1314,8 @@ const serializeAws_restJson1UpdateNetworkConfigurationInput = ( const deserializeAws_restJson1AirflowConfigurationOptions = ( output: any, context: __SerdeContext -): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -1475,8 +1475,8 @@ const deserializeAws_restJson1SubnetList = (output: any, context: __SerdeContext return retVal; }; -const deserializeAws_restJson1TagMap = (output: any, context: __SerdeContext): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +const deserializeAws_restJson1TagMap = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } diff --git a/clients/client-network-firewall/src/models/models_0.ts b/clients/client-network-firewall/src/models/models_0.ts index 59657fa9ea33..2c885f3d5695 100644 --- a/clients/client-network-firewall/src/models/models_0.ts +++ b/clients/client-network-firewall/src/models/models_0.ts @@ -762,7 +762,7 @@ export interface SyncState { * you add a subnet or modify the associated firewall policy, Network Firewall synchronizes the * rules in the endpoint, so it can properly filter network traffic. This is part of the FirewallStatus.

*/ - Config?: { [key: string]: PerObjectStatus }; + Config?: Record; } export namespace SyncState { @@ -809,7 +809,7 @@ export interface FirewallStatus { * ConfigurationSyncStateSummary and Status, broken down by zone * and configuration object.

*/ - SyncStates?: { [key: string]: SyncState }; + SyncStates?: Record; } export namespace FirewallStatus { @@ -1859,12 +1859,12 @@ export interface RuleVariables { /** *

A list of IP addresses and address ranges, in CIDR notation.

*/ - IPSets?: { [key: string]: IPSet }; + IPSets?: Record; /** *

A list of port ranges.

*/ - PortSets?: { [key: string]: PortSet }; + PortSets?: Record; } export namespace RuleVariables { @@ -2592,7 +2592,7 @@ export interface LogDestinationConfig { * * */ - LogDestination: { [key: string]: string } | undefined; + LogDestination: Record | undefined; } export namespace LogDestinationConfig { diff --git a/clients/client-network-firewall/src/protocols/Aws_json1_0.ts b/clients/client-network-firewall/src/protocols/Aws_json1_0.ts index 7af7f94faefd..a9536250d759 100644 --- a/clients/client-network-firewall/src/protocols/Aws_json1_0.ts +++ b/clients/client-network-firewall/src/protocols/Aws_json1_0.ts @@ -2842,7 +2842,7 @@ const serializeAws_json1_0IPSet = (input: IPSet, context: __SerdeContext): any = }; }; -const serializeAws_json1_0IPSets = (input: { [key: string]: IPSet }, context: __SerdeContext): any => { +const serializeAws_json1_0IPSets = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -2917,7 +2917,7 @@ const serializeAws_json1_0LogDestinationConfigs = (input: LogDestinationConfig[] }); }; -const serializeAws_json1_0LogDestinationMap = (input: { [key: string]: string }, context: __SerdeContext): any => { +const serializeAws_json1_0LogDestinationMap = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -2984,7 +2984,7 @@ const serializeAws_json1_0PortSet = (input: PortSet, context: __SerdeContext): a }; }; -const serializeAws_json1_0PortSets = (input: { [key: string]: PortSet }, context: __SerdeContext): any => { +const serializeAws_json1_0PortSets = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -4049,8 +4049,8 @@ const deserializeAws_json1_0IPSet = (output: any, context: __SerdeContext): IPSe } as any; }; -const deserializeAws_json1_0IPSets = (output: any, context: __SerdeContext): { [key: string]: IPSet } => { - return Object.entries(output).reduce((acc: { [key: string]: IPSet }, [key, value]: [string, any]) => { +const deserializeAws_json1_0IPSets = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -4136,8 +4136,8 @@ const deserializeAws_json1_0LogDestinationConfigs = (output: any, context: __Ser return retVal; }; -const deserializeAws_json1_0LogDestinationMap = (output: any, context: __SerdeContext): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +const deserializeAws_json1_0LogDestinationMap = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -4230,8 +4230,8 @@ const deserializeAws_json1_0PortSet = (output: any, context: __SerdeContext): Po } as any; }; -const deserializeAws_json1_0PortSets = (output: any, context: __SerdeContext): { [key: string]: PortSet } => { - return Object.entries(output).reduce((acc: { [key: string]: PortSet }, [key, value]: [string, any]) => { +const deserializeAws_json1_0PortSets = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -4663,8 +4663,8 @@ const deserializeAws_json1_0SyncState = (output: any, context: __SerdeContext): const deserializeAws_json1_0SyncStateConfig = ( output: any, context: __SerdeContext -): { [key: string]: PerObjectStatus } => { - return Object.entries(output).reduce((acc: { [key: string]: PerObjectStatus }, [key, value]: [string, any]) => { +): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -4675,8 +4675,8 @@ const deserializeAws_json1_0SyncStateConfig = ( }, {}); }; -const deserializeAws_json1_0SyncStates = (output: any, context: __SerdeContext): { [key: string]: SyncState } => { - return Object.entries(output).reduce((acc: { [key: string]: SyncState }, [key, value]: [string, any]) => { +const deserializeAws_json1_0SyncStates = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } diff --git a/clients/client-networkmanager/src/models/models_0.ts b/clients/client-networkmanager/src/models/models_0.ts index e833dc3a0cb6..89e04487c8d9 100644 --- a/clients/client-networkmanager/src/models/models_0.ts +++ b/clients/client-networkmanager/src/models/models_0.ts @@ -296,7 +296,7 @@ export class ResourceNotFoundException extends __BaseException { /** *

The specified resource could not be found.

*/ - Context?: { [key: string]: string }; + Context?: Record; /** * @internal */ @@ -4485,7 +4485,7 @@ export interface NetworkResource { /** *

The resource metadata.

*/ - Metadata?: { [key: string]: string }; + Metadata?: Record; } export namespace NetworkResource { @@ -4601,7 +4601,7 @@ export interface GetNetworkRoutesRequest { /** *

Filter by route table destination. Possible Values: TRANSIT_GATEWAY_ATTACHMENT_ID, RESOURCE_ID, or RESOURCE_TYPE.

*/ - DestinationFilters?: { [key: string]: string[] }; + DestinationFilters?: Record; } export namespace GetNetworkRoutesRequest { @@ -5106,7 +5106,7 @@ export interface RouteAnalysisCompletion { /** *

Additional information about the path. Available only if a connection is not found.

*/ - ReasonContext?: { [key: string]: string }; + ReasonContext?: Record; } export namespace RouteAnalysisCompletion { @@ -6450,7 +6450,7 @@ export interface UpdateNetworkResourceMetadataRequest { /** *

The resource metadata.

*/ - Metadata: { [key: string]: string } | undefined; + Metadata: Record | undefined; } export namespace UpdateNetworkResourceMetadataRequest { @@ -6471,7 +6471,7 @@ export interface UpdateNetworkResourceMetadataResponse { /** *

The updated resource metadata.

*/ - Metadata?: { [key: string]: string }; + Metadata?: Record; } export namespace UpdateNetworkResourceMetadataResponse { diff --git a/clients/client-networkmanager/src/protocols/Aws_restJson1.ts b/clients/client-networkmanager/src/protocols/Aws_restJson1.ts index 203d24c0e028..d31b26894ca5 100644 --- a/clients/client-networkmanager/src/protocols/Aws_restJson1.ts +++ b/clients/client-networkmanager/src/protocols/Aws_restJson1.ts @@ -7981,7 +7981,7 @@ const serializeAws_restJson1CoreNetworkSegmentEdgeIdentifier = ( }; }; -const serializeAws_restJson1FilterMap = (input: { [key: string]: string[] }, context: __SerdeContext): any => { +const serializeAws_restJson1FilterMap = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -8013,7 +8013,7 @@ const serializeAws_restJson1Location = (input: Location, context: __SerdeContext }; const serializeAws_restJson1NetworkResourceMetadataMap = ( - input: { [key: string]: string }, + input: Record, context: __SerdeContext ): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { @@ -8707,11 +8707,8 @@ const deserializeAws_restJson1DeviceList = (output: any, context: __SerdeContext return retVal; }; -const deserializeAws_restJson1ExceptionContextMap = ( - output: any, - context: __SerdeContext -): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +const deserializeAws_restJson1ExceptionContextMap = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -8891,8 +8888,8 @@ const deserializeAws_restJson1NetworkResourceList = (output: any, context: __Ser const deserializeAws_restJson1NetworkResourceMetadataMap = ( output: any, context: __SerdeContext -): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -9046,8 +9043,8 @@ const deserializeAws_restJson1ProposedSegmentChange = (output: any, context: __S } as any; }; -const deserializeAws_restJson1ReasonContextMap = (output: any, context: __SerdeContext): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +const deserializeAws_restJson1ReasonContextMap = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } diff --git a/clients/client-nimble/src/models/models_0.ts b/clients/client-nimble/src/models/models_0.ts index 8a461d6a6106..0a188240db9f 100644 --- a/clients/client-nimble/src/models/models_0.ts +++ b/clients/client-nimble/src/models/models_0.ts @@ -101,7 +101,7 @@ export class AccessDeniedException extends __BaseException { /** *

The exception context.

*/ - context?: { [key: string]: string }; + context?: Record; /** * @internal @@ -132,7 +132,7 @@ export class ConflictException extends __BaseException { /** *

The exception context.

*/ - context?: { [key: string]: string }; + context?: Record; /** * @internal @@ -164,7 +164,7 @@ export class InternalServerErrorException extends __BaseException { /** *

The exception context.

*/ - context?: { [key: string]: string }; + context?: Record; /** * @internal @@ -195,7 +195,7 @@ export class ResourceNotFoundException extends __BaseException { /** *

The exception context.

*/ - context?: { [key: string]: string }; + context?: Record; /** * @internal @@ -228,7 +228,7 @@ export class ServiceQuotaExceededException extends __BaseException { /** *

The exception context.

*/ - context?: { [key: string]: string }; + context?: Record; /** * @internal @@ -260,7 +260,7 @@ export class ThrottlingException extends __BaseException { /** *

The exception context.

*/ - context?: { [key: string]: string }; + context?: Record; /** * @internal @@ -291,7 +291,7 @@ export class ValidationException extends __BaseException { /** *

The exception context.

*/ - context?: { [key: string]: string }; + context?: Record; /** * @internal @@ -578,7 +578,7 @@ export interface CreateLaunchProfileRequest { *

A collection of labels, in the form of key:value pairs, that apply to this * resource.

*/ - tags?: { [key: string]: string }; + tags?: Record; } export namespace CreateLaunchProfileRequest { @@ -829,7 +829,7 @@ export interface LaunchProfile { *

A collection of labels, in the form of key:value pairs, that apply to this * resource.

*/ - tags?: { [key: string]: string }; + tags?: Record; /** *

The Unix epoch timestamp in seconds for when the resource was updated.

@@ -910,7 +910,7 @@ export interface CreateStreamingImageRequest { *

A collection of labels, in the form of key:value pairs, that apply to this * resource.

*/ - tags?: { [key: string]: string }; + tags?: Record; } export namespace CreateStreamingImageRequest { @@ -1050,7 +1050,7 @@ export interface StreamingImage { *

A collection of labels, in the form of key:value pairs, that apply to this * resource.

*/ - tags?: { [key: string]: string }; + tags?: Record; } export namespace StreamingImage { @@ -1120,7 +1120,7 @@ export interface CreateStreamingSessionRequest { *

A collection of labels, in the form of key:value pairs, that apply to this * resource.

*/ - tags?: { [key: string]: string }; + tags?: Record; } export namespace CreateStreamingSessionRequest { @@ -1231,7 +1231,7 @@ export interface StreamingSession { *

A collection of labels, in the form of key:value pairs, that apply to this * resource.

*/ - tags?: { [key: string]: string }; + tags?: Record; /** *

The time the streaming session will automatically terminate if not terminated by the @@ -1492,7 +1492,7 @@ export interface CreateStudioRequest { *

A collection of labels, in the form of key:value pairs, that apply to this * resource.

*/ - tags?: { [key: string]: string }; + tags?: Record; /** *

The IAM role that Studio Users will assume when logging in to the Nimble Studio @@ -1631,7 +1631,7 @@ export interface Studio { *

A collection of labels, in the form of key:value pairs, that apply to this * resource.

*/ - tags?: { [key: string]: string }; + tags?: Record; /** *

The Unix epoch timestamp in seconds for when the resource was updated.

@@ -1926,7 +1926,7 @@ export interface CreateStudioComponentRequest { *

A collection of labels, in the form of key:value pairs, that apply to this * resource.

*/ - tags?: { [key: string]: string }; + tags?: Record; /** *

The type of the studio component.

@@ -2062,7 +2062,7 @@ export interface StudioComponent { *

A collection of labels, in the form of key:value pairs, that apply to this * resource.

*/ - tags?: { [key: string]: string }; + tags?: Record; /** *

The type of the studio component.

@@ -3916,7 +3916,7 @@ export interface ListTagsForResourceResponse { *

A collection of labels, in the form of key:value pairs, that apply to this * resource.

*/ - tags?: { [key: string]: string }; + tags?: Record; } export namespace ListTagsForResourceResponse { @@ -4352,7 +4352,7 @@ export interface TagResourceRequest { *

A collection of labels, in the form of key:value pairs, that apply to this * resource.

*/ - tags?: { [key: string]: string }; + tags?: Record; } export namespace TagResourceRequest { diff --git a/clients/client-nimble/src/protocols/Aws_restJson1.ts b/clients/client-nimble/src/protocols/Aws_restJson1.ts index d7ef784adef8..9647a27000a6 100644 --- a/clients/client-nimble/src/protocols/Aws_restJson1.ts +++ b/clients/client-nimble/src/protocols/Aws_restJson1.ts @@ -5565,7 +5565,7 @@ const serializeAws_restJson1StudioEncryptionConfiguration = ( }; }; -const serializeAws_restJson1Tags = (input: { [key: string]: string }, context: __SerdeContext): any => { +const serializeAws_restJson1Tags = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -5715,8 +5715,8 @@ const deserializeAws_restJson1EulaList = (output: any, context: __SerdeContext): return retVal; }; -const deserializeAws_restJson1ExceptionContext = (output: any, context: __SerdeContext): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +const deserializeAws_restJson1ExceptionContext = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -6421,8 +6421,8 @@ const deserializeAws_restJson1StudioMembershipList = (output: any, context: __Se return retVal; }; -const deserializeAws_restJson1Tags = (output: any, context: __SerdeContext): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +const deserializeAws_restJson1Tags = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } diff --git a/clients/client-opensearch/src/models/models_0.ts b/clients/client-opensearch/src/models/models_0.ts index f27149a8ad6e..068e54224b22 100644 --- a/clients/client-opensearch/src/models/models_0.ts +++ b/clients/client-opensearch/src/models/models_0.ts @@ -539,7 +539,7 @@ export interface AdvancedOptionsStatus { /** *

The status of advanced options for the specified domain.

*/ - Options: { [key: string]: string } | undefined; + Options: Record | undefined; /** *

The OptionStatus for advanced options for the specified domain. @@ -1753,14 +1753,14 @@ export interface CreateDomainRequest { * for more information. *

*/ - AdvancedOptions?: { [key: string]: string }; + AdvancedOptions?: Record; /** *

Map of LogType and LogPublishingOption, each containing options to publish a given type * of OpenSearch log. *

*/ - LogPublishingOptions?: { [key: string]: LogPublishingOption }; + LogPublishingOptions?: Record; /** *

Options to specify configurations that will be applied to the domain endpoint.

@@ -1944,7 +1944,7 @@ export interface DomainStatus { * value: 'vpc','vpc-endpoint-h2dsd34efgyghrtguk5gt6j2foh4.us-east-1.es.amazonaws.com'. *

*/ - Endpoints?: { [key: string]: string }; + Endpoints?: Record; /** *

The status of the domain configuration. True if Amazon OpenSearch Service is @@ -2014,12 +2014,12 @@ export interface DomainStatus { * AdvancedOptions. *

*/ - AdvancedOptions?: { [key: string]: string }; + AdvancedOptions?: Record; /** *

Log publishing options for the given domain.

*/ - LogPublishingOptions?: { [key: string]: LogPublishingOption }; + LogPublishingOptions?: Record; /** *

The current status of the domain's service software.

@@ -3314,7 +3314,7 @@ export interface LogPublishingOptionsStatus { /** *

The log publishing options configured for the domain.

*/ - Options?: { [key: string]: LogPublishingOption }; + Options?: Record; /** *

The status of the log publishing options for the domain. See OptionStatus for the @@ -3998,7 +3998,7 @@ export interface DescribeInstanceTypeLimitsResponse { * *

*/ - LimitsByRole?: { [key: string]: Limits }; + LimitsByRole?: Record; } export namespace DescribeInstanceTypeLimitsResponse { @@ -5643,7 +5643,7 @@ export interface UpdateDomainConfigRequest { * for more information. *

*/ - AdvancedOptions?: { [key: string]: string }; + AdvancedOptions?: Record; /** *

IAM access policy as a JSON-formatted string.

@@ -5655,7 +5655,7 @@ export interface UpdateDomainConfigRequest { * of OpenSearch log. *

*/ - LogPublishingOptions?: { [key: string]: LogPublishingOption }; + LogPublishingOptions?: Record; /** *

Specifies encryption of data at rest options.

@@ -5868,7 +5868,7 @@ export interface UpgradeDomainRequest { * Advanced cluster parameters. *

*/ - AdvancedOptions?: { [key: string]: string }; + AdvancedOptions?: Record; } export namespace UpgradeDomainRequest { @@ -5930,7 +5930,7 @@ export interface UpgradeDomainResponse { * Advanced cluster parameters. *

*/ - AdvancedOptions?: { [key: string]: string }; + AdvancedOptions?: Record; /** *

Specifies change details of the domain configuration change.

diff --git a/clients/client-opensearch/src/protocols/Aws_restJson1.ts b/clients/client-opensearch/src/protocols/Aws_restJson1.ts index 5ccc490d2da5..1105113de6fa 100644 --- a/clients/client-opensearch/src/protocols/Aws_restJson1.ts +++ b/clients/client-opensearch/src/protocols/Aws_restJson1.ts @@ -3995,7 +3995,7 @@ const deserializeAws_restJson1ValidationExceptionResponse = async ( return __decorateServiceException(exception, parsedOutput.body); }; -const serializeAws_restJson1AdvancedOptions = (input: { [key: string]: string }, context: __SerdeContext): any => { +const serializeAws_restJson1AdvancedOptions = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -4260,7 +4260,7 @@ const serializeAws_restJson1LogPublishingOption = (input: LogPublishingOption, c }; const serializeAws_restJson1LogPublishingOptions = ( - input: { [key: string]: LogPublishingOption }, + input: Record, context: __SerdeContext ): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [LogType | string, any]) => { @@ -4420,8 +4420,8 @@ const deserializeAws_restJson1AdditionalLimitList = (output: any, context: __Ser return retVal; }; -const deserializeAws_restJson1AdvancedOptions = (output: any, context: __SerdeContext): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +const deserializeAws_restJson1AdvancedOptions = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -5054,8 +5054,8 @@ const deserializeAws_restJson1EncryptionAtRestOptionsStatus = ( } as any; }; -const deserializeAws_restJson1EndpointsMap = (output: any, context: __SerdeContext): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +const deserializeAws_restJson1EndpointsMap = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -5200,8 +5200,8 @@ const deserializeAws_restJson1Limits = (output: any, context: __SerdeContext): L } as any; }; -const deserializeAws_restJson1LimitsByRole = (output: any, context: __SerdeContext): { [key: string]: Limits } => { - return Object.entries(output).reduce((acc: { [key: string]: Limits }, [key, value]: [string, any]) => { +const deserializeAws_restJson1LimitsByRole = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -5234,9 +5234,9 @@ const deserializeAws_restJson1LogPublishingOption = (output: any, context: __Ser const deserializeAws_restJson1LogPublishingOptions = ( output: any, context: __SerdeContext -): { [key: string]: LogPublishingOption } => { +): Record => { return Object.entries(output).reduce( - (acc: { [key: string]: LogPublishingOption }, [key, value]: [LogType | string, any]) => { + (acc: Record, [key, value]: [LogType | string, any]) => { if (value === null) { return acc; } diff --git a/clients/client-opsworks/src/models/models_0.ts b/clients/client-opsworks/src/models/models_0.ts index 80bf3e6f563f..031142dfac66 100644 --- a/clients/client-opsworks/src/models/models_0.ts +++ b/clients/client-opsworks/src/models/models_0.ts @@ -281,7 +281,7 @@ export interface App { /** *

The stack attributes.

*/ - Attributes?: { [key: string]: string }; + Attributes?: Record; /** *

When the app was created.

@@ -658,7 +658,7 @@ export interface CloneStackRequest { /** *

A list of stack attributes and values as key/value pairs to be added to the cloned stack.

*/ - Attributes?: { [key: string]: string }; + Attributes?: Record; /** *

The stack AWS Identity and Access Management (IAM) role, which allows AWS OpsWorks Stacks to work with AWS @@ -1344,7 +1344,7 @@ export interface CreateAppRequest { /** *

One or more user-defined key/value pairs to be added to the stack attributes.

*/ - Attributes?: { [key: string]: string }; + Attributes?: Record; /** *

An array of EnvironmentVariable objects that specify environment variables to be @@ -1492,7 +1492,7 @@ export interface DeploymentCommand { * { "upgrade_os_to":["Amazon Linux 2016.09"], "allow_reboot":["true"] } *

*/ - Args?: { [key: string]: string[] }; + Args?: Record; } export namespace DeploymentCommand { @@ -2002,7 +2002,7 @@ export interface CreateLayerRequest { *

One or more user-defined key-value pairs to be added to the stack attributes.

*

To create a cluster layer, set the EcsClusterArn attribute to the cluster's ARN.

*/ - Attributes?: { [key: string]: string }; + Attributes?: Record; /** *

Specifies CloudWatch Logs configuration options for the layer. For more information, see CloudWatchLogsLogStream.

@@ -2183,7 +2183,7 @@ export interface CreateStackRequest { /** *

One or more user-defined key-value pairs to be added to the stack attributes.

*/ - Attributes?: { [key: string]: string }; + Attributes?: Record; /** *

The stack's AWS Identity and Access Management (IAM) role, which allows AWS OpsWorks Stacks to work with AWS @@ -3687,7 +3687,7 @@ export interface Layer { * instead of the actual value

*

For an ECS Cluster layer, AWS OpsWorks Stacks the EcsClusterArn attribute is set to the cluster's ARN.

*/ - Attributes?: { [key: string]: string }; + Attributes?: Record; /** *

The Amazon CloudWatch Logs configuration settings for the layer.

@@ -4512,7 +4512,7 @@ export interface DescribeStackProvisioningParametersResult { /** *

An embedded object that contains the provisioning parameters.

*/ - Parameters?: { [key: string]: string }; + Parameters?: Record; } export namespace DescribeStackProvisioningParametersResult { @@ -4573,7 +4573,7 @@ export interface Stack { /** *

The stack's attributes.

*/ - Attributes?: { [key: string]: string }; + Attributes?: Record; /** *

The stack AWS Identity and Access Management (IAM) role.

@@ -4925,37 +4925,37 @@ export interface WeeklyAutoScalingSchedule { /** *

The schedule for Monday.

*/ - Monday?: { [key: string]: string }; + Monday?: Record; /** *

The schedule for Tuesday.

*/ - Tuesday?: { [key: string]: string }; + Tuesday?: Record; /** *

The schedule for Wednesday.

*/ - Wednesday?: { [key: string]: string }; + Wednesday?: Record; /** *

The schedule for Thursday.

*/ - Thursday?: { [key: string]: string }; + Thursday?: Record; /** *

The schedule for Friday.

*/ - Friday?: { [key: string]: string }; + Friday?: Record; /** *

The schedule for Saturday.

*/ - Saturday?: { [key: string]: string }; + Saturday?: Record; /** *

The schedule for Sunday.

*/ - Sunday?: { [key: string]: string }; + Sunday?: Record; } export namespace WeeklyAutoScalingSchedule { @@ -5461,7 +5461,7 @@ export interface ListTagsResult { /** *

A set of key-value pairs that contain tag keys and tag values that are attached to a stack or layer.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; /** *

If a paginated request does not return all of the remaining results, this parameter is set to a token that @@ -5933,7 +5933,7 @@ export interface TagResourceRequest { * * */ - Tags: { [key: string]: string } | undefined; + Tags: Record | undefined; } export namespace TagResourceRequest { @@ -6049,7 +6049,7 @@ export interface UpdateAppRequest { /** *

One or more user-defined key/value pairs to be added to the stack attributes.

*/ - Attributes?: { [key: string]: string }; + Attributes?: Record; /** *

An array of EnvironmentVariable objects that specify environment variables to be @@ -6253,7 +6253,7 @@ export interface UpdateLayerRequest { /** *

One or more user-defined key/value pairs to be added to the stack attributes.

*/ - Attributes?: { [key: string]: string }; + Attributes?: Record; /** *

Specifies CloudWatch Logs configuration options for the layer. For more information, see CloudWatchLogsLogStream.

@@ -6405,7 +6405,7 @@ export interface UpdateStackRequest { /** *

One or more user-defined key-value pairs to be added to the stack attributes.

*/ - Attributes?: { [key: string]: string }; + Attributes?: Record; /** *

Do not use this parameter. You cannot update a stack's service role.

diff --git a/clients/client-opsworks/src/protocols/Aws_json1_1.ts b/clients/client-opsworks/src/protocols/Aws_json1_1.ts index 067087ff9443..9949e2e8e5ba 100644 --- a/clients/client-opsworks/src/protocols/Aws_json1_1.ts +++ b/clients/client-opsworks/src/protocols/Aws_json1_1.ts @@ -4579,7 +4579,7 @@ const deserializeAws_json1_1ValidationExceptionResponse = async ( return __decorateServiceException(exception, body); }; -const serializeAws_json1_1AppAttributes = (input: { [key: string]: string }, context: __SerdeContext): any => { +const serializeAws_json1_1AppAttributes = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce( (acc: { [key: string]: any }, [key, value]: [AppAttributesKeys | string, any]) => { if (value === null) { @@ -4952,10 +4952,7 @@ const serializeAws_json1_1CreateUserProfileRequest = ( }; }; -const serializeAws_json1_1DailyAutoScalingSchedule = ( - input: { [key: string]: string }, - context: __SerdeContext -): any => { +const serializeAws_json1_1DailyAutoScalingSchedule = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -5030,10 +5027,7 @@ const serializeAws_json1_1DeploymentCommand = (input: DeploymentCommand, context }; }; -const serializeAws_json1_1DeploymentCommandArgs = ( - input: { [key: string]: string[] }, - context: __SerdeContext -): any => { +const serializeAws_json1_1DeploymentCommandArgs = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -5373,7 +5367,7 @@ const serializeAws_json1_1InstanceIdentity = (input: InstanceIdentity, context: }; }; -const serializeAws_json1_1LayerAttributes = (input: { [key: string]: string }, context: __SerdeContext): any => { +const serializeAws_json1_1LayerAttributes = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce( (acc: { [key: string]: any }, [key, value]: [LayerAttributesKeys | string, any]) => { if (value === null) { @@ -5555,7 +5549,7 @@ const serializeAws_json1_1SslConfiguration = (input: SslConfiguration, context: }; }; -const serializeAws_json1_1StackAttributes = (input: { [key: string]: string }, context: __SerdeContext): any => { +const serializeAws_json1_1StackAttributes = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce( (acc: { [key: string]: any }, [key, value]: [StackAttributesKeys | string, any]) => { if (value === null) { @@ -5634,7 +5628,7 @@ const serializeAws_json1_1TagResourceRequest = (input: TagResourceRequest, conte }; }; -const serializeAws_json1_1Tags = (input: { [key: string]: string }, context: __SerdeContext): any => { +const serializeAws_json1_1Tags = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -5957,9 +5951,9 @@ const deserializeAws_json1_1App = (output: any, context: __SerdeContext): App => } as any; }; -const deserializeAws_json1_1AppAttributes = (output: any, context: __SerdeContext): { [key: string]: string } => { +const deserializeAws_json1_1AppAttributes = (output: any, context: __SerdeContext): Record => { return Object.entries(output).reduce( - (acc: { [key: string]: string }, [key, value]: [AppAttributesKeys | string, any]) => { + (acc: Record, [key, value]: [AppAttributesKeys | string, any]) => { if (value === null) { return acc; } @@ -6152,8 +6146,8 @@ const deserializeAws_json1_1CreateUserProfileResult = ( const deserializeAws_json1_1DailyAutoScalingSchedule = ( output: any, context: __SerdeContext -): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -6220,8 +6214,8 @@ const deserializeAws_json1_1DeploymentCommand = (output: any, context: __SerdeCo const deserializeAws_json1_1DeploymentCommandArgs = ( output: any, context: __SerdeContext -): { [key: string]: string[] } => { - return Object.entries(output).reduce((acc: { [key: string]: string[] }, [key, value]: [string, any]) => { +): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -6770,9 +6764,9 @@ const deserializeAws_json1_1Layer = (output: any, context: __SerdeContext): Laye } as any; }; -const deserializeAws_json1_1LayerAttributes = (output: any, context: __SerdeContext): { [key: string]: string } => { +const deserializeAws_json1_1LayerAttributes = (output: any, context: __SerdeContext): Record => { return Object.entries(output).reduce( - (acc: { [key: string]: string }, [key, value]: [LayerAttributesKeys | string, any]) => { + (acc: Record, [key, value]: [LayerAttributesKeys | string, any]) => { if (value === null) { return acc; } @@ -6902,8 +6896,8 @@ const deserializeAws_json1_1OperatingSystems = (output: any, context: __SerdeCon return retVal; }; -const deserializeAws_json1_1Parameters = (output: any, context: __SerdeContext): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +const deserializeAws_json1_1Parameters = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -7164,9 +7158,9 @@ const deserializeAws_json1_1Stack = (output: any, context: __SerdeContext): Stac } as any; }; -const deserializeAws_json1_1StackAttributes = (output: any, context: __SerdeContext): { [key: string]: string } => { +const deserializeAws_json1_1StackAttributes = (output: any, context: __SerdeContext): Record => { return Object.entries(output).reduce( - (acc: { [key: string]: string }, [key, value]: [StackAttributesKeys | string, any]) => { + (acc: Record, [key, value]: [StackAttributesKeys | string, any]) => { if (value === null) { return acc; } @@ -7227,8 +7221,8 @@ const deserializeAws_json1_1Strings = (output: any, context: __SerdeContext): st return retVal; }; -const deserializeAws_json1_1Tags = (output: any, context: __SerdeContext): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +const deserializeAws_json1_1Tags = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } diff --git a/clients/client-outposts/src/models/models_0.ts b/clients/client-outposts/src/models/models_0.ts index b11b0ae02769..1e88f569e4ae 100644 --- a/clients/client-outposts/src/models/models_0.ts +++ b/clients/client-outposts/src/models/models_0.ts @@ -697,7 +697,7 @@ export interface CreateOutpostInput { /** *

The tags to apply to the Outpost.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; /** *

@@ -772,7 +772,7 @@ export interface Outpost { /** *

The Outpost tags.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; /** *

The Amazon Resource Name (ARN) of the site.

@@ -975,7 +975,7 @@ export interface CreateSiteInput { * The tags to apply to a site. *

*/ - Tags?: { [key: string]: string }; + Tags?: Record; /** *

@@ -1041,7 +1041,7 @@ export interface Site { /** *

The site tags.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; /** *

The Amazon Resource Name (ARN) of the site.

@@ -1703,7 +1703,7 @@ export interface OrderSummary { * The status of all line items in the order. *

*/ - LineItemCountsByStatus?: { [key: string]: number }; + LineItemCountsByStatus?: Record; /** *

@@ -1912,7 +1912,7 @@ export interface ListTagsForResourceResponse { /** *

The resource tags.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; } export namespace ListTagsForResourceResponse { @@ -1933,7 +1933,7 @@ export interface TagResourceRequest { /** *

The tags to add to the resource.

*/ - Tags: { [key: string]: string } | undefined; + Tags: Record | undefined; } export namespace TagResourceRequest { diff --git a/clients/client-outposts/src/protocols/Aws_restJson1.ts b/clients/client-outposts/src/protocols/Aws_restJson1.ts index 7004063723ee..15ee9bc43027 100644 --- a/clients/client-outposts/src/protocols/Aws_restJson1.ts +++ b/clients/client-outposts/src/protocols/Aws_restJson1.ts @@ -2316,7 +2316,7 @@ const serializeAws_restJson1RackPhysicalProperties = (input: RackPhysicalPropert }; }; -const serializeAws_restJson1TagMap = (input: { [key: string]: string }, context: __SerdeContext): any => { +const serializeAws_restJson1TagMap = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -2469,22 +2469,16 @@ const deserializeAws_restJson1LineItemListDefinition = (output: any, context: __ return retVal; }; -const deserializeAws_restJson1LineItemStatusCounts = ( - output: any, - context: __SerdeContext -): { [key: string]: number } => { - return Object.entries(output).reduce( - (acc: { [key: string]: number }, [key, value]: [LineItemStatus | string, any]) => { - if (value === null) { - return acc; - } - return { - ...acc, - [key]: __expectInt32(value) as any, - }; - }, - {} - ); +const deserializeAws_restJson1LineItemStatusCounts = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [LineItemStatus | string, any]) => { + if (value === null) { + return acc; + } + return { + ...acc, + [key]: __expectInt32(value) as any, + }; + }, {}); }; const deserializeAws_restJson1Order = (output: any, context: __SerdeContext): Order => { @@ -2651,8 +2645,8 @@ const deserializeAws_restJson1SupportedUplinkGbpsListDefinition = (output: any, return retVal; }; -const deserializeAws_restJson1TagMap = (output: any, context: __SerdeContext): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +const deserializeAws_restJson1TagMap = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } diff --git a/clients/client-panorama/src/models/models_0.ts b/clients/client-panorama/src/models/models_0.ts index a32cff424b28..c050c5c456f1 100644 --- a/clients/client-panorama/src/models/models_0.ts +++ b/clients/client-panorama/src/models/models_0.ts @@ -120,7 +120,7 @@ export interface ApplicationInstance { /** *

The application instance's tags.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; } export namespace ApplicationInstance { @@ -325,7 +325,7 @@ export interface CreateApplicationInstanceRequest { /** *

Tags for the application instance.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; } export namespace CreateApplicationInstanceRequest { @@ -682,7 +682,7 @@ export interface JobResourceTags { /** *

The job's tags.

*/ - Tags: { [key: string]: string } | undefined; + Tags: Record | undefined; } export namespace JobResourceTags { @@ -727,7 +727,7 @@ export interface CreateNodeFromTemplateJobRequest { /** *

Template parameters for the node.

*/ - TemplateParameters: { [key: string]: string } | undefined; + TemplateParameters: Record | undefined; /** *

Tags for the job.

@@ -770,7 +770,7 @@ export interface CreatePackageRequest { /** *

Tags for the package.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; } export namespace CreatePackageRequest { @@ -1216,7 +1216,7 @@ export interface DescribeApplicationInstanceResponse { /** *

The application instance's tags.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; } export namespace DescribeApplicationInstanceResponse { @@ -1606,7 +1606,7 @@ export interface DescribeDeviceResponse { /** *

The device's tags.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; /** *

The device's networking configuration.

@@ -2010,7 +2010,7 @@ export interface DescribeNodeFromTemplateJobResponse { /** *

The job's template parameters.

*/ - TemplateParameters: { [key: string]: string } | undefined; + TemplateParameters: Record | undefined; /** *

The job's tags.

@@ -2083,7 +2083,7 @@ export interface DescribePackageResponse { /** *

The package's tags.

*/ - Tags: { [key: string]: string } | undefined; + Tags: Record | undefined; } export namespace DescribePackageResponse { @@ -3108,7 +3108,7 @@ export interface PackageListItem { /** *

The package's tags.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; } export namespace PackageListItem { @@ -3161,7 +3161,7 @@ export interface ListTagsForResourceResponse { /** *

A list of tags.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; } export namespace ListTagsForResourceResponse { @@ -3187,7 +3187,7 @@ export interface ProvisionDeviceRequest { /** *

Tags for the device.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; /** *

A networking configuration for the device.

@@ -3323,7 +3323,7 @@ export interface TagResourceRequest { /** *

Tags for the resource.

*/ - Tags: { [key: string]: string } | undefined; + Tags: Record | undefined; } export namespace TagResourceRequest { diff --git a/clients/client-panorama/src/protocols/Aws_restJson1.ts b/clients/client-panorama/src/protocols/Aws_restJson1.ts index 419b75fc7310..5b76fec37c97 100644 --- a/clients/client-panorama/src/protocols/Aws_restJson1.ts +++ b/clients/client-panorama/src/protocols/Aws_restJson1.ts @@ -3713,7 +3713,7 @@ const serializeAws_restJson1StaticIpConnectionInfo = (input: StaticIpConnectionI }; }; -const serializeAws_restJson1TagMap = (input: { [key: string]: string }, context: __SerdeContext): any => { +const serializeAws_restJson1TagMap = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -3725,10 +3725,7 @@ const serializeAws_restJson1TagMap = (input: { [key: string]: string }, context: }, {}); }; -const serializeAws_restJson1TemplateParametersMap = ( - input: { [key: string]: string }, - context: __SerdeContext -): any => { +const serializeAws_restJson1TemplateParametersMap = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -4365,8 +4362,8 @@ const deserializeAws_restJson1StorageLocation = (output: any, context: __SerdeCo } as any; }; -const deserializeAws_restJson1TagMap = (output: any, context: __SerdeContext): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +const deserializeAws_restJson1TagMap = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -4380,8 +4377,8 @@ const deserializeAws_restJson1TagMap = (output: any, context: __SerdeContext): { const deserializeAws_restJson1TemplateParametersMap = ( output: any, context: __SerdeContext -): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } diff --git a/clients/client-personalize-runtime/src/models/models_0.ts b/clients/client-personalize-runtime/src/models/models_0.ts index 60c977141f6a..ab6da9d1b1b3 100644 --- a/clients/client-personalize-runtime/src/models/models_0.ts +++ b/clients/client-personalize-runtime/src/models/models_0.ts @@ -26,7 +26,7 @@ export interface GetPersonalizedRankingRequest { * any interaction information that might be relevant when getting a user's recommendations, such * as the user's current location or device type.

*/ - context?: { [key: string]: string }; + context?: Record; /** *

The Amazon Resource Name (ARN) of a filter you created to include items or exclude items from recommendations for a given user. @@ -47,7 +47,7 @@ export interface GetPersonalizedRankingRequest { *

For more information, see * Filtering Recommendations.

*/ - filterValues?: { [key: string]: string }; + filterValues?: Record; } export namespace GetPersonalizedRankingRequest { @@ -175,7 +175,7 @@ export interface GetRecommendationsRequest { * any interaction information that might be relevant when getting a user's recommendations, such * as the user's current location or device type.

*/ - context?: { [key: string]: string }; + context?: Record; /** *

The ARN of the filter to apply to the returned recommendations. For more information, see @@ -196,7 +196,7 @@ export interface GetRecommendationsRequest { *

For more information, see * Filtering Recommendations.

*/ - filterValues?: { [key: string]: string }; + filterValues?: Record; /** *

The Amazon Resource Name (ARN) of the recommender to use to get recommendations. Provide a recommender ARN if you diff --git a/clients/client-personalize-runtime/src/protocols/Aws_restJson1.ts b/clients/client-personalize-runtime/src/protocols/Aws_restJson1.ts index 495cc8021e52..0fb3470808af 100644 --- a/clients/client-personalize-runtime/src/protocols/Aws_restJson1.ts +++ b/clients/client-personalize-runtime/src/protocols/Aws_restJson1.ts @@ -221,7 +221,7 @@ const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async ( return __decorateServiceException(exception, parsedOutput.body); }; -const serializeAws_restJson1Context = (input: { [key: string]: string }, context: __SerdeContext): any => { +const serializeAws_restJson1Context = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -233,7 +233,7 @@ const serializeAws_restJson1Context = (input: { [key: string]: string }, context }, {}); }; -const serializeAws_restJson1FilterValues = (input: { [key: string]: string }, context: __SerdeContext): any => { +const serializeAws_restJson1FilterValues = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; diff --git a/clients/client-personalize/src/models/models_0.ts b/clients/client-personalize/src/models/models_0.ts index fbab145af0e9..c5ec6b4d146d 100644 --- a/clients/client-personalize/src/models/models_0.ts +++ b/clients/client-personalize/src/models/models_0.ts @@ -182,7 +182,7 @@ export interface Algorithm { /** *

Specifies the default hyperparameters.

*/ - defaultHyperParameters?: { [key: string]: string }; + defaultHyperParameters?: Record; /** *

Specifies the default hyperparameters, their ranges, and whether they @@ -194,7 +194,7 @@ export interface Algorithm { /** *

Specifies the default maximum number of training jobs and parallel training jobs.

*/ - defaultResourceConfig?: { [key: string]: string }; + defaultResourceConfig?: Record; /** *

The training input mode.

@@ -236,7 +236,7 @@ export interface BatchInferenceJobConfig { * recommending items. * See User-Personalization.

*/ - itemExplorationConfig?: { [key: string]: string }; + itemExplorationConfig?: Record; } export namespace BatchInferenceJobConfig { @@ -647,7 +647,7 @@ export interface CampaignConfig { * recommending items. Provide itemExplorationConfig data only if your solution uses the * User-Personalization recipe.

*/ - itemExplorationConfig?: { [key: string]: string }; + itemExplorationConfig?: Record; } export namespace CampaignConfig { @@ -1112,7 +1112,7 @@ export interface RecommenderConfig { * recommending items. Provide itemExplorationConfig data only if your recommenders generate personalized recommendations for a user * (not popular items or similar items).

*/ - itemExplorationConfig?: { [key: string]: string }; + itemExplorationConfig?: Record; /** *

Specifies the requested minimum provisioned recommendation requests per second that @@ -1516,12 +1516,12 @@ export interface SolutionConfig { /** *

Lists the hyperparameter names and ranges.

*/ - algorithmHyperParameters?: { [key: string]: string }; + algorithmHyperParameters?: Record; /** *

Lists the feature transformation parameters.

*/ - featureTransformationParameters?: { [key: string]: string }; + featureTransformationParameters?: Record; /** *

The AutoMLConfig object containing a list of recipes to search @@ -2858,7 +2858,7 @@ export interface FeatureTransformation { /** *

Provides the default parameters for feature transformation.

*/ - defaultParameters?: { [key: string]: string }; + defaultParameters?: Record; /** *

The creation date and time (in Unix time) of the feature transformation.

@@ -3245,7 +3245,7 @@ export interface Recommender { * * Evaluating a recommender.

*/ - modelMetrics?: { [key: string]: number }; + modelMetrics?: Record; } export namespace Recommender { @@ -3567,7 +3567,7 @@ export interface TunedHPOParams { /** *

A list of the hyperparameter values of the best performing model.

*/ - algorithmHyperParameters?: { [key: string]: string }; + algorithmHyperParameters?: Record; } export namespace TunedHPOParams { @@ -3754,7 +3754,7 @@ export interface GetSolutionMetricsResponse { * Evaluating a solution version with metrics * .

*/ - metrics?: { [key: string]: number }; + metrics?: Record; } export namespace GetSolutionMetricsResponse { diff --git a/clients/client-personalize/src/protocols/Aws_json1_1.ts b/clients/client-personalize/src/protocols/Aws_json1_1.ts index 73a7610fc356..1de22313a239 100644 --- a/clients/client-personalize/src/protocols/Aws_json1_1.ts +++ b/clients/client-personalize/src/protocols/Aws_json1_1.ts @@ -4660,7 +4660,7 @@ const serializeAws_json1_1DescribeSolutionVersionRequest = ( }; const serializeAws_json1_1FeatureTransformationParameters = ( - input: { [key: string]: string }, + input: Record, context: __SerdeContext ): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { @@ -4745,7 +4745,7 @@ const serializeAws_json1_1HyperParameterRanges = (input: HyperParameterRanges, c }; }; -const serializeAws_json1_1HyperParameters = (input: { [key: string]: string }, context: __SerdeContext): any => { +const serializeAws_json1_1HyperParameters = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -6194,8 +6194,8 @@ const deserializeAws_json1_1FeatureTransformation = (output: any, context: __Ser const deserializeAws_json1_1FeatureTransformationParameters = ( output: any, context: __SerdeContext -): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -6209,8 +6209,8 @@ const deserializeAws_json1_1FeatureTransformationParameters = ( const deserializeAws_json1_1FeaturizationParameters = ( output: any, context: __SerdeContext -): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -6332,8 +6332,8 @@ const deserializeAws_json1_1HyperParameterRanges = (output: any, context: __Serd } as any; }; -const deserializeAws_json1_1HyperParameters = (output: any, context: __SerdeContext): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +const deserializeAws_json1_1HyperParameters = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -6565,8 +6565,8 @@ const deserializeAws_json1_1ListTagsForResourceResponse = ( } as any; }; -const deserializeAws_json1_1Metrics = (output: any, context: __SerdeContext): { [key: string]: number } => { - return Object.entries(output).reduce((acc: { [key: string]: number }, [key, value]: [string, any]) => { +const deserializeAws_json1_1Metrics = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -6739,8 +6739,8 @@ const deserializeAws_json1_1ResourceAlreadyExistsException = ( } as any; }; -const deserializeAws_json1_1ResourceConfig = (output: any, context: __SerdeContext): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +const deserializeAws_json1_1ResourceConfig = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } diff --git a/clients/client-pi/src/models/models_0.ts b/clients/client-pi/src/models/models_0.ts index f454d469dcf8..bc961a11a598 100644 --- a/clients/client-pi/src/models/models_0.ts +++ b/clients/client-pi/src/models/models_0.ts @@ -447,7 +447,7 @@ export interface DescribeDimensionKeysRequest { * * */ - Filter?: { [key: string]: string }; + Filter?: Record; /** *

The maximum number of items to return in the response. If more items exist than the specified MaxRecords value, a @@ -479,7 +479,7 @@ export interface DimensionKeyDescription { /** *

A map of name-value pairs for the dimensions in the group.

*/ - Dimensions?: { [key: string]: string }; + Dimensions?: Record; /** *

The aggregated metric value for the dimensions, over the requested time range.

@@ -489,7 +489,7 @@ export interface DimensionKeyDescription { /** *

A map that contains the value for each additional metric.

*/ - AdditionalMetrics?: { [key: string]: number }; + AdditionalMetrics?: Record; /** *

If PartitionBy was specified, PartitionKeys contains the dimensions that were.

@@ -515,7 +515,7 @@ export interface ResponsePartitionKey { /** *

A dimension map that contains the dimensions for this partition.

*/ - Dimensions: { [key: string]: string } | undefined; + Dimensions: Record | undefined; } export namespace ResponsePartitionKey { @@ -927,7 +927,7 @@ export interface GetResourceMetadataResponse { *

The metadata for different features. For example, the metadata might indicate that a feature is * turned on or off on a specific DB instance.

*/ - Features?: { [key: string]: FeatureMetadata }; + Features?: Record; } export namespace GetResourceMetadataResponse { @@ -990,7 +990,7 @@ export interface MetricQuery { * * */ - Filter?: { [key: string]: string }; + Filter?: Record; } export namespace MetricQuery { @@ -1138,7 +1138,7 @@ export interface ResponseResourceMetricKey { /** *

The valid dimensions for the metric.

*/ - Dimensions?: { [key: string]: string }; + Dimensions?: Record; } export namespace ResponseResourceMetricKey { diff --git a/clients/client-pi/src/protocols/Aws_json1_1.ts b/clients/client-pi/src/protocols/Aws_json1_1.ts index 82de7f84e9f3..670df59a5d74 100644 --- a/clients/client-pi/src/protocols/Aws_json1_1.ts +++ b/clients/client-pi/src/protocols/Aws_json1_1.ts @@ -626,7 +626,7 @@ const serializeAws_json1_1MetricQuery = (input: MetricQuery, context: __SerdeCon }; }; -const serializeAws_json1_1MetricQueryFilterMap = (input: { [key: string]: string }, context: __SerdeContext): any => { +const serializeAws_json1_1MetricQueryFilterMap = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -682,11 +682,8 @@ const serializeAws_json1_1RequestStringList = (input: string[], context: __Serde }); }; -const deserializeAws_json1_1AdditionalMetricsMap = ( - output: any, - context: __SerdeContext -): { [key: string]: number } => { - return Object.entries(output).reduce((acc: { [key: string]: number }, [key, value]: [string, any]) => { +const deserializeAws_json1_1AdditionalMetricsMap = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -843,8 +840,8 @@ const deserializeAws_json1_1DimensionKeyDetailList = (output: any, context: __Se return retVal; }; -const deserializeAws_json1_1DimensionMap = (output: any, context: __SerdeContext): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +const deserializeAws_json1_1DimensionMap = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -864,8 +861,8 @@ const deserializeAws_json1_1FeatureMetadata = (output: any, context: __SerdeCont const deserializeAws_json1_1FeatureMetadataMap = ( output: any, context: __SerdeContext -): { [key: string]: FeatureMetadata } => { - return Object.entries(output).reduce((acc: { [key: string]: FeatureMetadata }, [key, value]: [string, any]) => { +): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } diff --git a/clients/client-pinpoint-email/src/models/models_0.ts b/clients/client-pinpoint-email/src/models/models_0.ts index c1e3f3e053ae..d9a820b4db63 100644 --- a/clients/client-pinpoint-email/src/models/models_0.ts +++ b/clients/client-pinpoint-email/src/models/models_0.ts @@ -1490,7 +1490,7 @@ export interface GetBlacklistReportsResponse { *

An object that contains information about a blacklist that one of your dedicated IP * addresses appears on.

*/ - BlacklistReport: { [key: string]: BlacklistEntry[] } | undefined; + BlacklistReport: Record | undefined; } export namespace GetBlacklistReportsResponse { diff --git a/clients/client-pinpoint-email/src/protocols/Aws_restJson1.ts b/clients/client-pinpoint-email/src/protocols/Aws_restJson1.ts index e0997ec6cb97..69fc06d9eb10 100644 --- a/clients/client-pinpoint-email/src/protocols/Aws_restJson1.ts +++ b/clients/client-pinpoint-email/src/protocols/Aws_restJson1.ts @@ -4238,8 +4238,8 @@ const deserializeAws_restJson1BlacklistEntry = (output: any, context: __SerdeCon const deserializeAws_restJson1BlacklistReport = ( output: any, context: __SerdeContext -): { [key: string]: BlacklistEntry[] } => { - return Object.entries(output).reduce((acc: { [key: string]: BlacklistEntry[] }, [key, value]: [string, any]) => { +): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } diff --git a/clients/client-pinpoint-sms-voice-v2/src/models/models_0.ts b/clients/client-pinpoint-sms-voice-v2/src/models/models_0.ts index c61fad60c17c..fd64c663fbb0 100644 --- a/clients/client-pinpoint-sms-voice-v2/src/models/models_0.ts +++ b/clients/client-pinpoint-sms-voice-v2/src/models/models_0.ts @@ -3419,7 +3419,7 @@ export interface SendTextMessageRequest { *

You can specify custom data in this field. If you do, that data is logged to the event * destination.

*/ - Context?: { [key: string]: string }; + Context?: Record; /** *

This field is used for any country-specific registration requirements. Currently, this @@ -3427,7 +3427,7 @@ export interface SendTextMessageRequest { * For more information see Special requirements for sending SMS messages to recipients in India. *

*/ - DestinationCountryParameters?: { [key: string]: string }; + DestinationCountryParameters?: Record; /** *

When set to true, the message is checked and validated, but isn't sent to the end @@ -3587,7 +3587,7 @@ export interface SendVoiceMessageRequest { *

You can specify custom data in this field. If you do, that data is logged to the event * destination.

*/ - Context?: { [key: string]: string }; + Context?: Record; /** *

When set to true, the message is checked and validated, but isn't sent to the end diff --git a/clients/client-pinpoint-sms-voice-v2/src/protocols/Aws_json1_0.ts b/clients/client-pinpoint-sms-voice-v2/src/protocols/Aws_json1_0.ts index 6edfd0b612e7..3cdd65319ba9 100644 --- a/clients/client-pinpoint-sms-voice-v2/src/protocols/Aws_json1_0.ts +++ b/clients/client-pinpoint-sms-voice-v2/src/protocols/Aws_json1_0.ts @@ -3387,7 +3387,7 @@ const serializeAws_json1_0ConfigurationSetNameList = (input: string[], context: }); }; -const serializeAws_json1_0ContextMap = (input: { [key: string]: string }, context: __SerdeContext): any => { +const serializeAws_json1_0ContextMap = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -3691,7 +3691,7 @@ const serializeAws_json1_0DescribeSpendLimitsRequest = ( }; const serializeAws_json1_0DestinationCountryParameters = ( - input: { [key: string]: string }, + input: Record, context: __SerdeContext ): any => { return Object.entries(input).reduce( diff --git a/clients/client-pinpoint/src/models/models_0.ts b/clients/client-pinpoint/src/models/models_0.ts index 1cc2c3a0c008..a9c907318f20 100644 --- a/clients/client-pinpoint/src/models/models_0.ts +++ b/clients/client-pinpoint/src/models/models_0.ts @@ -222,7 +222,7 @@ export interface EventDimensions { /** *

One or more custom attributes that your application reports to Amazon Pinpoint. You can use these attributes as selection criteria when you create an event filter.

*/ - Attributes?: { [key: string]: AttributeDimension }; + Attributes?: Record; /** *

The name of the event that causes the campaign to be sent or the journey activity to be performed. This can be a standard event that Amazon Pinpoint generates, such as _email.delivered. For campaigns, this can also be a custom event that's specific to your application. For information about standard events, see Streaming Amazon Pinpoint Events in the Amazon Pinpoint Developer Guide.

@@ -232,7 +232,7 @@ export interface EventDimensions { /** *

One or more custom metrics that your application reports to Amazon Pinpoint. You can use these metrics as selection criteria when you create an event filter.

*/ - Metrics?: { [key: string]: MetricDimension }; + Metrics?: Record; } export namespace EventDimensions { @@ -465,7 +465,7 @@ export interface SegmentDimensions { /** *

One or more custom attributes to use as criteria for the segment.

*/ - Attributes?: { [key: string]: AttributeDimension }; + Attributes?: Record; /** *

The behavior-based criteria, such as how recently users have used your app, for the segment.

@@ -485,12 +485,12 @@ export interface SegmentDimensions { /** *

One or more custom metrics to use as criteria for the segment.

*/ - Metrics?: { [key: string]: MetricDimension }; + Metrics?: Record; /** *

One or more custom user attributes to use as criteria for the segment.

*/ - UserAttributes?: { [key: string]: AttributeDimension }; + UserAttributes?: Record; } export namespace SegmentDimensions { @@ -1127,7 +1127,7 @@ export interface AddressConfiguration { /** *

An object that maps custom attributes to attributes for the address and is attached to the message. Attribute names are case sensitive.

For a push notification, this payload is added to the data.pinpoint object. For an email or text message, this payload is added to email/SMS delivery receipt event attributes.

*/ - Context?: { [key: string]: string }; + Context?: Record; /** *

The raw, JSON-formatted string to use as the payload for the message. If specified, this value overrides all other values for the message.

@@ -1137,7 +1137,7 @@ export interface AddressConfiguration { /** *

A map of the message variables to merge with the variables specified by properties of the DefaultMessage object. The variables specified in this map take precedence over all other variables.

*/ - Substitutions?: { [key: string]: string[] }; + Substitutions?: Record; /** *

The message title to use instead of the default message title. This value overrides the default message title.

@@ -1269,7 +1269,7 @@ export interface ADMMessage { /** *

The JSON data payload to use for the push notification, if the notification is a silent push notification. This payload is added to the data.pinpoint.jsonBody object of the notification.

*/ - Data?: { [key: string]: string }; + Data?: Record; /** *

The amount of time, in seconds, that ADM should store the message if the recipient's device is offline. Amazon Pinpoint specifies this value in the expiresAfter parameter when it sends the notification message to ADM.

@@ -1319,7 +1319,7 @@ export interface ADMMessage { /** *

The default message variables to use in the notification message. You can override the default variables with individual address variables.

*/ - Substitutions?: { [key: string]: string[] }; + Substitutions?: Record; /** *

The title to display above the notification message on the recipient's device.

@@ -1571,7 +1571,7 @@ export interface APNSMessage { /** *

The JSON payload to use for a silent push notification. This payload is added to the data.pinpoint.jsonBody object of the notification.

*/ - Data?: { [key: string]: string }; + Data?: Record; /** *

The URL of an image or video to display in the push notification.

@@ -1606,7 +1606,7 @@ export interface APNSMessage { /** *

The default message variables to use in the notification message. You can override these default variables with individual address variables.

*/ - Substitutions?: { [key: string]: string[] }; + Substitutions?: Record; /** *

The key that represents your app-specific identifier for grouping notifications. If you provide a Notification Content app extension, you can use this value to group your notifications together.

@@ -2209,7 +2209,7 @@ export interface ApplicationResponse { /** *

A string-to-string map of key-value pairs that identifies the tags that are associated with the application. Each tag consists of a required tag key and an associated tag value.

*/ - tags?: { [key: string]: string }; + tags?: Record; /** *

The date and time when the Application was created.

@@ -2560,7 +2560,7 @@ export interface BaiduMessage { /** *

The JSON data payload to use for the push notification, if the notification is a silent push notification. This payload is added to the data.pinpoint.jsonBody object of the notification.

*/ - Data?: { [key: string]: string }; + Data?: Record; /** *

The icon image name of the asset saved in your app.

@@ -2600,7 +2600,7 @@ export interface BaiduMessage { /** *

The default message variables to use in the notification message. You can override the default variables with individual address variables.

*/ - Substitutions?: { [key: string]: string[] }; + Substitutions?: Record; /** *

The amount of time, in seconds, that the Baidu Cloud Push service should store the message if the recipient's device is offline. The default value and maximum supported time is 604,800 seconds (7 days).

@@ -2994,7 +2994,7 @@ export interface CampaignInAppMessage { /** *

Custom config to be sent to client.

*/ - CustomConfig?: { [key: string]: string }; + CustomConfig?: Record; /** *

In-app message layout.

@@ -3522,7 +3522,7 @@ export interface CampaignResponse { /** *

A string-to-string map of key-value pairs that identifies the tags that are associated with the campaign. Each tag consists of a required tag key and an associated tag value.

*/ - tags?: { [key: string]: string }; + tags?: Record; /** *

The message template that’s used for the campaign.

@@ -3649,7 +3649,7 @@ export interface ChannelsResponse { /** *

A map that contains a multipart response for each channel. For each item in this object, the ChannelType is the key and the Channel is the value.

*/ - Channels: { [key: string]: ChannelResponse } | undefined; + Channels: Record | undefined; } export namespace ChannelsResponse { @@ -3703,7 +3703,7 @@ export interface CreateApplicationRequest { /** *

A string-to-string map of key-value pairs that defines the tags to associate with the application. Each tag consists of a required tag key and an associated tag value.

*/ - tags?: { [key: string]: string }; + tags?: Record; } export namespace CreateApplicationRequest { @@ -4043,7 +4043,7 @@ export interface WriteCampaignRequest { /** *

A string-to-string map of key-value pairs that defines the tags to associate with the campaign. Each tag consists of a required tag key and an associated tag value.

*/ - tags?: { [key: string]: string }; + tags?: Record; /** *

The message template to use for the campaign.

@@ -4139,7 +4139,7 @@ export interface EmailTemplateRequest { /** *

A string-to-string map of key-value pairs that defines the tags to associate with the message template. Each tag consists of a required tag key and an associated tag value.

*/ - tags?: { [key: string]: string }; + tags?: Record; /** *

A custom description of the message template.

@@ -4664,7 +4664,7 @@ export interface InAppTemplateRequest { /** *

Custom config to be sent to client.

*/ - CustomConfig?: { [key: string]: string }; + CustomConfig?: Record; /** *

The layout of the message.

@@ -4674,7 +4674,7 @@ export interface InAppTemplateRequest { /** *

A string-to-string map of key-value pairs that defines the tags to associate with the message template. Each tag consists of a required tag key and an associated tag value.

*/ - tags?: { [key: string]: string }; + tags?: Record; /** *

The description of the template.

@@ -4939,7 +4939,7 @@ export interface WriteJourneyRequest { /** *

A map that contains a set of Activity objects, one object for each activity in the journey. For each Activity object, the key is the unique identifier (string) for an activity and the value is the settings for the activity. An activity identifier can contain a maximum of 100 characters. The characters must be alphanumeric characters.

*/ - Activities?: { [key: string]: Activity }; + Activities?: Record; /** *

The date, in ISO 8601 format, when the journey was created.

@@ -5049,7 +5049,7 @@ export interface JourneyResponse { /** *

A map that contains a set of Activity objects, one object for each activity in the journey. For each Activity object, the key is the unique identifier (string) for an activity and the value is the settings for the activity.

*/ - Activities?: { [key: string]: Activity }; + Activities?: Record; /** *

The unique identifier for the application that the journey applies to.

@@ -5119,7 +5119,7 @@ export interface JourneyResponse { /** *

This object is not used or supported.

*/ - tags?: { [key: string]: string }; + tags?: Record; /** *

Specifies whether endpoints in quiet hours should enter a wait till the end of their quiet hours.

@@ -5243,7 +5243,7 @@ export interface PushNotificationTemplateRequest { /** *

A string-to-string map of key-value pairs that defines the tags to associate with the message template. Each tag consists of a required tag key and an associated tag value.

*/ - tags?: { [key: string]: string }; + tags?: Record; /** *

A custom description of the message template.

@@ -5304,7 +5304,7 @@ export interface CreateRecommenderConfigurationShape { /** *

A map of key-value pairs that defines 1-10 custom endpoint or user attributes, depending on the value for the RecommendationProviderIdType property. Each of these attributes temporarily stores a recommended item that's retrieved from the recommender model and sent to an AWS Lambda function for additional processing. Each attribute can be used as a message variable in a message template.

In the map, the key is the name of a custom attribute and the value is a custom display name for that attribute. The display name appears in the Attribute finder of the template editor on the Amazon Pinpoint console. The following restrictions apply to these names:

  • An attribute name must start with a letter or number and it can contain up to 50 characters. The characters can be letters, numbers, underscores (_), or hyphens (-). Attribute names are case sensitive and must be unique.

  • An attribute display name must start with a letter or number and it can contain up to 25 characters. The characters can be letters, numbers, spaces, underscores (_), or hyphens (-).

This object is required if the configuration invokes an AWS Lambda function (RecommendationTransformerUri) to process recommendation data. Otherwise, don't include this object in your request.

*/ - Attributes?: { [key: string]: string }; + Attributes?: Record; /** *

A custom description of the configuration for the recommender model. The description can contain up to 128 characters. The characters can be letters, numbers, spaces, or the following symbols: _ ; () , ‐.

@@ -5379,7 +5379,7 @@ export interface RecommenderConfigurationResponse { /** *

A map that defines 1-10 custom endpoint or user attributes, depending on the value for the RecommendationProviderIdType property. Each of these attributes temporarily stores a recommended item that's retrieved from the recommender model and sent to an AWS Lambda function for additional processing. Each attribute can be used as a message variable in a message template.

This value is null if the configuration doesn't invoke an AWS Lambda function (RecommendationTransformerUri) to perform additional processing of recommendation data.

*/ - Attributes?: { [key: string]: string }; + Attributes?: Record; /** *

The date, in extended ISO 8601 format, when the configuration was created for the recommender model.

@@ -5584,7 +5584,7 @@ export interface WriteSegmentRequest { /** *

A string-to-string map of key-value pairs that defines the tags to associate with the segment. Each tag consists of a required tag key and an associated tag value.

*/ - tags?: { [key: string]: string }; + tags?: Record; } export namespace WriteSegmentRequest { @@ -5624,7 +5624,7 @@ export interface SegmentImportResource { /** *

The number of channel types in the endpoint definitions that were imported to create the segment.

*/ - ChannelCounts?: { [key: string]: number }; + ChannelCounts?: Record; /** *

(Deprecated) Your AWS account ID, which you assigned to an external ID key in an IAM trust policy. Amazon Pinpoint previously used this value to assume an IAM role when importing endpoint definitions, but we removed this requirement. We don't recommend use of external IDs for IAM roles that are assumed by Amazon Pinpoint.

@@ -5723,7 +5723,7 @@ export interface SegmentResponse { /** *

A string-to-string map of key-value pairs that identifies the tags that are associated with the segment. Each tag consists of a required tag key and an associated tag value.

*/ - tags?: { [key: string]: string }; + tags?: Record; /** *

The version number of the segment.

@@ -5778,7 +5778,7 @@ export interface SMSTemplateRequest { /** *

A string-to-string map of key-value pairs that defines the tags to associate with the message template. Each tag consists of a required tag key and an associated tag value.

*/ - tags?: { [key: string]: string }; + tags?: Record; /** *

A custom description of the message template.

@@ -5854,7 +5854,7 @@ export interface VoiceTemplateRequest { /** *

A string-to-string map of key-value pairs that defines the tags to associate with the message template. Each tag consists of a required tag key and an associated tag value.

*/ - tags?: { [key: string]: string }; + tags?: Record; /** *

A custom description of the message template.

@@ -5925,7 +5925,7 @@ export interface DefaultMessage { /** *

The default message variables to use in the message. You can override these default variables with individual address variables.

*/ - Substitutions?: { [key: string]: string[] }; + Substitutions?: Record; } export namespace DefaultMessage { @@ -5954,7 +5954,7 @@ export interface DefaultPushNotificationMessage { /** *

The JSON data payload to use for the default push notification, if the notification is a silent push notification. This payload is added to the data.pinpoint.jsonBody object of the notification.

*/ - Data?: { [key: string]: string }; + Data?: Record; /** *

Specifies whether the default notification is a silent push notification, which is a push notification that doesn't display on a recipient's device. Silent push notifications can be used for cases such as updating an app's configuration or delivering messages to an in-app notification center.

@@ -5964,7 +5964,7 @@ export interface DefaultPushNotificationMessage { /** *

The default message variables to use in the notification message. You can override the default variables with individual address variables.

*/ - Substitutions?: { [key: string]: string[] }; + Substitutions?: Record; /** *

The default title to display above the notification message on a recipient's device.

@@ -6555,7 +6555,7 @@ export interface EndpointUser { /** *

One or more custom attributes that describe the user by associating a name with an array of values. For example, the value of an attribute named Interests might be: ["Science", "Music", "Travel"]. You can use these attributes as filter criteria when you create segments. Attribute names are case sensitive.

An attribute name can contain up to 50 characters. An attribute value can contain up to 100 characters. When you define the name of a custom attribute, avoid using the following characters: number sign (#), colon (:), question mark (?), backslash (\), and slash (/). The Amazon Pinpoint console can't display attribute names that contain these characters. This restriction doesn't apply to attribute values.

*/ - UserAttributes?: { [key: string]: string[] }; + UserAttributes?: Record; /** *

The unique identifier for the user.

@@ -6589,7 +6589,7 @@ export interface EndpointResponse { /** *

One or more custom attributes that describe the endpoint by associating a name with an array of values. For example, the value of a custom attribute named Interests might be: ["Science", "Music", "Travel"]. You can use these attributes as filter criteria when you create segments.

*/ - Attributes?: { [key: string]: string[] }; + Attributes?: Record; /** *

The channel that's used when sending messages or push notifications to the endpoint.

@@ -6634,7 +6634,7 @@ export interface EndpointResponse { /** *

One or more custom metrics that your app reports to Amazon Pinpoint for the endpoint.

*/ - Metrics?: { [key: string]: number }; + Metrics?: Record; /** *

Specifies whether the user who's associated with the endpoint has opted out of receiving messages and push notifications from you. Possible values are: ALL, the user has opted out and doesn't want to receive any messages or push notifications; and, NONE, the user hasn't opted out and wants to receive all messages and push notifications.

@@ -7497,7 +7497,7 @@ export interface EmailMessage { /** *

The default message variables to use in the email message. You can override the default variables with individual address variables.

*/ - Substitutions?: { [key: string]: string[] }; + Substitutions?: Record; } export namespace EmailMessage { @@ -7531,7 +7531,7 @@ export interface GCMMessage { /** *

The JSON data payload to use for the push notification, if the notification is a silent push notification. This payload is added to the data.pinpoint.jsonBody object of the notification.

*/ - Data?: { [key: string]: string }; + Data?: Record; /** *

The icon image name of the asset saved in your app.

@@ -7581,7 +7581,7 @@ export interface GCMMessage { /** *

The default message variables to use in the notification message. You can override the default variables with individual address variables.

*/ - Substitutions?: { [key: string]: string[] }; + Substitutions?: Record; /** *

The amount of time, in seconds, that FCM should store and attempt to deliver the push notification, if the service is unable to deliver the notification the first time. If you don't specify this value, FCM defaults to the maximum value, which is 2,419,200 seconds (28 days).

Amazon Pinpoint specifies this value in the FCM time_to_live parameter when it sends the notification message to FCM.

@@ -7645,7 +7645,7 @@ export interface SMSMessage { /** *

The message variables to use in the SMS message. You can override the default variables with individual address variables.

*/ - Substitutions?: { [key: string]: string[] }; + Substitutions?: Record; /** *

The entity ID or Principal Entity (PE) id received from the regulatory body for sending SMS in your country.

@@ -7689,7 +7689,7 @@ export interface VoiceMessage { /** *

The default message variables to use in the voice message. You can override the default variables with individual address variables.

*/ - Substitutions?: { [key: string]: string[] }; + Substitutions?: Record; /** *

The name of the voice to use when delivering the message. For a list of supported voices, see the Amazon Polly Developer Guide.

@@ -7854,7 +7854,7 @@ export interface EmailTemplateResponse { /** *

A string-to-string map of key-value pairs that identifies the tags that are associated with the message template. Each tag consists of a required tag key and an associated tag value.

*/ - tags?: { [key: string]: string }; + tags?: Record; /** *

The custom description of the message template.

@@ -7903,7 +7903,7 @@ export interface EndpointBatchItem { /** *

One or more custom attributes that describe the endpoint by associating a name with an array of values. For example, the value of a custom attribute named Interests might be: ["Science", "Music", "Travel"]. You can use these attributes as filter criteria when you create segments. Attribute names are case sensitive.

An attribute name can contain up to 50 characters. An attribute value can contain up to 100 characters. When you define the name of a custom attribute, avoid using the following characters: number sign (#), colon (:), question mark (?), backslash (\), and slash (/). The Amazon Pinpoint console can't display attribute names that contain these characters. This restriction doesn't apply to attribute values.

*/ - Attributes?: { [key: string]: string[] }; + Attributes?: Record; /** *

The channel to use when sending messages or push notifications to the endpoint.

@@ -7938,7 +7938,7 @@ export interface EndpointBatchItem { /** *

One or more custom metrics that your app reports to Amazon Pinpoint for the endpoint.

*/ - Metrics?: { [key: string]: number }; + Metrics?: Record; /** *

Specifies whether the user who's associated with the endpoint has opted out of receiving messages and push notifications from you. Possible values are: ALL, the user has opted out and doesn't want to receive any messages or push notifications; and, NONE, the user hasn't opted out and wants to receive all messages and push notifications.

@@ -8064,7 +8064,7 @@ export interface EndpointRequest { /** *

One or more custom attributes that describe the endpoint by associating a name with an array of values. For example, the value of a custom attribute named Interests might be: ["Science", "Music", "Travel"]. You can use these attributes as filter criteria when you create segments. Attribute names are case sensitive.

An attribute name can contain up to 50 characters. An attribute value can contain up to 100 characters. When you define the name of a custom attribute, avoid using the following characters: number sign (#), colon (:), question mark (?), backslash (\), and slash (/). The Amazon Pinpoint console can't display attribute names that contain these characters. This restriction doesn't apply to attribute values.

*/ - Attributes?: { [key: string]: string[] }; + Attributes?: Record; /** *

The channel to use when sending messages or push notifications to the endpoint.

@@ -8094,7 +8094,7 @@ export interface EndpointRequest { /** *

One or more custom metrics that your app reports to Amazon Pinpoint for the endpoint.

*/ - Metrics?: { [key: string]: number }; + Metrics?: Record; /** *

Specifies whether the user who's associated with the endpoint has opted out of receiving messages and push notifications from you. Possible values are: ALL, the user has opted out and doesn't want to receive any messages or push notifications; and, NONE, the user hasn't opted out and wants to receive all messages and push notifications.

@@ -8133,7 +8133,7 @@ export interface EndpointSendConfiguration { /** *

A map of custom attributes to attach to the message for the address. Attribute names are case sensitive.

For a push notification, this payload is added to the data.pinpoint object. For an email or text message, this payload is added to email/SMS delivery receipt event attributes.

*/ - Context?: { [key: string]: string }; + Context?: Record; /** *

The raw, JSON-formatted string to use as the payload for the message. If specified, this value overrides all other values for the message.

@@ -8143,7 +8143,7 @@ export interface EndpointSendConfiguration { /** *

A map of the message variables to merge with the variables specified for the default message (DefaultMessage.Substitutions). The variables specified in this map take precedence over all other variables.

*/ - Substitutions?: { [key: string]: string[] }; + Substitutions?: Record; /** *

The title or subject line of the message. If specified, this value overrides the default message title or subject line.

@@ -8216,7 +8216,7 @@ export interface Event { /** *

One or more custom attributes that are associated with the event.

*/ - Attributes?: { [key: string]: string }; + Attributes?: Record; /** *

The version of the SDK that's running on the client device.

@@ -8231,7 +8231,7 @@ export interface Event { /** *

One or more custom metrics that are associated with the event.

*/ - Metrics?: { [key: string]: number }; + Metrics?: Record; /** *

The name of the SDK that's being used to record the event.

@@ -8294,7 +8294,7 @@ export interface PublicEndpoint { /** *

One or more custom attributes that describe the endpoint by associating a name with an array of values. You can use these attributes as filter criteria when you create segments.

*/ - Attributes?: { [key: string]: string[] }; + Attributes?: Record; /** *

The channel that's used when sending messages or push notifications to the endpoint.

@@ -8324,7 +8324,7 @@ export interface PublicEndpoint { /** *

One or more custom metrics that your app reports to Amazon Pinpoint for the endpoint.

*/ - Metrics?: { [key: string]: number }; + Metrics?: Record; /** *

Specifies whether the user who's associated with the endpoint has opted out of receiving messages and push notifications from you. Possible values are: ALL, the user has opted out and doesn't want to receive any messages or push notifications; and, NONE, the user hasn't opted out and wants to receive all messages and push notifications.

@@ -8363,7 +8363,7 @@ export interface EventsBatch { /** *

A set of properties that are associated with the event.

*/ - Events: { [key: string]: Event } | undefined; + Events: Record | undefined; } export namespace EventsBatch { @@ -8382,7 +8382,7 @@ export interface EventsRequest { /** *

The batch of events to process. For each item in a batch, the endpoint ID acts as a key that has an EventsBatch object as its value.

*/ - BatchItem: { [key: string]: EventsBatch } | undefined; + BatchItem: Record | undefined; } export namespace EventsRequest { @@ -8406,7 +8406,7 @@ export interface ItemResponse { /** *

A multipart response object that contains a key and a value for each event in the request. In each object, the event ID is the key and an EventItemResponse object is the value.

*/ - EventsItemResponse?: { [key: string]: EventItemResponse }; + EventsItemResponse?: Record; } export namespace ItemResponse { @@ -8425,7 +8425,7 @@ export interface EventsResponse { /** *

A map that contains a multipart response for each endpoint. For each item in this object, the endpoint ID is the key and the item response is the value. If no item response exists, the value can also be one of the following: 202, the request was processed successfully; or 400, the payload wasn't valid or required fields were missing.

*/ - Results?: { [key: string]: ItemResponse }; + Results?: Record; } export namespace EventsResponse { diff --git a/clients/client-pinpoint/src/models/models_1.ts b/clients/client-pinpoint/src/models/models_1.ts index 89781f99a3cd..5c5e2bd2c3d0 100644 --- a/clients/client-pinpoint/src/models/models_1.ts +++ b/clients/client-pinpoint/src/models/models_1.ts @@ -396,7 +396,7 @@ export interface InAppMessage { /** *

Custom config to be sent to SDK.

*/ - CustomConfig?: { [key: string]: string }; + CustomConfig?: Record; /** *

The layout of the message.

@@ -574,7 +574,7 @@ export interface InAppTemplateResponse { /** *

Custom config to be sent to client.

*/ - CustomConfig?: { [key: string]: string }; + CustomConfig?: Record; /** *

The last modified date of the template.

@@ -589,7 +589,7 @@ export interface InAppTemplateResponse { /** *

A string-to-string map of key-value pairs that defines the tags to associate with the message template. Each tag consists of a required tag key and an associated tag value.

*/ - tags?: { [key: string]: string }; + tags?: Record; /** *

The description of the template.

@@ -853,7 +853,7 @@ export interface JourneyExecutionActivityMetricsResponse { /** *

A JSON object that contains the results of the query. The results vary depending on the type of activity (ActivityType). For information about the structure and contents of the results, see the Amazon Pinpoint Developer Guide.

*/ - Metrics: { [key: string]: string } | undefined; + Metrics: Record | undefined; } export namespace JourneyExecutionActivityMetricsResponse { @@ -934,7 +934,7 @@ export interface JourneyExecutionMetricsResponse { /** *

A JSON object that contains the results of the query. For information about the structure and contents of the results, see the Amazon Pinpoint Developer Guide.

*/ - Metrics: { [key: string]: string } | undefined; + Metrics: Record | undefined; } export namespace JourneyExecutionMetricsResponse { @@ -1040,7 +1040,7 @@ export interface PushNotificationTemplateResponse { /** *

A string-to-string map of key-value pairs that identifies the tags that are associated with the message template. Each tag consists of a required tag key and an associated tag value.

*/ - tags?: { [key: string]: string }; + tags?: Record; /** *

The custom description of the message template.

@@ -1557,7 +1557,7 @@ export interface SMSTemplateResponse { /** *

A string-to-string map of key-value pairs that identifies the tags that are associated with the message template. Each tag consists of a required tag key and an associated tag value.

*/ - tags?: { [key: string]: string }; + tags?: Record; /** *

The custom description of the message template.

@@ -1732,7 +1732,7 @@ export interface VoiceTemplateResponse { /** *

A string-to-string map of key-value pairs that identifies the tags that are associated with the message template. Each tag consists of a required tag key and an associated tag value.

*/ - tags?: { [key: string]: string }; + tags?: Record; /** *

The custom description of the message template.

@@ -1897,7 +1897,7 @@ export interface TemplateResponse { /** *

A map of key-value pairs that identifies the tags that are associated with the message template. This object isn't included in a TemplateResponse object. To retrieve this object for a template, use the GetEmailTemplate, GetPushTemplate, GetSmsTemplate, or GetVoiceTemplate operation, depending on the type of template that you want to retrieve the object for.

*/ - tags?: { [key: string]: string }; + tags?: Record; /** *

The custom description of the message template. This value isn't included in a TemplateResponse object. To retrieve the description of a template, use the GetEmailTemplate, GetPushTemplate, GetSmsTemplate, or GetVoiceTemplate operation, depending on the type of template that you want to retrieve the description for.

@@ -2001,7 +2001,7 @@ export interface TagsModel { /** *

A string-to-string map of key-value pairs that defines the tags for an application, campaign, message template, or segment. Each of these resources can have a maximum of 50 tags.

Each tag consists of a required tag key and an associated tag value. The maximum length of a tag key is 128 characters. The maximum length of a tag value is 256 characters.

*/ - tags: { [key: string]: string } | undefined; + tags: Record | undefined; } export namespace TagsModel { @@ -2227,17 +2227,17 @@ export interface MessageRequest { /** *

A map of key-value pairs, where each key is an address and each value is an AddressConfiguration object. An address can be a push notification token, a phone number, or an email address. You can use an AddressConfiguration object to tailor the message for an address by specifying settings such as content overrides and message variables.

*/ - Addresses?: { [key: string]: AddressConfiguration }; + Addresses?: Record; /** *

A map of custom attributes to attach to the message. For a push notification, this payload is added to the data.pinpoint object. For an email or text message, this payload is added to email/SMS delivery receipt event attributes.

*/ - Context?: { [key: string]: string }; + Context?: Record; /** *

A map of key-value pairs, where each key is an endpoint ID and each value is an EndpointSendConfiguration object. You can use an EndpointSendConfiguration object to tailor the message for an endpoint by specifying settings such as content overrides and message variables.

*/ - Endpoints?: { [key: string]: EndpointSendConfiguration }; + Endpoints?: Record; /** *

The settings and content for the default message and any default messages that you defined for specific channels.

@@ -2276,7 +2276,7 @@ export interface MessageResponse { /** *

A map that contains a multipart response for each address that the message was sent to. In the map, the endpoint ID is the key and the result is the value.

*/ - EndpointResult?: { [key: string]: EndpointMessageResult }; + EndpointResult?: Record; /** *

The identifier for the original request that the message was delivered for.

@@ -2286,7 +2286,7 @@ export interface MessageResponse { /** *

A map that contains a multipart response for each address (email address, phone number, or push notification token) that the message was sent to. In the map, the address is the key and the result is the value.

*/ - Result?: { [key: string]: MessageResult }; + Result?: Record; } export namespace MessageResponse { @@ -2750,7 +2750,7 @@ export interface SendUsersMessageRequest { /** *

A map of custom attribute-value pairs. For a push notification, Amazon Pinpoint adds these attributes to the data.pinpoint object in the body of the notification payload. Amazon Pinpoint also provides these attributes in the events that it generates for users-messages deliveries.

*/ - Context?: { [key: string]: string }; + Context?: Record; /** *

The settings and content for the default message and any default messages that you defined for specific channels.

@@ -2770,7 +2770,7 @@ export interface SendUsersMessageRequest { /** *

A map that associates user IDs with EndpointSendConfiguration objects. You can use an EndpointSendConfiguration object to tailor the message for a user by specifying settings such as content overrides and message variables.

*/ - Users: { [key: string]: EndpointSendConfiguration } | undefined; + Users: Record | undefined; } export namespace SendUsersMessageRequest { @@ -2820,7 +2820,7 @@ export interface SendUsersMessageResponse { /** *

An object that indicates which endpoints the message was sent to, for each user. The object lists user IDs and, for each user ID, provides the endpoint IDs that the message was sent to. For each endpoint ID, it provides an EndpointMessageResult object.

*/ - Result?: { [key: string]: { [key: string]: EndpointMessageResult } }; + Result?: Record>; } export namespace SendUsersMessageResponse { @@ -3611,7 +3611,7 @@ export interface UpdateRecommenderConfigurationShape { /** *

A map of key-value pairs that defines 1-10 custom endpoint or user attributes, depending on the value for the RecommendationProviderIdType property. Each of these attributes temporarily stores a recommended item that's retrieved from the recommender model and sent to an AWS Lambda function for additional processing. Each attribute can be used as a message variable in a message template.

In the map, the key is the name of a custom attribute and the value is a custom display name for that attribute. The display name appears in the Attribute finder of the template editor on the Amazon Pinpoint console. The following restrictions apply to these names:

  • An attribute name must start with a letter or number and it can contain up to 50 characters. The characters can be letters, numbers, underscores (_), or hyphens (-). Attribute names are case sensitive and must be unique.

  • An attribute display name must start with a letter or number and it can contain up to 25 characters. The characters can be letters, numbers, spaces, underscores (_), or hyphens (-).

This object is required if the configuration invokes an AWS Lambda function (RecommendationTransformerUri) to process recommendation data. Otherwise, don't include this object in your request.

*/ - Attributes?: { [key: string]: string }; + Attributes?: Record; /** *

A custom description of the configuration for the recommender model. The description can contain up to 128 characters. The characters can be letters, numbers, spaces, or the following symbols: _ ; () , ‐.

diff --git a/clients/client-pinpoint/src/protocols/Aws_restJson1.ts b/clients/client-pinpoint/src/protocols/Aws_restJson1.ts index 35f0e593e747..4680addcd7cb 100644 --- a/clients/client-pinpoint/src/protocols/Aws_restJson1.ts +++ b/clients/client-pinpoint/src/protocols/Aws_restJson1.ts @@ -4830,7 +4830,7 @@ export const deserializeAws_restJson1CreateAppCommand = async ( $metadata: deserializeMetadata(output), ApplicationResponse: undefined, }; - const data: { [key: string]: any } | undefined = __expectObject(await parseBody(output.body, context)); + const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.ApplicationResponse = deserializeAws_restJson1ApplicationResponse(data, context); return Promise.resolve(contents); }; @@ -4890,7 +4890,7 @@ export const deserializeAws_restJson1CreateCampaignCommand = async ( $metadata: deserializeMetadata(output), CampaignResponse: undefined, }; - const data: { [key: string]: any } | undefined = __expectObject(await parseBody(output.body, context)); + const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.CampaignResponse = deserializeAws_restJson1CampaignResponse(data, context); return Promise.resolve(contents); }; @@ -4950,7 +4950,7 @@ export const deserializeAws_restJson1CreateEmailTemplateCommand = async ( $metadata: deserializeMetadata(output), CreateTemplateMessageBody: undefined, }; - const data: { [key: string]: any } | undefined = __expectObject(await parseBody(output.body, context)); + const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.CreateTemplateMessageBody = deserializeAws_restJson1CreateTemplateMessageBody(data, context); return Promise.resolve(contents); }; @@ -5004,7 +5004,7 @@ export const deserializeAws_restJson1CreateExportJobCommand = async ( $metadata: deserializeMetadata(output), ExportJobResponse: undefined, }; - const data: { [key: string]: any } | undefined = __expectObject(await parseBody(output.body, context)); + const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.ExportJobResponse = deserializeAws_restJson1ExportJobResponse(data, context); return Promise.resolve(contents); }; @@ -5064,7 +5064,7 @@ export const deserializeAws_restJson1CreateImportJobCommand = async ( $metadata: deserializeMetadata(output), ImportJobResponse: undefined, }; - const data: { [key: string]: any } | undefined = __expectObject(await parseBody(output.body, context)); + const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.ImportJobResponse = deserializeAws_restJson1ImportJobResponse(data, context); return Promise.resolve(contents); }; @@ -5124,7 +5124,7 @@ export const deserializeAws_restJson1CreateInAppTemplateCommand = async ( $metadata: deserializeMetadata(output), TemplateCreateMessageBody: undefined, }; - const data: { [key: string]: any } | undefined = __expectObject(await parseBody(output.body, context)); + const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.TemplateCreateMessageBody = deserializeAws_restJson1TemplateCreateMessageBody(data, context); return Promise.resolve(contents); }; @@ -5178,7 +5178,7 @@ export const deserializeAws_restJson1CreateJourneyCommand = async ( $metadata: deserializeMetadata(output), JourneyResponse: undefined, }; - const data: { [key: string]: any } | undefined = __expectObject(await parseBody(output.body, context)); + const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.JourneyResponse = deserializeAws_restJson1JourneyResponse(data, context); return Promise.resolve(contents); }; @@ -5238,7 +5238,7 @@ export const deserializeAws_restJson1CreatePushTemplateCommand = async ( $metadata: deserializeMetadata(output), CreateTemplateMessageBody: undefined, }; - const data: { [key: string]: any } | undefined = __expectObject(await parseBody(output.body, context)); + const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.CreateTemplateMessageBody = deserializeAws_restJson1CreateTemplateMessageBody(data, context); return Promise.resolve(contents); }; @@ -5292,7 +5292,7 @@ export const deserializeAws_restJson1CreateRecommenderConfigurationCommand = asy $metadata: deserializeMetadata(output), RecommenderConfigurationResponse: undefined, }; - const data: { [key: string]: any } | undefined = __expectObject(await parseBody(output.body, context)); + const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.RecommenderConfigurationResponse = deserializeAws_restJson1RecommenderConfigurationResponse(data, context); return Promise.resolve(contents); }; @@ -5352,7 +5352,7 @@ export const deserializeAws_restJson1CreateSegmentCommand = async ( $metadata: deserializeMetadata(output), SegmentResponse: undefined, }; - const data: { [key: string]: any } | undefined = __expectObject(await parseBody(output.body, context)); + const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.SegmentResponse = deserializeAws_restJson1SegmentResponse(data, context); return Promise.resolve(contents); }; @@ -5412,7 +5412,7 @@ export const deserializeAws_restJson1CreateSmsTemplateCommand = async ( $metadata: deserializeMetadata(output), CreateTemplateMessageBody: undefined, }; - const data: { [key: string]: any } | undefined = __expectObject(await parseBody(output.body, context)); + const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.CreateTemplateMessageBody = deserializeAws_restJson1CreateTemplateMessageBody(data, context); return Promise.resolve(contents); }; @@ -5466,7 +5466,7 @@ export const deserializeAws_restJson1CreateVoiceTemplateCommand = async ( $metadata: deserializeMetadata(output), CreateTemplateMessageBody: undefined, }; - const data: { [key: string]: any } | undefined = __expectObject(await parseBody(output.body, context)); + const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.CreateTemplateMessageBody = deserializeAws_restJson1CreateTemplateMessageBody(data, context); return Promise.resolve(contents); }; @@ -5520,7 +5520,7 @@ export const deserializeAws_restJson1DeleteAdmChannelCommand = async ( $metadata: deserializeMetadata(output), ADMChannelResponse: undefined, }; - const data: { [key: string]: any } | undefined = __expectObject(await parseBody(output.body, context)); + const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.ADMChannelResponse = deserializeAws_restJson1ADMChannelResponse(data, context); return Promise.resolve(contents); }; @@ -5580,7 +5580,7 @@ export const deserializeAws_restJson1DeleteApnsChannelCommand = async ( $metadata: deserializeMetadata(output), APNSChannelResponse: undefined, }; - const data: { [key: string]: any } | undefined = __expectObject(await parseBody(output.body, context)); + const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.APNSChannelResponse = deserializeAws_restJson1APNSChannelResponse(data, context); return Promise.resolve(contents); }; @@ -5640,7 +5640,7 @@ export const deserializeAws_restJson1DeleteApnsSandboxChannelCommand = async ( $metadata: deserializeMetadata(output), APNSSandboxChannelResponse: undefined, }; - const data: { [key: string]: any } | undefined = __expectObject(await parseBody(output.body, context)); + const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.APNSSandboxChannelResponse = deserializeAws_restJson1APNSSandboxChannelResponse(data, context); return Promise.resolve(contents); }; @@ -5700,7 +5700,7 @@ export const deserializeAws_restJson1DeleteApnsVoipChannelCommand = async ( $metadata: deserializeMetadata(output), APNSVoipChannelResponse: undefined, }; - const data: { [key: string]: any } | undefined = __expectObject(await parseBody(output.body, context)); + const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.APNSVoipChannelResponse = deserializeAws_restJson1APNSVoipChannelResponse(data, context); return Promise.resolve(contents); }; @@ -5760,7 +5760,7 @@ export const deserializeAws_restJson1DeleteApnsVoipSandboxChannelCommand = async $metadata: deserializeMetadata(output), APNSVoipSandboxChannelResponse: undefined, }; - const data: { [key: string]: any } | undefined = __expectObject(await parseBody(output.body, context)); + const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.APNSVoipSandboxChannelResponse = deserializeAws_restJson1APNSVoipSandboxChannelResponse(data, context); return Promise.resolve(contents); }; @@ -5820,7 +5820,7 @@ export const deserializeAws_restJson1DeleteAppCommand = async ( $metadata: deserializeMetadata(output), ApplicationResponse: undefined, }; - const data: { [key: string]: any } | undefined = __expectObject(await parseBody(output.body, context)); + const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.ApplicationResponse = deserializeAws_restJson1ApplicationResponse(data, context); return Promise.resolve(contents); }; @@ -5880,7 +5880,7 @@ export const deserializeAws_restJson1DeleteBaiduChannelCommand = async ( $metadata: deserializeMetadata(output), BaiduChannelResponse: undefined, }; - const data: { [key: string]: any } | undefined = __expectObject(await parseBody(output.body, context)); + const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.BaiduChannelResponse = deserializeAws_restJson1BaiduChannelResponse(data, context); return Promise.resolve(contents); }; @@ -5940,7 +5940,7 @@ export const deserializeAws_restJson1DeleteCampaignCommand = async ( $metadata: deserializeMetadata(output), CampaignResponse: undefined, }; - const data: { [key: string]: any } | undefined = __expectObject(await parseBody(output.body, context)); + const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.CampaignResponse = deserializeAws_restJson1CampaignResponse(data, context); return Promise.resolve(contents); }; @@ -6000,7 +6000,7 @@ export const deserializeAws_restJson1DeleteEmailChannelCommand = async ( $metadata: deserializeMetadata(output), EmailChannelResponse: undefined, }; - const data: { [key: string]: any } | undefined = __expectObject(await parseBody(output.body, context)); + const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.EmailChannelResponse = deserializeAws_restJson1EmailChannelResponse(data, context); return Promise.resolve(contents); }; @@ -6060,7 +6060,7 @@ export const deserializeAws_restJson1DeleteEmailTemplateCommand = async ( $metadata: deserializeMetadata(output), MessageBody: undefined, }; - const data: { [key: string]: any } | undefined = __expectObject(await parseBody(output.body, context)); + const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.MessageBody = deserializeAws_restJson1MessageBody(data, context); return Promise.resolve(contents); }; @@ -6120,7 +6120,7 @@ export const deserializeAws_restJson1DeleteEndpointCommand = async ( $metadata: deserializeMetadata(output), EndpointResponse: undefined, }; - const data: { [key: string]: any } | undefined = __expectObject(await parseBody(output.body, context)); + const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.EndpointResponse = deserializeAws_restJson1EndpointResponse(data, context); return Promise.resolve(contents); }; @@ -6180,7 +6180,7 @@ export const deserializeAws_restJson1DeleteEventStreamCommand = async ( $metadata: deserializeMetadata(output), EventStream: undefined, }; - const data: { [key: string]: any } | undefined = __expectObject(await parseBody(output.body, context)); + const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.EventStream = deserializeAws_restJson1EventStream(data, context); return Promise.resolve(contents); }; @@ -6240,7 +6240,7 @@ export const deserializeAws_restJson1DeleteGcmChannelCommand = async ( $metadata: deserializeMetadata(output), GCMChannelResponse: undefined, }; - const data: { [key: string]: any } | undefined = __expectObject(await parseBody(output.body, context)); + const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.GCMChannelResponse = deserializeAws_restJson1GCMChannelResponse(data, context); return Promise.resolve(contents); }; @@ -6300,7 +6300,7 @@ export const deserializeAws_restJson1DeleteInAppTemplateCommand = async ( $metadata: deserializeMetadata(output), MessageBody: undefined, }; - const data: { [key: string]: any } | undefined = __expectObject(await parseBody(output.body, context)); + const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.MessageBody = deserializeAws_restJson1MessageBody(data, context); return Promise.resolve(contents); }; @@ -6360,7 +6360,7 @@ export const deserializeAws_restJson1DeleteJourneyCommand = async ( $metadata: deserializeMetadata(output), JourneyResponse: undefined, }; - const data: { [key: string]: any } | undefined = __expectObject(await parseBody(output.body, context)); + const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.JourneyResponse = deserializeAws_restJson1JourneyResponse(data, context); return Promise.resolve(contents); }; @@ -6420,7 +6420,7 @@ export const deserializeAws_restJson1DeletePushTemplateCommand = async ( $metadata: deserializeMetadata(output), MessageBody: undefined, }; - const data: { [key: string]: any } | undefined = __expectObject(await parseBody(output.body, context)); + const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.MessageBody = deserializeAws_restJson1MessageBody(data, context); return Promise.resolve(contents); }; @@ -6480,7 +6480,7 @@ export const deserializeAws_restJson1DeleteRecommenderConfigurationCommand = asy $metadata: deserializeMetadata(output), RecommenderConfigurationResponse: undefined, }; - const data: { [key: string]: any } | undefined = __expectObject(await parseBody(output.body, context)); + const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.RecommenderConfigurationResponse = deserializeAws_restJson1RecommenderConfigurationResponse(data, context); return Promise.resolve(contents); }; @@ -6540,7 +6540,7 @@ export const deserializeAws_restJson1DeleteSegmentCommand = async ( $metadata: deserializeMetadata(output), SegmentResponse: undefined, }; - const data: { [key: string]: any } | undefined = __expectObject(await parseBody(output.body, context)); + const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.SegmentResponse = deserializeAws_restJson1SegmentResponse(data, context); return Promise.resolve(contents); }; @@ -6600,7 +6600,7 @@ export const deserializeAws_restJson1DeleteSmsChannelCommand = async ( $metadata: deserializeMetadata(output), SMSChannelResponse: undefined, }; - const data: { [key: string]: any } | undefined = __expectObject(await parseBody(output.body, context)); + const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.SMSChannelResponse = deserializeAws_restJson1SMSChannelResponse(data, context); return Promise.resolve(contents); }; @@ -6660,7 +6660,7 @@ export const deserializeAws_restJson1DeleteSmsTemplateCommand = async ( $metadata: deserializeMetadata(output), MessageBody: undefined, }; - const data: { [key: string]: any } | undefined = __expectObject(await parseBody(output.body, context)); + const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.MessageBody = deserializeAws_restJson1MessageBody(data, context); return Promise.resolve(contents); }; @@ -6720,7 +6720,7 @@ export const deserializeAws_restJson1DeleteUserEndpointsCommand = async ( $metadata: deserializeMetadata(output), EndpointsResponse: undefined, }; - const data: { [key: string]: any } | undefined = __expectObject(await parseBody(output.body, context)); + const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.EndpointsResponse = deserializeAws_restJson1EndpointsResponse(data, context); return Promise.resolve(contents); }; @@ -6780,7 +6780,7 @@ export const deserializeAws_restJson1DeleteVoiceChannelCommand = async ( $metadata: deserializeMetadata(output), VoiceChannelResponse: undefined, }; - const data: { [key: string]: any } | undefined = __expectObject(await parseBody(output.body, context)); + const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.VoiceChannelResponse = deserializeAws_restJson1VoiceChannelResponse(data, context); return Promise.resolve(contents); }; @@ -6840,7 +6840,7 @@ export const deserializeAws_restJson1DeleteVoiceTemplateCommand = async ( $metadata: deserializeMetadata(output), MessageBody: undefined, }; - const data: { [key: string]: any } | undefined = __expectObject(await parseBody(output.body, context)); + const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.MessageBody = deserializeAws_restJson1MessageBody(data, context); return Promise.resolve(contents); }; @@ -6900,7 +6900,7 @@ export const deserializeAws_restJson1GetAdmChannelCommand = async ( $metadata: deserializeMetadata(output), ADMChannelResponse: undefined, }; - const data: { [key: string]: any } | undefined = __expectObject(await parseBody(output.body, context)); + const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.ADMChannelResponse = deserializeAws_restJson1ADMChannelResponse(data, context); return Promise.resolve(contents); }; @@ -6960,7 +6960,7 @@ export const deserializeAws_restJson1GetApnsChannelCommand = async ( $metadata: deserializeMetadata(output), APNSChannelResponse: undefined, }; - const data: { [key: string]: any } | undefined = __expectObject(await parseBody(output.body, context)); + const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.APNSChannelResponse = deserializeAws_restJson1APNSChannelResponse(data, context); return Promise.resolve(contents); }; @@ -7020,7 +7020,7 @@ export const deserializeAws_restJson1GetApnsSandboxChannelCommand = async ( $metadata: deserializeMetadata(output), APNSSandboxChannelResponse: undefined, }; - const data: { [key: string]: any } | undefined = __expectObject(await parseBody(output.body, context)); + const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.APNSSandboxChannelResponse = deserializeAws_restJson1APNSSandboxChannelResponse(data, context); return Promise.resolve(contents); }; @@ -7080,7 +7080,7 @@ export const deserializeAws_restJson1GetApnsVoipChannelCommand = async ( $metadata: deserializeMetadata(output), APNSVoipChannelResponse: undefined, }; - const data: { [key: string]: any } | undefined = __expectObject(await parseBody(output.body, context)); + const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.APNSVoipChannelResponse = deserializeAws_restJson1APNSVoipChannelResponse(data, context); return Promise.resolve(contents); }; @@ -7140,7 +7140,7 @@ export const deserializeAws_restJson1GetApnsVoipSandboxChannelCommand = async ( $metadata: deserializeMetadata(output), APNSVoipSandboxChannelResponse: undefined, }; - const data: { [key: string]: any } | undefined = __expectObject(await parseBody(output.body, context)); + const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.APNSVoipSandboxChannelResponse = deserializeAws_restJson1APNSVoipSandboxChannelResponse(data, context); return Promise.resolve(contents); }; @@ -7200,7 +7200,7 @@ export const deserializeAws_restJson1GetAppCommand = async ( $metadata: deserializeMetadata(output), ApplicationResponse: undefined, }; - const data: { [key: string]: any } | undefined = __expectObject(await parseBody(output.body, context)); + const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.ApplicationResponse = deserializeAws_restJson1ApplicationResponse(data, context); return Promise.resolve(contents); }; @@ -7260,7 +7260,7 @@ export const deserializeAws_restJson1GetApplicationDateRangeKpiCommand = async ( $metadata: deserializeMetadata(output), ApplicationDateRangeKpiResponse: undefined, }; - const data: { [key: string]: any } | undefined = __expectObject(await parseBody(output.body, context)); + const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.ApplicationDateRangeKpiResponse = deserializeAws_restJson1ApplicationDateRangeKpiResponse(data, context); return Promise.resolve(contents); }; @@ -7320,7 +7320,7 @@ export const deserializeAws_restJson1GetApplicationSettingsCommand = async ( $metadata: deserializeMetadata(output), ApplicationSettingsResource: undefined, }; - const data: { [key: string]: any } | undefined = __expectObject(await parseBody(output.body, context)); + const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.ApplicationSettingsResource = deserializeAws_restJson1ApplicationSettingsResource(data, context); return Promise.resolve(contents); }; @@ -7380,7 +7380,7 @@ export const deserializeAws_restJson1GetAppsCommand = async ( $metadata: deserializeMetadata(output), ApplicationsResponse: undefined, }; - const data: { [key: string]: any } | undefined = __expectObject(await parseBody(output.body, context)); + const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.ApplicationsResponse = deserializeAws_restJson1ApplicationsResponse(data, context); return Promise.resolve(contents); }; @@ -7440,7 +7440,7 @@ export const deserializeAws_restJson1GetBaiduChannelCommand = async ( $metadata: deserializeMetadata(output), BaiduChannelResponse: undefined, }; - const data: { [key: string]: any } | undefined = __expectObject(await parseBody(output.body, context)); + const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.BaiduChannelResponse = deserializeAws_restJson1BaiduChannelResponse(data, context); return Promise.resolve(contents); }; @@ -7500,7 +7500,7 @@ export const deserializeAws_restJson1GetCampaignCommand = async ( $metadata: deserializeMetadata(output), CampaignResponse: undefined, }; - const data: { [key: string]: any } | undefined = __expectObject(await parseBody(output.body, context)); + const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.CampaignResponse = deserializeAws_restJson1CampaignResponse(data, context); return Promise.resolve(contents); }; @@ -7560,7 +7560,7 @@ export const deserializeAws_restJson1GetCampaignActivitiesCommand = async ( $metadata: deserializeMetadata(output), ActivitiesResponse: undefined, }; - const data: { [key: string]: any } | undefined = __expectObject(await parseBody(output.body, context)); + const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.ActivitiesResponse = deserializeAws_restJson1ActivitiesResponse(data, context); return Promise.resolve(contents); }; @@ -7620,7 +7620,7 @@ export const deserializeAws_restJson1GetCampaignDateRangeKpiCommand = async ( $metadata: deserializeMetadata(output), CampaignDateRangeKpiResponse: undefined, }; - const data: { [key: string]: any } | undefined = __expectObject(await parseBody(output.body, context)); + const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.CampaignDateRangeKpiResponse = deserializeAws_restJson1CampaignDateRangeKpiResponse(data, context); return Promise.resolve(contents); }; @@ -7680,7 +7680,7 @@ export const deserializeAws_restJson1GetCampaignsCommand = async ( $metadata: deserializeMetadata(output), CampaignsResponse: undefined, }; - const data: { [key: string]: any } | undefined = __expectObject(await parseBody(output.body, context)); + const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.CampaignsResponse = deserializeAws_restJson1CampaignsResponse(data, context); return Promise.resolve(contents); }; @@ -7740,7 +7740,7 @@ export const deserializeAws_restJson1GetCampaignVersionCommand = async ( $metadata: deserializeMetadata(output), CampaignResponse: undefined, }; - const data: { [key: string]: any } | undefined = __expectObject(await parseBody(output.body, context)); + const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.CampaignResponse = deserializeAws_restJson1CampaignResponse(data, context); return Promise.resolve(contents); }; @@ -7800,7 +7800,7 @@ export const deserializeAws_restJson1GetCampaignVersionsCommand = async ( $metadata: deserializeMetadata(output), CampaignsResponse: undefined, }; - const data: { [key: string]: any } | undefined = __expectObject(await parseBody(output.body, context)); + const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.CampaignsResponse = deserializeAws_restJson1CampaignsResponse(data, context); return Promise.resolve(contents); }; @@ -7860,7 +7860,7 @@ export const deserializeAws_restJson1GetChannelsCommand = async ( $metadata: deserializeMetadata(output), ChannelsResponse: undefined, }; - const data: { [key: string]: any } | undefined = __expectObject(await parseBody(output.body, context)); + const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.ChannelsResponse = deserializeAws_restJson1ChannelsResponse(data, context); return Promise.resolve(contents); }; @@ -7920,7 +7920,7 @@ export const deserializeAws_restJson1GetEmailChannelCommand = async ( $metadata: deserializeMetadata(output), EmailChannelResponse: undefined, }; - const data: { [key: string]: any } | undefined = __expectObject(await parseBody(output.body, context)); + const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.EmailChannelResponse = deserializeAws_restJson1EmailChannelResponse(data, context); return Promise.resolve(contents); }; @@ -7980,7 +7980,7 @@ export const deserializeAws_restJson1GetEmailTemplateCommand = async ( $metadata: deserializeMetadata(output), EmailTemplateResponse: undefined, }; - const data: { [key: string]: any } | undefined = __expectObject(await parseBody(output.body, context)); + const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.EmailTemplateResponse = deserializeAws_restJson1EmailTemplateResponse(data, context); return Promise.resolve(contents); }; @@ -8040,7 +8040,7 @@ export const deserializeAws_restJson1GetEndpointCommand = async ( $metadata: deserializeMetadata(output), EndpointResponse: undefined, }; - const data: { [key: string]: any } | undefined = __expectObject(await parseBody(output.body, context)); + const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.EndpointResponse = deserializeAws_restJson1EndpointResponse(data, context); return Promise.resolve(contents); }; @@ -8100,7 +8100,7 @@ export const deserializeAws_restJson1GetEventStreamCommand = async ( $metadata: deserializeMetadata(output), EventStream: undefined, }; - const data: { [key: string]: any } | undefined = __expectObject(await parseBody(output.body, context)); + const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.EventStream = deserializeAws_restJson1EventStream(data, context); return Promise.resolve(contents); }; @@ -8160,7 +8160,7 @@ export const deserializeAws_restJson1GetExportJobCommand = async ( $metadata: deserializeMetadata(output), ExportJobResponse: undefined, }; - const data: { [key: string]: any } | undefined = __expectObject(await parseBody(output.body, context)); + const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.ExportJobResponse = deserializeAws_restJson1ExportJobResponse(data, context); return Promise.resolve(contents); }; @@ -8220,7 +8220,7 @@ export const deserializeAws_restJson1GetExportJobsCommand = async ( $metadata: deserializeMetadata(output), ExportJobsResponse: undefined, }; - const data: { [key: string]: any } | undefined = __expectObject(await parseBody(output.body, context)); + const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.ExportJobsResponse = deserializeAws_restJson1ExportJobsResponse(data, context); return Promise.resolve(contents); }; @@ -8280,7 +8280,7 @@ export const deserializeAws_restJson1GetGcmChannelCommand = async ( $metadata: deserializeMetadata(output), GCMChannelResponse: undefined, }; - const data: { [key: string]: any } | undefined = __expectObject(await parseBody(output.body, context)); + const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.GCMChannelResponse = deserializeAws_restJson1GCMChannelResponse(data, context); return Promise.resolve(contents); }; @@ -8340,7 +8340,7 @@ export const deserializeAws_restJson1GetImportJobCommand = async ( $metadata: deserializeMetadata(output), ImportJobResponse: undefined, }; - const data: { [key: string]: any } | undefined = __expectObject(await parseBody(output.body, context)); + const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.ImportJobResponse = deserializeAws_restJson1ImportJobResponse(data, context); return Promise.resolve(contents); }; @@ -8400,7 +8400,7 @@ export const deserializeAws_restJson1GetImportJobsCommand = async ( $metadata: deserializeMetadata(output), ImportJobsResponse: undefined, }; - const data: { [key: string]: any } | undefined = __expectObject(await parseBody(output.body, context)); + const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.ImportJobsResponse = deserializeAws_restJson1ImportJobsResponse(data, context); return Promise.resolve(contents); }; @@ -8460,7 +8460,7 @@ export const deserializeAws_restJson1GetInAppMessagesCommand = async ( $metadata: deserializeMetadata(output), InAppMessagesResponse: undefined, }; - const data: { [key: string]: any } | undefined = __expectObject(await parseBody(output.body, context)); + const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.InAppMessagesResponse = deserializeAws_restJson1InAppMessagesResponse(data, context); return Promise.resolve(contents); }; @@ -8520,7 +8520,7 @@ export const deserializeAws_restJson1GetInAppTemplateCommand = async ( $metadata: deserializeMetadata(output), InAppTemplateResponse: undefined, }; - const data: { [key: string]: any } | undefined = __expectObject(await parseBody(output.body, context)); + const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.InAppTemplateResponse = deserializeAws_restJson1InAppTemplateResponse(data, context); return Promise.resolve(contents); }; @@ -8580,7 +8580,7 @@ export const deserializeAws_restJson1GetJourneyCommand = async ( $metadata: deserializeMetadata(output), JourneyResponse: undefined, }; - const data: { [key: string]: any } | undefined = __expectObject(await parseBody(output.body, context)); + const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.JourneyResponse = deserializeAws_restJson1JourneyResponse(data, context); return Promise.resolve(contents); }; @@ -8640,7 +8640,7 @@ export const deserializeAws_restJson1GetJourneyDateRangeKpiCommand = async ( $metadata: deserializeMetadata(output), JourneyDateRangeKpiResponse: undefined, }; - const data: { [key: string]: any } | undefined = __expectObject(await parseBody(output.body, context)); + const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.JourneyDateRangeKpiResponse = deserializeAws_restJson1JourneyDateRangeKpiResponse(data, context); return Promise.resolve(contents); }; @@ -8700,7 +8700,7 @@ export const deserializeAws_restJson1GetJourneyExecutionActivityMetricsCommand = $metadata: deserializeMetadata(output), JourneyExecutionActivityMetricsResponse: undefined, }; - const data: { [key: string]: any } | undefined = __expectObject(await parseBody(output.body, context)); + const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.JourneyExecutionActivityMetricsResponse = deserializeAws_restJson1JourneyExecutionActivityMetricsResponse( data, context @@ -8763,7 +8763,7 @@ export const deserializeAws_restJson1GetJourneyExecutionMetricsCommand = async ( $metadata: deserializeMetadata(output), JourneyExecutionMetricsResponse: undefined, }; - const data: { [key: string]: any } | undefined = __expectObject(await parseBody(output.body, context)); + const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.JourneyExecutionMetricsResponse = deserializeAws_restJson1JourneyExecutionMetricsResponse(data, context); return Promise.resolve(contents); }; @@ -8823,7 +8823,7 @@ export const deserializeAws_restJson1GetPushTemplateCommand = async ( $metadata: deserializeMetadata(output), PushNotificationTemplateResponse: undefined, }; - const data: { [key: string]: any } | undefined = __expectObject(await parseBody(output.body, context)); + const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.PushNotificationTemplateResponse = deserializeAws_restJson1PushNotificationTemplateResponse(data, context); return Promise.resolve(contents); }; @@ -8883,7 +8883,7 @@ export const deserializeAws_restJson1GetRecommenderConfigurationCommand = async $metadata: deserializeMetadata(output), RecommenderConfigurationResponse: undefined, }; - const data: { [key: string]: any } | undefined = __expectObject(await parseBody(output.body, context)); + const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.RecommenderConfigurationResponse = deserializeAws_restJson1RecommenderConfigurationResponse(data, context); return Promise.resolve(contents); }; @@ -8943,7 +8943,7 @@ export const deserializeAws_restJson1GetRecommenderConfigurationsCommand = async $metadata: deserializeMetadata(output), ListRecommenderConfigurationsResponse: undefined, }; - const data: { [key: string]: any } | undefined = __expectObject(await parseBody(output.body, context)); + const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.ListRecommenderConfigurationsResponse = deserializeAws_restJson1ListRecommenderConfigurationsResponse( data, context @@ -9006,7 +9006,7 @@ export const deserializeAws_restJson1GetSegmentCommand = async ( $metadata: deserializeMetadata(output), SegmentResponse: undefined, }; - const data: { [key: string]: any } | undefined = __expectObject(await parseBody(output.body, context)); + const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.SegmentResponse = deserializeAws_restJson1SegmentResponse(data, context); return Promise.resolve(contents); }; @@ -9066,7 +9066,7 @@ export const deserializeAws_restJson1GetSegmentExportJobsCommand = async ( $metadata: deserializeMetadata(output), ExportJobsResponse: undefined, }; - const data: { [key: string]: any } | undefined = __expectObject(await parseBody(output.body, context)); + const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.ExportJobsResponse = deserializeAws_restJson1ExportJobsResponse(data, context); return Promise.resolve(contents); }; @@ -9126,7 +9126,7 @@ export const deserializeAws_restJson1GetSegmentImportJobsCommand = async ( $metadata: deserializeMetadata(output), ImportJobsResponse: undefined, }; - const data: { [key: string]: any } | undefined = __expectObject(await parseBody(output.body, context)); + const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.ImportJobsResponse = deserializeAws_restJson1ImportJobsResponse(data, context); return Promise.resolve(contents); }; @@ -9186,7 +9186,7 @@ export const deserializeAws_restJson1GetSegmentsCommand = async ( $metadata: deserializeMetadata(output), SegmentsResponse: undefined, }; - const data: { [key: string]: any } | undefined = __expectObject(await parseBody(output.body, context)); + const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.SegmentsResponse = deserializeAws_restJson1SegmentsResponse(data, context); return Promise.resolve(contents); }; @@ -9246,7 +9246,7 @@ export const deserializeAws_restJson1GetSegmentVersionCommand = async ( $metadata: deserializeMetadata(output), SegmentResponse: undefined, }; - const data: { [key: string]: any } | undefined = __expectObject(await parseBody(output.body, context)); + const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.SegmentResponse = deserializeAws_restJson1SegmentResponse(data, context); return Promise.resolve(contents); }; @@ -9306,7 +9306,7 @@ export const deserializeAws_restJson1GetSegmentVersionsCommand = async ( $metadata: deserializeMetadata(output), SegmentsResponse: undefined, }; - const data: { [key: string]: any } | undefined = __expectObject(await parseBody(output.body, context)); + const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.SegmentsResponse = deserializeAws_restJson1SegmentsResponse(data, context); return Promise.resolve(contents); }; @@ -9366,7 +9366,7 @@ export const deserializeAws_restJson1GetSmsChannelCommand = async ( $metadata: deserializeMetadata(output), SMSChannelResponse: undefined, }; - const data: { [key: string]: any } | undefined = __expectObject(await parseBody(output.body, context)); + const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.SMSChannelResponse = deserializeAws_restJson1SMSChannelResponse(data, context); return Promise.resolve(contents); }; @@ -9426,7 +9426,7 @@ export const deserializeAws_restJson1GetSmsTemplateCommand = async ( $metadata: deserializeMetadata(output), SMSTemplateResponse: undefined, }; - const data: { [key: string]: any } | undefined = __expectObject(await parseBody(output.body, context)); + const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.SMSTemplateResponse = deserializeAws_restJson1SMSTemplateResponse(data, context); return Promise.resolve(contents); }; @@ -9486,7 +9486,7 @@ export const deserializeAws_restJson1GetUserEndpointsCommand = async ( $metadata: deserializeMetadata(output), EndpointsResponse: undefined, }; - const data: { [key: string]: any } | undefined = __expectObject(await parseBody(output.body, context)); + const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.EndpointsResponse = deserializeAws_restJson1EndpointsResponse(data, context); return Promise.resolve(contents); }; @@ -9546,7 +9546,7 @@ export const deserializeAws_restJson1GetVoiceChannelCommand = async ( $metadata: deserializeMetadata(output), VoiceChannelResponse: undefined, }; - const data: { [key: string]: any } | undefined = __expectObject(await parseBody(output.body, context)); + const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.VoiceChannelResponse = deserializeAws_restJson1VoiceChannelResponse(data, context); return Promise.resolve(contents); }; @@ -9606,7 +9606,7 @@ export const deserializeAws_restJson1GetVoiceTemplateCommand = async ( $metadata: deserializeMetadata(output), VoiceTemplateResponse: undefined, }; - const data: { [key: string]: any } | undefined = __expectObject(await parseBody(output.body, context)); + const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.VoiceTemplateResponse = deserializeAws_restJson1VoiceTemplateResponse(data, context); return Promise.resolve(contents); }; @@ -9666,7 +9666,7 @@ export const deserializeAws_restJson1ListJourneysCommand = async ( $metadata: deserializeMetadata(output), JourneysResponse: undefined, }; - const data: { [key: string]: any } | undefined = __expectObject(await parseBody(output.body, context)); + const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.JourneysResponse = deserializeAws_restJson1JourneysResponse(data, context); return Promise.resolve(contents); }; @@ -9726,7 +9726,7 @@ export const deserializeAws_restJson1ListTagsForResourceCommand = async ( $metadata: deserializeMetadata(output), TagsModel: undefined, }; - const data: { [key: string]: any } | undefined = __expectObject(await parseBody(output.body, context)); + const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.TagsModel = deserializeAws_restJson1TagsModel(data, context); return Promise.resolve(contents); }; @@ -9765,7 +9765,7 @@ export const deserializeAws_restJson1ListTemplatesCommand = async ( $metadata: deserializeMetadata(output), TemplatesResponse: undefined, }; - const data: { [key: string]: any } | undefined = __expectObject(await parseBody(output.body, context)); + const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.TemplatesResponse = deserializeAws_restJson1TemplatesResponse(data, context); return Promise.resolve(contents); }; @@ -9819,7 +9819,7 @@ export const deserializeAws_restJson1ListTemplateVersionsCommand = async ( $metadata: deserializeMetadata(output), TemplateVersionsResponse: undefined, }; - const data: { [key: string]: any } | undefined = __expectObject(await parseBody(output.body, context)); + const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.TemplateVersionsResponse = deserializeAws_restJson1TemplateVersionsResponse(data, context); return Promise.resolve(contents); }; @@ -9879,7 +9879,7 @@ export const deserializeAws_restJson1PhoneNumberValidateCommand = async ( $metadata: deserializeMetadata(output), NumberValidateResponse: undefined, }; - const data: { [key: string]: any } | undefined = __expectObject(await parseBody(output.body, context)); + const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.NumberValidateResponse = deserializeAws_restJson1NumberValidateResponse(data, context); return Promise.resolve(contents); }; @@ -9939,7 +9939,7 @@ export const deserializeAws_restJson1PutEventsCommand = async ( $metadata: deserializeMetadata(output), EventsResponse: undefined, }; - const data: { [key: string]: any } | undefined = __expectObject(await parseBody(output.body, context)); + const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.EventsResponse = deserializeAws_restJson1EventsResponse(data, context); return Promise.resolve(contents); }; @@ -9999,7 +9999,7 @@ export const deserializeAws_restJson1PutEventStreamCommand = async ( $metadata: deserializeMetadata(output), EventStream: undefined, }; - const data: { [key: string]: any } | undefined = __expectObject(await parseBody(output.body, context)); + const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.EventStream = deserializeAws_restJson1EventStream(data, context); return Promise.resolve(contents); }; @@ -10059,7 +10059,7 @@ export const deserializeAws_restJson1RemoveAttributesCommand = async ( $metadata: deserializeMetadata(output), AttributesResource: undefined, }; - const data: { [key: string]: any } | undefined = __expectObject(await parseBody(output.body, context)); + const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.AttributesResource = deserializeAws_restJson1AttributesResource(data, context); return Promise.resolve(contents); }; @@ -10119,7 +10119,7 @@ export const deserializeAws_restJson1SendMessagesCommand = async ( $metadata: deserializeMetadata(output), MessageResponse: undefined, }; - const data: { [key: string]: any } | undefined = __expectObject(await parseBody(output.body, context)); + const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.MessageResponse = deserializeAws_restJson1MessageResponse(data, context); return Promise.resolve(contents); }; @@ -10179,7 +10179,7 @@ export const deserializeAws_restJson1SendOTPMessageCommand = async ( $metadata: deserializeMetadata(output), MessageResponse: undefined, }; - const data: { [key: string]: any } | undefined = __expectObject(await parseBody(output.body, context)); + const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.MessageResponse = deserializeAws_restJson1MessageResponse(data, context); return Promise.resolve(contents); }; @@ -10239,7 +10239,7 @@ export const deserializeAws_restJson1SendUsersMessagesCommand = async ( $metadata: deserializeMetadata(output), SendUsersMessageResponse: undefined, }; - const data: { [key: string]: any } | undefined = __expectObject(await parseBody(output.body, context)); + const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.SendUsersMessageResponse = deserializeAws_restJson1SendUsersMessageResponse(data, context); return Promise.resolve(contents); }; @@ -10373,7 +10373,7 @@ export const deserializeAws_restJson1UpdateAdmChannelCommand = async ( $metadata: deserializeMetadata(output), ADMChannelResponse: undefined, }; - const data: { [key: string]: any } | undefined = __expectObject(await parseBody(output.body, context)); + const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.ADMChannelResponse = deserializeAws_restJson1ADMChannelResponse(data, context); return Promise.resolve(contents); }; @@ -10433,7 +10433,7 @@ export const deserializeAws_restJson1UpdateApnsChannelCommand = async ( $metadata: deserializeMetadata(output), APNSChannelResponse: undefined, }; - const data: { [key: string]: any } | undefined = __expectObject(await parseBody(output.body, context)); + const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.APNSChannelResponse = deserializeAws_restJson1APNSChannelResponse(data, context); return Promise.resolve(contents); }; @@ -10493,7 +10493,7 @@ export const deserializeAws_restJson1UpdateApnsSandboxChannelCommand = async ( $metadata: deserializeMetadata(output), APNSSandboxChannelResponse: undefined, }; - const data: { [key: string]: any } | undefined = __expectObject(await parseBody(output.body, context)); + const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.APNSSandboxChannelResponse = deserializeAws_restJson1APNSSandboxChannelResponse(data, context); return Promise.resolve(contents); }; @@ -10553,7 +10553,7 @@ export const deserializeAws_restJson1UpdateApnsVoipChannelCommand = async ( $metadata: deserializeMetadata(output), APNSVoipChannelResponse: undefined, }; - const data: { [key: string]: any } | undefined = __expectObject(await parseBody(output.body, context)); + const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.APNSVoipChannelResponse = deserializeAws_restJson1APNSVoipChannelResponse(data, context); return Promise.resolve(contents); }; @@ -10613,7 +10613,7 @@ export const deserializeAws_restJson1UpdateApnsVoipSandboxChannelCommand = async $metadata: deserializeMetadata(output), APNSVoipSandboxChannelResponse: undefined, }; - const data: { [key: string]: any } | undefined = __expectObject(await parseBody(output.body, context)); + const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.APNSVoipSandboxChannelResponse = deserializeAws_restJson1APNSVoipSandboxChannelResponse(data, context); return Promise.resolve(contents); }; @@ -10673,7 +10673,7 @@ export const deserializeAws_restJson1UpdateApplicationSettingsCommand = async ( $metadata: deserializeMetadata(output), ApplicationSettingsResource: undefined, }; - const data: { [key: string]: any } | undefined = __expectObject(await parseBody(output.body, context)); + const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.ApplicationSettingsResource = deserializeAws_restJson1ApplicationSettingsResource(data, context); return Promise.resolve(contents); }; @@ -10733,7 +10733,7 @@ export const deserializeAws_restJson1UpdateBaiduChannelCommand = async ( $metadata: deserializeMetadata(output), BaiduChannelResponse: undefined, }; - const data: { [key: string]: any } | undefined = __expectObject(await parseBody(output.body, context)); + const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.BaiduChannelResponse = deserializeAws_restJson1BaiduChannelResponse(data, context); return Promise.resolve(contents); }; @@ -10793,7 +10793,7 @@ export const deserializeAws_restJson1UpdateCampaignCommand = async ( $metadata: deserializeMetadata(output), CampaignResponse: undefined, }; - const data: { [key: string]: any } | undefined = __expectObject(await parseBody(output.body, context)); + const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.CampaignResponse = deserializeAws_restJson1CampaignResponse(data, context); return Promise.resolve(contents); }; @@ -10853,7 +10853,7 @@ export const deserializeAws_restJson1UpdateEmailChannelCommand = async ( $metadata: deserializeMetadata(output), EmailChannelResponse: undefined, }; - const data: { [key: string]: any } | undefined = __expectObject(await parseBody(output.body, context)); + const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.EmailChannelResponse = deserializeAws_restJson1EmailChannelResponse(data, context); return Promise.resolve(contents); }; @@ -10913,7 +10913,7 @@ export const deserializeAws_restJson1UpdateEmailTemplateCommand = async ( $metadata: deserializeMetadata(output), MessageBody: undefined, }; - const data: { [key: string]: any } | undefined = __expectObject(await parseBody(output.body, context)); + const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.MessageBody = deserializeAws_restJson1MessageBody(data, context); return Promise.resolve(contents); }; @@ -10973,7 +10973,7 @@ export const deserializeAws_restJson1UpdateEndpointCommand = async ( $metadata: deserializeMetadata(output), MessageBody: undefined, }; - const data: { [key: string]: any } | undefined = __expectObject(await parseBody(output.body, context)); + const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.MessageBody = deserializeAws_restJson1MessageBody(data, context); return Promise.resolve(contents); }; @@ -11033,7 +11033,7 @@ export const deserializeAws_restJson1UpdateEndpointsBatchCommand = async ( $metadata: deserializeMetadata(output), MessageBody: undefined, }; - const data: { [key: string]: any } | undefined = __expectObject(await parseBody(output.body, context)); + const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.MessageBody = deserializeAws_restJson1MessageBody(data, context); return Promise.resolve(contents); }; @@ -11093,7 +11093,7 @@ export const deserializeAws_restJson1UpdateGcmChannelCommand = async ( $metadata: deserializeMetadata(output), GCMChannelResponse: undefined, }; - const data: { [key: string]: any } | undefined = __expectObject(await parseBody(output.body, context)); + const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.GCMChannelResponse = deserializeAws_restJson1GCMChannelResponse(data, context); return Promise.resolve(contents); }; @@ -11153,7 +11153,7 @@ export const deserializeAws_restJson1UpdateInAppTemplateCommand = async ( $metadata: deserializeMetadata(output), MessageBody: undefined, }; - const data: { [key: string]: any } | undefined = __expectObject(await parseBody(output.body, context)); + const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.MessageBody = deserializeAws_restJson1MessageBody(data, context); return Promise.resolve(contents); }; @@ -11213,7 +11213,7 @@ export const deserializeAws_restJson1UpdateJourneyCommand = async ( $metadata: deserializeMetadata(output), JourneyResponse: undefined, }; - const data: { [key: string]: any } | undefined = __expectObject(await parseBody(output.body, context)); + const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.JourneyResponse = deserializeAws_restJson1JourneyResponse(data, context); return Promise.resolve(contents); }; @@ -11276,7 +11276,7 @@ export const deserializeAws_restJson1UpdateJourneyStateCommand = async ( $metadata: deserializeMetadata(output), JourneyResponse: undefined, }; - const data: { [key: string]: any } | undefined = __expectObject(await parseBody(output.body, context)); + const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.JourneyResponse = deserializeAws_restJson1JourneyResponse(data, context); return Promise.resolve(contents); }; @@ -11336,7 +11336,7 @@ export const deserializeAws_restJson1UpdatePushTemplateCommand = async ( $metadata: deserializeMetadata(output), MessageBody: undefined, }; - const data: { [key: string]: any } | undefined = __expectObject(await parseBody(output.body, context)); + const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.MessageBody = deserializeAws_restJson1MessageBody(data, context); return Promise.resolve(contents); }; @@ -11396,7 +11396,7 @@ export const deserializeAws_restJson1UpdateRecommenderConfigurationCommand = asy $metadata: deserializeMetadata(output), RecommenderConfigurationResponse: undefined, }; - const data: { [key: string]: any } | undefined = __expectObject(await parseBody(output.body, context)); + const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.RecommenderConfigurationResponse = deserializeAws_restJson1RecommenderConfigurationResponse(data, context); return Promise.resolve(contents); }; @@ -11456,7 +11456,7 @@ export const deserializeAws_restJson1UpdateSegmentCommand = async ( $metadata: deserializeMetadata(output), SegmentResponse: undefined, }; - const data: { [key: string]: any } | undefined = __expectObject(await parseBody(output.body, context)); + const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.SegmentResponse = deserializeAws_restJson1SegmentResponse(data, context); return Promise.resolve(contents); }; @@ -11516,7 +11516,7 @@ export const deserializeAws_restJson1UpdateSmsChannelCommand = async ( $metadata: deserializeMetadata(output), SMSChannelResponse: undefined, }; - const data: { [key: string]: any } | undefined = __expectObject(await parseBody(output.body, context)); + const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.SMSChannelResponse = deserializeAws_restJson1SMSChannelResponse(data, context); return Promise.resolve(contents); }; @@ -11576,7 +11576,7 @@ export const deserializeAws_restJson1UpdateSmsTemplateCommand = async ( $metadata: deserializeMetadata(output), MessageBody: undefined, }; - const data: { [key: string]: any } | undefined = __expectObject(await parseBody(output.body, context)); + const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.MessageBody = deserializeAws_restJson1MessageBody(data, context); return Promise.resolve(contents); }; @@ -11636,7 +11636,7 @@ export const deserializeAws_restJson1UpdateTemplateActiveVersionCommand = async $metadata: deserializeMetadata(output), MessageBody: undefined, }; - const data: { [key: string]: any } | undefined = __expectObject(await parseBody(output.body, context)); + const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.MessageBody = deserializeAws_restJson1MessageBody(data, context); return Promise.resolve(contents); }; @@ -11696,7 +11696,7 @@ export const deserializeAws_restJson1UpdateVoiceChannelCommand = async ( $metadata: deserializeMetadata(output), VoiceChannelResponse: undefined, }; - const data: { [key: string]: any } | undefined = __expectObject(await parseBody(output.body, context)); + const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.VoiceChannelResponse = deserializeAws_restJson1VoiceChannelResponse(data, context); return Promise.resolve(contents); }; @@ -11756,7 +11756,7 @@ export const deserializeAws_restJson1UpdateVoiceTemplateCommand = async ( $metadata: deserializeMetadata(output), MessageBody: undefined, }; - const data: { [key: string]: any } | undefined = __expectObject(await parseBody(output.body, context)); + const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.MessageBody = deserializeAws_restJson1MessageBody(data, context); return Promise.resolve(contents); }; @@ -11816,7 +11816,7 @@ export const deserializeAws_restJson1VerifyOTPMessageCommand = async ( $metadata: deserializeMetadata(output), VerificationResponse: undefined, }; - const data: { [key: string]: any } | undefined = __expectObject(await parseBody(output.body, context)); + const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.VerificationResponse = deserializeAws_restJson1VerificationResponse(data, context); return Promise.resolve(contents); }; @@ -13131,7 +13131,7 @@ const serializeAws_restJson1ListOfWriteTreatmentResource = ( }); }; -const serializeAws_restJson1MapOf__double = (input: { [key: string]: number }, context: __SerdeContext): any => { +const serializeAws_restJson1MapOf__double = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -13143,7 +13143,7 @@ const serializeAws_restJson1MapOf__double = (input: { [key: string]: number }, c }, {}); }; -const serializeAws_restJson1MapOf__string = (input: { [key: string]: string }, context: __SerdeContext): any => { +const serializeAws_restJson1MapOf__string = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -13155,7 +13155,7 @@ const serializeAws_restJson1MapOf__string = (input: { [key: string]: string }, c }, {}); }; -const serializeAws_restJson1MapOfActivity = (input: { [key: string]: Activity }, context: __SerdeContext): any => { +const serializeAws_restJson1MapOfActivity = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -13168,7 +13168,7 @@ const serializeAws_restJson1MapOfActivity = (input: { [key: string]: Activity }, }; const serializeAws_restJson1MapOfAddressConfiguration = ( - input: { [key: string]: AddressConfiguration }, + input: Record, context: __SerdeContext ): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { @@ -13183,7 +13183,7 @@ const serializeAws_restJson1MapOfAddressConfiguration = ( }; const serializeAws_restJson1MapOfAttributeDimension = ( - input: { [key: string]: AttributeDimension }, + input: Record, context: __SerdeContext ): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { @@ -13198,7 +13198,7 @@ const serializeAws_restJson1MapOfAttributeDimension = ( }; const serializeAws_restJson1MapOfEndpointSendConfiguration = ( - input: { [key: string]: EndpointSendConfiguration }, + input: Record, context: __SerdeContext ): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { @@ -13212,7 +13212,7 @@ const serializeAws_restJson1MapOfEndpointSendConfiguration = ( }, {}); }; -const serializeAws_restJson1MapOfEvent = (input: { [key: string]: Event }, context: __SerdeContext): any => { +const serializeAws_restJson1MapOfEvent = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -13224,10 +13224,7 @@ const serializeAws_restJson1MapOfEvent = (input: { [key: string]: Event }, conte }, {}); }; -const serializeAws_restJson1MapOfEventsBatch = ( - input: { [key: string]: EventsBatch }, - context: __SerdeContext -): any => { +const serializeAws_restJson1MapOfEventsBatch = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -13239,10 +13236,7 @@ const serializeAws_restJson1MapOfEventsBatch = ( }, {}); }; -const serializeAws_restJson1MapOfListOf__string = ( - input: { [key: string]: string[] }, - context: __SerdeContext -): any => { +const serializeAws_restJson1MapOfListOf__string = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -13255,7 +13249,7 @@ const serializeAws_restJson1MapOfListOf__string = ( }; const serializeAws_restJson1MapOfMetricDimension = ( - input: { [key: string]: MetricDimension }, + input: Record, context: __SerdeContext ): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { @@ -15658,8 +15652,8 @@ const deserializeAws_restJson1ListRecommenderConfigurationsResponse = ( } as any; }; -const deserializeAws_restJson1MapOf__double = (output: any, context: __SerdeContext): { [key: string]: number } => { - return Object.entries(output).reduce((acc: { [key: string]: number }, [key, value]: [string, any]) => { +const deserializeAws_restJson1MapOf__double = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -15670,8 +15664,8 @@ const deserializeAws_restJson1MapOf__double = (output: any, context: __SerdeCont }, {}); }; -const deserializeAws_restJson1MapOf__integer = (output: any, context: __SerdeContext): { [key: string]: number } => { - return Object.entries(output).reduce((acc: { [key: string]: number }, [key, value]: [string, any]) => { +const deserializeAws_restJson1MapOf__integer = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -15682,8 +15676,8 @@ const deserializeAws_restJson1MapOf__integer = (output: any, context: __SerdeCon }, {}); }; -const deserializeAws_restJson1MapOf__string = (output: any, context: __SerdeContext): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +const deserializeAws_restJson1MapOf__string = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -15694,8 +15688,8 @@ const deserializeAws_restJson1MapOf__string = (output: any, context: __SerdeCont }, {}); }; -const deserializeAws_restJson1MapOfActivity = (output: any, context: __SerdeContext): { [key: string]: Activity } => { - return Object.entries(output).reduce((acc: { [key: string]: Activity }, [key, value]: [string, any]) => { +const deserializeAws_restJson1MapOfActivity = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -15709,8 +15703,8 @@ const deserializeAws_restJson1MapOfActivity = (output: any, context: __SerdeCont const deserializeAws_restJson1MapOfAttributeDimension = ( output: any, context: __SerdeContext -): { [key: string]: AttributeDimension } => { - return Object.entries(output).reduce((acc: { [key: string]: AttributeDimension }, [key, value]: [string, any]) => { +): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -15724,8 +15718,8 @@ const deserializeAws_restJson1MapOfAttributeDimension = ( const deserializeAws_restJson1MapOfChannelResponse = ( output: any, context: __SerdeContext -): { [key: string]: ChannelResponse } => { - return Object.entries(output).reduce((acc: { [key: string]: ChannelResponse }, [key, value]: [string, any]) => { +): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -15739,8 +15733,8 @@ const deserializeAws_restJson1MapOfChannelResponse = ( const deserializeAws_restJson1MapOfEndpointMessageResult = ( output: any, context: __SerdeContext -): { [key: string]: EndpointMessageResult } => { - return Object.entries(output).reduce((acc: { [key: string]: EndpointMessageResult }, [key, value]: [string, any]) => { +): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -15754,8 +15748,8 @@ const deserializeAws_restJson1MapOfEndpointMessageResult = ( const deserializeAws_restJson1MapOfEventItemResponse = ( output: any, context: __SerdeContext -): { [key: string]: EventItemResponse } => { - return Object.entries(output).reduce((acc: { [key: string]: EventItemResponse }, [key, value]: [string, any]) => { +): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -15769,8 +15763,8 @@ const deserializeAws_restJson1MapOfEventItemResponse = ( const deserializeAws_restJson1MapOfItemResponse = ( output: any, context: __SerdeContext -): { [key: string]: ItemResponse } => { - return Object.entries(output).reduce((acc: { [key: string]: ItemResponse }, [key, value]: [string, any]) => { +): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -15784,8 +15778,8 @@ const deserializeAws_restJson1MapOfItemResponse = ( const deserializeAws_restJson1MapOfListOf__string = ( output: any, context: __SerdeContext -): { [key: string]: string[] } => { - return Object.entries(output).reduce((acc: { [key: string]: string[] }, [key, value]: [string, any]) => { +): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -15799,9 +15793,9 @@ const deserializeAws_restJson1MapOfListOf__string = ( const deserializeAws_restJson1MapOfMapOfEndpointMessageResult = ( output: any, context: __SerdeContext -): { [key: string]: { [key: string]: EndpointMessageResult } } => { +): Record> => { return Object.entries(output).reduce( - (acc: { [key: string]: { [key: string]: EndpointMessageResult } }, [key, value]: [string, any]) => { + (acc: Record>, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -15817,8 +15811,8 @@ const deserializeAws_restJson1MapOfMapOfEndpointMessageResult = ( const deserializeAws_restJson1MapOfMessageResult = ( output: any, context: __SerdeContext -): { [key: string]: MessageResult } => { - return Object.entries(output).reduce((acc: { [key: string]: MessageResult }, [key, value]: [string, any]) => { +): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -15832,8 +15826,8 @@ const deserializeAws_restJson1MapOfMessageResult = ( const deserializeAws_restJson1MapOfMetricDimension = ( output: any, context: __SerdeContext -): { [key: string]: MetricDimension } => { - return Object.entries(output).reduce((acc: { [key: string]: MetricDimension }, [key, value]: [string, any]) => { +): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } diff --git a/clients/client-qldb/src/models/models_0.ts b/clients/client-qldb/src/models/models_0.ts index aa10ae280d64..570816211007 100644 --- a/clients/client-qldb/src/models/models_0.ts +++ b/clients/client-qldb/src/models/models_0.ts @@ -149,7 +149,7 @@ export interface CreateLedgerRequest { *

The key-value pairs to add as tags to the ledger that you want to create. Tag keys are * case sensitive. Tag values are case sensitive and can be null.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; /** *

The permissions mode to assign to the ledger that you want to create. This parameter can @@ -1507,7 +1507,7 @@ export interface ListTagsForResourceResponse { /** *

The tags that are currently associated with the specified Amazon QLDB resource.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; } export namespace ListTagsForResourceResponse { @@ -1538,7 +1538,7 @@ export interface StreamJournalToKinesisRequest { *

The key-value pairs to add as tags to the stream that you want to create. Tag keys are * case sensitive. Tag values are case sensitive and can be null.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; /** *

The inclusive start date and time from which to start streaming journal data. This @@ -1617,7 +1617,7 @@ export interface TagResourceRequest { * sensitive. If you specify a key that already exists for the resource, your request fails * and returns an error. Tag values are case sensitive and can be null.

*/ - Tags: { [key: string]: string } | undefined; + Tags: Record | undefined; } export namespace TagResourceRequest { diff --git a/clients/client-qldb/src/protocols/Aws_restJson1.ts b/clients/client-qldb/src/protocols/Aws_restJson1.ts index d01dc4c8b809..411a5e0d8ca6 100644 --- a/clients/client-qldb/src/protocols/Aws_restJson1.ts +++ b/clients/client-qldb/src/protocols/Aws_restJson1.ts @@ -1970,7 +1970,7 @@ const serializeAws_restJson1S3ExportConfiguration = (input: S3ExportConfiguratio }; }; -const serializeAws_restJson1Tags = (input: { [key: string]: string }, context: __SerdeContext): any => { +const serializeAws_restJson1Tags = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return { ...acc, [key]: null as any }; @@ -2143,8 +2143,8 @@ const deserializeAws_restJson1S3ExportConfiguration = (output: any, context: __S } as any; }; -const deserializeAws_restJson1Tags = (output: any, context: __SerdeContext): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +const deserializeAws_restJson1Tags = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return { ...acc, [key]: null as any }; } diff --git a/clients/client-quicksight/src/models/models_0.ts b/clients/client-quicksight/src/models/models_0.ts index a76b01037d55..40f5ffbdbe87 100644 --- a/clients/client-quicksight/src/models/models_0.ts +++ b/clients/client-quicksight/src/models/models_0.ts @@ -2787,12 +2787,12 @@ export interface CreateDataSetRequest { /** *

Declares the physical tables that are available in the underlying data sources.

*/ - PhysicalTableMap: { [key: string]: PhysicalTable } | undefined; + PhysicalTableMap: Record | undefined; /** *

Configures the combination and transformation of the data from the physical tables.

*/ - LogicalTableMap?: { [key: string]: LogicalTable }; + LogicalTableMap?: Record; /** *

Indicates whether you want to import the data into SPICE.

@@ -2807,7 +2807,7 @@ export interface CreateDataSetRequest { /** *

The folder that contains fields and nested subfolders for your dataset.

*/ - FieldFolders?: { [key: string]: FieldFolder }; + FieldFolders?: Record; /** *

A list of resource permissions on the dataset.

@@ -4872,7 +4872,7 @@ export interface CreateIAMPolicyAssignmentRequest { /** *

The Amazon QuickSight users, groups, or both that you want to assign the policy to.

*/ - Identities?: { [key: string]: string[] }; + Identities?: Record; /** *

The namespace that contains the assignment.

@@ -4929,7 +4929,7 @@ export interface CreateIAMPolicyAssignmentResponse { /** *

The Amazon QuickSight users, groups, or both that the IAM policy is assigned to.

*/ - Identities?: { [key: string]: string[] }; + Identities?: Record; /** *

The Amazon Web Services request ID for this operation.

@@ -6193,13 +6193,13 @@ export interface DataSet { /** *

Declares the physical tables that are available in the underlying data sources.

*/ - PhysicalTableMap?: { [key: string]: PhysicalTable }; + PhysicalTableMap?: Record; /** *

Configures the combination and transformation of the data from the physical * tables.

*/ - LogicalTableMap?: { [key: string]: LogicalTable }; + LogicalTableMap?: Record; /** *

The list of columns after all transforms. These columns are available in templates, @@ -6227,7 +6227,7 @@ export interface DataSet { /** *

The folder that contains fields and nested subfolders for your dataset.

*/ - FieldFolders?: { [key: string]: FieldFolder }; + FieldFolders?: Record; /** *

The row-level security configuration for the dataset.

@@ -8404,7 +8404,7 @@ export interface IAMPolicyAssignment { /** *

Identities.

*/ - Identities?: { [key: string]: string[] }; + Identities?: Record; /** *

Assignment status.

@@ -8756,7 +8756,7 @@ export interface DescribeIpRestrictionResponse { /** *

A map that describes the IP rules with CIDR range and description.

*/ - IpRestrictionRuleMap?: { [key: string]: string }; + IpRestrictionRuleMap?: Record; /** *

A value that specifies whether IP rules are turned on.

diff --git a/clients/client-quicksight/src/models/models_1.ts b/clients/client-quicksight/src/models/models_1.ts index fffc8c6f61c8..a5e5b14ce80f 100644 --- a/clients/client-quicksight/src/models/models_1.ts +++ b/clients/client-quicksight/src/models/models_1.ts @@ -3768,12 +3768,12 @@ export interface UpdateDataSetRequest { /** *

Declares the physical tables that are available in the underlying data sources.

*/ - PhysicalTableMap: { [key: string]: PhysicalTable } | undefined; + PhysicalTableMap: Record | undefined; /** *

Configures the combination and transformation of the data from the physical tables.

*/ - LogicalTableMap?: { [key: string]: LogicalTable }; + LogicalTableMap?: Record; /** *

Indicates whether you want to import the data into SPICE.

@@ -3788,7 +3788,7 @@ export interface UpdateDataSetRequest { /** *

The folder that contains fields and nested subfolders for your dataset.

*/ - FieldFolders?: { [key: string]: FieldFolder }; + FieldFolders?: Record; /** *

The row-level security configuration for the data you want to create.

@@ -4331,7 +4331,7 @@ export interface UpdateIAMPolicyAssignmentRequest { /** *

The Amazon QuickSight users, groups, or both that you want to assign the policy to.

*/ - Identities?: { [key: string]: string[] }; + Identities?: Record; } export namespace UpdateIAMPolicyAssignmentRequest { @@ -4363,7 +4363,7 @@ export interface UpdateIAMPolicyAssignmentResponse { /** *

The Amazon QuickSight users, groups, or both that the IAM policy is assigned to.

*/ - Identities?: { [key: string]: string[] }; + Identities?: Record; /** *

The status of the assignment. Possible values are as follows:

@@ -4415,7 +4415,7 @@ export interface UpdateIpRestrictionRequest { /** *

A map that describes the updated IP rules with CIDR ranges and descriptions.

*/ - IpRestrictionRuleMap?: { [key: string]: string }; + IpRestrictionRuleMap?: Record; /** *

A value that specifies whether IP rules are turned on.

diff --git a/clients/client-quicksight/src/protocols/Aws_restJson1.ts b/clients/client-quicksight/src/protocols/Aws_restJson1.ts index 3bd9ae765684..3776f4951955 100644 --- a/clients/client-quicksight/src/protocols/Aws_restJson1.ts +++ b/clients/client-quicksight/src/protocols/Aws_restJson1.ts @@ -15476,7 +15476,7 @@ const serializeAws_restJson1FieldFolder = (input: FieldFolder, context: __SerdeC }; }; -const serializeAws_restJson1FieldFolderMap = (input: { [key: string]: FieldFolder }, context: __SerdeContext): any => { +const serializeAws_restJson1FieldFolderMap = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -15559,7 +15559,7 @@ const serializeAws_restJson1GutterStyle = (input: GutterStyle, context: __SerdeC }; }; -const serializeAws_restJson1IdentityMap = (input: { [key: string]: string[] }, context: __SerdeContext): any => { +const serializeAws_restJson1IdentityMap = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -15619,7 +15619,7 @@ const serializeAws_restJson1IntegerParameterList = (input: IntegerParameter[], c }); }; -const serializeAws_restJson1IpRestrictionRuleMap = (input: { [key: string]: string }, context: __SerdeContext): any => { +const serializeAws_restJson1IpRestrictionRuleMap = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -15672,10 +15672,7 @@ const serializeAws_restJson1LogicalTable = (input: LogicalTable, context: __Serd }; }; -const serializeAws_restJson1LogicalTableMap = ( - input: { [key: string]: LogicalTable }, - context: __SerdeContext -): any => { +const serializeAws_restJson1LogicalTableMap = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -15777,10 +15774,7 @@ const serializeAws_restJson1PhysicalTable = (input: PhysicalTable, context: __Se }); }; -const serializeAws_restJson1PhysicalTableMap = ( - input: { [key: string]: PhysicalTable }, - context: __SerdeContext -): any => { +const serializeAws_restJson1PhysicalTableMap = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -17310,11 +17304,8 @@ const deserializeAws_restJson1FieldFolder = (output: any, context: __SerdeContex } as any; }; -const deserializeAws_restJson1FieldFolderMap = ( - output: any, - context: __SerdeContext -): { [key: string]: FieldFolder } => { - return Object.entries(output).reduce((acc: { [key: string]: FieldFolder }, [key, value]: [string, any]) => { +const deserializeAws_restJson1FieldFolderMap = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -17508,8 +17499,8 @@ const deserializeAws_restJson1IAMPolicyAssignmentSummaryList = ( return retVal; }; -const deserializeAws_restJson1IdentityMap = (output: any, context: __SerdeContext): { [key: string]: string[] } => { - return Object.entries(output).reduce((acc: { [key: string]: string[] }, [key, value]: [string, any]) => { +const deserializeAws_restJson1IdentityMap = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -17591,11 +17582,8 @@ const deserializeAws_restJson1InputColumnList = (output: any, context: __SerdeCo return retVal; }; -const deserializeAws_restJson1IpRestrictionRuleMap = ( - output: any, - context: __SerdeContext -): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +const deserializeAws_restJson1IpRestrictionRuleMap = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -17664,8 +17652,8 @@ const deserializeAws_restJson1LogicalTable = (output: any, context: __SerdeConte const deserializeAws_restJson1LogicalTableMap = ( output: any, context: __SerdeContext -): { [key: string]: LogicalTable } => { - return Object.entries(output).reduce((acc: { [key: string]: LogicalTable }, [key, value]: [string, any]) => { +): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -17818,8 +17806,8 @@ const deserializeAws_restJson1PhysicalTable = (output: any, context: __SerdeCont const deserializeAws_restJson1PhysicalTableMap = ( output: any, context: __SerdeContext -): { [key: string]: PhysicalTable } => { - return Object.entries(output).reduce((acc: { [key: string]: PhysicalTable }, [key, value]: [string, any]) => { +): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } diff --git a/clients/client-rekognition/src/models/models_0.ts b/clients/client-rekognition/src/models/models_0.ts index b633a1f9d643..f1de76a26271 100644 --- a/clients/client-rekognition/src/models/models_0.ts +++ b/clients/client-rekognition/src/models/models_0.ts @@ -1662,7 +1662,7 @@ export interface CreateCollectionRequest { * A set of tags (key-value pairs) that you want to attach to the collection. *

*/ - Tags?: { [key: string]: string }; + Tags?: Record; } export namespace CreateCollectionRequest { @@ -2083,7 +2083,7 @@ export interface CreateProjectVersionRequest { * A set of tags (key-value pairs) that you want to attach to the model. *

*/ - Tags?: { [key: string]: string }; + Tags?: Record; /** *

The identifier for your AWS Key Management Service key (AWS KMS key). @@ -2465,7 +2465,7 @@ export interface CreateStreamProcessorRequest { * A set of tags (key-value pairs) that you want to attach to the stream processor. *

*/ - Tags?: { [key: string]: string }; + Tags?: Record; /** *

The Amazon Simple Notification Service topic to which Amazon Rekognition publishes the object detection results and completion status of a video analysis operation.

@@ -6384,7 +6384,7 @@ export interface ListTagsForResourceResponse { * A list of key-value tags assigned to the resource. *

*/ - Tags?: { [key: string]: string }; + Tags?: Record; } export namespace ListTagsForResourceResponse { @@ -7487,7 +7487,7 @@ export interface TagResourceRequest { * The key-value tags to assign to the resource. *

*/ - Tags: { [key: string]: string } | undefined; + Tags: Record | undefined; } export namespace TagResourceRequest { diff --git a/clients/client-rekognition/src/protocols/Aws_json1_1.ts b/clients/client-rekognition/src/protocols/Aws_json1_1.ts index 8df5c13aca92..b2a6758eb82b 100644 --- a/clients/client-rekognition/src/protocols/Aws_json1_1.ts +++ b/clients/client-rekognition/src/protocols/Aws_json1_1.ts @@ -6302,7 +6302,7 @@ const serializeAws_json1_1TagKeyList = (input: string[], context: __SerdeContext }); }; -const serializeAws_json1_1TagMap = (input: { [key: string]: string }, context: __SerdeContext): any => { +const serializeAws_json1_1TagMap = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -8666,8 +8666,8 @@ const deserializeAws_json1_1Sunglasses = (output: any, context: __SerdeContext): } as any; }; -const deserializeAws_json1_1TagMap = (output: any, context: __SerdeContext): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +const deserializeAws_json1_1TagMap = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } diff --git a/clients/client-resiliencehub/src/models/models_0.ts b/clients/client-resiliencehub/src/models/models_0.ts index cb33db68a107..e12dc6cc0d67 100644 --- a/clients/client-resiliencehub/src/models/models_0.ts +++ b/clients/client-resiliencehub/src/models/models_0.ts @@ -525,7 +525,7 @@ export interface App { *

The tags assigned to the resource. A tag is a label that you assign to an Amazon Web Services resource. * Each tag consists of a key/value pair.

*/ - tags?: { [key: string]: string }; + tags?: Record; /** *

@@ -757,7 +757,7 @@ export interface ResiliencyPolicy { /** *

The resiliency policy.

*/ - policy?: { [key: string]: FailurePolicy }; + policy?: Record; /** *

The timestamp for when the resiliency policy was created.

@@ -768,7 +768,7 @@ export interface ResiliencyPolicy { *

The tags assigned to the resource. A tag is a label that you assign to an Amazon Web Services resource. * Each tag consists of a key/value pair.

*/ - tags?: { [key: string]: string }; + tags?: Record; } export namespace ResiliencyPolicy { @@ -794,7 +794,7 @@ export interface ResiliencyScore { /** *

The disruption score for a valid key.

*/ - disruptionScore: { [key: string]: number } | undefined; + disruptionScore: Record | undefined; } export namespace ResiliencyScore { @@ -909,7 +909,7 @@ export interface AppAssessment { /** *

The application compliance against the resiliency policy.

*/ - compliance?: { [key: string]: DisruptionCompliance }; + compliance?: Record; /** *

The current status of the compliance for the resiliency policy.

@@ -959,7 +959,7 @@ export interface AppAssessment { *

The tags assigned to the resource. A tag is a label that you assign to an Amazon Web Services resource. * Each tag consists of a key/value pair.

*/ - tags?: { [key: string]: string }; + tags?: Record; /** *

@@ -1103,7 +1103,7 @@ export interface AppComponentCompliance { /** *

The compliance of the application component against the resiliency policy.

*/ - compliance?: { [key: string]: DisruptionCompliance }; + compliance?: Record; /** *

The compliance message.

@@ -1228,7 +1228,7 @@ export interface CreateAppRequest { *

The tags assigned to the resource. A tag is a label that you assign to an Amazon Web Services resource. * Each tag consists of a key/value pair.

*/ - tags?: { [key: string]: string }; + tags?: Record; /** *

Used for an idempotency token. A client token is a unique, case-sensitive string of up to 64 ASCII characters. @@ -1367,7 +1367,7 @@ export interface CreateRecommendationTemplateRequest { *

The tags assigned to the resource. A tag is a label that you assign to an Amazon Web Services resource. * Each tag consists of a key/value pair.

*/ - tags?: { [key: string]: string }; + tags?: Record; /** *

The name of the Amazon S3 bucket that will contain the recommendation template.

@@ -1516,7 +1516,7 @@ export interface RecommendationTemplate { *

The tags assigned to the resource. A tag is a label that you assign to an Amazon Web Services resource. * Each tag consists of a key/value pair.

*/ - tags?: { [key: string]: string }; + tags?: Record; /** *

Indicates if replacements are needed.

@@ -1581,7 +1581,7 @@ export interface CreateResiliencyPolicyRequest { *

The type of resiliency policy to be created, including the recovery time objective (RTO) * and recovery point objective (RPO) in seconds.

*/ - policy: { [key: string]: FailurePolicy } | undefined; + policy: Record | undefined; /** *

Used for an idempotency token. A client token is a unique, case-sensitive string of up to 64 ASCII characters. @@ -1593,7 +1593,7 @@ export interface CreateResiliencyPolicyRequest { *

The tags assigned to the resource. A tag is a label that you assign to an Amazon Web Services resource. * Each tag consists of a key/value pair.

*/ - tags?: { [key: string]: string }; + tags?: Record; } export namespace CreateResiliencyPolicyRequest { @@ -2522,13 +2522,13 @@ export interface ConfigRecommendation { *

The current compliance against the resiliency policy before applying the configuration * change.

*/ - compliance?: { [key: string]: DisruptionCompliance }; + compliance?: Record; /** *

The expected compliance against the resiliency policy after applying the configuration * change.

*/ - recommendationCompliance?: { [key: string]: RecommendationDisruptionCompliance }; + recommendationCompliance?: Record; /** *

The type of optimization.

@@ -3252,7 +3252,7 @@ export interface ListTagsForResourceResponse { *

The tags assigned to the resource. A tag is a label that you assign to an Amazon Web Services resource. * Each tag consists of a key/value pair.

*/ - tags?: { [key: string]: string }; + tags?: Record; } export namespace ListTagsForResourceResponse { @@ -3754,7 +3754,7 @@ export interface StartAppAssessmentRequest { *

The tags assigned to the resource. A tag is a label that you assign to an Amazon Web Services resource. * Each tag consists of a key/value pair.

*/ - tags?: { [key: string]: string }; + tags?: Record; } export namespace StartAppAssessmentRequest { @@ -3793,7 +3793,7 @@ export interface TagResourceRequest { /** *

The tags to assign to the resource. Each tag consists of a key/value pair.

*/ - tags: { [key: string]: string } | undefined; + tags: Record | undefined; } export namespace TagResourceRequest { @@ -3950,7 +3950,7 @@ export interface UpdateResiliencyPolicyRequest { *

The type of resiliency policy to be created, including the recovery time objective (RTO) * and recovery point objective (RPO) in seconds.

*/ - policy?: { [key: string]: FailurePolicy }; + policy?: Record; } export namespace UpdateResiliencyPolicyRequest { diff --git a/clients/client-resiliencehub/src/protocols/Aws_restJson1.ts b/clients/client-resiliencehub/src/protocols/Aws_restJson1.ts index 7bf4388d539e..d6992d2c7261 100644 --- a/clients/client-resiliencehub/src/protocols/Aws_restJson1.ts +++ b/clients/client-resiliencehub/src/protocols/Aws_restJson1.ts @@ -3837,10 +3837,7 @@ const serializeAws_restJson1ArnList = (input: string[], context: __SerdeContext) }); }; -const serializeAws_restJson1DisruptionPolicy = ( - input: { [key: string]: FailurePolicy }, - context: __SerdeContext -): any => { +const serializeAws_restJson1DisruptionPolicy = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [DisruptionType | string, any]) => { if (value === null) { return acc; @@ -3945,7 +3942,7 @@ const serializeAws_restJson1String255List = (input: string[], context: __SerdeCo }); }; -const serializeAws_restJson1TagMap = (input: { [key: string]: string }, context: __SerdeContext): any => { +const serializeAws_restJson1TagMap = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -4235,9 +4232,9 @@ const deserializeAws_restJson1ArnList = (output: any, context: __SerdeContext): const deserializeAws_restJson1AssessmentCompliance = ( output: any, context: __SerdeContext -): { [key: string]: DisruptionCompliance } => { +): Record => { return Object.entries(output).reduce( - (acc: { [key: string]: DisruptionCompliance }, [key, value]: [DisruptionType | string, any]) => { + (acc: Record, [key, value]: [DisruptionType | string, any]) => { if (value === null) { return acc; } @@ -4362,9 +4359,9 @@ const deserializeAws_restJson1DisruptionCompliance = (output: any, context: __Se const deserializeAws_restJson1DisruptionPolicy = ( output: any, context: __SerdeContext -): { [key: string]: FailurePolicy } => { +): Record => { return Object.entries(output).reduce( - (acc: { [key: string]: FailurePolicy }, [key, value]: [DisruptionType | string, any]) => { + (acc: Record, [key, value]: [DisruptionType | string, any]) => { if (value === null) { return acc; } @@ -4380,19 +4377,16 @@ const deserializeAws_restJson1DisruptionPolicy = ( const deserializeAws_restJson1DisruptionResiliencyScore = ( output: any, context: __SerdeContext -): { [key: string]: number } => { - return Object.entries(output).reduce( - (acc: { [key: string]: number }, [key, value]: [DisruptionType | string, any]) => { - if (value === null) { - return acc; - } - return { - ...acc, - [key]: __limitedParseDouble(value) as any, - }; - }, - {} - ); +): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [DisruptionType | string, any]) => { + if (value === null) { + return acc; + } + return { + ...acc, + [key]: __limitedParseDouble(value) as any, + }; + }, {}); }; const deserializeAws_restJson1FailurePolicy = (output: any, context: __SerdeContext): FailurePolicy => { @@ -4454,9 +4448,9 @@ const deserializeAws_restJson1PhysicalResourceList = (output: any, context: __Se const deserializeAws_restJson1RecommendationCompliance = ( output: any, context: __SerdeContext -): { [key: string]: RecommendationDisruptionCompliance } => { +): Record => { return Object.entries(output).reduce( - (acc: { [key: string]: RecommendationDisruptionCompliance }, [key, value]: [DisruptionType | string, any]) => { + (acc: Record, [key, value]: [DisruptionType | string, any]) => { if (value === null) { return acc; } @@ -4734,8 +4728,8 @@ const deserializeAws_restJson1SuggestedChangesList = (output: any, context: __Se return retVal; }; -const deserializeAws_restJson1TagMap = (output: any, context: __SerdeContext): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +const deserializeAws_restJson1TagMap = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } diff --git a/clients/client-resource-groups-tagging-api/src/models/models_0.ts b/clients/client-resource-groups-tagging-api/src/models/models_0.ts index 6d512f9f8a8d..658da55f2d5b 100644 --- a/clients/client-resource-groups-tagging-api/src/models/models_0.ts +++ b/clients/client-resource-groups-tagging-api/src/models/models_0.ts @@ -898,7 +898,7 @@ export interface TagResourcesInput { *

Specifies a list of tags that you want to add to the specified resources. A tag * consists of a key and a value that you define.

*/ - Tags: { [key: string]: string } | undefined; + Tags: Record | undefined; } export namespace TagResourcesInput { @@ -917,7 +917,7 @@ export interface TagResourcesOutput { * that contains an error code, a status code, and an error message. If there are no * errors, the FailedResourcesMap is empty.

*/ - FailedResourcesMap?: { [key: string]: FailureInfo }; + FailedResourcesMap?: Record; } export namespace TagResourcesOutput { @@ -962,7 +962,7 @@ export interface UntagResourcesOutput { * that contains an error code, a status code, and an error message. If there are no * errors, the FailedResourcesMap is empty.

*/ - FailedResourcesMap?: { [key: string]: FailureInfo }; + FailedResourcesMap?: Record; } export namespace UntagResourcesOutput { diff --git a/clients/client-resource-groups-tagging-api/src/protocols/Aws_json1_1.ts b/clients/client-resource-groups-tagging-api/src/protocols/Aws_json1_1.ts index 6ba65f757a57..d51bf648e781 100644 --- a/clients/client-resource-groups-tagging-api/src/protocols/Aws_json1_1.ts +++ b/clients/client-resource-groups-tagging-api/src/protocols/Aws_json1_1.ts @@ -839,7 +839,7 @@ const serializeAws_json1_1TagKeyListForUntag = (input: string[], context: __Serd }); }; -const serializeAws_json1_1TagMap = (input: { [key: string]: string }, context: __SerdeContext): any => { +const serializeAws_json1_1TagMap = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -941,8 +941,8 @@ const deserializeAws_json1_1DescribeReportCreationOutput = ( const deserializeAws_json1_1FailedResourcesMap = ( output: any, context: __SerdeContext -): { [key: string]: FailureInfo } => { - return Object.entries(output).reduce((acc: { [key: string]: FailureInfo }, [key, value]: [string, any]) => { +): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } diff --git a/clients/client-resource-groups/src/models/models_0.ts b/clients/client-resource-groups/src/models/models_0.ts index 0d57c473144f..449703f4b683 100644 --- a/clients/client-resource-groups/src/models/models_0.ts +++ b/clients/client-resource-groups/src/models/models_0.ts @@ -311,7 +311,7 @@ export interface CreateGroupInput { /** *

The tags to add to the group. A tag is key-value pair string.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; /** *

A configuration associates the resource group with an AWS service and specifies how @@ -443,7 +443,7 @@ export interface CreateGroupOutput { /** *

The tags associated with the group.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; /** *

The service configuration associated with the resource group. For details about the @@ -773,7 +773,7 @@ export interface GetTagsOutput { /** *

The tags associated with the specified resource group.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; } export namespace GetTagsOutput { @@ -1474,7 +1474,7 @@ export interface TagInput { *

The tags to add to the specified resource group. A tag is a string-to-string map of * key-value pairs.

*/ - Tags: { [key: string]: string } | undefined; + Tags: Record | undefined; } export namespace TagInput { @@ -1495,7 +1495,7 @@ export interface TagOutput { /** *

The tags that have been added to the specified resource group.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; } export namespace TagOutput { diff --git a/clients/client-resource-groups/src/protocols/Aws_restJson1.ts b/clients/client-resource-groups/src/protocols/Aws_restJson1.ts index 698f4dae9257..d9594110a7f8 100644 --- a/clients/client-resource-groups/src/protocols/Aws_restJson1.ts +++ b/clients/client-resource-groups/src/protocols/Aws_restJson1.ts @@ -1784,7 +1784,7 @@ const serializeAws_restJson1TagKeyList = (input: string[], context: __SerdeConte }); }; -const serializeAws_restJson1Tags = (input: { [key: string]: string }, context: __SerdeContext): any => { +const serializeAws_restJson1Tags = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -2075,8 +2075,8 @@ const deserializeAws_restJson1TagKeyList = (output: any, context: __SerdeContext return retVal; }; -const deserializeAws_restJson1Tags = (output: any, context: __SerdeContext): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +const deserializeAws_restJson1Tags = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } diff --git a/clients/client-robomaker/src/models/models_0.ts b/clients/client-robomaker/src/models/models_0.ts index 4af92e4ef68f..1cd08e8cf8b6 100644 --- a/clients/client-robomaker/src/models/models_0.ts +++ b/clients/client-robomaker/src/models/models_0.ts @@ -416,7 +416,7 @@ export interface LaunchConfig { /** *

The environment variables for the application launch.

*/ - environmentVariables?: { [key: string]: string }; + environmentVariables?: Record; /** *

The port forwarding configuration.

@@ -861,7 +861,7 @@ export interface SimulationJob { *

A map that contains tag keys and tag values that are attached to the simulation * job.

*/ - tags?: { [key: string]: string }; + tags?: Record; /** *

VPC configuration information.

@@ -1180,7 +1180,7 @@ export interface DeploymentLaunchConfig { *

An array of key/value pairs specifying environment variables for the robot * application

*/ - environmentVariables?: { [key: string]: string }; + environmentVariables?: Record; } export namespace DeploymentLaunchConfig { @@ -1311,7 +1311,7 @@ export interface CreateDeploymentJobRequest { *

A map that contains tag keys and tag values that are attached to the deployment * job.

*/ - tags?: { [key: string]: string }; + tags?: Record; } export namespace CreateDeploymentJobRequest { @@ -1463,7 +1463,7 @@ export interface CreateDeploymentJobResponse { /** *

The list of all tags added to the deployment job.

*/ - tags?: { [key: string]: string }; + tags?: Record; } export namespace CreateDeploymentJobResponse { @@ -1524,7 +1524,7 @@ export interface CreateFleetRequest { /** *

A map that contains tag keys and tag values that are attached to the fleet.

*/ - tags?: { [key: string]: string }; + tags?: Record; } export namespace CreateFleetRequest { @@ -1555,7 +1555,7 @@ export interface CreateFleetResponse { /** *

The list of all tags added to the fleet.

*/ - tags?: { [key: string]: string }; + tags?: Record; } export namespace CreateFleetResponse { @@ -1586,7 +1586,7 @@ export interface CreateRobotRequest { /** *

A map that contains tag keys and tag values that are attached to the robot.

*/ - tags?: { [key: string]: string }; + tags?: Record; } export namespace CreateRobotRequest { @@ -1627,7 +1627,7 @@ export interface CreateRobotResponse { /** *

The list of all tags added to the robot.

*/ - tags?: { [key: string]: string }; + tags?: Record; } export namespace CreateRobotResponse { @@ -1764,7 +1764,7 @@ export interface CreateRobotApplicationRequest { *

A map that contains tag keys and tag values that are attached to the robot * application.

*/ - tags?: { [key: string]: string }; + tags?: Record; /** *

The object that contains that URI of the Docker image that you use for your robot @@ -1856,7 +1856,7 @@ export interface CreateRobotApplicationResponse { /** *

The list of all tags added to the robot application.

*/ - tags?: { [key: string]: string }; + tags?: Record; /** *

An object that contains the Docker image URI used to a create your robot @@ -2048,7 +2048,7 @@ export interface CreateSimulationApplicationRequest { *

A map that contains tag keys and tag values that are attached to the simulation * application.

*/ - tags?: { [key: string]: string }; + tags?: Record; /** *

The object that contains the Docker image URI used to create your simulation @@ -2116,7 +2116,7 @@ export interface CreateSimulationApplicationResponse { /** *

The list of all tags added to the simulation application.

*/ - tags?: { [key: string]: string }; + tags?: Record; /** *

The object that contains the Docker image URI that you used to create your simulation @@ -2383,7 +2383,7 @@ export interface CreateSimulationJobRequest { *

A map that contains tag keys and tag values that are attached to the simulation * job.

*/ - tags?: { [key: string]: string }; + tags?: Record; /** *

If your simulation job accesses resources in a VPC, you provide this parameter @@ -2551,7 +2551,7 @@ export interface CreateSimulationJobResponse { /** *

The list of all tags added to the simulation job.

*/ - tags?: { [key: string]: string }; + tags?: Record; /** *

Information about the vpc configuration.

@@ -2677,7 +2677,7 @@ export interface SimulationJobRequest { *

A map that contains tag keys and tag values that are attached to the simulation job * request.

*/ - tags?: { [key: string]: string }; + tags?: Record; } export namespace SimulationJobRequest { @@ -2716,7 +2716,7 @@ export interface CreateWorldExportJobRequest { *

A map that contains tag keys and tag values that are attached to the world export * job.

*/ - tags?: { [key: string]: string }; + tags?: Record; } export namespace CreateWorldExportJobRequest { @@ -2844,7 +2844,7 @@ export interface CreateWorldExportJobResponse { *

A map that contains tag keys and tag values that are attached to the world export * job.

*/ - tags?: { [key: string]: string }; + tags?: Record; } export namespace CreateWorldExportJobResponse { @@ -2908,13 +2908,13 @@ export interface CreateWorldGenerationJobRequest { *

A map that contains tag keys and tag values that are attached to the world generator * job.

*/ - tags?: { [key: string]: string }; + tags?: Record; /** *

A map that contains tag keys and tag values that are attached to the generated * worlds.

*/ - worldTags?: { [key: string]: string }; + worldTags?: Record; } export namespace CreateWorldGenerationJobRequest { @@ -3041,13 +3041,13 @@ export interface CreateWorldGenerationJobResponse { *

A map that contains tag keys and tag values that are attached to the world generator * job.

*/ - tags?: { [key: string]: string }; + tags?: Record; /** *

A map that contains tag keys and tag values that are attached to the generated * worlds.

*/ - worldTags?: { [key: string]: string }; + worldTags?: Record; } export namespace CreateWorldGenerationJobResponse { @@ -3109,7 +3109,7 @@ export interface CreateWorldTemplateRequest { *

A map that contains tag keys and tag values that are attached to the world * template.

*/ - tags?: { [key: string]: string }; + tags?: Record; } export namespace CreateWorldTemplateRequest { @@ -3147,7 +3147,7 @@ export interface CreateWorldTemplateResponse { *

A map that contains tag keys and tag values that are attached to the world * template.

*/ - tags?: { [key: string]: string }; + tags?: Record; } export namespace CreateWorldTemplateResponse { @@ -3598,7 +3598,7 @@ export interface DescribeDeploymentJobResponse { /** *

The list of all tags added to the specified deployment job.

*/ - tags?: { [key: string]: string }; + tags?: Record; } export namespace DescribeDeploymentJobResponse { @@ -3724,7 +3724,7 @@ export interface DescribeFleetResponse { /** *

The list of all tags added to the specified fleet.

*/ - tags?: { [key: string]: string }; + tags?: Record; } export namespace DescribeFleetResponse { @@ -3801,7 +3801,7 @@ export interface DescribeRobotResponse { /** *

The list of all tags added to the specified robot.

*/ - tags?: { [key: string]: string }; + tags?: Record; } export namespace DescribeRobotResponse { @@ -3874,7 +3874,7 @@ export interface DescribeRobotApplicationResponse { /** *

The list of all tags added to the specified robot application.

*/ - tags?: { [key: string]: string }; + tags?: Record; /** *

The object that contains the Docker image URI used to create the robot @@ -3968,7 +3968,7 @@ export interface DescribeSimulationApplicationResponse { /** *

The list of all tags added to the specified simulation application.

*/ - tags?: { [key: string]: string }; + tags?: Record; /** *

The object that contains the Docker image URI used to create the simulation @@ -4164,7 +4164,7 @@ export interface DescribeSimulationJobResponse { /** *

The list of all tags added to the specified simulation job.

*/ - tags?: { [key: string]: string }; + tags?: Record; /** *

The VPC configuration.

@@ -4426,7 +4426,7 @@ export interface DescribeSimulationJobBatchResponse { *

A map that contains tag keys and tag values that are attached to the simulation job * batch.

*/ - tags?: { [key: string]: string }; + tags?: Record; } export namespace DescribeSimulationJobBatchResponse { @@ -4479,7 +4479,7 @@ export interface DescribeWorldResponse { /** *

A map that contains tag keys and tag values that are attached to the world.

*/ - tags?: { [key: string]: string }; + tags?: Record; /** *

Returns the JSON formatted string that describes the contents of your world.

@@ -4614,7 +4614,7 @@ export interface DescribeWorldExportJobResponse { *

A map that contains tag keys and tag values that are attached to the world export * job.

*/ - tags?: { [key: string]: string }; + tags?: Record; } export namespace DescribeWorldExportJobResponse { @@ -4854,13 +4854,13 @@ export interface DescribeWorldGenerationJobResponse { *

A map that contains tag keys and tag values that are attached to the world generation * job.

*/ - tags?: { [key: string]: string }; + tags?: Record; /** *

A map that contains tag keys and tag values that are attached to the generated * worlds.

*/ - worldTags?: { [key: string]: string }; + worldTags?: Record; } export namespace DescribeWorldGenerationJobResponse { @@ -4920,7 +4920,7 @@ export interface DescribeWorldTemplateResponse { *

A map that contains tag keys and tag values that are attached to the world * template.

*/ - tags?: { [key: string]: string }; + tags?: Record; /** *

The version of the world template that you're using.

@@ -5705,7 +5705,7 @@ export interface ListTagsForResourceResponse { /** *

The list of all tags added to the specified resource.

*/ - tags?: { [key: string]: string }; + tags?: Record; } export namespace ListTagsForResourceResponse { @@ -6268,7 +6268,7 @@ export interface StartSimulationJobBatchRequest { *

A map that contains tag keys and tag values that are attached to the deployment job * batch.

*/ - tags?: { [key: string]: string }; + tags?: Record; } export namespace StartSimulationJobBatchRequest { @@ -6388,7 +6388,7 @@ export interface StartSimulationJobBatchResponse { *

A map that contains tag keys and tag values that are attached to the deployment job * batch.

*/ - tags?: { [key: string]: string }; + tags?: Record; } export namespace StartSimulationJobBatchResponse { @@ -6543,7 +6543,7 @@ export interface TagResourceRequest { /** *

A map that contains tag keys and tag values that are attached to the resource.

*/ - tags: { [key: string]: string } | undefined; + tags: Record | undefined; } export namespace TagResourceRequest { diff --git a/clients/client-robomaker/src/protocols/Aws_restJson1.ts b/clients/client-robomaker/src/protocols/Aws_restJson1.ts index 9bce71f17fe8..87317eced2ed 100644 --- a/clients/client-robomaker/src/protocols/Aws_restJson1.ts +++ b/clients/client-robomaker/src/protocols/Aws_restJson1.ts @@ -6178,10 +6178,7 @@ const serializeAws_restJson1Environment = (input: Environment, context: __SerdeC }; }; -const serializeAws_restJson1EnvironmentVariableMap = ( - input: { [key: string]: string }, - context: __SerdeContext -): any => { +const serializeAws_restJson1EnvironmentVariableMap = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -6497,7 +6494,7 @@ const serializeAws_restJson1Subnets = (input: string[], context: __SerdeContext) }); }; -const serializeAws_restJson1TagMap = (input: { [key: string]: string }, context: __SerdeContext): any => { +const serializeAws_restJson1TagMap = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -6821,8 +6818,8 @@ const deserializeAws_restJson1Environment = (output: any, context: __SerdeContex const deserializeAws_restJson1EnvironmentVariableMap = ( output: any, context: __SerdeContext -): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -7537,8 +7534,8 @@ const deserializeAws_restJson1Subnets = (output: any, context: __SerdeContext): return retVal; }; -const deserializeAws_restJson1TagMap = (output: any, context: __SerdeContext): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +const deserializeAws_restJson1TagMap = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } diff --git a/clients/client-route53-recovery-control-config/src/models/models_0.ts b/clients/client-route53-recovery-control-config/src/models/models_0.ts index 1db1e52be2d8..fb7df3eaed1b 100644 --- a/clients/client-route53-recovery-control-config/src/models/models_0.ts +++ b/clients/client-route53-recovery-control-config/src/models/models_0.ts @@ -395,7 +395,7 @@ export interface CreateClusterRequest { /** *

The tags associated with the cluster.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; } export namespace CreateClusterRequest { @@ -550,7 +550,7 @@ export interface CreateControlPanelRequest { /** *

The tags associated with the control panel.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; } export namespace CreateControlPanelRequest { @@ -733,7 +733,7 @@ export interface CreateSafetyRuleRequest { /** *

The tags associated with the safety rule.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; } export namespace CreateSafetyRuleRequest { @@ -1286,7 +1286,7 @@ export interface ListTagsForResourceResponse { /** *

The tags associated with the resource.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; } export namespace ListTagsForResourceResponse { @@ -1310,7 +1310,7 @@ export interface TagResourceRequest { /** *

The tags associated with the resource.

*/ - Tags: { [key: string]: string } | undefined; + Tags: Record | undefined; } export namespace TagResourceRequest { diff --git a/clients/client-route53-recovery-control-config/src/protocols/Aws_restJson1.ts b/clients/client-route53-recovery-control-config/src/protocols/Aws_restJson1.ts index f0daaa33a989..5c013d4284d0 100644 --- a/clients/client-route53-recovery-control-config/src/protocols/Aws_restJson1.ts +++ b/clients/client-route53-recovery-control-config/src/protocols/Aws_restJson1.ts @@ -2177,7 +2177,7 @@ const serializeAws_restJson1__listOf__stringMin1Max256PatternAZaZ09 = ( }; const serializeAws_restJson1__mapOf__stringMin0Max256PatternS = ( - input: { [key: string]: string }, + input: Record, context: __SerdeContext ): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { @@ -2342,8 +2342,8 @@ const deserializeAws_restJson1__listOfRule = (output: any, context: __SerdeConte const deserializeAws_restJson1__mapOf__stringMin0Max256PatternS = ( output: any, context: __SerdeContext -): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } diff --git a/clients/client-route53-recovery-readiness/src/models/models_0.ts b/clients/client-route53-recovery-readiness/src/models/models_0.ts index 6b1c43ee66a9..fd2203435c9a 100644 --- a/clients/client-route53-recovery-readiness/src/models/models_0.ts +++ b/clients/client-route53-recovery-readiness/src/models/models_0.ts @@ -30,7 +30,7 @@ export interface CellOutput { /** *

Tags on the resources.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; } export namespace CellOutput { @@ -112,7 +112,7 @@ export interface ReadinessCheckOutput { /** *

A collection of tags associated with a resource.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; } export namespace ReadinessCheckOutput { @@ -196,7 +196,7 @@ export interface RecoveryGroupOutput { /** *

The tags associated with the recovery group.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; } export namespace RecoveryGroupOutput { @@ -409,7 +409,7 @@ export interface ResourceSetOutput { /** *

A collection of tags associated with a resource.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; } export namespace ResourceSetOutput { @@ -511,7 +511,7 @@ export interface CreateCellRequest { /** *

A collection of tags associated with a resource.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; } export namespace CreateCellRequest { @@ -547,7 +547,7 @@ export interface CreateCellResponse { /** *

Tags on the resources.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; } export namespace CreateCellResponse { @@ -668,7 +668,7 @@ export interface CreateReadinessCheckRequest { /** *

A collection of tags associated with a resource.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; } export namespace CreateReadinessCheckRequest { @@ -699,7 +699,7 @@ export interface CreateReadinessCheckResponse { /** *

A collection of tags associated with a resource.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; } export namespace CreateReadinessCheckResponse { @@ -725,7 +725,7 @@ export interface CreateRecoveryGroupRequest { /** *

A collection of tags associated with a resource.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; } export namespace CreateRecoveryGroupRequest { @@ -756,7 +756,7 @@ export interface CreateRecoveryGroupResponse { /** *

The tags associated with the recovery group.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; } export namespace CreateRecoveryGroupResponse { @@ -787,7 +787,7 @@ export interface CreateResourceSetRequest { /** *

A tag to associate with the parameters for a resource set.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; } export namespace CreateResourceSetRequest { @@ -823,7 +823,7 @@ export interface CreateResourceSetResponse { /** *

A collection of tags associated with a resource.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; } export namespace CreateResourceSetResponse { @@ -1039,7 +1039,7 @@ export interface GetCellResponse { /** *

Tags on the resources.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; } export namespace GetCellResponse { @@ -1138,7 +1138,7 @@ export interface GetReadinessCheckResponse { /** *

A collection of tags associated with a resource.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; } export namespace GetReadinessCheckResponse { @@ -1299,7 +1299,7 @@ export interface GetRecoveryGroupResponse { /** *

The tags associated with the recovery group.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; } export namespace GetRecoveryGroupResponse { @@ -1403,7 +1403,7 @@ export interface GetResourceSetResponse { /** *

A collection of tags associated with a resource.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; } export namespace GetResourceSetResponse { @@ -1692,7 +1692,7 @@ export interface ListTagsForResourcesResponse { /** *

*/ - Tags?: { [key: string]: string }; + Tags?: Record; } export namespace ListTagsForResourcesResponse { @@ -1713,7 +1713,7 @@ export interface TagResourceRequest { /** *

*/ - Tags: { [key: string]: string } | undefined; + Tags: Record | undefined; } export namespace TagResourceRequest { @@ -1802,7 +1802,7 @@ export interface UpdateCellResponse { /** *

Tags on the resources.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; } export namespace UpdateCellResponse { @@ -1857,7 +1857,7 @@ export interface UpdateReadinessCheckResponse { /** *

A collection of tags associated with a resource.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; } export namespace UpdateReadinessCheckResponse { @@ -1912,7 +1912,7 @@ export interface UpdateRecoveryGroupResponse { /** *

The tags associated with the recovery group.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; } export namespace UpdateRecoveryGroupResponse { @@ -1977,7 +1977,7 @@ export interface UpdateResourceSetResponse { /** *

A collection of tags associated with a resource.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; } export namespace UpdateResourceSetResponse { diff --git a/clients/client-route53-recovery-readiness/src/protocols/Aws_restJson1.ts b/clients/client-route53-recovery-readiness/src/protocols/Aws_restJson1.ts index 27bcb91abf87..df44cbe92ab7 100644 --- a/clients/client-route53-recovery-readiness/src/protocols/Aws_restJson1.ts +++ b/clients/client-route53-recovery-readiness/src/protocols/Aws_restJson1.ts @@ -3204,7 +3204,7 @@ const serializeAws_restJson1Resource = (input: Resource, context: __SerdeContext }; }; -const serializeAws_restJson1Tags = (input: { [key: string]: string }, context: __SerdeContext): any => { +const serializeAws_restJson1Tags = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -3552,8 +3552,8 @@ const deserializeAws_restJson1RuleResult = (output: any, context: __SerdeContext } as any; }; -const deserializeAws_restJson1Tags = (output: any, context: __SerdeContext): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +const deserializeAws_restJson1Tags = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } diff --git a/clients/client-rum/src/models/models_0.ts b/clients/client-rum/src/models/models_0.ts index 514d4d76a4b0..fddbad029734 100644 --- a/clients/client-rum/src/models/models_0.ts +++ b/clients/client-rum/src/models/models_0.ts @@ -218,7 +218,7 @@ export interface AppMonitor { /** *

The list of tag keys and values associated with this app monitor.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; /** *

The current state of the app monitor.

@@ -327,7 +327,7 @@ export interface CreateAppMonitorRequest { *

You can associate as many as 50 tags with an app monitor.

*

For more information, see Tagging Amazon Web Services resources.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; /** *

A structure that contains much of the configuration data for the app monitor. If you are using @@ -849,7 +849,7 @@ export interface ListTagsForResourceResponse { /** *

The list of tag keys and values associated with the resource you specified.

*/ - Tags: { [key: string]: string } | undefined; + Tags: Record | undefined; } export namespace ListTagsForResourceResponse { @@ -984,7 +984,7 @@ export interface TagResourceRequest { /** *

The list of key-value pairs to associate with the resource.

*/ - Tags: { [key: string]: string } | undefined; + Tags: Record | undefined; } export namespace TagResourceRequest { diff --git a/clients/client-rum/src/protocols/Aws_restJson1.ts b/clients/client-rum/src/protocols/Aws_restJson1.ts index c870de96758a..9be318d4ea82 100644 --- a/clients/client-rum/src/protocols/Aws_restJson1.ts +++ b/clients/client-rum/src/protocols/Aws_restJson1.ts @@ -1170,7 +1170,7 @@ const serializeAws_restJson1RumEventList = (input: RumEvent[], context: __SerdeC }); }; -const serializeAws_restJson1TagMap = (input: { [key: string]: string }, context: __SerdeContext): any => { +const serializeAws_restJson1TagMap = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -1333,8 +1333,8 @@ const deserializeAws_restJson1Pages = (output: any, context: __SerdeContext): st return retVal; }; -const deserializeAws_restJson1TagMap = (output: any, context: __SerdeContext): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +const deserializeAws_restJson1TagMap = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } diff --git a/clients/client-s3-control/src/models/models_0.ts b/clients/client-s3-control/src/models/models_0.ts index 742e14c3a600..0407f63db616 100644 --- a/clients/client-s3-control/src/models/models_0.ts +++ b/clients/client-s3-control/src/models/models_0.ts @@ -1675,7 +1675,7 @@ export interface S3ObjectMetadata { /** *

*/ - UserMetadata?: { [key: string]: string }; + UserMetadata?: Record; /** *

@@ -3103,7 +3103,7 @@ export interface GetAccessPointResult { /** *

The VPC endpoint for the access point.

*/ - Endpoints?: { [key: string]: string }; + Endpoints?: Record; } export namespace GetAccessPointResult { diff --git a/clients/client-s3-control/src/protocols/Aws_restXml.ts b/clients/client-s3-control/src/protocols/Aws_restXml.ts index c53fdebf5cd2..abba925f151c 100644 --- a/clients/client-s3-control/src/protocols/Aws_restXml.ts +++ b/clients/client-s3-control/src/protocols/Aws_restXml.ts @@ -4432,7 +4432,7 @@ export const deserializeAws_restXmlGetPublicAccessBlockCommand = async ( $metadata: deserializeMetadata(output), PublicAccessBlockConfiguration: undefined, }; - const data: { [key: string]: any } | undefined = __expectObject(await parseBody(output.body, context)); + const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.PublicAccessBlockConfiguration = deserializeAws_restXmlPublicAccessBlockConfiguration(data, context); return Promise.resolve(contents); }; @@ -4474,7 +4474,7 @@ export const deserializeAws_restXmlGetStorageLensConfigurationCommand = async ( $metadata: deserializeMetadata(output), StorageLensConfiguration: undefined, }; - const data: { [key: string]: any } | undefined = __expectObject(await parseBody(output.body, context)); + const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.StorageLensConfiguration = deserializeAws_restXmlStorageLensConfiguration(data, context); return Promise.resolve(contents); }; @@ -6955,7 +6955,7 @@ const serializeAws_restXmlS3TagSet = (input: S3Tag[], context: __SerdeContext): }); }; -const serializeAws_restXmlS3UserMetadata = (input: { [key: string]: string }, context: __SerdeContext): any => { +const serializeAws_restXmlS3UserMetadata = (input: Record, context: __SerdeContext): any => { return Object.keys(input) .filter((key) => input[key] != null) .map((key) => { @@ -7451,7 +7451,7 @@ const deserializeAws_restXmlDeleteMultiRegionAccessPointInput = ( return contents; }; -const deserializeAws_restXmlEndpoints = (output: any, context: __SerdeContext): { [key: string]: string } => { +const deserializeAws_restXmlEndpoints = (output: any, context: __SerdeContext): Record => { return output.reduce((acc: any, pair: any) => { if (pair["value"] === null) { return acc; @@ -9090,7 +9090,7 @@ const deserializeAws_restXmlS3TagSet = (output: any, context: __SerdeContext): S }); }; -const deserializeAws_restXmlS3UserMetadata = (output: any, context: __SerdeContext): { [key: string]: string } => { +const deserializeAws_restXmlS3UserMetadata = (output: any, context: __SerdeContext): Record => { return output.reduce((acc: any, pair: any) => { if (pair["value"] === null) { return acc; diff --git a/clients/client-s3/src/models/models_0.ts b/clients/client-s3/src/models/models_0.ts index 13614fa0507c..2325340fc34d 100644 --- a/clients/client-s3/src/models/models_0.ts +++ b/clients/client-s3/src/models/models_0.ts @@ -904,7 +904,7 @@ export interface CopyObjectRequest { /** *

A map of metadata to store with the object in S3.

*/ - Metadata?: { [key: string]: string }; + Metadata?: Record; /** *

Specifies whether the metadata is copied from the source object or replaced with @@ -1441,7 +1441,7 @@ export interface CreateMultipartUploadRequest { /** *

A map of metadata to store with the object in S3.

*/ - Metadata?: { [key: string]: string }; + Metadata?: Record; /** *

The server-side encryption algorithm used when storing this object in Amazon S3 (for example, @@ -7665,7 +7665,7 @@ export interface GetObjectOutput { /** *

A map of metadata to store with the object in S3.

*/ - Metadata?: { [key: string]: string }; + Metadata?: Record; /** *

If server-side encryption with a customer-provided encryption key was requested, the @@ -9042,7 +9042,7 @@ export interface HeadObjectOutput { /** *

A map of metadata to store with the object in S3.

*/ - Metadata?: { [key: string]: string }; + Metadata?: Record; /** *

If server-side encryption with a customer-provided encryption key was requested, the @@ -12073,7 +12073,7 @@ export interface PutObjectRequest { /** *

A map of metadata to store with the object in S3.

*/ - Metadata?: { [key: string]: string }; + Metadata?: Record; /** *

The server-side encryption algorithm used when storing this object in Amazon S3 (for example, diff --git a/clients/client-s3/src/models/models_1.ts b/clients/client-s3/src/models/models_1.ts index ae402842172a..7182b981fd03 100644 --- a/clients/client-s3/src/models/models_1.ts +++ b/clients/client-s3/src/models/models_1.ts @@ -2044,7 +2044,7 @@ export interface WriteGetObjectResponseRequest { /** *

A map of metadata to store with the object in S3.

*/ - Metadata?: { [key: string]: string }; + Metadata?: Record; /** *

Indicates whether an object stored in Amazon S3 has Object Lock enabled. For more diff --git a/clients/client-s3/src/protocols/Aws_restXml.ts b/clients/client-s3/src/protocols/Aws_restXml.ts index 18e6a6079c83..2dd358d33919 100644 --- a/clients/client-s3/src/protocols/Aws_restXml.ts +++ b/clients/client-s3/src/protocols/Aws_restXml.ts @@ -5316,7 +5316,7 @@ export const deserializeAws_restXmlCopyObjectCommand = async ( if (output.headers["x-amz-request-charged"] !== undefined) { contents.RequestCharged = output.headers["x-amz-request-charged"]; } - const data: { [key: string]: any } | undefined = __expectObject(await parseBody(output.body, context)); + const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.CopyObjectResult = deserializeAws_restXmlCopyObjectResult(data, context); return Promise.resolve(contents); }; @@ -6246,7 +6246,7 @@ export const deserializeAws_restXmlGetBucketAnalyticsConfigurationCommand = asyn $metadata: deserializeMetadata(output), AnalyticsConfiguration: undefined, }; - const data: { [key: string]: any } | undefined = __expectObject(await parseBody(output.body, context)); + const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.AnalyticsConfiguration = deserializeAws_restXmlAnalyticsConfiguration(data, context); return Promise.resolve(contents); }; @@ -6329,7 +6329,7 @@ export const deserializeAws_restXmlGetBucketEncryptionCommand = async ( $metadata: deserializeMetadata(output), ServerSideEncryptionConfiguration: undefined, }; - const data: { [key: string]: any } | undefined = __expectObject(await parseBody(output.body, context)); + const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.ServerSideEncryptionConfiguration = deserializeAws_restXmlServerSideEncryptionConfiguration(data, context); return Promise.resolve(contents); }; @@ -6368,7 +6368,7 @@ export const deserializeAws_restXmlGetBucketIntelligentTieringConfigurationComma $metadata: deserializeMetadata(output), IntelligentTieringConfiguration: undefined, }; - const data: { [key: string]: any } | undefined = __expectObject(await parseBody(output.body, context)); + const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.IntelligentTieringConfiguration = deserializeAws_restXmlIntelligentTieringConfiguration(data, context); return Promise.resolve(contents); }; @@ -6407,7 +6407,7 @@ export const deserializeAws_restXmlGetBucketInventoryConfigurationCommand = asyn $metadata: deserializeMetadata(output), InventoryConfiguration: undefined, }; - const data: { [key: string]: any } | undefined = __expectObject(await parseBody(output.body, context)); + const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.InventoryConfiguration = deserializeAws_restXmlInventoryConfiguration(data, context); return Promise.resolve(contents); }; @@ -6572,7 +6572,7 @@ export const deserializeAws_restXmlGetBucketMetricsConfigurationCommand = async $metadata: deserializeMetadata(output), MetricsConfiguration: undefined, }; - const data: { [key: string]: any } | undefined = __expectObject(await parseBody(output.body, context)); + const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.MetricsConfiguration = deserializeAws_restXmlMetricsConfiguration(data, context); return Promise.resolve(contents); }; @@ -6685,7 +6685,7 @@ export const deserializeAws_restXmlGetBucketOwnershipControlsCommand = async ( $metadata: deserializeMetadata(output), OwnershipControls: undefined, }; - const data: { [key: string]: any } | undefined = __expectObject(await parseBody(output.body, context)); + const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.OwnershipControls = deserializeAws_restXmlOwnershipControls(data, context); return Promise.resolve(contents); }; @@ -6763,7 +6763,7 @@ export const deserializeAws_restXmlGetBucketPolicyStatusCommand = async ( $metadata: deserializeMetadata(output), PolicyStatus: undefined, }; - const data: { [key: string]: any } | undefined = __expectObject(await parseBody(output.body, context)); + const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.PolicyStatus = deserializeAws_restXmlPolicyStatus(data, context); return Promise.resolve(contents); }; @@ -6802,7 +6802,7 @@ export const deserializeAws_restXmlGetBucketReplicationCommand = async ( $metadata: deserializeMetadata(output), ReplicationConfiguration: undefined, }; - const data: { [key: string]: any } | undefined = __expectObject(await parseBody(output.body, context)); + const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.ReplicationConfiguration = deserializeAws_restXmlReplicationConfiguration(data, context); return Promise.resolve(contents); }; @@ -7356,7 +7356,7 @@ export const deserializeAws_restXmlGetObjectLegalHoldCommand = async ( $metadata: deserializeMetadata(output), LegalHold: undefined, }; - const data: { [key: string]: any } | undefined = __expectObject(await parseBody(output.body, context)); + const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.LegalHold = deserializeAws_restXmlObjectLockLegalHold(data, context); return Promise.resolve(contents); }; @@ -7395,7 +7395,7 @@ export const deserializeAws_restXmlGetObjectLockConfigurationCommand = async ( $metadata: deserializeMetadata(output), ObjectLockConfiguration: undefined, }; - const data: { [key: string]: any } | undefined = __expectObject(await parseBody(output.body, context)); + const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.ObjectLockConfiguration = deserializeAws_restXmlObjectLockConfiguration(data, context); return Promise.resolve(contents); }; @@ -7434,7 +7434,7 @@ export const deserializeAws_restXmlGetObjectRetentionCommand = async ( $metadata: deserializeMetadata(output), Retention: undefined, }; - const data: { [key: string]: any } | undefined = __expectObject(await parseBody(output.body, context)); + const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.Retention = deserializeAws_restXmlObjectLockRetention(data, context); return Promise.resolve(contents); }; @@ -7564,7 +7564,7 @@ export const deserializeAws_restXmlGetPublicAccessBlockCommand = async ( $metadata: deserializeMetadata(output), PublicAccessBlockConfiguration: undefined, }; - const data: { [key: string]: any } | undefined = __expectObject(await parseBody(output.body, context)); + const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.PublicAccessBlockConfiguration = deserializeAws_restXmlPublicAccessBlockConfiguration(data, context); return Promise.resolve(contents); }; @@ -9805,7 +9805,7 @@ export const deserializeAws_restXmlUploadPartCopyCommand = async ( if (output.headers["x-amz-request-charged"] !== undefined) { contents.RequestCharged = output.headers["x-amz-request-charged"]; } - const data: { [key: string]: any } | undefined = __expectObject(await parseBody(output.body, context)); + const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.CopyPartResult = deserializeAws_restXmlCopyPartResult(data, context); return Promise.resolve(contents); }; diff --git a/clients/client-sagemaker/src/models/models_0.ts b/clients/client-sagemaker/src/models/models_0.ts index 447cac49455e..90f9a99a6c0d 100644 --- a/clients/client-sagemaker/src/models/models_0.ts +++ b/clients/client-sagemaker/src/models/models_0.ts @@ -277,7 +277,7 @@ export interface ModelPackageContainerDefinition { * Environment string to string map can have length of up to 1024. We * support up to 16 entries in the map.

*/ - Environment?: { [key: string]: string }; + Environment?: Record; /** *

A structure with Model Input details.

@@ -1483,7 +1483,7 @@ export interface TrainingJobDefinition { /** *

The hyperparameters used for the training job.

*/ - HyperParameters?: { [key: string]: string }; + HyperParameters?: Record; /** *

An array of Channel objects, each of which specifies an input @@ -1903,7 +1903,7 @@ export interface TransformJobDefinition { *

The environment variables to set in the Docker container. We support up to 16 key and * values entries in the map.

*/ - Environment?: { [key: string]: string }; + Environment?: Record; /** *

A description of the input source and the way the transform job consumes it.

@@ -4417,7 +4417,7 @@ export interface AutoMLContainerDefinition { /** *

The environment variables to set in the container. For more information, see .

*/ - Environment?: { [key: string]: string }; + Environment?: Record; } export namespace AutoMLContainerDefinition { @@ -5239,13 +5239,13 @@ export interface BatchDescribeModelPackageOutput { /** *

The summaries for the model package versions

*/ - ModelPackageSummaries?: { [key: string]: BatchDescribeModelPackageSummary }; + ModelPackageSummaries?: Record; /** *

A map of the resource and BatchDescribeModelPackageError objects * reporting the error associated with describing the model package.

*/ - BatchDescribeModelPackageErrorMap?: { [key: string]: BatchDescribeModelPackageError }; + BatchDescribeModelPackageErrorMap?: Record; } export namespace BatchDescribeModelPackageOutput { @@ -5965,7 +5965,7 @@ export interface CollectionConfiguration { * "save_config", "tensor_names", and * "save_histogram".

*/ - CollectionParameters?: { [key: string]: string }; + CollectionParameters?: Record; } export namespace CollectionConfiguration { @@ -6342,7 +6342,7 @@ export interface ContainerDefinition { * Environment string to string map can have length of up to 1024. We * support up to 16 entries in the map.

*/ - Environment?: { [key: string]: string }; + Environment?: Record; /** *

The name or Amazon Resource Name (ARN) of the model package to use to create the @@ -6608,7 +6608,7 @@ export interface CreateActionRequest { /** *

A list of properties to add to the action.

*/ - Properties?: { [key: string]: string }; + Properties?: Record; /** *

Metadata properties of the tracking entity, trial, or trial component.

@@ -7150,7 +7150,7 @@ export interface CreateArtifactRequest { /** *

A list of properties to add to the artifact.

*/ - Properties?: { [key: string]: string }; + Properties?: Record; /** *

Metadata properties of the tracking entity, trial, or trial component.

@@ -8279,7 +8279,7 @@ export interface CreateContextRequest { /** *

A list of properties to add to the context.

*/ - Properties?: { [key: string]: string }; + Properties?: Record; /** *

A list of tags to apply to the context.

@@ -8348,7 +8348,7 @@ export interface DataQualityAppSpecification { /** *

Sets the environment variables in the container that the monitoring job runs.

*/ - Environment?: { [key: string]: string }; + Environment?: Record; } export namespace DataQualityAppSpecification { @@ -11681,7 +11681,7 @@ export interface HyperParameterTrainingJobDefinition { * that * do not change for the tuning job.

*/ - StaticHyperParameters?: { [key: string]: string }; + StaticHyperParameters?: Record; /** *

The HyperParameterAlgorithmSpecification object that diff --git a/clients/client-sagemaker/src/models/models_1.ts b/clients/client-sagemaker/src/models/models_1.ts index c0298edb0b68..2824e06134d2 100644 --- a/clients/client-sagemaker/src/models/models_1.ts +++ b/clients/client-sagemaker/src/models/models_1.ts @@ -2993,7 +2993,7 @@ export interface ModelBiasAppSpecification { /** *

Sets the environment variables in the Docker container.

*/ - Environment?: { [key: string]: string }; + Environment?: Record; } export namespace ModelBiasAppSpecification { @@ -3171,7 +3171,7 @@ export interface ModelExplainabilityAppSpecification { /** *

Sets the environment variables in the Docker container.

*/ - Environment?: { [key: string]: string }; + Environment?: Record; } export namespace ModelExplainabilityAppSpecification { @@ -3779,7 +3779,7 @@ export interface CreateModelPackageInput { /** *

The metadata properties associated with the model package versions.

*/ - CustomerMetadataProperties?: { [key: string]: string }; + CustomerMetadataProperties?: Record; /** *

Represents the drift check baselines that can be used when the model monitor is set using the model package. @@ -3935,7 +3935,7 @@ export interface ModelQualityAppSpecification { /** *

Sets the environment variables in the container that the monitoring job runs.

*/ - Environment?: { [key: string]: string }; + Environment?: Record; } export namespace ModelQualityAppSpecification { @@ -4250,7 +4250,7 @@ export interface MonitoringJobDefinition { /** *

Sets the environment variables in the Docker container.

*/ - Environment?: { [key: string]: string }; + Environment?: Record; /** *

Specifies networking options for an monitoring job.

@@ -5524,7 +5524,7 @@ export interface CreateProcessingJobRequest { *

The environment variables to set in the Docker container. Up to * 100 key and values entries in the map are supported.

*/ - Environment?: { [key: string]: string }; + Environment?: Record; /** *

Networking options for a processing job, such as whether to allow inbound and @@ -5785,7 +5785,7 @@ export interface DebugHookConfig { /** *

Configuration information for the Debugger hook parameters.

*/ - HookParameters?: { [key: string]: string }; + HookParameters?: Record; /** *

Configuration information for Debugger tensor collections. To learn more about @@ -5846,7 +5846,7 @@ export interface DebugRuleConfiguration { /** *

Runtime configuration for rule container.

*/ - RuleParameters?: { [key: string]: string }; + RuleParameters?: Record; } export namespace DebugRuleConfiguration { @@ -5882,7 +5882,7 @@ export interface ProfilerConfig { * see Use the SageMaker and Debugger Configuration API Operations to Create, Update, and Debug Your Training Job. *

*/ - ProfilingParameters?: { [key: string]: string }; + ProfilingParameters?: Record; } export namespace ProfilerConfig { @@ -5931,7 +5931,7 @@ export interface ProfilerRuleConfiguration { /** *

Runtime configuration for rule container.

*/ - RuleParameters?: { [key: string]: string }; + RuleParameters?: Record; } export namespace ProfilerRuleConfiguration { @@ -5983,7 +5983,7 @@ export interface CreateTrainingJobRequest { * key-value pair. Each key and value is limited to 256 characters, as specified by the * Length Constraint.

*/ - HyperParameters?: { [key: string]: string }; + HyperParameters?: Record; /** *

The registry path of the Docker image that contains the training algorithm and @@ -6162,7 +6162,7 @@ export interface CreateTrainingJobRequest { /** *

The environment variables to set in the Docker container.

*/ - Environment?: { [key: string]: string }; + Environment?: Record; /** *

The number of times to retry the job when the job fails due to an @@ -6360,7 +6360,7 @@ export interface CreateTransformJobRequest { *

The environment variables to set in the Docker container. We support up to 16 key and * values entries in the map.

*/ - Environment?: { [key: string]: string }; + Environment?: Record; /** *

Describes the input source and @@ -6672,19 +6672,19 @@ export interface CreateTrialComponentRequest { /** *

The hyperparameters for the component.

*/ - Parameters?: { [key: string]: TrialComponentParameterValue }; + Parameters?: Record; /** *

The input artifacts for the component. Examples of input artifacts are datasets, * algorithms, hyperparameters, source code, and instance types.

*/ - InputArtifacts?: { [key: string]: TrialComponentArtifact }; + InputArtifacts?: Record; /** *

The output artifacts for the component. Examples of output artifacts are metrics, * snapshots, logs, and images.

*/ - OutputArtifacts?: { [key: string]: TrialComponentArtifact }; + OutputArtifacts?: Record; /** *

Metadata properties of the tracking entity, trial, or trial component.

@@ -8194,7 +8194,7 @@ export interface DescribeActionResponse { /** *

A list of the action's properties.

*/ - Properties?: { [key: string]: string }; + Properties?: Record; /** *

When the action was created.

@@ -8510,7 +8510,7 @@ export interface DescribeArtifactResponse { /** *

A list of the artifact's properties.

*/ - Properties?: { [key: string]: string }; + Properties?: Record; /** *

When the artifact was created.

@@ -9020,7 +9020,7 @@ export interface DescribeContextResponse { /** *

A list of the context's properties.

*/ - Properties?: { [key: string]: string }; + Properties?: Record; /** *

When the context was created.

@@ -10652,7 +10652,7 @@ export interface HyperParameterTrainingJobSummary { * list of the hyperparameters for which you specified ranges to * search.

*/ - TunedHyperParameters: { [key: string]: string } | undefined; + TunedHyperParameters: Record | undefined; /** *

The diff --git a/clients/client-sagemaker/src/models/models_2.ts b/clients/client-sagemaker/src/models/models_2.ts index b59677a5a2bb..521b1288c9a4 100644 --- a/clients/client-sagemaker/src/models/models_2.ts +++ b/clients/client-sagemaker/src/models/models_2.ts @@ -880,7 +880,7 @@ export interface DescribeModelPackageOutput { /** *

The metadata properties associated with the model package versions.

*/ - CustomerMetadataProperties?: { [key: string]: string }; + CustomerMetadataProperties?: Record; /** *

Represents the drift check baselines that can be used when the model monitor is set using the model package. @@ -1811,7 +1811,7 @@ export interface DescribeProcessingJobResponse { /** *

The environment variables set in the Docker container.

*/ - Environment?: { [key: string]: string }; + Environment?: Record; /** *

Networking options for a processing job.

@@ -2662,7 +2662,7 @@ export interface DescribeTrainingJobResponse { /** *

Algorithm-specific parameters.

*/ - HyperParameters?: { [key: string]: string }; + HyperParameters?: Record; /** *

Information about the algorithm used for training, and algorithm metadata. @@ -2876,7 +2876,7 @@ export interface DescribeTrainingJobResponse { /** *

The environment variables to set in the Docker container.

*/ - Environment?: { [key: string]: string }; + Environment?: Record; } export namespace DescribeTrainingJobResponse { @@ -2987,7 +2987,7 @@ export interface DescribeTransformJobResponse { * environment variables to set in the Docker container. We support up to 16 key and values * entries in the map.

*/ - Environment?: { [key: string]: string }; + Environment?: Record; /** *

Describes the dataset to be transformed and the Amazon S3 location where it is @@ -3356,17 +3356,17 @@ export interface DescribeTrialComponentResponse { /** *

The hyperparameters of the component.

*/ - Parameters?: { [key: string]: TrialComponentParameterValue }; + Parameters?: Record; /** *

The input artifacts of the component.

*/ - InputArtifacts?: { [key: string]: TrialComponentArtifact }; + InputArtifacts?: Record; /** *

The output artifacts of the component.

*/ - OutputArtifacts?: { [key: string]: TrialComponentArtifact }; + OutputArtifacts?: Record; /** *

Metadata properties of the tracking entity, trial, or trial component.

diff --git a/clients/client-sagemaker/src/models/models_3.ts b/clients/client-sagemaker/src/models/models_3.ts index 49f69c686d23..ec7b5082261a 100644 --- a/clients/client-sagemaker/src/models/models_3.ts +++ b/clients/client-sagemaker/src/models/models_3.ts @@ -1248,7 +1248,7 @@ export interface ModelPackage { /** *

The metadata properties for the model package.

*/ - CustomerMetadataProperties?: { [key: string]: string }; + CustomerMetadataProperties?: Record; /** *

Represents the drift check baselines that can be used when the model monitor is set using the model package.

@@ -1617,7 +1617,7 @@ export interface ProcessingJob { /** *

Sets the environment variables in the Docker container.

*/ - Environment?: { [key: string]: string }; + Environment?: Record; /** *

Networking options for a job, such as network traffic encryption between containers, @@ -1752,7 +1752,7 @@ export interface ProfilerConfigForUpdate { * see Use the SageMaker and Debugger Configuration API Operations to Create, Update, and Debug Your Training Job. *

*/ - ProfilingParameters?: { [key: string]: string }; + ProfilingParameters?: Record; /** *

To disable Debugger monitoring and profiling, set to True.

@@ -1928,7 +1928,7 @@ export interface QueryFilters { *

Filter the lineage entities connected to the StartArn(s) by a set if property key value pairs. * If multiple pairs are provided, an entity is included in the results if it matches any of the provided pairs.

*/ - Properties?: { [key: string]: string }; + Properties?: Record; } export namespace QueryFilters { @@ -2421,7 +2421,7 @@ export interface TrainingJob { /** *

Algorithm-specific parameters.

*/ - HyperParameters?: { [key: string]: string }; + HyperParameters?: Record; /** *

Information about the algorithm used for training, and algorithm metadata.

@@ -2594,7 +2594,7 @@ export interface TrainingJob { /** *

The environment variables to set in the Docker container.

*/ - Environment?: { [key: string]: string }; + Environment?: Record; /** *

The number of times to retry the job when the job fails due to an @@ -2831,7 +2831,7 @@ export interface TransformJob { *

The environment variables to set in the Docker container. We support up to 16 key and * values entries in the map.

*/ - Environment?: { [key: string]: string }; + Environment?: Record; /** *

Describes the input source of a transform job and the way the transform job consumes @@ -3027,17 +3027,17 @@ export interface TrialComponent { /** *

The hyperparameters of the component.

*/ - Parameters?: { [key: string]: TrialComponentParameterValue }; + Parameters?: Record; /** *

The input artifacts of the component.

*/ - InputArtifacts?: { [key: string]: TrialComponentArtifact }; + InputArtifacts?: Record; /** *

The output artifacts of the component.

*/ - OutputArtifacts?: { [key: string]: TrialComponentArtifact }; + OutputArtifacts?: Record; /** *

The metrics for the component.

@@ -3596,7 +3596,7 @@ export interface UpdateActionRequest { /** *

The new list of properties. Overwrites the current property list.

*/ - Properties?: { [key: string]: string }; + Properties?: Record; /** *

A list of properties to remove.

@@ -3680,7 +3680,7 @@ export interface UpdateArtifactRequest { /** *

The new list of properties. Overwrites the current property list.

*/ - Properties?: { [key: string]: string }; + Properties?: Record; /** *

A list of properties to remove.

@@ -3771,7 +3771,7 @@ export interface UpdateContextRequest { /** *

The new list of properties. Overwrites the current property list.

*/ - Properties?: { [key: string]: string }; + Properties?: Record; /** *

A list of properties to remove.

@@ -4172,7 +4172,7 @@ export interface UpdateModelPackageInput { /** *

The metadata properties associated with the model package versions.

*/ - CustomerMetadataProperties?: { [key: string]: string }; + CustomerMetadataProperties?: Record; /** *

The metadata properties associated with the model package versions to remove.

@@ -4730,7 +4730,7 @@ export interface UpdateTrialComponentRequest { /** *

Replaces all of the component's hyperparameters with the specified hyperparameters.

*/ - Parameters?: { [key: string]: TrialComponentParameterValue }; + Parameters?: Record; /** *

The hyperparameters to remove from the component.

@@ -4740,7 +4740,7 @@ export interface UpdateTrialComponentRequest { /** *

Replaces all of the component's input artifacts with the specified artifacts.

*/ - InputArtifacts?: { [key: string]: TrialComponentArtifact }; + InputArtifacts?: Record; /** *

The input artifacts to remove from the component.

@@ -4750,7 +4750,7 @@ export interface UpdateTrialComponentRequest { /** *

Replaces all of the component's output artifacts with the specified artifacts.

*/ - OutputArtifacts?: { [key: string]: TrialComponentArtifact }; + OutputArtifacts?: Record; /** *

The output artifacts to remove from the component.

diff --git a/clients/client-sagemaker/src/protocols/Aws_json1_1.ts b/clients/client-sagemaker/src/protocols/Aws_json1_1.ts index 23c79d17ce8d..8335453f1d96 100644 --- a/clients/client-sagemaker/src/protocols/Aws_json1_1.ts +++ b/clients/client-sagemaker/src/protocols/Aws_json1_1.ts @@ -16097,7 +16097,7 @@ const serializeAws_json1_1CollectionConfigurations = ( }); }; -const serializeAws_json1_1CollectionParameters = (input: { [key: string]: string }, context: __SerdeContext): any => { +const serializeAws_json1_1CollectionParameters = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -17496,7 +17496,7 @@ const serializeAws_json1_1CustomerMetadataKeyList = (input: string[], context: _ }); }; -const serializeAws_json1_1CustomerMetadataMap = (input: { [key: string]: string }, context: __SerdeContext): any => { +const serializeAws_json1_1CustomerMetadataMap = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -18745,7 +18745,7 @@ const serializeAws_json1_1EndpointInputConfigurations = ( }); }; -const serializeAws_json1_1EnvironmentMap = (input: { [key: string]: string }, context: __SerdeContext): any => { +const serializeAws_json1_1EnvironmentMap = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -18949,7 +18949,7 @@ const serializeAws_json1_1Groups = (input: string[], context: __SerdeContext): a }); }; -const serializeAws_json1_1HookParameters = (input: { [key: string]: string }, context: __SerdeContext): any => { +const serializeAws_json1_1HookParameters = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -19077,7 +19077,7 @@ const serializeAws_json1_1HyperParameterAlgorithmSpecification = ( }; }; -const serializeAws_json1_1HyperParameters = (input: { [key: string]: string }, context: __SerdeContext): any => { +const serializeAws_json1_1HyperParameters = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -19605,10 +19605,7 @@ const serializeAws_json1_1LifecycleConfigArns = (input: string[], context: __Ser }); }; -const serializeAws_json1_1LineageEntityParameters = ( - input: { [key: string]: string }, - context: __SerdeContext -): any => { +const serializeAws_json1_1LineageEntityParameters = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -21248,10 +21245,7 @@ const serializeAws_json1_1MonitoringContainerArguments = (input: string[], conte }); }; -const serializeAws_json1_1MonitoringEnvironmentMap = ( - input: { [key: string]: string }, - context: __SerdeContext -): any => { +const serializeAws_json1_1MonitoringEnvironmentMap = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -21803,10 +21797,7 @@ const serializeAws_json1_1ProcessingClusterConfig = (input: ProcessingClusterCon }; }; -const serializeAws_json1_1ProcessingEnvironmentMap = ( - input: { [key: string]: string }, - context: __SerdeContext -): any => { +const serializeAws_json1_1ProcessingEnvironmentMap = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -22045,7 +22036,7 @@ const serializeAws_json1_1ProfilerRuleConfigurations = ( }); }; -const serializeAws_json1_1ProfilingParameters = (input: { [key: string]: string }, context: __SerdeContext): any => { +const serializeAws_json1_1ProfilingParameters = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -22161,7 +22152,7 @@ const serializeAws_json1_1QueryLineageTypes = (input: (LineageType | string)[], }); }; -const serializeAws_json1_1QueryProperties = (input: { [key: string]: string }, context: __SerdeContext): any => { +const serializeAws_json1_1QueryProperties = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -22456,7 +22447,7 @@ const serializeAws_json1_1RStudioServerProDomainSettingsForUpdate = ( }; }; -const serializeAws_json1_1RuleParameters = (input: { [key: string]: string }, context: __SerdeContext): any => { +const serializeAws_json1_1RuleParameters = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -22924,7 +22915,7 @@ const serializeAws_json1_1TrafficRoutingConfig = (input: TrafficRoutingConfig, c }; }; -const serializeAws_json1_1TrainingEnvironmentMap = (input: { [key: string]: string }, context: __SerdeContext): any => { +const serializeAws_json1_1TrainingEnvironmentMap = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -23025,10 +23016,7 @@ const serializeAws_json1_1TransformDataSource = (input: TransformDataSource, con }; }; -const serializeAws_json1_1TransformEnvironmentMap = ( - input: { [key: string]: string }, - context: __SerdeContext -): any => { +const serializeAws_json1_1TransformEnvironmentMap = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -23124,7 +23112,7 @@ const serializeAws_json1_1TrialComponentArtifact = (input: TrialComponentArtifac }; const serializeAws_json1_1TrialComponentArtifacts = ( - input: { [key: string]: TrialComponentArtifact }, + input: Record, context: __SerdeContext ): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { @@ -23139,7 +23127,7 @@ const serializeAws_json1_1TrialComponentArtifacts = ( }; const serializeAws_json1_1TrialComponentParameters = ( - input: { [key: string]: TrialComponentParameterValue }, + input: Record, context: __SerdeContext ): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { @@ -24560,9 +24548,9 @@ const deserializeAws_json1_1BatchDescribeModelPackageError = ( const deserializeAws_json1_1BatchDescribeModelPackageErrorMap = ( output: any, context: __SerdeContext -): { [key: string]: BatchDescribeModelPackageError } => { +): Record => { return Object.entries(output).reduce( - (acc: { [key: string]: BatchDescribeModelPackageError }, [key, value]: [string, any]) => { + (acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -24973,11 +24961,8 @@ const deserializeAws_json1_1CollectionConfigurations = ( return retVal; }; -const deserializeAws_json1_1CollectionParameters = ( - output: any, - context: __SerdeContext -): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +const deserializeAws_json1_1CollectionParameters = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -25589,8 +25574,8 @@ const deserializeAws_json1_1CsvContentTypes = (output: any, context: __SerdeCont return retVal; }; -const deserializeAws_json1_1CustomerMetadataMap = (output: any, context: __SerdeContext): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +const deserializeAws_json1_1CustomerMetadataMap = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -28321,8 +28306,8 @@ const deserializeAws_json1_1EndpointSummaryList = (output: any, context: __Serde return retVal; }; -const deserializeAws_json1_1EnvironmentMap = (output: any, context: __SerdeContext): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +const deserializeAws_json1_1EnvironmentMap = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -28744,8 +28729,8 @@ const deserializeAws_json1_1Groups = (output: any, context: __SerdeContext): str return retVal; }; -const deserializeAws_json1_1HookParameters = (output: any, context: __SerdeContext): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +const deserializeAws_json1_1HookParameters = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -28873,8 +28858,8 @@ const deserializeAws_json1_1HyperParameterAlgorithmSpecification = ( } as any; }; -const deserializeAws_json1_1HyperParameters = (output: any, context: __SerdeContext): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +const deserializeAws_json1_1HyperParameters = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -29733,8 +29718,8 @@ const deserializeAws_json1_1LifecycleConfigArns = (output: any, context: __Serde const deserializeAws_json1_1LineageEntityParameters = ( output: any, context: __SerdeContext -): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -30968,9 +30953,9 @@ const deserializeAws_json1_1ModelPackageStatusItemList = ( const deserializeAws_json1_1ModelPackageSummaries = ( output: any, context: __SerdeContext -): { [key: string]: BatchDescribeModelPackageSummary } => { +): Record => { return Object.entries(output).reduce( - (acc: { [key: string]: BatchDescribeModelPackageSummary }, [key, value]: [string, any]) => { + (acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -31216,8 +31201,8 @@ const deserializeAws_json1_1MonitoringContainerArguments = (output: any, context const deserializeAws_json1_1MonitoringEnvironmentMap = ( output: any, context: __SerdeContext -): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -32316,8 +32301,8 @@ const deserializeAws_json1_1ProcessingClusterConfig = ( const deserializeAws_json1_1ProcessingEnvironmentMap = ( output: any, context: __SerdeContext -): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -32758,8 +32743,8 @@ const deserializeAws_json1_1ProfilerRuleEvaluationStatuses = ( return retVal; }; -const deserializeAws_json1_1ProfilingParameters = (output: any, context: __SerdeContext): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +const deserializeAws_json1_1ProfilingParameters = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -33190,8 +33175,8 @@ const deserializeAws_json1_1RStudioServerProDomainSettings = ( } as any; }; -const deserializeAws_json1_1RuleParameters = (output: any, context: __SerdeContext): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +const deserializeAws_json1_1RuleParameters = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -33617,11 +33602,8 @@ const deserializeAws_json1_1TrafficRoutingConfig = (output: any, context: __Serd } as any; }; -const deserializeAws_json1_1TrainingEnvironmentMap = ( - output: any, - context: __SerdeContext -): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +const deserializeAws_json1_1TrainingEnvironmentMap = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -33878,8 +33860,8 @@ const deserializeAws_json1_1TransformDataSource = (output: any, context: __Serde const deserializeAws_json1_1TransformEnvironmentMap = ( output: any, context: __SerdeContext -): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -34190,19 +34172,16 @@ const deserializeAws_json1_1TrialComponentArtifact = (output: any, context: __Se const deserializeAws_json1_1TrialComponentArtifacts = ( output: any, context: __SerdeContext -): { [key: string]: TrialComponentArtifact } => { - return Object.entries(output).reduce( - (acc: { [key: string]: TrialComponentArtifact }, [key, value]: [string, any]) => { - if (value === null) { - return acc; - } - return { - ...acc, - [key]: deserializeAws_json1_1TrialComponentArtifact(value, context), - }; - }, - {} - ); +): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { + if (value === null) { + return acc; + } + return { + ...acc, + [key]: deserializeAws_json1_1TrialComponentArtifact(value, context), + }; + }, {}); }; const deserializeAws_json1_1TrialComponentMetricSummaries = ( @@ -34243,9 +34222,9 @@ const deserializeAws_json1_1TrialComponentMetricSummary = ( const deserializeAws_json1_1TrialComponentParameters = ( output: any, context: __SerdeContext -): { [key: string]: TrialComponentParameterValue } => { +): Record => { return Object.entries(output).reduce( - (acc: { [key: string]: TrialComponentParameterValue }, [key, value]: [string, any]) => { + (acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } diff --git a/clients/client-savingsplans/src/models/models_0.ts b/clients/client-savingsplans/src/models/models_0.ts index 27908164b824..3156394667e5 100644 --- a/clients/client-savingsplans/src/models/models_0.ts +++ b/clients/client-savingsplans/src/models/models_0.ts @@ -34,7 +34,7 @@ export interface CreateSavingsPlanRequest { /** *

One or more tags.

*/ - tags?: { [key: string]: string }; + tags?: Record; } export namespace CreateSavingsPlanRequest { @@ -559,7 +559,7 @@ export interface SavingsPlan { /** *

One or more tags.

*/ - tags?: { [key: string]: string }; + tags?: Record; } export namespace SavingsPlan { @@ -1078,7 +1078,7 @@ export interface ListTagsForResourceResponse { /** *

Information about the tags.

*/ - tags?: { [key: string]: string }; + tags?: Record; } export namespace ListTagsForResourceResponse { @@ -1099,7 +1099,7 @@ export interface TagResourceRequest { /** *

One or more tags. For example, { "tags": {"key1":"value1", "key2":"value2"} }.

*/ - tags: { [key: string]: string } | undefined; + tags: Record | undefined; } export namespace TagResourceRequest { diff --git a/clients/client-savingsplans/src/protocols/Aws_restJson1.ts b/clients/client-savingsplans/src/protocols/Aws_restJson1.ts index 0653b6c1b223..99f3c132caa1 100644 --- a/clients/client-savingsplans/src/protocols/Aws_restJson1.ts +++ b/clients/client-savingsplans/src/protocols/Aws_restJson1.ts @@ -1208,7 +1208,7 @@ const serializeAws_restJson1TagKeyList = (input: string[], context: __SerdeConte }); }; -const serializeAws_restJson1TagMap = (input: { [key: string]: string }, context: __SerdeContext): any => { +const serializeAws_restJson1TagMap = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -1478,8 +1478,8 @@ const deserializeAws_restJson1SavingsPlanRatePropertyList = ( return retVal; }; -const deserializeAws_restJson1TagMap = (output: any, context: __SerdeContext): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +const deserializeAws_restJson1TagMap = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } diff --git a/clients/client-schemas/src/models/models_0.ts b/clients/client-schemas/src/models/models_0.ts index a14f96131da5..52b47875018d 100644 --- a/clients/client-schemas/src/models/models_0.ts +++ b/clients/client-schemas/src/models/models_0.ts @@ -40,7 +40,7 @@ export interface DiscovererSummary { /** *

Tags associated with the resource.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; } export namespace DiscovererSummary { @@ -66,7 +66,7 @@ export interface RegistrySummary { /** *

Tags associated with the registry.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; } export namespace RegistrySummary { @@ -100,7 +100,7 @@ export interface SchemaSummary { /** *

Tags associated with the schema.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; /** *

The number of versions available for the schema.

@@ -289,7 +289,7 @@ export interface CreateDiscovererRequest { /** *

Tags associated with the resource.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; } export namespace CreateDiscovererRequest { @@ -335,7 +335,7 @@ export interface CreateDiscovererResponse { /** *

Tags associated with the resource.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; } export namespace CreateDiscovererResponse { @@ -469,7 +469,7 @@ export interface CreateRegistryRequest { /** *

Tags to associate with the registry.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; } export namespace CreateRegistryRequest { @@ -500,7 +500,7 @@ export interface CreateRegistryResponse { /** *

Tags associated with the registry.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; } export namespace CreateRegistryResponse { @@ -536,7 +536,7 @@ export interface CreateSchemaRequest { /** *

Tags associated with the schema.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; /** *

The type of schema.

@@ -582,7 +582,7 @@ export interface CreateSchemaResponse { /** *

Key-value pairs associated with a resource.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; /** *

The type of the schema.

@@ -865,7 +865,7 @@ export interface DescribeDiscovererResponse { /** *

Tags associated with the resource.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; } export namespace DescribeDiscovererResponse { @@ -912,7 +912,7 @@ export interface DescribeRegistryResponse { /** *

Tags associated with the registry.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; } export namespace DescribeRegistryResponse { @@ -984,7 +984,7 @@ export interface DescribeSchemaResponse { /** *

Tags associated with the resource.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; /** *

The type of the schema.

@@ -1408,7 +1408,7 @@ export interface ListTagsForResourceResponse { /** *

Key-value pairs associated with a resource.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; } export namespace ListTagsForResourceResponse { @@ -1693,7 +1693,7 @@ export interface TagResourceRequest { /** *

Tags associated with the resource.

*/ - Tags: { [key: string]: string } | undefined; + Tags: Record | undefined; } export namespace TagResourceRequest { @@ -1786,7 +1786,7 @@ export interface UpdateDiscovererResponse { /** *

Tags associated with the resource.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; } export namespace UpdateDiscovererResponse { @@ -1841,7 +1841,7 @@ export interface UpdateRegistryResponse { /** *

Tags associated with the registry.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; } export namespace UpdateRegistryResponse { @@ -1923,7 +1923,7 @@ export interface UpdateSchemaResponse { /** *

Key-value pairs associated with a resource.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; /** *

The type of the schema.

diff --git a/clients/client-schemas/src/protocols/Aws_restJson1.ts b/clients/client-schemas/src/protocols/Aws_restJson1.ts index 239b6791f4a4..0dcec99c6f5e 100644 --- a/clients/client-schemas/src/protocols/Aws_restJson1.ts +++ b/clients/client-schemas/src/protocols/Aws_restJson1.ts @@ -3422,7 +3422,7 @@ const serializeAws_restJson1__listOfGetDiscoveredSchemaVersionItemInput = ( }); }; -const serializeAws_restJson1Tags = (input: { [key: string]: string }, context: __SerdeContext): any => { +const serializeAws_restJson1Tags = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -3594,8 +3594,8 @@ const deserializeAws_restJson1SearchSchemaVersionSummary = ( } as any; }; -const deserializeAws_restJson1Tags = (output: any, context: __SerdeContext): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +const deserializeAws_restJson1Tags = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } diff --git a/clients/client-secrets-manager/src/models/models_0.ts b/clients/client-secrets-manager/src/models/models_0.ts index 8a0ce8244f6e..89add097e655 100644 --- a/clients/client-secrets-manager/src/models/models_0.ts +++ b/clients/client-secrets-manager/src/models/models_0.ts @@ -857,7 +857,7 @@ export interface DescribeSecretResponse { * *

For more information about rotation and staging labels, see How rotation works.

*/ - VersionIdsToStages?: { [key: string]: string[] }; + VersionIdsToStages?: Record; /** *

The name of the service that created this secret.

@@ -1331,7 +1331,7 @@ export interface SecretListEntry { * deprecated and subject to deletion. Such versions are not included in this list.

* */ - SecretVersionsToStages?: { [key: string]: string[] }; + SecretVersionsToStages?: Record; /** *

Returns the name of the service that created the secret.

diff --git a/clients/client-secrets-manager/src/protocols/Aws_json1_1.ts b/clients/client-secrets-manager/src/protocols/Aws_json1_1.ts index 0c38392f47d8..6f6c71299263 100644 --- a/clients/client-secrets-manager/src/protocols/Aws_json1_1.ts +++ b/clients/client-secrets-manager/src/protocols/Aws_json1_1.ts @@ -2599,8 +2599,8 @@ const deserializeAws_json1_1SecretVersionStagesType = (output: any, context: __S const deserializeAws_json1_1SecretVersionsToStagesMapType = ( output: any, context: __SerdeContext -): { [key: string]: string[] } => { - return Object.entries(output).reduce((acc: { [key: string]: string[] }, [key, value]: [string, any]) => { +): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } diff --git a/clients/client-securityhub/src/models/models_0.ts b/clients/client-securityhub/src/models/models_0.ts index 3a26431ad4cc..eb832bae45f1 100644 --- a/clients/client-securityhub/src/models/models_0.ts +++ b/clients/client-securityhub/src/models/models_0.ts @@ -431,7 +431,7 @@ export interface AwsApiCallAction { /** *

Identifies the resources that were affected by the API call.

*/ - AffectedResources?: { [key: string]: string }; + AffectedResources?: Record; /** *

An ISO8601-formatted timestamp that indicates when the API call was first @@ -896,7 +896,7 @@ export interface AwsApiGatewayCanarySettings { *

Each variable is represented as a string-to-string map between the stage variable name * and the variable value.

*/ - StageVariableOverrides?: { [key: string]: string }; + StageVariableOverrides?: Record; /** *

Indicates whether the canary deployment uses the stage cache.

@@ -1158,7 +1158,7 @@ export interface AwsApiGatewayStageDetails { * * */ - Variables?: { [key: string]: string }; + Variables?: Record; /** *

The version of the API documentation that is associated with the stage.

@@ -1448,7 +1448,7 @@ export interface AwsApiGatewayV2StageDetails { * * */ - StageVariables?: { [key: string]: string }; + StageVariables?: Record; /** *

Information about settings for logging access for the stage.

@@ -6133,7 +6133,7 @@ export interface AwsEcsTaskDefinitionContainerDefinitionsFirelensConfigurationDe * * */ - Options?: { [key: string]: string }; + Options?: Record; /** *

The log router to use.

@@ -6368,7 +6368,7 @@ export interface AwsEcsTaskDefinitionContainerDefinitionsLogConfigurationDetails /** *

The configuration options to send to the log driver. Requires version 1.19 of the Docker Remote API or greater on your container instance.

*/ - Options?: { [key: string]: string }; + Options?: Record; /** *

The secrets to pass to the log configuration.

@@ -6633,7 +6633,7 @@ export interface AwsEcsTaskDefinitionContainerDefinitionsDetails { /** *

A key-value map of labels to add to the container.

*/ - DockerLabels?: { [key: string]: string }; + DockerLabels?: Record; /** *

A list of strings to provide custom labels for SELinux and AppArmor multi-level security systems.

@@ -6982,12 +6982,12 @@ export interface AwsEcsTaskDefinitionVolumesDockerVolumeConfigurationDetails { /** *

A map of Docker driver-specific options that are passed through.

*/ - DriverOpts?: { [key: string]: string }; + DriverOpts?: Record; /** *

Custom metadata to add to the Docker volume.

*/ - Labels?: { [key: string]: string }; + Labels?: Record; /** *

The scope for the Docker volume that determines its lifecycle. Docker volumes that are scoped to a task are provisioned automatically when the task starts and destroyed when the task stops. Docker volumes that are shared persist after the task stops.

@@ -7843,7 +7843,7 @@ export interface AwsElasticsearchDomainDetails { /** *

The key-value pair that exists if the Elasticsearch domain uses VPC endpoints.

*/ - Endpoints?: { [key: string]: string }; + Endpoints?: Record; /** *

OpenSearch version.

@@ -9368,7 +9368,7 @@ export interface AwsLambdaFunctionEnvironment { /** *

Environment variable key-value pairs.

*/ - Variables?: { [key: string]: string }; + Variables?: Record; /** *

An AwsLambdaFunctionEnvironmentError object.

@@ -10811,7 +10811,7 @@ export interface AwsOpenSearchServiceDomainDetails { *

The domain endpoints. Used if the OpenSearch domain resides in a VPC.

*

This is a map of key-value pairs. The key is always vpc. The value is the endpoint.

*/ - DomainEndpoints?: { [key: string]: string }; + DomainEndpoints?: Record; } export namespace AwsOpenSearchServiceDomainDetails { diff --git a/clients/client-securityhub/src/models/models_1.ts b/clients/client-securityhub/src/models/models_1.ts index 4ac2b0528973..7fa8fe5b8cfd 100644 --- a/clients/client-securityhub/src/models/models_1.ts +++ b/clients/client-securityhub/src/models/models_1.ts @@ -4698,7 +4698,7 @@ export interface ResourceDetails { * * */ - Other?: { [key: string]: string }; + Other?: Record; /** *

Details about an RDS event notification subscription.

@@ -4833,7 +4833,7 @@ export interface Resource { *

A list of Amazon Web Services tags associated with a resource at the time the finding was * processed.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; /** *

Contains information about sensitive data that was detected on the resource.

@@ -5452,13 +5452,13 @@ export interface AwsSecurityFinding { * details that aren't part of the defined AwsSecurityFinding format.

*

Can contain up to 50 key-value pairs. For each key-value pair, the key can contain up to 128 characters, and the value can contain up to 2048 characters.

*/ - ProductFields?: { [key: string]: string }; + ProductFields?: Record; /** *

A list of name/value string pairs associated with the finding. These are custom, * user-defined fields added to a finding.

*/ - UserDefinedFields?: { [key: string]: string }; + UserDefinedFields?: Record; /** *

A list of malware related to a finding.

@@ -6575,7 +6575,7 @@ export interface StandardsSubscription { /** *

A key-value pair of input for the standard.

*/ - StandardsInput: { [key: string]: string } | undefined; + StandardsInput: Record | undefined; /** *

The status of the standard subscription.

@@ -6649,7 +6649,7 @@ export interface StandardsSubscriptionRequest { /** *

A key-value pair of input for the standard.

*/ - StandardsInput?: { [key: string]: string }; + StandardsInput?: Record; } export namespace StandardsSubscriptionRequest { @@ -7013,7 +7013,7 @@ export interface BatchUpdateFindingsRequest { *

A list of name/value string pairs associated with the finding. These are custom, * user-defined fields added to a finding.

*/ - UserDefinedFields?: { [key: string]: string }; + UserDefinedFields?: Record; /** *

Used to update the workflow status of a finding.

@@ -8227,7 +8227,7 @@ export interface EnableSecurityHubRequest { /** *

The tags to add to the hub resource when you enable Security Hub.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; /** *

Whether to enable the security standards that Security Hub has designated as automatically @@ -9184,7 +9184,7 @@ export interface ListTagsForResourceResponse { /** *

The tags associated with a resource.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; } export namespace ListTagsForResourceResponse { @@ -9205,7 +9205,7 @@ export interface TagResourceRequest { /** *

The tags to add to the resource. You can add up to 50 tags at a time. The tag keys can be no longer than 128 characters. The tag values can be no longer than 256 characters.

*/ - Tags: { [key: string]: string } | undefined; + Tags: Record | undefined; } export namespace TagResourceRequest { diff --git a/clients/client-securityhub/src/protocols/Aws_restJson1.ts b/clients/client-securityhub/src/protocols/Aws_restJson1.ts index 91a8126da65a..34382b2c4a66 100644 --- a/clients/client-securityhub/src/protocols/Aws_restJson1.ts +++ b/clients/client-securityhub/src/protocols/Aws_restJson1.ts @@ -13815,7 +13815,7 @@ const serializeAws_restJson1DnsRequestAction = (input: DnsRequestAction, context }; }; -const serializeAws_restJson1FieldMap = (input: { [key: string]: string }, context: __SerdeContext): any => { +const serializeAws_restJson1FieldMap = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -15337,7 +15337,7 @@ const serializeAws_restJson1SortCriterion = (input: SortCriterion, context: __Se }; const serializeAws_restJson1StandardsInputParameterMap = ( - input: { [key: string]: string }, + input: Record, context: __SerdeContext ): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { @@ -15486,7 +15486,7 @@ const serializeAws_restJson1StringList = (input: string[], context: __SerdeConte }); }; -const serializeAws_restJson1TagMap = (input: { [key: string]: string }, context: __SerdeContext): any => { +const serializeAws_restJson1TagMap = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -23490,8 +23490,8 @@ const deserializeAws_restJson1DnsRequestAction = (output: any, context: __SerdeC } as any; }; -const deserializeAws_restJson1FieldMap = (output: any, context: __SerdeContext): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +const deserializeAws_restJson1FieldMap = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -25287,8 +25287,8 @@ const deserializeAws_restJson1StandardsControls = (output: any, context: __Serde const deserializeAws_restJson1StandardsInputParameterMap = ( output: any, context: __SerdeContext -): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -25434,8 +25434,8 @@ const deserializeAws_restJson1StringList = (output: any, context: __SerdeContext return retVal; }; -const deserializeAws_restJson1TagMap = (output: any, context: __SerdeContext): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +const deserializeAws_restJson1TagMap = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } diff --git a/clients/client-service-catalog-appregistry/src/models/models_0.ts b/clients/client-service-catalog-appregistry/src/models/models_0.ts index 0d81ffe61868..06b202842dd4 100644 --- a/clients/client-service-catalog-appregistry/src/models/models_0.ts +++ b/clients/client-service-catalog-appregistry/src/models/models_0.ts @@ -41,7 +41,7 @@ export interface Application { /** *

Key-value pairs you can use to associate with the application.

*/ - tags?: { [key: string]: string }; + tags?: Record; } export namespace Application { @@ -323,7 +323,7 @@ export interface AttributeGroup { /** *

Key-value pairs you can use to associate with the attribute group.

*/ - tags?: { [key: string]: string }; + tags?: Record; } export namespace AttributeGroup { @@ -393,7 +393,7 @@ export interface CreateApplicationRequest { /** *

Key-value pairs you can use to associate with the application.

*/ - tags?: { [key: string]: string }; + tags?: Record; /** *

A unique identifier that you provide to ensure idempotency. If you retry a request that @@ -448,7 +448,7 @@ export interface CreateAttributeGroupRequest { /** *

Key-value pairs you can use to associate with the attribute group.

*/ - tags?: { [key: string]: string }; + tags?: Record; /** *

A unique identifier that you provide to ensure idempotency. If you retry a request that @@ -761,7 +761,7 @@ export interface GetApplicationResponse { /** *

Key-value pairs associated with the application.

*/ - tags?: { [key: string]: string }; + tags?: Record; /** *

The information about the integration of the application with other services, such as Resource Groups.

@@ -929,7 +929,7 @@ export interface GetAttributeGroupResponse { /** *

Key-value pairs associated with the attribute group.

*/ - tags?: { [key: string]: string }; + tags?: Record; } export namespace GetAttributeGroupResponse { @@ -1163,7 +1163,7 @@ export interface ListTagsForResourceResponse { /** *

The tags on the resource.

*/ - tags?: { [key: string]: string }; + tags?: Record; } export namespace ListTagsForResourceResponse { @@ -1236,7 +1236,7 @@ export interface TagResourceRequest { /** *

The new or modified tags for the resource.

*/ - tags: { [key: string]: string } | undefined; + tags: Record | undefined; } export namespace TagResourceRequest { diff --git a/clients/client-service-catalog-appregistry/src/protocols/Aws_restJson1.ts b/clients/client-service-catalog-appregistry/src/protocols/Aws_restJson1.ts index 53b1700a8215..2faac860a664 100644 --- a/clients/client-service-catalog-appregistry/src/protocols/Aws_restJson1.ts +++ b/clients/client-service-catalog-appregistry/src/protocols/Aws_restJson1.ts @@ -2025,7 +2025,7 @@ const deserializeAws_restJson1ValidationExceptionResponse = async ( return __decorateServiceException(exception, parsedOutput.body); }; -const serializeAws_restJson1Tags = (input: { [key: string]: string }, context: __SerdeContext): any => { +const serializeAws_restJson1Tags = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -2212,8 +2212,8 @@ const deserializeAws_restJson1Resources = (output: any, context: __SerdeContext) return retVal; }; -const deserializeAws_restJson1Tags = (output: any, context: __SerdeContext): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +const deserializeAws_restJson1Tags = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } diff --git a/clients/client-service-catalog/src/models/models_0.ts b/clients/client-service-catalog/src/models/models_0.ts index a78de31dff3b..a1014476276c 100644 --- a/clients/client-service-catalog/src/models/models_0.ts +++ b/clients/client-service-catalog/src/models/models_0.ts @@ -743,7 +743,7 @@ export interface CopyProductInput { *

The identifiers of the provisioning artifacts (also known as versions) of the product to copy. * By default, all provisioning artifacts are copied.

*/ - SourceProvisioningArtifactIdentifiers?: { [key: string]: string }[]; + SourceProvisioningArtifactIdentifiers?: Record[]; /** *

The copy options. If the value is CopyTags, the tags from the source @@ -1299,7 +1299,7 @@ export interface ProvisioningArtifactProperties { * format as follows: ImportFromPhysicalId: “arn:aws:cloudformation:[us-east-1]:[accountId]:stack/[StackName]/[resourceId] *

*/ - Info: { [key: string]: string } | undefined; + Info: Record | undefined; /** *

The type of provisioning artifact.

@@ -1864,7 +1864,7 @@ export interface CreateProvisioningArtifactOutput { *

Use the physical id of the resource that contains the template; currently supports * CloudFormation stack ARN.

*/ - Info?: { [key: string]: string }; + Info?: Record; /** *

The status of the current request.

@@ -1928,7 +1928,7 @@ export interface CreateServiceActionInput { * * */ - Definition: { [key: string]: string } | undefined; + Definition: Record | undefined; /** *

The self-service action description.

@@ -2016,7 +2016,7 @@ export interface ServiceActionDetail { /** *

A map that defines the self-service action.

*/ - Definition?: { [key: string]: string }; + Definition?: Record; } export namespace ServiceActionDetail { @@ -3156,7 +3156,7 @@ export interface ProvisioningArtifactSummary { /** *

The metadata for the provisioning artifact. This is used with AWS Marketplace products.

*/ - ProvisioningArtifactMetadata?: { [key: string]: string }; + ProvisioningArtifactMetadata?: Record; } export namespace ProvisioningArtifactSummary { @@ -3899,7 +3899,7 @@ export interface DescribeProvisioningArtifactOutput { /** *

The URL of the CloudFormation template in Amazon S3.

*/ - Info?: { [key: string]: string }; + Info?: Record; /** *

The status of the current request.

@@ -5089,7 +5089,7 @@ export interface ExecuteProvisionedProductServiceActionInput { * override the default value generated by AWS Service Catalog. If the parameters field is not provided, no additional parameters are passed and default values will be used for * any special parameters such as TARGET.

*/ - Parameters?: { [key: string]: string[] }; + Parameters?: Record; } export namespace ExecuteProvisionedProductServiceActionInput { @@ -7163,7 +7163,7 @@ export interface SearchProductsInput { *

The search filters. If no search filters are specified, the output includes * all products to which the caller has access.

*/ - Filters?: { [key: string]: string[] }; + Filters?: Record; /** *

The maximum number of items to return with this call.

@@ -7229,7 +7229,7 @@ export interface SearchProductsOutput { /** *

The product view aggregations.

*/ - ProductViewAggregations?: { [key: string]: ProductViewAggregationValue[] }; + ProductViewAggregations?: Record; /** *

The page token to use to retrieve the next set of results. If there are no additional results, this value is null.

@@ -7279,7 +7279,7 @@ export interface SearchProductsAsAdminInput { *

The search filters. If no search filters are specified, the output includes all products * to which the administrator has access.

*/ - Filters?: { [key: string]: string[] }; + Filters?: Record; /** *

The sort field. If no value is specified, the results are not sorted.

@@ -7377,7 +7377,7 @@ export interface SearchProvisionedProductsInput { *

Example: "SearchQuery":["status:AVAILABLE"] *

*/ - Filters?: { [key: string]: string[] }; + Filters?: Record; /** *

The sort field. If no value is specified, the results are not sorted. The valid values are arn, id, name, @@ -8319,7 +8319,7 @@ export interface UpdateProvisionedProductPropertiesInput { * If an end user provisions a product and the owner is updated to someone else, they will no longer be able to see or perform any actions through * API or the Service Catalog console on that provisioned product.

*/ - ProvisionedProductProperties: { [key: string]: string } | undefined; + ProvisionedProductProperties: Record | undefined; /** *

The idempotency token that uniquely identifies the provisioning product update request.

@@ -8345,7 +8345,7 @@ export interface UpdateProvisionedProductPropertiesOutput { /** *

A map that contains the properties updated.

*/ - ProvisionedProductProperties?: { [key: string]: string }; + ProvisionedProductProperties?: Record; /** *

The identifier of the record.

@@ -8441,7 +8441,7 @@ export interface UpdateProvisioningArtifactOutput { /** *

The URL of the CloudFormation template in Amazon S3.

*/ - Info?: { [key: string]: string }; + Info?: Record; /** *

The status of the current request.

@@ -8472,7 +8472,7 @@ export interface UpdateServiceActionInput { /** *

A map that defines the self-service action.

*/ - Definition?: { [key: string]: string }; + Definition?: Record; /** *

The self-service action description.

diff --git a/clients/client-service-catalog/src/protocols/Aws_json1_1.ts b/clients/client-service-catalog/src/protocols/Aws_json1_1.ts index ead41b1234f0..b67a380870c5 100644 --- a/clients/client-service-catalog/src/protocols/Aws_json1_1.ts +++ b/clients/client-service-catalog/src/protocols/Aws_json1_1.ts @@ -6535,10 +6535,7 @@ const serializeAws_json1_1ExecuteProvisionedProductServiceActionInput = ( }; }; -const serializeAws_json1_1ExecutionParameterMap = ( - input: { [key: string]: string[] }, - context: __SerdeContext -): any => { +const serializeAws_json1_1ExecutionParameterMap = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -6885,7 +6882,7 @@ const serializeAws_json1_1OutputKeys = (input: string[], context: __SerdeContext }); }; -const serializeAws_json1_1ProductViewFilters = (input: { [key: string]: string[] }, context: __SerdeContext): any => { +const serializeAws_json1_1ProductViewFilters = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce( (acc: { [key: string]: any }, [key, value]: [ProductViewFilterBy | string, any]) => { if (value === null) { @@ -6912,7 +6909,7 @@ const serializeAws_json1_1ProductViewFilterValues = (input: string[], context: _ }; const serializeAws_json1_1ProvisionedProductFilters = ( - input: { [key: string]: string[] }, + input: Record, context: __SerdeContext ): any => { return Object.entries(input).reduce( @@ -6930,7 +6927,7 @@ const serializeAws_json1_1ProvisionedProductFilters = ( }; const serializeAws_json1_1ProvisionedProductProperties = ( - input: { [key: string]: string }, + input: Record, context: __SerdeContext ): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [PropertyKey | string, any]) => { @@ -6955,10 +6952,7 @@ const serializeAws_json1_1ProvisionedProductViewFilterValues = (input: string[], }); }; -const serializeAws_json1_1ProvisioningArtifactInfo = ( - input: { [key: string]: string }, - context: __SerdeContext -): any => { +const serializeAws_json1_1ProvisioningArtifactInfo = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -7169,7 +7163,7 @@ const serializeAws_json1_1ServiceActionAssociations = ( }; const serializeAws_json1_1ServiceActionDefinitionMap = ( - input: { [key: string]: string }, + input: Record, context: __SerdeContext ): any => { return Object.entries(input).reduce( @@ -7187,7 +7181,7 @@ const serializeAws_json1_1ServiceActionDefinitionMap = ( }; const serializeAws_json1_1SourceProvisioningArtifactProperties = ( - input: { [key: string]: string }[], + input: Record[], context: __SerdeContext ): any => { return input @@ -7201,7 +7195,7 @@ const serializeAws_json1_1SourceProvisioningArtifactProperties = ( }; const serializeAws_json1_1SourceProvisioningArtifactPropertiesMap = ( - input: { [key: string]: string }, + input: Record, context: __SerdeContext ): any => { return Object.entries(input).reduce( @@ -8702,9 +8696,9 @@ const deserializeAws_json1_1Principals = (output: any, context: __SerdeContext): const deserializeAws_json1_1ProductViewAggregations = ( output: any, context: __SerdeContext -): { [key: string]: ProductViewAggregationValue[] } => { +): Record => { return Object.entries(output).reduce( - (acc: { [key: string]: ProductViewAggregationValue[] }, [key, value]: [string, any]) => { + (acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -8951,8 +8945,8 @@ const deserializeAws_json1_1ProvisionedProductPlanSummary = ( const deserializeAws_json1_1ProvisionedProductProperties = ( output: any, context: __SerdeContext -): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [PropertyKey | string, any]) => { +): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [PropertyKey | string, any]) => { if (value === null) { return acc; } @@ -9012,8 +9006,8 @@ const deserializeAws_json1_1ProvisioningArtifactDetails = ( const deserializeAws_json1_1ProvisioningArtifactInfo = ( output: any, context: __SerdeContext -): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -9464,9 +9458,9 @@ const deserializeAws_json1_1SearchProvisionedProductsOutput = ( const deserializeAws_json1_1ServiceActionDefinitionMap = ( output: any, context: __SerdeContext -): { [key: string]: string } => { +): Record => { return Object.entries(output).reduce( - (acc: { [key: string]: string }, [key, value]: [ServiceActionDefinitionKey | string, any]) => { + (acc: Record, [key, value]: [ServiceActionDefinitionKey | string, any]) => { if (value === null) { return acc; } diff --git a/clients/client-service-quotas/src/models/models_0.ts b/clients/client-service-quotas/src/models/models_0.ts index 0ec9cd43c6b1..a2c379c63dec 100644 --- a/clients/client-service-quotas/src/models/models_0.ts +++ b/clients/client-service-quotas/src/models/models_0.ts @@ -477,7 +477,7 @@ export interface MetricInfo { *

The metric dimension. This is a name/value pair that is part of the identity of a * metric.

*/ - MetricDimensions?: { [key: string]: string }; + MetricDimensions?: Record; /** *

The metric statistic that we recommend you use when determining quota usage.

diff --git a/clients/client-service-quotas/src/protocols/Aws_json1_1.ts b/clients/client-service-quotas/src/protocols/Aws_json1_1.ts index 532435715062..1bc5e41fb6b0 100644 --- a/clients/client-service-quotas/src/protocols/Aws_json1_1.ts +++ b/clients/client-service-quotas/src/protocols/Aws_json1_1.ts @@ -2212,8 +2212,8 @@ const deserializeAws_json1_1ListTagsForResourceResponse = ( const deserializeAws_json1_1MetricDimensionsMapDefinition = ( output: any, context: __SerdeContext -): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } diff --git a/clients/client-servicediscovery/src/models/models_0.ts b/clients/client-servicediscovery/src/models/models_0.ts index ebb15c6d2adf..812b36e32c6c 100644 --- a/clients/client-servicediscovery/src/models/models_0.ts +++ b/clients/client-servicediscovery/src/models/models_0.ts @@ -1379,7 +1379,7 @@ export interface DiscoverInstancesRequest { *

Filters to scope the results based on custom attributes for the instance (for example, {version=v1, * az=1a}). Only instances that match all the specified key-value pairs are returned.

*/ - QueryParameters?: { [key: string]: string }; + QueryParameters?: Record; /** *

Opportunistic filters to scope the results based on custom attributes. If there are instances that match both @@ -1387,7 +1387,7 @@ export interface DiscoverInstancesRequest { * are returned. Otherwise, the filters are ignored, and only instances that match the filters that are specified in the * QueryParameters parameter are returned.

*/ - OptionalParameters?: { [key: string]: string }; + OptionalParameters?: Record; /** *

The health status of the instances that you want to discover. This parameter is ignored for services that don't @@ -1466,7 +1466,7 @@ export interface HttpInstanceSummary { /** *

If you included any attributes when you registered the instance, the values of those attributes.

*/ - Attributes?: { [key: string]: string }; + Attributes?: Record; } export namespace HttpInstanceSummary { @@ -1720,7 +1720,7 @@ export interface Instance { * * */ - Attributes?: { [key: string]: string }; + Attributes?: Record; } export namespace Instance { @@ -1794,7 +1794,7 @@ export interface GetInstancesHealthStatusResponse { *

A complex type that contains the IDs and the health status of the instances that you specified in the * GetInstancesHealthStatus request.

*/ - Status?: { [key: string]: HealthStatus | string }; + Status?: Record; /** *

If more than MaxResults instances match the specified criteria, you can submit another @@ -2127,7 +2127,7 @@ export interface Operation { * * */ - Targets?: { [key: string]: string }; + Targets?: Record; } export namespace Operation { @@ -2290,7 +2290,7 @@ export interface InstanceSummary { * * */ - Attributes?: { [key: string]: string }; + Attributes?: Record; } export namespace InstanceSummary { @@ -3321,7 +3321,7 @@ export interface RegisterInstanceRequest { * * */ - Attributes: { [key: string]: string } | undefined; + Attributes: Record | undefined; } export namespace RegisterInstanceRequest { diff --git a/clients/client-servicediscovery/src/protocols/Aws_json1_1.ts b/clients/client-servicediscovery/src/protocols/Aws_json1_1.ts index 9c19ccf6aa4d..ac2467a80459 100644 --- a/clients/client-servicediscovery/src/protocols/Aws_json1_1.ts +++ b/clients/client-servicediscovery/src/protocols/Aws_json1_1.ts @@ -1996,7 +1996,7 @@ const deserializeAws_json1_1TooManyTagsExceptionResponse = async ( return __decorateServiceException(exception, body); }; -const serializeAws_json1_1Attributes = (input: { [key: string]: string }, context: __SerdeContext): any => { +const serializeAws_json1_1Attributes = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -2583,8 +2583,8 @@ const serializeAws_json1_1UpdateServiceRequest = (input: UpdateServiceRequest, c }; }; -const deserializeAws_json1_1Attributes = (output: any, context: __SerdeContext): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +const deserializeAws_json1_1Attributes = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -2826,8 +2826,8 @@ const deserializeAws_json1_1Instance = (output: any, context: __SerdeContext): I const deserializeAws_json1_1InstanceHealthStatusMap = ( output: any, context: __SerdeContext -): { [key: string]: HealthStatus | string } => { - return Object.entries(output).reduce((acc: { [key: string]: HealthStatus | string }, [key, value]: [string, any]) => { +): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -3049,9 +3049,9 @@ const deserializeAws_json1_1OperationSummaryList = (output: any, context: __Serd return retVal; }; -const deserializeAws_json1_1OperationTargetsMap = (output: any, context: __SerdeContext): { [key: string]: string } => { +const deserializeAws_json1_1OperationTargetsMap = (output: any, context: __SerdeContext): Record => { return Object.entries(output).reduce( - (acc: { [key: string]: string }, [key, value]: [OperationTargetType | string, any]) => { + (acc: Record, [key, value]: [OperationTargetType | string, any]) => { if (value === null) { return acc; } diff --git a/clients/client-ses/src/models/models_0.ts b/clients/client-ses/src/models/models_0.ts index 99212055eb04..d77c63961665 100644 --- a/clients/client-ses/src/models/models_0.ts +++ b/clients/client-ses/src/models/models_0.ts @@ -3295,7 +3295,7 @@ export interface GetIdentityDkimAttributesResponse { /** *

The DKIM attributes for an email address or a domain.

*/ - DkimAttributes: { [key: string]: IdentityDkimAttributes } | undefined; + DkimAttributes: Record | undefined; } export namespace GetIdentityDkimAttributesResponse { @@ -3376,7 +3376,7 @@ export interface GetIdentityMailFromDomainAttributesResponse { /** *

A map of identities to custom MAIL FROM attributes.

*/ - MailFromDomainAttributes: { [key: string]: IdentityMailFromDomainAttributes } | undefined; + MailFromDomainAttributes: Record | undefined; } export namespace GetIdentityMailFromDomainAttributesResponse { @@ -3487,7 +3487,7 @@ export interface GetIdentityNotificationAttributesResponse { /** *

A map of Identity to IdentityNotificationAttributes.

*/ - NotificationAttributes: { [key: string]: IdentityNotificationAttributes } | undefined; + NotificationAttributes: Record | undefined; } export namespace GetIdentityNotificationAttributesResponse { @@ -3539,7 +3539,7 @@ export interface GetIdentityPoliciesResponse { /** *

A map of policy names to policies.

*/ - Policies: { [key: string]: string } | undefined; + Policies: Record | undefined; } export namespace GetIdentityPoliciesResponse { @@ -3607,7 +3607,7 @@ export interface GetIdentityVerificationAttributesResponse { /** *

A map of Identities to IdentityVerificationAttributes objects.

*/ - VerificationAttributes: { [key: string]: IdentityVerificationAttributes } | undefined; + VerificationAttributes: Record | undefined; } export namespace GetIdentityVerificationAttributesResponse { diff --git a/clients/client-ses/src/protocols/Aws_query.ts b/clients/client-ses/src/protocols/Aws_query.ts index 449a51d2301e..407057aec99e 100644 --- a/clients/client-ses/src/protocols/Aws_query.ts +++ b/clients/client-ses/src/protocols/Aws_query.ts @@ -7596,7 +7596,7 @@ const deserializeAws_queryDescribeReceiptRuleSetResponse = ( const deserializeAws_queryDkimAttributes = ( output: any, context: __SerdeContext -): { [key: string]: IdentityDkimAttributes } => { +): Record => { return output.reduce((acc: any, pair: any) => { if (pair["value"] === null) { return acc; @@ -8440,7 +8440,7 @@ const deserializeAws_queryListVerifiedEmailAddressesResponse = ( const deserializeAws_queryMailFromDomainAttributes = ( output: any, context: __SerdeContext -): { [key: string]: IdentityMailFromDomainAttributes } => { +): Record => { return output.reduce((acc: any, pair: any) => { if (pair["value"] === null) { return acc; @@ -8495,7 +8495,7 @@ const deserializeAws_queryMissingRenderingAttributeException = ( const deserializeAws_queryNotificationAttributes = ( output: any, context: __SerdeContext -): { [key: string]: IdentityNotificationAttributes } => { +): Record => { return output.reduce((acc: any, pair: any) => { if (pair["value"] === null) { return acc; @@ -8507,7 +8507,7 @@ const deserializeAws_queryNotificationAttributes = ( }, {}); }; -const deserializeAws_queryPolicyMap = (output: any, context: __SerdeContext): { [key: string]: string } => { +const deserializeAws_queryPolicyMap = (output: any, context: __SerdeContext): Record => { return output.reduce((acc: any, pair: any) => { if (pair["value"] === null) { return acc; @@ -9173,7 +9173,7 @@ const deserializeAws_queryUpdateTemplateResponse = (output: any, context: __Serd const deserializeAws_queryVerificationAttributes = ( output: any, context: __SerdeContext -): { [key: string]: IdentityVerificationAttributes } => { +): Record => { return output.reduce((acc: any, pair: any) => { if (pair["value"] === null) { return acc; diff --git a/clients/client-sesv2/src/models/models_0.ts b/clients/client-sesv2/src/models/models_0.ts index f77c6598e409..7559cdda5318 100644 --- a/clients/client-sesv2/src/models/models_0.ts +++ b/clients/client-sesv2/src/models/models_0.ts @@ -3480,7 +3480,7 @@ export interface GetBlacklistReportsResponse { *

An object that contains information about a blacklist that one of your dedicated IP * addresses appears on.

*/ - BlacklistReport: { [key: string]: BlacklistEntry[] } | undefined; + BlacklistReport: Record | undefined; } export namespace GetBlacklistReportsResponse { @@ -4368,7 +4368,7 @@ export interface GetEmailIdentityResponse { /** *

A map of policy names to policies.

*/ - Policies?: { [key: string]: string }; + Policies?: Record; /** *

An array of objects that define the tags (keys and values) that are associated with @@ -4417,7 +4417,7 @@ export interface GetEmailIdentityPoliciesResponse { /** *

A map of policy names to policies.

*/ - Policies?: { [key: string]: string }; + Policies?: Record; } export namespace GetEmailIdentityPoliciesResponse { diff --git a/clients/client-sesv2/src/protocols/Aws_restJson1.ts b/clients/client-sesv2/src/protocols/Aws_restJson1.ts index 7df4c9a854e4..de3a430526ec 100644 --- a/clients/client-sesv2/src/protocols/Aws_restJson1.ts +++ b/clients/client-sesv2/src/protocols/Aws_restJson1.ts @@ -8081,8 +8081,8 @@ const deserializeAws_restJson1BlacklistEntry = (output: any, context: __SerdeCon const deserializeAws_restJson1BlacklistReport = ( output: any, context: __SerdeContext -): { [key: string]: BlacklistEntry[] } => { - return Object.entries(output).reduce((acc: { [key: string]: BlacklistEntry[] }, [key, value]: [string, any]) => { +): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -8765,8 +8765,8 @@ const deserializeAws_restJson1PlacementStatistics = (output: any, context: __Ser } as any; }; -const deserializeAws_restJson1PolicyMap = (output: any, context: __SerdeContext): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +const deserializeAws_restJson1PolicyMap = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } diff --git a/clients/client-signer/src/models/models_0.ts b/clients/client-signer/src/models/models_0.ts index 7aadd8aae9ad..098555eff12a 100644 --- a/clients/client-signer/src/models/models_0.ts +++ b/clients/client-signer/src/models/models_0.ts @@ -519,7 +519,7 @@ export interface DescribeSigningJobResponse { *

Map of user-assigned key-value pairs used during signing. These values contain any * information that you specified for use in your signing job.

*/ - signingParameters?: { [key: string]: string }; + signingParameters?: Record; /** *

Date and time that the signing job was created.

@@ -928,7 +928,7 @@ export interface GetSigningProfileResponse { *

A map of key-value pairs for signing operations that is attached to the target signing * profile.

*/ - signingParameters?: { [key: string]: string }; + signingParameters?: Record; /** *

The status of the target signing profile.

@@ -948,7 +948,7 @@ export interface GetSigningProfileResponse { /** *

A list of tags associated with the signing profile.

*/ - tags?: { [key: string]: string }; + tags?: Record; } export namespace GetSigningProfileResponse { @@ -1424,7 +1424,7 @@ export interface SigningProfile { /** *

The parameters that are available for use by a code signing user.

*/ - signingParameters?: { [key: string]: string }; + signingParameters?: Record; /** *

The status of a code signing profile.

@@ -1439,7 +1439,7 @@ export interface SigningProfile { /** *

A list of tags associated with the signing profile.

*/ - tags?: { [key: string]: string }; + tags?: Record; } export namespace SigningProfile { @@ -1494,7 +1494,7 @@ export interface ListTagsForResourceResponse { /** *

A list of tags associated with the signing profile.

*/ - tags?: { [key: string]: string }; + tags?: Record; } export namespace ListTagsForResourceResponse { @@ -1561,12 +1561,12 @@ export interface PutSigningProfileRequest { *

Map of key-value pairs for signing. These can include any information that you want to * use during signing.

*/ - signingParameters?: { [key: string]: string }; + signingParameters?: Record; /** *

Tags to be associated with the signing profile that is being created.

*/ - tags?: { [key: string]: string }; + tags?: Record; } export namespace PutSigningProfileRequest { @@ -1798,7 +1798,7 @@ export interface TagResourceRequest { /** *

One or more tags to be associated with the signing profile.

*/ - tags: { [key: string]: string } | undefined; + tags: Record | undefined; } export namespace TagResourceRequest { diff --git a/clients/client-signer/src/protocols/Aws_restJson1.ts b/clients/client-signer/src/protocols/Aws_restJson1.ts index 1a0d71a202b8..eb91e6169b8d 100644 --- a/clients/client-signer/src/protocols/Aws_restJson1.ts +++ b/clients/client-signer/src/protocols/Aws_restJson1.ts @@ -2013,7 +2013,7 @@ const serializeAws_restJson1SigningMaterial = (input: SigningMaterial, context: }; }; -const serializeAws_restJson1SigningParameters = (input: { [key: string]: string }, context: __SerdeContext): any => { +const serializeAws_restJson1SigningParameters = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -2045,7 +2045,7 @@ const serializeAws_restJson1Source = (input: Source, context: __SerdeContext): a }; }; -const serializeAws_restJson1TagMap = (input: { [key: string]: string }, context: __SerdeContext): any => { +const serializeAws_restJson1TagMap = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -2273,8 +2273,8 @@ const deserializeAws_restJson1SigningMaterial = (output: any, context: __SerdeCo } as any; }; -const deserializeAws_restJson1SigningParameters = (output: any, context: __SerdeContext): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +const deserializeAws_restJson1SigningParameters = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -2394,8 +2394,8 @@ const deserializeAws_restJson1Source = (output: any, context: __SerdeContext): S } as any; }; -const deserializeAws_restJson1TagMap = (output: any, context: __SerdeContext): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +const deserializeAws_restJson1TagMap = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } diff --git a/clients/client-snow-device-management/src/models/models_0.ts b/clients/client-snow-device-management/src/models/models_0.ts index 502fe4f88b2a..b3207df7ff13 100644 --- a/clients/client-snow-device-management/src/models/models_0.ts +++ b/clients/client-snow-device-management/src/models/models_0.ts @@ -305,7 +305,7 @@ export interface CreateTaskInput { *

Optional metadata that you assign to a resource. You can use tags to categorize a resource * in different ways, such as by purpose, owner, or environment.

*/ - tags?: { [key: string]: string }; + tags?: Record; /** *

A token ensuring that the action is called only once with the specified details.

@@ -496,7 +496,7 @@ export interface DescribeDeviceOutput { *

Optional metadata that you assign to a resource. You can use tags to categorize a resource * in different ways, such as by purpose, owner, or environment.

*/ - tags?: { [key: string]: string }; + tags?: Record; /** *

The ID of the device that you checked the information for.

@@ -990,7 +990,7 @@ export interface DescribeTaskOutput { *

Optional metadata that you assign to a resource. You can use tags to categorize a resource * in different ways, such as by purpose, owner, or environment.

*/ - tags?: { [key: string]: string }; + tags?: Record; } export namespace DescribeTaskOutput { @@ -1025,7 +1025,7 @@ export interface DeviceSummary { *

Optional metadata that you assign to a resource. You can use tags to categorize a resource * in different ways, such as by purpose, owner, or environment.

*/ - tags?: { [key: string]: string }; + tags?: Record; } export namespace DeviceSummary { @@ -1272,7 +1272,7 @@ export interface ListTagsForResourceOutput { /** *

The list of tags for the device or task.

*/ - tags?: { [key: string]: string }; + tags?: Record; } export namespace ListTagsForResourceOutput { @@ -1333,7 +1333,7 @@ export interface TaskSummary { *

Optional metadata that you assign to a resource. You can use tags to categorize a resource * in different ways, such as by purpose, owner, or environment.

*/ - tags?: { [key: string]: string }; + tags?: Record; } export namespace TaskSummary { @@ -1376,7 +1376,7 @@ export interface TagResourceInput { *

Optional metadata that you assign to a resource. You can use tags to categorize a resource * in different ways, such as by purpose, owner, or environment.

*/ - tags: { [key: string]: string } | undefined; + tags: Record | undefined; } export namespace TagResourceInput { diff --git a/clients/client-snow-device-management/src/protocols/Aws_restJson1.ts b/clients/client-snow-device-management/src/protocols/Aws_restJson1.ts index 01565d8be32e..4645118eb690 100644 --- a/clients/client-snow-device-management/src/protocols/Aws_restJson1.ts +++ b/clients/client-snow-device-management/src/protocols/Aws_restJson1.ts @@ -1397,7 +1397,7 @@ const serializeAws_restJson1Reboot = (input: Reboot, context: __SerdeContext): a return {}; }; -const serializeAws_restJson1TagMap = (input: { [key: string]: string }, context: __SerdeContext): any => { +const serializeAws_restJson1TagMap = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -1692,8 +1692,8 @@ const deserializeAws_restJson1SoftwareInformation = (output: any, context: __Ser } as any; }; -const deserializeAws_restJson1TagMap = (output: any, context: __SerdeContext): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +const deserializeAws_restJson1TagMap = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } diff --git a/clients/client-sns/src/models/models_0.ts b/clients/client-sns/src/models/models_0.ts index df8f485f0aae..813ccab0e4d2 100644 --- a/clients/client-sns/src/models/models_0.ts +++ b/clients/client-sns/src/models/models_0.ts @@ -295,7 +295,7 @@ export interface CreatePlatformApplicationInput { /** *

For a list of attributes, see SetPlatformApplicationAttributes.

*/ - Attributes: { [key: string]: string } | undefined; + Attributes: Record | undefined; } export namespace CreatePlatformApplicationInput { @@ -373,7 +373,7 @@ export interface CreatePlatformEndpointInput { /** *

For a list of attributes, see SetEndpointAttributes.

*/ - Attributes?: { [key: string]: string }; + Attributes?: Record; } export namespace CreatePlatformEndpointInput { @@ -604,7 +604,7 @@ export interface CreateTopicInput { * * */ - Attributes?: { [key: string]: string }; + Attributes?: Record; /** *

The list of tags to add to a new topic.

@@ -895,7 +895,7 @@ export interface GetEndpointAttributesResponse { * * */ - Attributes?: { [key: string]: string }; + Attributes?: Record; } export namespace GetEndpointAttributesResponse { @@ -968,7 +968,7 @@ export interface GetPlatformApplicationAttributesResponse { * * */ - Attributes?: { [key: string]: string }; + Attributes?: Record; } export namespace GetPlatformApplicationAttributesResponse { @@ -1009,7 +1009,7 @@ export interface GetSMSAttributesResponse { /** *

The SMS attribute names and their values.

*/ - attributes?: { [key: string]: string }; + attributes?: Record; } export namespace GetSMSAttributesResponse { @@ -1151,7 +1151,7 @@ export interface GetSubscriptionAttributesResponse { * * */ - Attributes?: { [key: string]: string }; + Attributes?: Record; } export namespace GetSubscriptionAttributesResponse { @@ -1278,7 +1278,7 @@ export interface GetTopicAttributesResponse { * * */ - Attributes?: { [key: string]: string }; + Attributes?: Record; } export namespace GetTopicAttributesResponse { @@ -1327,7 +1327,7 @@ export interface Endpoint { /** *

Attributes for endpoint.

*/ - Attributes?: { [key: string]: string }; + Attributes?: Record; } export namespace Endpoint { @@ -1565,7 +1565,7 @@ export interface PlatformApplication { /** *

Attributes for platform application object.

*/ - Attributes?: { [key: string]: string }; + Attributes?: Record; } export namespace PlatformApplication { @@ -2290,7 +2290,7 @@ export interface PublishInput { /** *

Message attributes for Publish action.

*/ - MessageAttributes?: { [key: string]: MessageAttributeValue }; + MessageAttributes?: Record; /** *

This parameter applies only to FIFO (first-in-first-out) topics. The @@ -2476,7 +2476,7 @@ export interface PublishBatchRequestEntry { /** *

Each message attribute consists of a Name, Type, and Value. For more information, see Amazon SNS message attributes in the Amazon SNS Developer Guide.

*/ - MessageAttributes?: { [key: string]: MessageAttributeValue }; + MessageAttributes?: Record; /** *

This parameter applies only to FIFO (first-in-first-out) topics.

@@ -2731,7 +2731,7 @@ export interface SetEndpointAttributesInput { * * */ - Attributes: { [key: string]: string } | undefined; + Attributes: Record | undefined; } export namespace SetEndpointAttributesInput { @@ -2846,7 +2846,7 @@ export interface SetPlatformApplicationAttributesInput { * * */ - Attributes: { [key: string]: string } | undefined; + Attributes: Record | undefined; } export namespace SetPlatformApplicationAttributesInput { @@ -2949,7 +2949,7 @@ export interface SetSMSAttributesInput { *

For an example bucket policy and usage report, see Monitoring SMS Activity in the * Amazon SNS Developer Guide.

*/ - attributes: { [key: string]: string } | undefined; + attributes: Record | undefined; } export namespace SetSMSAttributesInput { @@ -3294,7 +3294,7 @@ export interface SubscribeInput { * * */ - Attributes?: { [key: string]: string }; + Attributes?: Record; /** *

Sets whether the response from the Subscribe request includes the diff --git a/clients/client-sns/src/protocols/Aws_query.ts b/clients/client-sns/src/protocols/Aws_query.ts index 7ac5f5ef8f15..6c87791963fc 100644 --- a/clients/client-sns/src/protocols/Aws_query.ts +++ b/clients/client-sns/src/protocols/Aws_query.ts @@ -3879,7 +3879,7 @@ const serializeAws_queryListTopicsInput = (input: ListTopicsInput, context: __Se return entries; }; -const serializeAws_queryMapStringToString = (input: { [key: string]: string }, context: __SerdeContext): any => { +const serializeAws_queryMapStringToString = (input: Record, context: __SerdeContext): any => { const entries: any = {}; let counter = 1; Object.keys(input) @@ -3893,7 +3893,7 @@ const serializeAws_queryMapStringToString = (input: { [key: string]: string }, c }; const serializeAws_queryMessageAttributeMap = ( - input: { [key: string]: MessageAttributeValue }, + input: Record, context: __SerdeContext ): any => { const entries: any = {}; @@ -4147,10 +4147,7 @@ const serializeAws_querySubscribeInput = (input: SubscribeInput, context: __Serd return entries; }; -const serializeAws_querySubscriptionAttributesMap = ( - input: { [key: string]: string }, - context: __SerdeContext -): any => { +const serializeAws_querySubscriptionAttributesMap = (input: Record, context: __SerdeContext): any => { const entries: any = {}; let counter = 1; Object.keys(input) @@ -4218,7 +4215,7 @@ const serializeAws_queryTagResourceRequest = (input: TagResourceRequest, context return entries; }; -const serializeAws_queryTopicAttributesMap = (input: { [key: string]: string }, context: __SerdeContext): any => { +const serializeAws_queryTopicAttributesMap = (input: Record, context: __SerdeContext): any => { const entries: any = {}; let counter = 1; Object.keys(input) @@ -4945,7 +4942,7 @@ const deserializeAws_queryListTopicsResponse = (output: any, context: __SerdeCon return contents; }; -const deserializeAws_queryMapStringToString = (output: any, context: __SerdeContext): { [key: string]: string } => { +const deserializeAws_queryMapStringToString = (output: any, context: __SerdeContext): Record => { return output.reduce((acc: any, pair: any) => { if (pair["value"] === null) { return acc; @@ -5263,7 +5260,7 @@ const deserializeAws_querySubscription = (output: any, context: __SerdeContext): const deserializeAws_querySubscriptionAttributesMap = ( output: any, context: __SerdeContext -): { [key: string]: string } => { +): Record => { return output.reduce((acc: any, pair: any) => { if (pair["value"] === null) { return acc; @@ -5385,7 +5382,7 @@ const deserializeAws_queryTopic = (output: any, context: __SerdeContext): Topic return contents; }; -const deserializeAws_queryTopicAttributesMap = (output: any, context: __SerdeContext): { [key: string]: string } => { +const deserializeAws_queryTopicAttributesMap = (output: any, context: __SerdeContext): Record => { return output.reduce((acc: any, pair: any) => { if (pair["value"] === null) { return acc; diff --git a/clients/client-sqs/src/models/models_0.ts b/clients/client-sqs/src/models/models_0.ts index f397940ecb3a..582d7599fc21 100644 --- a/clients/client-sqs/src/models/models_0.ts +++ b/clients/client-sqs/src/models/models_0.ts @@ -444,7 +444,7 @@ export interface CreateQueueRequest { * cross-account permissions to a role and a user name in the Amazon SQS Developer Guide.

* */ - tags?: { [key: string]: string }; + tags?: Record; /** *

A map of attributes with their corresponding values.

@@ -611,7 +611,7 @@ export interface CreateQueueRequest { * see Quotas related to messages * in the Amazon SQS Developer Guide.

*/ - Attributes?: { [key: string]: string }; + Attributes?: Record; } export namespace CreateQueueRequest { @@ -1053,7 +1053,7 @@ export interface GetQueueAttributesResult { /** *

A map of attributes to their respective values.

*/ - Attributes?: { [key: string]: string }; + Attributes?: Record; } export namespace GetQueueAttributesResult { @@ -1279,7 +1279,7 @@ export interface ListQueueTagsResult { /** *

The list of all tags added to the specified queue.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; } export namespace ListQueueTagsResult { @@ -1635,7 +1635,7 @@ export interface Message { * ApproximateFirstReceiveTimestamp and SentTimestamp are each returned as an integer representing the * epoch time in milliseconds.

*/ - Attributes?: { [key: string]: string }; + Attributes?: Record; /** *

An MD5 digest of the non-URL-encoded message attribute string. You can use this attribute to verify that Amazon SQS received the message correctly. Amazon SQS URL-decodes the message before creating the MD5 digest. For information about MD5, see RFC1321.

@@ -1648,7 +1648,7 @@ export interface Message { * Amazon SQS * message attributes in the Amazon SQS Developer Guide.

*/ - MessageAttributes?: { [key: string]: MessageAttributeValue }; + MessageAttributes?: Record; } export namespace Message { @@ -1810,7 +1810,7 @@ export interface SendMessageRequest { * Amazon SQS * message attributes in the Amazon SQS Developer Guide.

*/ - MessageAttributes?: { [key: string]: MessageAttributeValue }; + MessageAttributes?: Record; /** *

The message system attribute to send. Each message system attribute consists of a Name, Type, and Value.

@@ -1827,7 +1827,7 @@ export interface SendMessageRequest { * * */ - MessageSystemAttributes?: { [key: string]: MessageSystemAttributeValue }; + MessageSystemAttributes?: Record; /** *

This parameter applies only to FIFO (first-in-first-out) queues.

@@ -2036,7 +2036,7 @@ export interface SendMessageBatchRequestEntry { * Amazon SQS * message attributes in the Amazon SQS Developer Guide.

*/ - MessageAttributes?: { [key: string]: MessageAttributeValue }; + MessageAttributes?: Record; /** *

The message system attribute to send Each message system attribute consists of a Name, Type, and Value.

@@ -2053,7 +2053,7 @@ export interface SendMessageBatchRequestEntry { * * */ - MessageSystemAttributes?: { [key: string]: MessageSystemAttributeValue }; + MessageSystemAttributes?: Record; /** *

This parameter applies only to FIFO (first-in-first-out) queues.

@@ -2422,7 +2422,7 @@ export interface SetQueueAttributesRequest { * see Quotas related to messages * in the Amazon SQS Developer Guide.

*/ - Attributes: { [key: string]: string } | undefined; + Attributes: Record | undefined; } export namespace SetQueueAttributesRequest { @@ -2443,7 +2443,7 @@ export interface TagQueueRequest { /** *

The list of tags to be added to the specified queue.

*/ - Tags: { [key: string]: string } | undefined; + Tags: Record | undefined; } export namespace TagQueueRequest { diff --git a/clients/client-sqs/src/protocols/Aws_query.ts b/clients/client-sqs/src/protocols/Aws_query.ts index 3d81f49cb96e..15394071f5a6 100644 --- a/clients/client-sqs/src/protocols/Aws_query.ts +++ b/clients/client-sqs/src/protocols/Aws_query.ts @@ -1849,7 +1849,7 @@ const serializeAws_queryMessageAttributeValue = (input: MessageAttributeValue, c }; const serializeAws_queryMessageBodyAttributeMap = ( - input: { [key: string]: MessageAttributeValue }, + input: Record, context: __SerdeContext ): any => { const entries: any = {}; @@ -1868,7 +1868,7 @@ const serializeAws_queryMessageBodyAttributeMap = ( }; const serializeAws_queryMessageBodySystemAttributeMap = ( - input: { [key: string]: MessageSystemAttributeValue }, + input: Record, context: __SerdeContext ): any => { const entries: any = {}; @@ -1925,7 +1925,7 @@ const serializeAws_queryPurgeQueueRequest = (input: PurgeQueueRequest, context: return entries; }; -const serializeAws_queryQueueAttributeMap = (input: { [key: string]: string }, context: __SerdeContext): any => { +const serializeAws_queryQueueAttributeMap = (input: Record, context: __SerdeContext): any => { const entries: any = {}; let counter = 1; Object.keys(input) @@ -2132,7 +2132,7 @@ const serializeAws_queryTagKeyList = (input: string[], context: __SerdeContext): return entries; }; -const serializeAws_queryTagMap = (input: { [key: string]: string }, context: __SerdeContext): any => { +const serializeAws_queryTagMap = (input: Record, context: __SerdeContext): any => { const entries: any = {}; let counter = 1; Object.keys(input) @@ -2545,7 +2545,7 @@ const deserializeAws_queryMessageAttributeValue = (output: any, context: __Serde const deserializeAws_queryMessageBodyAttributeMap = ( output: any, context: __SerdeContext -): { [key: string]: MessageAttributeValue } => { +): Record => { return output.reduce((acc: any, pair: any) => { if (pair["Value"] === null) { return acc; @@ -2576,7 +2576,7 @@ const deserializeAws_queryMessageNotInflight = (output: any, context: __SerdeCon const deserializeAws_queryMessageSystemAttributeMap = ( output: any, context: __SerdeContext -): { [key: string]: string } => { +): Record => { return output.reduce((acc: any, pair: any) => { if (pair["Value"] === null) { return acc; @@ -2598,7 +2598,7 @@ const deserializeAws_queryPurgeQueueInProgress = (output: any, context: __SerdeC return contents; }; -const deserializeAws_queryQueueAttributeMap = (output: any, context: __SerdeContext): { [key: string]: string } => { +const deserializeAws_queryQueueAttributeMap = (output: any, context: __SerdeContext): Record => { return output.reduce((acc: any, pair: any) => { if (pair["Value"] === null) { return acc; @@ -2764,7 +2764,7 @@ const deserializeAws_queryStringList = (output: any, context: __SerdeContext): s }); }; -const deserializeAws_queryTagMap = (output: any, context: __SerdeContext): { [key: string]: string } => { +const deserializeAws_queryTagMap = (output: any, context: __SerdeContext): Record => { return output.reduce((acc: any, pair: any) => { if (pair["Value"] === null) { return acc; diff --git a/clients/client-ssm-incidents/src/models/models_0.ts b/clients/client-ssm-incidents/src/models/models_0.ts index 3a681ad3ede5..9cb88317a129 100644 --- a/clients/client-ssm-incidents/src/models/models_0.ts +++ b/clients/client-ssm-incidents/src/models/models_0.ts @@ -102,12 +102,12 @@ export interface SsmAutomation { /** *

The key-value pair parameters to use when running the automation document.

*/ - parameters?: { [key: string]: string[] }; + parameters?: Record; /** *

The key-value pair to resolve dynamic parameter values when processing a Systems Manager Automation runbook.

*/ - dynamicParameters?: { [key: string]: DynamicSsmParameterValue }; + dynamicParameters?: Record; } export namespace SsmAutomation { @@ -501,7 +501,7 @@ export interface CreateReplicationSetInput { *

The Regions that Incident Manager replicates your data to. You can have up to three Regions * in your replication set.

*/ - regions: { [key: string]: RegionMapInputValue } | undefined; + regions: Record | undefined; /** *

A token ensuring that the operation is called only once with the specified @@ -779,7 +779,7 @@ export interface CreateResponsePlanInput { /** *

A list of tags that you are adding to the response plan.

*/ - tags?: { [key: string]: string }; + tags?: Record; } export namespace CreateResponsePlanInput { @@ -1408,7 +1408,7 @@ export interface ReplicationSet { /** *

The map between each Amazon Web Services Region in your replication set and the KMS key that's used to encrypt the data in that Region.

*/ - regionMap: { [key: string]: RegionInfo } | undefined; + regionMap: Record | undefined; /** *

The status of the replication set. If the replication set is still pending, you can't @@ -2149,7 +2149,7 @@ export interface ListTagsForResourceResponse { /** *

A list of tags for the response plan.

*/ - tags: { [key: string]: string } | undefined; + tags: Record | undefined; } export namespace ListTagsForResourceResponse { @@ -2494,7 +2494,7 @@ export interface TagResourceRequest { /** *

A list of tags that you are adding to the response plan.

*/ - tags: { [key: string]: string } | undefined; + tags: Record | undefined; } export namespace TagResourceRequest { diff --git a/clients/client-ssm-incidents/src/protocols/Aws_restJson1.ts b/clients/client-ssm-incidents/src/protocols/Aws_restJson1.ts index d6e97791f9dd..d451d1f92f8f 100644 --- a/clients/client-ssm-incidents/src/protocols/Aws_restJson1.ts +++ b/clients/client-ssm-incidents/src/protocols/Aws_restJson1.ts @@ -2811,7 +2811,7 @@ const serializeAws_restJson1DeleteRegionAction = (input: DeleteRegionAction, con }; const serializeAws_restJson1DynamicSsmParameters = ( - input: { [key: string]: DynamicSsmParameterValue }, + input: Record, context: __SerdeContext ): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { @@ -2929,7 +2929,7 @@ const serializeAws_restJson1NotificationTargetSet = (input: NotificationTargetIt }; const serializeAws_restJson1RegionMapInput = ( - input: { [key: string]: RegionMapInputValue }, + input: Record, context: __SerdeContext ): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { @@ -2992,7 +2992,7 @@ const serializeAws_restJson1SsmAutomation = (input: SsmAutomation, context: __Se }; }; -const serializeAws_restJson1SsmParameters = (input: { [key: string]: string[] }, context: __SerdeContext): any => { +const serializeAws_restJson1SsmParameters = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -3026,7 +3026,7 @@ const serializeAws_restJson1StringList = (input: string[], context: __SerdeConte }); }; -const serializeAws_restJson1TagMap = (input: { [key: string]: string }, context: __SerdeContext): any => { +const serializeAws_restJson1TagMap = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -3142,19 +3142,16 @@ const deserializeAws_restJson1ChatChannel = (output: any, context: __SerdeContex const deserializeAws_restJson1DynamicSsmParameters = ( output: any, context: __SerdeContext -): { [key: string]: DynamicSsmParameterValue } => { - return Object.entries(output).reduce( - (acc: { [key: string]: DynamicSsmParameterValue }, [key, value]: [string, any]) => { - if (value === null) { - return acc; - } - return { - ...acc, - [key]: deserializeAws_restJson1DynamicSsmParameterValue(__expectUnion(value), context), - }; - }, - {} - ); +): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { + if (value === null) { + return acc; + } + return { + ...acc, + [key]: deserializeAws_restJson1DynamicSsmParameterValue(__expectUnion(value), context), + }; + }, {}); }; const deserializeAws_restJson1DynamicSsmParameterValue = ( @@ -3369,8 +3366,8 @@ const deserializeAws_restJson1RegionInfo = (output: any, context: __SerdeContext } as any; }; -const deserializeAws_restJson1RegionInfoMap = (output: any, context: __SerdeContext): { [key: string]: RegionInfo } => { - return Object.entries(output).reduce((acc: { [key: string]: RegionInfo }, [key, value]: [string, any]) => { +const deserializeAws_restJson1RegionInfoMap = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -3497,8 +3494,8 @@ const deserializeAws_restJson1SsmAutomation = (output: any, context: __SerdeCont } as any; }; -const deserializeAws_restJson1SsmParameters = (output: any, context: __SerdeContext): { [key: string]: string[] } => { - return Object.entries(output).reduce((acc: { [key: string]: string[] }, [key, value]: [string, any]) => { +const deserializeAws_restJson1SsmParameters = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -3521,8 +3518,8 @@ const deserializeAws_restJson1SsmParameterValues = (output: any, context: __Serd return retVal; }; -const deserializeAws_restJson1TagMap = (output: any, context: __SerdeContext): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +const deserializeAws_restJson1TagMap = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } diff --git a/clients/client-ssm/src/models/models_0.ts b/clients/client-ssm/src/models/models_0.ts index a5f55fb638c7..41967e64707f 100644 --- a/clients/client-ssm/src/models/models_0.ts +++ b/clients/client-ssm/src/models/models_0.ts @@ -1131,7 +1131,7 @@ export interface CreateAssociationRequest { /** *

The parameters for the runtime configuration of the document.

*/ - Parameters?: { [key: string]: string[] }; + Parameters?: Record; /** *

The targets for the association. You can target managed nodes by using tags, Amazon Web Services resource @@ -1249,7 +1249,7 @@ export interface CreateAssociationRequest { *

A key-value mapping of document parameters to target resources. Both Targets and TargetMaps * can't be specified together.

*/ - TargetMaps?: { [key: string]: string[] }[]; + TargetMaps?: Record[]; } export namespace CreateAssociationRequest { @@ -1281,7 +1281,7 @@ export interface AssociationOverview { * association with two managed nodes, and one of them was successful, this would return the count * of managed nodes by status.

*/ - AssociationStatusAggregatedCount?: { [key: string]: number }; + AssociationStatusAggregatedCount?: Record; } export namespace AssociationOverview { @@ -1387,7 +1387,7 @@ export interface AssociationDescription { /** *

A description of the parameters for a document.

*/ - Parameters?: { [key: string]: string[] }; + Parameters?: Record; /** *

The association ID.

@@ -1500,7 +1500,7 @@ export interface AssociationDescription { *

A key-value mapping of document parameters to target resources. Both Targets and TargetMaps * can't be specified together.

*/ - TargetMaps?: { [key: string]: string[] }[]; + TargetMaps?: Record[]; } export namespace AssociationDescription { @@ -1727,7 +1727,7 @@ export interface CreateAssociationBatchRequestEntry { /** *

A description of the parameters for a document.

*/ - Parameters?: { [key: string]: string[] }; + Parameters?: Record; /** *

Specify the target for the association. This target is required for associations that use an @@ -1836,7 +1836,7 @@ export interface CreateAssociationBatchRequestEntry { *

A key-value mapping of document parameters to target resources. Both Targets and TargetMaps * can't be specified together.

*/ - TargetMaps?: { [key: string]: string[] }[]; + TargetMaps?: Record[]; } export namespace CreateAssociationBatchRequestEntry { @@ -2878,7 +2878,7 @@ export interface CreateOpsItemRequest { * Automation runbook with the OpsItem. To view Amazon Web Services CLI example commands that use these keys, see * Creating OpsItems manually in the Amazon Web Services Systems Manager User Guide.

*/ - OperationalData?: { [key: string]: OpsItemDataValue }; + OperationalData?: Record; /** *

The Amazon Resource Name (ARN) of an SNS topic where notifications are sent when this @@ -3039,7 +3039,7 @@ export interface CreateOpsMetadataRequest { /** *

Metadata for a new Application Manager application.

*/ - Metadata?: { [key: string]: MetadataValue }; + Metadata?: Record; /** *

Optional metadata that you assign to a resource. You can specify a maximum of five tags for @@ -5411,7 +5411,7 @@ export interface Runbook { *

The key-value map of execution parameters, which were supplied when calling * StartChangeRequestExecution.

*/ - Parameters?: { [key: string]: string[] }; + Parameters?: Record; /** *

The name of the parameter used as the target resource for the rate-controlled @@ -5429,7 +5429,7 @@ export interface Runbook { *

A key-value mapping of runbook parameters to target resources. Both Targets and TargetMaps * can't be specified together.

*/ - TargetMaps?: { [key: string]: string[] }[]; + TargetMaps?: Record[]; /** *

The MaxConcurrency value specified by the user when the operation started, @@ -5509,7 +5509,7 @@ export interface AutomationExecutionMetadata { /** *

The list of execution outputs as defined in the Automation runbook.

*/ - Outputs?: { [key: string]: string[] }; + Outputs?: Record; /** *

The Automation execution mode.

@@ -5549,7 +5549,7 @@ export interface AutomationExecutionMetadata { /** *

The specified key-value mapping of document parameters to target resources.

*/ - TargetMaps?: { [key: string]: string[] }[]; + TargetMaps?: Record[]; /** *

A list of targets that resolved during the execution.

@@ -5803,7 +5803,7 @@ export interface FailureDetails { /** *

Detailed information about the Automation step failure.

*/ - Details?: { [key: string]: string[] }; + Details?: Record; } export namespace FailureDetails { @@ -5870,12 +5870,12 @@ export interface StepExecution { /** *

Fully-resolved values passed into the step before execution.

*/ - Inputs?: { [key: string]: string }; + Inputs?: Record; /** *

Returned values from the execution of the step.

*/ - Outputs?: { [key: string]: string[] }; + Outputs?: Record; /** *

A message associated with the response code for an execution.

@@ -5900,7 +5900,7 @@ export interface StepExecution { /** *

A user-specified list of parameters to override when running a step.

*/ - OverriddenParameters?: { [key: string]: string[] }; + OverriddenParameters?: Record; /** *

The flag which can be used to end automation no matter whether the step succeeds or @@ -7045,7 +7045,7 @@ export interface InstanceAggregatedAssociationOverview { /** *

The number of associations for the managed node(s).

*/ - InstanceAssociationStatusAggregatedCount?: { [key: string]: number }; + InstanceAssociationStatusAggregatedCount?: Record; } export namespace InstanceAggregatedAssociationOverview { @@ -9010,7 +9010,7 @@ export interface MaintenanceWindowTask { * types, see MaintenanceWindowTaskInvocationParameters.

* */ - TaskParameters?: { [key: string]: MaintenanceWindowTaskParameterValueExpression }; + TaskParameters?: Record; /** *

The priority of the task in the maintenance window. The lower the number, the higher the @@ -9343,7 +9343,7 @@ export interface OpsItemSummary { *

Operational data is custom data that provides useful reference details about the OpsItem. *

*/ - OperationalData?: { [key: string]: OpsItemDataValue }; + OperationalData?: Record; /** *

A list of OpsItems by category.

diff --git a/clients/client-ssm/src/models/models_1.ts b/clients/client-ssm/src/models/models_1.ts index 6438ee873af8..4c190f7fcb2c 100644 --- a/clients/client-ssm/src/models/models_1.ts +++ b/clients/client-ssm/src/models/models_1.ts @@ -569,7 +569,7 @@ export interface DescribePatchPropertiesResult { /** *

A list of the properties for patches matching the filter request parameters.

*/ - Properties?: { [key: string]: string }[]; + Properties?: Record[]; /** *

The token for the next set of items to return. (You use this token in the next call.)

@@ -995,12 +995,12 @@ export interface AutomationExecution { /** *

The key-value map of execution parameters, which were supplied when calling StartAutomationExecution.

*/ - Parameters?: { [key: string]: string[] }; + Parameters?: Record; /** *

The list of execution outputs as defined in the Automation runbook.

*/ - Outputs?: { [key: string]: string[] }; + Outputs?: Record; /** *

A message describing why an execution has failed, if the status is set to Failed.

@@ -1045,7 +1045,7 @@ export interface AutomationExecution { /** *

The specified key-value mapping of document parameters to target resources.

*/ - TargetMaps?: { [key: string]: string[] }[]; + TargetMaps?: Record[]; /** *

A list of resolved targets in the rate control execution.

@@ -2057,7 +2057,7 @@ export interface InventoryResultItem { *

Contains all the inventory data of the item type. Results include attribute names and * values.

*/ - Content: { [key: string]: string }[] | undefined; + Content: Record[] | undefined; } export namespace InventoryResultItem { @@ -2082,7 +2082,7 @@ export interface InventoryResultEntity { /** *

The data section in the inventory result entity JSON.

*/ - Data?: { [key: string]: InventoryResultItem }; + Data?: Record; } export namespace InventoryResultEntity { @@ -2552,7 +2552,7 @@ export interface GetMaintenanceWindowExecutionTaskResult { * * */ - TaskParameters?: { [key: string]: MaintenanceWindowTaskParameterValueExpression }[]; + TaskParameters?: Record[]; /** *

The priority of the task.

@@ -2751,7 +2751,7 @@ export interface MaintenanceWindowAutomationParameters { * parameters.

* */ - Parameters?: { [key: string]: string[] }; + Parameters?: Record; } export namespace MaintenanceWindowAutomationParameters { @@ -2950,7 +2950,7 @@ export interface MaintenanceWindowRunCommandParameters { /** *

The parameters for the RUN_COMMAND task execution.

*/ - Parameters?: { [key: string]: string[] }; + Parameters?: Record; /** *

The Amazon Resource Name (ARN) of the Identity and Access Management (IAM) service role to use to publish Amazon Simple Notification Service @@ -3100,7 +3100,7 @@ export interface GetMaintenanceWindowTaskResult { * types, see MaintenanceWindowTaskInvocationParameters.

* */ - TaskParameters?: { [key: string]: MaintenanceWindowTaskParameterValueExpression }; + TaskParameters?: Record; /** *

The parameters to pass to the task when it runs.

@@ -3313,7 +3313,7 @@ export interface OpsItem { * Automation runbook with the OpsItem. To view Amazon Web Services CLI example commands that use these keys, see * Creating OpsItems manually in the Amazon Web Services Systems Manager User Guide.

*/ - OperationalData?: { [key: string]: OpsItemDataValue }; + OperationalData?: Record; /** *

An OpsItem category. Category options include: Availability, Cost, Performance, Recovery, @@ -3412,7 +3412,7 @@ export interface GetOpsMetadataResult { /** *

OpsMetadata for an Application Manager application.

*/ - Metadata?: { [key: string]: MetadataValue }; + Metadata?: Record; /** *

The token for the next set of items to return. Use this token to get the next set of @@ -3501,7 +3501,7 @@ export interface OpsEntityItem { /** *

The details of an OpsData summary.

*/ - Content?: { [key: string]: string }[]; + Content?: Record[]; } export namespace OpsEntityItem { @@ -3525,7 +3525,7 @@ export interface OpsEntity { /** *

The data returned by the query.

*/ - Data?: { [key: string]: OpsEntityItem }; + Data?: Record; } export namespace OpsEntity { @@ -4533,7 +4533,7 @@ export interface Association { *

A key-value mapping of document parameters to target resources. Both Targets and TargetMaps * can't be specified together.

*/ - TargetMaps?: { [key: string]: string[] }[]; + TargetMaps?: Record[]; } export namespace Association { @@ -4627,7 +4627,7 @@ export interface AssociationVersionInfo { /** *

Parameters specified when the association version was created.

*/ - Parameters?: { [key: string]: string[] }; + Parameters?: Record; /** *

The targets specified for the association when the association version was created.

@@ -4728,7 +4728,7 @@ export interface AssociationVersionInfo { *

A key-value mapping of document parameters to target resources. Both Targets and TargetMaps * can't be specified together.

*/ - TargetMaps?: { [key: string]: string[] }[]; + TargetMaps?: Record[]; } export namespace AssociationVersionInfo { @@ -5456,7 +5456,7 @@ export interface Command { /** *

The parameter values to be inserted in the document when running the command.

*/ - Parameters?: { [key: string]: string[] }; + Parameters?: Record; /** *

The managed node IDs against which this command was requested.

@@ -5825,7 +5825,7 @@ export interface ComplianceItem { /** *

A "Key": "Value" tag combination for the compliance item.

*/ - Details?: { [key: string]: string }; + Details?: Record; } export namespace ComplianceItem { @@ -6734,7 +6734,7 @@ export interface ListInventoryEntriesResult { /** *

A list of inventory items on the managed node(s).

*/ - Entries?: { [key: string]: string }[]; + Entries?: Record[]; /** *

The token to use when requesting the next set of items. If there are no additional items to @@ -7696,7 +7696,7 @@ export interface ComplianceItemEntry { /** *

A "Key": "Value" tag combination for the compliance item.

*/ - Details?: { [key: string]: string }; + Details?: Record; } export namespace ComplianceItemEntry { @@ -7908,14 +7908,14 @@ export interface InventoryItem { /** *

The inventory data of the inventory type.

*/ - Content?: { [key: string]: string }[]; + Content?: Record[]; /** *

A map of associated properties for a specified inventory type. For example, with this * attribute, you can specify the ExecutionId, ExecutionType, * ComplianceType properties of the AWS:ComplianceItem type.

*/ - Context?: { [key: string]: string }; + Context?: Record; } export namespace InventoryItem { @@ -8849,7 +8849,7 @@ export interface RegisterTaskWithMaintenanceWindowRequest { * types, see MaintenanceWindowTaskInvocationParameters.

* */ - TaskParameters?: { [key: string]: MaintenanceWindowTaskParameterValueExpression }; + TaskParameters?: Record; /** *

The parameters that the task should use during execution. Populate only the fields that @@ -9249,7 +9249,7 @@ export interface SendAutomationSignalRequest { * StepExecutionId="97fff367-fc5a-4299-aed8-0123456789ab" *

*/ - Payload?: { [key: string]: string[] }; + Payload?: Record; } export namespace SendAutomationSignalRequest { @@ -9417,7 +9417,7 @@ export interface SendCommandRequest { /** *

The required and optional parameters specified in the document being run.

*/ - Parameters?: { [key: string]: string[] }; + Parameters?: Record; /** *

(Deprecated) You can no longer specify this parameter. The system ignores it. Instead, Systems Manager @@ -9651,7 +9651,7 @@ export interface StartAutomationExecutionRequest { *

A key-value map of execution parameters, which match the declared parameters in the * Automation runbook.

*/ - Parameters?: { [key: string]: string[] }; + Parameters?: Record; /** *

User-provided idempotency token. The token must be unique, is case insensitive, enforces the @@ -9680,7 +9680,7 @@ export interface StartAutomationExecutionRequest { *

A key-value mapping of document parameters to target resources. Both Targets and TargetMaps * can't be specified together.

*/ - TargetMaps?: { [key: string]: string[] }[]; + TargetMaps?: Record[]; /** *

The maximum number of targets allowed to run this task in parallel. You can specify a @@ -9808,7 +9808,7 @@ export interface StartChangeRequestExecutionRequest { *

A key-value map of parameters that match the declared parameters in the change template * document.

*/ - Parameters?: { [key: string]: string[] }; + Parameters?: Record; /** *

The name of the change request associated with the runbook workflow to be run.

@@ -9929,7 +9929,7 @@ export interface StartSessionRequest { *

The values you want to specify for the parameters defined in the Session * document.

*/ - Parameters?: { [key: string]: string[] }; + Parameters?: Record; } export namespace StartSessionRequest { @@ -10196,7 +10196,7 @@ export interface UpdateAssociationRequest { * Parameter Store, a capability of Amazon Web Services Systems Manager, you can reference the parameter using * {{ssm:parameter-name}}.

*/ - Parameters?: { [key: string]: string[] }; + Parameters?: Record; /** *

The document version you want update for the association.

@@ -10362,7 +10362,7 @@ export interface UpdateAssociationRequest { *

A key-value mapping of document parameters to target resources. Both Targets and TargetMaps * can't be specified together.

*/ - TargetMaps?: { [key: string]: string[] }[]; + TargetMaps?: Record[]; } export namespace UpdateAssociationRequest { diff --git a/clients/client-ssm/src/models/models_2.ts b/clients/client-ssm/src/models/models_2.ts index 741f7cdcd6d1..e886ecd2ca6d 100644 --- a/clients/client-ssm/src/models/models_2.ts +++ b/clients/client-ssm/src/models/models_2.ts @@ -402,7 +402,7 @@ export interface UpdateMaintenanceWindowTaskRequest { *

Key: string, between 1 and 255 characters

*

Value: an array of strings, each string is between 1 and 255 characters

*/ - TaskParameters?: { [key: string]: MaintenanceWindowTaskParameterValueExpression }; + TaskParameters?: Record; /** *

The parameters that the task should use during execution. Populate only the fields that @@ -566,7 +566,7 @@ export interface UpdateMaintenanceWindowTaskResult { * types, see MaintenanceWindowTaskInvocationParameters.

* */ - TaskParameters?: { [key: string]: MaintenanceWindowTaskParameterValueExpression }; + TaskParameters?: Record; /** *

The updated parameter values.

@@ -694,7 +694,7 @@ export interface UpdateOpsItemRequest { * Automation runbook with the OpsItem. To view Amazon Web Services CLI example commands that use these keys, see * Creating OpsItems manually in the Amazon Web Services Systems Manager User Guide.

*/ - OperationalData?: { [key: string]: OpsItemDataValue }; + OperationalData?: Record; /** *

Keys that you want to remove from the OperationalData map.

@@ -819,7 +819,7 @@ export interface UpdateOpsMetadataRequest { /** *

Metadata to add to an OpsMetadata object.

*/ - MetadataToUpdate?: { [key: string]: MetadataValue }; + MetadataToUpdate?: Record; /** *

The metadata keys to delete from the OpsMetadata object.

@@ -1274,7 +1274,7 @@ export interface OpsAggregator { /** *

The aggregator value.

*/ - Values?: { [key: string]: string }; + Values?: Record; /** *

The aggregator filters.

diff --git a/clients/client-ssm/src/protocols/Aws_json1_1.ts b/clients/client-ssm/src/protocols/Aws_json1_1.ts index 5728775f02d7..2850236d4bf0 100644 --- a/clients/client-ssm/src/protocols/Aws_json1_1.ts +++ b/clients/client-ssm/src/protocols/Aws_json1_1.ts @@ -11432,10 +11432,7 @@ const serializeAws_json1_1AutomationExecutionFilterValueList = (input: string[], }); }; -const serializeAws_json1_1AutomationParameterMap = ( - input: { [key: string]: string[] }, - context: __SerdeContext -): any => { +const serializeAws_json1_1AutomationParameterMap = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -11561,7 +11558,7 @@ const serializeAws_json1_1ComplianceExecutionSummary = ( }; }; -const serializeAws_json1_1ComplianceItemDetails = (input: { [key: string]: string }, context: __SerdeContext): any => { +const serializeAws_json1_1ComplianceItemDetails = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -13091,7 +13088,7 @@ const serializeAws_json1_1InventoryItem = (input: InventoryItem, context: __Serd }; const serializeAws_json1_1InventoryItemContentContext = ( - input: { [key: string]: string }, + input: Record, context: __SerdeContext ): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { @@ -13105,7 +13102,7 @@ const serializeAws_json1_1InventoryItemContentContext = ( }, {}); }; -const serializeAws_json1_1InventoryItemEntry = (input: { [key: string]: string }, context: __SerdeContext): any => { +const serializeAws_json1_1InventoryItemEntry = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -13117,10 +13114,7 @@ const serializeAws_json1_1InventoryItemEntry = (input: { [key: string]: string } }, {}); }; -const serializeAws_json1_1InventoryItemEntryList = ( - input: { [key: string]: string }[], - context: __SerdeContext -): any => { +const serializeAws_json1_1InventoryItemEntryList = (input: Record[], context: __SerdeContext): any => { return input .filter((e: any) => e != null) .map((entry) => { @@ -13498,7 +13492,7 @@ const serializeAws_json1_1MaintenanceWindowTaskInvocationParameters = ( }; const serializeAws_json1_1MaintenanceWindowTaskParameters = ( - input: { [key: string]: MaintenanceWindowTaskParameterValueExpression }, + input: Record, context: __SerdeContext ): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { @@ -13546,7 +13540,7 @@ const serializeAws_json1_1MetadataKeysToDeleteList = (input: string[], context: }); }; -const serializeAws_json1_1MetadataMap = (input: { [key: string]: MetadataValue }, context: __SerdeContext): any => { +const serializeAws_json1_1MetadataMap = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -13638,7 +13632,7 @@ const serializeAws_json1_1OpsAggregatorList = (input: OpsAggregator[], context: }); }; -const serializeAws_json1_1OpsAggregatorValueMap = (input: { [key: string]: string }, context: __SerdeContext): any => { +const serializeAws_json1_1OpsAggregatorValueMap = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -13768,7 +13762,7 @@ const serializeAws_json1_1OpsItemNotifications = (input: OpsItemNotification[], }; const serializeAws_json1_1OpsItemOperationalData = ( - input: { [key: string]: OpsItemDataValue }, + input: Record, context: __SerdeContext ): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { @@ -13899,7 +13893,7 @@ const serializeAws_json1_1ParameterNameList = (input: string[], context: __Serde }); }; -const serializeAws_json1_1Parameters = (input: { [key: string]: string[] }, context: __SerdeContext): any => { +const serializeAws_json1_1Parameters = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -14571,7 +14565,7 @@ const serializeAws_json1_1SessionFilterList = (input: SessionFilter[], context: }; const serializeAws_json1_1SessionManagerParameters = ( - input: { [key: string]: string[] }, + input: Record, context: __SerdeContext ): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { @@ -14784,7 +14778,7 @@ const serializeAws_json1_1TargetLocations = (input: TargetLocation[], context: _ }); }; -const serializeAws_json1_1TargetMap = (input: { [key: string]: string[] }, context: __SerdeContext): any => { +const serializeAws_json1_1TargetMap = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -14796,7 +14790,7 @@ const serializeAws_json1_1TargetMap = (input: { [key: string]: string[] }, conte }, {}); }; -const serializeAws_json1_1TargetMaps = (input: { [key: string]: string[] }[], context: __SerdeContext): any => { +const serializeAws_json1_1TargetMaps = (input: Record[], context: __SerdeContext): any => { return input .filter((e: any) => e != null) .map((entry) => { @@ -15533,8 +15527,8 @@ const deserializeAws_json1_1AssociationStatus = (output: any, context: __SerdeCo const deserializeAws_json1_1AssociationStatusAggregatedCount = ( output: any, context: __SerdeContext -): { [key: string]: number } => { - return Object.entries(output).reduce((acc: { [key: string]: number }, [key, value]: [string, any]) => { +): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -15852,8 +15846,8 @@ const deserializeAws_json1_1AutomationExecutionNotFoundException = ( const deserializeAws_json1_1AutomationParameterMap = ( output: any, context: __SerdeContext -): { [key: string]: string[] } => { - return Object.entries(output).reduce((acc: { [key: string]: string[] }, [key, value]: [string, any]) => { +): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -16117,11 +16111,8 @@ const deserializeAws_json1_1ComplianceItem = (output: any, context: __SerdeConte } as any; }; -const deserializeAws_json1_1ComplianceItemDetails = ( - output: any, - context: __SerdeContext -): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +const deserializeAws_json1_1ComplianceItemDetails = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -17792,8 +17783,8 @@ const deserializeAws_json1_1InstanceAssociationOutputUrl = ( const deserializeAws_json1_1InstanceAssociationStatusAggregatedCount = ( output: any, context: __SerdeContext -): { [key: string]: number } => { - return Object.entries(output).reduce((acc: { [key: string]: number }, [key, value]: [string, any]) => { +): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -18413,8 +18404,8 @@ const deserializeAws_json1_1InventoryItemAttributeList = ( return retVal; }; -const deserializeAws_json1_1InventoryItemEntry = (output: any, context: __SerdeContext): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +const deserializeAws_json1_1InventoryItemEntry = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -18428,7 +18419,7 @@ const deserializeAws_json1_1InventoryItemEntry = (output: any, context: __SerdeC const deserializeAws_json1_1InventoryItemEntryList = ( output: any, context: __SerdeContext -): { [key: string]: string }[] => { +): Record[] => { const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { @@ -18508,8 +18499,8 @@ const deserializeAws_json1_1InventoryResultItem = (output: any, context: __Serde const deserializeAws_json1_1InventoryResultItemMap = ( output: any, context: __SerdeContext -): { [key: string]: InventoryResultItem } => { - return Object.entries(output).reduce((acc: { [key: string]: InventoryResultItem }, [key, value]: [string, any]) => { +): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -19118,9 +19109,9 @@ const deserializeAws_json1_1MaintenanceWindowTaskList = ( const deserializeAws_json1_1MaintenanceWindowTaskParameters = ( output: any, context: __SerdeContext -): { [key: string]: MaintenanceWindowTaskParameterValueExpression } => { +): Record => { return Object.entries(output).reduce( - (acc: { [key: string]: MaintenanceWindowTaskParameterValueExpression }, [key, value]: [string, any]) => { + (acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -19136,7 +19127,7 @@ const deserializeAws_json1_1MaintenanceWindowTaskParameters = ( const deserializeAws_json1_1MaintenanceWindowTaskParametersList = ( output: any, context: __SerdeContext -): { [key: string]: MaintenanceWindowTaskParameterValueExpression }[] => { +): Record[] => { const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { @@ -19184,8 +19175,8 @@ const deserializeAws_json1_1MaxDocumentSizeExceeded = ( } as any; }; -const deserializeAws_json1_1MetadataMap = (output: any, context: __SerdeContext): { [key: string]: MetadataValue } => { - return Object.entries(output).reduce((acc: { [key: string]: MetadataValue }, [key, value]: [string, any]) => { +const deserializeAws_json1_1MetadataMap = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -19219,8 +19210,8 @@ const deserializeAws_json1_1NonCompliantSummary = (output: any, context: __Serde } as any; }; -const deserializeAws_json1_1NormalStringMap = (output: any, context: __SerdeContext): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +const deserializeAws_json1_1NormalStringMap = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -19277,8 +19268,8 @@ const deserializeAws_json1_1OpsEntityItem = (output: any, context: __SerdeContex } as any; }; -const deserializeAws_json1_1OpsEntityItemEntry = (output: any, context: __SerdeContext): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +const deserializeAws_json1_1OpsEntityItemEntry = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -19292,7 +19283,7 @@ const deserializeAws_json1_1OpsEntityItemEntry = (output: any, context: __SerdeC const deserializeAws_json1_1OpsEntityItemEntryList = ( output: any, context: __SerdeContext -): { [key: string]: string }[] => { +): Record[] => { const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { @@ -19307,8 +19298,8 @@ const deserializeAws_json1_1OpsEntityItemEntryList = ( const deserializeAws_json1_1OpsEntityItemMap = ( output: any, context: __SerdeContext -): { [key: string]: OpsEntityItem } => { - return Object.entries(output).reduce((acc: { [key: string]: OpsEntityItem }, [key, value]: [string, any]) => { +): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -19495,8 +19486,8 @@ const deserializeAws_json1_1OpsItemNotifications = (output: any, context: __Serd const deserializeAws_json1_1OpsItemOperationalData = ( output: any, context: __SerdeContext -): { [key: string]: OpsItemDataValue } => { - return Object.entries(output).reduce((acc: { [key: string]: OpsItemDataValue }, [key, value]: [string, any]) => { +): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -19909,8 +19900,8 @@ const deserializeAws_json1_1ParameterPolicyList = (output: any, context: __Serde return retVal; }; -const deserializeAws_json1_1Parameters = (output: any, context: __SerdeContext): { [key: string]: string[] } => { - return Object.entries(output).reduce((acc: { [key: string]: string[] }, [key, value]: [string, any]) => { +const deserializeAws_json1_1Parameters = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -20186,10 +20177,7 @@ const deserializeAws_json1_1PatchList = (output: any, context: __SerdeContext): return retVal; }; -const deserializeAws_json1_1PatchPropertiesList = ( - output: any, - context: __SerdeContext -): { [key: string]: string }[] => { +const deserializeAws_json1_1PatchPropertiesList = (output: any, context: __SerdeContext): Record[] => { const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { @@ -20201,8 +20189,8 @@ const deserializeAws_json1_1PatchPropertiesList = ( return retVal; }; -const deserializeAws_json1_1PatchPropertyEntry = (output: any, context: __SerdeContext): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +const deserializeAws_json1_1PatchPropertyEntry = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -21070,8 +21058,8 @@ const deserializeAws_json1_1TargetLocations = (output: any, context: __SerdeCont return retVal; }; -const deserializeAws_json1_1TargetMap = (output: any, context: __SerdeContext): { [key: string]: string[] } => { - return Object.entries(output).reduce((acc: { [key: string]: string[] }, [key, value]: [string, any]) => { +const deserializeAws_json1_1TargetMap = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -21082,7 +21070,7 @@ const deserializeAws_json1_1TargetMap = (output: any, context: __SerdeContext): }, {}); }; -const deserializeAws_json1_1TargetMaps = (output: any, context: __SerdeContext): { [key: string]: string[] }[] => { +const deserializeAws_json1_1TargetMaps = (output: any, context: __SerdeContext): Record[] => { const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { diff --git a/clients/client-storage-gateway/src/models/models_0.ts b/clients/client-storage-gateway/src/models/models_0.ts index 5d86f41ccaa6..ff5955bac8db 100644 --- a/clients/client-storage-gateway/src/models/models_0.ts +++ b/clients/client-storage-gateway/src/models/models_0.ts @@ -276,7 +276,7 @@ export interface StorageGatewayError { /** *

Human-readable text that provides detail about the error that occurred.

*/ - errorDetails?: { [key: string]: string }; + errorDetails?: Record; } export namespace StorageGatewayError { diff --git a/clients/client-storage-gateway/src/protocols/Aws_json1_1.ts b/clients/client-storage-gateway/src/protocols/Aws_json1_1.ts index 408f02ffcb6b..3d75db571b2c 100644 --- a/clients/client-storage-gateway/src/protocols/Aws_json1_1.ts +++ b/clients/client-storage-gateway/src/protocols/Aws_json1_1.ts @@ -7945,8 +7945,8 @@ const deserializeAws_json1_1EndpointNetworkConfiguration = ( } as any; }; -const deserializeAws_json1_1errorDetails = (output: any, context: __SerdeContext): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +const deserializeAws_json1_1errorDetails = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } diff --git a/clients/client-synthetics/src/models/models_0.ts b/clients/client-synthetics/src/models/models_0.ts index 99705f8c41a7..4b8ad6d4e2cc 100644 --- a/clients/client-synthetics/src/models/models_0.ts +++ b/clients/client-synthetics/src/models/models_0.ts @@ -451,7 +451,7 @@ export interface Canary { /** *

The list of key-value pairs that are associated with the canary.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; /** *

A structure that contains the configuration for canary artifacts, including @@ -698,7 +698,7 @@ export interface CanaryRunConfigInput { * more information about reserved keys, see * Runtime environment variables.

*/ - EnvironmentVariables?: { [key: string]: string }; + EnvironmentVariables?: Record; } export namespace CanaryRunConfigInput { @@ -916,7 +916,7 @@ export interface CreateCanaryRequest { * granting a user permission to access or change only the resources that have * certain tag values.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; /** *

A structure that contains the configuration for canary artifacts, including @@ -1385,7 +1385,7 @@ export interface ListTagsForResourceResponse { /** *

The list of tag keys and values associated with the canary that you specified.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; } export namespace ListTagsForResourceResponse { @@ -1465,7 +1465,7 @@ export interface TagResourceRequest { /** *

The list of key-value pairs to associate with the canary.

*/ - Tags: { [key: string]: string } | undefined; + Tags: Record | undefined; } export namespace TagResourceRequest { diff --git a/clients/client-synthetics/src/protocols/Aws_restJson1.ts b/clients/client-synthetics/src/protocols/Aws_restJson1.ts index 3979a79ffac5..53c9107a79c7 100644 --- a/clients/client-synthetics/src/protocols/Aws_restJson1.ts +++ b/clients/client-synthetics/src/protocols/Aws_restJson1.ts @@ -1326,10 +1326,7 @@ const serializeAws_restJson1DescribeCanariesNameFilter = (input: string[], conte }); }; -const serializeAws_restJson1EnvironmentVariablesMap = ( - input: { [key: string]: string }, - context: __SerdeContext -): any => { +const serializeAws_restJson1EnvironmentVariablesMap = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -1371,7 +1368,7 @@ const serializeAws_restJson1SubnetIds = (input: string[], context: __SerdeContex }); }; -const serializeAws_restJson1TagMap = (input: { [key: string]: string }, context: __SerdeContext): any => { +const serializeAws_restJson1TagMap = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -1689,8 +1686,8 @@ const deserializeAws_restJson1SubnetIds = (output: any, context: __SerdeContext) return retVal; }; -const deserializeAws_restJson1TagMap = (output: any, context: __SerdeContext): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +const deserializeAws_restJson1TagMap = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } diff --git a/clients/client-transcribe/src/models/models_0.ts b/clients/client-transcribe/src/models/models_0.ts index 4eccebe6781d..b392fed67289 100644 --- a/clients/client-transcribe/src/models/models_0.ts +++ b/clients/client-transcribe/src/models/models_0.ts @@ -457,7 +457,7 @@ export interface CallAnalyticsJobSettings { * parameter with the VocabularyName or * VocabularyFilterName (or both) sub-parameter.

*/ - LanguageIdSettings?: { [key: string]: LanguageIdSettings }; + LanguageIdSettings?: Record; } export namespace CallAnalyticsJobSettings { @@ -3137,7 +3137,7 @@ export interface TranscriptionJob { * parameter with the VocabularyName or * VocabularyFilterName (or both) sub-parameter.

*/ - LanguageIdSettings?: { [key: string]: LanguageIdSettings }; + LanguageIdSettings?: Record; } export namespace TranscriptionJob { @@ -4463,7 +4463,7 @@ export interface StartMedicalTranscriptionJobRequest { * encryption context and Asymmetric keys in * KMS.

*/ - KMSEncryptionContext?: { [key: string]: string }; + KMSEncryptionContext?: Record; /** *

Specify additional optional settings in your @@ -4722,7 +4722,7 @@ export interface StartTranscriptionJobRequest { * encryption context and Asymmetric keys in * KMS.

*/ - KMSEncryptionContext?: { [key: string]: string }; + KMSEncryptionContext?: Record; /** *

Specify additional optional settings in your @@ -4851,7 +4851,7 @@ export interface StartTranscriptionJobRequest { * parameter with the VocabularyName or * VocabularyFilterName (or both) sub-parameter.

*/ - LanguageIdSettings?: { [key: string]: LanguageIdSettings }; + LanguageIdSettings?: Record; } export namespace StartTranscriptionJobRequest { diff --git a/clients/client-transcribe/src/protocols/Aws_json1_1.ts b/clients/client-transcribe/src/protocols/Aws_json1_1.ts index e160c1750e20..70a4cdc32c66 100644 --- a/clients/client-transcribe/src/protocols/Aws_json1_1.ts +++ b/clients/client-transcribe/src/protocols/Aws_json1_1.ts @@ -3154,10 +3154,7 @@ const serializeAws_json1_1JobExecutionSettings = (input: JobExecutionSettings, c }; }; -const serializeAws_json1_1KMSEncryptionContextMap = ( - input: { [key: string]: string }, - context: __SerdeContext -): any => { +const serializeAws_json1_1KMSEncryptionContextMap = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -3181,7 +3178,7 @@ const serializeAws_json1_1LanguageIdSettings = (input: LanguageIdSettings, conte }; const serializeAws_json1_1LanguageIdSettingsMap = ( - input: { [key: string]: LanguageIdSettings }, + input: Record, context: __SerdeContext ): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [LanguageCode | string, any]) => { @@ -4178,9 +4175,9 @@ const deserializeAws_json1_1LanguageIdSettings = (output: any, context: __SerdeC const deserializeAws_json1_1LanguageIdSettingsMap = ( output: any, context: __SerdeContext -): { [key: string]: LanguageIdSettings } => { +): Record => { return Object.entries(output).reduce( - (acc: { [key: string]: LanguageIdSettings }, [key, value]: [LanguageCode | string, any]) => { + (acc: Record, [key, value]: [LanguageCode | string, any]) => { if (value === null) { return acc; } diff --git a/clients/client-wafv2/src/models/models_0.ts b/clients/client-wafv2/src/models/models_0.ts index 3c5dfd9ee46d..dbb2d34e45da 100644 --- a/clients/client-wafv2/src/models/models_0.ts +++ b/clients/client-wafv2/src/models/models_0.ts @@ -4203,7 +4203,7 @@ export interface ManagedRuleSet { /** *

The versions of this managed rule set that are available for use by customers.

*/ - PublishedVersions?: { [key: string]: ManagedRuleSetVersion }; + PublishedVersions?: Record; /** *

The version that you would like your customers to use.

@@ -5976,7 +5976,7 @@ export interface PutManagedRuleSetVersionsRequest { *

The versions of the named managed rule group that you want to offer to your customers. *

*/ - VersionsToPublish?: { [key: string]: VersionToPublish }; + VersionsToPublish?: Record; } export namespace PutManagedRuleSetVersionsRequest { @@ -7022,7 +7022,7 @@ export interface CreateRuleGroupRequest { *

For information about the limits on count and size for custom request and response settings, see WAF quotas in the * WAF Developer Guide.

*/ - CustomResponseBodies?: { [key: string]: CustomResponseBody }; + CustomResponseBodies?: Record; } export namespace CreateRuleGroupRequest { @@ -7089,7 +7089,7 @@ export interface CreateWebACLRequest { *

For information about the limits on count and size for custom request and response settings, see WAF quotas in the * WAF Developer Guide.

*/ - CustomResponseBodies?: { [key: string]: CustomResponseBody }; + CustomResponseBodies?: Record; /** *

Specifies how WAF should handle CAPTCHA evaluations for rules that don't have their own CaptchaConfig settings. If you don't specify this, WAF uses its default settings for CaptchaConfig.

@@ -7186,7 +7186,7 @@ export interface RuleGroup { *

For information about the limits on count and size for custom request and response settings, see WAF quotas in the * WAF Developer Guide.

*/ - CustomResponseBodies?: { [key: string]: CustomResponseBody }; + CustomResponseBodies?: Record; /** *

The labels that one or more rules in this rule group add to matching web requests. These labels are defined in the RuleLabels for a Rule.

@@ -7263,7 +7263,7 @@ export interface UpdateRuleGroupRequest { *

For information about the limits on count and size for custom request and response settings, see WAF quotas in the * WAF Developer Guide.

*/ - CustomResponseBodies?: { [key: string]: CustomResponseBody }; + CustomResponseBodies?: Record; } export namespace UpdateRuleGroupRequest { @@ -7335,7 +7335,7 @@ export interface UpdateWebACLRequest { *

For information about the limits on count and size for custom request and response settings, see WAF quotas in the * WAF Developer Guide.

*/ - CustomResponseBodies?: { [key: string]: CustomResponseBody }; + CustomResponseBodies?: Record; /** *

Specifies how WAF should handle CAPTCHA evaluations for rules that don't have their own CaptchaConfig settings. If you don't specify this, WAF uses its default settings for CaptchaConfig.

@@ -7486,7 +7486,7 @@ export interface WebACL { *

For information about the limits on count and size for custom request and response settings, see WAF quotas in the * WAF Developer Guide.

*/ - CustomResponseBodies?: { [key: string]: CustomResponseBody }; + CustomResponseBodies?: Record; /** *

Specifies how WAF should handle CAPTCHA evaluations for rules that don't have their own CaptchaConfig settings. If you don't specify this, WAF uses its default settings for CaptchaConfig.

diff --git a/clients/client-wafv2/src/protocols/Aws_json1_1.ts b/clients/client-wafv2/src/protocols/Aws_json1_1.ts index d1760007f4c1..35d2c04164fb 100644 --- a/clients/client-wafv2/src/protocols/Aws_json1_1.ts +++ b/clients/client-wafv2/src/protocols/Aws_json1_1.ts @@ -4210,7 +4210,7 @@ const serializeAws_json1_1CustomResponse = (input: CustomResponse, context: __Se }; const serializeAws_json1_1CustomResponseBodies = ( - input: { [key: string]: CustomResponseBody }, + input: Record, context: __SerdeContext ): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { @@ -5383,7 +5383,7 @@ const serializeAws_json1_1UsernameField = (input: UsernameField, context: __Serd }; const serializeAws_json1_1VersionsToPublish = ( - input: { [key: string]: VersionToPublish }, + input: Record, context: __SerdeContext ): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { @@ -5698,8 +5698,8 @@ const deserializeAws_json1_1CustomResponse = (output: any, context: __SerdeConte const deserializeAws_json1_1CustomResponseBodies = ( output: any, context: __SerdeContext -): { [key: string]: CustomResponseBody } => { - return Object.entries(output).reduce((acc: { [key: string]: CustomResponseBody }, [key, value]: [string, any]) => { +): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -6754,8 +6754,8 @@ const deserializeAws_json1_1PasswordField = (output: any, context: __SerdeContex const deserializeAws_json1_1PublishedVersions = ( output: any, context: __SerdeContext -): { [key: string]: ManagedRuleSetVersion } => { - return Object.entries(output).reduce((acc: { [key: string]: ManagedRuleSetVersion }, [key, value]: [string, any]) => { +): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } diff --git a/clients/client-wellarchitected/src/models/models_0.ts b/clients/client-wellarchitected/src/models/models_0.ts index 8254f862dea4..96753f443661 100644 --- a/clients/client-wellarchitected/src/models/models_0.ts +++ b/clients/client-wellarchitected/src/models/models_0.ts @@ -1074,7 +1074,7 @@ export interface CreateWorkloadInput { /** *

The tags to be associated with the workload.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; } export namespace CreateWorkloadInput { @@ -1621,7 +1621,7 @@ export interface PillarReviewSummary { /** *

A map from risk names to the count of how questions have that rating.

*/ - RiskCounts?: { [key: string]: number }; + RiskCounts?: Record; } export namespace PillarReviewSummary { @@ -1681,7 +1681,7 @@ export interface LensReview { /** *

A map from risk names to the count of how questions have that rating.

*/ - RiskCounts?: { [key: string]: number }; + RiskCounts?: Record; /** *

The token to use to retrieve the next set of results.

@@ -2243,7 +2243,7 @@ export interface Workload { /** *

A map from risk names to the count of how questions have that rating.

*/ - RiskCounts?: { [key: string]: number }; + RiskCounts?: Record; /** *

The priorities of the pillars, which are used to order items in the improvement plan. @@ -2269,7 +2269,7 @@ export interface Workload { /** *

The tags associated with the workload.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; } export namespace Workload { @@ -2408,7 +2408,7 @@ export interface ImportLensInput { /** *

Tags to associate to a lens.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; } export namespace ImportLensInput { @@ -2531,7 +2531,7 @@ export interface LensReviewSummary { /** *

A map from risk names to the count of how questions have that rating.

*/ - RiskCounts?: { [key: string]: number }; + RiskCounts?: Record; } export namespace LensReviewSummary { @@ -3138,7 +3138,7 @@ export interface WorkloadSummary { /** *

A map from risk names to the count of how questions have that rating.

*/ - RiskCounts?: { [key: string]: number }; + RiskCounts?: Record; /** *

The improvement status for a workload.

@@ -3446,7 +3446,7 @@ export interface ListTagsForResourceOutput { /** *

The tags for the resource.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; } export namespace ListTagsForResourceOutput { @@ -3663,7 +3663,7 @@ export interface TagResourceInput { /** *

The tags for the resource.

*/ - Tags: { [key: string]: string } | undefined; + Tags: Record | undefined; } export namespace TagResourceInput { @@ -3749,7 +3749,7 @@ export interface UpdateAnswerInput { *

A list of choices to update on a question in your workload. The String key * corresponds to the choice ID to be updated.

*/ - ChoiceUpdates?: { [key: string]: ChoiceUpdate }; + ChoiceUpdates?: Record; /** *

The notes associated with the workload.

@@ -3834,7 +3834,7 @@ export interface UpdateLensReviewInput { /** *

List of pillar notes of a lens review in a workload.

*/ - PillarNotes?: { [key: string]: string }; + PillarNotes?: Record; } export namespace UpdateLensReviewInput { diff --git a/clients/client-wellarchitected/src/protocols/Aws_restJson1.ts b/clients/client-wellarchitected/src/protocols/Aws_restJson1.ts index dde4d50be734..11ec3723418e 100644 --- a/clients/client-wellarchitected/src/protocols/Aws_restJson1.ts +++ b/clients/client-wellarchitected/src/protocols/Aws_restJson1.ts @@ -4119,7 +4119,7 @@ const serializeAws_restJson1ChoiceUpdate = (input: ChoiceUpdate, context: __Serd }; }; -const serializeAws_restJson1ChoiceUpdates = (input: { [key: string]: ChoiceUpdate }, context: __SerdeContext): any => { +const serializeAws_restJson1ChoiceUpdates = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -4142,7 +4142,7 @@ const serializeAws_restJson1LensAliases = (input: string[], context: __SerdeCont }); }; -const serializeAws_restJson1PillarNotes = (input: { [key: string]: string }, context: __SerdeContext): any => { +const serializeAws_restJson1PillarNotes = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -4165,7 +4165,7 @@ const serializeAws_restJson1SelectedChoices = (input: string[], context: __Serde }); }; -const serializeAws_restJson1TagMap = (input: { [key: string]: string }, context: __SerdeContext): any => { +const serializeAws_restJson1TagMap = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -4689,8 +4689,8 @@ const deserializeAws_restJson1QuestionDifferences = (output: any, context: __Ser return retVal; }; -const deserializeAws_restJson1RiskCounts = (output: any, context: __SerdeContext): { [key: string]: number } => { - return Object.entries(output).reduce((acc: { [key: string]: number }, [key, value]: [Risk | string, any]) => { +const deserializeAws_restJson1RiskCounts = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [Risk | string, any]) => { if (value === null) { return acc; } @@ -4755,8 +4755,8 @@ const deserializeAws_restJson1ShareInvitationSummary = ( } as any; }; -const deserializeAws_restJson1TagMap = (output: any, context: __SerdeContext): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +const deserializeAws_restJson1TagMap = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } diff --git a/clients/client-wisdom/src/models/models_0.ts b/clients/client-wisdom/src/models/models_0.ts index 28b6b89d3d15..f7b0a9c9a8f9 100644 --- a/clients/client-wisdom/src/models/models_0.ts +++ b/clients/client-wisdom/src/models/models_0.ts @@ -151,7 +151,7 @@ export interface CreateAssistantAssociationRequest { /** *

The tags used to organize, track, or control access for this resource.

*/ - tags?: { [key: string]: string }; + tags?: Record; } export namespace CreateAssistantAssociationRequest { @@ -269,7 +269,7 @@ export interface AssistantAssociationData { /** *

The tags used to organize, track, or control access for this resource.

*/ - tags?: { [key: string]: string }; + tags?: Record; } export namespace AssistantAssociationData { @@ -503,7 +503,7 @@ export interface AssistantAssociationSummary { /** *

The tags used to organize, track, or control access for this resource.

*/ - tags?: { [key: string]: string }; + tags?: Record; } export namespace AssistantAssociationSummary { @@ -592,7 +592,7 @@ export interface CreateAssistantRequest { /** *

The tags used to organize, track, or control access for this resource.

*/ - tags?: { [key: string]: string }; + tags?: Record; /** *

The KMS key used for encryption.

@@ -655,7 +655,7 @@ export interface AssistantData { /** *

The tags used to organize, track, or control access for this resource.

*/ - tags?: { [key: string]: string }; + tags?: Record; /** *

The KMS key used for encryption.

@@ -1151,7 +1151,7 @@ export interface AssistantSummary { /** *

The tags used to organize, track, or control access for this resource.

*/ - tags?: { [key: string]: string }; + tags?: Record; /** *

The KMS key used for encryption.

@@ -1513,7 +1513,7 @@ export interface CreateSessionRequest { /** *

The tags used to organize, track, or control access for this resource.

*/ - tags?: { [key: string]: string }; + tags?: Record; } export namespace CreateSessionRequest { @@ -1552,7 +1552,7 @@ export interface SessionData { /** *

The tags used to organize, track, or control access for this resource.

*/ - tags?: { [key: string]: string }; + tags?: Record; } export namespace SessionData { @@ -1645,7 +1645,7 @@ export interface CreateContentRequest { *

A key/value map to store attributes without affecting tagging or recommendations. * For example, when synchronizing data between an external system and Wisdom, you can store an external version identifier as metadata to utilize for determining drift.

*/ - metadata?: { [key: string]: string }; + metadata?: Record; /** *

A pointer to the uploaded asset. This value is returned by StartContentUpload.

@@ -1661,7 +1661,7 @@ export interface CreateContentRequest { /** *

The tags used to organize, track, or control access for this resource.

*/ - tags?: { [key: string]: string }; + tags?: Record; } export namespace CreateContentRequest { @@ -1736,12 +1736,12 @@ export interface ContentData { *

A key/value map to store attributes without affecting tagging or recommendations. * For example, when synchronizing data between an external system and Wisdom, you can store an external version identifier as metadata to utilize for determining drift.

*/ - metadata: { [key: string]: string } | undefined; + metadata: Record | undefined; /** *

The tags used to organize, track, or control access for this resource.

*/ - tags?: { [key: string]: string }; + tags?: Record; /** *

The URI of the content.

@@ -1930,12 +1930,12 @@ export interface ContentSummary { *

A key/value map to store attributes without affecting tagging or recommendations. * For example, when synchronizing data between an external system and Wisdom, you can store an external version identifier as metadata to utilize for determining drift.

*/ - metadata: { [key: string]: string } | undefined; + metadata: Record | undefined; /** *

The tags used to organize, track, or control access for this resource.

*/ - tags?: { [key: string]: string }; + tags?: Record; } export namespace ContentSummary { @@ -2073,7 +2073,7 @@ export interface UpdateContentRequest { * example, when synchronizing data between an external system and Wisdom, you can store an * external version identifier as metadata to utilize for determining drift.

*/ - metadata?: { [key: string]: string }; + metadata?: Record; /** *

A pointer to the uploaded asset. This value is returned by StartContentUpload. @@ -2230,7 +2230,7 @@ export interface CreateKnowledgeBaseRequest { /** *

The tags used to organize, track, or control access for this resource.

*/ - tags?: { [key: string]: string }; + tags?: Record; } export namespace CreateKnowledgeBaseRequest { @@ -2312,7 +2312,7 @@ export interface KnowledgeBaseData { /** *

The tags used to organize, track, or control access for this resource.

*/ - tags?: { [key: string]: string }; + tags?: Record; } export namespace KnowledgeBaseData { @@ -2478,7 +2478,7 @@ export interface KnowledgeBaseSummary { /** *

The tags used to organize, track, or control access for this resource.

*/ - tags?: { [key: string]: string }; + tags?: Record; } export namespace KnowledgeBaseSummary { @@ -2637,7 +2637,7 @@ export interface StartContentUploadResponse { /** *

The headers to include in the upload.

*/ - headersToInclude: { [key: string]: string } | undefined; + headersToInclude: Record | undefined; } export namespace StartContentUploadResponse { @@ -2708,7 +2708,7 @@ export interface ListTagsForResourceResponse { /** *

The tags used to organize, track, or control access for this resource.

*/ - tags?: { [key: string]: string }; + tags?: Record; } export namespace ListTagsForResourceResponse { @@ -2729,7 +2729,7 @@ export interface TagResourceRequest { /** *

The tags used to organize, track, or control access for this resource.

*/ - tags: { [key: string]: string } | undefined; + tags: Record | undefined; } export namespace TagResourceRequest { diff --git a/clients/client-wisdom/src/protocols/Aws_restJson1.ts b/clients/client-wisdom/src/protocols/Aws_restJson1.ts index ab75761380e7..afe5ae7372ab 100644 --- a/clients/client-wisdom/src/protocols/Aws_restJson1.ts +++ b/clients/client-wisdom/src/protocols/Aws_restJson1.ts @@ -2966,7 +2966,7 @@ const serializeAws_restJson1AssistantAssociationInputData = ( }); }; -const serializeAws_restJson1ContentMetadata = (input: { [key: string]: string }, context: __SerdeContext): any => { +const serializeAws_restJson1ContentMetadata = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -3050,7 +3050,7 @@ const serializeAws_restJson1SourceConfiguration = (input: SourceConfiguration, c }); }; -const serializeAws_restJson1Tags = (input: { [key: string]: string }, context: __SerdeContext): any => { +const serializeAws_restJson1Tags = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -3225,8 +3225,8 @@ const deserializeAws_restJson1ContentData = (output: any, context: __SerdeContex } as any; }; -const deserializeAws_restJson1ContentMetadata = (output: any, context: __SerdeContext): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +const deserializeAws_restJson1ContentMetadata = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -3307,8 +3307,8 @@ const deserializeAws_restJson1DocumentText = (output: any, context: __SerdeConte } as any; }; -const deserializeAws_restJson1Headers = (output: any, context: __SerdeContext): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +const deserializeAws_restJson1Headers = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -3628,8 +3628,8 @@ const deserializeAws_restJson1SourceConfiguration = (output: any, context: __Ser return { $unknown: Object.entries(output)[0] }; }; -const deserializeAws_restJson1Tags = (output: any, context: __SerdeContext): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +const deserializeAws_restJson1Tags = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } diff --git a/clients/client-workdocs/src/models/models_0.ts b/clients/client-workdocs/src/models/models_0.ts index 0a269c2ce292..01dd1761e779 100644 --- a/clients/client-workdocs/src/models/models_0.ts +++ b/clients/client-workdocs/src/models/models_0.ts @@ -1035,7 +1035,7 @@ export interface CreateCustomMetadataRequest { /** *

Custom metadata in the form of name-value pairs.

*/ - CustomMetadata: { [key: string]: string } | undefined; + CustomMetadata: Record | undefined; } export namespace CreateCustomMetadataRequest { @@ -2081,12 +2081,12 @@ export interface DocumentVersionMetadata { /** *

The thumbnail of the document.

*/ - Thumbnail?: { [key: string]: string }; + Thumbnail?: Record; /** *

The source of the document.

*/ - Source?: { [key: string]: string }; + Source?: Record; } export namespace DocumentVersionMetadata { @@ -2754,7 +2754,7 @@ export interface GetDocumentResponse { /** *

The custom metadata on the document.

*/ - CustomMetadata?: { [key: string]: string }; + CustomMetadata?: Record; } export namespace GetDocumentResponse { @@ -2932,7 +2932,7 @@ export interface GetDocumentVersionResponse { /** *

The custom metadata on the document version.

*/ - CustomMetadata?: { [key: string]: string }; + CustomMetadata?: Record; } export namespace GetDocumentVersionResponse { @@ -2981,7 +2981,7 @@ export interface GetFolderResponse { /** *

The custom metadata on the folder.

*/ - CustomMetadata?: { [key: string]: string }; + CustomMetadata?: Record; } export namespace GetFolderResponse { @@ -3202,7 +3202,7 @@ export interface UploadMetadata { /** *

The signed headers.

*/ - SignedHeaders?: { [key: string]: string }; + SignedHeaders?: Record; } export namespace UploadMetadata { diff --git a/clients/client-workdocs/src/protocols/Aws_restJson1.ts b/clients/client-workdocs/src/protocols/Aws_restJson1.ts index 2a8433a00a08..431f31b95cf1 100644 --- a/clients/client-workdocs/src/protocols/Aws_restJson1.ts +++ b/clients/client-workdocs/src/protocols/Aws_restJson1.ts @@ -4497,7 +4497,7 @@ const deserializeAws_restJson1UnauthorizedResourceAccessExceptionResponse = asyn return __decorateServiceException(exception, parsedOutput.body); }; -const serializeAws_restJson1CustomMetadataMap = (input: { [key: string]: string }, context: __SerdeContext): any => { +const serializeAws_restJson1CustomMetadataMap = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -4634,8 +4634,8 @@ const deserializeAws_restJson1CommentMetadata = (output: any, context: __SerdeCo } as any; }; -const deserializeAws_restJson1CustomMetadataMap = (output: any, context: __SerdeContext): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +const deserializeAws_restJson1CustomMetadataMap = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -4683,12 +4683,9 @@ const deserializeAws_restJson1DocumentMetadataList = (output: any, context: __Se return retVal; }; -const deserializeAws_restJson1DocumentSourceUrlMap = ( - output: any, - context: __SerdeContext -): { [key: string]: string } => { +const deserializeAws_restJson1DocumentSourceUrlMap = (output: any, context: __SerdeContext): Record => { return Object.entries(output).reduce( - (acc: { [key: string]: string }, [key, value]: [DocumentSourceType | string, any]) => { + (acc: Record, [key, value]: [DocumentSourceType | string, any]) => { if (value === null) { return acc; } @@ -4704,9 +4701,9 @@ const deserializeAws_restJson1DocumentSourceUrlMap = ( const deserializeAws_restJson1DocumentThumbnailUrlMap = ( output: any, context: __SerdeContext -): { [key: string]: string } => { +): Record => { return Object.entries(output).reduce( - (acc: { [key: string]: string }, [key, value]: [DocumentThumbnailType | string, any]) => { + (acc: Record, [key, value]: [DocumentThumbnailType | string, any]) => { if (value === null) { return acc; } @@ -4989,8 +4986,8 @@ const deserializeAws_restJson1ShareResultsList = (output: any, context: __SerdeC return retVal; }; -const deserializeAws_restJson1SignedHeaderMap = (output: any, context: __SerdeContext): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +const deserializeAws_restJson1SignedHeaderMap = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } diff --git a/clients/client-worklink/src/models/models_0.ts b/clients/client-worklink/src/models/models_0.ts index d6e43248b26c..228cdd3277a2 100644 --- a/clients/client-worklink/src/models/models_0.ts +++ b/clients/client-worklink/src/models/models_0.ts @@ -280,7 +280,7 @@ export interface CreateFleetRequest { /** *

The tags to add to the resource. A tag is a key-value pair.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; } export namespace CreateFleetRequest { @@ -656,7 +656,7 @@ export interface DescribeFleetMetadataResponse { /** *

The tags attached to the resource. A tag is a key-value pair.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; } export namespace DescribeFleetMetadataResponse { @@ -957,7 +957,7 @@ export interface FleetSummary { /** *

The tags attached to the resource. A tag is a key-value pair.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; } export namespace FleetSummary { @@ -1131,7 +1131,7 @@ export interface ListTagsForResourceResponse { /** *

The tags attached to the resource. A tag is a key-value pair.

*/ - Tags?: { [key: string]: string }; + Tags?: Record; } export namespace ListTagsForResourceResponse { @@ -1408,7 +1408,7 @@ export interface TagResourceRequest { /** *

The tags to add to the resource. A tag is a key-value pair.

*/ - Tags: { [key: string]: string } | undefined; + Tags: Record | undefined; } export namespace TagResourceRequest { diff --git a/clients/client-worklink/src/protocols/Aws_restJson1.ts b/clients/client-worklink/src/protocols/Aws_restJson1.ts index ca92f89a5dd5..f3be07ca0232 100644 --- a/clients/client-worklink/src/protocols/Aws_restJson1.ts +++ b/clients/client-worklink/src/protocols/Aws_restJson1.ts @@ -3007,7 +3007,7 @@ const serializeAws_restJson1SubnetIds = (input: string[], context: __SerdeContex }); }; -const serializeAws_restJson1TagMap = (input: { [key: string]: string }, context: __SerdeContext): any => { +const serializeAws_restJson1TagMap = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -3120,8 +3120,8 @@ const deserializeAws_restJson1SubnetIds = (output: any, context: __SerdeContext) return retVal; }; -const deserializeAws_restJson1TagMap = (output: any, context: __SerdeContext): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +const deserializeAws_restJson1TagMap = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } diff --git a/clients/client-workspaces-web/src/models/models_0.ts b/clients/client-workspaces-web/src/models/models_0.ts index 834dc1931c30..4f8cc0e500c2 100644 --- a/clients/client-workspaces-web/src/models/models_0.ts +++ b/clients/client-workspaces-web/src/models/models_0.ts @@ -416,7 +416,7 @@ export interface CreateBrowserSettingsRequest { /** *

Additional encryption context of the browser settings.

*/ - additionalEncryptionContext?: { [key: string]: string }; + additionalEncryptionContext?: Record; /** *

A JSON string containing Chrome Enterprise policies that will be applied to all @@ -684,7 +684,7 @@ export interface CreateIdentityProviderRequest { * * */ - identityProviderDetails: { [key: string]: string } | undefined; + identityProviderDetails: Record | undefined; /** *

A unique, case-sensitive identifier that you provide to ensure the idempotency of the @@ -801,7 +801,7 @@ export interface CreatePortalRequest { /** *

The additional encryption context of the portal.

*/ - additionalEncryptionContext?: { [key: string]: string }; + additionalEncryptionContext?: Record; /** *

A unique, case-sensitive identifier that you provide to ensure the idempotency of the @@ -1507,7 +1507,7 @@ export interface IdentityProvider { * * */ - identityProviderDetails?: { [key: string]: string }; + identityProviderDetails?: Record; } export namespace IdentityProvider { @@ -2942,7 +2942,7 @@ export interface UpdateIdentityProviderRequest { * * */ - identityProviderDetails?: { [key: string]: string }; + identityProviderDetails?: Record; /** *

A unique, case-sensitive identifier that you provide to ensure the idempotency of the diff --git a/clients/client-workspaces-web/src/protocols/Aws_restJson1.ts b/clients/client-workspaces-web/src/protocols/Aws_restJson1.ts index 48c862a50bf0..6f85cc76d01e 100644 --- a/clients/client-workspaces-web/src/protocols/Aws_restJson1.ts +++ b/clients/client-workspaces-web/src/protocols/Aws_restJson1.ts @@ -4442,7 +4442,7 @@ const serializeAws_restJson1CertificateThumbprintList = (input: string[], contex }); }; -const serializeAws_restJson1EncryptionContextMap = (input: { [key: string]: string }, context: __SerdeContext): any => { +const serializeAws_restJson1EncryptionContextMap = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -4454,10 +4454,7 @@ const serializeAws_restJson1EncryptionContextMap = (input: { [key: string]: stri }, {}); }; -const serializeAws_restJson1IdentityProviderDetails = ( - input: { [key: string]: string }, - context: __SerdeContext -): any => { +const serializeAws_restJson1IdentityProviderDetails = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -4616,8 +4613,8 @@ const deserializeAws_restJson1IdentityProvider = (output: any, context: __SerdeC const deserializeAws_restJson1IdentityProviderDetails = ( output: any, context: __SerdeContext -): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } diff --git a/clients/client-workspaces/src/models/models_0.ts b/clients/client-workspaces/src/models/models_0.ts index 207971110c83..ac161549dff1 100644 --- a/clients/client-workspaces/src/models/models_0.ts +++ b/clients/client-workspaces/src/models/models_0.ts @@ -1514,7 +1514,7 @@ export interface DefaultClientBrandingAttributes { * value is the localized message for that locale. The only key supported is * en_US.

*/ - LoginMessage?: { [key: string]: string }; + LoginMessage?: Record; } export namespace DefaultClientBrandingAttributes { @@ -1587,7 +1587,7 @@ export interface DefaultImportClientBrandingAttributes { * value is the localized message for that locale. The only key supported is * en_US.

*/ - LoginMessage?: { [key: string]: string }; + LoginMessage?: Record; } export namespace DefaultImportClientBrandingAttributes { @@ -2067,7 +2067,7 @@ export interface IosClientBrandingAttributes { * value is the localized message for that locale. The only key supported is * en_US.

*/ - LoginMessage?: { [key: string]: string }; + LoginMessage?: Record; } export namespace IosClientBrandingAttributes { @@ -3402,7 +3402,7 @@ export interface IosImportClientBrandingAttributes { * value is the localized message for that locale. The only key supported is * en_US.

*/ - LoginMessage?: { [key: string]: string }; + LoginMessage?: Record; } export namespace IosImportClientBrandingAttributes { diff --git a/clients/client-workspaces/src/protocols/Aws_json1_1.ts b/clients/client-workspaces/src/protocols/Aws_json1_1.ts index 4b83d61e32f7..7f0e3ccd1622 100644 --- a/clients/client-workspaces/src/protocols/Aws_json1_1.ts +++ b/clients/client-workspaces/src/protocols/Aws_json1_1.ts @@ -5038,7 +5038,7 @@ const serializeAws_json1_1ListAvailableManagementCidrRangesRequest = ( }; }; -const serializeAws_json1_1LoginMessage = (input: { [key: string]: string }, context: __SerdeContext): any => { +const serializeAws_json1_1LoginMessage = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -6440,8 +6440,8 @@ const deserializeAws_json1_1ListAvailableManagementCidrRangesResult = ( } as any; }; -const deserializeAws_json1_1LoginMessage = (output: any, context: __SerdeContext): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +const deserializeAws_json1_1LoginMessage = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } diff --git a/clients/client-xray/src/models/models_0.ts b/clients/client-xray/src/models/models_0.ts index b6d7b4a2d77f..c86be7c269c9 100644 --- a/clients/client-xray/src/models/models_0.ts +++ b/clients/client-xray/src/models/models_0.ts @@ -628,7 +628,7 @@ export interface SamplingRule { /** *

Matches attributes derived from the request.

*/ - Attributes?: { [key: string]: string }; + Attributes?: Record; } export namespace SamplingRule { @@ -2956,7 +2956,7 @@ export interface TraceSummary { /** *

Annotations from the trace's segment documents.

*/ - Annotations?: { [key: string]: ValueWithServiceIds[] }; + Annotations?: Record; /** *

Users from the trace's segment documents.

@@ -3622,7 +3622,7 @@ export interface SamplingRuleUpdate { /** *

Matches attributes derived from the request.

*/ - Attributes?: { [key: string]: string }; + Attributes?: Record; } export namespace SamplingRuleUpdate { diff --git a/clients/client-xray/src/protocols/Aws_restJson1.ts b/clients/client-xray/src/protocols/Aws_restJson1.ts index fa4bea3e7f5a..8233295c6e53 100644 --- a/clients/client-xray/src/protocols/Aws_restJson1.ts +++ b/clients/client-xray/src/protocols/Aws_restJson1.ts @@ -2351,7 +2351,7 @@ const deserializeAws_restJson1TooManyTagsExceptionResponse = async ( return __decorateServiceException(exception, parsedOutput.body); }; -const serializeAws_restJson1AttributeMap = (input: { [key: string]: string }, context: __SerdeContext): any => { +const serializeAws_restJson1AttributeMap = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -2593,8 +2593,8 @@ const deserializeAws_restJson1AliasNames = (output: any, context: __SerdeContext const deserializeAws_restJson1Annotations = ( output: any, context: __SerdeContext -): { [key: string]: ValueWithServiceIds[] } => { - return Object.entries(output).reduce((acc: { [key: string]: ValueWithServiceIds[] }, [key, value]: [string, any]) => { +): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -2639,8 +2639,8 @@ const deserializeAws_restJson1AnomalousServiceList = (output: any, context: __Se return retVal; }; -const deserializeAws_restJson1AttributeMap = (output: any, context: __SerdeContext): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +const deserializeAws_restJson1AttributeMap = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } diff --git a/private/aws-protocoltests-ec2/src/models/models_0.ts b/private/aws-protocoltests-ec2/src/models/models_0.ts index 618a08f5c386..3e9e27f06257 100644 --- a/private/aws-protocoltests-ec2/src/models/models_0.ts +++ b/private/aws-protocoltests-ec2/src/models/models_0.ts @@ -318,7 +318,7 @@ export interface XmlEnumsOutput { fooEnum3?: FooEnum | string; fooEnumList?: (FooEnum | string)[]; fooEnumSet?: (FooEnum | string)[]; - fooEnumMap?: { [key: string]: FooEnum | string }; + fooEnumMap?: Record; } export namespace XmlEnumsOutput { diff --git a/private/aws-protocoltests-ec2/src/protocols/Aws_ec2.ts b/private/aws-protocoltests-ec2/src/protocols/Aws_ec2.ts index 35ca9144b8f9..2ff8f74b58f1 100644 --- a/private/aws-protocoltests-ec2/src/protocols/Aws_ec2.ts +++ b/private/aws-protocoltests-ec2/src/protocols/Aws_ec2.ts @@ -1974,7 +1974,7 @@ const deserializeAws_ec2FooEnumList = (output: any, context: __SerdeContext): (F }); }; -const deserializeAws_ec2FooEnumMap = (output: any, context: __SerdeContext): { [key: string]: FooEnum | string } => { +const deserializeAws_ec2FooEnumMap = (output: any, context: __SerdeContext): Record => { return output.reduce((acc: any, pair: any) => { if (pair["value"] === null) { return acc; diff --git a/private/aws-protocoltests-ec2/test/functional/ec2query.spec.ts b/private/aws-protocoltests-ec2/test/functional/ec2query.spec.ts index db5fa6ec6771..e4571287deb3 100644 --- a/private/aws-protocoltests-ec2/test/functional/ec2query.spec.ts +++ b/private/aws-protocoltests-ec2/test/functional/ec2query.spec.ts @@ -2309,8 +2309,8 @@ it("Ec2XmlTimestampsWithHttpDateFormat:Response", async () => { * discrepancies between the components. */ const compareEquivalentFormUrlencodedBodies = (expectedBody: string, generatedBody: string): Object => { - const fromEntries = (components: string[][]): { [key: string]: string } => { - const parts: { [key: string]: string } = {}; + const fromEntries = (components: string[][]): Record => { + const parts: Record = {}; components.forEach((component) => { parts[component[0]] = component[1]; diff --git a/private/aws-protocoltests-json-10/src/models/models_0.ts b/private/aws-protocoltests-json-10/src/models/models_0.ts index 31b4b88d2f27..5fa7e41d0851 100644 --- a/private/aws-protocoltests-json-10/src/models/models_0.ts +++ b/private/aws-protocoltests-json-10/src/models/models_0.ts @@ -277,7 +277,7 @@ export namespace MyUnion { timestampValue?: never; enumValue?: never; listValue?: never; - mapValue: { [key: string]: string }; + mapValue: Record; structureValue?: never; $unknown?: never; } @@ -316,7 +316,7 @@ export namespace MyUnion { timestampValue: (value: Date) => T; enumValue: (value: FooEnum | string) => T; listValue: (value: string[]) => T; - mapValue: (value: { [key: string]: string }) => T; + mapValue: (value: Record) => T; structureValue: (value: GreetingStruct) => T; _: (name: string, value: any) => T; } diff --git a/private/aws-protocoltests-json-10/src/protocols/Aws_json1_0.ts b/private/aws-protocoltests-json-10/src/protocols/Aws_json1_0.ts index 510b78e9a933..b39589809668 100644 --- a/private/aws-protocoltests-json-10/src/protocols/Aws_json1_0.ts +++ b/private/aws-protocoltests-json-10/src/protocols/Aws_json1_0.ts @@ -666,7 +666,7 @@ const serializeAws_json1_0StringList = (input: string[], context: __SerdeContext }); }; -const serializeAws_json1_0StringMap = (input: { [key: string]: string }, context: __SerdeContext): any => { +const serializeAws_json1_0StringMap = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -802,8 +802,8 @@ const deserializeAws_json1_0StringList = (output: any, context: __SerdeContext): return retVal; }; -const deserializeAws_json1_0StringMap = (output: any, context: __SerdeContext): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +const deserializeAws_json1_0StringMap = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } diff --git a/private/aws-protocoltests-json/src/models/models_0.ts b/private/aws-protocoltests-json/src/models/models_0.ts index 9397cc21938c..380409ed93d1 100644 --- a/private/aws-protocoltests-json/src/models/models_0.ts +++ b/private/aws-protocoltests-json/src/models/models_0.ts @@ -190,7 +190,7 @@ export interface JsonEnumsInputOutput { fooEnum3?: FooEnum | string; fooEnumList?: (FooEnum | string)[]; fooEnumSet?: (FooEnum | string)[]; - fooEnumMap?: { [key: string]: FooEnum | string }; + fooEnumMap?: Record; } export namespace JsonEnumsInputOutput { @@ -317,7 +317,7 @@ export namespace MyUnion { timestampValue?: never; enumValue?: never; listValue?: never; - mapValue: { [key: string]: string }; + mapValue: Record; structureValue?: never; $unknown?: never; } @@ -356,7 +356,7 @@ export namespace MyUnion { timestampValue: (value: Date) => T; enumValue: (value: FooEnum | string) => T; listValue: (value: string[]) => T; - mapValue: (value: { [key: string]: string }) => T; + mapValue: (value: Record) => T; structureValue: (value: GreetingStruct) => T; _: (name: string, value: any) => T; } @@ -415,7 +415,7 @@ export namespace UnionInputOutput { export interface NullOperationInputOutput { string?: string; sparseStringList?: string[]; - sparseStringMap?: { [key: string]: string }; + sparseStringMap?: Record; } export namespace NullOperationInputOutput { @@ -491,16 +491,16 @@ export interface KitchenSink { Iso8601Timestamp?: Date; JsonValue?: __LazyJsonString | string; ListOfLists?: string[][]; - ListOfMapsOfStrings?: { [key: string]: string }[]; + ListOfMapsOfStrings?: Record[]; ListOfStrings?: string[]; ListOfStructs?: SimpleStruct[]; Long?: number; - MapOfListsOfStrings?: { [key: string]: string[] }; - MapOfMaps?: { [key: string]: { [key: string]: string } }; - MapOfStrings?: { [key: string]: string }; - MapOfStructs?: { [key: string]: SimpleStruct }; + MapOfListsOfStrings?: Record; + MapOfMaps?: Record>; + MapOfStrings?: Record; + MapOfStructs?: Record; RecursiveList?: KitchenSink[]; - RecursiveMap?: { [key: string]: KitchenSink }; + RecursiveMap?: Record; RecursiveStruct?: KitchenSink; SimpleStruct?: SimpleStruct; String?: string; @@ -525,7 +525,7 @@ export class ErrorWithMembers extends __BaseException { ComplexData?: KitchenSink; IntegerField?: number; ListField?: string[]; - MapField?: { [key: string]: string }; + MapField?: Record; Message?: string; /** * abc diff --git a/private/aws-protocoltests-json/src/protocols/Aws_json1_1.ts b/private/aws-protocoltests-json/src/protocols/Aws_json1_1.ts index 83a5a81a3506..4c82cd9be8f0 100644 --- a/private/aws-protocoltests-json/src/protocols/Aws_json1_1.ts +++ b/private/aws-protocoltests-json/src/protocols/Aws_json1_1.ts @@ -925,7 +925,7 @@ const serializeAws_json1_1ListOfListOfStrings = (input: string[][], context: __S }); }; -const serializeAws_json1_1ListOfMapsOfStrings = (input: { [key: string]: string }[], context: __SerdeContext): any => { +const serializeAws_json1_1ListOfMapsOfStrings = (input: Record[], context: __SerdeContext): any => { return input .filter((e: any) => e != null) .map((entry) => { @@ -958,7 +958,7 @@ const serializeAws_json1_1ListOfStructs = (input: SimpleStruct[], context: __Ser }); }; -const serializeAws_json1_1MapOfKitchenSinks = (input: { [key: string]: KitchenSink }, context: __SerdeContext): any => { +const serializeAws_json1_1MapOfKitchenSinks = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -970,7 +970,7 @@ const serializeAws_json1_1MapOfKitchenSinks = (input: { [key: string]: KitchenSi }, {}); }; -const serializeAws_json1_1MapOfListsOfStrings = (input: { [key: string]: string[] }, context: __SerdeContext): any => { +const serializeAws_json1_1MapOfListsOfStrings = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -983,7 +983,7 @@ const serializeAws_json1_1MapOfListsOfStrings = (input: { [key: string]: string[ }; const serializeAws_json1_1MapOfMapOfStrings = ( - input: { [key: string]: { [key: string]: string } }, + input: Record>, context: __SerdeContext ): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { @@ -997,7 +997,7 @@ const serializeAws_json1_1MapOfMapOfStrings = ( }, {}); }; -const serializeAws_json1_1MapOfStrings = (input: { [key: string]: string }, context: __SerdeContext): any => { +const serializeAws_json1_1MapOfStrings = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -1009,7 +1009,7 @@ const serializeAws_json1_1MapOfStrings = (input: { [key: string]: string }, cont }, {}); }; -const serializeAws_json1_1MapOfStructs = (input: { [key: string]: SimpleStruct }, context: __SerdeContext): any => { +const serializeAws_json1_1MapOfStructs = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -1114,7 +1114,7 @@ const serializeAws_json1_1FooEnumList = (input: (FooEnum | string)[], context: _ }); }; -const serializeAws_json1_1FooEnumMap = (input: { [key: string]: FooEnum | string }, context: __SerdeContext): any => { +const serializeAws_json1_1FooEnumMap = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -1152,7 +1152,7 @@ const serializeAws_json1_1SparseStringList = (input: string[], context: __SerdeC }); }; -const serializeAws_json1_1SparseStringMap = (input: { [key: string]: string }, context: __SerdeContext): any => { +const serializeAws_json1_1SparseStringMap = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return { ...acc, [key]: null as any }; @@ -1175,7 +1175,7 @@ const serializeAws_json1_1StringList = (input: string[], context: __SerdeContext }); }; -const serializeAws_json1_1StringMap = (input: { [key: string]: string }, context: __SerdeContext): any => { +const serializeAws_json1_1StringMap = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -1385,10 +1385,7 @@ const deserializeAws_json1_1ListOfListOfStrings = (output: any, context: __Serde return retVal; }; -const deserializeAws_json1_1ListOfMapsOfStrings = ( - output: any, - context: __SerdeContext -): { [key: string]: string }[] => { +const deserializeAws_json1_1ListOfMapsOfStrings = (output: any, context: __SerdeContext): Record[] => { const retVal = (output || []) .filter((e: any) => e != null) .map((entry: any) => { @@ -1424,11 +1421,8 @@ const deserializeAws_json1_1ListOfStructs = (output: any, context: __SerdeContex return retVal; }; -const deserializeAws_json1_1MapOfKitchenSinks = ( - output: any, - context: __SerdeContext -): { [key: string]: KitchenSink } => { - return Object.entries(output).reduce((acc: { [key: string]: KitchenSink }, [key, value]: [string, any]) => { +const deserializeAws_json1_1MapOfKitchenSinks = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -1439,11 +1433,8 @@ const deserializeAws_json1_1MapOfKitchenSinks = ( }, {}); }; -const deserializeAws_json1_1MapOfListsOfStrings = ( - output: any, - context: __SerdeContext -): { [key: string]: string[] } => { - return Object.entries(output).reduce((acc: { [key: string]: string[] }, [key, value]: [string, any]) => { +const deserializeAws_json1_1MapOfListsOfStrings = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -1457,23 +1448,20 @@ const deserializeAws_json1_1MapOfListsOfStrings = ( const deserializeAws_json1_1MapOfMapOfStrings = ( output: any, context: __SerdeContext -): { [key: string]: { [key: string]: string } } => { - return Object.entries(output).reduce( - (acc: { [key: string]: { [key: string]: string } }, [key, value]: [string, any]) => { - if (value === null) { - return acc; - } - return { - ...acc, - [key]: deserializeAws_json1_1MapOfStrings(value, context), - }; - }, - {} - ); +): Record> => { + return Object.entries(output).reduce((acc: Record>, [key, value]: [string, any]) => { + if (value === null) { + return acc; + } + return { + ...acc, + [key]: deserializeAws_json1_1MapOfStrings(value, context), + }; + }, {}); }; -const deserializeAws_json1_1MapOfStrings = (output: any, context: __SerdeContext): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +const deserializeAws_json1_1MapOfStrings = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -1484,8 +1472,8 @@ const deserializeAws_json1_1MapOfStrings = (output: any, context: __SerdeContext }, {}); }; -const deserializeAws_json1_1MapOfStructs = (output: any, context: __SerdeContext): { [key: string]: SimpleStruct } => { - return Object.entries(output).reduce((acc: { [key: string]: SimpleStruct }, [key, value]: [string, any]) => { +const deserializeAws_json1_1MapOfStructs = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -1618,11 +1606,8 @@ const deserializeAws_json1_1FooEnumList = (output: any, context: __SerdeContext) return retVal; }; -const deserializeAws_json1_1FooEnumMap = ( - output: any, - context: __SerdeContext -): { [key: string]: FooEnum | string } => { - return Object.entries(output).reduce((acc: { [key: string]: FooEnum | string }, [key, value]: [string, any]) => { +const deserializeAws_json1_1FooEnumMap = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -1661,8 +1646,8 @@ const deserializeAws_json1_1SparseStringList = (output: any, context: __SerdeCon return retVal; }; -const deserializeAws_json1_1SparseStringMap = (output: any, context: __SerdeContext): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +const deserializeAws_json1_1SparseStringMap = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return { ...acc, [key]: null as any }; } @@ -1685,8 +1670,8 @@ const deserializeAws_json1_1StringList = (output: any, context: __SerdeContext): return retVal; }; -const deserializeAws_json1_1StringMap = (output: any, context: __SerdeContext): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +const deserializeAws_json1_1StringMap = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } diff --git a/private/aws-protocoltests-query/src/models/models_0.ts b/private/aws-protocoltests-query/src/models/models_0.ts index d406d360bf46..9591e4c94db5 100644 --- a/private/aws-protocoltests-query/src/models/models_0.ts +++ b/private/aws-protocoltests-query/src/models/models_0.ts @@ -60,7 +60,7 @@ export namespace HostLabelInput { } export interface FlattenedXmlMapOutput { - myMap?: { [key: string]: FooEnum | string }; + myMap?: Record; } export namespace FlattenedXmlMapOutput { @@ -73,7 +73,7 @@ export namespace FlattenedXmlMapOutput { } export interface FlattenedXmlMapWithXmlNameOutput { - myMap?: { [key: string]: string }; + myMap?: Record; } export namespace FlattenedXmlMapWithXmlNameOutput { @@ -86,7 +86,7 @@ export namespace FlattenedXmlMapWithXmlNameOutput { } export interface FlattenedXmlMapWithXmlNamespaceOutput { - myMap?: { [key: string]: string }; + myMap?: Record; } export namespace FlattenedXmlMapWithXmlNamespaceOutput { @@ -266,7 +266,7 @@ export namespace QueryListsInput { } export interface NestedStructWithMap { - MapArg?: { [key: string]: string }; + MapArg?: Record; } export namespace NestedStructWithMap { @@ -279,13 +279,13 @@ export namespace NestedStructWithMap { } export interface QueryMapsInput { - MapArg?: { [key: string]: string }; - RenamedMapArg?: { [key: string]: string }; - ComplexMapArg?: { [key: string]: GreetingStruct }; - MapWithXmlMemberName?: { [key: string]: string }; - FlattenedMap?: { [key: string]: string }; - FlattenedMapWithXmlName?: { [key: string]: string }; - MapOfLists?: { [key: string]: string[] }; + MapArg?: Record; + RenamedMapArg?: Record; + ComplexMapArg?: Record; + MapWithXmlMemberName?: Record; + FlattenedMap?: Record; + FlattenedMapWithXmlName?: Record; + MapOfLists?: Record; NestedStructWithMap?: NestedStructWithMap; } @@ -412,7 +412,7 @@ export namespace XmlListsOutput { } export interface XmlMapsOutput { - myMap?: { [key: string]: GreetingStruct }; + myMap?: Record; } export namespace XmlMapsOutput { @@ -430,7 +430,7 @@ export interface XmlEnumsOutput { fooEnum3?: FooEnum | string; fooEnumList?: (FooEnum | string)[]; fooEnumSet?: (FooEnum | string)[]; - fooEnumMap?: { [key: string]: FooEnum | string }; + fooEnumMap?: Record; } export namespace XmlEnumsOutput { @@ -443,7 +443,7 @@ export namespace XmlEnumsOutput { } export interface XmlMapsXmlNameOutput { - myMap?: { [key: string]: GreetingStruct }; + myMap?: Record; } export namespace XmlMapsXmlNameOutput { diff --git a/private/aws-protocoltests-query/src/protocols/Aws_query.ts b/private/aws-protocoltests-query/src/protocols/Aws_query.ts index 0806725b57b6..9720a284aba8 100644 --- a/private/aws-protocoltests-query/src/protocols/Aws_query.ts +++ b/private/aws-protocoltests-query/src/protocols/Aws_query.ts @@ -1750,7 +1750,7 @@ const deserializeAws_queryInvalidGreetingResponse = async ( return __decorateServiceException(exception, body); }; -const serializeAws_queryComplexMap = (input: { [key: string]: GreetingStruct }, context: __SerdeContext): any => { +const serializeAws_queryComplexMap = (input: Record, context: __SerdeContext): any => { const entries: any = {}; let counter = 1; Object.keys(input) @@ -1795,7 +1795,7 @@ const serializeAws_queryListWithXmlName = (input: string[], context: __SerdeCont return entries; }; -const serializeAws_queryMapOfLists = (input: { [key: string]: string[] }, context: __SerdeContext): any => { +const serializeAws_queryMapOfLists = (input: Record, context: __SerdeContext): any => { const entries: any = {}; let counter = 1; Object.keys(input) @@ -1811,7 +1811,7 @@ const serializeAws_queryMapOfLists = (input: { [key: string]: string[] }, contex return entries; }; -const serializeAws_queryMapWithXmlName = (input: { [key: string]: string }, context: __SerdeContext): any => { +const serializeAws_queryMapWithXmlName = (input: Record, context: __SerdeContext): any => { const entries: any = {}; let counter = 1; Object.keys(input) @@ -2085,7 +2085,7 @@ const serializeAws_queryStringList = (input: string[], context: __SerdeContext): return entries; }; -const serializeAws_queryStringMap = (input: { [key: string]: string }, context: __SerdeContext): any => { +const serializeAws_queryStringMap = (input: Record, context: __SerdeContext): any => { const entries: any = {}; let counter = 1; Object.keys(input) @@ -2175,7 +2175,7 @@ const deserializeAws_queryFlattenedXmlMapWithXmlNameOutput = ( const deserializeAws_queryFlattenedXmlMapWithXmlNameOutputMap = ( output: any, context: __SerdeContext -): { [key: string]: string } => { +): Record => { return output.reduce((acc: any, pair: any) => { if (pair["V"] === null) { return acc; @@ -2209,7 +2209,7 @@ const deserializeAws_queryFlattenedXmlMapWithXmlNamespaceOutput = ( const deserializeAws_queryFlattenedXmlMapWithXmlNamespaceOutputMap = ( output: any, context: __SerdeContext -): { [key: string]: string } => { +): Record => { return output.reduce((acc: any, pair: any) => { if (pair["V"] === null) { return acc; @@ -2617,10 +2617,7 @@ const deserializeAws_queryXmlMapsOutput = (output: any, context: __SerdeContext) return contents; }; -const deserializeAws_queryXmlMapsOutputMap = ( - output: any, - context: __SerdeContext -): { [key: string]: GreetingStruct } => { +const deserializeAws_queryXmlMapsOutputMap = (output: any, context: __SerdeContext): Record => { return output.reduce((acc: any, pair: any) => { if (pair["value"] === null) { return acc; @@ -2651,7 +2648,7 @@ const deserializeAws_queryXmlMapsXmlNameOutput = (output: any, context: __SerdeC const deserializeAws_queryXmlMapsXmlNameOutputMap = ( output: any, context: __SerdeContext -): { [key: string]: GreetingStruct } => { +): Record => { return output.reduce((acc: any, pair: any) => { if (pair["Setting"] === null) { return acc; @@ -2748,7 +2745,7 @@ const deserializeAws_queryFooEnumList = (output: any, context: __SerdeContext): }); }; -const deserializeAws_queryFooEnumMap = (output: any, context: __SerdeContext): { [key: string]: FooEnum | string } => { +const deserializeAws_queryFooEnumMap = (output: any, context: __SerdeContext): Record => { return output.reduce((acc: any, pair: any) => { if (pair["value"] === null) { return acc; diff --git a/private/aws-protocoltests-query/test/functional/awsquery.spec.ts b/private/aws-protocoltests-query/test/functional/awsquery.spec.ts index c0294791a35b..12995a38d0da 100644 --- a/private/aws-protocoltests-query/test/functional/awsquery.spec.ts +++ b/private/aws-protocoltests-query/test/functional/awsquery.spec.ts @@ -3082,8 +3082,8 @@ it("QueryXmlTimestampsWithHttpDateFormat:Response", async () => { * discrepancies between the components. */ const compareEquivalentFormUrlencodedBodies = (expectedBody: string, generatedBody: string): Object => { - const fromEntries = (components: string[][]): { [key: string]: string } => { - const parts: { [key: string]: string } = {}; + const fromEntries = (components: string[][]): Record => { + const parts: Record = {}; components.forEach((component) => { parts[component[0]] = component[1]; diff --git a/private/aws-protocoltests-restjson/src/models/models_0.ts b/private/aws-protocoltests-restjson/src/models/models_0.ts index 4c836f81a922..30d4b809814f 100644 --- a/private/aws-protocoltests-restjson/src/models/models_0.ts +++ b/private/aws-protocoltests-restjson/src/models/models_0.ts @@ -48,7 +48,7 @@ export interface AllQueryStringTypesInput { queryTimestampList?: Date[]; queryEnum?: FooEnum | string; queryEnumList?: (FooEnum | string)[]; - queryParamsMapOfStringList?: { [key: string]: string[] }; + queryParamsMapOfStringList?: Record; } export namespace AllQueryStringTypesInput { @@ -328,7 +328,7 @@ export namespace HttpPayloadWithStructureInputOutput { export interface HttpPrefixHeadersInput { foo?: string; - fooMap?: { [key: string]: string }; + fooMap?: Record; } export namespace HttpPrefixHeadersInput { @@ -342,7 +342,7 @@ export namespace HttpPrefixHeadersInput { export interface HttpPrefixHeadersOutput { foo?: string; - fooMap?: { [key: string]: string }; + fooMap?: Record; } export namespace HttpPrefixHeadersOutput { @@ -366,7 +366,7 @@ export namespace HttpPrefixHeadersInResponseInput { } export interface HttpPrefixHeadersInResponseOutput { - prefixHeaders?: { [key: string]: string }; + prefixHeaders?: Record; } export namespace HttpPrefixHeadersInResponseOutput { @@ -551,7 +551,7 @@ export interface JsonEnumsInputOutput { fooEnum3?: FooEnum | string; fooEnumList?: (FooEnum | string)[]; fooEnumSet?: (FooEnum | string)[]; - fooEnumMap?: { [key: string]: FooEnum | string }; + fooEnumMap?: Record; } export namespace JsonEnumsInputOutput { @@ -603,16 +603,16 @@ export namespace JsonListsInputOutput { } export interface JsonMapsInputOutput { - denseStructMap?: { [key: string]: GreetingStruct }; - sparseStructMap?: { [key: string]: GreetingStruct }; - denseNumberMap?: { [key: string]: number }; - denseBooleanMap?: { [key: string]: boolean }; - denseStringMap?: { [key: string]: string }; - sparseNumberMap?: { [key: string]: number }; - sparseBooleanMap?: { [key: string]: boolean }; - sparseStringMap?: { [key: string]: string }; - denseSetMap?: { [key: string]: string[] }; - sparseSetMap?: { [key: string]: string[] }; + denseStructMap?: Record; + sparseStructMap?: Record; + denseNumberMap?: Record; + denseBooleanMap?: Record; + denseStringMap?: Record; + sparseNumberMap?: Record; + sparseBooleanMap?: Record; + sparseStringMap?: Record; + denseSetMap?: Record; + sparseSetMap?: Record; } export namespace JsonMapsInputOutput { @@ -776,7 +776,7 @@ export namespace MyUnion { timestampValue?: never; enumValue?: never; listValue?: never; - mapValue: { [key: string]: string }; + mapValue: Record; structureValue?: never; renamedStructureValue?: never; $unknown?: never; @@ -832,7 +832,7 @@ export namespace MyUnion { timestampValue: (value: Date) => T; enumValue: (value: FooEnum | string) => T; listValue: (value: string[]) => T; - mapValue: (value: { [key: string]: string }) => T; + mapValue: (value: Record) => T; structureValue: (value: GreetingStruct) => T; renamedStructureValue: (value: RenamedGreeting) => T; _: (name: string, value: any) => T; @@ -1067,7 +1067,7 @@ export namespace MalformedLongInput { } export interface MalformedMapInput { - bodyMap?: { [key: string]: string }; + bodyMap?: Record; } export namespace MalformedMapInput { @@ -1517,7 +1517,7 @@ export namespace QueryIdempotencyTokenAutoFillInput { export interface QueryParamsAsStringListMapInput { qux?: string; - foo?: { [key: string]: string[] }; + foo?: Record; } export namespace QueryParamsAsStringListMapInput { @@ -1531,7 +1531,7 @@ export namespace QueryParamsAsStringListMapInput { export interface QueryPrecedenceInput { foo?: string; - baz?: { [key: string]: string }; + baz?: Record; } export namespace QueryPrecedenceInput { diff --git a/private/aws-protocoltests-restjson/src/protocols/Aws_restJson1.ts b/private/aws-protocoltests-restjson/src/protocols/Aws_restJson1.ts index 1987250e2162..bac91ac293c4 100644 --- a/private/aws-protocoltests-restjson/src/protocols/Aws_restJson1.ts +++ b/private/aws-protocoltests-restjson/src/protocols/Aws_restJson1.ts @@ -3466,7 +3466,7 @@ export const deserializeAws_restJson1HttpPayloadWithStructureCommand = async ( $metadata: deserializeMetadata(output), nested: undefined, }; - const data: { [key: string]: any } | undefined = __expectObject(await parseBody(output.body, context)); + const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.nested = deserializeAws_restJson1NestedPayload(data, context); return Promise.resolve(contents); }; @@ -6363,7 +6363,7 @@ export const deserializeAws_restJson1TestPayloadStructureCommand = async ( if (output.headers["x-amz-test-id"] !== undefined) { contents.testId = output.headers["x-amz-test-id"]; } - const data: { [key: string]: any } | undefined = __expectObject(await parseBody(output.body, context)); + const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.payloadConfig = deserializeAws_restJson1PayloadConfig(data, context); return Promise.resolve(contents); }; @@ -6555,7 +6555,7 @@ const serializeAws_restJson1BlobSet = (input: Uint8Array[], context: __SerdeCont }); }; -const serializeAws_restJson1DenseBooleanMap = (input: { [key: string]: boolean }, context: __SerdeContext): any => { +const serializeAws_restJson1DenseBooleanMap = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -6567,7 +6567,7 @@ const serializeAws_restJson1DenseBooleanMap = (input: { [key: string]: boolean } }, {}); }; -const serializeAws_restJson1DenseNumberMap = (input: { [key: string]: number }, context: __SerdeContext): any => { +const serializeAws_restJson1DenseNumberMap = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -6579,7 +6579,7 @@ const serializeAws_restJson1DenseNumberMap = (input: { [key: string]: number }, }, {}); }; -const serializeAws_restJson1DenseSetMap = (input: { [key: string]: string[] }, context: __SerdeContext): any => { +const serializeAws_restJson1DenseSetMap = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -6591,7 +6591,7 @@ const serializeAws_restJson1DenseSetMap = (input: { [key: string]: string[] }, c }, {}); }; -const serializeAws_restJson1DenseStringMap = (input: { [key: string]: string }, context: __SerdeContext): any => { +const serializeAws_restJson1DenseStringMap = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -6603,10 +6603,7 @@ const serializeAws_restJson1DenseStringMap = (input: { [key: string]: string }, }, {}); }; -const serializeAws_restJson1DenseStructMap = ( - input: { [key: string]: GreetingStruct }, - context: __SerdeContext -): any => { +const serializeAws_restJson1DenseStructMap = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -6697,7 +6694,7 @@ const serializeAws_restJson1SimpleList = (input: string[], context: __SerdeConte }); }; -const serializeAws_restJson1SimpleMap = (input: { [key: string]: string }, context: __SerdeContext): any => { +const serializeAws_restJson1SimpleMap = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -6728,7 +6725,7 @@ const serializeAws_restJson1SimpleUnion = (input: SimpleUnion, context: __SerdeC }); }; -const serializeAws_restJson1SparseBooleanMap = (input: { [key: string]: boolean }, context: __SerdeContext): any => { +const serializeAws_restJson1SparseBooleanMap = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return { ...acc, [key]: null as any }; @@ -6740,7 +6737,7 @@ const serializeAws_restJson1SparseBooleanMap = (input: { [key: string]: boolean }, {}); }; -const serializeAws_restJson1SparseNumberMap = (input: { [key: string]: number }, context: __SerdeContext): any => { +const serializeAws_restJson1SparseNumberMap = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return { ...acc, [key]: null as any }; @@ -6752,7 +6749,7 @@ const serializeAws_restJson1SparseNumberMap = (input: { [key: string]: number }, }, {}); }; -const serializeAws_restJson1SparseSetMap = (input: { [key: string]: string[] }, context: __SerdeContext): any => { +const serializeAws_restJson1SparseSetMap = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return { ...acc, [key]: null as any }; @@ -6764,10 +6761,7 @@ const serializeAws_restJson1SparseSetMap = (input: { [key: string]: string[] }, }, {}); }; -const serializeAws_restJson1SparseStructMap = ( - input: { [key: string]: GreetingStruct }, - context: __SerdeContext -): any => { +const serializeAws_restJson1SparseStructMap = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return { ...acc, [key]: null as any }; @@ -6831,7 +6825,7 @@ const serializeAws_restJson1FooEnumList = (input: (FooEnum | string)[], context: }); }; -const serializeAws_restJson1FooEnumMap = (input: { [key: string]: FooEnum | string }, context: __SerdeContext): any => { +const serializeAws_restJson1FooEnumMap = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -6891,7 +6885,7 @@ const serializeAws_restJson1SparseStringList = (input: string[], context: __Serd }); }; -const serializeAws_restJson1SparseStringMap = (input: { [key: string]: string }, context: __SerdeContext): any => { +const serializeAws_restJson1SparseStringMap = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return { ...acc, [key]: null as any }; @@ -6914,7 +6908,7 @@ const serializeAws_restJson1StringList = (input: string[], context: __SerdeConte }); }; -const serializeAws_restJson1StringMap = (input: { [key: string]: string }, context: __SerdeContext): any => { +const serializeAws_restJson1StringMap = (input: Record, context: __SerdeContext): any => { return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => { if (value === null) { return acc; @@ -6961,8 +6955,8 @@ const deserializeAws_restJson1ComplexNestedErrorData = ( } as any; }; -const deserializeAws_restJson1DenseBooleanMap = (output: any, context: __SerdeContext): { [key: string]: boolean } => { - return Object.entries(output).reduce((acc: { [key: string]: boolean }, [key, value]: [string, any]) => { +const deserializeAws_restJson1DenseBooleanMap = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -6973,8 +6967,8 @@ const deserializeAws_restJson1DenseBooleanMap = (output: any, context: __SerdeCo }, {}); }; -const deserializeAws_restJson1DenseNumberMap = (output: any, context: __SerdeContext): { [key: string]: number } => { - return Object.entries(output).reduce((acc: { [key: string]: number }, [key, value]: [string, any]) => { +const deserializeAws_restJson1DenseNumberMap = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -6985,8 +6979,8 @@ const deserializeAws_restJson1DenseNumberMap = (output: any, context: __SerdeCon }, {}); }; -const deserializeAws_restJson1DenseSetMap = (output: any, context: __SerdeContext): { [key: string]: string[] } => { - return Object.entries(output).reduce((acc: { [key: string]: string[] }, [key, value]: [string, any]) => { +const deserializeAws_restJson1DenseSetMap = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -6997,8 +6991,8 @@ const deserializeAws_restJson1DenseSetMap = (output: any, context: __SerdeContex }, {}); }; -const deserializeAws_restJson1DenseStringMap = (output: any, context: __SerdeContext): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +const deserializeAws_restJson1DenseStringMap = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -7012,8 +7006,8 @@ const deserializeAws_restJson1DenseStringMap = (output: any, context: __SerdeCon const deserializeAws_restJson1DenseStructMap = ( output: any, context: __SerdeContext -): { [key: string]: GreetingStruct } => { - return Object.entries(output).reduce((acc: { [key: string]: GreetingStruct }, [key, value]: [string, any]) => { +): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -7122,8 +7116,8 @@ const deserializeAws_restJson1RecursiveShapesInputOutputNested2 = ( } as any; }; -const deserializeAws_restJson1SparseBooleanMap = (output: any, context: __SerdeContext): { [key: string]: boolean } => { - return Object.entries(output).reduce((acc: { [key: string]: boolean }, [key, value]: [string, any]) => { +const deserializeAws_restJson1SparseBooleanMap = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return { ...acc, [key]: null as any }; } @@ -7134,8 +7128,8 @@ const deserializeAws_restJson1SparseBooleanMap = (output: any, context: __SerdeC }, {}); }; -const deserializeAws_restJson1SparseNumberMap = (output: any, context: __SerdeContext): { [key: string]: number } => { - return Object.entries(output).reduce((acc: { [key: string]: number }, [key, value]: [string, any]) => { +const deserializeAws_restJson1SparseNumberMap = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return { ...acc, [key]: null as any }; } @@ -7146,8 +7140,8 @@ const deserializeAws_restJson1SparseNumberMap = (output: any, context: __SerdeCo }, {}); }; -const deserializeAws_restJson1SparseSetMap = (output: any, context: __SerdeContext): { [key: string]: string[] } => { - return Object.entries(output).reduce((acc: { [key: string]: string[] }, [key, value]: [string, any]) => { +const deserializeAws_restJson1SparseSetMap = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return { ...acc, [key]: null as any }; } @@ -7161,8 +7155,8 @@ const deserializeAws_restJson1SparseSetMap = (output: any, context: __SerdeConte const deserializeAws_restJson1SparseStructMap = ( output: any, context: __SerdeContext -): { [key: string]: GreetingStruct } => { - return Object.entries(output).reduce((acc: { [key: string]: GreetingStruct }, [key, value]: [string, any]) => { +): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return { ...acc, [key]: null as any }; } @@ -7228,11 +7222,8 @@ const deserializeAws_restJson1FooEnumList = (output: any, context: __SerdeContex return retVal; }; -const deserializeAws_restJson1FooEnumMap = ( - output: any, - context: __SerdeContext -): { [key: string]: FooEnum | string } => { - return Object.entries(output).reduce((acc: { [key: string]: FooEnum | string }, [key, value]: [string, any]) => { +const deserializeAws_restJson1FooEnumMap = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } @@ -7295,8 +7286,8 @@ const deserializeAws_restJson1SparseStringList = (output: any, context: __SerdeC return retVal; }; -const deserializeAws_restJson1SparseStringMap = (output: any, context: __SerdeContext): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +const deserializeAws_restJson1SparseStringMap = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return { ...acc, [key]: null as any }; } @@ -7319,8 +7310,8 @@ const deserializeAws_restJson1StringList = (output: any, context: __SerdeContext return retVal; }; -const deserializeAws_restJson1StringMap = (output: any, context: __SerdeContext): { [key: string]: string } => { - return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => { +const deserializeAws_restJson1StringMap = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { if (value === null) { return acc; } diff --git a/private/aws-protocoltests-restxml/src/models/models_0.ts b/private/aws-protocoltests-restxml/src/models/models_0.ts index 2acd1ce52463..8a4af980ae6c 100644 --- a/private/aws-protocoltests-restxml/src/models/models_0.ts +++ b/private/aws-protocoltests-restxml/src/models/models_0.ts @@ -43,7 +43,7 @@ export interface AllQueryStringTypesInput { queryTimestampList?: Date[]; queryEnum?: FooEnum | string; queryEnumList?: (FooEnum | string)[]; - queryParamsMapOfStrings?: { [key: string]: string }; + queryParamsMapOfStrings?: Record; } export namespace AllQueryStringTypesInput { @@ -195,7 +195,7 @@ export namespace HostLabelInput { } export interface FlattenedXmlMapInputOutput { - myMap?: { [key: string]: FooEnum | string }; + myMap?: Record; } export namespace FlattenedXmlMapInputOutput { @@ -208,7 +208,7 @@ export namespace FlattenedXmlMapInputOutput { } export interface FlattenedXmlMapWithXmlNameInputOutput { - myMap?: { [key: string]: string }; + myMap?: Record; } export namespace FlattenedXmlMapWithXmlNameInputOutput { @@ -221,7 +221,7 @@ export namespace FlattenedXmlMapWithXmlNameInputOutput { } export interface FlattenedXmlMapWithXmlNamespaceOutput { - myMap?: { [key: string]: string }; + myMap?: Record; } export namespace FlattenedXmlMapWithXmlNamespaceOutput { @@ -402,7 +402,7 @@ export namespace HttpPayloadWithXmlNamespaceAndPrefixInputOutput { export interface HttpPrefixHeadersInputOutput { foo?: string; - fooMap?: { [key: string]: string }; + fooMap?: Record; } export namespace HttpPrefixHeadersInputOutput { @@ -543,8 +543,8 @@ export namespace InputAndOutputWithHeadersIO { } export interface NestedXmlMapsInputOutput { - nestedMap?: { [key: string]: { [key: string]: FooEnum | string } }; - flatNestedMap?: { [key: string]: { [key: string]: FooEnum | string } }; + nestedMap?: Record>; + flatNestedMap?: Record>; } export namespace NestedXmlMapsInputOutput { @@ -611,7 +611,7 @@ export namespace QueryIdempotencyTokenAutoFillInput { export interface QueryParamsAsStringListMapInput { qux?: string; - foo?: { [key: string]: string[] }; + foo?: Record; } export namespace QueryParamsAsStringListMapInput { @@ -625,7 +625,7 @@ export namespace QueryParamsAsStringListMapInput { export interface QueryPrecedenceInput { foo?: string; - baz?: { [key: string]: string }; + baz?: Record; } export namespace QueryPrecedenceInput { @@ -763,7 +763,7 @@ export namespace XmlListsInputOutput { } export interface XmlMapsInputOutput { - myMap?: { [key: string]: GreetingStruct }; + myMap?: Record; } export namespace XmlMapsInputOutput { @@ -794,7 +794,7 @@ export interface XmlEnumsInputOutput { fooEnum3?: FooEnum | string; fooEnumList?: (FooEnum | string)[]; fooEnumSet?: (FooEnum | string)[]; - fooEnumMap?: { [key: string]: FooEnum | string }; + fooEnumMap?: Record; } export namespace XmlEnumsInputOutput { @@ -807,7 +807,7 @@ export namespace XmlEnumsInputOutput { } export interface XmlMapsXmlNameInputOutput { - myMap?: { [key: string]: GreetingStruct }; + myMap?: Record; } export namespace XmlMapsXmlNameInputOutput { diff --git a/private/aws-protocoltests-restxml/src/protocols/Aws_restXml.ts b/private/aws-protocoltests-restxml/src/protocols/Aws_restXml.ts index 1e8b9df856d0..9c11760b0e1e 100644 --- a/private/aws-protocoltests-restxml/src/protocols/Aws_restXml.ts +++ b/private/aws-protocoltests-restxml/src/protocols/Aws_restXml.ts @@ -2808,7 +2808,7 @@ export const deserializeAws_restXmlHttpPayloadWithMemberXmlNameCommand = async ( $metadata: deserializeMetadata(output), nested: undefined, }; - const data: { [key: string]: any } | undefined = __expectObject(await parseBody(output.body, context)); + const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.nested = deserializeAws_restXmlPayloadWithXmlName(data, context); return Promise.resolve(contents); }; @@ -2847,7 +2847,7 @@ export const deserializeAws_restXmlHttpPayloadWithStructureCommand = async ( $metadata: deserializeMetadata(output), nested: undefined, }; - const data: { [key: string]: any } | undefined = __expectObject(await parseBody(output.body, context)); + const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.nested = deserializeAws_restXmlNestedPayload(data, context); return Promise.resolve(contents); }; @@ -2886,7 +2886,7 @@ export const deserializeAws_restXmlHttpPayloadWithXmlNameCommand = async ( $metadata: deserializeMetadata(output), nested: undefined, }; - const data: { [key: string]: any } | undefined = __expectObject(await parseBody(output.body, context)); + const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.nested = deserializeAws_restXmlPayloadWithXmlName(data, context); return Promise.resolve(contents); }; @@ -2925,7 +2925,7 @@ export const deserializeAws_restXmlHttpPayloadWithXmlNamespaceCommand = async ( $metadata: deserializeMetadata(output), nested: undefined, }; - const data: { [key: string]: any } | undefined = __expectObject(await parseBody(output.body, context)); + const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.nested = deserializeAws_restXmlPayloadWithXmlNamespace(data, context); return Promise.resolve(contents); }; @@ -2964,7 +2964,7 @@ export const deserializeAws_restXmlHttpPayloadWithXmlNamespaceAndPrefixCommand = $metadata: deserializeMetadata(output), nested: undefined, }; - const data: { [key: string]: any } | undefined = __expectObject(await parseBody(output.body, context)); + const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.nested = deserializeAws_restXmlPayloadWithXmlNamespaceAndPrefix(data, context); return Promise.resolve(contents); }; @@ -3989,7 +3989,7 @@ export const deserializeAws_restXmlXmlAttributesOnPayloadCommand = async ( $metadata: deserializeMetadata(output), payload: undefined, }; - const data: { [key: string]: any } | undefined = __expectObject(await parseBody(output.body, context)); + const data: Record | undefined = __expectObject(await parseBody(output.body, context)); contents.payload = deserializeAws_restXmlXmlAttributesInputOutput(data, context); return Promise.resolve(contents); }; @@ -4876,7 +4876,7 @@ const deserializeAws_restXmlInvalidGreetingResponse = async ( }; const serializeAws_restXmlFlattenedXmlMapWithXmlNameInputOutputMap = ( - input: { [key: string]: string }, + input: Record, context: __SerdeContext ): any => { return Object.keys(input) @@ -4918,7 +4918,7 @@ const serializeAws_restXmlListWithNamespace = (input: string[], context: __Serde }; const serializeAws_restXmlNestedMap = ( - input: { [key: string]: { [key: string]: FooEnum | string } }, + input: Record>, context: __SerdeContext ): any => { return Object.keys(input) @@ -5068,7 +5068,7 @@ const serializeAws_restXmlXmlAttributesInputOutput = ( }; const serializeAws_restXmlXmlMapsInputOutputMap = ( - input: { [key: string]: GreetingStruct }, + input: Record, context: __SerdeContext ): any => { return Object.keys(input) @@ -5085,7 +5085,7 @@ const serializeAws_restXmlXmlMapsInputOutputMap = ( }; const serializeAws_restXmlXmlMapsXmlNameInputOutputMap = ( - input: { [key: string]: GreetingStruct }, + input: Record, context: __SerdeContext ): any => { return Object.keys(input) @@ -5251,7 +5251,7 @@ const serializeAws_restXmlFooEnumList = (input: (FooEnum | string)[], context: _ }); }; -const serializeAws_restXmlFooEnumMap = (input: { [key: string]: FooEnum | string }, context: __SerdeContext): any => { +const serializeAws_restXmlFooEnumMap = (input: Record, context: __SerdeContext): any => { return Object.keys(input) .filter((key) => input[key] != null) .map((key) => { @@ -5361,7 +5361,7 @@ const deserializeAws_restXmlComplexNestedErrorData = (output: any, context: __Se const deserializeAws_restXmlFlattenedXmlMapWithXmlNameInputOutputMap = ( output: any, context: __SerdeContext -): { [key: string]: string } => { +): Record => { return output.reduce((acc: any, pair: any) => { if (pair["V"] === null) { return acc; @@ -5376,7 +5376,7 @@ const deserializeAws_restXmlFlattenedXmlMapWithXmlNameInputOutputMap = ( const deserializeAws_restXmlFlattenedXmlMapWithXmlNamespaceOutputMap = ( output: any, context: __SerdeContext -): { [key: string]: string } => { +): Record => { return output.reduce((acc: any, pair: any) => { if (pair["V"] === null) { return acc; @@ -5413,7 +5413,7 @@ const deserializeAws_restXmlListWithNamespace = (output: any, context: __SerdeCo const deserializeAws_restXmlNestedMap = ( output: any, context: __SerdeContext -): { [key: string]: { [key: string]: FooEnum | string } } => { +): Record> => { return output.reduce((acc: any, pair: any) => { if (__getArrayIfSingleItem(pair["value"]["entry"]) === null) { return acc; @@ -5568,7 +5568,7 @@ const deserializeAws_restXmlXmlAttributesInputOutput = ( const deserializeAws_restXmlXmlMapsInputOutputMap = ( output: any, context: __SerdeContext -): { [key: string]: GreetingStruct } => { +): Record => { return output.reduce((acc: any, pair: any) => { if (pair["value"] === null) { return acc; @@ -5583,7 +5583,7 @@ const deserializeAws_restXmlXmlMapsInputOutputMap = ( const deserializeAws_restXmlXmlMapsXmlNameInputOutputMap = ( output: any, context: __SerdeContext -): { [key: string]: GreetingStruct } => { +): Record => { return output.reduce((acc: any, pair: any) => { if (pair["Setting"] === null) { return acc; @@ -5740,10 +5740,7 @@ const deserializeAws_restXmlFooEnumList = (output: any, context: __SerdeContext) }); }; -const deserializeAws_restXmlFooEnumMap = ( - output: any, - context: __SerdeContext -): { [key: string]: FooEnum | string } => { +const deserializeAws_restXmlFooEnumMap = (output: any, context: __SerdeContext): Record => { return output.reduce((acc: any, pair: any) => { if (pair["value"] === null) { return acc;