diff --git a/.prettierignore b/.prettierignore index 0c84c918aa8b7..1cd4412b36851 100644 --- a/.prettierignore +++ b/.prettierignore @@ -3,3 +3,4 @@ CHANGELOG.md .github/* **/*.hbs **/*/report.md +**/*/ruleset.ts diff --git a/clients/client-accessanalyzer/src/endpoint/ruleset.ts b/clients/client-accessanalyzer/src/endpoint/ruleset.ts index 426ef0ff8b381..275fb5738796f 100644 --- a/clients/client-accessanalyzer/src/endpoint/ruleset.ts +++ b/clients/client-accessanalyzer/src/endpoint/ruleset.ts @@ -1,320 +1,31 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: true, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://access-analyzer-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://access-analyzer-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://access-analyzer.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://access-analyzer.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/accessanalyzer.json */ + +const s="fn", +t="argv", +u="ref"; +const a=true, +b=false, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i={[u]:"Endpoint"}, +j={[s]:"booleanEquals",[t]:[{[u]:"UseFIPS"},true]}, +k={[s]:"booleanEquals",[t]:[{[u]:"UseDualStack"},true]}, +l={}, +m={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsFIPS"]}]}, +n={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsDualStack"]}]}, +o=[i], +p=[j], +q=[], +r=[k]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:a,default:b,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:a,default:b,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:b,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[s]:"aws.partition",[t]:[{[u]:"Region"}],assign:e}],type:f,rules:[{conditions:[{[s]:"isSet",[t]:o},{[s]:"parseURL",[t]:o,assign:"url"}],type:f,rules:[{conditions:p,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:q,type:f,rules:[{conditions:r,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:q,endpoint:{url:i,properties:l,headers:l},type:h}]}]},{conditions:[j,k],type:f,rules:[{conditions:[m,n],type:f,rules:[{conditions:q,endpoint:{url:"https://access-analyzer-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:p,type:f,rules:[{conditions:[m],type:f,rules:[{conditions:q,type:f,rules:[{conditions:q,endpoint:{url:"https://access-analyzer-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]},{conditions:q,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:r,type:f,rules:[{conditions:[n],type:f,rules:[{conditions:q,endpoint:{url:"https://access-analyzer.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:q,endpoint:{url:"https://access-analyzer.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-account/src/endpoint/ruleset.ts b/clients/client-account/src/endpoint/ruleset.ts index 245e0672b8dd2..9de8ff9c0b3ef 100644 --- a/clients/client-account/src/endpoint/ruleset.ts +++ b/clients/client-account/src/endpoint/ruleset.ts @@ -1,866 +1,48 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: false, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "stringEquals", - argv: [ - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "name", - ], - }, - "aws", - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://account-fips.{Region}.api.aws", - properties: { - authSchemes: [ - { - name: "sigv4", - signingName: "account", - signingRegion: "us-east-1", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://account-fips.{Region}.amazonaws.com", - properties: { - authSchemes: [ - { - name: "sigv4", - signingName: "account", - signingRegion: "us-east-1", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://account.{Region}.api.aws", - properties: { - authSchemes: [ - { - name: "sigv4", - signingName: "account", - signingRegion: "us-east-1", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://account.us-east-1.amazonaws.com", - properties: { - authSchemes: [ - { - name: "sigv4", - signingName: "account", - signingRegion: "us-east-1", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [ - { - fn: "stringEquals", - argv: [ - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "name", - ], - }, - "aws-cn", - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://account-fips.{Region}.api.amazonwebservices.com.cn", - properties: { - authSchemes: [ - { - name: "sigv4", - signingName: "account", - signingRegion: "cn-northwest-1", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://account-fips.{Region}.amazonaws.com.cn", - properties: { - authSchemes: [ - { - name: "sigv4", - signingName: "account", - signingRegion: "cn-northwest-1", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://account.{Region}.api.amazonwebservices.com.cn", - properties: { - authSchemes: [ - { - name: "sigv4", - signingName: "account", - signingRegion: "cn-northwest-1", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://account.cn-northwest-1.amazonaws.com.cn", - properties: { - authSchemes: [ - { - name: "sigv4", - signingName: "account", - signingRegion: "cn-northwest-1", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://account-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://account-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://account.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "stringEquals", - argv: [ - { - ref: "Region", - }, - "aws-global", - ], - }, - ], - endpoint: { - url: "https://account.us-east-1.amazonaws.com", - properties: { - authSchemes: [ - { - name: "sigv4", - signingName: "account", - signingRegion: "us-east-1", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - { - conditions: [ - { - fn: "stringEquals", - argv: [ - { - ref: "Region", - }, - "aws-cn-global", - ], - }, - ], - endpoint: { - url: "https://account.cn-northwest-1.amazonaws.com.cn", - properties: { - authSchemes: [ - { - name: "sigv4", - signingName: "account", - signingRegion: "cn-northwest-1", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - { - conditions: [], - endpoint: { - url: "https://account.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/account.json */ + +const C="type", +D="conditions", +E="fn", +F="argv", +G="ref", +H="properties", +I="headers", +J="authSchemes", +K="signingName", +L="signingRegion"; +const a=false, +b=true, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i="stringEquals", +j={[G]:"Region"}, +k={[G]:"Endpoint"}, +l={}, +m={[E]:"getAttr",[F]:[{[G]:e},"name"]}, +n={[J]:[{"name":"sigv4",[K]:"account",[L]:"us-east-1"}]}, +o={[D]:[],[g]:"FIPS and DualStack are enabled, but this partition does not support one or both",[C]:g}, +p={[D]:[],[g]:"FIPS is enabled but this partition does not support FIPS",[C]:g}, +q={[D]:[],[g]:"DualStack is enabled but this partition does not support DualStack",[C]:g}, +r={"url":"https://account.us-east-1.amazonaws.com",[H]:n,[I]:{}}, +s={[J]:[{"name":"sigv4",[K]:"account",[L]:"cn-northwest-1"}]}, +t={"url":"https://account.cn-northwest-1.amazonaws.com.cn",[H]:s,[I]:{}}, +u=[k], +v=[{[E]:"booleanEquals",[F]:[{[G]:"UseFIPS"},true]}], +w=[], +x=[{[E]:"booleanEquals",[F]:[{[G]:"UseDualStack"},true]}], +y=[{[E]:"booleanEquals",[F]:[{[G]:"UseFIPS"},true]},{[E]:"booleanEquals",[F]:[{[G]:"UseDualStack"},true]}], +z=[{[E]:"booleanEquals",[F]:[true,{[E]:"getAttr",[F]:[{[G]:e},"supportsFIPS"]}]},{[E]:"booleanEquals",[F]:[true,{[E]:"getAttr",[F]:[{[G]:e},"supportsDualStack"]}]}], +A=[{[E]:"booleanEquals",[F]:[true,{[E]:"getAttr",[F]:[{[G]:e},"supportsFIPS"]}]}], +B=[{[E]:"booleanEquals",[F]:[true,{[E]:"getAttr",[F]:[{[G]:e},"supportsDualStack"]}]}]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",[C]:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:b,default:a,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",[C]:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:b,default:a,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",[C]:d},Endpoint:{builtIn:"SDK::Endpoint",required:a,documentation:"Override the endpoint used to send this request",[C]:c}},rules:[{[D]:[{[E]:"aws.partition",[F]:[j],assign:e}],[C]:f,rules:[{[D]:[{[E]:"isSet",[F]:u},{[E]:"parseURL",[F]:u,assign:"url"}],[C]:f,rules:[{[D]:v,error:"Invalid Configuration: FIPS and custom endpoint are not supported",[C]:g},{[D]:w,[C]:f,rules:[{[D]:x,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",[C]:g},{[D]:w,endpoint:{url:k,[H]:l,[I]:l},[C]:h}]}]},{[D]:[{[E]:i,[F]:[m,"aws"]}],[C]:f,rules:[{[D]:y,[C]:f,rules:[{[D]:z,[C]:f,rules:[{[D]:w,endpoint:{url:"https://account-fips.{Region}.api.aws",[H]:n,[I]:l},[C]:h}]},o]},{[D]:v,[C]:f,rules:[{[D]:A,[C]:f,rules:[{[D]:w,endpoint:{url:"https://account-fips.{Region}.amazonaws.com",[H]:n,[I]:l},[C]:h}]},p]},{[D]:x,[C]:f,rules:[{[D]:B,[C]:f,rules:[{[D]:w,endpoint:{url:"https://account.{Region}.api.aws",[H]:n,[I]:l},[C]:h}]},q]},{[D]:w,endpoint:r,[C]:h}]},{[D]:[{[E]:i,[F]:[m,"aws-cn"]}],[C]:f,rules:[{[D]:y,[C]:f,rules:[{[D]:z,[C]:f,rules:[{[D]:w,endpoint:{url:"https://account-fips.{Region}.api.amazonwebservices.com.cn",[H]:s,[I]:l},[C]:h}]},o]},{[D]:v,[C]:f,rules:[{[D]:A,[C]:f,rules:[{[D]:w,endpoint:{url:"https://account-fips.{Region}.amazonaws.com.cn",[H]:s,[I]:l},[C]:h}]},p]},{[D]:x,[C]:f,rules:[{[D]:B,[C]:f,rules:[{[D]:w,endpoint:{url:"https://account.{Region}.api.amazonwebservices.com.cn",[H]:s,[I]:l},[C]:h}]},q]},{[D]:w,endpoint:t,[C]:h}]},{[D]:y,[C]:f,rules:[{[D]:z,[C]:f,rules:[{[D]:w,endpoint:{url:"https://account-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",[H]:l,[I]:l},[C]:h}]},o]},{[D]:v,[C]:f,rules:[{[D]:A,[C]:f,rules:[{[D]:w,[C]:f,rules:[{[D]:w,endpoint:{url:"https://account-fips.{Region}.{PartitionResult#dnsSuffix}",[H]:l,[I]:l},[C]:h}]}]},p]},{[D]:x,[C]:f,rules:[{[D]:B,[C]:f,rules:[{[D]:w,endpoint:{url:"https://account.{Region}.{PartitionResult#dualStackDnsSuffix}",[H]:l,[I]:l},[C]:h}]},q]},{[D]:w,[C]:f,rules:[{[D]:[{[E]:i,[F]:[j,"aws-global"]}],endpoint:r,[C]:h},{[D]:[{[E]:i,[F]:[j,"aws-cn-global"]}],endpoint:t,[C]:h},{[D]:w,endpoint:{url:"https://account.{Region}.{PartitionResult#dnsSuffix}",[H]:l,[I]:l},[C]:h}]}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-acm-pca/src/endpoint/ruleset.ts b/clients/client-acm-pca/src/endpoint/ruleset.ts index 792c334792529..35444f1242639 100644 --- a/clients/client-acm-pca/src/endpoint/ruleset.ts +++ b/clients/client-acm-pca/src/endpoint/ruleset.ts @@ -1,345 +1,34 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: false, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://acm-pca-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "stringEquals", - argv: [ - "aws-us-gov", - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "name", - ], - }, - ], - }, - ], - endpoint: { - url: "https://acm-pca.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - { - conditions: [], - endpoint: { - url: "https://acm-pca-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://acm-pca.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://acm-pca.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/acm-pca.json */ + +const v="fn", +w="argv", +x="ref"; +const a=false, +b=true, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i="getAttr", +j={[x]:"Endpoint"}, +k={[v]:"booleanEquals",[w]:[{[x]:"UseFIPS"},true]}, +l={[v]:"booleanEquals",[w]:[{[x]:"UseDualStack"},true]}, +m={}, +n={[v]:"booleanEquals",[w]:[true,{[v]:i,[w]:[{[x]:e},"supportsFIPS"]}]}, +o={[x]:e}, +p={[v]:"booleanEquals",[w]:[true,{[v]:i,[w]:[o,"supportsDualStack"]}]}, +q={"url":"https://acm-pca.{Region}.{PartitionResult#dnsSuffix}","properties":{},"headers":{}}, +r=[j], +s=[k], +t=[], +u=[l]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:b,default:a,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:b,default:a,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:a,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[v]:"aws.partition",[w]:[{[x]:"Region"}],assign:e}],type:f,rules:[{conditions:[{[v]:"isSet",[w]:r},{[v]:"parseURL",[w]:r,assign:"url"}],type:f,rules:[{conditions:s,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:t,type:f,rules:[{conditions:u,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:t,endpoint:{url:j,properties:m,headers:m},type:h}]}]},{conditions:[k,l],type:f,rules:[{conditions:[n,p],type:f,rules:[{conditions:t,endpoint:{url:"https://acm-pca-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:m,headers:m},type:h}]},{conditions:t,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:s,type:f,rules:[{conditions:[n],type:f,rules:[{conditions:t,type:f,rules:[{conditions:[{[v]:"stringEquals",[w]:["aws-us-gov",{[v]:i,[w]:[o,"name"]}]}],endpoint:q,type:h},{conditions:t,endpoint:{url:"https://acm-pca-fips.{Region}.{PartitionResult#dnsSuffix}",properties:m,headers:m},type:h}]}]},{conditions:t,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:u,type:f,rules:[{conditions:[p],type:f,rules:[{conditions:t,endpoint:{url:"https://acm-pca.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:m,headers:m},type:h}]},{conditions:t,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:t,endpoint:q,type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-acm/src/endpoint/ruleset.ts b/clients/client-acm/src/endpoint/ruleset.ts index ae4d16fa3bc11..bb8a8de43ba02 100644 --- a/clients/client-acm/src/endpoint/ruleset.ts +++ b/clients/client-acm/src/endpoint/ruleset.ts @@ -1,345 +1,34 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: false, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://acm-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "stringEquals", - argv: [ - "aws-us-gov", - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "name", - ], - }, - ], - }, - ], - endpoint: { - url: "https://acm.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - { - conditions: [], - endpoint: { - url: "https://acm-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://acm.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://acm.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/acm.json */ + +const v="fn", +w="argv", +x="ref"; +const a=false, +b=true, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i="getAttr", +j={[x]:"Endpoint"}, +k={[v]:"booleanEquals",[w]:[{[x]:"UseFIPS"},true]}, +l={[v]:"booleanEquals",[w]:[{[x]:"UseDualStack"},true]}, +m={}, +n={[v]:"booleanEquals",[w]:[true,{[v]:i,[w]:[{[x]:e},"supportsFIPS"]}]}, +o={[x]:e}, +p={[v]:"booleanEquals",[w]:[true,{[v]:i,[w]:[o,"supportsDualStack"]}]}, +q={"url":"https://acm.{Region}.{PartitionResult#dnsSuffix}","properties":{},"headers":{}}, +r=[j], +s=[k], +t=[], +u=[l]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:b,default:a,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:b,default:a,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:a,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[v]:"aws.partition",[w]:[{[x]:"Region"}],assign:e}],type:f,rules:[{conditions:[{[v]:"isSet",[w]:r},{[v]:"parseURL",[w]:r,assign:"url"}],type:f,rules:[{conditions:s,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:t,type:f,rules:[{conditions:u,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:t,endpoint:{url:j,properties:m,headers:m},type:h}]}]},{conditions:[k,l],type:f,rules:[{conditions:[n,p],type:f,rules:[{conditions:t,endpoint:{url:"https://acm-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:m,headers:m},type:h}]},{conditions:t,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:s,type:f,rules:[{conditions:[n],type:f,rules:[{conditions:t,type:f,rules:[{conditions:[{[v]:"stringEquals",[w]:["aws-us-gov",{[v]:i,[w]:[o,"name"]}]}],endpoint:q,type:h},{conditions:t,endpoint:{url:"https://acm-fips.{Region}.{PartitionResult#dnsSuffix}",properties:m,headers:m},type:h}]}]},{conditions:t,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:u,type:f,rules:[{conditions:[p],type:f,rules:[{conditions:t,endpoint:{url:"https://acm.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:m,headers:m},type:h}]},{conditions:t,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:t,endpoint:q,type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-alexa-for-business/src/endpoint/ruleset.ts b/clients/client-alexa-for-business/src/endpoint/ruleset.ts index f9678338e1771..a33a7c5aa3d03 100644 --- a/clients/client-alexa-for-business/src/endpoint/ruleset.ts +++ b/clients/client-alexa-for-business/src/endpoint/ruleset.ts @@ -1,320 +1,31 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: false, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://a4b-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://a4b-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://a4b.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://a4b.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/alexa-for-business.json */ + +const s="fn", +t="argv", +u="ref"; +const a=false, +b=true, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i={[u]:"Endpoint"}, +j={[s]:"booleanEquals",[t]:[{[u]:"UseFIPS"},true]}, +k={[s]:"booleanEquals",[t]:[{[u]:"UseDualStack"},true]}, +l={}, +m={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsFIPS"]}]}, +n={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsDualStack"]}]}, +o=[i], +p=[j], +q=[], +r=[k]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:b,default:a,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:b,default:a,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:a,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[s]:"aws.partition",[t]:[{[u]:"Region"}],assign:e}],type:f,rules:[{conditions:[{[s]:"isSet",[t]:o},{[s]:"parseURL",[t]:o,assign:"url"}],type:f,rules:[{conditions:p,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:q,type:f,rules:[{conditions:r,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:q,endpoint:{url:i,properties:l,headers:l},type:h}]}]},{conditions:[j,k],type:f,rules:[{conditions:[m,n],type:f,rules:[{conditions:q,endpoint:{url:"https://a4b-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:p,type:f,rules:[{conditions:[m],type:f,rules:[{conditions:q,type:f,rules:[{conditions:q,endpoint:{url:"https://a4b-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]},{conditions:q,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:r,type:f,rules:[{conditions:[n],type:f,rules:[{conditions:q,endpoint:{url:"https://a4b.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:q,endpoint:{url:"https://a4b.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-amp/src/endpoint/ruleset.ts b/clients/client-amp/src/endpoint/ruleset.ts index 2c0113e02838d..4e46fce5a5db6 100644 --- a/clients/client-amp/src/endpoint/ruleset.ts +++ b/clients/client-amp/src/endpoint/ruleset.ts @@ -1,320 +1,31 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: false, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://aps-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://aps-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://aps.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://aps.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/amp.json */ + +const s="fn", +t="argv", +u="ref"; +const a=false, +b=true, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i={[u]:"Endpoint"}, +j={[s]:"booleanEquals",[t]:[{[u]:"UseFIPS"},true]}, +k={[s]:"booleanEquals",[t]:[{[u]:"UseDualStack"},true]}, +l={}, +m={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsFIPS"]}]}, +n={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsDualStack"]}]}, +o=[i], +p=[j], +q=[], +r=[k]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:b,default:a,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:b,default:a,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:a,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[s]:"aws.partition",[t]:[{[u]:"Region"}],assign:e}],type:f,rules:[{conditions:[{[s]:"isSet",[t]:o},{[s]:"parseURL",[t]:o,assign:"url"}],type:f,rules:[{conditions:p,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:q,type:f,rules:[{conditions:r,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:q,endpoint:{url:i,properties:l,headers:l},type:h}]}]},{conditions:[j,k],type:f,rules:[{conditions:[m,n],type:f,rules:[{conditions:q,endpoint:{url:"https://aps-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:p,type:f,rules:[{conditions:[m],type:f,rules:[{conditions:q,type:f,rules:[{conditions:q,endpoint:{url:"https://aps-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]},{conditions:q,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:r,type:f,rules:[{conditions:[n],type:f,rules:[{conditions:q,endpoint:{url:"https://aps.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:q,endpoint:{url:"https://aps.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-amplify/src/endpoint/ruleset.ts b/clients/client-amplify/src/endpoint/ruleset.ts index 2ddeab585e2f3..86e2ca165e277 100644 --- a/clients/client-amplify/src/endpoint/ruleset.ts +++ b/clients/client-amplify/src/endpoint/ruleset.ts @@ -1,320 +1,31 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: false, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://amplify-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://amplify-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://amplify.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://amplify.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/amplify.json */ + +const s="fn", +t="argv", +u="ref"; +const a=false, +b=true, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i={[u]:"Endpoint"}, +j={[s]:"booleanEquals",[t]:[{[u]:"UseFIPS"},true]}, +k={[s]:"booleanEquals",[t]:[{[u]:"UseDualStack"},true]}, +l={}, +m={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsFIPS"]}]}, +n={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsDualStack"]}]}, +o=[i], +p=[j], +q=[], +r=[k]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:b,default:a,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:b,default:a,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:a,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[s]:"aws.partition",[t]:[{[u]:"Region"}],assign:e}],type:f,rules:[{conditions:[{[s]:"isSet",[t]:o},{[s]:"parseURL",[t]:o,assign:"url"}],type:f,rules:[{conditions:p,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:q,type:f,rules:[{conditions:r,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:q,endpoint:{url:i,properties:l,headers:l},type:h}]}]},{conditions:[j,k],type:f,rules:[{conditions:[m,n],type:f,rules:[{conditions:q,endpoint:{url:"https://amplify-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:p,type:f,rules:[{conditions:[m],type:f,rules:[{conditions:q,type:f,rules:[{conditions:q,endpoint:{url:"https://amplify-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]},{conditions:q,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:r,type:f,rules:[{conditions:[n],type:f,rules:[{conditions:q,endpoint:{url:"https://amplify.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:q,endpoint:{url:"https://amplify.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-amplifybackend/src/endpoint/ruleset.ts b/clients/client-amplifybackend/src/endpoint/ruleset.ts index 406df06b83fa4..d6a406c759990 100644 --- a/clients/client-amplifybackend/src/endpoint/ruleset.ts +++ b/clients/client-amplifybackend/src/endpoint/ruleset.ts @@ -1,320 +1,31 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: false, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://amplifybackend-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://amplifybackend-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://amplifybackend.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://amplifybackend.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/amplifybackend.json */ + +const s="fn", +t="argv", +u="ref"; +const a=false, +b=true, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i={[u]:"Endpoint"}, +j={[s]:"booleanEquals",[t]:[{[u]:"UseFIPS"},true]}, +k={[s]:"booleanEquals",[t]:[{[u]:"UseDualStack"},true]}, +l={}, +m={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsFIPS"]}]}, +n={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsDualStack"]}]}, +o=[i], +p=[j], +q=[], +r=[k]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:b,default:a,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:b,default:a,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:a,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[s]:"aws.partition",[t]:[{[u]:"Region"}],assign:e}],type:f,rules:[{conditions:[{[s]:"isSet",[t]:o},{[s]:"parseURL",[t]:o,assign:"url"}],type:f,rules:[{conditions:p,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:q,type:f,rules:[{conditions:r,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:q,endpoint:{url:i,properties:l,headers:l},type:h}]}]},{conditions:[j,k],type:f,rules:[{conditions:[m,n],type:f,rules:[{conditions:q,endpoint:{url:"https://amplifybackend-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:p,type:f,rules:[{conditions:[m],type:f,rules:[{conditions:q,type:f,rules:[{conditions:q,endpoint:{url:"https://amplifybackend-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]},{conditions:q,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:r,type:f,rules:[{conditions:[n],type:f,rules:[{conditions:q,endpoint:{url:"https://amplifybackend.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:q,endpoint:{url:"https://amplifybackend.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-amplifyuibuilder/src/endpoint/ruleset.ts b/clients/client-amplifyuibuilder/src/endpoint/ruleset.ts index 41f558b5d3b0c..ababf44c7dc23 100644 --- a/clients/client-amplifyuibuilder/src/endpoint/ruleset.ts +++ b/clients/client-amplifyuibuilder/src/endpoint/ruleset.ts @@ -1,320 +1,31 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: false, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://amplifyuibuilder-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://amplifyuibuilder-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://amplifyuibuilder.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://amplifyuibuilder.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/amplifyuibuilder.json */ + +const s="fn", +t="argv", +u="ref"; +const a=false, +b=true, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i={[u]:"Endpoint"}, +j={[s]:"booleanEquals",[t]:[{[u]:"UseFIPS"},true]}, +k={[s]:"booleanEquals",[t]:[{[u]:"UseDualStack"},true]}, +l={}, +m={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsFIPS"]}]}, +n={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsDualStack"]}]}, +o=[i], +p=[j], +q=[], +r=[k]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:b,default:a,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:b,default:a,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:a,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[s]:"aws.partition",[t]:[{[u]:"Region"}],assign:e}],type:f,rules:[{conditions:[{[s]:"isSet",[t]:o},{[s]:"parseURL",[t]:o,assign:"url"}],type:f,rules:[{conditions:p,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:q,type:f,rules:[{conditions:r,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:q,endpoint:{url:i,properties:l,headers:l},type:h}]}]},{conditions:[j,k],type:f,rules:[{conditions:[m,n],type:f,rules:[{conditions:q,endpoint:{url:"https://amplifyuibuilder-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:p,type:f,rules:[{conditions:[m],type:f,rules:[{conditions:q,type:f,rules:[{conditions:q,endpoint:{url:"https://amplifyuibuilder-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]},{conditions:q,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:r,type:f,rules:[{conditions:[n],type:f,rules:[{conditions:q,endpoint:{url:"https://amplifyuibuilder.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:q,endpoint:{url:"https://amplifyuibuilder.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-api-gateway/src/endpoint/ruleset.ts b/clients/client-api-gateway/src/endpoint/ruleset.ts index 02e4667febd8f..41d3224a36ada 100644 --- a/clients/client-api-gateway/src/endpoint/ruleset.ts +++ b/clients/client-api-gateway/src/endpoint/ruleset.ts @@ -1,320 +1,31 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: false, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://apigateway-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://apigateway-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://apigateway.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://apigateway.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/api-gateway.json */ + +const s="fn", +t="argv", +u="ref"; +const a=false, +b=true, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i={[u]:"Endpoint"}, +j={[s]:"booleanEquals",[t]:[{[u]:"UseFIPS"},true]}, +k={[s]:"booleanEquals",[t]:[{[u]:"UseDualStack"},true]}, +l={}, +m={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsFIPS"]}]}, +n={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsDualStack"]}]}, +o=[i], +p=[j], +q=[], +r=[k]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:b,default:a,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:b,default:a,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:a,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[s]:"aws.partition",[t]:[{[u]:"Region"}],assign:e}],type:f,rules:[{conditions:[{[s]:"isSet",[t]:o},{[s]:"parseURL",[t]:o,assign:"url"}],type:f,rules:[{conditions:p,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:q,type:f,rules:[{conditions:r,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:q,endpoint:{url:i,properties:l,headers:l},type:h}]}]},{conditions:[j,k],type:f,rules:[{conditions:[m,n],type:f,rules:[{conditions:q,endpoint:{url:"https://apigateway-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:p,type:f,rules:[{conditions:[m],type:f,rules:[{conditions:q,type:f,rules:[{conditions:q,endpoint:{url:"https://apigateway-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]},{conditions:q,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:r,type:f,rules:[{conditions:[n],type:f,rules:[{conditions:q,endpoint:{url:"https://apigateway.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:q,endpoint:{url:"https://apigateway.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-apigatewaymanagementapi/src/endpoint/ruleset.ts b/clients/client-apigatewaymanagementapi/src/endpoint/ruleset.ts index 99f694f0a7ce9..db6d7210141de 100644 --- a/clients/client-apigatewaymanagementapi/src/endpoint/ruleset.ts +++ b/clients/client-apigatewaymanagementapi/src/endpoint/ruleset.ts @@ -1,314 +1,31 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: false, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://execute-api-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://execute-api-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://execute-api.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://execute-api.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/apigatewaymanagementapi.json */ + +const s="fn", +t="argv", +u="ref"; +const a=false, +b=true, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i={[u]:"Endpoint"}, +j={[s]:"booleanEquals",[t]:[{[u]:"UseFIPS"},true]}, +k={[s]:"booleanEquals",[t]:[{[u]:"UseDualStack"},true]}, +l={}, +m={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsFIPS"]}]}, +n={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsDualStack"]}]}, +o=[i], +p=[j], +q=[], +r=[k]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:b,default:a,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:b,default:a,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:a,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[s]:"aws.partition",[t]:[{[u]:"Region"}],assign:e}],type:f,rules:[{conditions:[{[s]:"isSet",[t]:o},{[s]:"parseURL",[t]:o,assign:"url"}],type:f,rules:[{conditions:p,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:q,type:f,rules:[{conditions:r,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:q,endpoint:{url:i,properties:l,headers:l},type:h}]}]},{conditions:[j,k],type:f,rules:[{conditions:[m,n],type:f,rules:[{conditions:q,endpoint:{url:"https://execute-api-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:p,type:f,rules:[{conditions:[m],type:f,rules:[{conditions:q,endpoint:{url:"https://execute-api-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:r,type:f,rules:[{conditions:[n],type:f,rules:[{conditions:q,endpoint:{url:"https://execute-api.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:q,endpoint:{url:"https://execute-api.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-apigatewayv2/src/endpoint/ruleset.ts b/clients/client-apigatewayv2/src/endpoint/ruleset.ts index 02e4667febd8f..ee44769337029 100644 --- a/clients/client-apigatewayv2/src/endpoint/ruleset.ts +++ b/clients/client-apigatewayv2/src/endpoint/ruleset.ts @@ -1,320 +1,31 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: false, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://apigateway-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://apigateway-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://apigateway.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://apigateway.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/apigatewayv2.json */ + +const s="fn", +t="argv", +u="ref"; +const a=false, +b=true, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i={[u]:"Endpoint"}, +j={[s]:"booleanEquals",[t]:[{[u]:"UseFIPS"},true]}, +k={[s]:"booleanEquals",[t]:[{[u]:"UseDualStack"},true]}, +l={}, +m={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsFIPS"]}]}, +n={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsDualStack"]}]}, +o=[i], +p=[j], +q=[], +r=[k]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:b,default:a,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:b,default:a,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:a,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[s]:"aws.partition",[t]:[{[u]:"Region"}],assign:e}],type:f,rules:[{conditions:[{[s]:"isSet",[t]:o},{[s]:"parseURL",[t]:o,assign:"url"}],type:f,rules:[{conditions:p,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:q,type:f,rules:[{conditions:r,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:q,endpoint:{url:i,properties:l,headers:l},type:h}]}]},{conditions:[j,k],type:f,rules:[{conditions:[m,n],type:f,rules:[{conditions:q,endpoint:{url:"https://apigateway-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:p,type:f,rules:[{conditions:[m],type:f,rules:[{conditions:q,type:f,rules:[{conditions:q,endpoint:{url:"https://apigateway-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]},{conditions:q,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:r,type:f,rules:[{conditions:[n],type:f,rules:[{conditions:q,endpoint:{url:"https://apigateway.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:q,endpoint:{url:"https://apigateway.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-app-mesh/src/endpoint/ruleset.ts b/clients/client-app-mesh/src/endpoint/ruleset.ts index 009516afb7814..8ac8afb9aaeee 100644 --- a/clients/client-app-mesh/src/endpoint/ruleset.ts +++ b/clients/client-app-mesh/src/endpoint/ruleset.ts @@ -1,320 +1,31 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: false, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://appmesh-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://appmesh-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://appmesh.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://appmesh.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/app-mesh.json */ + +const s="fn", +t="argv", +u="ref"; +const a=false, +b=true, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i={[u]:"Endpoint"}, +j={[s]:"booleanEquals",[t]:[{[u]:"UseFIPS"},true]}, +k={[s]:"booleanEquals",[t]:[{[u]:"UseDualStack"},true]}, +l={}, +m={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsFIPS"]}]}, +n={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsDualStack"]}]}, +o=[i], +p=[j], +q=[], +r=[k]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:b,default:a,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:b,default:a,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:a,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[s]:"aws.partition",[t]:[{[u]:"Region"}],assign:e}],type:f,rules:[{conditions:[{[s]:"isSet",[t]:o},{[s]:"parseURL",[t]:o,assign:"url"}],type:f,rules:[{conditions:p,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:q,type:f,rules:[{conditions:r,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:q,endpoint:{url:i,properties:l,headers:l},type:h}]}]},{conditions:[j,k],type:f,rules:[{conditions:[m,n],type:f,rules:[{conditions:q,endpoint:{url:"https://appmesh-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:p,type:f,rules:[{conditions:[m],type:f,rules:[{conditions:q,type:f,rules:[{conditions:q,endpoint:{url:"https://appmesh-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]},{conditions:q,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:r,type:f,rules:[{conditions:[n],type:f,rules:[{conditions:q,endpoint:{url:"https://appmesh.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:q,endpoint:{url:"https://appmesh.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-appconfig/src/endpoint/ruleset.ts b/clients/client-appconfig/src/endpoint/ruleset.ts index d15e53c23768e..066fe3d5e0065 100644 --- a/clients/client-appconfig/src/endpoint/ruleset.ts +++ b/clients/client-appconfig/src/endpoint/ruleset.ts @@ -1,358 +1,33 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: false, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://appconfig-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "stringEquals", - argv: [ - { - ref: "Region", - }, - "us-gov-west-1", - ], - }, - ], - endpoint: { - url: "https://appconfig.us-gov-west-1.amazonaws.com", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - { - conditions: [ - { - fn: "stringEquals", - argv: [ - { - ref: "Region", - }, - "us-gov-east-1", - ], - }, - ], - endpoint: { - url: "https://appconfig.us-gov-east-1.amazonaws.com", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - { - conditions: [], - endpoint: { - url: "https://appconfig-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://appconfig.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://appconfig.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/appconfig.json */ + +const u="fn", +v="argv", +w="ref"; +const a=false, +b=true, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i="stringEquals", +j={[w]:"Region"}, +k={[w]:"Endpoint"}, +l={[u]:"booleanEquals",[v]:[{[w]:"UseFIPS"},true]}, +m={[u]:"booleanEquals",[v]:[{[w]:"UseDualStack"},true]}, +n={}, +o={[u]:"booleanEquals",[v]:[true,{[u]:"getAttr",[v]:[{[w]:e},"supportsFIPS"]}]}, +p={[u]:"booleanEquals",[v]:[true,{[u]:"getAttr",[v]:[{[w]:e},"supportsDualStack"]}]}, +q=[k], +r=[l], +s=[], +t=[m]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:b,default:a,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:b,default:a,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:a,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[u]:"aws.partition",[v]:[j],assign:e}],type:f,rules:[{conditions:[{[u]:"isSet",[v]:q},{[u]:"parseURL",[v]:q,assign:"url"}],type:f,rules:[{conditions:r,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:s,type:f,rules:[{conditions:t,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:s,endpoint:{url:k,properties:n,headers:n},type:h}]}]},{conditions:[l,m],type:f,rules:[{conditions:[o,p],type:f,rules:[{conditions:s,endpoint:{url:"https://appconfig-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:n,headers:n},type:h}]},{conditions:s,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:r,type:f,rules:[{conditions:[o],type:f,rules:[{conditions:s,type:f,rules:[{conditions:[{[u]:i,[v]:[j,"us-gov-west-1"]}],endpoint:{url:"https://appconfig.us-gov-west-1.amazonaws.com",properties:n,headers:n},type:h},{conditions:[{[u]:i,[v]:[j,"us-gov-east-1"]}],endpoint:{url:"https://appconfig.us-gov-east-1.amazonaws.com",properties:n,headers:n},type:h},{conditions:s,endpoint:{url:"https://appconfig-fips.{Region}.{PartitionResult#dnsSuffix}",properties:n,headers:n},type:h}]}]},{conditions:s,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:t,type:f,rules:[{conditions:[p],type:f,rules:[{conditions:s,endpoint:{url:"https://appconfig.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:n,headers:n},type:h}]},{conditions:s,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:s,endpoint:{url:"https://appconfig.{Region}.{PartitionResult#dnsSuffix}",properties:n,headers:n},type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-appconfigdata/src/endpoint/ruleset.ts b/clients/client-appconfigdata/src/endpoint/ruleset.ts index 1794a196dfd0f..bba76dd69cf5e 100644 --- a/clients/client-appconfigdata/src/endpoint/ruleset.ts +++ b/clients/client-appconfigdata/src/endpoint/ruleset.ts @@ -1,320 +1,31 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: false, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://appconfigdata-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://appconfigdata-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://appconfigdata.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://appconfigdata.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/appconfigdata.json */ + +const s="fn", +t="argv", +u="ref"; +const a=false, +b=true, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i={[u]:"Endpoint"}, +j={[s]:"booleanEquals",[t]:[{[u]:"UseFIPS"},true]}, +k={[s]:"booleanEquals",[t]:[{[u]:"UseDualStack"},true]}, +l={}, +m={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsFIPS"]}]}, +n={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsDualStack"]}]}, +o=[i], +p=[j], +q=[], +r=[k]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:b,default:a,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:b,default:a,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:a,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[s]:"aws.partition",[t]:[{[u]:"Region"}],assign:e}],type:f,rules:[{conditions:[{[s]:"isSet",[t]:o},{[s]:"parseURL",[t]:o,assign:"url"}],type:f,rules:[{conditions:p,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:q,type:f,rules:[{conditions:r,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:q,endpoint:{url:i,properties:l,headers:l},type:h}]}]},{conditions:[j,k],type:f,rules:[{conditions:[m,n],type:f,rules:[{conditions:q,endpoint:{url:"https://appconfigdata-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:p,type:f,rules:[{conditions:[m],type:f,rules:[{conditions:q,type:f,rules:[{conditions:q,endpoint:{url:"https://appconfigdata-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]},{conditions:q,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:r,type:f,rules:[{conditions:[n],type:f,rules:[{conditions:q,endpoint:{url:"https://appconfigdata.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:q,endpoint:{url:"https://appconfigdata.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-appflow/src/endpoint/ruleset.ts b/clients/client-appflow/src/endpoint/ruleset.ts index dbef049a33ccb..75ce9a8d27e00 100644 --- a/clients/client-appflow/src/endpoint/ruleset.ts +++ b/clients/client-appflow/src/endpoint/ruleset.ts @@ -1,311 +1,30 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: true, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://appflow-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://appflow-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://appflow.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://appflow.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/appflow.json */ + +const r="fn", +s="argv", +t="ref"; +const a=true, +b=false, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i={[t]:"Endpoint"}, +j={[r]:"booleanEquals",[s]:[{[t]:"UseFIPS"},true]}, +k={[r]:"booleanEquals",[s]:[{[t]:"UseDualStack"},true]}, +l={}, +m={[r]:"booleanEquals",[s]:[true,{[r]:"getAttr",[s]:[{[t]:e},"supportsFIPS"]}]}, +n={[r]:"booleanEquals",[s]:[true,{[r]:"getAttr",[s]:[{[t]:e},"supportsDualStack"]}]}, +o=[j], +p=[], +q=[k]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:a,default:b,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:a,default:b,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:b,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[r]:"aws.partition",[s]:[{[t]:"Region"}],assign:e}],type:f,rules:[{conditions:[{[r]:"isSet",[s]:[i]}],type:f,rules:[{conditions:o,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:p,type:f,rules:[{conditions:q,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:p,endpoint:{url:i,properties:l,headers:l},type:h}]}]},{conditions:[j,k],type:f,rules:[{conditions:[m,n],type:f,rules:[{conditions:p,endpoint:{url:"https://appflow-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:p,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:o,type:f,rules:[{conditions:[m],type:f,rules:[{conditions:p,type:f,rules:[{conditions:p,endpoint:{url:"https://appflow-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]},{conditions:p,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:q,type:f,rules:[{conditions:[n],type:f,rules:[{conditions:p,endpoint:{url:"https://appflow.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:p,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:p,endpoint:{url:"https://appflow.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-appintegrations/src/endpoint/ruleset.ts b/clients/client-appintegrations/src/endpoint/ruleset.ts index 3cca28abb034a..bf2686cb3fa44 100644 --- a/clients/client-appintegrations/src/endpoint/ruleset.ts +++ b/clients/client-appintegrations/src/endpoint/ruleset.ts @@ -1,320 +1,31 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: false, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://app-integrations-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://app-integrations-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://app-integrations.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://app-integrations.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/appintegrations.json */ + +const s="fn", +t="argv", +u="ref"; +const a=false, +b=true, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i={[u]:"Endpoint"}, +j={[s]:"booleanEquals",[t]:[{[u]:"UseFIPS"},true]}, +k={[s]:"booleanEquals",[t]:[{[u]:"UseDualStack"},true]}, +l={}, +m={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsFIPS"]}]}, +n={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsDualStack"]}]}, +o=[i], +p=[j], +q=[], +r=[k]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:b,default:a,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:b,default:a,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:a,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[s]:"aws.partition",[t]:[{[u]:"Region"}],assign:e}],type:f,rules:[{conditions:[{[s]:"isSet",[t]:o},{[s]:"parseURL",[t]:o,assign:"url"}],type:f,rules:[{conditions:p,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:q,type:f,rules:[{conditions:r,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:q,endpoint:{url:i,properties:l,headers:l},type:h}]}]},{conditions:[j,k],type:f,rules:[{conditions:[m,n],type:f,rules:[{conditions:q,endpoint:{url:"https://app-integrations-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:p,type:f,rules:[{conditions:[m],type:f,rules:[{conditions:q,type:f,rules:[{conditions:q,endpoint:{url:"https://app-integrations-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]},{conditions:q,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:r,type:f,rules:[{conditions:[n],type:f,rules:[{conditions:q,endpoint:{url:"https://app-integrations.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:q,endpoint:{url:"https://app-integrations.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-application-auto-scaling/src/endpoint/ruleset.ts b/clients/client-application-auto-scaling/src/endpoint/ruleset.ts index e83a11b73528b..b0184cf20aa1b 100644 --- a/clients/client-application-auto-scaling/src/endpoint/ruleset.ts +++ b/clients/client-application-auto-scaling/src/endpoint/ruleset.ts @@ -1,320 +1,31 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: false, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://application-autoscaling-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://application-autoscaling-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://application-autoscaling.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://application-autoscaling.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/application-auto-scaling.json */ + +const s="fn", +t="argv", +u="ref"; +const a=false, +b=true, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i={[u]:"Endpoint"}, +j={[s]:"booleanEquals",[t]:[{[u]:"UseFIPS"},true]}, +k={[s]:"booleanEquals",[t]:[{[u]:"UseDualStack"},true]}, +l={}, +m={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsFIPS"]}]}, +n={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsDualStack"]}]}, +o=[i], +p=[j], +q=[], +r=[k]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:b,default:a,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:b,default:a,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:a,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[s]:"aws.partition",[t]:[{[u]:"Region"}],assign:e}],type:f,rules:[{conditions:[{[s]:"isSet",[t]:o},{[s]:"parseURL",[t]:o,assign:"url"}],type:f,rules:[{conditions:p,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:q,type:f,rules:[{conditions:r,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:q,endpoint:{url:i,properties:l,headers:l},type:h}]}]},{conditions:[j,k],type:f,rules:[{conditions:[m,n],type:f,rules:[{conditions:q,endpoint:{url:"https://application-autoscaling-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:p,type:f,rules:[{conditions:[m],type:f,rules:[{conditions:q,type:f,rules:[{conditions:q,endpoint:{url:"https://application-autoscaling-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]},{conditions:q,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:r,type:f,rules:[{conditions:[n],type:f,rules:[{conditions:q,endpoint:{url:"https://application-autoscaling.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:q,endpoint:{url:"https://application-autoscaling.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-application-discovery-service/src/endpoint/ruleset.ts b/clients/client-application-discovery-service/src/endpoint/ruleset.ts index d28e65966a62e..01fdaa77e0826 100644 --- a/clients/client-application-discovery-service/src/endpoint/ruleset.ts +++ b/clients/client-application-discovery-service/src/endpoint/ruleset.ts @@ -1,320 +1,31 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: false, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://discovery-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://discovery-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://discovery.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://discovery.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/application-discovery-service.json */ + +const s="fn", +t="argv", +u="ref"; +const a=false, +b=true, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i={[u]:"Endpoint"}, +j={[s]:"booleanEquals",[t]:[{[u]:"UseFIPS"},true]}, +k={[s]:"booleanEquals",[t]:[{[u]:"UseDualStack"},true]}, +l={}, +m={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsFIPS"]}]}, +n={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsDualStack"]}]}, +o=[i], +p=[j], +q=[], +r=[k]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:b,default:a,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:b,default:a,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:a,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[s]:"aws.partition",[t]:[{[u]:"Region"}],assign:e}],type:f,rules:[{conditions:[{[s]:"isSet",[t]:o},{[s]:"parseURL",[t]:o,assign:"url"}],type:f,rules:[{conditions:p,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:q,type:f,rules:[{conditions:r,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:q,endpoint:{url:i,properties:l,headers:l},type:h}]}]},{conditions:[j,k],type:f,rules:[{conditions:[m,n],type:f,rules:[{conditions:q,endpoint:{url:"https://discovery-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:p,type:f,rules:[{conditions:[m],type:f,rules:[{conditions:q,type:f,rules:[{conditions:q,endpoint:{url:"https://discovery-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]},{conditions:q,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:r,type:f,rules:[{conditions:[n],type:f,rules:[{conditions:q,endpoint:{url:"https://discovery.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:q,endpoint:{url:"https://discovery.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-application-insights/src/endpoint/ruleset.ts b/clients/client-application-insights/src/endpoint/ruleset.ts index 68bb41aeb571a..a4e227f65494a 100644 --- a/clients/client-application-insights/src/endpoint/ruleset.ts +++ b/clients/client-application-insights/src/endpoint/ruleset.ts @@ -1,320 +1,31 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: false, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://applicationinsights-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://applicationinsights-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://applicationinsights.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://applicationinsights.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/application-insights.json */ + +const s="fn", +t="argv", +u="ref"; +const a=false, +b=true, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i={[u]:"Endpoint"}, +j={[s]:"booleanEquals",[t]:[{[u]:"UseFIPS"},true]}, +k={[s]:"booleanEquals",[t]:[{[u]:"UseDualStack"},true]}, +l={}, +m={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsFIPS"]}]}, +n={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsDualStack"]}]}, +o=[i], +p=[j], +q=[], +r=[k]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:b,default:a,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:b,default:a,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:a,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[s]:"aws.partition",[t]:[{[u]:"Region"}],assign:e}],type:f,rules:[{conditions:[{[s]:"isSet",[t]:o},{[s]:"parseURL",[t]:o,assign:"url"}],type:f,rules:[{conditions:p,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:q,type:f,rules:[{conditions:r,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:q,endpoint:{url:i,properties:l,headers:l},type:h}]}]},{conditions:[j,k],type:f,rules:[{conditions:[m,n],type:f,rules:[{conditions:q,endpoint:{url:"https://applicationinsights-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:p,type:f,rules:[{conditions:[m],type:f,rules:[{conditions:q,type:f,rules:[{conditions:q,endpoint:{url:"https://applicationinsights-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]},{conditions:q,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:r,type:f,rules:[{conditions:[n],type:f,rules:[{conditions:q,endpoint:{url:"https://applicationinsights.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:q,endpoint:{url:"https://applicationinsights.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-applicationcostprofiler/src/endpoint/ruleset.ts b/clients/client-applicationcostprofiler/src/endpoint/ruleset.ts index 7bc6b9ca975bb..00a74cf0df316 100644 --- a/clients/client-applicationcostprofiler/src/endpoint/ruleset.ts +++ b/clients/client-applicationcostprofiler/src/endpoint/ruleset.ts @@ -1,314 +1,31 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: false, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://application-cost-profiler-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://application-cost-profiler-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://application-cost-profiler.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://application-cost-profiler.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/applicationcostprofiler.json */ + +const s="fn", +t="argv", +u="ref"; +const a=false, +b=true, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i={[u]:"Endpoint"}, +j={[s]:"booleanEquals",[t]:[{[u]:"UseFIPS"},true]}, +k={[s]:"booleanEquals",[t]:[{[u]:"UseDualStack"},true]}, +l={}, +m={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsFIPS"]}]}, +n={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsDualStack"]}]}, +o=[i], +p=[j], +q=[], +r=[k]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:b,default:a,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:b,default:a,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:a,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[s]:"aws.partition",[t]:[{[u]:"Region"}],assign:e}],type:f,rules:[{conditions:[{[s]:"isSet",[t]:o},{[s]:"parseURL",[t]:o,assign:"url"}],type:f,rules:[{conditions:p,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:q,type:f,rules:[{conditions:r,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:q,endpoint:{url:i,properties:l,headers:l},type:h}]}]},{conditions:[j,k],type:f,rules:[{conditions:[m,n],type:f,rules:[{conditions:q,endpoint:{url:"https://application-cost-profiler-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:p,type:f,rules:[{conditions:[m],type:f,rules:[{conditions:q,endpoint:{url:"https://application-cost-profiler-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:r,type:f,rules:[{conditions:[n],type:f,rules:[{conditions:q,endpoint:{url:"https://application-cost-profiler.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:q,endpoint:{url:"https://application-cost-profiler.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-apprunner/src/endpoint/ruleset.ts b/clients/client-apprunner/src/endpoint/ruleset.ts index 39f8c3fc3decb..98298095b5b6c 100644 --- a/clients/client-apprunner/src/endpoint/ruleset.ts +++ b/clients/client-apprunner/src/endpoint/ruleset.ts @@ -1,320 +1,31 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: false, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://apprunner-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://apprunner-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://apprunner.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://apprunner.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/apprunner.json */ + +const s="fn", +t="argv", +u="ref"; +const a=false, +b=true, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i={[u]:"Endpoint"}, +j={[s]:"booleanEquals",[t]:[{[u]:"UseFIPS"},true]}, +k={[s]:"booleanEquals",[t]:[{[u]:"UseDualStack"},true]}, +l={}, +m={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsFIPS"]}]}, +n={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsDualStack"]}]}, +o=[i], +p=[j], +q=[], +r=[k]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:b,default:a,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:b,default:a,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:a,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[s]:"aws.partition",[t]:[{[u]:"Region"}],assign:e}],type:f,rules:[{conditions:[{[s]:"isSet",[t]:o},{[s]:"parseURL",[t]:o,assign:"url"}],type:f,rules:[{conditions:p,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:q,type:f,rules:[{conditions:r,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:q,endpoint:{url:i,properties:l,headers:l},type:h}]}]},{conditions:[j,k],type:f,rules:[{conditions:[m,n],type:f,rules:[{conditions:q,endpoint:{url:"https://apprunner-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:p,type:f,rules:[{conditions:[m],type:f,rules:[{conditions:q,type:f,rules:[{conditions:q,endpoint:{url:"https://apprunner-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]},{conditions:q,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:r,type:f,rules:[{conditions:[n],type:f,rules:[{conditions:q,endpoint:{url:"https://apprunner.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:q,endpoint:{url:"https://apprunner.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-appstream/src/endpoint/ruleset.ts b/clients/client-appstream/src/endpoint/ruleset.ts index 7d3c7facd262e..c938ee57ee1d6 100644 --- a/clients/client-appstream/src/endpoint/ruleset.ts +++ b/clients/client-appstream/src/endpoint/ruleset.ts @@ -1,320 +1,31 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: false, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://appstream2-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://appstream2-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://appstream2.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://appstream2.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/appstream.json */ + +const s="fn", +t="argv", +u="ref"; +const a=false, +b=true, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i={[u]:"Endpoint"}, +j={[s]:"booleanEquals",[t]:[{[u]:"UseFIPS"},true]}, +k={[s]:"booleanEquals",[t]:[{[u]:"UseDualStack"},true]}, +l={}, +m={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsFIPS"]}]}, +n={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsDualStack"]}]}, +o=[i], +p=[j], +q=[], +r=[k]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:b,default:a,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:b,default:a,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:a,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[s]:"aws.partition",[t]:[{[u]:"Region"}],assign:e}],type:f,rules:[{conditions:[{[s]:"isSet",[t]:o},{[s]:"parseURL",[t]:o,assign:"url"}],type:f,rules:[{conditions:p,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:q,type:f,rules:[{conditions:r,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:q,endpoint:{url:i,properties:l,headers:l},type:h}]}]},{conditions:[j,k],type:f,rules:[{conditions:[m,n],type:f,rules:[{conditions:q,endpoint:{url:"https://appstream2-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:p,type:f,rules:[{conditions:[m],type:f,rules:[{conditions:q,type:f,rules:[{conditions:q,endpoint:{url:"https://appstream2-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]},{conditions:q,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:r,type:f,rules:[{conditions:[n],type:f,rules:[{conditions:q,endpoint:{url:"https://appstream2.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:q,endpoint:{url:"https://appstream2.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-appsync/src/endpoint/ruleset.ts b/clients/client-appsync/src/endpoint/ruleset.ts index a2041fb2c03ac..ad11837f96029 100644 --- a/clients/client-appsync/src/endpoint/ruleset.ts +++ b/clients/client-appsync/src/endpoint/ruleset.ts @@ -1,320 +1,31 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: true, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://appsync-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://appsync-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://appsync.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://appsync.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/appsync.json */ + +const s="fn", +t="argv", +u="ref"; +const a=true, +b=false, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i={[u]:"Endpoint"}, +j={[s]:"booleanEquals",[t]:[{[u]:"UseFIPS"},true]}, +k={[s]:"booleanEquals",[t]:[{[u]:"UseDualStack"},true]}, +l={}, +m={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsFIPS"]}]}, +n={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsDualStack"]}]}, +o=[i], +p=[j], +q=[], +r=[k]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:a,default:b,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:a,default:b,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:b,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[s]:"aws.partition",[t]:[{[u]:"Region"}],assign:e}],type:f,rules:[{conditions:[{[s]:"isSet",[t]:o},{[s]:"parseURL",[t]:o,assign:"url"}],type:f,rules:[{conditions:p,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:q,type:f,rules:[{conditions:r,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:q,endpoint:{url:i,properties:l,headers:l},type:h}]}]},{conditions:[j,k],type:f,rules:[{conditions:[m,n],type:f,rules:[{conditions:q,endpoint:{url:"https://appsync-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:p,type:f,rules:[{conditions:[m],type:f,rules:[{conditions:q,type:f,rules:[{conditions:q,endpoint:{url:"https://appsync-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]},{conditions:q,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:r,type:f,rules:[{conditions:[n],type:f,rules:[{conditions:q,endpoint:{url:"https://appsync.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:q,endpoint:{url:"https://appsync.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-arc-zonal-shift/src/endpoint/ruleset.ts b/clients/client-arc-zonal-shift/src/endpoint/ruleset.ts index 5f9d459568c9e..4aebb065f5769 100644 --- a/clients/client-arc-zonal-shift/src/endpoint/ruleset.ts +++ b/clients/client-arc-zonal-shift/src/endpoint/ruleset.ts @@ -1,314 +1,31 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: true, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://arc-zonal-shift-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://arc-zonal-shift-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://arc-zonal-shift.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://arc-zonal-shift.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/arc-zonal-shift.json */ + +const s="fn", +t="argv", +u="ref"; +const a=true, +b=false, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i={[u]:"Endpoint"}, +j={[s]:"booleanEquals",[t]:[{[u]:"UseFIPS"},true]}, +k={[s]:"booleanEquals",[t]:[{[u]:"UseDualStack"},true]}, +l={}, +m={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsFIPS"]}]}, +n={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsDualStack"]}]}, +o=[i], +p=[j], +q=[], +r=[k]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:a,default:b,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:a,default:b,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:b,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[s]:"aws.partition",[t]:[{[u]:"Region"}],assign:e}],type:f,rules:[{conditions:[{[s]:"isSet",[t]:o},{[s]:"parseURL",[t]:o,assign:"url"}],type:f,rules:[{conditions:p,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:q,type:f,rules:[{conditions:r,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:q,endpoint:{url:i,properties:l,headers:l},type:h}]}]},{conditions:[j,k],type:f,rules:[{conditions:[m,n],type:f,rules:[{conditions:q,endpoint:{url:"https://arc-zonal-shift-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:p,type:f,rules:[{conditions:[m],type:f,rules:[{conditions:q,endpoint:{url:"https://arc-zonal-shift-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:r,type:f,rules:[{conditions:[n],type:f,rules:[{conditions:q,endpoint:{url:"https://arc-zonal-shift.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:q,endpoint:{url:"https://arc-zonal-shift.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-athena/src/endpoint/ruleset.ts b/clients/client-athena/src/endpoint/ruleset.ts index 383ef64172381..248140091352e 100644 --- a/clients/client-athena/src/endpoint/ruleset.ts +++ b/clients/client-athena/src/endpoint/ruleset.ts @@ -1,311 +1,30 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: true, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://athena-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://athena-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://athena.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://athena.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/athena.json */ + +const r="fn", +s="argv", +t="ref"; +const a=true, +b=false, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i={[t]:"Endpoint"}, +j={[r]:"booleanEquals",[s]:[{[t]:"UseFIPS"},true]}, +k={[r]:"booleanEquals",[s]:[{[t]:"UseDualStack"},true]}, +l={}, +m={[r]:"booleanEquals",[s]:[true,{[r]:"getAttr",[s]:[{[t]:e},"supportsFIPS"]}]}, +n={[r]:"booleanEquals",[s]:[true,{[r]:"getAttr",[s]:[{[t]:e},"supportsDualStack"]}]}, +o=[j], +p=[], +q=[k]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:a,default:b,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:a,default:b,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:b,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[r]:"aws.partition",[s]:[{[t]:"Region"}],assign:e}],type:f,rules:[{conditions:[{[r]:"isSet",[s]:[i]}],type:f,rules:[{conditions:o,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:p,type:f,rules:[{conditions:q,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:p,endpoint:{url:i,properties:l,headers:l},type:h}]}]},{conditions:[j,k],type:f,rules:[{conditions:[m,n],type:f,rules:[{conditions:p,endpoint:{url:"https://athena-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:p,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:o,type:f,rules:[{conditions:[m],type:f,rules:[{conditions:p,type:f,rules:[{conditions:p,endpoint:{url:"https://athena-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]},{conditions:p,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:q,type:f,rules:[{conditions:[n],type:f,rules:[{conditions:p,endpoint:{url:"https://athena.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:p,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:p,endpoint:{url:"https://athena.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-auditmanager/src/endpoint/ruleset.ts b/clients/client-auditmanager/src/endpoint/ruleset.ts index 96ccf0d4b4747..7c8c3a1e7dadd 100644 --- a/clients/client-auditmanager/src/endpoint/ruleset.ts +++ b/clients/client-auditmanager/src/endpoint/ruleset.ts @@ -1,320 +1,31 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: false, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://auditmanager-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://auditmanager-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://auditmanager.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://auditmanager.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/auditmanager.json */ + +const s="fn", +t="argv", +u="ref"; +const a=false, +b=true, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i={[u]:"Endpoint"}, +j={[s]:"booleanEquals",[t]:[{[u]:"UseFIPS"},true]}, +k={[s]:"booleanEquals",[t]:[{[u]:"UseDualStack"},true]}, +l={}, +m={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsFIPS"]}]}, +n={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsDualStack"]}]}, +o=[i], +p=[j], +q=[], +r=[k]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:b,default:a,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:b,default:a,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:a,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[s]:"aws.partition",[t]:[{[u]:"Region"}],assign:e}],type:f,rules:[{conditions:[{[s]:"isSet",[t]:o},{[s]:"parseURL",[t]:o,assign:"url"}],type:f,rules:[{conditions:p,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:q,type:f,rules:[{conditions:r,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:q,endpoint:{url:i,properties:l,headers:l},type:h}]}]},{conditions:[j,k],type:f,rules:[{conditions:[m,n],type:f,rules:[{conditions:q,endpoint:{url:"https://auditmanager-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:p,type:f,rules:[{conditions:[m],type:f,rules:[{conditions:q,type:f,rules:[{conditions:q,endpoint:{url:"https://auditmanager-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]},{conditions:q,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:r,type:f,rules:[{conditions:[n],type:f,rules:[{conditions:q,endpoint:{url:"https://auditmanager.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:q,endpoint:{url:"https://auditmanager.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-auto-scaling-plans/src/endpoint/ruleset.ts b/clients/client-auto-scaling-plans/src/endpoint/ruleset.ts index c58f9b72d6416..b0332208750c7 100644 --- a/clients/client-auto-scaling-plans/src/endpoint/ruleset.ts +++ b/clients/client-auto-scaling-plans/src/endpoint/ruleset.ts @@ -1,320 +1,31 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: false, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://autoscaling-plans-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://autoscaling-plans-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://autoscaling-plans.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://autoscaling-plans.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/auto-scaling-plans.json */ + +const s="fn", +t="argv", +u="ref"; +const a=false, +b=true, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i={[u]:"Endpoint"}, +j={[s]:"booleanEquals",[t]:[{[u]:"UseFIPS"},true]}, +k={[s]:"booleanEquals",[t]:[{[u]:"UseDualStack"},true]}, +l={}, +m={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsFIPS"]}]}, +n={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsDualStack"]}]}, +o=[i], +p=[j], +q=[], +r=[k]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:b,default:a,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:b,default:a,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:a,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[s]:"aws.partition",[t]:[{[u]:"Region"}],assign:e}],type:f,rules:[{conditions:[{[s]:"isSet",[t]:o},{[s]:"parseURL",[t]:o,assign:"url"}],type:f,rules:[{conditions:p,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:q,type:f,rules:[{conditions:r,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:q,endpoint:{url:i,properties:l,headers:l},type:h}]}]},{conditions:[j,k],type:f,rules:[{conditions:[m,n],type:f,rules:[{conditions:q,endpoint:{url:"https://autoscaling-plans-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:p,type:f,rules:[{conditions:[m],type:f,rules:[{conditions:q,type:f,rules:[{conditions:q,endpoint:{url:"https://autoscaling-plans-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]},{conditions:q,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:r,type:f,rules:[{conditions:[n],type:f,rules:[{conditions:q,endpoint:{url:"https://autoscaling-plans.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:q,endpoint:{url:"https://autoscaling-plans.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-auto-scaling/src/endpoint/ruleset.ts b/clients/client-auto-scaling/src/endpoint/ruleset.ts index dba2be81dd4ae..5e5b00b61c27e 100644 --- a/clients/client-auto-scaling/src/endpoint/ruleset.ts +++ b/clients/client-auto-scaling/src/endpoint/ruleset.ts @@ -1,336 +1,33 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: true, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://autoscaling-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "stringEquals", - argv: [ - "aws-us-gov", - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "name", - ], - }, - ], - }, - ], - endpoint: { - url: "https://autoscaling.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - { - conditions: [], - endpoint: { - url: "https://autoscaling-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://autoscaling.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://autoscaling.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/auto-scaling.json */ + +const u="fn", +v="argv", +w="ref"; +const a=true, +b=false, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i="getAttr", +j={[w]:"Endpoint"}, +k={[u]:"booleanEquals",[v]:[{[w]:"UseFIPS"},true]}, +l={[u]:"booleanEquals",[v]:[{[w]:"UseDualStack"},true]}, +m={}, +n={[u]:"booleanEquals",[v]:[true,{[u]:i,[v]:[{[w]:e},"supportsFIPS"]}]}, +o={[w]:e}, +p={[u]:"booleanEquals",[v]:[true,{[u]:i,[v]:[o,"supportsDualStack"]}]}, +q={"url":"https://autoscaling.{Region}.{PartitionResult#dnsSuffix}","properties":{},"headers":{}}, +r=[k], +s=[], +t=[l]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:a,default:b,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:a,default:b,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:b,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[u]:"aws.partition",[v]:[{[w]:"Region"}],assign:e}],type:f,rules:[{conditions:[{[u]:"isSet",[v]:[j]}],type:f,rules:[{conditions:r,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:s,type:f,rules:[{conditions:t,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:s,endpoint:{url:j,properties:m,headers:m},type:h}]}]},{conditions:[k,l],type:f,rules:[{conditions:[n,p],type:f,rules:[{conditions:s,endpoint:{url:"https://autoscaling-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:m,headers:m},type:h}]},{conditions:s,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:r,type:f,rules:[{conditions:[n],type:f,rules:[{conditions:s,type:f,rules:[{conditions:[{[u]:"stringEquals",[v]:["aws-us-gov",{[u]:i,[v]:[o,"name"]}]}],endpoint:q,type:h},{conditions:s,endpoint:{url:"https://autoscaling-fips.{Region}.{PartitionResult#dnsSuffix}",properties:m,headers:m},type:h}]}]},{conditions:s,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:t,type:f,rules:[{conditions:[p],type:f,rules:[{conditions:s,endpoint:{url:"https://autoscaling.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:m,headers:m},type:h}]},{conditions:s,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:s,endpoint:q,type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-backup-gateway/src/endpoint/ruleset.ts b/clients/client-backup-gateway/src/endpoint/ruleset.ts index b3c5b75b1e5cf..fddb0ff95d933 100644 --- a/clients/client-backup-gateway/src/endpoint/ruleset.ts +++ b/clients/client-backup-gateway/src/endpoint/ruleset.ts @@ -1,311 +1,30 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: true, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://backup-gateway-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://backup-gateway-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://backup-gateway.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://backup-gateway.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/backup-gateway.json */ + +const r="fn", +s="argv", +t="ref"; +const a=true, +b=false, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i={[t]:"Endpoint"}, +j={[r]:"booleanEquals",[s]:[{[t]:"UseFIPS"},true]}, +k={[r]:"booleanEquals",[s]:[{[t]:"UseDualStack"},true]}, +l={}, +m={[r]:"booleanEquals",[s]:[true,{[r]:"getAttr",[s]:[{[t]:e},"supportsFIPS"]}]}, +n={[r]:"booleanEquals",[s]:[true,{[r]:"getAttr",[s]:[{[t]:e},"supportsDualStack"]}]}, +o=[j], +p=[], +q=[k]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:a,default:b,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:a,default:b,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:b,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[r]:"aws.partition",[s]:[{[t]:"Region"}],assign:e}],type:f,rules:[{conditions:[{[r]:"isSet",[s]:[i]}],type:f,rules:[{conditions:o,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:p,type:f,rules:[{conditions:q,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:p,endpoint:{url:i,properties:l,headers:l},type:h}]}]},{conditions:[j,k],type:f,rules:[{conditions:[m,n],type:f,rules:[{conditions:p,endpoint:{url:"https://backup-gateway-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:p,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:o,type:f,rules:[{conditions:[m],type:f,rules:[{conditions:p,type:f,rules:[{conditions:p,endpoint:{url:"https://backup-gateway-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]},{conditions:p,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:q,type:f,rules:[{conditions:[n],type:f,rules:[{conditions:p,endpoint:{url:"https://backup-gateway.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:p,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:p,endpoint:{url:"https://backup-gateway.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-backup/src/endpoint/ruleset.ts b/clients/client-backup/src/endpoint/ruleset.ts index d93bc73ae38b8..58d3fcb35ab67 100644 --- a/clients/client-backup/src/endpoint/ruleset.ts +++ b/clients/client-backup/src/endpoint/ruleset.ts @@ -1,320 +1,31 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: true, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://backup-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://backup-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://backup.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://backup.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/backup.json */ + +const s="fn", +t="argv", +u="ref"; +const a=true, +b=false, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i={[u]:"Endpoint"}, +j={[s]:"booleanEquals",[t]:[{[u]:"UseFIPS"},true]}, +k={[s]:"booleanEquals",[t]:[{[u]:"UseDualStack"},true]}, +l={}, +m={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsFIPS"]}]}, +n={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsDualStack"]}]}, +o=[i], +p=[j], +q=[], +r=[k]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:a,default:b,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:a,default:b,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:b,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[s]:"aws.partition",[t]:[{[u]:"Region"}],assign:e}],type:f,rules:[{conditions:[{[s]:"isSet",[t]:o},{[s]:"parseURL",[t]:o,assign:"url"}],type:f,rules:[{conditions:p,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:q,type:f,rules:[{conditions:r,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:q,endpoint:{url:i,properties:l,headers:l},type:h}]}]},{conditions:[j,k],type:f,rules:[{conditions:[m,n],type:f,rules:[{conditions:q,endpoint:{url:"https://backup-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:p,type:f,rules:[{conditions:[m],type:f,rules:[{conditions:q,type:f,rules:[{conditions:q,endpoint:{url:"https://backup-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]},{conditions:q,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:r,type:f,rules:[{conditions:[n],type:f,rules:[{conditions:q,endpoint:{url:"https://backup.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:q,endpoint:{url:"https://backup.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-backupstorage/src/endpoint/ruleset.ts b/clients/client-backupstorage/src/endpoint/ruleset.ts index d7a13748ded1b..f837a67efdbfc 100644 --- a/clients/client-backupstorage/src/endpoint/ruleset.ts +++ b/clients/client-backupstorage/src/endpoint/ruleset.ts @@ -1,314 +1,31 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: false, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://backupstorage-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://backupstorage-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://backupstorage.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://backupstorage.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/backupstorage.json */ + +const s="fn", +t="argv", +u="ref"; +const a=false, +b=true, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i={[u]:"Endpoint"}, +j={[s]:"booleanEquals",[t]:[{[u]:"UseFIPS"},true]}, +k={[s]:"booleanEquals",[t]:[{[u]:"UseDualStack"},true]}, +l={}, +m={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsFIPS"]}]}, +n={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsDualStack"]}]}, +o=[i], +p=[j], +q=[], +r=[k]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:b,default:a,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:b,default:a,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:a,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[s]:"aws.partition",[t]:[{[u]:"Region"}],assign:e}],type:f,rules:[{conditions:[{[s]:"isSet",[t]:o},{[s]:"parseURL",[t]:o,assign:"url"}],type:f,rules:[{conditions:p,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:q,type:f,rules:[{conditions:r,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:q,endpoint:{url:i,properties:l,headers:l},type:h}]}]},{conditions:[j,k],type:f,rules:[{conditions:[m,n],type:f,rules:[{conditions:q,endpoint:{url:"https://backupstorage-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:p,type:f,rules:[{conditions:[m],type:f,rules:[{conditions:q,endpoint:{url:"https://backupstorage-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:r,type:f,rules:[{conditions:[n],type:f,rules:[{conditions:q,endpoint:{url:"https://backupstorage.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:q,endpoint:{url:"https://backupstorage.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-batch/src/endpoint/ruleset.ts b/clients/client-batch/src/endpoint/ruleset.ts index 7a10afc04ebac..12c892811da8a 100644 --- a/clients/client-batch/src/endpoint/ruleset.ts +++ b/clients/client-batch/src/endpoint/ruleset.ts @@ -1,370 +1,34 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: false, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://batch-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "stringEquals", - argv: [ - "aws", - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "name", - ], - }, - ], - }, - ], - endpoint: { - url: "https://fips.batch.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - { - conditions: [ - { - fn: "stringEquals", - argv: [ - "aws-us-gov", - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "name", - ], - }, - ], - }, - ], - endpoint: { - url: "https://batch.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - { - conditions: [], - endpoint: { - url: "https://batch-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://batch.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://batch.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/batch.json */ + +const v="fn", +w="argv", +x="ref"; +const a=false, +b=true, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i="stringEquals", +j={[x]:"Endpoint"}, +k={[v]:"booleanEquals",[w]:[{[x]:"UseFIPS"},true]}, +l={[v]:"booleanEquals",[w]:[{[x]:"UseDualStack"},true]}, +m={}, +n={[v]:"booleanEquals",[w]:[true,{[v]:"getAttr",[w]:[{[x]:e},"supportsFIPS"]}]}, +o={[v]:"booleanEquals",[w]:[true,{[v]:"getAttr",[w]:[{[x]:e},"supportsDualStack"]}]}, +p={[v]:"getAttr",[w]:[{[x]:e},"name"]}, +q={"url":"https://batch.{Region}.{PartitionResult#dnsSuffix}","properties":{},"headers":{}}, +r=[j], +s=[k], +t=[], +u=[l]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:b,default:a,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:b,default:a,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:a,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[v]:"aws.partition",[w]:[{[x]:"Region"}],assign:e}],type:f,rules:[{conditions:[{[v]:"isSet",[w]:r},{[v]:"parseURL",[w]:r,assign:"url"}],type:f,rules:[{conditions:s,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:t,type:f,rules:[{conditions:u,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:t,endpoint:{url:j,properties:m,headers:m},type:h}]}]},{conditions:[k,l],type:f,rules:[{conditions:[n,o],type:f,rules:[{conditions:t,endpoint:{url:"https://batch-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:m,headers:m},type:h}]},{conditions:t,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:s,type:f,rules:[{conditions:[n],type:f,rules:[{conditions:t,type:f,rules:[{conditions:[{[v]:i,[w]:["aws",p]}],endpoint:{url:"https://fips.batch.{Region}.{PartitionResult#dnsSuffix}",properties:m,headers:m},type:h},{conditions:[{[v]:i,[w]:["aws-us-gov",p]}],endpoint:q,type:h},{conditions:t,endpoint:{url:"https://batch-fips.{Region}.{PartitionResult#dnsSuffix}",properties:m,headers:m},type:h}]}]},{conditions:t,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:u,type:f,rules:[{conditions:[o],type:f,rules:[{conditions:t,endpoint:{url:"https://batch.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:m,headers:m},type:h}]},{conditions:t,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:t,endpoint:q,type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-billingconductor/src/endpoint/ruleset.ts b/clients/client-billingconductor/src/endpoint/ruleset.ts index 9d9a9031646fb..2cb6147533cc3 100644 --- a/clients/client-billingconductor/src/endpoint/ruleset.ts +++ b/clients/client-billingconductor/src/endpoint/ruleset.ts @@ -1,596 +1,42 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: true, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "stringEquals", - argv: [ - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "name", - ], - }, - "aws", - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://billingconductor-fips.{Region}.api.aws", - properties: { - authSchemes: [ - { - name: "sigv4", - signingRegion: "us-east-1", - signingName: "billingconductor", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://billingconductor-fips.{Region}.amazonaws.com", - properties: { - authSchemes: [ - { - name: "sigv4", - signingRegion: "us-east-1", - signingName: "billingconductor", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://billingconductor.{Region}.api.aws", - properties: { - authSchemes: [ - { - name: "sigv4", - signingRegion: "us-east-1", - signingName: "billingconductor", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://billingconductor.us-east-1.amazonaws.com", - properties: { - authSchemes: [ - { - name: "sigv4", - signingRegion: "us-east-1", - signingName: "billingconductor", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://billingconductor-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://billingconductor-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://billingconductor.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "stringEquals", - argv: [ - { - ref: "Region", - }, - "aws-global", - ], - }, - ], - endpoint: { - url: "https://billingconductor.us-east-1.amazonaws.com", - properties: { - authSchemes: [ - { - name: "sigv4", - signingRegion: "us-east-1", - signingName: "billingconductor", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - { - conditions: [], - endpoint: { - url: "https://billingconductor.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/billingconductor.json */ + +const B="type", +C="conditions", +D="fn", +E="argv", +F="ref"; +const a=true, +b=false, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i="stringEquals", +j="getAttr", +k={[F]:"Region"}, +l={[F]:"Endpoint"}, +m={}, +n={[F]:e}, +o={"authSchemes":[{"name":"sigv4","signingRegion":"us-east-1","signingName":"billingconductor"}]}, +p={[C]:[],[g]:"FIPS and DualStack are enabled, but this partition does not support one or both",[B]:g}, +q={[C]:[],[g]:"FIPS is enabled but this partition does not support FIPS",[B]:g}, +r={[C]:[],[g]:"DualStack is enabled but this partition does not support DualStack",[B]:g}, +s={"url":"https://billingconductor.us-east-1.amazonaws.com","properties":o,"headers":{}}, +t=[l], +u=[{[D]:"booleanEquals",[E]:[{[F]:"UseFIPS"},true]}], +v=[], +w=[{[D]:"booleanEquals",[E]:[{[F]:"UseDualStack"},true]}], +x=[{[D]:"booleanEquals",[E]:[{[F]:"UseFIPS"},true]},{[D]:"booleanEquals",[E]:[{[F]:"UseDualStack"},true]}], +y=[{[D]:"booleanEquals",[E]:[true,{[D]:j,[E]:[n,"supportsFIPS"]}]},{[D]:"booleanEquals",[E]:[true,{[D]:j,[E]:[n,"supportsDualStack"]}]}], +z=[{[D]:"booleanEquals",[E]:[true,{[D]:j,[E]:[n,"supportsFIPS"]}]}], +A=[{[D]:"booleanEquals",[E]:[true,{[D]:j,[E]:[n,"supportsDualStack"]}]}]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",[B]:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:a,default:b,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",[B]:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:a,default:b,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",[B]:d},Endpoint:{builtIn:"SDK::Endpoint",required:b,documentation:"Override the endpoint used to send this request",[B]:c}},rules:[{[C]:[{[D]:"aws.partition",[E]:[k],assign:e}],[B]:f,rules:[{[C]:[{[D]:"isSet",[E]:t},{[D]:"parseURL",[E]:t,assign:"url"}],[B]:f,rules:[{[C]:u,error:"Invalid Configuration: FIPS and custom endpoint are not supported",[B]:g},{[C]:v,[B]:f,rules:[{[C]:w,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",[B]:g},{[C]:v,endpoint:{url:l,properties:m,headers:m},[B]:h}]}]},{[C]:[{[D]:i,[E]:[{[D]:j,[E]:[n,"name"]},"aws"]}],[B]:f,rules:[{[C]:x,[B]:f,rules:[{[C]:y,[B]:f,rules:[{[C]:v,endpoint:{url:"https://billingconductor-fips.{Region}.api.aws",properties:o,headers:m},[B]:h}]},p]},{[C]:u,[B]:f,rules:[{[C]:z,[B]:f,rules:[{[C]:v,endpoint:{url:"https://billingconductor-fips.{Region}.amazonaws.com",properties:o,headers:m},[B]:h}]},q]},{[C]:w,[B]:f,rules:[{[C]:A,[B]:f,rules:[{[C]:v,endpoint:{url:"https://billingconductor.{Region}.api.aws",properties:o,headers:m},[B]:h}]},r]},{[C]:v,endpoint:s,[B]:h}]},{[C]:x,[B]:f,rules:[{[C]:y,[B]:f,rules:[{[C]:v,endpoint:{url:"https://billingconductor-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:m,headers:m},[B]:h}]},p]},{[C]:u,[B]:f,rules:[{[C]:z,[B]:f,rules:[{[C]:v,[B]:f,rules:[{[C]:v,endpoint:{url:"https://billingconductor-fips.{Region}.{PartitionResult#dnsSuffix}",properties:m,headers:m},[B]:h}]}]},q]},{[C]:w,[B]:f,rules:[{[C]:A,[B]:f,rules:[{[C]:v,endpoint:{url:"https://billingconductor.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:m,headers:m},[B]:h}]},r]},{[C]:v,[B]:f,rules:[{[C]:[{[D]:i,[E]:[k,"aws-global"]}],endpoint:s,[B]:h},{[C]:v,endpoint:{url:"https://billingconductor.{Region}.{PartitionResult#dnsSuffix}",properties:m,headers:m},[B]:h}]}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-braket/src/endpoint/ruleset.ts b/clients/client-braket/src/endpoint/ruleset.ts index 723a48e38c475..47ff2e180a47e 100644 --- a/clients/client-braket/src/endpoint/ruleset.ts +++ b/clients/client-braket/src/endpoint/ruleset.ts @@ -1,320 +1,31 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: false, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://braket-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://braket-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://braket.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://braket.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/braket.json */ + +const s="fn", +t="argv", +u="ref"; +const a=false, +b=true, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i={[u]:"Endpoint"}, +j={[s]:"booleanEquals",[t]:[{[u]:"UseFIPS"},true]}, +k={[s]:"booleanEquals",[t]:[{[u]:"UseDualStack"},true]}, +l={}, +m={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsFIPS"]}]}, +n={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsDualStack"]}]}, +o=[i], +p=[j], +q=[], +r=[k]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:b,default:a,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:b,default:a,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:a,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[s]:"aws.partition",[t]:[{[u]:"Region"}],assign:e}],type:f,rules:[{conditions:[{[s]:"isSet",[t]:o},{[s]:"parseURL",[t]:o,assign:"url"}],type:f,rules:[{conditions:p,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:q,type:f,rules:[{conditions:r,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:q,endpoint:{url:i,properties:l,headers:l},type:h}]}]},{conditions:[j,k],type:f,rules:[{conditions:[m,n],type:f,rules:[{conditions:q,endpoint:{url:"https://braket-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:p,type:f,rules:[{conditions:[m],type:f,rules:[{conditions:q,type:f,rules:[{conditions:q,endpoint:{url:"https://braket-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]},{conditions:q,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:r,type:f,rules:[{conditions:[n],type:f,rules:[{conditions:q,endpoint:{url:"https://braket.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:q,endpoint:{url:"https://braket.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-budgets/src/endpoint/ruleset.ts b/clients/client-budgets/src/endpoint/ruleset.ts index a9ae5195b3b59..92ec6137b2902 100644 --- a/clients/client-budgets/src/endpoint/ruleset.ts +++ b/clients/client-budgets/src/endpoint/ruleset.ts @@ -1,866 +1,48 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: false, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "stringEquals", - argv: [ - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "name", - ], - }, - "aws", - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://budgets-fips.{Region}.api.aws", - properties: { - authSchemes: [ - { - name: "sigv4", - signingName: "budgets", - signingRegion: "us-east-1", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://budgets-fips.{Region}.amazonaws.com", - properties: { - authSchemes: [ - { - name: "sigv4", - signingName: "budgets", - signingRegion: "us-east-1", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://budgets.{Region}.api.aws", - properties: { - authSchemes: [ - { - name: "sigv4", - signingName: "budgets", - signingRegion: "us-east-1", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://budgets.amazonaws.com", - properties: { - authSchemes: [ - { - name: "sigv4", - signingName: "budgets", - signingRegion: "us-east-1", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [ - { - fn: "stringEquals", - argv: [ - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "name", - ], - }, - "aws-cn", - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://budgets-fips.{Region}.api.amazonwebservices.com.cn", - properties: { - authSchemes: [ - { - name: "sigv4", - signingName: "budgets", - signingRegion: "cn-northwest-1", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://budgets-fips.{Region}.amazonaws.com.cn", - properties: { - authSchemes: [ - { - name: "sigv4", - signingName: "budgets", - signingRegion: "cn-northwest-1", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://budgets.{Region}.api.amazonwebservices.com.cn", - properties: { - authSchemes: [ - { - name: "sigv4", - signingName: "budgets", - signingRegion: "cn-northwest-1", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://budgets.amazonaws.com.cn", - properties: { - authSchemes: [ - { - name: "sigv4", - signingName: "budgets", - signingRegion: "cn-northwest-1", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://budgets-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://budgets-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://budgets.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "stringEquals", - argv: [ - { - ref: "Region", - }, - "aws-global", - ], - }, - ], - endpoint: { - url: "https://budgets.amazonaws.com", - properties: { - authSchemes: [ - { - name: "sigv4", - signingName: "budgets", - signingRegion: "us-east-1", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - { - conditions: [ - { - fn: "stringEquals", - argv: [ - { - ref: "Region", - }, - "aws-cn-global", - ], - }, - ], - endpoint: { - url: "https://budgets.amazonaws.com.cn", - properties: { - authSchemes: [ - { - name: "sigv4", - signingName: "budgets", - signingRegion: "cn-northwest-1", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - { - conditions: [], - endpoint: { - url: "https://budgets.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/budgets.json */ + +const C="type", +D="conditions", +E="fn", +F="argv", +G="ref", +H="properties", +I="headers", +J="authSchemes", +K="signingName", +L="signingRegion"; +const a=false, +b=true, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i="stringEquals", +j={[G]:"Region"}, +k={[G]:"Endpoint"}, +l={}, +m={[E]:"getAttr",[F]:[{[G]:e},"name"]}, +n={[J]:[{"name":"sigv4",[K]:"budgets",[L]:"us-east-1"}]}, +o={[D]:[],[g]:"FIPS and DualStack are enabled, but this partition does not support one or both",[C]:g}, +p={[D]:[],[g]:"FIPS is enabled but this partition does not support FIPS",[C]:g}, +q={[D]:[],[g]:"DualStack is enabled but this partition does not support DualStack",[C]:g}, +r={"url":"https://budgets.amazonaws.com",[H]:n,[I]:{}}, +s={[J]:[{"name":"sigv4",[K]:"budgets",[L]:"cn-northwest-1"}]}, +t={"url":"https://budgets.amazonaws.com.cn",[H]:s,[I]:{}}, +u=[k], +v=[{[E]:"booleanEquals",[F]:[{[G]:"UseFIPS"},true]}], +w=[], +x=[{[E]:"booleanEquals",[F]:[{[G]:"UseDualStack"},true]}], +y=[{[E]:"booleanEquals",[F]:[{[G]:"UseFIPS"},true]},{[E]:"booleanEquals",[F]:[{[G]:"UseDualStack"},true]}], +z=[{[E]:"booleanEquals",[F]:[true,{[E]:"getAttr",[F]:[{[G]:e},"supportsFIPS"]}]},{[E]:"booleanEquals",[F]:[true,{[E]:"getAttr",[F]:[{[G]:e},"supportsDualStack"]}]}], +A=[{[E]:"booleanEquals",[F]:[true,{[E]:"getAttr",[F]:[{[G]:e},"supportsFIPS"]}]}], +B=[{[E]:"booleanEquals",[F]:[true,{[E]:"getAttr",[F]:[{[G]:e},"supportsDualStack"]}]}]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",[C]:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:b,default:a,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",[C]:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:b,default:a,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",[C]:d},Endpoint:{builtIn:"SDK::Endpoint",required:a,documentation:"Override the endpoint used to send this request",[C]:c}},rules:[{[D]:[{[E]:"aws.partition",[F]:[j],assign:e}],[C]:f,rules:[{[D]:[{[E]:"isSet",[F]:u},{[E]:"parseURL",[F]:u,assign:"url"}],[C]:f,rules:[{[D]:v,error:"Invalid Configuration: FIPS and custom endpoint are not supported",[C]:g},{[D]:w,[C]:f,rules:[{[D]:x,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",[C]:g},{[D]:w,endpoint:{url:k,[H]:l,[I]:l},[C]:h}]}]},{[D]:[{[E]:i,[F]:[m,"aws"]}],[C]:f,rules:[{[D]:y,[C]:f,rules:[{[D]:z,[C]:f,rules:[{[D]:w,endpoint:{url:"https://budgets-fips.{Region}.api.aws",[H]:n,[I]:l},[C]:h}]},o]},{[D]:v,[C]:f,rules:[{[D]:A,[C]:f,rules:[{[D]:w,endpoint:{url:"https://budgets-fips.{Region}.amazonaws.com",[H]:n,[I]:l},[C]:h}]},p]},{[D]:x,[C]:f,rules:[{[D]:B,[C]:f,rules:[{[D]:w,endpoint:{url:"https://budgets.{Region}.api.aws",[H]:n,[I]:l},[C]:h}]},q]},{[D]:w,endpoint:r,[C]:h}]},{[D]:[{[E]:i,[F]:[m,"aws-cn"]}],[C]:f,rules:[{[D]:y,[C]:f,rules:[{[D]:z,[C]:f,rules:[{[D]:w,endpoint:{url:"https://budgets-fips.{Region}.api.amazonwebservices.com.cn",[H]:s,[I]:l},[C]:h}]},o]},{[D]:v,[C]:f,rules:[{[D]:A,[C]:f,rules:[{[D]:w,endpoint:{url:"https://budgets-fips.{Region}.amazonaws.com.cn",[H]:s,[I]:l},[C]:h}]},p]},{[D]:x,[C]:f,rules:[{[D]:B,[C]:f,rules:[{[D]:w,endpoint:{url:"https://budgets.{Region}.api.amazonwebservices.com.cn",[H]:s,[I]:l},[C]:h}]},q]},{[D]:w,endpoint:t,[C]:h}]},{[D]:y,[C]:f,rules:[{[D]:z,[C]:f,rules:[{[D]:w,endpoint:{url:"https://budgets-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",[H]:l,[I]:l},[C]:h}]},o]},{[D]:v,[C]:f,rules:[{[D]:A,[C]:f,rules:[{[D]:w,[C]:f,rules:[{[D]:w,endpoint:{url:"https://budgets-fips.{Region}.{PartitionResult#dnsSuffix}",[H]:l,[I]:l},[C]:h}]}]},p]},{[D]:x,[C]:f,rules:[{[D]:B,[C]:f,rules:[{[D]:w,endpoint:{url:"https://budgets.{Region}.{PartitionResult#dualStackDnsSuffix}",[H]:l,[I]:l},[C]:h}]},q]},{[D]:w,[C]:f,rules:[{[D]:[{[E]:i,[F]:[j,"aws-global"]}],endpoint:r,[C]:h},{[D]:[{[E]:i,[F]:[j,"aws-cn-global"]}],endpoint:t,[C]:h},{[D]:w,endpoint:{url:"https://budgets.{Region}.{PartitionResult#dnsSuffix}",[H]:l,[I]:l},[C]:h}]}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-chime-sdk-identity/src/endpoint/ruleset.ts b/clients/client-chime-sdk-identity/src/endpoint/ruleset.ts index 117e72af43c55..61a7643d182a4 100644 --- a/clients/client-chime-sdk-identity/src/endpoint/ruleset.ts +++ b/clients/client-chime-sdk-identity/src/endpoint/ruleset.ts @@ -1,320 +1,31 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: false, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://identity-chime-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://identity-chime-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://identity-chime.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://identity-chime.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/chime-sdk-identity.json */ + +const s="fn", +t="argv", +u="ref"; +const a=false, +b=true, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i={[u]:"Endpoint"}, +j={[s]:"booleanEquals",[t]:[{[u]:"UseFIPS"},true]}, +k={[s]:"booleanEquals",[t]:[{[u]:"UseDualStack"},true]}, +l={}, +m={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsFIPS"]}]}, +n={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsDualStack"]}]}, +o=[i], +p=[j], +q=[], +r=[k]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:b,default:a,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:b,default:a,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:a,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[s]:"aws.partition",[t]:[{[u]:"Region"}],assign:e}],type:f,rules:[{conditions:[{[s]:"isSet",[t]:o},{[s]:"parseURL",[t]:o,assign:"url"}],type:f,rules:[{conditions:p,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:q,type:f,rules:[{conditions:r,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:q,endpoint:{url:i,properties:l,headers:l},type:h}]}]},{conditions:[j,k],type:f,rules:[{conditions:[m,n],type:f,rules:[{conditions:q,endpoint:{url:"https://identity-chime-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:p,type:f,rules:[{conditions:[m],type:f,rules:[{conditions:q,type:f,rules:[{conditions:q,endpoint:{url:"https://identity-chime-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]},{conditions:q,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:r,type:f,rules:[{conditions:[n],type:f,rules:[{conditions:q,endpoint:{url:"https://identity-chime.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:q,endpoint:{url:"https://identity-chime.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-chime-sdk-media-pipelines/src/endpoint/ruleset.ts b/clients/client-chime-sdk-media-pipelines/src/endpoint/ruleset.ts index a3030afa9a7b5..20a3484521467 100644 --- a/clients/client-chime-sdk-media-pipelines/src/endpoint/ruleset.ts +++ b/clients/client-chime-sdk-media-pipelines/src/endpoint/ruleset.ts @@ -1,320 +1,31 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: false, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://media-pipelines-chime-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://media-pipelines-chime-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://media-pipelines-chime.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://media-pipelines-chime.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/chime-sdk-media-pipelines.json */ + +const s="fn", +t="argv", +u="ref"; +const a=false, +b=true, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i={[u]:"Endpoint"}, +j={[s]:"booleanEquals",[t]:[{[u]:"UseFIPS"},true]}, +k={[s]:"booleanEquals",[t]:[{[u]:"UseDualStack"},true]}, +l={}, +m={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsFIPS"]}]}, +n={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsDualStack"]}]}, +o=[i], +p=[j], +q=[], +r=[k]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:b,default:a,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:b,default:a,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:a,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[s]:"aws.partition",[t]:[{[u]:"Region"}],assign:e}],type:f,rules:[{conditions:[{[s]:"isSet",[t]:o},{[s]:"parseURL",[t]:o,assign:"url"}],type:f,rules:[{conditions:p,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:q,type:f,rules:[{conditions:r,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:q,endpoint:{url:i,properties:l,headers:l},type:h}]}]},{conditions:[j,k],type:f,rules:[{conditions:[m,n],type:f,rules:[{conditions:q,endpoint:{url:"https://media-pipelines-chime-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:p,type:f,rules:[{conditions:[m],type:f,rules:[{conditions:q,type:f,rules:[{conditions:q,endpoint:{url:"https://media-pipelines-chime-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]},{conditions:q,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:r,type:f,rules:[{conditions:[n],type:f,rules:[{conditions:q,endpoint:{url:"https://media-pipelines-chime.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:q,endpoint:{url:"https://media-pipelines-chime.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-chime-sdk-meetings/src/endpoint/ruleset.ts b/clients/client-chime-sdk-meetings/src/endpoint/ruleset.ts index 09e826792b745..36ec75b8a4626 100644 --- a/clients/client-chime-sdk-meetings/src/endpoint/ruleset.ts +++ b/clients/client-chime-sdk-meetings/src/endpoint/ruleset.ts @@ -1,320 +1,31 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: false, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://meetings-chime-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://meetings-chime-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://meetings-chime.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://meetings-chime.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/chime-sdk-meetings.json */ + +const s="fn", +t="argv", +u="ref"; +const a=false, +b=true, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i={[u]:"Endpoint"}, +j={[s]:"booleanEquals",[t]:[{[u]:"UseFIPS"},true]}, +k={[s]:"booleanEquals",[t]:[{[u]:"UseDualStack"},true]}, +l={}, +m={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsFIPS"]}]}, +n={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsDualStack"]}]}, +o=[i], +p=[j], +q=[], +r=[k]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:b,default:a,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:b,default:a,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:a,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[s]:"aws.partition",[t]:[{[u]:"Region"}],assign:e}],type:f,rules:[{conditions:[{[s]:"isSet",[t]:o},{[s]:"parseURL",[t]:o,assign:"url"}],type:f,rules:[{conditions:p,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:q,type:f,rules:[{conditions:r,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:q,endpoint:{url:i,properties:l,headers:l},type:h}]}]},{conditions:[j,k],type:f,rules:[{conditions:[m,n],type:f,rules:[{conditions:q,endpoint:{url:"https://meetings-chime-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:p,type:f,rules:[{conditions:[m],type:f,rules:[{conditions:q,type:f,rules:[{conditions:q,endpoint:{url:"https://meetings-chime-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]},{conditions:q,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:r,type:f,rules:[{conditions:[n],type:f,rules:[{conditions:q,endpoint:{url:"https://meetings-chime.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:q,endpoint:{url:"https://meetings-chime.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-chime-sdk-messaging/src/endpoint/ruleset.ts b/clients/client-chime-sdk-messaging/src/endpoint/ruleset.ts index 5e4ec3097ae7f..6fca3869acc73 100644 --- a/clients/client-chime-sdk-messaging/src/endpoint/ruleset.ts +++ b/clients/client-chime-sdk-messaging/src/endpoint/ruleset.ts @@ -1,320 +1,31 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: true, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://messaging-chime-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://messaging-chime-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://messaging-chime.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://messaging-chime.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/chime-sdk-messaging.json */ + +const s="fn", +t="argv", +u="ref"; +const a=true, +b=false, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i={[u]:"Endpoint"}, +j={[s]:"booleanEquals",[t]:[{[u]:"UseFIPS"},true]}, +k={[s]:"booleanEquals",[t]:[{[u]:"UseDualStack"},true]}, +l={}, +m={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsFIPS"]}]}, +n={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsDualStack"]}]}, +o=[i], +p=[j], +q=[], +r=[k]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:a,default:b,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:a,default:b,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:b,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[s]:"aws.partition",[t]:[{[u]:"Region"}],assign:e}],type:f,rules:[{conditions:[{[s]:"isSet",[t]:o},{[s]:"parseURL",[t]:o,assign:"url"}],type:f,rules:[{conditions:p,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:q,type:f,rules:[{conditions:r,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:q,endpoint:{url:i,properties:l,headers:l},type:h}]}]},{conditions:[j,k],type:f,rules:[{conditions:[m,n],type:f,rules:[{conditions:q,endpoint:{url:"https://messaging-chime-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:p,type:f,rules:[{conditions:[m],type:f,rules:[{conditions:q,type:f,rules:[{conditions:q,endpoint:{url:"https://messaging-chime-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]},{conditions:q,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:r,type:f,rules:[{conditions:[n],type:f,rules:[{conditions:q,endpoint:{url:"https://messaging-chime.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:q,endpoint:{url:"https://messaging-chime.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-chime-sdk-voice/src/endpoint/ruleset.ts b/clients/client-chime-sdk-voice/src/endpoint/ruleset.ts index e5691bd15b36d..61d3d68f806cd 100644 --- a/clients/client-chime-sdk-voice/src/endpoint/ruleset.ts +++ b/clients/client-chime-sdk-voice/src/endpoint/ruleset.ts @@ -1,314 +1,31 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: false, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://voice-chime-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://voice-chime-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://voice-chime.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://voice-chime.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/chime-sdk-voice.json */ + +const s="fn", +t="argv", +u="ref"; +const a=false, +b=true, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i={[u]:"Endpoint"}, +j={[s]:"booleanEquals",[t]:[{[u]:"UseFIPS"},true]}, +k={[s]:"booleanEquals",[t]:[{[u]:"UseDualStack"},true]}, +l={}, +m={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsFIPS"]}]}, +n={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsDualStack"]}]}, +o=[i], +p=[j], +q=[], +r=[k]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:b,default:a,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:b,default:a,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:a,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[s]:"aws.partition",[t]:[{[u]:"Region"}],assign:e}],type:f,rules:[{conditions:[{[s]:"isSet",[t]:o},{[s]:"parseURL",[t]:o,assign:"url"}],type:f,rules:[{conditions:p,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:q,type:f,rules:[{conditions:r,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:q,endpoint:{url:i,properties:l,headers:l},type:h}]}]},{conditions:[j,k],type:f,rules:[{conditions:[m,n],type:f,rules:[{conditions:q,endpoint:{url:"https://voice-chime-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:p,type:f,rules:[{conditions:[m],type:f,rules:[{conditions:q,endpoint:{url:"https://voice-chime-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:r,type:f,rules:[{conditions:[n],type:f,rules:[{conditions:q,endpoint:{url:"https://voice-chime.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:q,endpoint:{url:"https://voice-chime.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-chime/src/endpoint/ruleset.ts b/clients/client-chime/src/endpoint/ruleset.ts index 213c204305391..830c3a5a96638 100644 --- a/clients/client-chime/src/endpoint/ruleset.ts +++ b/clients/client-chime/src/endpoint/ruleset.ts @@ -1,596 +1,42 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: false, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "stringEquals", - argv: [ - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "name", - ], - }, - "aws", - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://chime-fips.{Region}.api.aws", - properties: { - authSchemes: [ - { - name: "sigv4", - signingName: "chime", - signingRegion: "us-east-1", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://chime-fips.{Region}.amazonaws.com", - properties: { - authSchemes: [ - { - name: "sigv4", - signingName: "chime", - signingRegion: "us-east-1", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://chime.{Region}.api.aws", - properties: { - authSchemes: [ - { - name: "sigv4", - signingName: "chime", - signingRegion: "us-east-1", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://chime.us-east-1.amazonaws.com", - properties: { - authSchemes: [ - { - name: "sigv4", - signingName: "chime", - signingRegion: "us-east-1", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://chime-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://chime-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://chime.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "stringEquals", - argv: [ - { - ref: "Region", - }, - "aws-global", - ], - }, - ], - endpoint: { - url: "https://chime.us-east-1.amazonaws.com", - properties: { - authSchemes: [ - { - name: "sigv4", - signingName: "chime", - signingRegion: "us-east-1", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - { - conditions: [], - endpoint: { - url: "https://chime.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/chime.json */ + +const B="type", +C="conditions", +D="fn", +E="argv", +F="ref"; +const a=false, +b=true, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i="stringEquals", +j="getAttr", +k={[F]:"Region"}, +l={[F]:"Endpoint"}, +m={}, +n={[F]:e}, +o={"authSchemes":[{"name":"sigv4","signingName":"chime","signingRegion":"us-east-1"}]}, +p={[C]:[],[g]:"FIPS and DualStack are enabled, but this partition does not support one or both",[B]:g}, +q={[C]:[],[g]:"FIPS is enabled but this partition does not support FIPS",[B]:g}, +r={[C]:[],[g]:"DualStack is enabled but this partition does not support DualStack",[B]:g}, +s={"url":"https://chime.us-east-1.amazonaws.com","properties":o,"headers":{}}, +t=[l], +u=[{[D]:"booleanEquals",[E]:[{[F]:"UseFIPS"},true]}], +v=[], +w=[{[D]:"booleanEquals",[E]:[{[F]:"UseDualStack"},true]}], +x=[{[D]:"booleanEquals",[E]:[{[F]:"UseFIPS"},true]},{[D]:"booleanEquals",[E]:[{[F]:"UseDualStack"},true]}], +y=[{[D]:"booleanEquals",[E]:[true,{[D]:j,[E]:[n,"supportsFIPS"]}]},{[D]:"booleanEquals",[E]:[true,{[D]:j,[E]:[n,"supportsDualStack"]}]}], +z=[{[D]:"booleanEquals",[E]:[true,{[D]:j,[E]:[n,"supportsFIPS"]}]}], +A=[{[D]:"booleanEquals",[E]:[true,{[D]:j,[E]:[n,"supportsDualStack"]}]}]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",[B]:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:b,default:a,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",[B]:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:b,default:a,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",[B]:d},Endpoint:{builtIn:"SDK::Endpoint",required:a,documentation:"Override the endpoint used to send this request",[B]:c}},rules:[{[C]:[{[D]:"aws.partition",[E]:[k],assign:e}],[B]:f,rules:[{[C]:[{[D]:"isSet",[E]:t},{[D]:"parseURL",[E]:t,assign:"url"}],[B]:f,rules:[{[C]:u,error:"Invalid Configuration: FIPS and custom endpoint are not supported",[B]:g},{[C]:v,[B]:f,rules:[{[C]:w,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",[B]:g},{[C]:v,endpoint:{url:l,properties:m,headers:m},[B]:h}]}]},{[C]:[{[D]:i,[E]:[{[D]:j,[E]:[n,"name"]},"aws"]}],[B]:f,rules:[{[C]:x,[B]:f,rules:[{[C]:y,[B]:f,rules:[{[C]:v,endpoint:{url:"https://chime-fips.{Region}.api.aws",properties:o,headers:m},[B]:h}]},p]},{[C]:u,[B]:f,rules:[{[C]:z,[B]:f,rules:[{[C]:v,endpoint:{url:"https://chime-fips.{Region}.amazonaws.com",properties:o,headers:m},[B]:h}]},q]},{[C]:w,[B]:f,rules:[{[C]:A,[B]:f,rules:[{[C]:v,endpoint:{url:"https://chime.{Region}.api.aws",properties:o,headers:m},[B]:h}]},r]},{[C]:v,endpoint:s,[B]:h}]},{[C]:x,[B]:f,rules:[{[C]:y,[B]:f,rules:[{[C]:v,endpoint:{url:"https://chime-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:m,headers:m},[B]:h}]},p]},{[C]:u,[B]:f,rules:[{[C]:z,[B]:f,rules:[{[C]:v,[B]:f,rules:[{[C]:v,endpoint:{url:"https://chime-fips.{Region}.{PartitionResult#dnsSuffix}",properties:m,headers:m},[B]:h}]}]},q]},{[C]:w,[B]:f,rules:[{[C]:A,[B]:f,rules:[{[C]:v,endpoint:{url:"https://chime.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:m,headers:m},[B]:h}]},r]},{[C]:v,[B]:f,rules:[{[C]:[{[D]:i,[E]:[k,"aws-global"]}],endpoint:s,[B]:h},{[C]:v,endpoint:{url:"https://chime.{Region}.{PartitionResult#dnsSuffix}",properties:m,headers:m},[B]:h}]}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-cloud9/src/endpoint/ruleset.ts b/clients/client-cloud9/src/endpoint/ruleset.ts index b6d182f7182d6..dc1928e11d901 100644 --- a/clients/client-cloud9/src/endpoint/ruleset.ts +++ b/clients/client-cloud9/src/endpoint/ruleset.ts @@ -1,320 +1,31 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: false, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://cloud9-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://cloud9-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://cloud9.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://cloud9.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/cloud9.json */ + +const s="fn", +t="argv", +u="ref"; +const a=false, +b=true, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i={[u]:"Endpoint"}, +j={[s]:"booleanEquals",[t]:[{[u]:"UseFIPS"},true]}, +k={[s]:"booleanEquals",[t]:[{[u]:"UseDualStack"},true]}, +l={}, +m={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsFIPS"]}]}, +n={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsDualStack"]}]}, +o=[i], +p=[j], +q=[], +r=[k]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:b,default:a,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:b,default:a,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:a,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[s]:"aws.partition",[t]:[{[u]:"Region"}],assign:e}],type:f,rules:[{conditions:[{[s]:"isSet",[t]:o},{[s]:"parseURL",[t]:o,assign:"url"}],type:f,rules:[{conditions:p,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:q,type:f,rules:[{conditions:r,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:q,endpoint:{url:i,properties:l,headers:l},type:h}]}]},{conditions:[j,k],type:f,rules:[{conditions:[m,n],type:f,rules:[{conditions:q,endpoint:{url:"https://cloud9-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:p,type:f,rules:[{conditions:[m],type:f,rules:[{conditions:q,type:f,rules:[{conditions:q,endpoint:{url:"https://cloud9-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]},{conditions:q,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:r,type:f,rules:[{conditions:[n],type:f,rules:[{conditions:q,endpoint:{url:"https://cloud9.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:q,endpoint:{url:"https://cloud9.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-cloudcontrol/src/endpoint/ruleset.ts b/clients/client-cloudcontrol/src/endpoint/ruleset.ts index 366f4a75497a7..a3914c2f5f2f5 100644 --- a/clients/client-cloudcontrol/src/endpoint/ruleset.ts +++ b/clients/client-cloudcontrol/src/endpoint/ruleset.ts @@ -1,320 +1,31 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: false, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://cloudcontrolapi-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://cloudcontrolapi-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://cloudcontrolapi.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://cloudcontrolapi.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/cloudcontrol.json */ + +const s="fn", +t="argv", +u="ref"; +const a=false, +b=true, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i={[u]:"Endpoint"}, +j={[s]:"booleanEquals",[t]:[{[u]:"UseFIPS"},true]}, +k={[s]:"booleanEquals",[t]:[{[u]:"UseDualStack"},true]}, +l={}, +m={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsFIPS"]}]}, +n={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsDualStack"]}]}, +o=[i], +p=[j], +q=[], +r=[k]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:b,default:a,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:b,default:a,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:a,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[s]:"aws.partition",[t]:[{[u]:"Region"}],assign:e}],type:f,rules:[{conditions:[{[s]:"isSet",[t]:o},{[s]:"parseURL",[t]:o,assign:"url"}],type:f,rules:[{conditions:p,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:q,type:f,rules:[{conditions:r,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:q,endpoint:{url:i,properties:l,headers:l},type:h}]}]},{conditions:[j,k],type:f,rules:[{conditions:[m,n],type:f,rules:[{conditions:q,endpoint:{url:"https://cloudcontrolapi-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:p,type:f,rules:[{conditions:[m],type:f,rules:[{conditions:q,type:f,rules:[{conditions:q,endpoint:{url:"https://cloudcontrolapi-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]},{conditions:q,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:r,type:f,rules:[{conditions:[n],type:f,rules:[{conditions:q,endpoint:{url:"https://cloudcontrolapi.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:q,endpoint:{url:"https://cloudcontrolapi.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-clouddirectory/src/endpoint/ruleset.ts b/clients/client-clouddirectory/src/endpoint/ruleset.ts index 4fdd4267cb7b3..89d2aa2e3e1a1 100644 --- a/clients/client-clouddirectory/src/endpoint/ruleset.ts +++ b/clients/client-clouddirectory/src/endpoint/ruleset.ts @@ -1,320 +1,31 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: false, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://clouddirectory-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://clouddirectory-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://clouddirectory.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://clouddirectory.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/clouddirectory.json */ + +const s="fn", +t="argv", +u="ref"; +const a=false, +b=true, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i={[u]:"Endpoint"}, +j={[s]:"booleanEquals",[t]:[{[u]:"UseFIPS"},true]}, +k={[s]:"booleanEquals",[t]:[{[u]:"UseDualStack"},true]}, +l={}, +m={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsFIPS"]}]}, +n={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsDualStack"]}]}, +o=[i], +p=[j], +q=[], +r=[k]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:b,default:a,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:b,default:a,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:a,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[s]:"aws.partition",[t]:[{[u]:"Region"}],assign:e}],type:f,rules:[{conditions:[{[s]:"isSet",[t]:o},{[s]:"parseURL",[t]:o,assign:"url"}],type:f,rules:[{conditions:p,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:q,type:f,rules:[{conditions:r,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:q,endpoint:{url:i,properties:l,headers:l},type:h}]}]},{conditions:[j,k],type:f,rules:[{conditions:[m,n],type:f,rules:[{conditions:q,endpoint:{url:"https://clouddirectory-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:p,type:f,rules:[{conditions:[m],type:f,rules:[{conditions:q,type:f,rules:[{conditions:q,endpoint:{url:"https://clouddirectory-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]},{conditions:q,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:r,type:f,rules:[{conditions:[n],type:f,rules:[{conditions:q,endpoint:{url:"https://clouddirectory.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:q,endpoint:{url:"https://clouddirectory.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-cloudformation/src/endpoint/ruleset.ts b/clients/client-cloudformation/src/endpoint/ruleset.ts index 23fe6019cbe49..1ed100121490a 100644 --- a/clients/client-cloudformation/src/endpoint/ruleset.ts +++ b/clients/client-cloudformation/src/endpoint/ruleset.ts @@ -1,320 +1,31 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: false, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://cloudformation-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://cloudformation-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://cloudformation.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://cloudformation.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/cloudformation.json */ + +const s="fn", +t="argv", +u="ref"; +const a=false, +b=true, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i={[u]:"Endpoint"}, +j={[s]:"booleanEquals",[t]:[{[u]:"UseFIPS"},true]}, +k={[s]:"booleanEquals",[t]:[{[u]:"UseDualStack"},true]}, +l={}, +m={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsFIPS"]}]}, +n={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsDualStack"]}]}, +o=[i], +p=[j], +q=[], +r=[k]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:b,default:a,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:b,default:a,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:a,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[s]:"aws.partition",[t]:[{[u]:"Region"}],assign:e}],type:f,rules:[{conditions:[{[s]:"isSet",[t]:o},{[s]:"parseURL",[t]:o,assign:"url"}],type:f,rules:[{conditions:p,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:q,type:f,rules:[{conditions:r,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:q,endpoint:{url:i,properties:l,headers:l},type:h}]}]},{conditions:[j,k],type:f,rules:[{conditions:[m,n],type:f,rules:[{conditions:q,endpoint:{url:"https://cloudformation-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:p,type:f,rules:[{conditions:[m],type:f,rules:[{conditions:q,type:f,rules:[{conditions:q,endpoint:{url:"https://cloudformation-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]},{conditions:q,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:r,type:f,rules:[{conditions:[n],type:f,rules:[{conditions:q,endpoint:{url:"https://cloudformation.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:q,endpoint:{url:"https://cloudformation.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-cloudfront/src/endpoint/ruleset.ts b/clients/client-cloudfront/src/endpoint/ruleset.ts index 160c3b5c73bd4..20c72185b642c 100644 --- a/clients/client-cloudfront/src/endpoint/ruleset.ts +++ b/clients/client-cloudfront/src/endpoint/ruleset.ts @@ -1,857 +1,47 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: true, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "stringEquals", - argv: [ - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "name", - ], - }, - "aws", - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://cloudfront-fips.{Region}.api.aws", - properties: { - authSchemes: [ - { - name: "sigv4", - signingRegion: "us-east-1", - signingName: "cloudfront", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://cloudfront-fips.{Region}.amazonaws.com", - properties: { - authSchemes: [ - { - name: "sigv4", - signingRegion: "us-east-1", - signingName: "cloudfront", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://cloudfront.{Region}.api.aws", - properties: { - authSchemes: [ - { - name: "sigv4", - signingRegion: "us-east-1", - signingName: "cloudfront", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://cloudfront.amazonaws.com", - properties: { - authSchemes: [ - { - name: "sigv4", - signingRegion: "us-east-1", - signingName: "cloudfront", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [ - { - fn: "stringEquals", - argv: [ - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "name", - ], - }, - "aws-cn", - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://cloudfront-fips.{Region}.api.amazonwebservices.com.cn", - properties: { - authSchemes: [ - { - name: "sigv4", - signingRegion: "cn-northwest-1", - signingName: "cloudfront", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://cloudfront-fips.{Region}.amazonaws.com.cn", - properties: { - authSchemes: [ - { - name: "sigv4", - signingRegion: "cn-northwest-1", - signingName: "cloudfront", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://cloudfront.{Region}.api.amazonwebservices.com.cn", - properties: { - authSchemes: [ - { - name: "sigv4", - signingRegion: "cn-northwest-1", - signingName: "cloudfront", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://cloudfront.cn-northwest-1.amazonaws.com.cn", - properties: { - authSchemes: [ - { - name: "sigv4", - signingRegion: "cn-northwest-1", - signingName: "cloudfront", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://cloudfront-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://cloudfront-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://cloudfront.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "stringEquals", - argv: [ - { - ref: "Region", - }, - "aws-global", - ], - }, - ], - endpoint: { - url: "https://cloudfront.amazonaws.com", - properties: { - authSchemes: [ - { - name: "sigv4", - signingRegion: "us-east-1", - signingName: "cloudfront", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - { - conditions: [ - { - fn: "stringEquals", - argv: [ - { - ref: "Region", - }, - "aws-cn-global", - ], - }, - ], - endpoint: { - url: "https://cloudfront.cn-northwest-1.amazonaws.com.cn", - properties: { - authSchemes: [ - { - name: "sigv4", - signingRegion: "cn-northwest-1", - signingName: "cloudfront", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - { - conditions: [], - endpoint: { - url: "https://cloudfront.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/cloudfront.json */ + +const B="type", +C="conditions", +D="fn", +E="argv", +F="ref", +G="properties", +H="headers", +I="authSchemes", +J="signingRegion", +K="signingName"; +const a=true, +b=false, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i="stringEquals", +j={[F]:"Region"}, +k={[F]:"Endpoint"}, +l={}, +m={[D]:"getAttr",[E]:[{[F]:e},"name"]}, +n={[I]:[{"name":"sigv4",[J]:"us-east-1",[K]:"cloudfront"}]}, +o={[C]:[],[g]:"FIPS and DualStack are enabled, but this partition does not support one or both",[B]:g}, +p={[C]:[],[g]:"FIPS is enabled but this partition does not support FIPS",[B]:g}, +q={[C]:[],[g]:"DualStack is enabled but this partition does not support DualStack",[B]:g}, +r={"url":"https://cloudfront.amazonaws.com",[G]:n,[H]:{}}, +s={[I]:[{"name":"sigv4",[J]:"cn-northwest-1",[K]:"cloudfront"}]}, +t={"url":"https://cloudfront.cn-northwest-1.amazonaws.com.cn",[G]:s,[H]:{}}, +u=[{[D]:"booleanEquals",[E]:[{[F]:"UseFIPS"},true]}], +v=[], +w=[{[D]:"booleanEquals",[E]:[{[F]:"UseDualStack"},true]}], +x=[{[D]:"booleanEquals",[E]:[{[F]:"UseFIPS"},true]},{[D]:"booleanEquals",[E]:[{[F]:"UseDualStack"},true]}], +y=[{[D]:"booleanEquals",[E]:[true,{[D]:"getAttr",[E]:[{[F]:e},"supportsFIPS"]}]},{[D]:"booleanEquals",[E]:[true,{[D]:"getAttr",[E]:[{[F]:e},"supportsDualStack"]}]}], +z=[{[D]:"booleanEquals",[E]:[true,{[D]:"getAttr",[E]:[{[F]:e},"supportsFIPS"]}]}], +A=[{[D]:"booleanEquals",[E]:[true,{[D]:"getAttr",[E]:[{[F]:e},"supportsDualStack"]}]}]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",[B]:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:a,default:b,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",[B]:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:a,default:b,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",[B]:d},Endpoint:{builtIn:"SDK::Endpoint",required:b,documentation:"Override the endpoint used to send this request",[B]:c}},rules:[{[C]:[{[D]:"aws.partition",[E]:[j],assign:e}],[B]:f,rules:[{[C]:[{[D]:"isSet",[E]:[k]}],[B]:f,rules:[{[C]:u,error:"Invalid Configuration: FIPS and custom endpoint are not supported",[B]:g},{[C]:v,[B]:f,rules:[{[C]:w,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",[B]:g},{[C]:v,endpoint:{url:k,[G]:l,[H]:l},[B]:h}]}]},{[C]:[{[D]:i,[E]:[m,"aws"]}],[B]:f,rules:[{[C]:x,[B]:f,rules:[{[C]:y,[B]:f,rules:[{[C]:v,endpoint:{url:"https://cloudfront-fips.{Region}.api.aws",[G]:n,[H]:l},[B]:h}]},o]},{[C]:u,[B]:f,rules:[{[C]:z,[B]:f,rules:[{[C]:v,endpoint:{url:"https://cloudfront-fips.{Region}.amazonaws.com",[G]:n,[H]:l},[B]:h}]},p]},{[C]:w,[B]:f,rules:[{[C]:A,[B]:f,rules:[{[C]:v,endpoint:{url:"https://cloudfront.{Region}.api.aws",[G]:n,[H]:l},[B]:h}]},q]},{[C]:v,endpoint:r,[B]:h}]},{[C]:[{[D]:i,[E]:[m,"aws-cn"]}],[B]:f,rules:[{[C]:x,[B]:f,rules:[{[C]:y,[B]:f,rules:[{[C]:v,endpoint:{url:"https://cloudfront-fips.{Region}.api.amazonwebservices.com.cn",[G]:s,[H]:l},[B]:h}]},o]},{[C]:u,[B]:f,rules:[{[C]:z,[B]:f,rules:[{[C]:v,endpoint:{url:"https://cloudfront-fips.{Region}.amazonaws.com.cn",[G]:s,[H]:l},[B]:h}]},p]},{[C]:w,[B]:f,rules:[{[C]:A,[B]:f,rules:[{[C]:v,endpoint:{url:"https://cloudfront.{Region}.api.amazonwebservices.com.cn",[G]:s,[H]:l},[B]:h}]},q]},{[C]:v,endpoint:t,[B]:h}]},{[C]:x,[B]:f,rules:[{[C]:y,[B]:f,rules:[{[C]:v,endpoint:{url:"https://cloudfront-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",[G]:l,[H]:l},[B]:h}]},o]},{[C]:u,[B]:f,rules:[{[C]:z,[B]:f,rules:[{[C]:v,[B]:f,rules:[{[C]:v,endpoint:{url:"https://cloudfront-fips.{Region}.{PartitionResult#dnsSuffix}",[G]:l,[H]:l},[B]:h}]}]},p]},{[C]:w,[B]:f,rules:[{[C]:A,[B]:f,rules:[{[C]:v,endpoint:{url:"https://cloudfront.{Region}.{PartitionResult#dualStackDnsSuffix}",[G]:l,[H]:l},[B]:h}]},q]},{[C]:v,[B]:f,rules:[{[C]:[{[D]:i,[E]:[j,"aws-global"]}],endpoint:r,[B]:h},{[C]:[{[D]:i,[E]:[j,"aws-cn-global"]}],endpoint:t,[B]:h},{[C]:v,endpoint:{url:"https://cloudfront.{Region}.{PartitionResult#dnsSuffix}",[G]:l,[H]:l},[B]:h}]}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-cloudhsm-v2/src/endpoint/ruleset.ts b/clients/client-cloudhsm-v2/src/endpoint/ruleset.ts index 720d271ff1bf9..bf11b1f3b82ff 100644 --- a/clients/client-cloudhsm-v2/src/endpoint/ruleset.ts +++ b/clients/client-cloudhsm-v2/src/endpoint/ruleset.ts @@ -1,320 +1,31 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: false, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://cloudhsmv2-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://cloudhsmv2-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://cloudhsmv2.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://cloudhsmv2.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/cloudhsm-v2.json */ + +const s="fn", +t="argv", +u="ref"; +const a=false, +b=true, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i={[u]:"Endpoint"}, +j={[s]:"booleanEquals",[t]:[{[u]:"UseFIPS"},true]}, +k={[s]:"booleanEquals",[t]:[{[u]:"UseDualStack"},true]}, +l={}, +m={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsFIPS"]}]}, +n={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsDualStack"]}]}, +o=[i], +p=[j], +q=[], +r=[k]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:b,default:a,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:b,default:a,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:a,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[s]:"aws.partition",[t]:[{[u]:"Region"}],assign:e}],type:f,rules:[{conditions:[{[s]:"isSet",[t]:o},{[s]:"parseURL",[t]:o,assign:"url"}],type:f,rules:[{conditions:p,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:q,type:f,rules:[{conditions:r,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:q,endpoint:{url:i,properties:l,headers:l},type:h}]}]},{conditions:[j,k],type:f,rules:[{conditions:[m,n],type:f,rules:[{conditions:q,endpoint:{url:"https://cloudhsmv2-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:p,type:f,rules:[{conditions:[m],type:f,rules:[{conditions:q,type:f,rules:[{conditions:q,endpoint:{url:"https://cloudhsmv2-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]},{conditions:q,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:r,type:f,rules:[{conditions:[n],type:f,rules:[{conditions:q,endpoint:{url:"https://cloudhsmv2.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:q,endpoint:{url:"https://cloudhsmv2.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-cloudhsm/src/endpoint/ruleset.ts b/clients/client-cloudhsm/src/endpoint/ruleset.ts index 3d322b54c5606..241c6a7ba10c3 100644 --- a/clients/client-cloudhsm/src/endpoint/ruleset.ts +++ b/clients/client-cloudhsm/src/endpoint/ruleset.ts @@ -1,320 +1,31 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: false, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://cloudhsm-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://cloudhsm-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://cloudhsm.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://cloudhsm.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/cloudhsm.json */ + +const s="fn", +t="argv", +u="ref"; +const a=false, +b=true, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i={[u]:"Endpoint"}, +j={[s]:"booleanEquals",[t]:[{[u]:"UseFIPS"},true]}, +k={[s]:"booleanEquals",[t]:[{[u]:"UseDualStack"},true]}, +l={}, +m={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsFIPS"]}]}, +n={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsDualStack"]}]}, +o=[i], +p=[j], +q=[], +r=[k]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:b,default:a,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:b,default:a,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:a,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[s]:"aws.partition",[t]:[{[u]:"Region"}],assign:e}],type:f,rules:[{conditions:[{[s]:"isSet",[t]:o},{[s]:"parseURL",[t]:o,assign:"url"}],type:f,rules:[{conditions:p,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:q,type:f,rules:[{conditions:r,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:q,endpoint:{url:i,properties:l,headers:l},type:h}]}]},{conditions:[j,k],type:f,rules:[{conditions:[m,n],type:f,rules:[{conditions:q,endpoint:{url:"https://cloudhsm-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:p,type:f,rules:[{conditions:[m],type:f,rules:[{conditions:q,type:f,rules:[{conditions:q,endpoint:{url:"https://cloudhsm-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]},{conditions:q,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:r,type:f,rules:[{conditions:[n],type:f,rules:[{conditions:q,endpoint:{url:"https://cloudhsm.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:q,endpoint:{url:"https://cloudhsm.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-cloudsearch-domain/src/endpoint/ruleset.ts b/clients/client-cloudsearch-domain/src/endpoint/ruleset.ts index ea77869db47ef..553b699870084 100644 --- a/clients/client-cloudsearch-domain/src/endpoint/ruleset.ts +++ b/clients/client-cloudsearch-domain/src/endpoint/ruleset.ts @@ -1,314 +1,31 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: false, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://cloudsearchdomain-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://cloudsearchdomain-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://cloudsearchdomain.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://cloudsearchdomain.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/cloudsearch-domain.json */ + +const s="fn", +t="argv", +u="ref"; +const a=false, +b=true, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i={[u]:"Endpoint"}, +j={[s]:"booleanEquals",[t]:[{[u]:"UseFIPS"},true]}, +k={[s]:"booleanEquals",[t]:[{[u]:"UseDualStack"},true]}, +l={}, +m={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsFIPS"]}]}, +n={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsDualStack"]}]}, +o=[i], +p=[j], +q=[], +r=[k]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:b,default:a,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:b,default:a,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:a,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[s]:"aws.partition",[t]:[{[u]:"Region"}],assign:e}],type:f,rules:[{conditions:[{[s]:"isSet",[t]:o},{[s]:"parseURL",[t]:o,assign:"url"}],type:f,rules:[{conditions:p,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:q,type:f,rules:[{conditions:r,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:q,endpoint:{url:i,properties:l,headers:l},type:h}]}]},{conditions:[j,k],type:f,rules:[{conditions:[m,n],type:f,rules:[{conditions:q,endpoint:{url:"https://cloudsearchdomain-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:p,type:f,rules:[{conditions:[m],type:f,rules:[{conditions:q,endpoint:{url:"https://cloudsearchdomain-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:r,type:f,rules:[{conditions:[n],type:f,rules:[{conditions:q,endpoint:{url:"https://cloudsearchdomain.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:q,endpoint:{url:"https://cloudsearchdomain.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-cloudsearch/src/endpoint/ruleset.ts b/clients/client-cloudsearch/src/endpoint/ruleset.ts index 471e61cf071c4..5d287fd767874 100644 --- a/clients/client-cloudsearch/src/endpoint/ruleset.ts +++ b/clients/client-cloudsearch/src/endpoint/ruleset.ts @@ -1,320 +1,31 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: false, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://cloudsearch-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://cloudsearch-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://cloudsearch.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://cloudsearch.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/cloudsearch.json */ + +const s="fn", +t="argv", +u="ref"; +const a=false, +b=true, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i={[u]:"Endpoint"}, +j={[s]:"booleanEquals",[t]:[{[u]:"UseFIPS"},true]}, +k={[s]:"booleanEquals",[t]:[{[u]:"UseDualStack"},true]}, +l={}, +m={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsFIPS"]}]}, +n={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsDualStack"]}]}, +o=[i], +p=[j], +q=[], +r=[k]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:b,default:a,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:b,default:a,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:a,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[s]:"aws.partition",[t]:[{[u]:"Region"}],assign:e}],type:f,rules:[{conditions:[{[s]:"isSet",[t]:o},{[s]:"parseURL",[t]:o,assign:"url"}],type:f,rules:[{conditions:p,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:q,type:f,rules:[{conditions:r,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:q,endpoint:{url:i,properties:l,headers:l},type:h}]}]},{conditions:[j,k],type:f,rules:[{conditions:[m,n],type:f,rules:[{conditions:q,endpoint:{url:"https://cloudsearch-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:p,type:f,rules:[{conditions:[m],type:f,rules:[{conditions:q,type:f,rules:[{conditions:q,endpoint:{url:"https://cloudsearch-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]},{conditions:q,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:r,type:f,rules:[{conditions:[n],type:f,rules:[{conditions:q,endpoint:{url:"https://cloudsearch.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:q,endpoint:{url:"https://cloudsearch.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-cloudtrail/src/endpoint/ruleset.ts b/clients/client-cloudtrail/src/endpoint/ruleset.ts index 7398bcdd20e87..7ff5fda63f786 100644 --- a/clients/client-cloudtrail/src/endpoint/ruleset.ts +++ b/clients/client-cloudtrail/src/endpoint/ruleset.ts @@ -1,349 +1,32 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: true, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://cloudtrail-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "stringEquals", - argv: [ - { - ref: "Region", - }, - "us-gov-east-1", - ], - }, - ], - endpoint: { - url: "https://cloudtrail.us-gov-east-1.amazonaws.com", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - { - conditions: [ - { - fn: "stringEquals", - argv: [ - { - ref: "Region", - }, - "us-gov-west-1", - ], - }, - ], - endpoint: { - url: "https://cloudtrail.us-gov-west-1.amazonaws.com", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - { - conditions: [], - endpoint: { - url: "https://cloudtrail-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://cloudtrail.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://cloudtrail.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/cloudtrail.json */ + +const t="fn", +u="argv", +v="ref"; +const a=true, +b=false, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i="stringEquals", +j={[v]:"Region"}, +k={[v]:"Endpoint"}, +l={[t]:"booleanEquals",[u]:[{[v]:"UseFIPS"},true]}, +m={[t]:"booleanEquals",[u]:[{[v]:"UseDualStack"},true]}, +n={}, +o={[t]:"booleanEquals",[u]:[true,{[t]:"getAttr",[u]:[{[v]:e},"supportsFIPS"]}]}, +p={[t]:"booleanEquals",[u]:[true,{[t]:"getAttr",[u]:[{[v]:e},"supportsDualStack"]}]}, +q=[l], +r=[], +s=[m]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:a,default:b,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:a,default:b,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:b,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[t]:"aws.partition",[u]:[j],assign:e}],type:f,rules:[{conditions:[{[t]:"isSet",[u]:[k]}],type:f,rules:[{conditions:q,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:r,type:f,rules:[{conditions:s,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:r,endpoint:{url:k,properties:n,headers:n},type:h}]}]},{conditions:[l,m],type:f,rules:[{conditions:[o,p],type:f,rules:[{conditions:r,endpoint:{url:"https://cloudtrail-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:n,headers:n},type:h}]},{conditions:r,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:q,type:f,rules:[{conditions:[o],type:f,rules:[{conditions:r,type:f,rules:[{conditions:[{[t]:i,[u]:[j,"us-gov-east-1"]}],endpoint:{url:"https://cloudtrail.us-gov-east-1.amazonaws.com",properties:n,headers:n},type:h},{conditions:[{[t]:i,[u]:[j,"us-gov-west-1"]}],endpoint:{url:"https://cloudtrail.us-gov-west-1.amazonaws.com",properties:n,headers:n},type:h},{conditions:r,endpoint:{url:"https://cloudtrail-fips.{Region}.{PartitionResult#dnsSuffix}",properties:n,headers:n},type:h}]}]},{conditions:r,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:s,type:f,rules:[{conditions:[p],type:f,rules:[{conditions:r,endpoint:{url:"https://cloudtrail.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:n,headers:n},type:h}]},{conditions:r,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:r,endpoint:{url:"https://cloudtrail.{Region}.{PartitionResult#dnsSuffix}",properties:n,headers:n},type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-cloudwatch-events/src/endpoint/ruleset.ts b/clients/client-cloudwatch-events/src/endpoint/ruleset.ts index d40396713bda7..8eb4dc5719f5f 100644 --- a/clients/client-cloudwatch-events/src/endpoint/ruleset.ts +++ b/clients/client-cloudwatch-events/src/endpoint/ruleset.ts @@ -1,358 +1,33 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: false, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://events-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "stringEquals", - argv: [ - { - ref: "Region", - }, - "us-gov-west-1", - ], - }, - ], - endpoint: { - url: "https://events.us-gov-west-1.amazonaws.com", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - { - conditions: [ - { - fn: "stringEquals", - argv: [ - { - ref: "Region", - }, - "us-gov-east-1", - ], - }, - ], - endpoint: { - url: "https://events.us-gov-east-1.amazonaws.com", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - { - conditions: [], - endpoint: { - url: "https://events-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://events.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://events.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/cloudwatch-events.json */ + +const u="fn", +v="argv", +w="ref"; +const a=false, +b=true, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i="stringEquals", +j={[w]:"Region"}, +k={[w]:"Endpoint"}, +l={[u]:"booleanEquals",[v]:[{[w]:"UseFIPS"},true]}, +m={[u]:"booleanEquals",[v]:[{[w]:"UseDualStack"},true]}, +n={}, +o={[u]:"booleanEquals",[v]:[true,{[u]:"getAttr",[v]:[{[w]:e},"supportsFIPS"]}]}, +p={[u]:"booleanEquals",[v]:[true,{[u]:"getAttr",[v]:[{[w]:e},"supportsDualStack"]}]}, +q=[k], +r=[l], +s=[], +t=[m]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:b,default:a,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:b,default:a,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:a,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[u]:"aws.partition",[v]:[j],assign:e}],type:f,rules:[{conditions:[{[u]:"isSet",[v]:q},{[u]:"parseURL",[v]:q,assign:"url"}],type:f,rules:[{conditions:r,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:s,type:f,rules:[{conditions:t,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:s,endpoint:{url:k,properties:n,headers:n},type:h}]}]},{conditions:[l,m],type:f,rules:[{conditions:[o,p],type:f,rules:[{conditions:s,endpoint:{url:"https://events-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:n,headers:n},type:h}]},{conditions:s,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:r,type:f,rules:[{conditions:[o],type:f,rules:[{conditions:s,type:f,rules:[{conditions:[{[u]:i,[v]:[j,"us-gov-west-1"]}],endpoint:{url:"https://events.us-gov-west-1.amazonaws.com",properties:n,headers:n},type:h},{conditions:[{[u]:i,[v]:[j,"us-gov-east-1"]}],endpoint:{url:"https://events.us-gov-east-1.amazonaws.com",properties:n,headers:n},type:h},{conditions:s,endpoint:{url:"https://events-fips.{Region}.{PartitionResult#dnsSuffix}",properties:n,headers:n},type:h}]}]},{conditions:s,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:t,type:f,rules:[{conditions:[p],type:f,rules:[{conditions:s,endpoint:{url:"https://events.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:n,headers:n},type:h}]},{conditions:s,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:s,endpoint:{url:"https://events.{Region}.{PartitionResult#dnsSuffix}",properties:n,headers:n},type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-cloudwatch-logs/src/endpoint/ruleset.ts b/clients/client-cloudwatch-logs/src/endpoint/ruleset.ts index 7f3d7e0992def..b6688dafb5982 100644 --- a/clients/client-cloudwatch-logs/src/endpoint/ruleset.ts +++ b/clients/client-cloudwatch-logs/src/endpoint/ruleset.ts @@ -1,349 +1,32 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: true, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://logs-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "stringEquals", - argv: [ - { - ref: "Region", - }, - "us-gov-east-1", - ], - }, - ], - endpoint: { - url: "https://logs.us-gov-east-1.amazonaws.com", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - { - conditions: [ - { - fn: "stringEquals", - argv: [ - { - ref: "Region", - }, - "us-gov-west-1", - ], - }, - ], - endpoint: { - url: "https://logs.us-gov-west-1.amazonaws.com", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - { - conditions: [], - endpoint: { - url: "https://logs-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://logs.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://logs.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/cloudwatch-logs.json */ + +const t="fn", +u="argv", +v="ref"; +const a=true, +b=false, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i="stringEquals", +j={[v]:"Region"}, +k={[v]:"Endpoint"}, +l={[t]:"booleanEquals",[u]:[{[v]:"UseFIPS"},true]}, +m={[t]:"booleanEquals",[u]:[{[v]:"UseDualStack"},true]}, +n={}, +o={[t]:"booleanEquals",[u]:[true,{[t]:"getAttr",[u]:[{[v]:e},"supportsFIPS"]}]}, +p={[t]:"booleanEquals",[u]:[true,{[t]:"getAttr",[u]:[{[v]:e},"supportsDualStack"]}]}, +q=[l], +r=[], +s=[m]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:a,default:b,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:a,default:b,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:b,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[t]:"aws.partition",[u]:[j],assign:e}],type:f,rules:[{conditions:[{[t]:"isSet",[u]:[k]}],type:f,rules:[{conditions:q,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:r,type:f,rules:[{conditions:s,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:r,endpoint:{url:k,properties:n,headers:n},type:h}]}]},{conditions:[l,m],type:f,rules:[{conditions:[o,p],type:f,rules:[{conditions:r,endpoint:{url:"https://logs-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:n,headers:n},type:h}]},{conditions:r,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:q,type:f,rules:[{conditions:[o],type:f,rules:[{conditions:r,type:f,rules:[{conditions:[{[t]:i,[u]:[j,"us-gov-east-1"]}],endpoint:{url:"https://logs.us-gov-east-1.amazonaws.com",properties:n,headers:n},type:h},{conditions:[{[t]:i,[u]:[j,"us-gov-west-1"]}],endpoint:{url:"https://logs.us-gov-west-1.amazonaws.com",properties:n,headers:n},type:h},{conditions:r,endpoint:{url:"https://logs-fips.{Region}.{PartitionResult#dnsSuffix}",properties:n,headers:n},type:h}]}]},{conditions:r,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:s,type:f,rules:[{conditions:[p],type:f,rules:[{conditions:r,endpoint:{url:"https://logs.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:n,headers:n},type:h}]},{conditions:r,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:r,endpoint:{url:"https://logs.{Region}.{PartitionResult#dnsSuffix}",properties:n,headers:n},type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-cloudwatch/src/endpoint/ruleset.ts b/clients/client-cloudwatch/src/endpoint/ruleset.ts index 26c818cd86814..9c26d8f6e9067 100644 --- a/clients/client-cloudwatch/src/endpoint/ruleset.ts +++ b/clients/client-cloudwatch/src/endpoint/ruleset.ts @@ -1,336 +1,33 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: true, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://monitoring-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "stringEquals", - argv: [ - "aws-us-gov", - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "name", - ], - }, - ], - }, - ], - endpoint: { - url: "https://monitoring.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - { - conditions: [], - endpoint: { - url: "https://monitoring-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://monitoring.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://monitoring.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/cloudwatch.json */ + +const u="fn", +v="argv", +w="ref"; +const a=true, +b=false, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i="getAttr", +j={[w]:"Endpoint"}, +k={[u]:"booleanEquals",[v]:[{[w]:"UseFIPS"},true]}, +l={[u]:"booleanEquals",[v]:[{[w]:"UseDualStack"},true]}, +m={}, +n={[u]:"booleanEquals",[v]:[true,{[u]:i,[v]:[{[w]:e},"supportsFIPS"]}]}, +o={[w]:e}, +p={[u]:"booleanEquals",[v]:[true,{[u]:i,[v]:[o,"supportsDualStack"]}]}, +q={"url":"https://monitoring.{Region}.{PartitionResult#dnsSuffix}","properties":{},"headers":{}}, +r=[k], +s=[], +t=[l]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:a,default:b,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:a,default:b,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:b,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[u]:"aws.partition",[v]:[{[w]:"Region"}],assign:e}],type:f,rules:[{conditions:[{[u]:"isSet",[v]:[j]}],type:f,rules:[{conditions:r,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:s,type:f,rules:[{conditions:t,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:s,endpoint:{url:j,properties:m,headers:m},type:h}]}]},{conditions:[k,l],type:f,rules:[{conditions:[n,p],type:f,rules:[{conditions:s,endpoint:{url:"https://monitoring-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:m,headers:m},type:h}]},{conditions:s,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:r,type:f,rules:[{conditions:[n],type:f,rules:[{conditions:s,type:f,rules:[{conditions:[{[u]:"stringEquals",[v]:["aws-us-gov",{[u]:i,[v]:[o,"name"]}]}],endpoint:q,type:h},{conditions:s,endpoint:{url:"https://monitoring-fips.{Region}.{PartitionResult#dnsSuffix}",properties:m,headers:m},type:h}]}]},{conditions:s,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:t,type:f,rules:[{conditions:[p],type:f,rules:[{conditions:s,endpoint:{url:"https://monitoring.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:m,headers:m},type:h}]},{conditions:s,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:s,endpoint:q,type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-codeartifact/src/endpoint/ruleset.ts b/clients/client-codeartifact/src/endpoint/ruleset.ts index 0bccf5e7ef986..91744350dbc9c 100644 --- a/clients/client-codeartifact/src/endpoint/ruleset.ts +++ b/clients/client-codeartifact/src/endpoint/ruleset.ts @@ -1,320 +1,31 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: false, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://codeartifact-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://codeartifact-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://codeartifact.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://codeartifact.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/codeartifact.json */ + +const s="fn", +t="argv", +u="ref"; +const a=false, +b=true, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i={[u]:"Endpoint"}, +j={[s]:"booleanEquals",[t]:[{[u]:"UseFIPS"},true]}, +k={[s]:"booleanEquals",[t]:[{[u]:"UseDualStack"},true]}, +l={}, +m={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsFIPS"]}]}, +n={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsDualStack"]}]}, +o=[i], +p=[j], +q=[], +r=[k]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:b,default:a,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:b,default:a,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:a,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[s]:"aws.partition",[t]:[{[u]:"Region"}],assign:e}],type:f,rules:[{conditions:[{[s]:"isSet",[t]:o},{[s]:"parseURL",[t]:o,assign:"url"}],type:f,rules:[{conditions:p,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:q,type:f,rules:[{conditions:r,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:q,endpoint:{url:i,properties:l,headers:l},type:h}]}]},{conditions:[j,k],type:f,rules:[{conditions:[m,n],type:f,rules:[{conditions:q,endpoint:{url:"https://codeartifact-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:p,type:f,rules:[{conditions:[m],type:f,rules:[{conditions:q,type:f,rules:[{conditions:q,endpoint:{url:"https://codeartifact-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]},{conditions:q,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:r,type:f,rules:[{conditions:[n],type:f,rules:[{conditions:q,endpoint:{url:"https://codeartifact.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:q,endpoint:{url:"https://codeartifact.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-codebuild/src/endpoint/ruleset.ts b/clients/client-codebuild/src/endpoint/ruleset.ts index 42c3d21042e63..d3e16a008632a 100644 --- a/clients/client-codebuild/src/endpoint/ruleset.ts +++ b/clients/client-codebuild/src/endpoint/ruleset.ts @@ -1,320 +1,31 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: false, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://codebuild-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://codebuild-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://codebuild.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://codebuild.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/codebuild.json */ + +const s="fn", +t="argv", +u="ref"; +const a=false, +b=true, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i={[u]:"Endpoint"}, +j={[s]:"booleanEquals",[t]:[{[u]:"UseFIPS"},true]}, +k={[s]:"booleanEquals",[t]:[{[u]:"UseDualStack"},true]}, +l={}, +m={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsFIPS"]}]}, +n={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsDualStack"]}]}, +o=[i], +p=[j], +q=[], +r=[k]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:b,default:a,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:b,default:a,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:a,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[s]:"aws.partition",[t]:[{[u]:"Region"}],assign:e}],type:f,rules:[{conditions:[{[s]:"isSet",[t]:o},{[s]:"parseURL",[t]:o,assign:"url"}],type:f,rules:[{conditions:p,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:q,type:f,rules:[{conditions:r,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:q,endpoint:{url:i,properties:l,headers:l},type:h}]}]},{conditions:[j,k],type:f,rules:[{conditions:[m,n],type:f,rules:[{conditions:q,endpoint:{url:"https://codebuild-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:p,type:f,rules:[{conditions:[m],type:f,rules:[{conditions:q,type:f,rules:[{conditions:q,endpoint:{url:"https://codebuild-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]},{conditions:q,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:r,type:f,rules:[{conditions:[n],type:f,rules:[{conditions:q,endpoint:{url:"https://codebuild.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:q,endpoint:{url:"https://codebuild.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-codecatalyst/src/endpoint/ruleset.ts b/clients/client-codecatalyst/src/endpoint/ruleset.ts index 23bab416bb363..06fdc2c5e3db6 100644 --- a/clients/client-codecatalyst/src/endpoint/ruleset.ts +++ b/clients/client-codecatalyst/src/endpoint/ruleset.ts @@ -1,215 +1,30 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.3", - parameters: { - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Region: { - builtIn: "AWS::Region", - required: false, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - ], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - { - conditions: [ - { - fn: "not", - argv: [ - { - fn: "isSet", - argv: [ - { - ref: "Region", - }, - ], - }, - ], - }, - { - fn: "aws.partition", - argv: ["us-west-2"], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - false, - ], - }, - ], - error: "Partition does not support FIPS.", - type: "error", - }, - { - conditions: [], - endpoint: { - url: "https://codecatalyst-fips.global.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://codecatalyst.global.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Region", - }, - ], - }, - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - false, - ], - }, - ], - error: "Partition does not support FIPS.", - type: "error", - }, - { - conditions: [], - endpoint: { - url: "https://codecatalyst-fips.global.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://codecatalyst.global.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/codecatalyst.json */ + +const o="type", +p="conditions", +q="argv", +r="ref", +s="properties", +t="headers"; +const a=true, +b=false, +c="String", +d="tree", +e="isSet", +f="endpoint", +g="aws.partition", +h="PartitionResult", +i={[r]:"Endpoint"}, +j={}, +k={"fn":e,[q]:[{[r]:"Region"}]}, +l=[], +m=[{[r]:"Region"}], +n=[{[p]:[{"fn":"booleanEquals",[q]:[{[r]:"UseFIPS"},true]}],[o]:d,"rules":[{[p]:[{"fn":"booleanEquals",[q]:[{"fn":"getAttr",[q]:[{[r]:h},"supportsFIPS"]},false]}],"error":"Partition does not support FIPS.",[o]:"error"},{[p]:[],[f]:{"url":"https://codecatalyst-fips.global.{PartitionResult#dualStackDnsSuffix}",[s]:{},[t]:{}},[o]:f}]},{[p]:[],[f]:{"url":"https://codecatalyst.global.{PartitionResult#dualStackDnsSuffix}",[s]:{},[t]:{}},[o]:f}]; +const _data={version:"1.3",parameters:{UseFIPS:{builtIn:"AWS::UseFIPS",required:a,default:b,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",[o]:"Boolean"},Region:{builtIn:"AWS::Region",required:b,documentation:"The AWS region used to dispatch the request.",[o]:c},Endpoint:{builtIn:"SDK::Endpoint",required:b,documentation:"Override the endpoint used to send this request",[o]:c}},rules:[{[p]:l,[o]:d,rules:[{[p]:[{fn:e,[q]:[i]}],endpoint:{url:i,[s]:j,[t]:j},[o]:f},{[p]:[{fn:"not",[q]:[k]},{fn:g,[q]:["us-west-2"],assign:h}],[o]:d,rules:n},{[p]:[k,{fn:g,[q]:m,assign:h}],[o]:d,rules:n}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-codecommit/src/endpoint/ruleset.ts b/clients/client-codecommit/src/endpoint/ruleset.ts index 77f519be9b30f..ddde4105ba9a8 100644 --- a/clients/client-codecommit/src/endpoint/ruleset.ts +++ b/clients/client-codecommit/src/endpoint/ruleset.ts @@ -1,320 +1,31 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: false, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://codecommit-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://codecommit-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://codecommit.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://codecommit.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/codecommit.json */ + +const s="fn", +t="argv", +u="ref"; +const a=false, +b=true, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i={[u]:"Endpoint"}, +j={[s]:"booleanEquals",[t]:[{[u]:"UseFIPS"},true]}, +k={[s]:"booleanEquals",[t]:[{[u]:"UseDualStack"},true]}, +l={}, +m={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsFIPS"]}]}, +n={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsDualStack"]}]}, +o=[i], +p=[j], +q=[], +r=[k]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:b,default:a,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:b,default:a,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:a,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[s]:"aws.partition",[t]:[{[u]:"Region"}],assign:e}],type:f,rules:[{conditions:[{[s]:"isSet",[t]:o},{[s]:"parseURL",[t]:o,assign:"url"}],type:f,rules:[{conditions:p,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:q,type:f,rules:[{conditions:r,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:q,endpoint:{url:i,properties:l,headers:l},type:h}]}]},{conditions:[j,k],type:f,rules:[{conditions:[m,n],type:f,rules:[{conditions:q,endpoint:{url:"https://codecommit-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:p,type:f,rules:[{conditions:[m],type:f,rules:[{conditions:q,type:f,rules:[{conditions:q,endpoint:{url:"https://codecommit-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]},{conditions:q,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:r,type:f,rules:[{conditions:[n],type:f,rules:[{conditions:q,endpoint:{url:"https://codecommit.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:q,endpoint:{url:"https://codecommit.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-codedeploy/src/endpoint/ruleset.ts b/clients/client-codedeploy/src/endpoint/ruleset.ts index 859b52a3ac38c..dd602fd658a01 100644 --- a/clients/client-codedeploy/src/endpoint/ruleset.ts +++ b/clients/client-codedeploy/src/endpoint/ruleset.ts @@ -1,320 +1,31 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: false, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://codedeploy-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://codedeploy-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://codedeploy.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://codedeploy.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/codedeploy.json */ + +const s="fn", +t="argv", +u="ref"; +const a=false, +b=true, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i={[u]:"Endpoint"}, +j={[s]:"booleanEquals",[t]:[{[u]:"UseFIPS"},true]}, +k={[s]:"booleanEquals",[t]:[{[u]:"UseDualStack"},true]}, +l={}, +m={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsFIPS"]}]}, +n={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsDualStack"]}]}, +o=[i], +p=[j], +q=[], +r=[k]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:b,default:a,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:b,default:a,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:a,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[s]:"aws.partition",[t]:[{[u]:"Region"}],assign:e}],type:f,rules:[{conditions:[{[s]:"isSet",[t]:o},{[s]:"parseURL",[t]:o,assign:"url"}],type:f,rules:[{conditions:p,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:q,type:f,rules:[{conditions:r,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:q,endpoint:{url:i,properties:l,headers:l},type:h}]}]},{conditions:[j,k],type:f,rules:[{conditions:[m,n],type:f,rules:[{conditions:q,endpoint:{url:"https://codedeploy-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:p,type:f,rules:[{conditions:[m],type:f,rules:[{conditions:q,type:f,rules:[{conditions:q,endpoint:{url:"https://codedeploy-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]},{conditions:q,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:r,type:f,rules:[{conditions:[n],type:f,rules:[{conditions:q,endpoint:{url:"https://codedeploy.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:q,endpoint:{url:"https://codedeploy.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-codeguru-reviewer/src/endpoint/ruleset.ts b/clients/client-codeguru-reviewer/src/endpoint/ruleset.ts index e92589f852fa0..543f6fae7db63 100644 --- a/clients/client-codeguru-reviewer/src/endpoint/ruleset.ts +++ b/clients/client-codeguru-reviewer/src/endpoint/ruleset.ts @@ -1,320 +1,31 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: false, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://codeguru-reviewer-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://codeguru-reviewer-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://codeguru-reviewer.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://codeguru-reviewer.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/codeguru-reviewer.json */ + +const s="fn", +t="argv", +u="ref"; +const a=false, +b=true, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i={[u]:"Endpoint"}, +j={[s]:"booleanEquals",[t]:[{[u]:"UseFIPS"},true]}, +k={[s]:"booleanEquals",[t]:[{[u]:"UseDualStack"},true]}, +l={}, +m={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsFIPS"]}]}, +n={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsDualStack"]}]}, +o=[i], +p=[j], +q=[], +r=[k]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:b,default:a,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:b,default:a,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:a,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[s]:"aws.partition",[t]:[{[u]:"Region"}],assign:e}],type:f,rules:[{conditions:[{[s]:"isSet",[t]:o},{[s]:"parseURL",[t]:o,assign:"url"}],type:f,rules:[{conditions:p,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:q,type:f,rules:[{conditions:r,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:q,endpoint:{url:i,properties:l,headers:l},type:h}]}]},{conditions:[j,k],type:f,rules:[{conditions:[m,n],type:f,rules:[{conditions:q,endpoint:{url:"https://codeguru-reviewer-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:p,type:f,rules:[{conditions:[m],type:f,rules:[{conditions:q,type:f,rules:[{conditions:q,endpoint:{url:"https://codeguru-reviewer-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]},{conditions:q,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:r,type:f,rules:[{conditions:[n],type:f,rules:[{conditions:q,endpoint:{url:"https://codeguru-reviewer.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:q,endpoint:{url:"https://codeguru-reviewer.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-codeguruprofiler/src/endpoint/ruleset.ts b/clients/client-codeguruprofiler/src/endpoint/ruleset.ts index 6d748da3147c0..d78f6e5cecae0 100644 --- a/clients/client-codeguruprofiler/src/endpoint/ruleset.ts +++ b/clients/client-codeguruprofiler/src/endpoint/ruleset.ts @@ -1,314 +1,31 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: false, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://codeguru-profiler-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://codeguru-profiler-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://codeguru-profiler.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://codeguru-profiler.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/codeguruprofiler.json */ + +const s="fn", +t="argv", +u="ref"; +const a=false, +b=true, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i={[u]:"Endpoint"}, +j={[s]:"booleanEquals",[t]:[{[u]:"UseFIPS"},true]}, +k={[s]:"booleanEquals",[t]:[{[u]:"UseDualStack"},true]}, +l={}, +m={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsFIPS"]}]}, +n={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsDualStack"]}]}, +o=[i], +p=[j], +q=[], +r=[k]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:b,default:a,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:b,default:a,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:a,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[s]:"aws.partition",[t]:[{[u]:"Region"}],assign:e}],type:f,rules:[{conditions:[{[s]:"isSet",[t]:o},{[s]:"parseURL",[t]:o,assign:"url"}],type:f,rules:[{conditions:p,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:q,type:f,rules:[{conditions:r,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:q,endpoint:{url:i,properties:l,headers:l},type:h}]}]},{conditions:[j,k],type:f,rules:[{conditions:[m,n],type:f,rules:[{conditions:q,endpoint:{url:"https://codeguru-profiler-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:p,type:f,rules:[{conditions:[m],type:f,rules:[{conditions:q,endpoint:{url:"https://codeguru-profiler-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:r,type:f,rules:[{conditions:[n],type:f,rules:[{conditions:q,endpoint:{url:"https://codeguru-profiler.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:q,endpoint:{url:"https://codeguru-profiler.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-codepipeline/src/endpoint/ruleset.ts b/clients/client-codepipeline/src/endpoint/ruleset.ts index 5d9c2bf360a94..e708017009cff 100644 --- a/clients/client-codepipeline/src/endpoint/ruleset.ts +++ b/clients/client-codepipeline/src/endpoint/ruleset.ts @@ -1,320 +1,31 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: false, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://codepipeline-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://codepipeline-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://codepipeline.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://codepipeline.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/codepipeline.json */ + +const s="fn", +t="argv", +u="ref"; +const a=false, +b=true, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i={[u]:"Endpoint"}, +j={[s]:"booleanEquals",[t]:[{[u]:"UseFIPS"},true]}, +k={[s]:"booleanEquals",[t]:[{[u]:"UseDualStack"},true]}, +l={}, +m={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsFIPS"]}]}, +n={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsDualStack"]}]}, +o=[i], +p=[j], +q=[], +r=[k]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:b,default:a,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:b,default:a,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:a,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[s]:"aws.partition",[t]:[{[u]:"Region"}],assign:e}],type:f,rules:[{conditions:[{[s]:"isSet",[t]:o},{[s]:"parseURL",[t]:o,assign:"url"}],type:f,rules:[{conditions:p,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:q,type:f,rules:[{conditions:r,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:q,endpoint:{url:i,properties:l,headers:l},type:h}]}]},{conditions:[j,k],type:f,rules:[{conditions:[m,n],type:f,rules:[{conditions:q,endpoint:{url:"https://codepipeline-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:p,type:f,rules:[{conditions:[m],type:f,rules:[{conditions:q,type:f,rules:[{conditions:q,endpoint:{url:"https://codepipeline-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]},{conditions:q,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:r,type:f,rules:[{conditions:[n],type:f,rules:[{conditions:q,endpoint:{url:"https://codepipeline.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:q,endpoint:{url:"https://codepipeline.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-codestar-connections/src/endpoint/ruleset.ts b/clients/client-codestar-connections/src/endpoint/ruleset.ts index 4e0408c8bd6ad..80482e15b6adf 100644 --- a/clients/client-codestar-connections/src/endpoint/ruleset.ts +++ b/clients/client-codestar-connections/src/endpoint/ruleset.ts @@ -1,320 +1,31 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: false, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://codestar-connections-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://codestar-connections-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://codestar-connections.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://codestar-connections.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/codestar-connections.json */ + +const s="fn", +t="argv", +u="ref"; +const a=false, +b=true, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i={[u]:"Endpoint"}, +j={[s]:"booleanEquals",[t]:[{[u]:"UseFIPS"},true]}, +k={[s]:"booleanEquals",[t]:[{[u]:"UseDualStack"},true]}, +l={}, +m={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsFIPS"]}]}, +n={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsDualStack"]}]}, +o=[i], +p=[j], +q=[], +r=[k]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:b,default:a,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:b,default:a,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:a,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[s]:"aws.partition",[t]:[{[u]:"Region"}],assign:e}],type:f,rules:[{conditions:[{[s]:"isSet",[t]:o},{[s]:"parseURL",[t]:o,assign:"url"}],type:f,rules:[{conditions:p,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:q,type:f,rules:[{conditions:r,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:q,endpoint:{url:i,properties:l,headers:l},type:h}]}]},{conditions:[j,k],type:f,rules:[{conditions:[m,n],type:f,rules:[{conditions:q,endpoint:{url:"https://codestar-connections-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:p,type:f,rules:[{conditions:[m],type:f,rules:[{conditions:q,type:f,rules:[{conditions:q,endpoint:{url:"https://codestar-connections-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]},{conditions:q,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:r,type:f,rules:[{conditions:[n],type:f,rules:[{conditions:q,endpoint:{url:"https://codestar-connections.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:q,endpoint:{url:"https://codestar-connections.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-codestar-notifications/src/endpoint/ruleset.ts b/clients/client-codestar-notifications/src/endpoint/ruleset.ts index ddbc9db1b1b76..eeb037e107b28 100644 --- a/clients/client-codestar-notifications/src/endpoint/ruleset.ts +++ b/clients/client-codestar-notifications/src/endpoint/ruleset.ts @@ -1,314 +1,31 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: false, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://codestar-notifications-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://codestar-notifications-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://codestar-notifications.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://codestar-notifications.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/codestar-notifications.json */ + +const s="fn", +t="argv", +u="ref"; +const a=false, +b=true, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i={[u]:"Endpoint"}, +j={[s]:"booleanEquals",[t]:[{[u]:"UseFIPS"},true]}, +k={[s]:"booleanEquals",[t]:[{[u]:"UseDualStack"},true]}, +l={}, +m={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsFIPS"]}]}, +n={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsDualStack"]}]}, +o=[i], +p=[j], +q=[], +r=[k]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:b,default:a,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:b,default:a,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:a,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[s]:"aws.partition",[t]:[{[u]:"Region"}],assign:e}],type:f,rules:[{conditions:[{[s]:"isSet",[t]:o},{[s]:"parseURL",[t]:o,assign:"url"}],type:f,rules:[{conditions:p,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:q,type:f,rules:[{conditions:r,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:q,endpoint:{url:i,properties:l,headers:l},type:h}]}]},{conditions:[j,k],type:f,rules:[{conditions:[m,n],type:f,rules:[{conditions:q,endpoint:{url:"https://codestar-notifications-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:p,type:f,rules:[{conditions:[m],type:f,rules:[{conditions:q,endpoint:{url:"https://codestar-notifications-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:r,type:f,rules:[{conditions:[n],type:f,rules:[{conditions:q,endpoint:{url:"https://codestar-notifications.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:q,endpoint:{url:"https://codestar-notifications.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-codestar/src/endpoint/ruleset.ts b/clients/client-codestar/src/endpoint/ruleset.ts index 2158e19be89b8..c403838a6b3da 100644 --- a/clients/client-codestar/src/endpoint/ruleset.ts +++ b/clients/client-codestar/src/endpoint/ruleset.ts @@ -1,320 +1,31 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: false, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://codestar-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://codestar-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://codestar.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://codestar.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/codestar.json */ + +const s="fn", +t="argv", +u="ref"; +const a=false, +b=true, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i={[u]:"Endpoint"}, +j={[s]:"booleanEquals",[t]:[{[u]:"UseFIPS"},true]}, +k={[s]:"booleanEquals",[t]:[{[u]:"UseDualStack"},true]}, +l={}, +m={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsFIPS"]}]}, +n={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsDualStack"]}]}, +o=[i], +p=[j], +q=[], +r=[k]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:b,default:a,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:b,default:a,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:a,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[s]:"aws.partition",[t]:[{[u]:"Region"}],assign:e}],type:f,rules:[{conditions:[{[s]:"isSet",[t]:o},{[s]:"parseURL",[t]:o,assign:"url"}],type:f,rules:[{conditions:p,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:q,type:f,rules:[{conditions:r,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:q,endpoint:{url:i,properties:l,headers:l},type:h}]}]},{conditions:[j,k],type:f,rules:[{conditions:[m,n],type:f,rules:[{conditions:q,endpoint:{url:"https://codestar-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:p,type:f,rules:[{conditions:[m],type:f,rules:[{conditions:q,type:f,rules:[{conditions:q,endpoint:{url:"https://codestar-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]},{conditions:q,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:r,type:f,rules:[{conditions:[n],type:f,rules:[{conditions:q,endpoint:{url:"https://codestar.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:q,endpoint:{url:"https://codestar.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-cognito-identity-provider/src/endpoint/ruleset.ts b/clients/client-cognito-identity-provider/src/endpoint/ruleset.ts index b7b3dc0f06a6c..7cc3057300ab2 100644 --- a/clients/client-cognito-identity-provider/src/endpoint/ruleset.ts +++ b/clients/client-cognito-identity-provider/src/endpoint/ruleset.ts @@ -1,320 +1,31 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: false, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://cognito-idp-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://cognito-idp-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://cognito-idp.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://cognito-idp.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/cognito-identity-provider.json */ + +const s="fn", +t="argv", +u="ref"; +const a=false, +b=true, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i={[u]:"Endpoint"}, +j={[s]:"booleanEquals",[t]:[{[u]:"UseFIPS"},true]}, +k={[s]:"booleanEquals",[t]:[{[u]:"UseDualStack"},true]}, +l={}, +m={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsFIPS"]}]}, +n={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsDualStack"]}]}, +o=[i], +p=[j], +q=[], +r=[k]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:b,default:a,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:b,default:a,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:a,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[s]:"aws.partition",[t]:[{[u]:"Region"}],assign:e}],type:f,rules:[{conditions:[{[s]:"isSet",[t]:o},{[s]:"parseURL",[t]:o,assign:"url"}],type:f,rules:[{conditions:p,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:q,type:f,rules:[{conditions:r,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:q,endpoint:{url:i,properties:l,headers:l},type:h}]}]},{conditions:[j,k],type:f,rules:[{conditions:[m,n],type:f,rules:[{conditions:q,endpoint:{url:"https://cognito-idp-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:p,type:f,rules:[{conditions:[m],type:f,rules:[{conditions:q,type:f,rules:[{conditions:q,endpoint:{url:"https://cognito-idp-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]},{conditions:q,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:r,type:f,rules:[{conditions:[n],type:f,rules:[{conditions:q,endpoint:{url:"https://cognito-idp.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:q,endpoint:{url:"https://cognito-idp.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-cognito-identity/src/endpoint/ruleset.ts b/clients/client-cognito-identity/src/endpoint/ruleset.ts index db9dc861be95c..8a73f8ae9fb7b 100644 --- a/clients/client-cognito-identity/src/endpoint/ruleset.ts +++ b/clients/client-cognito-identity/src/endpoint/ruleset.ts @@ -1,320 +1,31 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: false, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://cognito-identity-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://cognito-identity-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://cognito-identity.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://cognito-identity.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/cognito-identity.json */ + +const s="fn", +t="argv", +u="ref"; +const a=false, +b=true, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i={[u]:"Endpoint"}, +j={[s]:"booleanEquals",[t]:[{[u]:"UseFIPS"},true]}, +k={[s]:"booleanEquals",[t]:[{[u]:"UseDualStack"},true]}, +l={}, +m={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsFIPS"]}]}, +n={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsDualStack"]}]}, +o=[i], +p=[j], +q=[], +r=[k]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:b,default:a,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:b,default:a,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:a,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[s]:"aws.partition",[t]:[{[u]:"Region"}],assign:e}],type:f,rules:[{conditions:[{[s]:"isSet",[t]:o},{[s]:"parseURL",[t]:o,assign:"url"}],type:f,rules:[{conditions:p,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:q,type:f,rules:[{conditions:r,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:q,endpoint:{url:i,properties:l,headers:l},type:h}]}]},{conditions:[j,k],type:f,rules:[{conditions:[m,n],type:f,rules:[{conditions:q,endpoint:{url:"https://cognito-identity-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:p,type:f,rules:[{conditions:[m],type:f,rules:[{conditions:q,type:f,rules:[{conditions:q,endpoint:{url:"https://cognito-identity-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]},{conditions:q,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:r,type:f,rules:[{conditions:[n],type:f,rules:[{conditions:q,endpoint:{url:"https://cognito-identity.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:q,endpoint:{url:"https://cognito-identity.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-cognito-sync/src/endpoint/ruleset.ts b/clients/client-cognito-sync/src/endpoint/ruleset.ts index 85daece8b7cb4..bf5af8fbb5b6a 100644 --- a/clients/client-cognito-sync/src/endpoint/ruleset.ts +++ b/clients/client-cognito-sync/src/endpoint/ruleset.ts @@ -1,320 +1,31 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: false, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://cognito-sync-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://cognito-sync-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://cognito-sync.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://cognito-sync.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/cognito-sync.json */ + +const s="fn", +t="argv", +u="ref"; +const a=false, +b=true, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i={[u]:"Endpoint"}, +j={[s]:"booleanEquals",[t]:[{[u]:"UseFIPS"},true]}, +k={[s]:"booleanEquals",[t]:[{[u]:"UseDualStack"},true]}, +l={}, +m={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsFIPS"]}]}, +n={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsDualStack"]}]}, +o=[i], +p=[j], +q=[], +r=[k]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:b,default:a,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:b,default:a,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:a,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[s]:"aws.partition",[t]:[{[u]:"Region"}],assign:e}],type:f,rules:[{conditions:[{[s]:"isSet",[t]:o},{[s]:"parseURL",[t]:o,assign:"url"}],type:f,rules:[{conditions:p,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:q,type:f,rules:[{conditions:r,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:q,endpoint:{url:i,properties:l,headers:l},type:h}]}]},{conditions:[j,k],type:f,rules:[{conditions:[m,n],type:f,rules:[{conditions:q,endpoint:{url:"https://cognito-sync-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:p,type:f,rules:[{conditions:[m],type:f,rules:[{conditions:q,type:f,rules:[{conditions:q,endpoint:{url:"https://cognito-sync-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]},{conditions:q,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:r,type:f,rules:[{conditions:[n],type:f,rules:[{conditions:q,endpoint:{url:"https://cognito-sync.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:q,endpoint:{url:"https://cognito-sync.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-comprehend/src/endpoint/ruleset.ts b/clients/client-comprehend/src/endpoint/ruleset.ts index 5b58b5fcd1ddd..f4b27dc23fc80 100644 --- a/clients/client-comprehend/src/endpoint/ruleset.ts +++ b/clients/client-comprehend/src/endpoint/ruleset.ts @@ -1,320 +1,31 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: true, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://comprehend-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://comprehend-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://comprehend.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://comprehend.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/comprehend.json */ + +const s="fn", +t="argv", +u="ref"; +const a=true, +b=false, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i={[u]:"Endpoint"}, +j={[s]:"booleanEquals",[t]:[{[u]:"UseFIPS"},true]}, +k={[s]:"booleanEquals",[t]:[{[u]:"UseDualStack"},true]}, +l={}, +m={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsFIPS"]}]}, +n={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsDualStack"]}]}, +o=[i], +p=[j], +q=[], +r=[k]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:a,default:b,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:a,default:b,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:b,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[s]:"aws.partition",[t]:[{[u]:"Region"}],assign:e}],type:f,rules:[{conditions:[{[s]:"isSet",[t]:o},{[s]:"parseURL",[t]:o,assign:"url"}],type:f,rules:[{conditions:p,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:q,type:f,rules:[{conditions:r,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:q,endpoint:{url:i,properties:l,headers:l},type:h}]}]},{conditions:[j,k],type:f,rules:[{conditions:[m,n],type:f,rules:[{conditions:q,endpoint:{url:"https://comprehend-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:p,type:f,rules:[{conditions:[m],type:f,rules:[{conditions:q,type:f,rules:[{conditions:q,endpoint:{url:"https://comprehend-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]},{conditions:q,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:r,type:f,rules:[{conditions:[n],type:f,rules:[{conditions:q,endpoint:{url:"https://comprehend.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:q,endpoint:{url:"https://comprehend.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-comprehendmedical/src/endpoint/ruleset.ts b/clients/client-comprehendmedical/src/endpoint/ruleset.ts index 2798ebc65fafb..2674559d4b60d 100644 --- a/clients/client-comprehendmedical/src/endpoint/ruleset.ts +++ b/clients/client-comprehendmedical/src/endpoint/ruleset.ts @@ -1,320 +1,31 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: false, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://comprehendmedical-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://comprehendmedical-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://comprehendmedical.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://comprehendmedical.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/comprehendmedical.json */ + +const s="fn", +t="argv", +u="ref"; +const a=false, +b=true, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i={[u]:"Endpoint"}, +j={[s]:"booleanEquals",[t]:[{[u]:"UseFIPS"},true]}, +k={[s]:"booleanEquals",[t]:[{[u]:"UseDualStack"},true]}, +l={}, +m={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsFIPS"]}]}, +n={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsDualStack"]}]}, +o=[i], +p=[j], +q=[], +r=[k]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:b,default:a,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:b,default:a,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:a,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[s]:"aws.partition",[t]:[{[u]:"Region"}],assign:e}],type:f,rules:[{conditions:[{[s]:"isSet",[t]:o},{[s]:"parseURL",[t]:o,assign:"url"}],type:f,rules:[{conditions:p,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:q,type:f,rules:[{conditions:r,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:q,endpoint:{url:i,properties:l,headers:l},type:h}]}]},{conditions:[j,k],type:f,rules:[{conditions:[m,n],type:f,rules:[{conditions:q,endpoint:{url:"https://comprehendmedical-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:p,type:f,rules:[{conditions:[m],type:f,rules:[{conditions:q,type:f,rules:[{conditions:q,endpoint:{url:"https://comprehendmedical-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]},{conditions:q,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:r,type:f,rules:[{conditions:[n],type:f,rules:[{conditions:q,endpoint:{url:"https://comprehendmedical.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:q,endpoint:{url:"https://comprehendmedical.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-compute-optimizer/src/endpoint/ruleset.ts b/clients/client-compute-optimizer/src/endpoint/ruleset.ts index 59e651471f16b..a91f8237d19a5 100644 --- a/clients/client-compute-optimizer/src/endpoint/ruleset.ts +++ b/clients/client-compute-optimizer/src/endpoint/ruleset.ts @@ -1,320 +1,31 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: true, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://compute-optimizer-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://compute-optimizer-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://compute-optimizer.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://compute-optimizer.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/compute-optimizer.json */ + +const s="fn", +t="argv", +u="ref"; +const a=true, +b=false, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i={[u]:"Endpoint"}, +j={[s]:"booleanEquals",[t]:[{[u]:"UseFIPS"},true]}, +k={[s]:"booleanEquals",[t]:[{[u]:"UseDualStack"},true]}, +l={}, +m={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsFIPS"]}]}, +n={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsDualStack"]}]}, +o=[i], +p=[j], +q=[], +r=[k]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:a,default:b,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:a,default:b,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:b,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[s]:"aws.partition",[t]:[{[u]:"Region"}],assign:e}],type:f,rules:[{conditions:[{[s]:"isSet",[t]:o},{[s]:"parseURL",[t]:o,assign:"url"}],type:f,rules:[{conditions:p,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:q,type:f,rules:[{conditions:r,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:q,endpoint:{url:i,properties:l,headers:l},type:h}]}]},{conditions:[j,k],type:f,rules:[{conditions:[m,n],type:f,rules:[{conditions:q,endpoint:{url:"https://compute-optimizer-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:p,type:f,rules:[{conditions:[m],type:f,rules:[{conditions:q,type:f,rules:[{conditions:q,endpoint:{url:"https://compute-optimizer-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]},{conditions:q,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:r,type:f,rules:[{conditions:[n],type:f,rules:[{conditions:q,endpoint:{url:"https://compute-optimizer.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:q,endpoint:{url:"https://compute-optimizer.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-config-service/src/endpoint/ruleset.ts b/clients/client-config-service/src/endpoint/ruleset.ts index dfed03b50771d..0aa4c2621f4d4 100644 --- a/clients/client-config-service/src/endpoint/ruleset.ts +++ b/clients/client-config-service/src/endpoint/ruleset.ts @@ -1,345 +1,34 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: true, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://config-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "stringEquals", - argv: [ - "aws-us-gov", - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "name", - ], - }, - ], - }, - ], - endpoint: { - url: "https://config.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - { - conditions: [], - endpoint: { - url: "https://config-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://config.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://config.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/config-service.json */ + +const v="fn", +w="argv", +x="ref"; +const a=true, +b=false, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i="getAttr", +j={[x]:"Endpoint"}, +k={[v]:"booleanEquals",[w]:[{[x]:"UseFIPS"},true]}, +l={[v]:"booleanEquals",[w]:[{[x]:"UseDualStack"},true]}, +m={}, +n={[v]:"booleanEquals",[w]:[true,{[v]:i,[w]:[{[x]:e},"supportsFIPS"]}]}, +o={[x]:e}, +p={[v]:"booleanEquals",[w]:[true,{[v]:i,[w]:[o,"supportsDualStack"]}]}, +q={"url":"https://config.{Region}.{PartitionResult#dnsSuffix}","properties":{},"headers":{}}, +r=[j], +s=[k], +t=[], +u=[l]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:a,default:b,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:a,default:b,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:b,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[v]:"aws.partition",[w]:[{[x]:"Region"}],assign:e}],type:f,rules:[{conditions:[{[v]:"isSet",[w]:r},{[v]:"parseURL",[w]:r,assign:"url"}],type:f,rules:[{conditions:s,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:t,type:f,rules:[{conditions:u,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:t,endpoint:{url:j,properties:m,headers:m},type:h}]}]},{conditions:[k,l],type:f,rules:[{conditions:[n,p],type:f,rules:[{conditions:t,endpoint:{url:"https://config-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:m,headers:m},type:h}]},{conditions:t,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:s,type:f,rules:[{conditions:[n],type:f,rules:[{conditions:t,type:f,rules:[{conditions:[{[v]:"stringEquals",[w]:["aws-us-gov",{[v]:i,[w]:[o,"name"]}]}],endpoint:q,type:h},{conditions:t,endpoint:{url:"https://config-fips.{Region}.{PartitionResult#dnsSuffix}",properties:m,headers:m},type:h}]}]},{conditions:t,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:u,type:f,rules:[{conditions:[p],type:f,rules:[{conditions:t,endpoint:{url:"https://config.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:m,headers:m},type:h}]},{conditions:t,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:t,endpoint:q,type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-connect-contact-lens/src/endpoint/ruleset.ts b/clients/client-connect-contact-lens/src/endpoint/ruleset.ts index 648db99fcfcb1..e0b8bd8f48fe2 100644 --- a/clients/client-connect-contact-lens/src/endpoint/ruleset.ts +++ b/clients/client-connect-contact-lens/src/endpoint/ruleset.ts @@ -1,320 +1,31 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: false, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://contact-lens-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://contact-lens-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://contact-lens.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://contact-lens.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/connect-contact-lens.json */ + +const s="fn", +t="argv", +u="ref"; +const a=false, +b=true, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i={[u]:"Endpoint"}, +j={[s]:"booleanEquals",[t]:[{[u]:"UseFIPS"},true]}, +k={[s]:"booleanEquals",[t]:[{[u]:"UseDualStack"},true]}, +l={}, +m={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsFIPS"]}]}, +n={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsDualStack"]}]}, +o=[i], +p=[j], +q=[], +r=[k]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:b,default:a,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:b,default:a,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:a,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[s]:"aws.partition",[t]:[{[u]:"Region"}],assign:e}],type:f,rules:[{conditions:[{[s]:"isSet",[t]:o},{[s]:"parseURL",[t]:o,assign:"url"}],type:f,rules:[{conditions:p,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:q,type:f,rules:[{conditions:r,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:q,endpoint:{url:i,properties:l,headers:l},type:h}]}]},{conditions:[j,k],type:f,rules:[{conditions:[m,n],type:f,rules:[{conditions:q,endpoint:{url:"https://contact-lens-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:p,type:f,rules:[{conditions:[m],type:f,rules:[{conditions:q,type:f,rules:[{conditions:q,endpoint:{url:"https://contact-lens-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]},{conditions:q,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:r,type:f,rules:[{conditions:[n],type:f,rules:[{conditions:q,endpoint:{url:"https://contact-lens.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:q,endpoint:{url:"https://contact-lens.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-connect/src/endpoint/ruleset.ts b/clients/client-connect/src/endpoint/ruleset.ts index 4c23dc93c2758..712fcc2abf4e3 100644 --- a/clients/client-connect/src/endpoint/ruleset.ts +++ b/clients/client-connect/src/endpoint/ruleset.ts @@ -1,311 +1,30 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: true, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://connect-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://connect-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://connect.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://connect.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/connect.json */ + +const r="fn", +s="argv", +t="ref"; +const a=true, +b=false, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i={[t]:"Endpoint"}, +j={[r]:"booleanEquals",[s]:[{[t]:"UseFIPS"},true]}, +k={[r]:"booleanEquals",[s]:[{[t]:"UseDualStack"},true]}, +l={}, +m={[r]:"booleanEquals",[s]:[true,{[r]:"getAttr",[s]:[{[t]:e},"supportsFIPS"]}]}, +n={[r]:"booleanEquals",[s]:[true,{[r]:"getAttr",[s]:[{[t]:e},"supportsDualStack"]}]}, +o=[j], +p=[], +q=[k]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:a,default:b,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:a,default:b,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:b,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[r]:"aws.partition",[s]:[{[t]:"Region"}],assign:e}],type:f,rules:[{conditions:[{[r]:"isSet",[s]:[i]}],type:f,rules:[{conditions:o,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:p,type:f,rules:[{conditions:q,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:p,endpoint:{url:i,properties:l,headers:l},type:h}]}]},{conditions:[j,k],type:f,rules:[{conditions:[m,n],type:f,rules:[{conditions:p,endpoint:{url:"https://connect-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:p,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:o,type:f,rules:[{conditions:[m],type:f,rules:[{conditions:p,type:f,rules:[{conditions:p,endpoint:{url:"https://connect-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]},{conditions:p,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:q,type:f,rules:[{conditions:[n],type:f,rules:[{conditions:p,endpoint:{url:"https://connect.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:p,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:p,endpoint:{url:"https://connect.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-connectcampaigns/src/endpoint/ruleset.ts b/clients/client-connectcampaigns/src/endpoint/ruleset.ts index de38aedbe382d..75d0aeef813da 100644 --- a/clients/client-connectcampaigns/src/endpoint/ruleset.ts +++ b/clients/client-connectcampaigns/src/endpoint/ruleset.ts @@ -1,320 +1,31 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: false, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://connect-campaigns-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://connect-campaigns-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://connect-campaigns.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://connect-campaigns.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/connectcampaigns.json */ + +const s="fn", +t="argv", +u="ref"; +const a=false, +b=true, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i={[u]:"Endpoint"}, +j={[s]:"booleanEquals",[t]:[{[u]:"UseFIPS"},true]}, +k={[s]:"booleanEquals",[t]:[{[u]:"UseDualStack"},true]}, +l={}, +m={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsFIPS"]}]}, +n={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsDualStack"]}]}, +o=[i], +p=[j], +q=[], +r=[k]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:b,default:a,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:b,default:a,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:a,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[s]:"aws.partition",[t]:[{[u]:"Region"}],assign:e}],type:f,rules:[{conditions:[{[s]:"isSet",[t]:o},{[s]:"parseURL",[t]:o,assign:"url"}],type:f,rules:[{conditions:p,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:q,type:f,rules:[{conditions:r,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:q,endpoint:{url:i,properties:l,headers:l},type:h}]}]},{conditions:[j,k],type:f,rules:[{conditions:[m,n],type:f,rules:[{conditions:q,endpoint:{url:"https://connect-campaigns-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:p,type:f,rules:[{conditions:[m],type:f,rules:[{conditions:q,type:f,rules:[{conditions:q,endpoint:{url:"https://connect-campaigns-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]},{conditions:q,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:r,type:f,rules:[{conditions:[n],type:f,rules:[{conditions:q,endpoint:{url:"https://connect-campaigns.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:q,endpoint:{url:"https://connect-campaigns.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-connectcases/src/endpoint/ruleset.ts b/clients/client-connectcases/src/endpoint/ruleset.ts index d1eab160fc5ed..859ee36ba9102 100644 --- a/clients/client-connectcases/src/endpoint/ruleset.ts +++ b/clients/client-connectcases/src/endpoint/ruleset.ts @@ -1,314 +1,31 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: false, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://cases-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://cases-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://cases.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://cases.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/connectcases.json */ + +const s="fn", +t="argv", +u="ref"; +const a=false, +b=true, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i={[u]:"Endpoint"}, +j={[s]:"booleanEquals",[t]:[{[u]:"UseFIPS"},true]}, +k={[s]:"booleanEquals",[t]:[{[u]:"UseDualStack"},true]}, +l={}, +m={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsFIPS"]}]}, +n={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsDualStack"]}]}, +o=[i], +p=[j], +q=[], +r=[k]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:b,default:a,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:b,default:a,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:a,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[s]:"aws.partition",[t]:[{[u]:"Region"}],assign:e}],type:f,rules:[{conditions:[{[s]:"isSet",[t]:o},{[s]:"parseURL",[t]:o,assign:"url"}],type:f,rules:[{conditions:p,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:q,type:f,rules:[{conditions:r,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:q,endpoint:{url:i,properties:l,headers:l},type:h}]}]},{conditions:[j,k],type:f,rules:[{conditions:[m,n],type:f,rules:[{conditions:q,endpoint:{url:"https://cases-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:p,type:f,rules:[{conditions:[m],type:f,rules:[{conditions:q,endpoint:{url:"https://cases-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:r,type:f,rules:[{conditions:[n],type:f,rules:[{conditions:q,endpoint:{url:"https://cases.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:q,endpoint:{url:"https://cases.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-connectparticipant/src/endpoint/ruleset.ts b/clients/client-connectparticipant/src/endpoint/ruleset.ts index 52ffaf7bb839d..2d21070bcab89 100644 --- a/clients/client-connectparticipant/src/endpoint/ruleset.ts +++ b/clients/client-connectparticipant/src/endpoint/ruleset.ts @@ -1,314 +1,31 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: false, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://participant.connect-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://participant.connect-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://participant.connect.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://participant.connect.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/connectparticipant.json */ + +const s="fn", +t="argv", +u="ref"; +const a=false, +b=true, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i={[u]:"Endpoint"}, +j={[s]:"booleanEquals",[t]:[{[u]:"UseFIPS"},true]}, +k={[s]:"booleanEquals",[t]:[{[u]:"UseDualStack"},true]}, +l={}, +m={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsFIPS"]}]}, +n={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsDualStack"]}]}, +o=[i], +p=[j], +q=[], +r=[k]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:b,default:a,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:b,default:a,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:a,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[s]:"aws.partition",[t]:[{[u]:"Region"}],assign:e}],type:f,rules:[{conditions:[{[s]:"isSet",[t]:o},{[s]:"parseURL",[t]:o,assign:"url"}],type:f,rules:[{conditions:p,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:q,type:f,rules:[{conditions:r,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:q,endpoint:{url:i,properties:l,headers:l},type:h}]}]},{conditions:[j,k],type:f,rules:[{conditions:[m,n],type:f,rules:[{conditions:q,endpoint:{url:"https://participant.connect-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:p,type:f,rules:[{conditions:[m],type:f,rules:[{conditions:q,endpoint:{url:"https://participant.connect-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:r,type:f,rules:[{conditions:[n],type:f,rules:[{conditions:q,endpoint:{url:"https://participant.connect.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:q,endpoint:{url:"https://participant.connect.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-controltower/src/endpoint/ruleset.ts b/clients/client-controltower/src/endpoint/ruleset.ts index 93d490e1a8163..65451af1e3a32 100644 --- a/clients/client-controltower/src/endpoint/ruleset.ts +++ b/clients/client-controltower/src/endpoint/ruleset.ts @@ -1,320 +1,31 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: false, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://controltower-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://controltower-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://controltower.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://controltower.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/controltower.json */ + +const s="fn", +t="argv", +u="ref"; +const a=false, +b=true, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i={[u]:"Endpoint"}, +j={[s]:"booleanEquals",[t]:[{[u]:"UseFIPS"},true]}, +k={[s]:"booleanEquals",[t]:[{[u]:"UseDualStack"},true]}, +l={}, +m={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsFIPS"]}]}, +n={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsDualStack"]}]}, +o=[i], +p=[j], +q=[], +r=[k]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:b,default:a,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:b,default:a,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:a,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[s]:"aws.partition",[t]:[{[u]:"Region"}],assign:e}],type:f,rules:[{conditions:[{[s]:"isSet",[t]:o},{[s]:"parseURL",[t]:o,assign:"url"}],type:f,rules:[{conditions:p,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:q,type:f,rules:[{conditions:r,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:q,endpoint:{url:i,properties:l,headers:l},type:h}]}]},{conditions:[j,k],type:f,rules:[{conditions:[m,n],type:f,rules:[{conditions:q,endpoint:{url:"https://controltower-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:p,type:f,rules:[{conditions:[m],type:f,rules:[{conditions:q,type:f,rules:[{conditions:q,endpoint:{url:"https://controltower-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]},{conditions:q,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:r,type:f,rules:[{conditions:[n],type:f,rules:[{conditions:q,endpoint:{url:"https://controltower.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:q,endpoint:{url:"https://controltower.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-cost-and-usage-report-service/src/endpoint/ruleset.ts b/clients/client-cost-and-usage-report-service/src/endpoint/ruleset.ts index 33655880e3502..b1ae5f7755608 100644 --- a/clients/client-cost-and-usage-report-service/src/endpoint/ruleset.ts +++ b/clients/client-cost-and-usage-report-service/src/endpoint/ruleset.ts @@ -1,320 +1,31 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: false, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://cur-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://cur-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://cur.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://cur.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/cost-and-usage-report-service.json */ + +const s="fn", +t="argv", +u="ref"; +const a=false, +b=true, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i={[u]:"Endpoint"}, +j={[s]:"booleanEquals",[t]:[{[u]:"UseFIPS"},true]}, +k={[s]:"booleanEquals",[t]:[{[u]:"UseDualStack"},true]}, +l={}, +m={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsFIPS"]}]}, +n={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsDualStack"]}]}, +o=[i], +p=[j], +q=[], +r=[k]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:b,default:a,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:b,default:a,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:a,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[s]:"aws.partition",[t]:[{[u]:"Region"}],assign:e}],type:f,rules:[{conditions:[{[s]:"isSet",[t]:o},{[s]:"parseURL",[t]:o,assign:"url"}],type:f,rules:[{conditions:p,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:q,type:f,rules:[{conditions:r,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:q,endpoint:{url:i,properties:l,headers:l},type:h}]}]},{conditions:[j,k],type:f,rules:[{conditions:[m,n],type:f,rules:[{conditions:q,endpoint:{url:"https://cur-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:p,type:f,rules:[{conditions:[m],type:f,rules:[{conditions:q,type:f,rules:[{conditions:q,endpoint:{url:"https://cur-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]},{conditions:q,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:r,type:f,rules:[{conditions:[n],type:f,rules:[{conditions:q,endpoint:{url:"https://cur.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:q,endpoint:{url:"https://cur.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-cost-explorer/src/endpoint/ruleset.ts b/clients/client-cost-explorer/src/endpoint/ruleset.ts index f15e568d2beb8..8f83f437be583 100644 --- a/clients/client-cost-explorer/src/endpoint/ruleset.ts +++ b/clients/client-cost-explorer/src/endpoint/ruleset.ts @@ -1,857 +1,47 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: true, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "stringEquals", - argv: [ - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "name", - ], - }, - "aws", - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://cost-explorer-fips.{Region}.api.aws", - properties: { - authSchemes: [ - { - name: "sigv4", - signingRegion: "us-east-1", - signingName: "ce", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://cost-explorer-fips.{Region}.amazonaws.com", - properties: { - authSchemes: [ - { - name: "sigv4", - signingRegion: "us-east-1", - signingName: "ce", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://cost-explorer.{Region}.api.aws", - properties: { - authSchemes: [ - { - name: "sigv4", - signingRegion: "us-east-1", - signingName: "ce", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://ce.us-east-1.amazonaws.com", - properties: { - authSchemes: [ - { - name: "sigv4", - signingRegion: "us-east-1", - signingName: "ce", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [ - { - fn: "stringEquals", - argv: [ - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "name", - ], - }, - "aws-cn", - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://cost-explorer-fips.{Region}.api.amazonwebservices.com.cn", - properties: { - authSchemes: [ - { - name: "sigv4", - signingRegion: "cn-northwest-1", - signingName: "ce", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://cost-explorer-fips.{Region}.amazonaws.com.cn", - properties: { - authSchemes: [ - { - name: "sigv4", - signingRegion: "cn-northwest-1", - signingName: "ce", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://cost-explorer.{Region}.api.amazonwebservices.com.cn", - properties: { - authSchemes: [ - { - name: "sigv4", - signingRegion: "cn-northwest-1", - signingName: "ce", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://ce.cn-northwest-1.amazonaws.com.cn", - properties: { - authSchemes: [ - { - name: "sigv4", - signingRegion: "cn-northwest-1", - signingName: "ce", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://ce-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://ce-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://ce.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "stringEquals", - argv: [ - { - ref: "Region", - }, - "aws-global", - ], - }, - ], - endpoint: { - url: "https://ce.us-east-1.amazonaws.com", - properties: { - authSchemes: [ - { - name: "sigv4", - signingRegion: "us-east-1", - signingName: "ce", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - { - conditions: [ - { - fn: "stringEquals", - argv: [ - { - ref: "Region", - }, - "aws-cn-global", - ], - }, - ], - endpoint: { - url: "https://ce.cn-northwest-1.amazonaws.com.cn", - properties: { - authSchemes: [ - { - name: "sigv4", - signingRegion: "cn-northwest-1", - signingName: "ce", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - { - conditions: [], - endpoint: { - url: "https://ce.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/cost-explorer.json */ + +const B="type", +C="conditions", +D="fn", +E="argv", +F="ref", +G="properties", +H="headers", +I="authSchemes", +J="signingRegion", +K="signingName"; +const a=true, +b=false, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i="stringEquals", +j={[F]:"Region"}, +k={[F]:"Endpoint"}, +l={}, +m={[D]:"getAttr",[E]:[{[F]:e},"name"]}, +n={[I]:[{"name":"sigv4",[J]:"us-east-1",[K]:"ce"}]}, +o={[C]:[],[g]:"FIPS and DualStack are enabled, but this partition does not support one or both",[B]:g}, +p={[C]:[],[g]:"FIPS is enabled but this partition does not support FIPS",[B]:g}, +q={[C]:[],[g]:"DualStack is enabled but this partition does not support DualStack",[B]:g}, +r={"url":"https://ce.us-east-1.amazonaws.com",[G]:n,[H]:{}}, +s={[I]:[{"name":"sigv4",[J]:"cn-northwest-1",[K]:"ce"}]}, +t={"url":"https://ce.cn-northwest-1.amazonaws.com.cn",[G]:s,[H]:{}}, +u=[{[D]:"booleanEquals",[E]:[{[F]:"UseFIPS"},true]}], +v=[], +w=[{[D]:"booleanEquals",[E]:[{[F]:"UseDualStack"},true]}], +x=[{[D]:"booleanEquals",[E]:[{[F]:"UseFIPS"},true]},{[D]:"booleanEquals",[E]:[{[F]:"UseDualStack"},true]}], +y=[{[D]:"booleanEquals",[E]:[true,{[D]:"getAttr",[E]:[{[F]:e},"supportsFIPS"]}]},{[D]:"booleanEquals",[E]:[true,{[D]:"getAttr",[E]:[{[F]:e},"supportsDualStack"]}]}], +z=[{[D]:"booleanEquals",[E]:[true,{[D]:"getAttr",[E]:[{[F]:e},"supportsFIPS"]}]}], +A=[{[D]:"booleanEquals",[E]:[true,{[D]:"getAttr",[E]:[{[F]:e},"supportsDualStack"]}]}]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",[B]:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:a,default:b,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",[B]:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:a,default:b,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",[B]:d},Endpoint:{builtIn:"SDK::Endpoint",required:b,documentation:"Override the endpoint used to send this request",[B]:c}},rules:[{[C]:[{[D]:"aws.partition",[E]:[j],assign:e}],[B]:f,rules:[{[C]:[{[D]:"isSet",[E]:[k]}],[B]:f,rules:[{[C]:u,error:"Invalid Configuration: FIPS and custom endpoint are not supported",[B]:g},{[C]:v,[B]:f,rules:[{[C]:w,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",[B]:g},{[C]:v,endpoint:{url:k,[G]:l,[H]:l},[B]:h}]}]},{[C]:[{[D]:i,[E]:[m,"aws"]}],[B]:f,rules:[{[C]:x,[B]:f,rules:[{[C]:y,[B]:f,rules:[{[C]:v,endpoint:{url:"https://cost-explorer-fips.{Region}.api.aws",[G]:n,[H]:l},[B]:h}]},o]},{[C]:u,[B]:f,rules:[{[C]:z,[B]:f,rules:[{[C]:v,endpoint:{url:"https://cost-explorer-fips.{Region}.amazonaws.com",[G]:n,[H]:l},[B]:h}]},p]},{[C]:w,[B]:f,rules:[{[C]:A,[B]:f,rules:[{[C]:v,endpoint:{url:"https://cost-explorer.{Region}.api.aws",[G]:n,[H]:l},[B]:h}]},q]},{[C]:v,endpoint:r,[B]:h}]},{[C]:[{[D]:i,[E]:[m,"aws-cn"]}],[B]:f,rules:[{[C]:x,[B]:f,rules:[{[C]:y,[B]:f,rules:[{[C]:v,endpoint:{url:"https://cost-explorer-fips.{Region}.api.amazonwebservices.com.cn",[G]:s,[H]:l},[B]:h}]},o]},{[C]:u,[B]:f,rules:[{[C]:z,[B]:f,rules:[{[C]:v,endpoint:{url:"https://cost-explorer-fips.{Region}.amazonaws.com.cn",[G]:s,[H]:l},[B]:h}]},p]},{[C]:w,[B]:f,rules:[{[C]:A,[B]:f,rules:[{[C]:v,endpoint:{url:"https://cost-explorer.{Region}.api.amazonwebservices.com.cn",[G]:s,[H]:l},[B]:h}]},q]},{[C]:v,endpoint:t,[B]:h}]},{[C]:x,[B]:f,rules:[{[C]:y,[B]:f,rules:[{[C]:v,endpoint:{url:"https://ce-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",[G]:l,[H]:l},[B]:h}]},o]},{[C]:u,[B]:f,rules:[{[C]:z,[B]:f,rules:[{[C]:v,[B]:f,rules:[{[C]:v,endpoint:{url:"https://ce-fips.{Region}.{PartitionResult#dnsSuffix}",[G]:l,[H]:l},[B]:h}]}]},p]},{[C]:w,[B]:f,rules:[{[C]:A,[B]:f,rules:[{[C]:v,endpoint:{url:"https://ce.{Region}.{PartitionResult#dualStackDnsSuffix}",[G]:l,[H]:l},[B]:h}]},q]},{[C]:v,[B]:f,rules:[{[C]:[{[D]:i,[E]:[j,"aws-global"]}],endpoint:r,[B]:h},{[C]:[{[D]:i,[E]:[j,"aws-cn-global"]}],endpoint:t,[B]:h},{[C]:v,endpoint:{url:"https://ce.{Region}.{PartitionResult#dnsSuffix}",[G]:l,[H]:l},[B]:h}]}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-customer-profiles/src/endpoint/ruleset.ts b/clients/client-customer-profiles/src/endpoint/ruleset.ts index 66a3a7760bc3d..214425dac1869 100644 --- a/clients/client-customer-profiles/src/endpoint/ruleset.ts +++ b/clients/client-customer-profiles/src/endpoint/ruleset.ts @@ -1,311 +1,30 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: true, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://profile-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://profile-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://profile.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://profile.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/customer-profiles.json */ + +const r="fn", +s="argv", +t="ref"; +const a=true, +b=false, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i={[t]:"Endpoint"}, +j={[r]:"booleanEquals",[s]:[{[t]:"UseFIPS"},true]}, +k={[r]:"booleanEquals",[s]:[{[t]:"UseDualStack"},true]}, +l={}, +m={[r]:"booleanEquals",[s]:[true,{[r]:"getAttr",[s]:[{[t]:e},"supportsFIPS"]}]}, +n={[r]:"booleanEquals",[s]:[true,{[r]:"getAttr",[s]:[{[t]:e},"supportsDualStack"]}]}, +o=[j], +p=[], +q=[k]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:a,default:b,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:a,default:b,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:b,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[r]:"aws.partition",[s]:[{[t]:"Region"}],assign:e}],type:f,rules:[{conditions:[{[r]:"isSet",[s]:[i]}],type:f,rules:[{conditions:o,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:p,type:f,rules:[{conditions:q,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:p,endpoint:{url:i,properties:l,headers:l},type:h}]}]},{conditions:[j,k],type:f,rules:[{conditions:[m,n],type:f,rules:[{conditions:p,endpoint:{url:"https://profile-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:p,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:o,type:f,rules:[{conditions:[m],type:f,rules:[{conditions:p,type:f,rules:[{conditions:p,endpoint:{url:"https://profile-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]},{conditions:p,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:q,type:f,rules:[{conditions:[n],type:f,rules:[{conditions:p,endpoint:{url:"https://profile.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:p,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:p,endpoint:{url:"https://profile.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-data-pipeline/src/endpoint/ruleset.ts b/clients/client-data-pipeline/src/endpoint/ruleset.ts index 20fa470ef4b76..6d3d06b19d32c 100644 --- a/clients/client-data-pipeline/src/endpoint/ruleset.ts +++ b/clients/client-data-pipeline/src/endpoint/ruleset.ts @@ -1,320 +1,31 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: false, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://datapipeline-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://datapipeline-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://datapipeline.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://datapipeline.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/data-pipeline.json */ + +const s="fn", +t="argv", +u="ref"; +const a=false, +b=true, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i={[u]:"Endpoint"}, +j={[s]:"booleanEquals",[t]:[{[u]:"UseFIPS"},true]}, +k={[s]:"booleanEquals",[t]:[{[u]:"UseDualStack"},true]}, +l={}, +m={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsFIPS"]}]}, +n={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsDualStack"]}]}, +o=[i], +p=[j], +q=[], +r=[k]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:b,default:a,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:b,default:a,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:a,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[s]:"aws.partition",[t]:[{[u]:"Region"}],assign:e}],type:f,rules:[{conditions:[{[s]:"isSet",[t]:o},{[s]:"parseURL",[t]:o,assign:"url"}],type:f,rules:[{conditions:p,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:q,type:f,rules:[{conditions:r,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:q,endpoint:{url:i,properties:l,headers:l},type:h}]}]},{conditions:[j,k],type:f,rules:[{conditions:[m,n],type:f,rules:[{conditions:q,endpoint:{url:"https://datapipeline-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:p,type:f,rules:[{conditions:[m],type:f,rules:[{conditions:q,type:f,rules:[{conditions:q,endpoint:{url:"https://datapipeline-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]},{conditions:q,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:r,type:f,rules:[{conditions:[n],type:f,rules:[{conditions:q,endpoint:{url:"https://datapipeline.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:q,endpoint:{url:"https://datapipeline.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-database-migration-service/src/endpoint/ruleset.ts b/clients/client-database-migration-service/src/endpoint/ruleset.ts index 52a1aefba7235..569f02650d5e4 100644 --- a/clients/client-database-migration-service/src/endpoint/ruleset.ts +++ b/clients/client-database-migration-service/src/endpoint/ruleset.ts @@ -1,471 +1,36 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: false, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://dms-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "stringEquals", - argv: [ - { - ref: "Region", - }, - "dms", - ], - }, - ], - endpoint: { - url: "https://dms-fips.us-west-1.amazonaws.com", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - { - conditions: [ - { - fn: "stringEquals", - argv: [ - { - ref: "Region", - }, - "dms", - ], - }, - ], - endpoint: { - url: "https://dms.us-gov-west-1.amazonaws.com", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - { - conditions: [ - { - fn: "stringEquals", - argv: [ - "aws-us-gov", - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "name", - ], - }, - ], - }, - ], - endpoint: { - url: "https://dms.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - { - conditions: [ - { - fn: "stringEquals", - argv: [ - { - ref: "Region", - }, - "dms", - ], - }, - ], - endpoint: { - url: "https://dms.us-iso-east-1.c2s.ic.gov", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - { - conditions: [ - { - fn: "stringEquals", - argv: [ - "aws-iso", - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "name", - ], - }, - ], - }, - ], - endpoint: { - url: "https://dms.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - { - conditions: [ - { - fn: "stringEquals", - argv: [ - { - ref: "Region", - }, - "dms", - ], - }, - ], - endpoint: { - url: "https://dms.us-isob-east-1.sc2s.sgov.gov", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - { - conditions: [ - { - fn: "stringEquals", - argv: [ - "aws-iso-b", - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "name", - ], - }, - ], - }, - ], - endpoint: { - url: "https://dms.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - { - conditions: [], - endpoint: { - url: "https://dms-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://dms.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://dms.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/database-migration-service.json */ + +const x="fn", +y="argv", +z="ref"; +const a=false, +b=true, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i="stringEquals", +j={[z]:"Region"}, +k={[z]:"Endpoint"}, +l={[x]:"booleanEquals",[y]:[{[z]:"UseFIPS"},true]}, +m={[x]:"booleanEquals",[y]:[{[z]:"UseDualStack"},true]}, +n={}, +o={[x]:"booleanEquals",[y]:[true,{[x]:"getAttr",[y]:[{[z]:e},"supportsFIPS"]}]}, +p={[x]:"booleanEquals",[y]:[true,{[x]:"getAttr",[y]:[{[z]:e},"supportsDualStack"]}]}, +q={[x]:"getAttr",[y]:[{[z]:e},"name"]}, +r={"url":"https://dms.{Region}.{PartitionResult#dnsSuffix}","properties":{},"headers":{}}, +s=[k], +t=[l], +u=[], +v=[m], +w=[{[x]:i,[y]:[j,"dms"]}]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:b,default:a,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:b,default:a,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:a,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[x]:"aws.partition",[y]:[j],assign:e}],type:f,rules:[{conditions:[{[x]:"isSet",[y]:s},{[x]:"parseURL",[y]:s,assign:"url"}],type:f,rules:[{conditions:t,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:u,type:f,rules:[{conditions:v,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:u,endpoint:{url:k,properties:n,headers:n},type:h}]}]},{conditions:[l,m],type:f,rules:[{conditions:[o,p],type:f,rules:[{conditions:u,endpoint:{url:"https://dms-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:n,headers:n},type:h}]},{conditions:u,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:t,type:f,rules:[{conditions:[o],type:f,rules:[{conditions:u,type:f,rules:[{conditions:w,endpoint:{url:"https://dms-fips.us-west-1.amazonaws.com",properties:n,headers:n},type:h},{conditions:w,endpoint:{url:"https://dms.us-gov-west-1.amazonaws.com",properties:n,headers:n},type:h},{conditions:[{[x]:i,[y]:["aws-us-gov",q]}],endpoint:r,type:h},{conditions:w,endpoint:{url:"https://dms.us-iso-east-1.c2s.ic.gov",properties:n,headers:n},type:h},{conditions:[{[x]:i,[y]:["aws-iso",q]}],endpoint:r,type:h},{conditions:w,endpoint:{url:"https://dms.us-isob-east-1.sc2s.sgov.gov",properties:n,headers:n},type:h},{conditions:[{[x]:i,[y]:["aws-iso-b",q]}],endpoint:r,type:h},{conditions:u,endpoint:{url:"https://dms-fips.{Region}.{PartitionResult#dnsSuffix}",properties:n,headers:n},type:h}]}]},{conditions:u,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:v,type:f,rules:[{conditions:[p],type:f,rules:[{conditions:u,endpoint:{url:"https://dms.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:n,headers:n},type:h}]},{conditions:u,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:u,endpoint:r,type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-databrew/src/endpoint/ruleset.ts b/clients/client-databrew/src/endpoint/ruleset.ts index 9b8657a2bc1c5..10ad2b5b7ffb9 100644 --- a/clients/client-databrew/src/endpoint/ruleset.ts +++ b/clients/client-databrew/src/endpoint/ruleset.ts @@ -1,320 +1,31 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: false, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://databrew-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://databrew-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://databrew.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://databrew.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/databrew.json */ + +const s="fn", +t="argv", +u="ref"; +const a=false, +b=true, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i={[u]:"Endpoint"}, +j={[s]:"booleanEquals",[t]:[{[u]:"UseFIPS"},true]}, +k={[s]:"booleanEquals",[t]:[{[u]:"UseDualStack"},true]}, +l={}, +m={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsFIPS"]}]}, +n={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsDualStack"]}]}, +o=[i], +p=[j], +q=[], +r=[k]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:b,default:a,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:b,default:a,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:a,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[s]:"aws.partition",[t]:[{[u]:"Region"}],assign:e}],type:f,rules:[{conditions:[{[s]:"isSet",[t]:o},{[s]:"parseURL",[t]:o,assign:"url"}],type:f,rules:[{conditions:p,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:q,type:f,rules:[{conditions:r,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:q,endpoint:{url:i,properties:l,headers:l},type:h}]}]},{conditions:[j,k],type:f,rules:[{conditions:[m,n],type:f,rules:[{conditions:q,endpoint:{url:"https://databrew-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:p,type:f,rules:[{conditions:[m],type:f,rules:[{conditions:q,type:f,rules:[{conditions:q,endpoint:{url:"https://databrew-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]},{conditions:q,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:r,type:f,rules:[{conditions:[n],type:f,rules:[{conditions:q,endpoint:{url:"https://databrew.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:q,endpoint:{url:"https://databrew.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-dataexchange/src/endpoint/ruleset.ts b/clients/client-dataexchange/src/endpoint/ruleset.ts index 2cb78886896cf..64114a8653399 100644 --- a/clients/client-dataexchange/src/endpoint/ruleset.ts +++ b/clients/client-dataexchange/src/endpoint/ruleset.ts @@ -1,320 +1,31 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: true, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://dataexchange-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://dataexchange-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://dataexchange.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://dataexchange.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/dataexchange.json */ + +const s="fn", +t="argv", +u="ref"; +const a=true, +b=false, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i={[u]:"Endpoint"}, +j={[s]:"booleanEquals",[t]:[{[u]:"UseFIPS"},true]}, +k={[s]:"booleanEquals",[t]:[{[u]:"UseDualStack"},true]}, +l={}, +m={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsFIPS"]}]}, +n={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsDualStack"]}]}, +o=[i], +p=[j], +q=[], +r=[k]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:a,default:b,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:a,default:b,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:b,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[s]:"aws.partition",[t]:[{[u]:"Region"}],assign:e}],type:f,rules:[{conditions:[{[s]:"isSet",[t]:o},{[s]:"parseURL",[t]:o,assign:"url"}],type:f,rules:[{conditions:p,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:q,type:f,rules:[{conditions:r,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:q,endpoint:{url:i,properties:l,headers:l},type:h}]}]},{conditions:[j,k],type:f,rules:[{conditions:[m,n],type:f,rules:[{conditions:q,endpoint:{url:"https://dataexchange-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:p,type:f,rules:[{conditions:[m],type:f,rules:[{conditions:q,type:f,rules:[{conditions:q,endpoint:{url:"https://dataexchange-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]},{conditions:q,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:r,type:f,rules:[{conditions:[n],type:f,rules:[{conditions:q,endpoint:{url:"https://dataexchange.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:q,endpoint:{url:"https://dataexchange.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-datasync/src/endpoint/ruleset.ts b/clients/client-datasync/src/endpoint/ruleset.ts index ac339cf506514..27b90a5c8db13 100644 --- a/clients/client-datasync/src/endpoint/ruleset.ts +++ b/clients/client-datasync/src/endpoint/ruleset.ts @@ -1,311 +1,30 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: true, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://datasync-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://datasync-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://datasync.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://datasync.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/datasync.json */ + +const r="fn", +s="argv", +t="ref"; +const a=true, +b=false, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i={[t]:"Endpoint"}, +j={[r]:"booleanEquals",[s]:[{[t]:"UseFIPS"},true]}, +k={[r]:"booleanEquals",[s]:[{[t]:"UseDualStack"},true]}, +l={}, +m={[r]:"booleanEquals",[s]:[true,{[r]:"getAttr",[s]:[{[t]:e},"supportsFIPS"]}]}, +n={[r]:"booleanEquals",[s]:[true,{[r]:"getAttr",[s]:[{[t]:e},"supportsDualStack"]}]}, +o=[j], +p=[], +q=[k]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:a,default:b,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:a,default:b,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:b,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[r]:"aws.partition",[s]:[{[t]:"Region"}],assign:e}],type:f,rules:[{conditions:[{[r]:"isSet",[s]:[i]}],type:f,rules:[{conditions:o,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:p,type:f,rules:[{conditions:q,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:p,endpoint:{url:i,properties:l,headers:l},type:h}]}]},{conditions:[j,k],type:f,rules:[{conditions:[m,n],type:f,rules:[{conditions:p,endpoint:{url:"https://datasync-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:p,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:o,type:f,rules:[{conditions:[m],type:f,rules:[{conditions:p,type:f,rules:[{conditions:p,endpoint:{url:"https://datasync-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]},{conditions:p,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:q,type:f,rules:[{conditions:[n],type:f,rules:[{conditions:p,endpoint:{url:"https://datasync.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:p,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:p,endpoint:{url:"https://datasync.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-dax/src/endpoint/ruleset.ts b/clients/client-dax/src/endpoint/ruleset.ts index 20f162728575c..b852da30877eb 100644 --- a/clients/client-dax/src/endpoint/ruleset.ts +++ b/clients/client-dax/src/endpoint/ruleset.ts @@ -1,320 +1,31 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: false, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://dax-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://dax-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://dax.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://dax.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/dax.json */ + +const s="fn", +t="argv", +u="ref"; +const a=false, +b=true, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i={[u]:"Endpoint"}, +j={[s]:"booleanEquals",[t]:[{[u]:"UseFIPS"},true]}, +k={[s]:"booleanEquals",[t]:[{[u]:"UseDualStack"},true]}, +l={}, +m={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsFIPS"]}]}, +n={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsDualStack"]}]}, +o=[i], +p=[j], +q=[], +r=[k]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:b,default:a,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:b,default:a,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:a,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[s]:"aws.partition",[t]:[{[u]:"Region"}],assign:e}],type:f,rules:[{conditions:[{[s]:"isSet",[t]:o},{[s]:"parseURL",[t]:o,assign:"url"}],type:f,rules:[{conditions:p,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:q,type:f,rules:[{conditions:r,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:q,endpoint:{url:i,properties:l,headers:l},type:h}]}]},{conditions:[j,k],type:f,rules:[{conditions:[m,n],type:f,rules:[{conditions:q,endpoint:{url:"https://dax-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:p,type:f,rules:[{conditions:[m],type:f,rules:[{conditions:q,type:f,rules:[{conditions:q,endpoint:{url:"https://dax-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]},{conditions:q,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:r,type:f,rules:[{conditions:[n],type:f,rules:[{conditions:q,endpoint:{url:"https://dax.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:q,endpoint:{url:"https://dax.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-detective/src/endpoint/ruleset.ts b/clients/client-detective/src/endpoint/ruleset.ts index c22260c8fc794..601e640a0d89c 100644 --- a/clients/client-detective/src/endpoint/ruleset.ts +++ b/clients/client-detective/src/endpoint/ruleset.ts @@ -1,320 +1,31 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: false, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://api.detective-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://api.detective-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://api.detective.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://api.detective.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/detective.json */ + +const s="fn", +t="argv", +u="ref"; +const a=false, +b=true, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i={[u]:"Endpoint"}, +j={[s]:"booleanEquals",[t]:[{[u]:"UseFIPS"},true]}, +k={[s]:"booleanEquals",[t]:[{[u]:"UseDualStack"},true]}, +l={}, +m={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsFIPS"]}]}, +n={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsDualStack"]}]}, +o=[i], +p=[j], +q=[], +r=[k]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:b,default:a,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:b,default:a,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:a,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[s]:"aws.partition",[t]:[{[u]:"Region"}],assign:e}],type:f,rules:[{conditions:[{[s]:"isSet",[t]:o},{[s]:"parseURL",[t]:o,assign:"url"}],type:f,rules:[{conditions:p,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:q,type:f,rules:[{conditions:r,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:q,endpoint:{url:i,properties:l,headers:l},type:h}]}]},{conditions:[j,k],type:f,rules:[{conditions:[m,n],type:f,rules:[{conditions:q,endpoint:{url:"https://api.detective-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:p,type:f,rules:[{conditions:[m],type:f,rules:[{conditions:q,type:f,rules:[{conditions:q,endpoint:{url:"https://api.detective-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]},{conditions:q,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:r,type:f,rules:[{conditions:[n],type:f,rules:[{conditions:q,endpoint:{url:"https://api.detective.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:q,endpoint:{url:"https://api.detective.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-device-farm/src/endpoint/ruleset.ts b/clients/client-device-farm/src/endpoint/ruleset.ts index 4459a4f7ec3b8..21d8c8e02157b 100644 --- a/clients/client-device-farm/src/endpoint/ruleset.ts +++ b/clients/client-device-farm/src/endpoint/ruleset.ts @@ -1,320 +1,31 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: false, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://devicefarm-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://devicefarm-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://devicefarm.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://devicefarm.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/device-farm.json */ + +const s="fn", +t="argv", +u="ref"; +const a=false, +b=true, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i={[u]:"Endpoint"}, +j={[s]:"booleanEquals",[t]:[{[u]:"UseFIPS"},true]}, +k={[s]:"booleanEquals",[t]:[{[u]:"UseDualStack"},true]}, +l={}, +m={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsFIPS"]}]}, +n={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsDualStack"]}]}, +o=[i], +p=[j], +q=[], +r=[k]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:b,default:a,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:b,default:a,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:a,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[s]:"aws.partition",[t]:[{[u]:"Region"}],assign:e}],type:f,rules:[{conditions:[{[s]:"isSet",[t]:o},{[s]:"parseURL",[t]:o,assign:"url"}],type:f,rules:[{conditions:p,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:q,type:f,rules:[{conditions:r,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:q,endpoint:{url:i,properties:l,headers:l},type:h}]}]},{conditions:[j,k],type:f,rules:[{conditions:[m,n],type:f,rules:[{conditions:q,endpoint:{url:"https://devicefarm-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:p,type:f,rules:[{conditions:[m],type:f,rules:[{conditions:q,type:f,rules:[{conditions:q,endpoint:{url:"https://devicefarm-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]},{conditions:q,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:r,type:f,rules:[{conditions:[n],type:f,rules:[{conditions:q,endpoint:{url:"https://devicefarm.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:q,endpoint:{url:"https://devicefarm.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-devops-guru/src/endpoint/ruleset.ts b/clients/client-devops-guru/src/endpoint/ruleset.ts index 1e08cf9bb4ff2..7895a05fd61cb 100644 --- a/clients/client-devops-guru/src/endpoint/ruleset.ts +++ b/clients/client-devops-guru/src/endpoint/ruleset.ts @@ -1,320 +1,31 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: false, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://devops-guru-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://devops-guru-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://devops-guru.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://devops-guru.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/devops-guru.json */ + +const s="fn", +t="argv", +u="ref"; +const a=false, +b=true, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i={[u]:"Endpoint"}, +j={[s]:"booleanEquals",[t]:[{[u]:"UseFIPS"},true]}, +k={[s]:"booleanEquals",[t]:[{[u]:"UseDualStack"},true]}, +l={}, +m={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsFIPS"]}]}, +n={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsDualStack"]}]}, +o=[i], +p=[j], +q=[], +r=[k]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:b,default:a,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:b,default:a,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:a,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[s]:"aws.partition",[t]:[{[u]:"Region"}],assign:e}],type:f,rules:[{conditions:[{[s]:"isSet",[t]:o},{[s]:"parseURL",[t]:o,assign:"url"}],type:f,rules:[{conditions:p,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:q,type:f,rules:[{conditions:r,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:q,endpoint:{url:i,properties:l,headers:l},type:h}]}]},{conditions:[j,k],type:f,rules:[{conditions:[m,n],type:f,rules:[{conditions:q,endpoint:{url:"https://devops-guru-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:p,type:f,rules:[{conditions:[m],type:f,rules:[{conditions:q,type:f,rules:[{conditions:q,endpoint:{url:"https://devops-guru-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]},{conditions:q,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:r,type:f,rules:[{conditions:[n],type:f,rules:[{conditions:q,endpoint:{url:"https://devops-guru.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:q,endpoint:{url:"https://devops-guru.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-direct-connect/src/endpoint/ruleset.ts b/clients/client-direct-connect/src/endpoint/ruleset.ts index 3894b5e7ce77b..19e779d604ecb 100644 --- a/clients/client-direct-connect/src/endpoint/ruleset.ts +++ b/clients/client-direct-connect/src/endpoint/ruleset.ts @@ -1,320 +1,31 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: false, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://directconnect-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://directconnect-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://directconnect.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://directconnect.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/direct-connect.json */ + +const s="fn", +t="argv", +u="ref"; +const a=false, +b=true, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i={[u]:"Endpoint"}, +j={[s]:"booleanEquals",[t]:[{[u]:"UseFIPS"},true]}, +k={[s]:"booleanEquals",[t]:[{[u]:"UseDualStack"},true]}, +l={}, +m={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsFIPS"]}]}, +n={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsDualStack"]}]}, +o=[i], +p=[j], +q=[], +r=[k]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:b,default:a,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:b,default:a,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:a,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[s]:"aws.partition",[t]:[{[u]:"Region"}],assign:e}],type:f,rules:[{conditions:[{[s]:"isSet",[t]:o},{[s]:"parseURL",[t]:o,assign:"url"}],type:f,rules:[{conditions:p,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:q,type:f,rules:[{conditions:r,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:q,endpoint:{url:i,properties:l,headers:l},type:h}]}]},{conditions:[j,k],type:f,rules:[{conditions:[m,n],type:f,rules:[{conditions:q,endpoint:{url:"https://directconnect-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:p,type:f,rules:[{conditions:[m],type:f,rules:[{conditions:q,type:f,rules:[{conditions:q,endpoint:{url:"https://directconnect-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]},{conditions:q,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:r,type:f,rules:[{conditions:[n],type:f,rules:[{conditions:q,endpoint:{url:"https://directconnect.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:q,endpoint:{url:"https://directconnect.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-directory-service/src/endpoint/ruleset.ts b/clients/client-directory-service/src/endpoint/ruleset.ts index 96549b633ebb5..11c1d2806206a 100644 --- a/clients/client-directory-service/src/endpoint/ruleset.ts +++ b/clients/client-directory-service/src/endpoint/ruleset.ts @@ -1,320 +1,31 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: false, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://ds-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://ds-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://ds.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://ds.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/directory-service.json */ + +const s="fn", +t="argv", +u="ref"; +const a=false, +b=true, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i={[u]:"Endpoint"}, +j={[s]:"booleanEquals",[t]:[{[u]:"UseFIPS"},true]}, +k={[s]:"booleanEquals",[t]:[{[u]:"UseDualStack"},true]}, +l={}, +m={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsFIPS"]}]}, +n={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsDualStack"]}]}, +o=[i], +p=[j], +q=[], +r=[k]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:b,default:a,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:b,default:a,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:a,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[s]:"aws.partition",[t]:[{[u]:"Region"}],assign:e}],type:f,rules:[{conditions:[{[s]:"isSet",[t]:o},{[s]:"parseURL",[t]:o,assign:"url"}],type:f,rules:[{conditions:p,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:q,type:f,rules:[{conditions:r,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:q,endpoint:{url:i,properties:l,headers:l},type:h}]}]},{conditions:[j,k],type:f,rules:[{conditions:[m,n],type:f,rules:[{conditions:q,endpoint:{url:"https://ds-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:p,type:f,rules:[{conditions:[m],type:f,rules:[{conditions:q,type:f,rules:[{conditions:q,endpoint:{url:"https://ds-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]},{conditions:q,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:r,type:f,rules:[{conditions:[n],type:f,rules:[{conditions:q,endpoint:{url:"https://ds.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:q,endpoint:{url:"https://ds.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-dlm/src/endpoint/ruleset.ts b/clients/client-dlm/src/endpoint/ruleset.ts index 28f2e6eaf648c..a79ed0a97f168 100644 --- a/clients/client-dlm/src/endpoint/ruleset.ts +++ b/clients/client-dlm/src/endpoint/ruleset.ts @@ -1,320 +1,31 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: false, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://dlm-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://dlm-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://dlm.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://dlm.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/dlm.json */ + +const s="fn", +t="argv", +u="ref"; +const a=false, +b=true, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i={[u]:"Endpoint"}, +j={[s]:"booleanEquals",[t]:[{[u]:"UseFIPS"},true]}, +k={[s]:"booleanEquals",[t]:[{[u]:"UseDualStack"},true]}, +l={}, +m={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsFIPS"]}]}, +n={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsDualStack"]}]}, +o=[i], +p=[j], +q=[], +r=[k]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:b,default:a,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:b,default:a,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:a,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[s]:"aws.partition",[t]:[{[u]:"Region"}],assign:e}],type:f,rules:[{conditions:[{[s]:"isSet",[t]:o},{[s]:"parseURL",[t]:o,assign:"url"}],type:f,rules:[{conditions:p,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:q,type:f,rules:[{conditions:r,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:q,endpoint:{url:i,properties:l,headers:l},type:h}]}]},{conditions:[j,k],type:f,rules:[{conditions:[m,n],type:f,rules:[{conditions:q,endpoint:{url:"https://dlm-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:p,type:f,rules:[{conditions:[m],type:f,rules:[{conditions:q,type:f,rules:[{conditions:q,endpoint:{url:"https://dlm-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]},{conditions:q,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:r,type:f,rules:[{conditions:[n],type:f,rules:[{conditions:q,endpoint:{url:"https://dlm.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:q,endpoint:{url:"https://dlm.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-docdb-elastic/src/endpoint/ruleset.ts b/clients/client-docdb-elastic/src/endpoint/ruleset.ts index 030794d9cc206..05470b2752c27 100644 --- a/clients/client-docdb-elastic/src/endpoint/ruleset.ts +++ b/clients/client-docdb-elastic/src/endpoint/ruleset.ts @@ -1,314 +1,31 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: true, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://docdb-elastic-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://docdb-elastic-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://docdb-elastic.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://docdb-elastic.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/docdb-elastic.json */ + +const s="fn", +t="argv", +u="ref"; +const a=true, +b=false, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i={[u]:"Endpoint"}, +j={[s]:"booleanEquals",[t]:[{[u]:"UseFIPS"},true]}, +k={[s]:"booleanEquals",[t]:[{[u]:"UseDualStack"},true]}, +l={}, +m={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsFIPS"]}]}, +n={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsDualStack"]}]}, +o=[i], +p=[j], +q=[], +r=[k]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:a,default:b,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:a,default:b,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:b,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[s]:"aws.partition",[t]:[{[u]:"Region"}],assign:e}],type:f,rules:[{conditions:[{[s]:"isSet",[t]:o},{[s]:"parseURL",[t]:o,assign:"url"}],type:f,rules:[{conditions:p,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:q,type:f,rules:[{conditions:r,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:q,endpoint:{url:i,properties:l,headers:l},type:h}]}]},{conditions:[j,k],type:f,rules:[{conditions:[m,n],type:f,rules:[{conditions:q,endpoint:{url:"https://docdb-elastic-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:p,type:f,rules:[{conditions:[m],type:f,rules:[{conditions:q,endpoint:{url:"https://docdb-elastic-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:r,type:f,rules:[{conditions:[n],type:f,rules:[{conditions:q,endpoint:{url:"https://docdb-elastic.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:q,endpoint:{url:"https://docdb-elastic.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-docdb/src/endpoint/ruleset.ts b/clients/client-docdb/src/endpoint/ruleset.ts index ecd34da6161be..3dcabb6c17570 100644 --- a/clients/client-docdb/src/endpoint/ruleset.ts +++ b/clients/client-docdb/src/endpoint/ruleset.ts @@ -1,440 +1,36 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: false, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://rds-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "stringEquals", - argv: [ - { - ref: "Region", - }, - "rds.ca-central-1", - ], - }, - ], - endpoint: { - url: "https://rds-fips.ca-central-1.amazonaws.com", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - { - conditions: [ - { - fn: "stringEquals", - argv: [ - { - ref: "Region", - }, - "rds.us-east-1", - ], - }, - ], - endpoint: { - url: "https://rds-fips.us-east-1.amazonaws.com", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - { - conditions: [ - { - fn: "stringEquals", - argv: [ - { - ref: "Region", - }, - "rds.us-east-2", - ], - }, - ], - endpoint: { - url: "https://rds-fips.us-east-2.amazonaws.com", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - { - conditions: [ - { - fn: "stringEquals", - argv: [ - { - ref: "Region", - }, - "rds.us-west-1", - ], - }, - ], - endpoint: { - url: "https://rds-fips.us-west-1.amazonaws.com", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - { - conditions: [ - { - fn: "stringEquals", - argv: [ - { - ref: "Region", - }, - "rds.us-west-2", - ], - }, - ], - endpoint: { - url: "https://rds-fips.us-west-2.amazonaws.com", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - { - conditions: [ - { - fn: "stringEquals", - argv: [ - "aws-us-gov", - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "name", - ], - }, - ], - }, - ], - endpoint: { - url: "https://rds.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - { - conditions: [], - endpoint: { - url: "https://rds-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://rds.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://rds.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/docdb.json */ + +const x="fn", +y="argv", +z="ref"; +const a=false, +b=true, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i="getAttr", +j="stringEquals", +k={[z]:"Region"}, +l={[z]:"Endpoint"}, +m={[x]:"booleanEquals",[y]:[{[z]:"UseFIPS"},true]}, +n={[x]:"booleanEquals",[y]:[{[z]:"UseDualStack"},true]}, +o={}, +p={[x]:"booleanEquals",[y]:[true,{[x]:i,[y]:[{[z]:e},"supportsFIPS"]}]}, +q={[z]:e}, +r={[x]:"booleanEquals",[y]:[true,{[x]:i,[y]:[q,"supportsDualStack"]}]}, +s={"url":"https://rds.{Region}.{PartitionResult#dnsSuffix}","properties":{},"headers":{}}, +t=[l], +u=[m], +v=[], +w=[n]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:b,default:a,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:b,default:a,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:a,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[x]:"aws.partition",[y]:[k],assign:e}],type:f,rules:[{conditions:[{[x]:"isSet",[y]:t},{[x]:"parseURL",[y]:t,assign:"url"}],type:f,rules:[{conditions:u,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:v,type:f,rules:[{conditions:w,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:v,endpoint:{url:l,properties:o,headers:o},type:h}]}]},{conditions:[m,n],type:f,rules:[{conditions:[p,r],type:f,rules:[{conditions:v,endpoint:{url:"https://rds-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:o,headers:o},type:h}]},{conditions:v,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:u,type:f,rules:[{conditions:[p],type:f,rules:[{conditions:v,type:f,rules:[{conditions:[{[x]:j,[y]:[k,"rds.ca-central-1"]}],endpoint:{url:"https://rds-fips.ca-central-1.amazonaws.com",properties:o,headers:o},type:h},{conditions:[{[x]:j,[y]:[k,"rds.us-east-1"]}],endpoint:{url:"https://rds-fips.us-east-1.amazonaws.com",properties:o,headers:o},type:h},{conditions:[{[x]:j,[y]:[k,"rds.us-east-2"]}],endpoint:{url:"https://rds-fips.us-east-2.amazonaws.com",properties:o,headers:o},type:h},{conditions:[{[x]:j,[y]:[k,"rds.us-west-1"]}],endpoint:{url:"https://rds-fips.us-west-1.amazonaws.com",properties:o,headers:o},type:h},{conditions:[{[x]:j,[y]:[k,"rds.us-west-2"]}],endpoint:{url:"https://rds-fips.us-west-2.amazonaws.com",properties:o,headers:o},type:h},{conditions:[{[x]:j,[y]:["aws-us-gov",{[x]:i,[y]:[q,"name"]}]}],endpoint:s,type:h},{conditions:v,endpoint:{url:"https://rds-fips.{Region}.{PartitionResult#dnsSuffix}",properties:o,headers:o},type:h}]}]},{conditions:v,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:w,type:f,rules:[{conditions:[r],type:f,rules:[{conditions:v,endpoint:{url:"https://rds.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:o,headers:o},type:h}]},{conditions:v,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:v,endpoint:s,type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-drs/src/endpoint/ruleset.ts b/clients/client-drs/src/endpoint/ruleset.ts index 7ef81bc1c26a8..c6c9f1b9d7bba 100644 --- a/clients/client-drs/src/endpoint/ruleset.ts +++ b/clients/client-drs/src/endpoint/ruleset.ts @@ -1,320 +1,31 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: false, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://drs-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://drs-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://drs.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://drs.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/drs.json */ + +const s="fn", +t="argv", +u="ref"; +const a=false, +b=true, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i={[u]:"Endpoint"}, +j={[s]:"booleanEquals",[t]:[{[u]:"UseFIPS"},true]}, +k={[s]:"booleanEquals",[t]:[{[u]:"UseDualStack"},true]}, +l={}, +m={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsFIPS"]}]}, +n={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsDualStack"]}]}, +o=[i], +p=[j], +q=[], +r=[k]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:b,default:a,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:b,default:a,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:a,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[s]:"aws.partition",[t]:[{[u]:"Region"}],assign:e}],type:f,rules:[{conditions:[{[s]:"isSet",[t]:o},{[s]:"parseURL",[t]:o,assign:"url"}],type:f,rules:[{conditions:p,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:q,type:f,rules:[{conditions:r,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:q,endpoint:{url:i,properties:l,headers:l},type:h}]}]},{conditions:[j,k],type:f,rules:[{conditions:[m,n],type:f,rules:[{conditions:q,endpoint:{url:"https://drs-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:p,type:f,rules:[{conditions:[m],type:f,rules:[{conditions:q,type:f,rules:[{conditions:q,endpoint:{url:"https://drs-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]},{conditions:q,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:r,type:f,rules:[{conditions:[n],type:f,rules:[{conditions:q,endpoint:{url:"https://drs.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:q,endpoint:{url:"https://drs.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-dynamodb-streams/src/endpoint/ruleset.ts b/clients/client-dynamodb-streams/src/endpoint/ruleset.ts index a51de07f85528..966ddf830bd03 100644 --- a/clients/client-dynamodb-streams/src/endpoint/ruleset.ts +++ b/clients/client-dynamodb-streams/src/endpoint/ruleset.ts @@ -1,369 +1,35 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: true, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://streams.dynamodb-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "stringEquals", - argv: [ - "aws-us-gov", - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "name", - ], - }, - ], - }, - ], - endpoint: { - url: "https://streams.dynamodb.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - { - conditions: [], - endpoint: { - url: "https://streams.dynamodb-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://streams.dynamodb.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "stringEquals", - argv: [ - { - ref: "Region", - }, - "local", - ], - }, - ], - endpoint: { - url: "http://localhost:8000", - properties: { - authSchemes: [ - { - name: "sigv4", - signingRegion: "us-east-1", - signingName: "dynamodb", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - { - conditions: [], - endpoint: { - url: "https://streams.dynamodb.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/dynamodb-streams.json */ + +const w="fn", +x="argv", +y="ref"; +const a=true, +b=false, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i="getAttr", +j="stringEquals", +k={[y]:"Region"}, +l={[y]:"Endpoint"}, +m={[w]:"booleanEquals",[x]:[{[y]:"UseFIPS"},true]}, +n={[w]:"booleanEquals",[x]:[{[y]:"UseDualStack"},true]}, +o={}, +p={[w]:"booleanEquals",[x]:[true,{[w]:i,[x]:[{[y]:e},"supportsFIPS"]}]}, +q={[y]:e}, +r={[w]:"booleanEquals",[x]:[true,{[w]:i,[x]:[q,"supportsDualStack"]}]}, +s={"url":"https://streams.dynamodb.{Region}.{PartitionResult#dnsSuffix}","properties":{},"headers":{}}, +t=[m], +u=[], +v=[n]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:a,default:b,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:a,default:b,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:b,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[w]:"aws.partition",[x]:[k],assign:e}],type:f,rules:[{conditions:[{[w]:"isSet",[x]:[l]}],type:f,rules:[{conditions:t,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:u,type:f,rules:[{conditions:v,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:u,endpoint:{url:l,properties:o,headers:o},type:h}]}]},{conditions:[m,n],type:f,rules:[{conditions:[p,r],type:f,rules:[{conditions:u,endpoint:{url:"https://streams.dynamodb-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:o,headers:o},type:h}]},{conditions:u,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:t,type:f,rules:[{conditions:[p],type:f,rules:[{conditions:u,type:f,rules:[{conditions:[{[w]:j,[x]:["aws-us-gov",{[w]:i,[x]:[q,"name"]}]}],endpoint:s,type:h},{conditions:u,endpoint:{url:"https://streams.dynamodb-fips.{Region}.{PartitionResult#dnsSuffix}",properties:o,headers:o},type:h}]}]},{conditions:u,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:v,type:f,rules:[{conditions:[r],type:f,rules:[{conditions:u,endpoint:{url:"https://streams.dynamodb.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:o,headers:o},type:h}]},{conditions:u,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:u,type:f,rules:[{conditions:[{[w]:j,[x]:[k,"local"]}],endpoint:{url:"http://localhost:8000",properties:{authSchemes:[{name:"sigv4",signingRegion:"us-east-1",signingName:"dynamodb"}]},headers:o},type:h},{conditions:u,endpoint:s,type:h}]}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-dynamodb/src/endpoint/ruleset.ts b/clients/client-dynamodb/src/endpoint/ruleset.ts index 70ecd94d73559..6ee43aad8584b 100644 --- a/clients/client-dynamodb/src/endpoint/ruleset.ts +++ b/clients/client-dynamodb/src/endpoint/ruleset.ts @@ -1,369 +1,35 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: true, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://dynamodb-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "stringEquals", - argv: [ - "aws-us-gov", - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "name", - ], - }, - ], - }, - ], - endpoint: { - url: "https://dynamodb.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - { - conditions: [], - endpoint: { - url: "https://dynamodb-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://dynamodb.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "stringEquals", - argv: [ - { - ref: "Region", - }, - "local", - ], - }, - ], - endpoint: { - url: "http://localhost:8000", - properties: { - authSchemes: [ - { - name: "sigv4", - signingRegion: "us-east-1", - signingName: "dynamodb", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - { - conditions: [], - endpoint: { - url: "https://dynamodb.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/dynamodb.json */ + +const w="fn", +x="argv", +y="ref"; +const a=true, +b=false, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i="getAttr", +j="stringEquals", +k={[y]:"Region"}, +l={[y]:"Endpoint"}, +m={[w]:"booleanEquals",[x]:[{[y]:"UseFIPS"},true]}, +n={[w]:"booleanEquals",[x]:[{[y]:"UseDualStack"},true]}, +o={}, +p={[w]:"booleanEquals",[x]:[true,{[w]:i,[x]:[{[y]:e},"supportsFIPS"]}]}, +q={[y]:e}, +r={[w]:"booleanEquals",[x]:[true,{[w]:i,[x]:[q,"supportsDualStack"]}]}, +s={"url":"https://dynamodb.{Region}.{PartitionResult#dnsSuffix}","properties":{},"headers":{}}, +t=[m], +u=[], +v=[n]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:a,default:b,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:a,default:b,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:b,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[w]:"aws.partition",[x]:[k],assign:e}],type:f,rules:[{conditions:[{[w]:"isSet",[x]:[l]}],type:f,rules:[{conditions:t,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:u,type:f,rules:[{conditions:v,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:u,endpoint:{url:l,properties:o,headers:o},type:h}]}]},{conditions:[m,n],type:f,rules:[{conditions:[p,r],type:f,rules:[{conditions:u,endpoint:{url:"https://dynamodb-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:o,headers:o},type:h}]},{conditions:u,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:t,type:f,rules:[{conditions:[p],type:f,rules:[{conditions:u,type:f,rules:[{conditions:[{[w]:j,[x]:["aws-us-gov",{[w]:i,[x]:[q,"name"]}]}],endpoint:s,type:h},{conditions:u,endpoint:{url:"https://dynamodb-fips.{Region}.{PartitionResult#dnsSuffix}",properties:o,headers:o},type:h}]}]},{conditions:u,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:v,type:f,rules:[{conditions:[r],type:f,rules:[{conditions:u,endpoint:{url:"https://dynamodb.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:o,headers:o},type:h}]},{conditions:u,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:u,type:f,rules:[{conditions:[{[w]:j,[x]:[k,"local"]}],endpoint:{url:"http://localhost:8000",properties:{authSchemes:[{name:"sigv4",signingRegion:"us-east-1",signingName:"dynamodb"}]},headers:o},type:h},{conditions:u,endpoint:s,type:h}]}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-ebs/src/endpoint/ruleset.ts b/clients/client-ebs/src/endpoint/ruleset.ts index 60f085e1abde6..afe6d75933c6d 100644 --- a/clients/client-ebs/src/endpoint/ruleset.ts +++ b/clients/client-ebs/src/endpoint/ruleset.ts @@ -1,320 +1,31 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: false, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://ebs-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://ebs-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://ebs.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://ebs.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/ebs.json */ + +const s="fn", +t="argv", +u="ref"; +const a=false, +b=true, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i={[u]:"Endpoint"}, +j={[s]:"booleanEquals",[t]:[{[u]:"UseFIPS"},true]}, +k={[s]:"booleanEquals",[t]:[{[u]:"UseDualStack"},true]}, +l={}, +m={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsFIPS"]}]}, +n={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsDualStack"]}]}, +o=[i], +p=[j], +q=[], +r=[k]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:b,default:a,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:b,default:a,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:a,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[s]:"aws.partition",[t]:[{[u]:"Region"}],assign:e}],type:f,rules:[{conditions:[{[s]:"isSet",[t]:o},{[s]:"parseURL",[t]:o,assign:"url"}],type:f,rules:[{conditions:p,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:q,type:f,rules:[{conditions:r,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:q,endpoint:{url:i,properties:l,headers:l},type:h}]}]},{conditions:[j,k],type:f,rules:[{conditions:[m,n],type:f,rules:[{conditions:q,endpoint:{url:"https://ebs-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:p,type:f,rules:[{conditions:[m],type:f,rules:[{conditions:q,type:f,rules:[{conditions:q,endpoint:{url:"https://ebs-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]},{conditions:q,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:r,type:f,rules:[{conditions:[n],type:f,rules:[{conditions:q,endpoint:{url:"https://ebs.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:q,endpoint:{url:"https://ebs.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-ec2-instance-connect/src/endpoint/ruleset.ts b/clients/client-ec2-instance-connect/src/endpoint/ruleset.ts index b24253e5be3cd..820e1f6dc5b29 100644 --- a/clients/client-ec2-instance-connect/src/endpoint/ruleset.ts +++ b/clients/client-ec2-instance-connect/src/endpoint/ruleset.ts @@ -1,314 +1,31 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: false, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://ec2-instance-connect-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://ec2-instance-connect-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://ec2-instance-connect.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://ec2-instance-connect.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/ec2-instance-connect.json */ + +const s="fn", +t="argv", +u="ref"; +const a=false, +b=true, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i={[u]:"Endpoint"}, +j={[s]:"booleanEquals",[t]:[{[u]:"UseFIPS"},true]}, +k={[s]:"booleanEquals",[t]:[{[u]:"UseDualStack"},true]}, +l={}, +m={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsFIPS"]}]}, +n={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsDualStack"]}]}, +o=[i], +p=[j], +q=[], +r=[k]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:b,default:a,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:b,default:a,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:a,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[s]:"aws.partition",[t]:[{[u]:"Region"}],assign:e}],type:f,rules:[{conditions:[{[s]:"isSet",[t]:o},{[s]:"parseURL",[t]:o,assign:"url"}],type:f,rules:[{conditions:p,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:q,type:f,rules:[{conditions:r,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:q,endpoint:{url:i,properties:l,headers:l},type:h}]}]},{conditions:[j,k],type:f,rules:[{conditions:[m,n],type:f,rules:[{conditions:q,endpoint:{url:"https://ec2-instance-connect-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:p,type:f,rules:[{conditions:[m],type:f,rules:[{conditions:q,endpoint:{url:"https://ec2-instance-connect-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:r,type:f,rules:[{conditions:[n],type:f,rules:[{conditions:q,endpoint:{url:"https://ec2-instance-connect.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:q,endpoint:{url:"https://ec2-instance-connect.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-ec2/src/endpoint/ruleset.ts b/clients/client-ec2/src/endpoint/ruleset.ts index 8feb7009262bc..22566b624dcd4 100644 --- a/clients/client-ec2/src/endpoint/ruleset.ts +++ b/clients/client-ec2/src/endpoint/ruleset.ts @@ -1,336 +1,33 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: true, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://ec2-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "stringEquals", - argv: [ - "aws-us-gov", - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "name", - ], - }, - ], - }, - ], - endpoint: { - url: "https://ec2.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - { - conditions: [], - endpoint: { - url: "https://ec2-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://ec2.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://ec2.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/ec2.json */ + +const u="fn", +v="argv", +w="ref"; +const a=true, +b=false, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i="getAttr", +j={[w]:"Endpoint"}, +k={[u]:"booleanEquals",[v]:[{[w]:"UseFIPS"},true]}, +l={[u]:"booleanEquals",[v]:[{[w]:"UseDualStack"},true]}, +m={}, +n={[u]:"booleanEquals",[v]:[true,{[u]:i,[v]:[{[w]:e},"supportsFIPS"]}]}, +o={[w]:e}, +p={[u]:"booleanEquals",[v]:[true,{[u]:i,[v]:[o,"supportsDualStack"]}]}, +q={"url":"https://ec2.{Region}.{PartitionResult#dnsSuffix}","properties":{},"headers":{}}, +r=[k], +s=[], +t=[l]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:a,default:b,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:a,default:b,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:b,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[u]:"aws.partition",[v]:[{[w]:"Region"}],assign:e}],type:f,rules:[{conditions:[{[u]:"isSet",[v]:[j]}],type:f,rules:[{conditions:r,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:s,type:f,rules:[{conditions:t,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:s,endpoint:{url:j,properties:m,headers:m},type:h}]}]},{conditions:[k,l],type:f,rules:[{conditions:[n,p],type:f,rules:[{conditions:s,endpoint:{url:"https://ec2-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:m,headers:m},type:h}]},{conditions:s,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:r,type:f,rules:[{conditions:[n],type:f,rules:[{conditions:s,type:f,rules:[{conditions:[{[u]:"stringEquals",[v]:["aws-us-gov",{[u]:i,[v]:[o,"name"]}]}],endpoint:q,type:h},{conditions:s,endpoint:{url:"https://ec2-fips.{Region}.{PartitionResult#dnsSuffix}",properties:m,headers:m},type:h}]}]},{conditions:s,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:t,type:f,rules:[{conditions:[p],type:f,rules:[{conditions:s,endpoint:{url:"https://ec2.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:m,headers:m},type:h}]},{conditions:s,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:s,endpoint:q,type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-ecr-public/src/endpoint/ruleset.ts b/clients/client-ecr-public/src/endpoint/ruleset.ts index a1c2b906530a8..2fa9fc0b0a270 100644 --- a/clients/client-ecr-public/src/endpoint/ruleset.ts +++ b/clients/client-ecr-public/src/endpoint/ruleset.ts @@ -1,314 +1,31 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: false, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://api.ecr-public-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://api.ecr-public-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://api.ecr-public.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://api.ecr-public.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/ecr-public.json */ + +const s="fn", +t="argv", +u="ref"; +const a=false, +b=true, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i={[u]:"Endpoint"}, +j={[s]:"booleanEquals",[t]:[{[u]:"UseFIPS"},true]}, +k={[s]:"booleanEquals",[t]:[{[u]:"UseDualStack"},true]}, +l={}, +m={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsFIPS"]}]}, +n={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsDualStack"]}]}, +o=[i], +p=[j], +q=[], +r=[k]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:b,default:a,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:b,default:a,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:a,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[s]:"aws.partition",[t]:[{[u]:"Region"}],assign:e}],type:f,rules:[{conditions:[{[s]:"isSet",[t]:o},{[s]:"parseURL",[t]:o,assign:"url"}],type:f,rules:[{conditions:p,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:q,type:f,rules:[{conditions:r,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:q,endpoint:{url:i,properties:l,headers:l},type:h}]}]},{conditions:[j,k],type:f,rules:[{conditions:[m,n],type:f,rules:[{conditions:q,endpoint:{url:"https://api.ecr-public-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:p,type:f,rules:[{conditions:[m],type:f,rules:[{conditions:q,endpoint:{url:"https://api.ecr-public-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:r,type:f,rules:[{conditions:[n],type:f,rules:[{conditions:q,endpoint:{url:"https://api.ecr-public.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:q,endpoint:{url:"https://api.ecr-public.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-ecr/src/endpoint/ruleset.ts b/clients/client-ecr/src/endpoint/ruleset.ts index 4a5a5456ddd0f..484b5c54c664c 100644 --- a/clients/client-ecr/src/endpoint/ruleset.ts +++ b/clients/client-ecr/src/endpoint/ruleset.ts @@ -1,484 +1,35 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: false, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://api.ecr-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "stringEquals", - argv: [ - { - ref: "Region", - }, - "dkr-us-east-2", - ], - }, - ], - endpoint: { - url: "https://ecr-fips.us-east-2.amazonaws.com", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - { - conditions: [ - { - fn: "stringEquals", - argv: [ - { - ref: "Region", - }, - "dkr-us-east-1", - ], - }, - ], - endpoint: { - url: "https://ecr-fips.us-east-1.amazonaws.com", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - { - conditions: [ - { - fn: "stringEquals", - argv: [ - { - ref: "Region", - }, - "dkr-us-west-2", - ], - }, - ], - endpoint: { - url: "https://ecr-fips.us-west-2.amazonaws.com", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - { - conditions: [ - { - fn: "stringEquals", - argv: [ - { - ref: "Region", - }, - "dkr-us-west-1", - ], - }, - ], - endpoint: { - url: "https://ecr-fips.us-west-1.amazonaws.com", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - { - conditions: [ - { - fn: "stringEquals", - argv: [ - "aws", - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "name", - ], - }, - ], - }, - ], - endpoint: { - url: "https://ecr-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - { - conditions: [ - { - fn: "stringEquals", - argv: [ - { - ref: "Region", - }, - "dkr-us-gov-east-1", - ], - }, - ], - endpoint: { - url: "https://ecr-fips.us-gov-east-1.amazonaws.com", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - { - conditions: [ - { - fn: "stringEquals", - argv: [ - { - ref: "Region", - }, - "dkr-us-gov-west-1", - ], - }, - ], - endpoint: { - url: "https://ecr-fips.us-gov-west-1.amazonaws.com", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - { - conditions: [ - { - fn: "stringEquals", - argv: [ - "aws-us-gov", - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "name", - ], - }, - ], - }, - ], - endpoint: { - url: "https://ecr-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - { - conditions: [], - endpoint: { - url: "https://api.ecr-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://api.ecr.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://api.ecr.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/ecr.json */ + +const w="fn", +x="argv", +y="ref"; +const a=false, +b=true, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i="stringEquals", +j={[y]:"Region"}, +k={[y]:"Endpoint"}, +l={[w]:"booleanEquals",[x]:[{[y]:"UseFIPS"},true]}, +m={[w]:"booleanEquals",[x]:[{[y]:"UseDualStack"},true]}, +n={}, +o={[w]:"booleanEquals",[x]:[true,{[w]:"getAttr",[x]:[{[y]:e},"supportsFIPS"]}]}, +p={[w]:"booleanEquals",[x]:[true,{[w]:"getAttr",[x]:[{[y]:e},"supportsDualStack"]}]}, +q={[w]:"getAttr",[x]:[{[y]:e},"name"]}, +r={"url":"https://ecr-fips.{Region}.{PartitionResult#dnsSuffix}","properties":{},"headers":{}}, +s=[k], +t=[l], +u=[], +v=[m]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:b,default:a,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:b,default:a,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:a,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[w]:"aws.partition",[x]:[j],assign:e}],type:f,rules:[{conditions:[{[w]:"isSet",[x]:s},{[w]:"parseURL",[x]:s,assign:"url"}],type:f,rules:[{conditions:t,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:u,type:f,rules:[{conditions:v,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:u,endpoint:{url:k,properties:n,headers:n},type:h}]}]},{conditions:[l,m],type:f,rules:[{conditions:[o,p],type:f,rules:[{conditions:u,endpoint:{url:"https://api.ecr-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:n,headers:n},type:h}]},{conditions:u,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:t,type:f,rules:[{conditions:[o],type:f,rules:[{conditions:u,type:f,rules:[{conditions:[{[w]:i,[x]:[j,"dkr-us-east-2"]}],endpoint:{url:"https://ecr-fips.us-east-2.amazonaws.com",properties:n,headers:n},type:h},{conditions:[{[w]:i,[x]:[j,"dkr-us-east-1"]}],endpoint:{url:"https://ecr-fips.us-east-1.amazonaws.com",properties:n,headers:n},type:h},{conditions:[{[w]:i,[x]:[j,"dkr-us-west-2"]}],endpoint:{url:"https://ecr-fips.us-west-2.amazonaws.com",properties:n,headers:n},type:h},{conditions:[{[w]:i,[x]:[j,"dkr-us-west-1"]}],endpoint:{url:"https://ecr-fips.us-west-1.amazonaws.com",properties:n,headers:n},type:h},{conditions:[{[w]:i,[x]:["aws",q]}],endpoint:r,type:h},{conditions:[{[w]:i,[x]:[j,"dkr-us-gov-east-1"]}],endpoint:{url:"https://ecr-fips.us-gov-east-1.amazonaws.com",properties:n,headers:n},type:h},{conditions:[{[w]:i,[x]:[j,"dkr-us-gov-west-1"]}],endpoint:{url:"https://ecr-fips.us-gov-west-1.amazonaws.com",properties:n,headers:n},type:h},{conditions:[{[w]:i,[x]:["aws-us-gov",q]}],endpoint:r,type:h},{conditions:u,endpoint:{url:"https://api.ecr-fips.{Region}.{PartitionResult#dnsSuffix}",properties:n,headers:n},type:h}]}]},{conditions:u,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:v,type:f,rules:[{conditions:[p],type:f,rules:[{conditions:u,endpoint:{url:"https://api.ecr.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:n,headers:n},type:h}]},{conditions:u,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:u,endpoint:{url:"https://api.ecr.{Region}.{PartitionResult#dnsSuffix}",properties:n,headers:n},type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-ecs/src/endpoint/ruleset.ts b/clients/client-ecs/src/endpoint/ruleset.ts index 5f66d043c9825..8edb348e2f8e4 100644 --- a/clients/client-ecs/src/endpoint/ruleset.ts +++ b/clients/client-ecs/src/endpoint/ruleset.ts @@ -1,311 +1,30 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: true, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://ecs-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://ecs-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://ecs.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://ecs.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/ecs.json */ + +const r="fn", +s="argv", +t="ref"; +const a=true, +b=false, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i={[t]:"Endpoint"}, +j={[r]:"booleanEquals",[s]:[{[t]:"UseFIPS"},true]}, +k={[r]:"booleanEquals",[s]:[{[t]:"UseDualStack"},true]}, +l={}, +m={[r]:"booleanEquals",[s]:[true,{[r]:"getAttr",[s]:[{[t]:e},"supportsFIPS"]}]}, +n={[r]:"booleanEquals",[s]:[true,{[r]:"getAttr",[s]:[{[t]:e},"supportsDualStack"]}]}, +o=[j], +p=[], +q=[k]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:a,default:b,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:a,default:b,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:b,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[r]:"aws.partition",[s]:[{[t]:"Region"}],assign:e}],type:f,rules:[{conditions:[{[r]:"isSet",[s]:[i]}],type:f,rules:[{conditions:o,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:p,type:f,rules:[{conditions:q,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:p,endpoint:{url:i,properties:l,headers:l},type:h}]}]},{conditions:[j,k],type:f,rules:[{conditions:[m,n],type:f,rules:[{conditions:p,endpoint:{url:"https://ecs-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:p,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:o,type:f,rules:[{conditions:[m],type:f,rules:[{conditions:p,type:f,rules:[{conditions:p,endpoint:{url:"https://ecs-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]},{conditions:p,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:q,type:f,rules:[{conditions:[n],type:f,rules:[{conditions:p,endpoint:{url:"https://ecs.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:p,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:p,endpoint:{url:"https://ecs.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-efs/src/endpoint/ruleset.ts b/clients/client-efs/src/endpoint/ruleset.ts index ff1c4061a535a..6fbf5533b5479 100644 --- a/clients/client-efs/src/endpoint/ruleset.ts +++ b/clients/client-efs/src/endpoint/ruleset.ts @@ -1,311 +1,30 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: true, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://elasticfilesystem-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://elasticfilesystem-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://elasticfilesystem.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://elasticfilesystem.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/efs.json */ + +const r="fn", +s="argv", +t="ref"; +const a=true, +b=false, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i={[t]:"Endpoint"}, +j={[r]:"booleanEquals",[s]:[{[t]:"UseFIPS"},true]}, +k={[r]:"booleanEquals",[s]:[{[t]:"UseDualStack"},true]}, +l={}, +m={[r]:"booleanEquals",[s]:[true,{[r]:"getAttr",[s]:[{[t]:e},"supportsFIPS"]}]}, +n={[r]:"booleanEquals",[s]:[true,{[r]:"getAttr",[s]:[{[t]:e},"supportsDualStack"]}]}, +o=[j], +p=[], +q=[k]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:a,default:b,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:a,default:b,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:b,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[r]:"aws.partition",[s]:[{[t]:"Region"}],assign:e}],type:f,rules:[{conditions:[{[r]:"isSet",[s]:[i]}],type:f,rules:[{conditions:o,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:p,type:f,rules:[{conditions:q,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:p,endpoint:{url:i,properties:l,headers:l},type:h}]}]},{conditions:[j,k],type:f,rules:[{conditions:[m,n],type:f,rules:[{conditions:p,endpoint:{url:"https://elasticfilesystem-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:p,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:o,type:f,rules:[{conditions:[m],type:f,rules:[{conditions:p,type:f,rules:[{conditions:p,endpoint:{url:"https://elasticfilesystem-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]},{conditions:p,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:q,type:f,rules:[{conditions:[n],type:f,rules:[{conditions:p,endpoint:{url:"https://elasticfilesystem.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:p,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:p,endpoint:{url:"https://elasticfilesystem.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-eks/src/endpoint/ruleset.ts b/clients/client-eks/src/endpoint/ruleset.ts index b2214181ebdba..ad4e792ddc0c6 100644 --- a/clients/client-eks/src/endpoint/ruleset.ts +++ b/clients/client-eks/src/endpoint/ruleset.ts @@ -1,361 +1,33 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: true, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://eks-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "stringEquals", - argv: [ - "aws", - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "name", - ], - }, - ], - }, - ], - endpoint: { - url: "https://fips.eks.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - { - conditions: [ - { - fn: "stringEquals", - argv: [ - "aws-us-gov", - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "name", - ], - }, - ], - }, - ], - endpoint: { - url: "https://eks.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - { - conditions: [], - endpoint: { - url: "https://eks-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://eks.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://eks.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/eks.json */ + +const u="fn", +v="argv", +w="ref"; +const a=true, +b=false, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i="stringEquals", +j={[w]:"Endpoint"}, +k={[u]:"booleanEquals",[v]:[{[w]:"UseFIPS"},true]}, +l={[u]:"booleanEquals",[v]:[{[w]:"UseDualStack"},true]}, +m={}, +n={[u]:"booleanEquals",[v]:[true,{[u]:"getAttr",[v]:[{[w]:e},"supportsFIPS"]}]}, +o={[u]:"booleanEquals",[v]:[true,{[u]:"getAttr",[v]:[{[w]:e},"supportsDualStack"]}]}, +p={[u]:"getAttr",[v]:[{[w]:e},"name"]}, +q={"url":"https://eks.{Region}.{PartitionResult#dnsSuffix}","properties":{},"headers":{}}, +r=[k], +s=[], +t=[l]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:a,default:b,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:a,default:b,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:b,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[u]:"aws.partition",[v]:[{[w]:"Region"}],assign:e}],type:f,rules:[{conditions:[{[u]:"isSet",[v]:[j]}],type:f,rules:[{conditions:r,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:s,type:f,rules:[{conditions:t,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:s,endpoint:{url:j,properties:m,headers:m},type:h}]}]},{conditions:[k,l],type:f,rules:[{conditions:[n,o],type:f,rules:[{conditions:s,endpoint:{url:"https://eks-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:m,headers:m},type:h}]},{conditions:s,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:r,type:f,rules:[{conditions:[n],type:f,rules:[{conditions:s,type:f,rules:[{conditions:[{[u]:i,[v]:["aws",p]}],endpoint:{url:"https://fips.eks.{Region}.{PartitionResult#dnsSuffix}",properties:m,headers:m},type:h},{conditions:[{[u]:i,[v]:["aws-us-gov",p]}],endpoint:q,type:h},{conditions:s,endpoint:{url:"https://eks-fips.{Region}.{PartitionResult#dnsSuffix}",properties:m,headers:m},type:h}]}]},{conditions:s,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:t,type:f,rules:[{conditions:[o],type:f,rules:[{conditions:s,endpoint:{url:"https://eks.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:m,headers:m},type:h}]},{conditions:s,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:s,endpoint:q,type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-elastic-beanstalk/src/endpoint/ruleset.ts b/clients/client-elastic-beanstalk/src/endpoint/ruleset.ts index 7d87fc1a8619a..637dc269cc57a 100644 --- a/clients/client-elastic-beanstalk/src/endpoint/ruleset.ts +++ b/clients/client-elastic-beanstalk/src/endpoint/ruleset.ts @@ -1,320 +1,31 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: false, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://elasticbeanstalk-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://elasticbeanstalk-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://elasticbeanstalk.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://elasticbeanstalk.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/elastic-beanstalk.json */ + +const s="fn", +t="argv", +u="ref"; +const a=false, +b=true, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i={[u]:"Endpoint"}, +j={[s]:"booleanEquals",[t]:[{[u]:"UseFIPS"},true]}, +k={[s]:"booleanEquals",[t]:[{[u]:"UseDualStack"},true]}, +l={}, +m={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsFIPS"]}]}, +n={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsDualStack"]}]}, +o=[i], +p=[j], +q=[], +r=[k]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:b,default:a,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:b,default:a,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:a,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[s]:"aws.partition",[t]:[{[u]:"Region"}],assign:e}],type:f,rules:[{conditions:[{[s]:"isSet",[t]:o},{[s]:"parseURL",[t]:o,assign:"url"}],type:f,rules:[{conditions:p,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:q,type:f,rules:[{conditions:r,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:q,endpoint:{url:i,properties:l,headers:l},type:h}]}]},{conditions:[j,k],type:f,rules:[{conditions:[m,n],type:f,rules:[{conditions:q,endpoint:{url:"https://elasticbeanstalk-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:p,type:f,rules:[{conditions:[m],type:f,rules:[{conditions:q,type:f,rules:[{conditions:q,endpoint:{url:"https://elasticbeanstalk-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]},{conditions:q,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:r,type:f,rules:[{conditions:[n],type:f,rules:[{conditions:q,endpoint:{url:"https://elasticbeanstalk.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:q,endpoint:{url:"https://elasticbeanstalk.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-elastic-inference/src/endpoint/ruleset.ts b/clients/client-elastic-inference/src/endpoint/ruleset.ts index fb4613206237a..4a4624b7352cb 100644 --- a/clients/client-elastic-inference/src/endpoint/ruleset.ts +++ b/clients/client-elastic-inference/src/endpoint/ruleset.ts @@ -1,320 +1,31 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: false, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://api.elastic-inference-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://api.elastic-inference-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://api.elastic-inference.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://api.elastic-inference.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/elastic-inference.json */ + +const s="fn", +t="argv", +u="ref"; +const a=false, +b=true, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i={[u]:"Endpoint"}, +j={[s]:"booleanEquals",[t]:[{[u]:"UseFIPS"},true]}, +k={[s]:"booleanEquals",[t]:[{[u]:"UseDualStack"},true]}, +l={}, +m={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsFIPS"]}]}, +n={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsDualStack"]}]}, +o=[i], +p=[j], +q=[], +r=[k]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:b,default:a,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:b,default:a,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:a,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[s]:"aws.partition",[t]:[{[u]:"Region"}],assign:e}],type:f,rules:[{conditions:[{[s]:"isSet",[t]:o},{[s]:"parseURL",[t]:o,assign:"url"}],type:f,rules:[{conditions:p,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:q,type:f,rules:[{conditions:r,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:q,endpoint:{url:i,properties:l,headers:l},type:h}]}]},{conditions:[j,k],type:f,rules:[{conditions:[m,n],type:f,rules:[{conditions:q,endpoint:{url:"https://api.elastic-inference-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:p,type:f,rules:[{conditions:[m],type:f,rules:[{conditions:q,type:f,rules:[{conditions:q,endpoint:{url:"https://api.elastic-inference-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]},{conditions:q,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:r,type:f,rules:[{conditions:[n],type:f,rules:[{conditions:q,endpoint:{url:"https://api.elastic-inference.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:q,endpoint:{url:"https://api.elastic-inference.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-elastic-load-balancing-v2/src/endpoint/ruleset.ts b/clients/client-elastic-load-balancing-v2/src/endpoint/ruleset.ts index 1eca80ace6286..e3172b33a410d 100644 --- a/clients/client-elastic-load-balancing-v2/src/endpoint/ruleset.ts +++ b/clients/client-elastic-load-balancing-v2/src/endpoint/ruleset.ts @@ -1,345 +1,34 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: false, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://elasticloadbalancing-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "stringEquals", - argv: [ - "aws-us-gov", - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "name", - ], - }, - ], - }, - ], - endpoint: { - url: "https://elasticloadbalancing.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - { - conditions: [], - endpoint: { - url: "https://elasticloadbalancing-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://elasticloadbalancing.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://elasticloadbalancing.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/elastic-load-balancing-v2.json */ + +const v="fn", +w="argv", +x="ref"; +const a=false, +b=true, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i="getAttr", +j={[x]:"Endpoint"}, +k={[v]:"booleanEquals",[w]:[{[x]:"UseFIPS"},true]}, +l={[v]:"booleanEquals",[w]:[{[x]:"UseDualStack"},true]}, +m={}, +n={[v]:"booleanEquals",[w]:[true,{[v]:i,[w]:[{[x]:e},"supportsFIPS"]}]}, +o={[x]:e}, +p={[v]:"booleanEquals",[w]:[true,{[v]:i,[w]:[o,"supportsDualStack"]}]}, +q={"url":"https://elasticloadbalancing.{Region}.{PartitionResult#dnsSuffix}","properties":{},"headers":{}}, +r=[j], +s=[k], +t=[], +u=[l]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:b,default:a,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:b,default:a,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:a,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[v]:"aws.partition",[w]:[{[x]:"Region"}],assign:e}],type:f,rules:[{conditions:[{[v]:"isSet",[w]:r},{[v]:"parseURL",[w]:r,assign:"url"}],type:f,rules:[{conditions:s,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:t,type:f,rules:[{conditions:u,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:t,endpoint:{url:j,properties:m,headers:m},type:h}]}]},{conditions:[k,l],type:f,rules:[{conditions:[n,p],type:f,rules:[{conditions:t,endpoint:{url:"https://elasticloadbalancing-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:m,headers:m},type:h}]},{conditions:t,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:s,type:f,rules:[{conditions:[n],type:f,rules:[{conditions:t,type:f,rules:[{conditions:[{[v]:"stringEquals",[w]:["aws-us-gov",{[v]:i,[w]:[o,"name"]}]}],endpoint:q,type:h},{conditions:t,endpoint:{url:"https://elasticloadbalancing-fips.{Region}.{PartitionResult#dnsSuffix}",properties:m,headers:m},type:h}]}]},{conditions:t,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:u,type:f,rules:[{conditions:[p],type:f,rules:[{conditions:t,endpoint:{url:"https://elasticloadbalancing.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:m,headers:m},type:h}]},{conditions:t,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:t,endpoint:q,type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-elastic-load-balancing/src/endpoint/ruleset.ts b/clients/client-elastic-load-balancing/src/endpoint/ruleset.ts index 1eca80ace6286..e4eda713709c1 100644 --- a/clients/client-elastic-load-balancing/src/endpoint/ruleset.ts +++ b/clients/client-elastic-load-balancing/src/endpoint/ruleset.ts @@ -1,345 +1,34 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: false, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://elasticloadbalancing-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "stringEquals", - argv: [ - "aws-us-gov", - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "name", - ], - }, - ], - }, - ], - endpoint: { - url: "https://elasticloadbalancing.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - { - conditions: [], - endpoint: { - url: "https://elasticloadbalancing-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://elasticloadbalancing.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://elasticloadbalancing.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/elastic-load-balancing.json */ + +const v="fn", +w="argv", +x="ref"; +const a=false, +b=true, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i="getAttr", +j={[x]:"Endpoint"}, +k={[v]:"booleanEquals",[w]:[{[x]:"UseFIPS"},true]}, +l={[v]:"booleanEquals",[w]:[{[x]:"UseDualStack"},true]}, +m={}, +n={[v]:"booleanEquals",[w]:[true,{[v]:i,[w]:[{[x]:e},"supportsFIPS"]}]}, +o={[x]:e}, +p={[v]:"booleanEquals",[w]:[true,{[v]:i,[w]:[o,"supportsDualStack"]}]}, +q={"url":"https://elasticloadbalancing.{Region}.{PartitionResult#dnsSuffix}","properties":{},"headers":{}}, +r=[j], +s=[k], +t=[], +u=[l]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:b,default:a,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:b,default:a,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:a,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[v]:"aws.partition",[w]:[{[x]:"Region"}],assign:e}],type:f,rules:[{conditions:[{[v]:"isSet",[w]:r},{[v]:"parseURL",[w]:r,assign:"url"}],type:f,rules:[{conditions:s,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:t,type:f,rules:[{conditions:u,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:t,endpoint:{url:j,properties:m,headers:m},type:h}]}]},{conditions:[k,l],type:f,rules:[{conditions:[n,p],type:f,rules:[{conditions:t,endpoint:{url:"https://elasticloadbalancing-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:m,headers:m},type:h}]},{conditions:t,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:s,type:f,rules:[{conditions:[n],type:f,rules:[{conditions:t,type:f,rules:[{conditions:[{[v]:"stringEquals",[w]:["aws-us-gov",{[v]:i,[w]:[o,"name"]}]}],endpoint:q,type:h},{conditions:t,endpoint:{url:"https://elasticloadbalancing-fips.{Region}.{PartitionResult#dnsSuffix}",properties:m,headers:m},type:h}]}]},{conditions:t,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:u,type:f,rules:[{conditions:[p],type:f,rules:[{conditions:t,endpoint:{url:"https://elasticloadbalancing.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:m,headers:m},type:h}]},{conditions:t,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:t,endpoint:q,type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-elastic-transcoder/src/endpoint/ruleset.ts b/clients/client-elastic-transcoder/src/endpoint/ruleset.ts index 06a8e514e631d..789528ec65bf6 100644 --- a/clients/client-elastic-transcoder/src/endpoint/ruleset.ts +++ b/clients/client-elastic-transcoder/src/endpoint/ruleset.ts @@ -1,320 +1,31 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: false, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://elastictranscoder-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://elastictranscoder-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://elastictranscoder.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://elastictranscoder.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/elastic-transcoder.json */ + +const s="fn", +t="argv", +u="ref"; +const a=false, +b=true, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i={[u]:"Endpoint"}, +j={[s]:"booleanEquals",[t]:[{[u]:"UseFIPS"},true]}, +k={[s]:"booleanEquals",[t]:[{[u]:"UseDualStack"},true]}, +l={}, +m={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsFIPS"]}]}, +n={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsDualStack"]}]}, +o=[i], +p=[j], +q=[], +r=[k]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:b,default:a,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:b,default:a,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:a,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[s]:"aws.partition",[t]:[{[u]:"Region"}],assign:e}],type:f,rules:[{conditions:[{[s]:"isSet",[t]:o},{[s]:"parseURL",[t]:o,assign:"url"}],type:f,rules:[{conditions:p,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:q,type:f,rules:[{conditions:r,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:q,endpoint:{url:i,properties:l,headers:l},type:h}]}]},{conditions:[j,k],type:f,rules:[{conditions:[m,n],type:f,rules:[{conditions:q,endpoint:{url:"https://elastictranscoder-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:p,type:f,rules:[{conditions:[m],type:f,rules:[{conditions:q,type:f,rules:[{conditions:q,endpoint:{url:"https://elastictranscoder-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]},{conditions:q,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:r,type:f,rules:[{conditions:[n],type:f,rules:[{conditions:q,endpoint:{url:"https://elastictranscoder.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:q,endpoint:{url:"https://elastictranscoder.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-elasticache/src/endpoint/ruleset.ts b/clients/client-elasticache/src/endpoint/ruleset.ts index 0e129ca3a8ade..11ee4ee572793 100644 --- a/clients/client-elasticache/src/endpoint/ruleset.ts +++ b/clients/client-elasticache/src/endpoint/ruleset.ts @@ -1,345 +1,34 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: false, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://elasticache-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "stringEquals", - argv: [ - "aws-us-gov", - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "name", - ], - }, - ], - }, - ], - endpoint: { - url: "https://elasticache.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - { - conditions: [], - endpoint: { - url: "https://elasticache-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://elasticache.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://elasticache.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/elasticache.json */ + +const v="fn", +w="argv", +x="ref"; +const a=false, +b=true, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i="getAttr", +j={[x]:"Endpoint"}, +k={[v]:"booleanEquals",[w]:[{[x]:"UseFIPS"},true]}, +l={[v]:"booleanEquals",[w]:[{[x]:"UseDualStack"},true]}, +m={}, +n={[v]:"booleanEquals",[w]:[true,{[v]:i,[w]:[{[x]:e},"supportsFIPS"]}]}, +o={[x]:e}, +p={[v]:"booleanEquals",[w]:[true,{[v]:i,[w]:[o,"supportsDualStack"]}]}, +q={"url":"https://elasticache.{Region}.{PartitionResult#dnsSuffix}","properties":{},"headers":{}}, +r=[j], +s=[k], +t=[], +u=[l]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:b,default:a,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:b,default:a,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:a,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[v]:"aws.partition",[w]:[{[x]:"Region"}],assign:e}],type:f,rules:[{conditions:[{[v]:"isSet",[w]:r},{[v]:"parseURL",[w]:r,assign:"url"}],type:f,rules:[{conditions:s,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:t,type:f,rules:[{conditions:u,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:t,endpoint:{url:j,properties:m,headers:m},type:h}]}]},{conditions:[k,l],type:f,rules:[{conditions:[n,p],type:f,rules:[{conditions:t,endpoint:{url:"https://elasticache-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:m,headers:m},type:h}]},{conditions:t,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:s,type:f,rules:[{conditions:[n],type:f,rules:[{conditions:t,type:f,rules:[{conditions:[{[v]:"stringEquals",[w]:["aws-us-gov",{[v]:i,[w]:[o,"name"]}]}],endpoint:q,type:h},{conditions:t,endpoint:{url:"https://elasticache-fips.{Region}.{PartitionResult#dnsSuffix}",properties:m,headers:m},type:h}]}]},{conditions:t,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:u,type:f,rules:[{conditions:[p],type:f,rules:[{conditions:t,endpoint:{url:"https://elasticache.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:m,headers:m},type:h}]},{conditions:t,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:t,endpoint:q,type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-elasticsearch-service/src/endpoint/ruleset.ts b/clients/client-elasticsearch-service/src/endpoint/ruleset.ts index 438460bbcfd53..d6fb5b4287e6d 100644 --- a/clients/client-elasticsearch-service/src/endpoint/ruleset.ts +++ b/clients/client-elasticsearch-service/src/endpoint/ruleset.ts @@ -1,320 +1,31 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: false, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://es-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://es-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://es.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://es.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/elasticsearch-service.json */ + +const s="fn", +t="argv", +u="ref"; +const a=false, +b=true, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i={[u]:"Endpoint"}, +j={[s]:"booleanEquals",[t]:[{[u]:"UseFIPS"},true]}, +k={[s]:"booleanEquals",[t]:[{[u]:"UseDualStack"},true]}, +l={}, +m={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsFIPS"]}]}, +n={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsDualStack"]}]}, +o=[i], +p=[j], +q=[], +r=[k]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:b,default:a,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:b,default:a,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:a,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[s]:"aws.partition",[t]:[{[u]:"Region"}],assign:e}],type:f,rules:[{conditions:[{[s]:"isSet",[t]:o},{[s]:"parseURL",[t]:o,assign:"url"}],type:f,rules:[{conditions:p,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:q,type:f,rules:[{conditions:r,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:q,endpoint:{url:i,properties:l,headers:l},type:h}]}]},{conditions:[j,k],type:f,rules:[{conditions:[m,n],type:f,rules:[{conditions:q,endpoint:{url:"https://es-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:p,type:f,rules:[{conditions:[m],type:f,rules:[{conditions:q,type:f,rules:[{conditions:q,endpoint:{url:"https://es-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]},{conditions:q,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:r,type:f,rules:[{conditions:[n],type:f,rules:[{conditions:q,endpoint:{url:"https://es.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:q,endpoint:{url:"https://es.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-emr-containers/src/endpoint/ruleset.ts b/clients/client-emr-containers/src/endpoint/ruleset.ts index e98f748bce907..9d84433c12bd9 100644 --- a/clients/client-emr-containers/src/endpoint/ruleset.ts +++ b/clients/client-emr-containers/src/endpoint/ruleset.ts @@ -1,320 +1,31 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: false, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://emr-containers-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://emr-containers-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://emr-containers.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://emr-containers.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/emr-containers.json */ + +const s="fn", +t="argv", +u="ref"; +const a=false, +b=true, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i={[u]:"Endpoint"}, +j={[s]:"booleanEquals",[t]:[{[u]:"UseFIPS"},true]}, +k={[s]:"booleanEquals",[t]:[{[u]:"UseDualStack"},true]}, +l={}, +m={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsFIPS"]}]}, +n={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsDualStack"]}]}, +o=[i], +p=[j], +q=[], +r=[k]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:b,default:a,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:b,default:a,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:a,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[s]:"aws.partition",[t]:[{[u]:"Region"}],assign:e}],type:f,rules:[{conditions:[{[s]:"isSet",[t]:o},{[s]:"parseURL",[t]:o,assign:"url"}],type:f,rules:[{conditions:p,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:q,type:f,rules:[{conditions:r,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:q,endpoint:{url:i,properties:l,headers:l},type:h}]}]},{conditions:[j,k],type:f,rules:[{conditions:[m,n],type:f,rules:[{conditions:q,endpoint:{url:"https://emr-containers-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:p,type:f,rules:[{conditions:[m],type:f,rules:[{conditions:q,type:f,rules:[{conditions:q,endpoint:{url:"https://emr-containers-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]},{conditions:q,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:r,type:f,rules:[{conditions:[n],type:f,rules:[{conditions:q,endpoint:{url:"https://emr-containers.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:q,endpoint:{url:"https://emr-containers.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-emr-serverless/src/endpoint/ruleset.ts b/clients/client-emr-serverless/src/endpoint/ruleset.ts index 3e40c6db4e67e..c52161856fefa 100644 --- a/clients/client-emr-serverless/src/endpoint/ruleset.ts +++ b/clients/client-emr-serverless/src/endpoint/ruleset.ts @@ -1,320 +1,31 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: false, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://emr-serverless-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://emr-serverless-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://emr-serverless.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://emr-serverless.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/emr-serverless.json */ + +const s="fn", +t="argv", +u="ref"; +const a=false, +b=true, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i={[u]:"Endpoint"}, +j={[s]:"booleanEquals",[t]:[{[u]:"UseFIPS"},true]}, +k={[s]:"booleanEquals",[t]:[{[u]:"UseDualStack"},true]}, +l={}, +m={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsFIPS"]}]}, +n={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsDualStack"]}]}, +o=[i], +p=[j], +q=[], +r=[k]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:b,default:a,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:b,default:a,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:a,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[s]:"aws.partition",[t]:[{[u]:"Region"}],assign:e}],type:f,rules:[{conditions:[{[s]:"isSet",[t]:o},{[s]:"parseURL",[t]:o,assign:"url"}],type:f,rules:[{conditions:p,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:q,type:f,rules:[{conditions:r,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:q,endpoint:{url:i,properties:l,headers:l},type:h}]}]},{conditions:[j,k],type:f,rules:[{conditions:[m,n],type:f,rules:[{conditions:q,endpoint:{url:"https://emr-serverless-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:p,type:f,rules:[{conditions:[m],type:f,rules:[{conditions:q,type:f,rules:[{conditions:q,endpoint:{url:"https://emr-serverless-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]},{conditions:q,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:r,type:f,rules:[{conditions:[n],type:f,rules:[{conditions:q,endpoint:{url:"https://emr-serverless.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:q,endpoint:{url:"https://emr-serverless.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-emr/src/endpoint/ruleset.ts b/clients/client-emr/src/endpoint/ruleset.ts index 0917fae164083..aea69a4d7a8e4 100644 --- a/clients/client-emr/src/endpoint/ruleset.ts +++ b/clients/client-emr/src/endpoint/ruleset.ts @@ -1,345 +1,34 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: false, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://elasticmapreduce-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "stringEquals", - argv: [ - "aws-us-gov", - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "name", - ], - }, - ], - }, - ], - endpoint: { - url: "https://elasticmapreduce.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - { - conditions: [], - endpoint: { - url: "https://elasticmapreduce-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://elasticmapreduce.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://elasticmapreduce.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/emr.json */ + +const v="fn", +w="argv", +x="ref"; +const a=false, +b=true, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i="getAttr", +j={[x]:"Endpoint"}, +k={[v]:"booleanEquals",[w]:[{[x]:"UseFIPS"},true]}, +l={[v]:"booleanEquals",[w]:[{[x]:"UseDualStack"},true]}, +m={}, +n={[v]:"booleanEquals",[w]:[true,{[v]:i,[w]:[{[x]:e},"supportsFIPS"]}]}, +o={[x]:e}, +p={[v]:"booleanEquals",[w]:[true,{[v]:i,[w]:[o,"supportsDualStack"]}]}, +q={"url":"https://elasticmapreduce.{Region}.{PartitionResult#dnsSuffix}","properties":{},"headers":{}}, +r=[j], +s=[k], +t=[], +u=[l]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:b,default:a,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:b,default:a,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:a,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[v]:"aws.partition",[w]:[{[x]:"Region"}],assign:e}],type:f,rules:[{conditions:[{[v]:"isSet",[w]:r},{[v]:"parseURL",[w]:r,assign:"url"}],type:f,rules:[{conditions:s,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:t,type:f,rules:[{conditions:u,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:t,endpoint:{url:j,properties:m,headers:m},type:h}]}]},{conditions:[k,l],type:f,rules:[{conditions:[n,p],type:f,rules:[{conditions:t,endpoint:{url:"https://elasticmapreduce-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:m,headers:m},type:h}]},{conditions:t,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:s,type:f,rules:[{conditions:[n],type:f,rules:[{conditions:t,type:f,rules:[{conditions:[{[v]:"stringEquals",[w]:["aws-us-gov",{[v]:i,[w]:[o,"name"]}]}],endpoint:q,type:h},{conditions:t,endpoint:{url:"https://elasticmapreduce-fips.{Region}.{PartitionResult#dnsSuffix}",properties:m,headers:m},type:h}]}]},{conditions:t,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:u,type:f,rules:[{conditions:[p],type:f,rules:[{conditions:t,endpoint:{url:"https://elasticmapreduce.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:m,headers:m},type:h}]},{conditions:t,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:t,endpoint:q,type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-eventbridge/src/endpoint/ruleset.ts b/clients/client-eventbridge/src/endpoint/ruleset.ts index 636d391db537c..6089d659858b2 100644 --- a/clients/client-eventbridge/src/endpoint/ruleset.ts +++ b/clients/client-eventbridge/src/endpoint/ruleset.ts @@ -1,537 +1,41 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: false, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - EndpointId: { - required: false, - documentation: "Operation parameter for EndpointId", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "EndpointId", - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isValidHostLabel", - argv: [ - { - ref: "EndpointId", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - false, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - ], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: { - authSchemes: [ - { - name: "sigv4a", - signingRegionSet: ["*"], - signingName: "events", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://{EndpointId}.endpoint.events.{PartitionResult#dualStackDnsSuffix}", - properties: { - authSchemes: [ - { - name: "sigv4a", - signingRegionSet: ["*"], - signingName: "events", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://{EndpointId}.endpoint.events.{PartitionResult#dnsSuffix}", - properties: { - authSchemes: [ - { - name: "sigv4a", - signingRegionSet: ["*"], - signingName: "events", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [], - error: "Invalid Configuration: FIPS is not supported with EventBridge multi-region endpoints.", - type: "error", - }, - ], - }, - ], - }, - { - conditions: [], - error: "EndpointId must be a valid host label.", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://events-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "stringEquals", - argv: [ - { - ref: "Region", - }, - "us-gov-west-1", - ], - }, - ], - endpoint: { - url: "https://events.us-gov-west-1.amazonaws.com", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - { - conditions: [ - { - fn: "stringEquals", - argv: [ - { - ref: "Region", - }, - "us-gov-east-1", - ], - }, - ], - endpoint: { - url: "https://events.us-gov-east-1.amazonaws.com", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - { - conditions: [], - endpoint: { - url: "https://events-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://events.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://events.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/eventbridge.json */ + +const C="fn", +D="argv", +E="ref"; +const a=false, +b=true, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="isSet", +h="booleanEquals", +i="endpoint", +j="error", +k="stringEquals", +l={[E]:"Region"}, +m={[E]:"EndpointId"}, +n={[E]:"UseFIPS"}, +o={[C]:g,[D]:[{[E]:"Endpoint"}]}, +p={[E]:"Endpoint"}, +q={"authSchemes":[{"name":"sigv4a","signingRegionSet":["*"],"signingName":"events"}]}, +r={}, +s={[C]:h,[D]:[{[E]:"UseDualStack"},true]}, +t={[C]:h,[D]:[true,{[C]:"getAttr",[D]:[{[E]:e},"supportsDualStack"]}]}, +u={"conditions":[],[j]:"DualStack is enabled but this partition does not support DualStack","type":j}, +v={[C]:h,[D]:[n,true]}, +w={[C]:h,[D]:[true,{[C]:"getAttr",[D]:[{[E]:e},"supportsFIPS"]}]}, +x=[], +y=[p], +z=[s], +A=[t], +B=[v]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:b,default:a,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:b,default:a,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:a,documentation:"Override the endpoint used to send this request",type:c},EndpointId:{required:a,documentation:"Operation parameter for EndpointId",type:c}},rules:[{conditions:[{[C]:"aws.partition",[D]:[l],assign:e}],type:f,rules:[{conditions:[{[C]:g,[D]:[m]}],type:f,rules:[{conditions:[{[C]:"isValidHostLabel",[D]:[m,b]}],type:f,rules:[{conditions:x,type:f,rules:[{conditions:[{[C]:h,[D]:[n,a]}],type:f,rules:[{conditions:x,type:f,rules:[{conditions:[o],endpoint:{url:p,properties:q,headers:r},type:i},{conditions:z,type:f,rules:[{conditions:A,type:f,rules:[{conditions:x,endpoint:{url:"https://{EndpointId}.endpoint.events.{PartitionResult#dualStackDnsSuffix}",properties:q,headers:r},type:i}]},u]},{conditions:x,endpoint:{url:"https://{EndpointId}.endpoint.events.{PartitionResult#dnsSuffix}",properties:q,headers:r},type:i}]}]},{conditions:x,error:"Invalid Configuration: FIPS is not supported with EventBridge multi-region endpoints.",type:j}]}]},{conditions:x,error:"EndpointId must be a valid host label.",type:j}]},{conditions:[o,{[C]:"parseURL",[D]:y,assign:"url"}],type:f,rules:[{conditions:B,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:j},{conditions:x,type:f,rules:[{conditions:z,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:j},{conditions:x,endpoint:{url:p,properties:r,headers:r},type:i}]}]},{conditions:[v,s],type:f,rules:[{conditions:[w,t],type:f,rules:[{conditions:x,endpoint:{url:"https://events-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:r,headers:r},type:i}]},{conditions:x,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:j}]},{conditions:B,type:f,rules:[{conditions:[w],type:f,rules:[{conditions:x,type:f,rules:[{conditions:[{[C]:k,[D]:[l,"us-gov-west-1"]}],endpoint:{url:"https://events.us-gov-west-1.amazonaws.com",properties:r,headers:r},type:i},{conditions:[{[C]:k,[D]:[l,"us-gov-east-1"]}],endpoint:{url:"https://events.us-gov-east-1.amazonaws.com",properties:r,headers:r},type:i},{conditions:x,endpoint:{url:"https://events-fips.{Region}.{PartitionResult#dnsSuffix}",properties:r,headers:r},type:i}]}]},{conditions:x,error:"FIPS is enabled but this partition does not support FIPS",type:j}]},{conditions:z,type:f,rules:[{conditions:A,type:f,rules:[{conditions:x,endpoint:{url:"https://events.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:r,headers:r},type:i}]},u]},{conditions:x,endpoint:{url:"https://events.{Region}.{PartitionResult#dnsSuffix}",properties:r,headers:r},type:i}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-evidently/src/endpoint/ruleset.ts b/clients/client-evidently/src/endpoint/ruleset.ts index 02ec5bd6ece75..898ddd3394a8d 100644 --- a/clients/client-evidently/src/endpoint/ruleset.ts +++ b/clients/client-evidently/src/endpoint/ruleset.ts @@ -1,320 +1,31 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: false, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://evidently-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://evidently-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://evidently.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://evidently.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/evidently.json */ + +const s="fn", +t="argv", +u="ref"; +const a=false, +b=true, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i={[u]:"Endpoint"}, +j={[s]:"booleanEquals",[t]:[{[u]:"UseFIPS"},true]}, +k={[s]:"booleanEquals",[t]:[{[u]:"UseDualStack"},true]}, +l={}, +m={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsFIPS"]}]}, +n={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsDualStack"]}]}, +o=[i], +p=[j], +q=[], +r=[k]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:b,default:a,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:b,default:a,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:a,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[s]:"aws.partition",[t]:[{[u]:"Region"}],assign:e}],type:f,rules:[{conditions:[{[s]:"isSet",[t]:o},{[s]:"parseURL",[t]:o,assign:"url"}],type:f,rules:[{conditions:p,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:q,type:f,rules:[{conditions:r,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:q,endpoint:{url:i,properties:l,headers:l},type:h}]}]},{conditions:[j,k],type:f,rules:[{conditions:[m,n],type:f,rules:[{conditions:q,endpoint:{url:"https://evidently-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:p,type:f,rules:[{conditions:[m],type:f,rules:[{conditions:q,type:f,rules:[{conditions:q,endpoint:{url:"https://evidently-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]},{conditions:q,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:r,type:f,rules:[{conditions:[n],type:f,rules:[{conditions:q,endpoint:{url:"https://evidently.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:q,endpoint:{url:"https://evidently.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-finspace-data/src/endpoint/ruleset.ts b/clients/client-finspace-data/src/endpoint/ruleset.ts index 1a6a3f7a734e1..ee5411a31634a 100644 --- a/clients/client-finspace-data/src/endpoint/ruleset.ts +++ b/clients/client-finspace-data/src/endpoint/ruleset.ts @@ -1,320 +1,31 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: false, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://finspace-api-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://finspace-api-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://finspace-api.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://finspace-api.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/finspace-data.json */ + +const s="fn", +t="argv", +u="ref"; +const a=false, +b=true, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i={[u]:"Endpoint"}, +j={[s]:"booleanEquals",[t]:[{[u]:"UseFIPS"},true]}, +k={[s]:"booleanEquals",[t]:[{[u]:"UseDualStack"},true]}, +l={}, +m={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsFIPS"]}]}, +n={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsDualStack"]}]}, +o=[i], +p=[j], +q=[], +r=[k]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:b,default:a,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:b,default:a,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:a,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[s]:"aws.partition",[t]:[{[u]:"Region"}],assign:e}],type:f,rules:[{conditions:[{[s]:"isSet",[t]:o},{[s]:"parseURL",[t]:o,assign:"url"}],type:f,rules:[{conditions:p,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:q,type:f,rules:[{conditions:r,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:q,endpoint:{url:i,properties:l,headers:l},type:h}]}]},{conditions:[j,k],type:f,rules:[{conditions:[m,n],type:f,rules:[{conditions:q,endpoint:{url:"https://finspace-api-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:p,type:f,rules:[{conditions:[m],type:f,rules:[{conditions:q,type:f,rules:[{conditions:q,endpoint:{url:"https://finspace-api-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]},{conditions:q,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:r,type:f,rules:[{conditions:[n],type:f,rules:[{conditions:q,endpoint:{url:"https://finspace-api.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:q,endpoint:{url:"https://finspace-api.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-finspace/src/endpoint/ruleset.ts b/clients/client-finspace/src/endpoint/ruleset.ts index 7bae4173a297f..bae17b8062437 100644 --- a/clients/client-finspace/src/endpoint/ruleset.ts +++ b/clients/client-finspace/src/endpoint/ruleset.ts @@ -1,320 +1,31 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: false, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://finspace-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://finspace-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://finspace.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://finspace.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/finspace.json */ + +const s="fn", +t="argv", +u="ref"; +const a=false, +b=true, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i={[u]:"Endpoint"}, +j={[s]:"booleanEquals",[t]:[{[u]:"UseFIPS"},true]}, +k={[s]:"booleanEquals",[t]:[{[u]:"UseDualStack"},true]}, +l={}, +m={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsFIPS"]}]}, +n={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsDualStack"]}]}, +o=[i], +p=[j], +q=[], +r=[k]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:b,default:a,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:b,default:a,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:a,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[s]:"aws.partition",[t]:[{[u]:"Region"}],assign:e}],type:f,rules:[{conditions:[{[s]:"isSet",[t]:o},{[s]:"parseURL",[t]:o,assign:"url"}],type:f,rules:[{conditions:p,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:q,type:f,rules:[{conditions:r,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:q,endpoint:{url:i,properties:l,headers:l},type:h}]}]},{conditions:[j,k],type:f,rules:[{conditions:[m,n],type:f,rules:[{conditions:q,endpoint:{url:"https://finspace-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:p,type:f,rules:[{conditions:[m],type:f,rules:[{conditions:q,type:f,rules:[{conditions:q,endpoint:{url:"https://finspace-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]},{conditions:q,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:r,type:f,rules:[{conditions:[n],type:f,rules:[{conditions:q,endpoint:{url:"https://finspace.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:q,endpoint:{url:"https://finspace.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-firehose/src/endpoint/ruleset.ts b/clients/client-firehose/src/endpoint/ruleset.ts index 2d89b0eb893fb..48d52bd4ce762 100644 --- a/clients/client-firehose/src/endpoint/ruleset.ts +++ b/clients/client-firehose/src/endpoint/ruleset.ts @@ -1,320 +1,31 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: false, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://firehose-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://firehose-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://firehose.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://firehose.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/firehose.json */ + +const s="fn", +t="argv", +u="ref"; +const a=false, +b=true, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i={[u]:"Endpoint"}, +j={[s]:"booleanEquals",[t]:[{[u]:"UseFIPS"},true]}, +k={[s]:"booleanEquals",[t]:[{[u]:"UseDualStack"},true]}, +l={}, +m={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsFIPS"]}]}, +n={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsDualStack"]}]}, +o=[i], +p=[j], +q=[], +r=[k]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:b,default:a,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:b,default:a,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:a,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[s]:"aws.partition",[t]:[{[u]:"Region"}],assign:e}],type:f,rules:[{conditions:[{[s]:"isSet",[t]:o},{[s]:"parseURL",[t]:o,assign:"url"}],type:f,rules:[{conditions:p,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:q,type:f,rules:[{conditions:r,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:q,endpoint:{url:i,properties:l,headers:l},type:h}]}]},{conditions:[j,k],type:f,rules:[{conditions:[m,n],type:f,rules:[{conditions:q,endpoint:{url:"https://firehose-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:p,type:f,rules:[{conditions:[m],type:f,rules:[{conditions:q,type:f,rules:[{conditions:q,endpoint:{url:"https://firehose-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]},{conditions:q,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:r,type:f,rules:[{conditions:[n],type:f,rules:[{conditions:q,endpoint:{url:"https://firehose.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:q,endpoint:{url:"https://firehose.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-fis/src/endpoint/ruleset.ts b/clients/client-fis/src/endpoint/ruleset.ts index e534298d07355..341528b2afc59 100644 --- a/clients/client-fis/src/endpoint/ruleset.ts +++ b/clients/client-fis/src/endpoint/ruleset.ts @@ -1,314 +1,31 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: false, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://fis-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://fis-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://fis.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://fis.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/fis.json */ + +const s="fn", +t="argv", +u="ref"; +const a=false, +b=true, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i={[u]:"Endpoint"}, +j={[s]:"booleanEquals",[t]:[{[u]:"UseFIPS"},true]}, +k={[s]:"booleanEquals",[t]:[{[u]:"UseDualStack"},true]}, +l={}, +m={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsFIPS"]}]}, +n={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsDualStack"]}]}, +o=[i], +p=[j], +q=[], +r=[k]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:b,default:a,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:b,default:a,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:a,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[s]:"aws.partition",[t]:[{[u]:"Region"}],assign:e}],type:f,rules:[{conditions:[{[s]:"isSet",[t]:o},{[s]:"parseURL",[t]:o,assign:"url"}],type:f,rules:[{conditions:p,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:q,type:f,rules:[{conditions:r,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:q,endpoint:{url:i,properties:l,headers:l},type:h}]}]},{conditions:[j,k],type:f,rules:[{conditions:[m,n],type:f,rules:[{conditions:q,endpoint:{url:"https://fis-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:p,type:f,rules:[{conditions:[m],type:f,rules:[{conditions:q,endpoint:{url:"https://fis-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:r,type:f,rules:[{conditions:[n],type:f,rules:[{conditions:q,endpoint:{url:"https://fis.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:q,endpoint:{url:"https://fis.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-fms/src/endpoint/ruleset.ts b/clients/client-fms/src/endpoint/ruleset.ts index bbb403c4e9fd4..ab46a3c88971a 100644 --- a/clients/client-fms/src/endpoint/ruleset.ts +++ b/clients/client-fms/src/endpoint/ruleset.ts @@ -1,311 +1,30 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: true, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://fms-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://fms-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://fms.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://fms.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/fms.json */ + +const r="fn", +s="argv", +t="ref"; +const a=true, +b=false, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i={[t]:"Endpoint"}, +j={[r]:"booleanEquals",[s]:[{[t]:"UseFIPS"},true]}, +k={[r]:"booleanEquals",[s]:[{[t]:"UseDualStack"},true]}, +l={}, +m={[r]:"booleanEquals",[s]:[true,{[r]:"getAttr",[s]:[{[t]:e},"supportsFIPS"]}]}, +n={[r]:"booleanEquals",[s]:[true,{[r]:"getAttr",[s]:[{[t]:e},"supportsDualStack"]}]}, +o=[j], +p=[], +q=[k]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:a,default:b,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:a,default:b,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:b,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[r]:"aws.partition",[s]:[{[t]:"Region"}],assign:e}],type:f,rules:[{conditions:[{[r]:"isSet",[s]:[i]}],type:f,rules:[{conditions:o,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:p,type:f,rules:[{conditions:q,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:p,endpoint:{url:i,properties:l,headers:l},type:h}]}]},{conditions:[j,k],type:f,rules:[{conditions:[m,n],type:f,rules:[{conditions:p,endpoint:{url:"https://fms-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:p,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:o,type:f,rules:[{conditions:[m],type:f,rules:[{conditions:p,type:f,rules:[{conditions:p,endpoint:{url:"https://fms-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]},{conditions:p,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:q,type:f,rules:[{conditions:[n],type:f,rules:[{conditions:p,endpoint:{url:"https://fms.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:p,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:p,endpoint:{url:"https://fms.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-forecast/src/endpoint/ruleset.ts b/clients/client-forecast/src/endpoint/ruleset.ts index 84476dfa4915d..e2bc886aa96ae 100644 --- a/clients/client-forecast/src/endpoint/ruleset.ts +++ b/clients/client-forecast/src/endpoint/ruleset.ts @@ -1,320 +1,31 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: false, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://forecast-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://forecast-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://forecast.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://forecast.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/forecast.json */ + +const s="fn", +t="argv", +u="ref"; +const a=false, +b=true, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i={[u]:"Endpoint"}, +j={[s]:"booleanEquals",[t]:[{[u]:"UseFIPS"},true]}, +k={[s]:"booleanEquals",[t]:[{[u]:"UseDualStack"},true]}, +l={}, +m={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsFIPS"]}]}, +n={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsDualStack"]}]}, +o=[i], +p=[j], +q=[], +r=[k]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:b,default:a,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:b,default:a,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:a,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[s]:"aws.partition",[t]:[{[u]:"Region"}],assign:e}],type:f,rules:[{conditions:[{[s]:"isSet",[t]:o},{[s]:"parseURL",[t]:o,assign:"url"}],type:f,rules:[{conditions:p,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:q,type:f,rules:[{conditions:r,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:q,endpoint:{url:i,properties:l,headers:l},type:h}]}]},{conditions:[j,k],type:f,rules:[{conditions:[m,n],type:f,rules:[{conditions:q,endpoint:{url:"https://forecast-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:p,type:f,rules:[{conditions:[m],type:f,rules:[{conditions:q,type:f,rules:[{conditions:q,endpoint:{url:"https://forecast-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]},{conditions:q,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:r,type:f,rules:[{conditions:[n],type:f,rules:[{conditions:q,endpoint:{url:"https://forecast.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:q,endpoint:{url:"https://forecast.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-forecastquery/src/endpoint/ruleset.ts b/clients/client-forecastquery/src/endpoint/ruleset.ts index 0910fc75cb3df..8bf28175d893d 100644 --- a/clients/client-forecastquery/src/endpoint/ruleset.ts +++ b/clients/client-forecastquery/src/endpoint/ruleset.ts @@ -1,320 +1,31 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: false, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://forecastquery-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://forecastquery-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://forecastquery.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://forecastquery.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/forecastquery.json */ + +const s="fn", +t="argv", +u="ref"; +const a=false, +b=true, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i={[u]:"Endpoint"}, +j={[s]:"booleanEquals",[t]:[{[u]:"UseFIPS"},true]}, +k={[s]:"booleanEquals",[t]:[{[u]:"UseDualStack"},true]}, +l={}, +m={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsFIPS"]}]}, +n={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsDualStack"]}]}, +o=[i], +p=[j], +q=[], +r=[k]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:b,default:a,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:b,default:a,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:a,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[s]:"aws.partition",[t]:[{[u]:"Region"}],assign:e}],type:f,rules:[{conditions:[{[s]:"isSet",[t]:o},{[s]:"parseURL",[t]:o,assign:"url"}],type:f,rules:[{conditions:p,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:q,type:f,rules:[{conditions:r,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:q,endpoint:{url:i,properties:l,headers:l},type:h}]}]},{conditions:[j,k],type:f,rules:[{conditions:[m,n],type:f,rules:[{conditions:q,endpoint:{url:"https://forecastquery-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:p,type:f,rules:[{conditions:[m],type:f,rules:[{conditions:q,type:f,rules:[{conditions:q,endpoint:{url:"https://forecastquery-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]},{conditions:q,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:r,type:f,rules:[{conditions:[n],type:f,rules:[{conditions:q,endpoint:{url:"https://forecastquery.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:q,endpoint:{url:"https://forecastquery.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-frauddetector/src/endpoint/ruleset.ts b/clients/client-frauddetector/src/endpoint/ruleset.ts index 5caa7589f2a8e..86fd3d898f35b 100644 --- a/clients/client-frauddetector/src/endpoint/ruleset.ts +++ b/clients/client-frauddetector/src/endpoint/ruleset.ts @@ -1,320 +1,31 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: true, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://frauddetector-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://frauddetector-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://frauddetector.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://frauddetector.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/frauddetector.json */ + +const s="fn", +t="argv", +u="ref"; +const a=true, +b=false, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i={[u]:"Endpoint"}, +j={[s]:"booleanEquals",[t]:[{[u]:"UseFIPS"},true]}, +k={[s]:"booleanEquals",[t]:[{[u]:"UseDualStack"},true]}, +l={}, +m={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsFIPS"]}]}, +n={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsDualStack"]}]}, +o=[i], +p=[j], +q=[], +r=[k]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:a,default:b,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:a,default:b,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:b,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[s]:"aws.partition",[t]:[{[u]:"Region"}],assign:e}],type:f,rules:[{conditions:[{[s]:"isSet",[t]:o},{[s]:"parseURL",[t]:o,assign:"url"}],type:f,rules:[{conditions:p,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:q,type:f,rules:[{conditions:r,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:q,endpoint:{url:i,properties:l,headers:l},type:h}]}]},{conditions:[j,k],type:f,rules:[{conditions:[m,n],type:f,rules:[{conditions:q,endpoint:{url:"https://frauddetector-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:p,type:f,rules:[{conditions:[m],type:f,rules:[{conditions:q,type:f,rules:[{conditions:q,endpoint:{url:"https://frauddetector-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]},{conditions:q,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:r,type:f,rules:[{conditions:[n],type:f,rules:[{conditions:q,endpoint:{url:"https://frauddetector.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:q,endpoint:{url:"https://frauddetector.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-fsx/src/endpoint/ruleset.ts b/clients/client-fsx/src/endpoint/ruleset.ts index 974a46e720a69..7109a62d64de8 100644 --- a/clients/client-fsx/src/endpoint/ruleset.ts +++ b/clients/client-fsx/src/endpoint/ruleset.ts @@ -1,453 +1,33 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: true, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://fsx-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "stringEquals", - argv: [ - { - ref: "Region", - }, - "prod-ca-central-1", - ], - }, - ], - endpoint: { - url: "https://fsx-fips.ca-central-1.amazonaws.com", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - { - conditions: [ - { - fn: "stringEquals", - argv: [ - { - ref: "Region", - }, - "prod-us-east-1", - ], - }, - ], - endpoint: { - url: "https://fsx-fips.us-east-1.amazonaws.com", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - { - conditions: [ - { - fn: "stringEquals", - argv: [ - { - ref: "Region", - }, - "prod-us-east-2", - ], - }, - ], - endpoint: { - url: "https://fsx-fips.us-east-2.amazonaws.com", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - { - conditions: [ - { - fn: "stringEquals", - argv: [ - { - ref: "Region", - }, - "prod-us-west-1", - ], - }, - ], - endpoint: { - url: "https://fsx-fips.us-west-1.amazonaws.com", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - { - conditions: [ - { - fn: "stringEquals", - argv: [ - { - ref: "Region", - }, - "prod-us-west-2", - ], - }, - ], - endpoint: { - url: "https://fsx-fips.us-west-2.amazonaws.com", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - { - conditions: [ - { - fn: "stringEquals", - argv: [ - { - ref: "Region", - }, - "prod-us-gov-east-1", - ], - }, - ], - endpoint: { - url: "https://fsx-fips.us-gov-east-1.amazonaws.com", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - { - conditions: [ - { - fn: "stringEquals", - argv: [ - { - ref: "Region", - }, - "prod-us-gov-west-1", - ], - }, - ], - endpoint: { - url: "https://fsx-fips.us-gov-west-1.amazonaws.com", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - { - conditions: [], - endpoint: { - url: "https://fsx-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://fsx.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://fsx.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/fsx.json */ + +const u="fn", +v="argv", +w="ref"; +const a=true, +b=false, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i="stringEquals", +j={[w]:"Region"}, +k={[w]:"Endpoint"}, +l={[u]:"booleanEquals",[v]:[{[w]:"UseFIPS"},true]}, +m={[u]:"booleanEquals",[v]:[{[w]:"UseDualStack"},true]}, +n={}, +o={[u]:"booleanEquals",[v]:[true,{[u]:"getAttr",[v]:[{[w]:e},"supportsFIPS"]}]}, +p={[u]:"booleanEquals",[v]:[true,{[u]:"getAttr",[v]:[{[w]:e},"supportsDualStack"]}]}, +q=[k], +r=[l], +s=[], +t=[m]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:a,default:b,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:a,default:b,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:b,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[u]:"aws.partition",[v]:[j],assign:e}],type:f,rules:[{conditions:[{[u]:"isSet",[v]:q},{[u]:"parseURL",[v]:q,assign:"url"}],type:f,rules:[{conditions:r,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:s,type:f,rules:[{conditions:t,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:s,endpoint:{url:k,properties:n,headers:n},type:h}]}]},{conditions:[l,m],type:f,rules:[{conditions:[o,p],type:f,rules:[{conditions:s,endpoint:{url:"https://fsx-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:n,headers:n},type:h}]},{conditions:s,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:r,type:f,rules:[{conditions:[o],type:f,rules:[{conditions:s,type:f,rules:[{conditions:[{[u]:i,[v]:[j,"prod-ca-central-1"]}],endpoint:{url:"https://fsx-fips.ca-central-1.amazonaws.com",properties:n,headers:n},type:h},{conditions:[{[u]:i,[v]:[j,"prod-us-east-1"]}],endpoint:{url:"https://fsx-fips.us-east-1.amazonaws.com",properties:n,headers:n},type:h},{conditions:[{[u]:i,[v]:[j,"prod-us-east-2"]}],endpoint:{url:"https://fsx-fips.us-east-2.amazonaws.com",properties:n,headers:n},type:h},{conditions:[{[u]:i,[v]:[j,"prod-us-west-1"]}],endpoint:{url:"https://fsx-fips.us-west-1.amazonaws.com",properties:n,headers:n},type:h},{conditions:[{[u]:i,[v]:[j,"prod-us-west-2"]}],endpoint:{url:"https://fsx-fips.us-west-2.amazonaws.com",properties:n,headers:n},type:h},{conditions:[{[u]:i,[v]:[j,"prod-us-gov-east-1"]}],endpoint:{url:"https://fsx-fips.us-gov-east-1.amazonaws.com",properties:n,headers:n},type:h},{conditions:[{[u]:i,[v]:[j,"prod-us-gov-west-1"]}],endpoint:{url:"https://fsx-fips.us-gov-west-1.amazonaws.com",properties:n,headers:n},type:h},{conditions:s,endpoint:{url:"https://fsx-fips.{Region}.{PartitionResult#dnsSuffix}",properties:n,headers:n},type:h}]}]},{conditions:s,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:t,type:f,rules:[{conditions:[p],type:f,rules:[{conditions:s,endpoint:{url:"https://fsx.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:n,headers:n},type:h}]},{conditions:s,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:s,endpoint:{url:"https://fsx.{Region}.{PartitionResult#dnsSuffix}",properties:n,headers:n},type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-gamelift/src/endpoint/ruleset.ts b/clients/client-gamelift/src/endpoint/ruleset.ts index 1882a78bb4e86..ebd59e328bb74 100644 --- a/clients/client-gamelift/src/endpoint/ruleset.ts +++ b/clients/client-gamelift/src/endpoint/ruleset.ts @@ -1,320 +1,31 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: true, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://gamelift-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://gamelift-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://gamelift.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://gamelift.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/gamelift.json */ + +const s="fn", +t="argv", +u="ref"; +const a=true, +b=false, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i={[u]:"Endpoint"}, +j={[s]:"booleanEquals",[t]:[{[u]:"UseFIPS"},true]}, +k={[s]:"booleanEquals",[t]:[{[u]:"UseDualStack"},true]}, +l={}, +m={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsFIPS"]}]}, +n={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsDualStack"]}]}, +o=[i], +p=[j], +q=[], +r=[k]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:a,default:b,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:a,default:b,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:b,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[s]:"aws.partition",[t]:[{[u]:"Region"}],assign:e}],type:f,rules:[{conditions:[{[s]:"isSet",[t]:o},{[s]:"parseURL",[t]:o,assign:"url"}],type:f,rules:[{conditions:p,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:q,type:f,rules:[{conditions:r,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:q,endpoint:{url:i,properties:l,headers:l},type:h}]}]},{conditions:[j,k],type:f,rules:[{conditions:[m,n],type:f,rules:[{conditions:q,endpoint:{url:"https://gamelift-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:p,type:f,rules:[{conditions:[m],type:f,rules:[{conditions:q,type:f,rules:[{conditions:q,endpoint:{url:"https://gamelift-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]},{conditions:q,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:r,type:f,rules:[{conditions:[n],type:f,rules:[{conditions:q,endpoint:{url:"https://gamelift.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:q,endpoint:{url:"https://gamelift.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-gamesparks/src/endpoint/ruleset.ts b/clients/client-gamesparks/src/endpoint/ruleset.ts index 46897acc68b06..f324e95cbe1ed 100644 --- a/clients/client-gamesparks/src/endpoint/ruleset.ts +++ b/clients/client-gamesparks/src/endpoint/ruleset.ts @@ -1,320 +1,31 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: false, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://gamesparks-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://gamesparks-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://gamesparks.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://gamesparks.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/gamesparks.json */ + +const s="fn", +t="argv", +u="ref"; +const a=false, +b=true, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i={[u]:"Endpoint"}, +j={[s]:"booleanEquals",[t]:[{[u]:"UseFIPS"},true]}, +k={[s]:"booleanEquals",[t]:[{[u]:"UseDualStack"},true]}, +l={}, +m={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsFIPS"]}]}, +n={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsDualStack"]}]}, +o=[i], +p=[j], +q=[], +r=[k]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:b,default:a,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:b,default:a,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:a,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[s]:"aws.partition",[t]:[{[u]:"Region"}],assign:e}],type:f,rules:[{conditions:[{[s]:"isSet",[t]:o},{[s]:"parseURL",[t]:o,assign:"url"}],type:f,rules:[{conditions:p,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:q,type:f,rules:[{conditions:r,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:q,endpoint:{url:i,properties:l,headers:l},type:h}]}]},{conditions:[j,k],type:f,rules:[{conditions:[m,n],type:f,rules:[{conditions:q,endpoint:{url:"https://gamesparks-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:p,type:f,rules:[{conditions:[m],type:f,rules:[{conditions:q,type:f,rules:[{conditions:q,endpoint:{url:"https://gamesparks-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]},{conditions:q,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:r,type:f,rules:[{conditions:[n],type:f,rules:[{conditions:q,endpoint:{url:"https://gamesparks.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:q,endpoint:{url:"https://gamesparks.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-glacier/src/endpoint/ruleset.ts b/clients/client-glacier/src/endpoint/ruleset.ts index 04165bac26ed0..00d3ec6ceeb52 100644 --- a/clients/client-glacier/src/endpoint/ruleset.ts +++ b/clients/client-glacier/src/endpoint/ruleset.ts @@ -1,320 +1,31 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: false, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://glacier-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://glacier-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://glacier.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://glacier.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/glacier.json */ + +const s="fn", +t="argv", +u="ref"; +const a=false, +b=true, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i={[u]:"Endpoint"}, +j={[s]:"booleanEquals",[t]:[{[u]:"UseFIPS"},true]}, +k={[s]:"booleanEquals",[t]:[{[u]:"UseDualStack"},true]}, +l={}, +m={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsFIPS"]}]}, +n={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsDualStack"]}]}, +o=[i], +p=[j], +q=[], +r=[k]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:b,default:a,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:b,default:a,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:a,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[s]:"aws.partition",[t]:[{[u]:"Region"}],assign:e}],type:f,rules:[{conditions:[{[s]:"isSet",[t]:o},{[s]:"parseURL",[t]:o,assign:"url"}],type:f,rules:[{conditions:p,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:q,type:f,rules:[{conditions:r,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:q,endpoint:{url:i,properties:l,headers:l},type:h}]}]},{conditions:[j,k],type:f,rules:[{conditions:[m,n],type:f,rules:[{conditions:q,endpoint:{url:"https://glacier-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:p,type:f,rules:[{conditions:[m],type:f,rules:[{conditions:q,type:f,rules:[{conditions:q,endpoint:{url:"https://glacier-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]},{conditions:q,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:r,type:f,rules:[{conditions:[n],type:f,rules:[{conditions:q,endpoint:{url:"https://glacier.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:q,endpoint:{url:"https://glacier.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-global-accelerator/src/endpoint/ruleset.ts b/clients/client-global-accelerator/src/endpoint/ruleset.ts index 0b213d8896aa5..e2a98a284c7a5 100644 --- a/clients/client-global-accelerator/src/endpoint/ruleset.ts +++ b/clients/client-global-accelerator/src/endpoint/ruleset.ts @@ -1,314 +1,31 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: false, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://globalaccelerator-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://globalaccelerator-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://globalaccelerator.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://globalaccelerator.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/global-accelerator.json */ + +const s="fn", +t="argv", +u="ref"; +const a=false, +b=true, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i={[u]:"Endpoint"}, +j={[s]:"booleanEquals",[t]:[{[u]:"UseFIPS"},true]}, +k={[s]:"booleanEquals",[t]:[{[u]:"UseDualStack"},true]}, +l={}, +m={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsFIPS"]}]}, +n={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsDualStack"]}]}, +o=[i], +p=[j], +q=[], +r=[k]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:b,default:a,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:b,default:a,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:a,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[s]:"aws.partition",[t]:[{[u]:"Region"}],assign:e}],type:f,rules:[{conditions:[{[s]:"isSet",[t]:o},{[s]:"parseURL",[t]:o,assign:"url"}],type:f,rules:[{conditions:p,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:q,type:f,rules:[{conditions:r,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:q,endpoint:{url:i,properties:l,headers:l},type:h}]}]},{conditions:[j,k],type:f,rules:[{conditions:[m,n],type:f,rules:[{conditions:q,endpoint:{url:"https://globalaccelerator-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:p,type:f,rules:[{conditions:[m],type:f,rules:[{conditions:q,endpoint:{url:"https://globalaccelerator-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:r,type:f,rules:[{conditions:[n],type:f,rules:[{conditions:q,endpoint:{url:"https://globalaccelerator.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:q,endpoint:{url:"https://globalaccelerator.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-glue/src/endpoint/ruleset.ts b/clients/client-glue/src/endpoint/ruleset.ts index 8e4f4adb5d5d8..16bce663071c9 100644 --- a/clients/client-glue/src/endpoint/ruleset.ts +++ b/clients/client-glue/src/endpoint/ruleset.ts @@ -1,311 +1,30 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: true, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://glue-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://glue-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://glue.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://glue.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/glue.json */ + +const r="fn", +s="argv", +t="ref"; +const a=true, +b=false, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i={[t]:"Endpoint"}, +j={[r]:"booleanEquals",[s]:[{[t]:"UseFIPS"},true]}, +k={[r]:"booleanEquals",[s]:[{[t]:"UseDualStack"},true]}, +l={}, +m={[r]:"booleanEquals",[s]:[true,{[r]:"getAttr",[s]:[{[t]:e},"supportsFIPS"]}]}, +n={[r]:"booleanEquals",[s]:[true,{[r]:"getAttr",[s]:[{[t]:e},"supportsDualStack"]}]}, +o=[j], +p=[], +q=[k]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:a,default:b,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:a,default:b,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:b,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[r]:"aws.partition",[s]:[{[t]:"Region"}],assign:e}],type:f,rules:[{conditions:[{[r]:"isSet",[s]:[i]}],type:f,rules:[{conditions:o,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:p,type:f,rules:[{conditions:q,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:p,endpoint:{url:i,properties:l,headers:l},type:h}]}]},{conditions:[j,k],type:f,rules:[{conditions:[m,n],type:f,rules:[{conditions:p,endpoint:{url:"https://glue-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:p,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:o,type:f,rules:[{conditions:[m],type:f,rules:[{conditions:p,type:f,rules:[{conditions:p,endpoint:{url:"https://glue-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]},{conditions:p,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:q,type:f,rules:[{conditions:[n],type:f,rules:[{conditions:p,endpoint:{url:"https://glue.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:p,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:p,endpoint:{url:"https://glue.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-grafana/src/endpoint/ruleset.ts b/clients/client-grafana/src/endpoint/ruleset.ts index c3279bcb8c231..8570aaf656552 100644 --- a/clients/client-grafana/src/endpoint/ruleset.ts +++ b/clients/client-grafana/src/endpoint/ruleset.ts @@ -1,320 +1,31 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: false, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://grafana-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://grafana-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://grafana.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://grafana.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/grafana.json */ + +const s="fn", +t="argv", +u="ref"; +const a=false, +b=true, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i={[u]:"Endpoint"}, +j={[s]:"booleanEquals",[t]:[{[u]:"UseFIPS"},true]}, +k={[s]:"booleanEquals",[t]:[{[u]:"UseDualStack"},true]}, +l={}, +m={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsFIPS"]}]}, +n={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsDualStack"]}]}, +o=[i], +p=[j], +q=[], +r=[k]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:b,default:a,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:b,default:a,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:a,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[s]:"aws.partition",[t]:[{[u]:"Region"}],assign:e}],type:f,rules:[{conditions:[{[s]:"isSet",[t]:o},{[s]:"parseURL",[t]:o,assign:"url"}],type:f,rules:[{conditions:p,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:q,type:f,rules:[{conditions:r,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:q,endpoint:{url:i,properties:l,headers:l},type:h}]}]},{conditions:[j,k],type:f,rules:[{conditions:[m,n],type:f,rules:[{conditions:q,endpoint:{url:"https://grafana-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:p,type:f,rules:[{conditions:[m],type:f,rules:[{conditions:q,type:f,rules:[{conditions:q,endpoint:{url:"https://grafana-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]},{conditions:q,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:r,type:f,rules:[{conditions:[n],type:f,rules:[{conditions:q,endpoint:{url:"https://grafana.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:q,endpoint:{url:"https://grafana.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-greengrass/src/endpoint/ruleset.ts b/clients/client-greengrass/src/endpoint/ruleset.ts index 9c9da7428e8d4..47e05e946003b 100644 --- a/clients/client-greengrass/src/endpoint/ruleset.ts +++ b/clients/client-greengrass/src/endpoint/ruleset.ts @@ -1,364 +1,33 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: true, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://greengrass-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://greengrass-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://greengrass.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "stringEquals", - argv: [ - { - ref: "Region", - }, - "dataplane-us-gov-west-1", - ], - }, - ], - endpoint: { - url: "https://greengrass-ats.iot.us-gov-west-1.amazonaws.com", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - { - conditions: [ - { - fn: "stringEquals", - argv: [ - { - ref: "Region", - }, - "dataplane-us-gov-east-1", - ], - }, - ], - endpoint: { - url: "https://greengrass-ats.iot.us-gov-east-1.amazonaws.com", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - { - conditions: [], - endpoint: { - url: "https://greengrass.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/greengrass.json */ + +const u="fn", +v="argv", +w="ref"; +const a=true, +b=false, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i="stringEquals", +j={[w]:"Region"}, +k={[w]:"Endpoint"}, +l={[u]:"booleanEquals",[v]:[{[w]:"UseFIPS"},true]}, +m={[u]:"booleanEquals",[v]:[{[w]:"UseDualStack"},true]}, +n={}, +o={[u]:"booleanEquals",[v]:[true,{[u]:"getAttr",[v]:[{[w]:e},"supportsFIPS"]}]}, +p={[u]:"booleanEquals",[v]:[true,{[u]:"getAttr",[v]:[{[w]:e},"supportsDualStack"]}]}, +q=[k], +r=[l], +s=[], +t=[m]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:a,default:b,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:a,default:b,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:b,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[u]:"aws.partition",[v]:[j],assign:e}],type:f,rules:[{conditions:[{[u]:"isSet",[v]:q},{[u]:"parseURL",[v]:q,assign:"url"}],type:f,rules:[{conditions:r,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:s,type:f,rules:[{conditions:t,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:s,endpoint:{url:k,properties:n,headers:n},type:h}]}]},{conditions:[l,m],type:f,rules:[{conditions:[o,p],type:f,rules:[{conditions:s,endpoint:{url:"https://greengrass-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:n,headers:n},type:h}]},{conditions:s,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:r,type:f,rules:[{conditions:[o],type:f,rules:[{conditions:s,type:f,rules:[{conditions:s,endpoint:{url:"https://greengrass-fips.{Region}.{PartitionResult#dnsSuffix}",properties:n,headers:n},type:h}]}]},{conditions:s,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:t,type:f,rules:[{conditions:[p],type:f,rules:[{conditions:s,endpoint:{url:"https://greengrass.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:n,headers:n},type:h}]},{conditions:s,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:s,type:f,rules:[{conditions:[{[u]:i,[v]:[j,"dataplane-us-gov-west-1"]}],endpoint:{url:"https://greengrass-ats.iot.us-gov-west-1.amazonaws.com",properties:n,headers:n},type:h},{conditions:[{[u]:i,[v]:[j,"dataplane-us-gov-east-1"]}],endpoint:{url:"https://greengrass-ats.iot.us-gov-east-1.amazonaws.com",properties:n,headers:n},type:h},{conditions:s,endpoint:{url:"https://greengrass.{Region}.{PartitionResult#dnsSuffix}",properties:n,headers:n},type:h}]}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-greengrassv2/src/endpoint/ruleset.ts b/clients/client-greengrassv2/src/endpoint/ruleset.ts index 4b605bc2cac29..35d9e3f61b2a3 100644 --- a/clients/client-greengrassv2/src/endpoint/ruleset.ts +++ b/clients/client-greengrassv2/src/endpoint/ruleset.ts @@ -1,364 +1,33 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: false, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://greengrass-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://greengrass-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://greengrass.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "stringEquals", - argv: [ - { - ref: "Region", - }, - "dataplane-us-gov-east-1", - ], - }, - ], - endpoint: { - url: "https://greengrass-ats.iot.us-gov-east-1.amazonaws.com", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - { - conditions: [ - { - fn: "stringEquals", - argv: [ - { - ref: "Region", - }, - "dataplane-us-gov-west-1", - ], - }, - ], - endpoint: { - url: "https://greengrass-ats.iot.us-gov-west-1.amazonaws.com", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - { - conditions: [], - endpoint: { - url: "https://greengrass.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/greengrassv2.json */ + +const u="fn", +v="argv", +w="ref"; +const a=false, +b=true, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i="stringEquals", +j={[w]:"Region"}, +k={[w]:"Endpoint"}, +l={[u]:"booleanEquals",[v]:[{[w]:"UseFIPS"},true]}, +m={[u]:"booleanEquals",[v]:[{[w]:"UseDualStack"},true]}, +n={}, +o={[u]:"booleanEquals",[v]:[true,{[u]:"getAttr",[v]:[{[w]:e},"supportsFIPS"]}]}, +p={[u]:"booleanEquals",[v]:[true,{[u]:"getAttr",[v]:[{[w]:e},"supportsDualStack"]}]}, +q=[k], +r=[l], +s=[], +t=[m]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:b,default:a,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:b,default:a,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:a,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[u]:"aws.partition",[v]:[j],assign:e}],type:f,rules:[{conditions:[{[u]:"isSet",[v]:q},{[u]:"parseURL",[v]:q,assign:"url"}],type:f,rules:[{conditions:r,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:s,type:f,rules:[{conditions:t,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:s,endpoint:{url:k,properties:n,headers:n},type:h}]}]},{conditions:[l,m],type:f,rules:[{conditions:[o,p],type:f,rules:[{conditions:s,endpoint:{url:"https://greengrass-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:n,headers:n},type:h}]},{conditions:s,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:r,type:f,rules:[{conditions:[o],type:f,rules:[{conditions:s,type:f,rules:[{conditions:s,endpoint:{url:"https://greengrass-fips.{Region}.{PartitionResult#dnsSuffix}",properties:n,headers:n},type:h}]}]},{conditions:s,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:t,type:f,rules:[{conditions:[p],type:f,rules:[{conditions:s,endpoint:{url:"https://greengrass.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:n,headers:n},type:h}]},{conditions:s,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:s,type:f,rules:[{conditions:[{[u]:i,[v]:[j,"dataplane-us-gov-east-1"]}],endpoint:{url:"https://greengrass-ats.iot.us-gov-east-1.amazonaws.com",properties:n,headers:n},type:h},{conditions:[{[u]:i,[v]:[j,"dataplane-us-gov-west-1"]}],endpoint:{url:"https://greengrass-ats.iot.us-gov-west-1.amazonaws.com",properties:n,headers:n},type:h},{conditions:s,endpoint:{url:"https://greengrass.{Region}.{PartitionResult#dnsSuffix}",properties:n,headers:n},type:h}]}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-groundstation/src/endpoint/ruleset.ts b/clients/client-groundstation/src/endpoint/ruleset.ts index 42aa806fb0aea..e45d10ae545b0 100644 --- a/clients/client-groundstation/src/endpoint/ruleset.ts +++ b/clients/client-groundstation/src/endpoint/ruleset.ts @@ -1,320 +1,31 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: false, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://groundstation-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://groundstation-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://groundstation.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://groundstation.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/groundstation.json */ + +const s="fn", +t="argv", +u="ref"; +const a=false, +b=true, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i={[u]:"Endpoint"}, +j={[s]:"booleanEquals",[t]:[{[u]:"UseFIPS"},true]}, +k={[s]:"booleanEquals",[t]:[{[u]:"UseDualStack"},true]}, +l={}, +m={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsFIPS"]}]}, +n={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsDualStack"]}]}, +o=[i], +p=[j], +q=[], +r=[k]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:b,default:a,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:b,default:a,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:a,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[s]:"aws.partition",[t]:[{[u]:"Region"}],assign:e}],type:f,rules:[{conditions:[{[s]:"isSet",[t]:o},{[s]:"parseURL",[t]:o,assign:"url"}],type:f,rules:[{conditions:p,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:q,type:f,rules:[{conditions:r,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:q,endpoint:{url:i,properties:l,headers:l},type:h}]}]},{conditions:[j,k],type:f,rules:[{conditions:[m,n],type:f,rules:[{conditions:q,endpoint:{url:"https://groundstation-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:p,type:f,rules:[{conditions:[m],type:f,rules:[{conditions:q,type:f,rules:[{conditions:q,endpoint:{url:"https://groundstation-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]},{conditions:q,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:r,type:f,rules:[{conditions:[n],type:f,rules:[{conditions:q,endpoint:{url:"https://groundstation.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:q,endpoint:{url:"https://groundstation.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-guardduty/src/endpoint/ruleset.ts b/clients/client-guardduty/src/endpoint/ruleset.ts index 1bb3656927cba..98f101fd3e061 100644 --- a/clients/client-guardduty/src/endpoint/ruleset.ts +++ b/clients/client-guardduty/src/endpoint/ruleset.ts @@ -1,336 +1,33 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: true, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://guardduty-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "stringEquals", - argv: [ - "aws-us-gov", - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "name", - ], - }, - ], - }, - ], - endpoint: { - url: "https://guardduty.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - { - conditions: [], - endpoint: { - url: "https://guardduty-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://guardduty.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://guardduty.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/guardduty.json */ + +const u="fn", +v="argv", +w="ref"; +const a=true, +b=false, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i="getAttr", +j={[w]:"Endpoint"}, +k={[u]:"booleanEquals",[v]:[{[w]:"UseFIPS"},true]}, +l={[u]:"booleanEquals",[v]:[{[w]:"UseDualStack"},true]}, +m={}, +n={[u]:"booleanEquals",[v]:[true,{[u]:i,[v]:[{[w]:e},"supportsFIPS"]}]}, +o={[w]:e}, +p={[u]:"booleanEquals",[v]:[true,{[u]:i,[v]:[o,"supportsDualStack"]}]}, +q={"url":"https://guardduty.{Region}.{PartitionResult#dnsSuffix}","properties":{},"headers":{}}, +r=[k], +s=[], +t=[l]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:a,default:b,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:a,default:b,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:b,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[u]:"aws.partition",[v]:[{[w]:"Region"}],assign:e}],type:f,rules:[{conditions:[{[u]:"isSet",[v]:[j]}],type:f,rules:[{conditions:r,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:s,type:f,rules:[{conditions:t,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:s,endpoint:{url:j,properties:m,headers:m},type:h}]}]},{conditions:[k,l],type:f,rules:[{conditions:[n,p],type:f,rules:[{conditions:s,endpoint:{url:"https://guardduty-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:m,headers:m},type:h}]},{conditions:s,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:r,type:f,rules:[{conditions:[n],type:f,rules:[{conditions:s,type:f,rules:[{conditions:[{[u]:"stringEquals",[v]:["aws-us-gov",{[u]:i,[v]:[o,"name"]}]}],endpoint:q,type:h},{conditions:s,endpoint:{url:"https://guardduty-fips.{Region}.{PartitionResult#dnsSuffix}",properties:m,headers:m},type:h}]}]},{conditions:s,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:t,type:f,rules:[{conditions:[p],type:f,rules:[{conditions:s,endpoint:{url:"https://guardduty.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:m,headers:m},type:h}]},{conditions:s,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:s,endpoint:q,type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-health/src/endpoint/ruleset.ts b/clients/client-health/src/endpoint/ruleset.ts index 3327f8c00a6f2..4b1b2393a461f 100644 --- a/clients/client-health/src/endpoint/ruleset.ts +++ b/clients/client-health/src/endpoint/ruleset.ts @@ -1,866 +1,48 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: false, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "stringEquals", - argv: [ - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "name", - ], - }, - "aws", - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://health-fips.{Region}.api.aws", - properties: { - authSchemes: [ - { - name: "sigv4", - signingName: "health", - signingRegion: "us-east-1", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://health-fips.{Region}.amazonaws.com", - properties: { - authSchemes: [ - { - name: "sigv4", - signingName: "health", - signingRegion: "us-east-1", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://health.{Region}.api.aws", - properties: { - authSchemes: [ - { - name: "sigv4", - signingName: "health", - signingRegion: "us-east-1", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://global.health.amazonaws.com", - properties: { - authSchemes: [ - { - name: "sigv4", - signingName: "health", - signingRegion: "us-east-1", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [ - { - fn: "stringEquals", - argv: [ - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "name", - ], - }, - "aws-cn", - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://health-fips.{Region}.api.amazonwebservices.com.cn", - properties: { - authSchemes: [ - { - name: "sigv4", - signingName: "health", - signingRegion: "cn-northwest-1", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://health-fips.{Region}.amazonaws.com.cn", - properties: { - authSchemes: [ - { - name: "sigv4", - signingName: "health", - signingRegion: "cn-northwest-1", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://health.{Region}.api.amazonwebservices.com.cn", - properties: { - authSchemes: [ - { - name: "sigv4", - signingName: "health", - signingRegion: "cn-northwest-1", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://global.health.amazonaws.com.cn", - properties: { - authSchemes: [ - { - name: "sigv4", - signingName: "health", - signingRegion: "cn-northwest-1", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://health-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://health-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://health.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "stringEquals", - argv: [ - { - ref: "Region", - }, - "aws-global", - ], - }, - ], - endpoint: { - url: "https://global.health.amazonaws.com", - properties: { - authSchemes: [ - { - name: "sigv4", - signingName: "health", - signingRegion: "us-east-1", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - { - conditions: [ - { - fn: "stringEquals", - argv: [ - { - ref: "Region", - }, - "aws-cn-global", - ], - }, - ], - endpoint: { - url: "https://global.health.amazonaws.com.cn", - properties: { - authSchemes: [ - { - name: "sigv4", - signingName: "health", - signingRegion: "cn-northwest-1", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - { - conditions: [], - endpoint: { - url: "https://health.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/health.json */ + +const C="type", +D="conditions", +E="fn", +F="argv", +G="ref", +H="properties", +I="headers", +J="authSchemes", +K="signingName", +L="signingRegion"; +const a=false, +b=true, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i="stringEquals", +j={[G]:"Region"}, +k={[G]:"Endpoint"}, +l={}, +m={[E]:"getAttr",[F]:[{[G]:e},"name"]}, +n={[J]:[{"name":"sigv4",[K]:"health",[L]:"us-east-1"}]}, +o={[D]:[],[g]:"FIPS and DualStack are enabled, but this partition does not support one or both",[C]:g}, +p={[D]:[],[g]:"FIPS is enabled but this partition does not support FIPS",[C]:g}, +q={[D]:[],[g]:"DualStack is enabled but this partition does not support DualStack",[C]:g}, +r={"url":"https://global.health.amazonaws.com",[H]:n,[I]:{}}, +s={[J]:[{"name":"sigv4",[K]:"health",[L]:"cn-northwest-1"}]}, +t={"url":"https://global.health.amazonaws.com.cn",[H]:s,[I]:{}}, +u=[k], +v=[{[E]:"booleanEquals",[F]:[{[G]:"UseFIPS"},true]}], +w=[], +x=[{[E]:"booleanEquals",[F]:[{[G]:"UseDualStack"},true]}], +y=[{[E]:"booleanEquals",[F]:[{[G]:"UseFIPS"},true]},{[E]:"booleanEquals",[F]:[{[G]:"UseDualStack"},true]}], +z=[{[E]:"booleanEquals",[F]:[true,{[E]:"getAttr",[F]:[{[G]:e},"supportsFIPS"]}]},{[E]:"booleanEquals",[F]:[true,{[E]:"getAttr",[F]:[{[G]:e},"supportsDualStack"]}]}], +A=[{[E]:"booleanEquals",[F]:[true,{[E]:"getAttr",[F]:[{[G]:e},"supportsFIPS"]}]}], +B=[{[E]:"booleanEquals",[F]:[true,{[E]:"getAttr",[F]:[{[G]:e},"supportsDualStack"]}]}]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",[C]:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:b,default:a,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",[C]:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:b,default:a,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",[C]:d},Endpoint:{builtIn:"SDK::Endpoint",required:a,documentation:"Override the endpoint used to send this request",[C]:c}},rules:[{[D]:[{[E]:"aws.partition",[F]:[j],assign:e}],[C]:f,rules:[{[D]:[{[E]:"isSet",[F]:u},{[E]:"parseURL",[F]:u,assign:"url"}],[C]:f,rules:[{[D]:v,error:"Invalid Configuration: FIPS and custom endpoint are not supported",[C]:g},{[D]:w,[C]:f,rules:[{[D]:x,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",[C]:g},{[D]:w,endpoint:{url:k,[H]:l,[I]:l},[C]:h}]}]},{[D]:[{[E]:i,[F]:[m,"aws"]}],[C]:f,rules:[{[D]:y,[C]:f,rules:[{[D]:z,[C]:f,rules:[{[D]:w,endpoint:{url:"https://health-fips.{Region}.api.aws",[H]:n,[I]:l},[C]:h}]},o]},{[D]:v,[C]:f,rules:[{[D]:A,[C]:f,rules:[{[D]:w,endpoint:{url:"https://health-fips.{Region}.amazonaws.com",[H]:n,[I]:l},[C]:h}]},p]},{[D]:x,[C]:f,rules:[{[D]:B,[C]:f,rules:[{[D]:w,endpoint:{url:"https://health.{Region}.api.aws",[H]:n,[I]:l},[C]:h}]},q]},{[D]:w,endpoint:r,[C]:h}]},{[D]:[{[E]:i,[F]:[m,"aws-cn"]}],[C]:f,rules:[{[D]:y,[C]:f,rules:[{[D]:z,[C]:f,rules:[{[D]:w,endpoint:{url:"https://health-fips.{Region}.api.amazonwebservices.com.cn",[H]:s,[I]:l},[C]:h}]},o]},{[D]:v,[C]:f,rules:[{[D]:A,[C]:f,rules:[{[D]:w,endpoint:{url:"https://health-fips.{Region}.amazonaws.com.cn",[H]:s,[I]:l},[C]:h}]},p]},{[D]:x,[C]:f,rules:[{[D]:B,[C]:f,rules:[{[D]:w,endpoint:{url:"https://health.{Region}.api.amazonwebservices.com.cn",[H]:s,[I]:l},[C]:h}]},q]},{[D]:w,endpoint:t,[C]:h}]},{[D]:y,[C]:f,rules:[{[D]:z,[C]:f,rules:[{[D]:w,endpoint:{url:"https://health-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",[H]:l,[I]:l},[C]:h}]},o]},{[D]:v,[C]:f,rules:[{[D]:A,[C]:f,rules:[{[D]:w,[C]:f,rules:[{[D]:w,endpoint:{url:"https://health-fips.{Region}.{PartitionResult#dnsSuffix}",[H]:l,[I]:l},[C]:h}]}]},p]},{[D]:x,[C]:f,rules:[{[D]:B,[C]:f,rules:[{[D]:w,endpoint:{url:"https://health.{Region}.{PartitionResult#dualStackDnsSuffix}",[H]:l,[I]:l},[C]:h}]},q]},{[D]:w,[C]:f,rules:[{[D]:[{[E]:i,[F]:[j,"aws-global"]}],endpoint:r,[C]:h},{[D]:[{[E]:i,[F]:[j,"aws-cn-global"]}],endpoint:t,[C]:h},{[D]:w,endpoint:{url:"https://health.{Region}.{PartitionResult#dnsSuffix}",[H]:l,[I]:l},[C]:h}]}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-healthlake/src/endpoint/ruleset.ts b/clients/client-healthlake/src/endpoint/ruleset.ts index 973c029390b3b..2214caac37451 100644 --- a/clients/client-healthlake/src/endpoint/ruleset.ts +++ b/clients/client-healthlake/src/endpoint/ruleset.ts @@ -1,320 +1,31 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: false, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://healthlake-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://healthlake-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://healthlake.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://healthlake.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/healthlake.json */ + +const s="fn", +t="argv", +u="ref"; +const a=false, +b=true, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i={[u]:"Endpoint"}, +j={[s]:"booleanEquals",[t]:[{[u]:"UseFIPS"},true]}, +k={[s]:"booleanEquals",[t]:[{[u]:"UseDualStack"},true]}, +l={}, +m={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsFIPS"]}]}, +n={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsDualStack"]}]}, +o=[i], +p=[j], +q=[], +r=[k]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:b,default:a,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:b,default:a,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:a,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[s]:"aws.partition",[t]:[{[u]:"Region"}],assign:e}],type:f,rules:[{conditions:[{[s]:"isSet",[t]:o},{[s]:"parseURL",[t]:o,assign:"url"}],type:f,rules:[{conditions:p,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:q,type:f,rules:[{conditions:r,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:q,endpoint:{url:i,properties:l,headers:l},type:h}]}]},{conditions:[j,k],type:f,rules:[{conditions:[m,n],type:f,rules:[{conditions:q,endpoint:{url:"https://healthlake-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:p,type:f,rules:[{conditions:[m],type:f,rules:[{conditions:q,type:f,rules:[{conditions:q,endpoint:{url:"https://healthlake-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]},{conditions:q,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:r,type:f,rules:[{conditions:[n],type:f,rules:[{conditions:q,endpoint:{url:"https://healthlake.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:q,endpoint:{url:"https://healthlake.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-honeycode/src/endpoint/ruleset.ts b/clients/client-honeycode/src/endpoint/ruleset.ts index 231fab62bb99f..4d665b5bfd7fe 100644 --- a/clients/client-honeycode/src/endpoint/ruleset.ts +++ b/clients/client-honeycode/src/endpoint/ruleset.ts @@ -1,320 +1,31 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: false, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://honeycode-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://honeycode-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://honeycode.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://honeycode.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/honeycode.json */ + +const s="fn", +t="argv", +u="ref"; +const a=false, +b=true, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i={[u]:"Endpoint"}, +j={[s]:"booleanEquals",[t]:[{[u]:"UseFIPS"},true]}, +k={[s]:"booleanEquals",[t]:[{[u]:"UseDualStack"},true]}, +l={}, +m={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsFIPS"]}]}, +n={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsDualStack"]}]}, +o=[i], +p=[j], +q=[], +r=[k]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:b,default:a,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:b,default:a,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:a,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[s]:"aws.partition",[t]:[{[u]:"Region"}],assign:e}],type:f,rules:[{conditions:[{[s]:"isSet",[t]:o},{[s]:"parseURL",[t]:o,assign:"url"}],type:f,rules:[{conditions:p,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:q,type:f,rules:[{conditions:r,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:q,endpoint:{url:i,properties:l,headers:l},type:h}]}]},{conditions:[j,k],type:f,rules:[{conditions:[m,n],type:f,rules:[{conditions:q,endpoint:{url:"https://honeycode-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:p,type:f,rules:[{conditions:[m],type:f,rules:[{conditions:q,type:f,rules:[{conditions:q,endpoint:{url:"https://honeycode-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]},{conditions:q,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:r,type:f,rules:[{conditions:[n],type:f,rules:[{conditions:q,endpoint:{url:"https://honeycode.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:q,endpoint:{url:"https://honeycode.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-iam/src/endpoint/ruleset.ts b/clients/client-iam/src/endpoint/ruleset.ts index 8d1e2c7ec30ed..875032e1a82c8 100644 --- a/clients/client-iam/src/endpoint/ruleset.ts +++ b/clients/client-iam/src/endpoint/ruleset.ts @@ -1,1496 +1,63 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: false, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "stringEquals", - argv: [ - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "name", - ], - }, - "aws", - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://iam-fips.{Region}.api.aws", - properties: { - authSchemes: [ - { - name: "sigv4", - signingRegion: "us-east-1", - signingName: "iam", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://iam-fips.amazonaws.com", - properties: { - authSchemes: [ - { - name: "sigv4", - signingRegion: "us-east-1", - signingName: "iam", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://iam.{Region}.api.aws", - properties: { - authSchemes: [ - { - name: "sigv4", - signingRegion: "us-east-1", - signingName: "iam", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://iam.amazonaws.com", - properties: { - authSchemes: [ - { - name: "sigv4", - signingRegion: "us-east-1", - signingName: "iam", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [ - { - fn: "stringEquals", - argv: [ - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "name", - ], - }, - "aws-cn", - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://iam-fips.{Region}.api.amazonwebservices.com.cn", - properties: { - authSchemes: [ - { - name: "sigv4", - signingRegion: "cn-north-1", - signingName: "iam", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://iam-fips.{Region}.amazonaws.com.cn", - properties: { - authSchemes: [ - { - name: "sigv4", - signingRegion: "cn-north-1", - signingName: "iam", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://iam.{Region}.api.amazonwebservices.com.cn", - properties: { - authSchemes: [ - { - name: "sigv4", - signingRegion: "cn-north-1", - signingName: "iam", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://iam.cn-north-1.amazonaws.com.cn", - properties: { - authSchemes: [ - { - name: "sigv4", - signingRegion: "cn-north-1", - signingName: "iam", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [ - { - fn: "stringEquals", - argv: [ - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "name", - ], - }, - "aws-us-gov", - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://iam-fips.{Region}.api.aws", - properties: { - authSchemes: [ - { - name: "sigv4", - signingRegion: "us-gov-west-1", - signingName: "iam", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://iam.us-gov.amazonaws.com", - properties: { - authSchemes: [ - { - name: "sigv4", - signingRegion: "us-gov-west-1", - signingName: "iam", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://iam.{Region}.api.aws", - properties: { - authSchemes: [ - { - name: "sigv4", - signingRegion: "us-gov-west-1", - signingName: "iam", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://iam.us-gov.amazonaws.com", - properties: { - authSchemes: [ - { - name: "sigv4", - signingRegion: "us-gov-west-1", - signingName: "iam", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [ - { - fn: "stringEquals", - argv: [ - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "name", - ], - }, - "aws-iso", - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://iam-fips.{Region}.c2s.ic.gov", - properties: { - authSchemes: [ - { - name: "sigv4", - signingRegion: "us-iso-east-1", - signingName: "iam", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://iam.us-iso-east-1.c2s.ic.gov", - properties: { - authSchemes: [ - { - name: "sigv4", - signingRegion: "us-iso-east-1", - signingName: "iam", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [ - { - fn: "stringEquals", - argv: [ - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "name", - ], - }, - "aws-iso-b", - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://iam-fips.{Region}.sc2s.sgov.gov", - properties: { - authSchemes: [ - { - name: "sigv4", - signingRegion: "us-isob-east-1", - signingName: "iam", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://iam.us-isob-east-1.sc2s.sgov.gov", - properties: { - authSchemes: [ - { - name: "sigv4", - signingRegion: "us-isob-east-1", - signingName: "iam", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://iam-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "stringEquals", - argv: [ - { - ref: "Region", - }, - "iam", - ], - }, - ], - endpoint: { - url: "https://iam-fips.amazonaws.com", - properties: { - authSchemes: [ - { - name: "sigv4", - signingRegion: "us-east-1", - signingName: "iam", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - { - conditions: [ - { - fn: "stringEquals", - argv: [ - { - ref: "Region", - }, - "aws-global", - ], - }, - ], - endpoint: { - url: "https://iam-fips.amazonaws.com", - properties: { - authSchemes: [ - { - name: "sigv4", - signingRegion: "us-east-1", - signingName: "iam", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - { - conditions: [ - { - fn: "stringEquals", - argv: [ - { - ref: "Region", - }, - "iam-govcloud", - ], - }, - ], - endpoint: { - url: "https://iam.us-gov.amazonaws.com", - properties: { - authSchemes: [ - { - name: "sigv4", - signingRegion: "us-gov-west-1", - signingName: "iam", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - { - conditions: [ - { - fn: "stringEquals", - argv: [ - { - ref: "Region", - }, - "aws-us-gov-global", - ], - }, - ], - endpoint: { - url: "https://iam.us-gov.amazonaws.com", - properties: { - authSchemes: [ - { - name: "sigv4", - signingRegion: "us-gov-west-1", - signingName: "iam", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - { - conditions: [], - endpoint: { - url: "https://iam-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://iam.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "stringEquals", - argv: [ - { - ref: "Region", - }, - "aws-global", - ], - }, - ], - endpoint: { - url: "https://iam.amazonaws.com", - properties: { - authSchemes: [ - { - name: "sigv4", - signingRegion: "us-east-1", - signingName: "iam", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - { - conditions: [ - { - fn: "stringEquals", - argv: [ - { - ref: "Region", - }, - "aws-cn-global", - ], - }, - ], - endpoint: { - url: "https://iam.cn-north-1.amazonaws.com.cn", - properties: { - authSchemes: [ - { - name: "sigv4", - signingRegion: "cn-north-1", - signingName: "iam", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - { - conditions: [ - { - fn: "stringEquals", - argv: [ - { - ref: "Region", - }, - "aws-us-gov-global", - ], - }, - ], - endpoint: { - url: "https://iam.us-gov.amazonaws.com", - properties: { - authSchemes: [ - { - name: "sigv4", - signingRegion: "us-gov-west-1", - signingName: "iam", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - { - conditions: [ - { - fn: "stringEquals", - argv: [ - { - ref: "Region", - }, - "aws-iso-global", - ], - }, - ], - endpoint: { - url: "https://iam.us-iso-east-1.c2s.ic.gov", - properties: { - authSchemes: [ - { - name: "sigv4", - signingRegion: "us-iso-east-1", - signingName: "iam", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - { - conditions: [ - { - fn: "stringEquals", - argv: [ - { - ref: "Region", - }, - "aws-iso-b-global", - ], - }, - ], - endpoint: { - url: "https://iam.us-isob-east-1.sc2s.sgov.gov", - properties: { - authSchemes: [ - { - name: "sigv4", - signingRegion: "us-isob-east-1", - signingName: "iam", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - { - conditions: [], - endpoint: { - url: "https://iam.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/iam.json */ + +const P="type", +Q="conditions", +R="fn", +S="argv", +T="ref", +U="url", +V="properties", +W="headers", +X="authSchemes", +Y="name", +Z="signingRegion", +aa="signingName"; +const a=false, +b=true, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i="stringEquals", +j="https://iam-fips.{Region}.api.aws", +k="iam", +l="https://iam.{Region}.api.aws", +m={[T]:"Region"}, +n={[T]:"Endpoint"}, +o={}, +p={[R]:"getAttr",[S]:[{[T]:e},"name"]}, +q={[X]:[{[Y]:"sigv4",[Z]:"us-east-1",[aa]:k}]}, +r={[Q]:[],[g]:"FIPS and DualStack are enabled, but this partition does not support one or both",[P]:g}, +s={[U]:"https://iam-fips.amazonaws.com",[V]:q,[W]:{}}, +t={[Q]:[],[g]:"FIPS is enabled but this partition does not support FIPS",[P]:g}, +u={[Q]:[],[g]:"DualStack is enabled but this partition does not support DualStack",[P]:g}, +v={[U]:"https://iam.amazonaws.com",[V]:q,[W]:{}}, +w={[X]:[{[Y]:"sigv4",[Z]:"cn-north-1",[aa]:k}]}, +x={[U]:"https://iam.cn-north-1.amazonaws.com.cn",[V]:w,[W]:{}}, +y={[X]:[{[Y]:"sigv4",[Z]:"us-gov-west-1",[aa]:k}]}, +z={[Q]:[],[h]:{[U]:"https://iam.us-gov.amazonaws.com",[V]:y,[W]:{}},[P]:h}, +A={[U]:"https://iam.us-gov.amazonaws.com",[V]:y,[W]:{}}, +B={[X]:[{[Y]:"sigv4",[Z]:"us-iso-east-1",[aa]:k}]}, +C={[U]:"https://iam.us-iso-east-1.c2s.ic.gov",[V]:B,[W]:{}}, +D={[X]:[{[Y]:"sigv4",[Z]:"us-isob-east-1",[aa]:k}]}, +E={[U]:"https://iam.us-isob-east-1.sc2s.sgov.gov",[V]:D,[W]:{}}, +F={[Q]:[{[R]:i,[S]:[m,"aws-us-gov-global"]}],[h]:A,[P]:h}, +G=[n], +H=[{[R]:"booleanEquals",[S]:[{[T]:"UseFIPS"},true]}], +I=[], +J=[{[R]:"booleanEquals",[S]:[{[T]:"UseDualStack"},true]}], +K=[{[R]:"booleanEquals",[S]:[{[T]:"UseFIPS"},true]},{[R]:"booleanEquals",[S]:[{[T]:"UseDualStack"},true]}], +L=[{[R]:"booleanEquals",[S]:[true,{[R]:"getAttr",[S]:[{[T]:e},"supportsFIPS"]}]},{[R]:"booleanEquals",[S]:[true,{[R]:"getAttr",[S]:[{[T]:e},"supportsDualStack"]}]}], +M=[{[R]:"booleanEquals",[S]:[true,{[R]:"getAttr",[S]:[{[T]:e},"supportsFIPS"]}]}], +N=[{[R]:"booleanEquals",[S]:[true,{[R]:"getAttr",[S]:[{[T]:e},"supportsDualStack"]}]}], +O=[{[R]:i,[S]:[m,"aws-global"]}]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",[P]:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:b,default:a,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",[P]:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:b,default:a,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",[P]:d},Endpoint:{builtIn:"SDK::Endpoint",required:a,documentation:"Override the endpoint used to send this request",[P]:c}},rules:[{[Q]:[{[R]:"aws.partition",[S]:[m],assign:e}],[P]:f,rules:[{[Q]:[{[R]:"isSet",[S]:G},{[R]:"parseURL",[S]:G,assign:"url"}],[P]:f,rules:[{[Q]:H,error:"Invalid Configuration: FIPS and custom endpoint are not supported",[P]:g},{[Q]:I,[P]:f,rules:[{[Q]:J,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",[P]:g},{[Q]:I,endpoint:{[U]:n,[V]:o,[W]:o},[P]:h}]}]},{[Q]:[{[R]:i,[S]:[p,"aws"]}],[P]:f,rules:[{[Q]:K,[P]:f,rules:[{[Q]:L,[P]:f,rules:[{[Q]:I,endpoint:{[U]:j,[V]:q,[W]:o},[P]:h}]},r]},{[Q]:H,[P]:f,rules:[{[Q]:M,[P]:f,rules:[{[Q]:I,endpoint:s,[P]:h}]},t]},{[Q]:J,[P]:f,rules:[{[Q]:N,[P]:f,rules:[{[Q]:I,endpoint:{[U]:l,[V]:q,[W]:o},[P]:h}]},u]},{[Q]:I,endpoint:v,[P]:h}]},{[Q]:[{[R]:i,[S]:[p,"aws-cn"]}],[P]:f,rules:[{[Q]:K,[P]:f,rules:[{[Q]:L,[P]:f,rules:[{[Q]:I,endpoint:{[U]:"https://iam-fips.{Region}.api.amazonwebservices.com.cn",[V]:w,[W]:o},[P]:h}]},r]},{[Q]:H,[P]:f,rules:[{[Q]:M,[P]:f,rules:[{[Q]:I,endpoint:{[U]:"https://iam-fips.{Region}.amazonaws.com.cn",[V]:w,[W]:o},[P]:h}]},t]},{[Q]:J,[P]:f,rules:[{[Q]:N,[P]:f,rules:[{[Q]:I,endpoint:{[U]:"https://iam.{Region}.api.amazonwebservices.com.cn",[V]:w,[W]:o},[P]:h}]},u]},{[Q]:I,endpoint:x,[P]:h}]},{[Q]:[{[R]:i,[S]:[p,"aws-us-gov"]}],[P]:f,rules:[{[Q]:K,[P]:f,rules:[{[Q]:L,[P]:f,rules:[{[Q]:I,endpoint:{[U]:j,[V]:y,[W]:o},[P]:h}]},r]},{[Q]:H,[P]:f,rules:[{[Q]:M,[P]:f,rules:[z]},t]},{[Q]:J,[P]:f,rules:[{[Q]:N,[P]:f,rules:[{[Q]:I,endpoint:{[U]:l,[V]:y,[W]:o},[P]:h}]},u]},z]},{[Q]:[{[R]:i,[S]:[p,"aws-iso"]}],[P]:f,rules:[{[Q]:H,[P]:f,rules:[{[Q]:M,[P]:f,rules:[{[Q]:I,endpoint:{[U]:"https://iam-fips.{Region}.c2s.ic.gov",[V]:B,[W]:o},[P]:h}]},t]},{[Q]:I,endpoint:C,[P]:h}]},{[Q]:[{[R]:i,[S]:[p,"aws-iso-b"]}],[P]:f,rules:[{[Q]:H,[P]:f,rules:[{[Q]:M,[P]:f,rules:[{[Q]:I,endpoint:{[U]:"https://iam-fips.{Region}.sc2s.sgov.gov",[V]:D,[W]:o},[P]:h}]},t]},{[Q]:I,endpoint:E,[P]:h}]},{[Q]:K,[P]:f,rules:[{[Q]:L,[P]:f,rules:[{[Q]:I,endpoint:{[U]:"https://iam-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",[V]:o,[W]:o},[P]:h}]},r]},{[Q]:H,[P]:f,rules:[{[Q]:M,[P]:f,rules:[{[Q]:I,[P]:f,rules:[{[Q]:[{[R]:i,[S]:[m,k]}],endpoint:s,[P]:h},{[Q]:O,endpoint:s,[P]:h},{[Q]:[{[R]:i,[S]:[m,"iam-govcloud"]}],endpoint:A,[P]:h},F,{[Q]:I,endpoint:{[U]:"https://iam-fips.{Region}.{PartitionResult#dnsSuffix}",[V]:o,[W]:o},[P]:h}]}]},t]},{[Q]:J,[P]:f,rules:[{[Q]:N,[P]:f,rules:[{[Q]:I,endpoint:{[U]:"https://iam.{Region}.{PartitionResult#dualStackDnsSuffix}",[V]:o,[W]:o},[P]:h}]},u]},{[Q]:I,[P]:f,rules:[{[Q]:O,endpoint:v,[P]:h},{[Q]:[{[R]:i,[S]:[m,"aws-cn-global"]}],endpoint:x,[P]:h},F,{[Q]:[{[R]:i,[S]:[m,"aws-iso-global"]}],endpoint:C,[P]:h},{[Q]:[{[R]:i,[S]:[m,"aws-iso-b-global"]}],endpoint:E,[P]:h},{[Q]:I,endpoint:{[U]:"https://iam.{Region}.{PartitionResult#dnsSuffix}",[V]:o,[W]:o},[P]:h}]}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-identitystore/src/endpoint/ruleset.ts b/clients/client-identitystore/src/endpoint/ruleset.ts index f6dcf026c85e2..5769b39a41de6 100644 --- a/clients/client-identitystore/src/endpoint/ruleset.ts +++ b/clients/client-identitystore/src/endpoint/ruleset.ts @@ -1,345 +1,34 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: false, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://identitystore-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "stringEquals", - argv: [ - "aws-us-gov", - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "name", - ], - }, - ], - }, - ], - endpoint: { - url: "https://identitystore.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - { - conditions: [], - endpoint: { - url: "https://identitystore-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://identitystore.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://identitystore.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/identitystore.json */ + +const v="fn", +w="argv", +x="ref"; +const a=false, +b=true, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i="getAttr", +j={[x]:"Endpoint"}, +k={[v]:"booleanEquals",[w]:[{[x]:"UseFIPS"},true]}, +l={[v]:"booleanEquals",[w]:[{[x]:"UseDualStack"},true]}, +m={}, +n={[v]:"booleanEquals",[w]:[true,{[v]:i,[w]:[{[x]:e},"supportsFIPS"]}]}, +o={[x]:e}, +p={[v]:"booleanEquals",[w]:[true,{[v]:i,[w]:[o,"supportsDualStack"]}]}, +q={"url":"https://identitystore.{Region}.{PartitionResult#dnsSuffix}","properties":{},"headers":{}}, +r=[j], +s=[k], +t=[], +u=[l]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:b,default:a,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:b,default:a,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:a,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[v]:"aws.partition",[w]:[{[x]:"Region"}],assign:e}],type:f,rules:[{conditions:[{[v]:"isSet",[w]:r},{[v]:"parseURL",[w]:r,assign:"url"}],type:f,rules:[{conditions:s,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:t,type:f,rules:[{conditions:u,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:t,endpoint:{url:j,properties:m,headers:m},type:h}]}]},{conditions:[k,l],type:f,rules:[{conditions:[n,p],type:f,rules:[{conditions:t,endpoint:{url:"https://identitystore-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:m,headers:m},type:h}]},{conditions:t,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:s,type:f,rules:[{conditions:[n],type:f,rules:[{conditions:t,type:f,rules:[{conditions:[{[v]:"stringEquals",[w]:["aws-us-gov",{[v]:i,[w]:[o,"name"]}]}],endpoint:q,type:h},{conditions:t,endpoint:{url:"https://identitystore-fips.{Region}.{PartitionResult#dnsSuffix}",properties:m,headers:m},type:h}]}]},{conditions:t,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:u,type:f,rules:[{conditions:[p],type:f,rules:[{conditions:t,endpoint:{url:"https://identitystore.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:m,headers:m},type:h}]},{conditions:t,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:t,endpoint:q,type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-imagebuilder/src/endpoint/ruleset.ts b/clients/client-imagebuilder/src/endpoint/ruleset.ts index cc845d4cd25b5..1c7491ba20b91 100644 --- a/clients/client-imagebuilder/src/endpoint/ruleset.ts +++ b/clients/client-imagebuilder/src/endpoint/ruleset.ts @@ -1,314 +1,31 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: false, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://imagebuilder-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://imagebuilder-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://imagebuilder.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://imagebuilder.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/imagebuilder.json */ + +const s="fn", +t="argv", +u="ref"; +const a=false, +b=true, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i={[u]:"Endpoint"}, +j={[s]:"booleanEquals",[t]:[{[u]:"UseFIPS"},true]}, +k={[s]:"booleanEquals",[t]:[{[u]:"UseDualStack"},true]}, +l={}, +m={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsFIPS"]}]}, +n={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsDualStack"]}]}, +o=[i], +p=[j], +q=[], +r=[k]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:b,default:a,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:b,default:a,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:a,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[s]:"aws.partition",[t]:[{[u]:"Region"}],assign:e}],type:f,rules:[{conditions:[{[s]:"isSet",[t]:o},{[s]:"parseURL",[t]:o,assign:"url"}],type:f,rules:[{conditions:p,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:q,type:f,rules:[{conditions:r,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:q,endpoint:{url:i,properties:l,headers:l},type:h}]}]},{conditions:[j,k],type:f,rules:[{conditions:[m,n],type:f,rules:[{conditions:q,endpoint:{url:"https://imagebuilder-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:p,type:f,rules:[{conditions:[m],type:f,rules:[{conditions:q,endpoint:{url:"https://imagebuilder-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:r,type:f,rules:[{conditions:[n],type:f,rules:[{conditions:q,endpoint:{url:"https://imagebuilder.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:q,endpoint:{url:"https://imagebuilder.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-inspector/src/endpoint/ruleset.ts b/clients/client-inspector/src/endpoint/ruleset.ts index e9a5c81b60dce..bfb9a4f3c3c5c 100644 --- a/clients/client-inspector/src/endpoint/ruleset.ts +++ b/clients/client-inspector/src/endpoint/ruleset.ts @@ -1,320 +1,31 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: false, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://inspector-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://inspector-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://inspector.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://inspector.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/inspector.json */ + +const s="fn", +t="argv", +u="ref"; +const a=false, +b=true, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i={[u]:"Endpoint"}, +j={[s]:"booleanEquals",[t]:[{[u]:"UseFIPS"},true]}, +k={[s]:"booleanEquals",[t]:[{[u]:"UseDualStack"},true]}, +l={}, +m={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsFIPS"]}]}, +n={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsDualStack"]}]}, +o=[i], +p=[j], +q=[], +r=[k]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:b,default:a,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:b,default:a,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:a,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[s]:"aws.partition",[t]:[{[u]:"Region"}],assign:e}],type:f,rules:[{conditions:[{[s]:"isSet",[t]:o},{[s]:"parseURL",[t]:o,assign:"url"}],type:f,rules:[{conditions:p,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:q,type:f,rules:[{conditions:r,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:q,endpoint:{url:i,properties:l,headers:l},type:h}]}]},{conditions:[j,k],type:f,rules:[{conditions:[m,n],type:f,rules:[{conditions:q,endpoint:{url:"https://inspector-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:p,type:f,rules:[{conditions:[m],type:f,rules:[{conditions:q,type:f,rules:[{conditions:q,endpoint:{url:"https://inspector-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]},{conditions:q,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:r,type:f,rules:[{conditions:[n],type:f,rules:[{conditions:q,endpoint:{url:"https://inspector.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:q,endpoint:{url:"https://inspector.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-inspector2/src/endpoint/ruleset.ts b/clients/client-inspector2/src/endpoint/ruleset.ts index d5ca63af18832..ad9656e0b0ddc 100644 --- a/clients/client-inspector2/src/endpoint/ruleset.ts +++ b/clients/client-inspector2/src/endpoint/ruleset.ts @@ -1,320 +1,31 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: false, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://inspector2-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://inspector2-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://inspector2.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://inspector2.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/inspector2.json */ + +const s="fn", +t="argv", +u="ref"; +const a=false, +b=true, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i={[u]:"Endpoint"}, +j={[s]:"booleanEquals",[t]:[{[u]:"UseFIPS"},true]}, +k={[s]:"booleanEquals",[t]:[{[u]:"UseDualStack"},true]}, +l={}, +m={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsFIPS"]}]}, +n={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsDualStack"]}]}, +o=[i], +p=[j], +q=[], +r=[k]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:b,default:a,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:b,default:a,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:a,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[s]:"aws.partition",[t]:[{[u]:"Region"}],assign:e}],type:f,rules:[{conditions:[{[s]:"isSet",[t]:o},{[s]:"parseURL",[t]:o,assign:"url"}],type:f,rules:[{conditions:p,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:q,type:f,rules:[{conditions:r,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:q,endpoint:{url:i,properties:l,headers:l},type:h}]}]},{conditions:[j,k],type:f,rules:[{conditions:[m,n],type:f,rules:[{conditions:q,endpoint:{url:"https://inspector2-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:p,type:f,rules:[{conditions:[m],type:f,rules:[{conditions:q,type:f,rules:[{conditions:q,endpoint:{url:"https://inspector2-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]},{conditions:q,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:r,type:f,rules:[{conditions:[n],type:f,rules:[{conditions:q,endpoint:{url:"https://inspector2.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:q,endpoint:{url:"https://inspector2.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-iot-1click-devices-service/src/endpoint/ruleset.ts b/clients/client-iot-1click-devices-service/src/endpoint/ruleset.ts index eb57762e0a70c..26ba9b2dd3d4d 100644 --- a/clients/client-iot-1click-devices-service/src/endpoint/ruleset.ts +++ b/clients/client-iot-1click-devices-service/src/endpoint/ruleset.ts @@ -1,314 +1,31 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: false, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://devices.iot1click-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://devices.iot1click-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://devices.iot1click.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://devices.iot1click.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/iot-1click-devices-service.json */ + +const s="fn", +t="argv", +u="ref"; +const a=false, +b=true, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i={[u]:"Endpoint"}, +j={[s]:"booleanEquals",[t]:[{[u]:"UseFIPS"},true]}, +k={[s]:"booleanEquals",[t]:[{[u]:"UseDualStack"},true]}, +l={}, +m={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsFIPS"]}]}, +n={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsDualStack"]}]}, +o=[i], +p=[j], +q=[], +r=[k]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:b,default:a,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:b,default:a,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:a,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[s]:"aws.partition",[t]:[{[u]:"Region"}],assign:e}],type:f,rules:[{conditions:[{[s]:"isSet",[t]:o},{[s]:"parseURL",[t]:o,assign:"url"}],type:f,rules:[{conditions:p,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:q,type:f,rules:[{conditions:r,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:q,endpoint:{url:i,properties:l,headers:l},type:h}]}]},{conditions:[j,k],type:f,rules:[{conditions:[m,n],type:f,rules:[{conditions:q,endpoint:{url:"https://devices.iot1click-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:p,type:f,rules:[{conditions:[m],type:f,rules:[{conditions:q,endpoint:{url:"https://devices.iot1click-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:r,type:f,rules:[{conditions:[n],type:f,rules:[{conditions:q,endpoint:{url:"https://devices.iot1click.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:q,endpoint:{url:"https://devices.iot1click.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-iot-1click-projects/src/endpoint/ruleset.ts b/clients/client-iot-1click-projects/src/endpoint/ruleset.ts index 112f65acad099..4a6c26cebab6a 100644 --- a/clients/client-iot-1click-projects/src/endpoint/ruleset.ts +++ b/clients/client-iot-1click-projects/src/endpoint/ruleset.ts @@ -1,320 +1,31 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: false, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://projects.iot1click-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://projects.iot1click-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://projects.iot1click.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://projects.iot1click.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/iot-1click-projects.json */ + +const s="fn", +t="argv", +u="ref"; +const a=false, +b=true, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i={[u]:"Endpoint"}, +j={[s]:"booleanEquals",[t]:[{[u]:"UseFIPS"},true]}, +k={[s]:"booleanEquals",[t]:[{[u]:"UseDualStack"},true]}, +l={}, +m={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsFIPS"]}]}, +n={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsDualStack"]}]}, +o=[i], +p=[j], +q=[], +r=[k]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:b,default:a,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:b,default:a,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:a,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[s]:"aws.partition",[t]:[{[u]:"Region"}],assign:e}],type:f,rules:[{conditions:[{[s]:"isSet",[t]:o},{[s]:"parseURL",[t]:o,assign:"url"}],type:f,rules:[{conditions:p,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:q,type:f,rules:[{conditions:r,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:q,endpoint:{url:i,properties:l,headers:l},type:h}]}]},{conditions:[j,k],type:f,rules:[{conditions:[m,n],type:f,rules:[{conditions:q,endpoint:{url:"https://projects.iot1click-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:p,type:f,rules:[{conditions:[m],type:f,rules:[{conditions:q,type:f,rules:[{conditions:q,endpoint:{url:"https://projects.iot1click-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]},{conditions:q,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:r,type:f,rules:[{conditions:[n],type:f,rules:[{conditions:q,endpoint:{url:"https://projects.iot1click.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:q,endpoint:{url:"https://projects.iot1click.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-iot-data-plane/src/endpoint/ruleset.ts b/clients/client-iot-data-plane/src/endpoint/ruleset.ts index 6e8d2ab0b71fd..8581ffa61d775 100644 --- a/clients/client-iot-data-plane/src/endpoint/ruleset.ts +++ b/clients/client-iot-data-plane/src/endpoint/ruleset.ts @@ -1,453 +1,33 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: false, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://data-ats.iot-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "stringEquals", - argv: [ - { - ref: "Region", - }, - "us-east-1", - ], - }, - ], - endpoint: { - url: "https://data.iot-fips.us-east-1.amazonaws.com", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - { - conditions: [ - { - fn: "stringEquals", - argv: [ - { - ref: "Region", - }, - "us-east-2", - ], - }, - ], - endpoint: { - url: "https://data.iot-fips.us-east-2.amazonaws.com", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - { - conditions: [ - { - fn: "stringEquals", - argv: [ - { - ref: "Region", - }, - "ca-central-1", - ], - }, - ], - endpoint: { - url: "https://data.iot-fips.ca-central-1.amazonaws.com", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - { - conditions: [ - { - fn: "stringEquals", - argv: [ - { - ref: "Region", - }, - "us-west-1", - ], - }, - ], - endpoint: { - url: "https://data.iot-fips.us-west-1.amazonaws.com", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - { - conditions: [ - { - fn: "stringEquals", - argv: [ - { - ref: "Region", - }, - "us-west-2", - ], - }, - ], - endpoint: { - url: "https://data.iot-fips.us-west-2.amazonaws.com", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - { - conditions: [ - { - fn: "stringEquals", - argv: [ - { - ref: "Region", - }, - "us-gov-west-1", - ], - }, - ], - endpoint: { - url: "https://data.iot-fips.us-gov-west-1.amazonaws.com", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - { - conditions: [ - { - fn: "stringEquals", - argv: [ - { - ref: "Region", - }, - "us-gov-east-1", - ], - }, - ], - endpoint: { - url: "https://data.iot-fips.us-gov-east-1.amazonaws.com", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - { - conditions: [], - endpoint: { - url: "https://data-ats.iot-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://data-ats.iot.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://data-ats.iot.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/iot-data-plane.json */ + +const u="fn", +v="argv", +w="ref"; +const a=false, +b=true, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i="stringEquals", +j={[w]:"Region"}, +k={[w]:"Endpoint"}, +l={[u]:"booleanEquals",[v]:[{[w]:"UseFIPS"},true]}, +m={[u]:"booleanEquals",[v]:[{[w]:"UseDualStack"},true]}, +n={}, +o={[u]:"booleanEquals",[v]:[true,{[u]:"getAttr",[v]:[{[w]:e},"supportsFIPS"]}]}, +p={[u]:"booleanEquals",[v]:[true,{[u]:"getAttr",[v]:[{[w]:e},"supportsDualStack"]}]}, +q=[k], +r=[l], +s=[], +t=[m]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:b,default:a,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:b,default:a,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:a,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[u]:"aws.partition",[v]:[j],assign:e}],type:f,rules:[{conditions:[{[u]:"isSet",[v]:q},{[u]:"parseURL",[v]:q,assign:"url"}],type:f,rules:[{conditions:r,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:s,type:f,rules:[{conditions:t,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:s,endpoint:{url:k,properties:n,headers:n},type:h}]}]},{conditions:[l,m],type:f,rules:[{conditions:[o,p],type:f,rules:[{conditions:s,endpoint:{url:"https://data-ats.iot-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:n,headers:n},type:h}]},{conditions:s,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:r,type:f,rules:[{conditions:[o],type:f,rules:[{conditions:s,type:f,rules:[{conditions:[{[u]:i,[v]:[j,"us-east-1"]}],endpoint:{url:"https://data.iot-fips.us-east-1.amazonaws.com",properties:n,headers:n},type:h},{conditions:[{[u]:i,[v]:[j,"us-east-2"]}],endpoint:{url:"https://data.iot-fips.us-east-2.amazonaws.com",properties:n,headers:n},type:h},{conditions:[{[u]:i,[v]:[j,"ca-central-1"]}],endpoint:{url:"https://data.iot-fips.ca-central-1.amazonaws.com",properties:n,headers:n},type:h},{conditions:[{[u]:i,[v]:[j,"us-west-1"]}],endpoint:{url:"https://data.iot-fips.us-west-1.amazonaws.com",properties:n,headers:n},type:h},{conditions:[{[u]:i,[v]:[j,"us-west-2"]}],endpoint:{url:"https://data.iot-fips.us-west-2.amazonaws.com",properties:n,headers:n},type:h},{conditions:[{[u]:i,[v]:[j,"us-gov-west-1"]}],endpoint:{url:"https://data.iot-fips.us-gov-west-1.amazonaws.com",properties:n,headers:n},type:h},{conditions:[{[u]:i,[v]:[j,"us-gov-east-1"]}],endpoint:{url:"https://data.iot-fips.us-gov-east-1.amazonaws.com",properties:n,headers:n},type:h},{conditions:s,endpoint:{url:"https://data-ats.iot-fips.{Region}.{PartitionResult#dnsSuffix}",properties:n,headers:n},type:h}]}]},{conditions:s,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:t,type:f,rules:[{conditions:[p],type:f,rules:[{conditions:s,endpoint:{url:"https://data-ats.iot.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:n,headers:n},type:h}]},{conditions:s,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:s,endpoint:{url:"https://data-ats.iot.{Region}.{PartitionResult#dnsSuffix}",properties:n,headers:n},type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-iot-events-data/src/endpoint/ruleset.ts b/clients/client-iot-events-data/src/endpoint/ruleset.ts index 5fd293df85a15..2698d3d6b6af0 100644 --- a/clients/client-iot-events-data/src/endpoint/ruleset.ts +++ b/clients/client-iot-events-data/src/endpoint/ruleset.ts @@ -1,314 +1,31 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: false, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://data.iotevents-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://data.iotevents-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://data.iotevents.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://data.iotevents.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/iot-events-data.json */ + +const s="fn", +t="argv", +u="ref"; +const a=false, +b=true, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i={[u]:"Endpoint"}, +j={[s]:"booleanEquals",[t]:[{[u]:"UseFIPS"},true]}, +k={[s]:"booleanEquals",[t]:[{[u]:"UseDualStack"},true]}, +l={}, +m={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsFIPS"]}]}, +n={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsDualStack"]}]}, +o=[i], +p=[j], +q=[], +r=[k]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:b,default:a,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:b,default:a,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:a,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[s]:"aws.partition",[t]:[{[u]:"Region"}],assign:e}],type:f,rules:[{conditions:[{[s]:"isSet",[t]:o},{[s]:"parseURL",[t]:o,assign:"url"}],type:f,rules:[{conditions:p,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:q,type:f,rules:[{conditions:r,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:q,endpoint:{url:i,properties:l,headers:l},type:h}]}]},{conditions:[j,k],type:f,rules:[{conditions:[m,n],type:f,rules:[{conditions:q,endpoint:{url:"https://data.iotevents-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:p,type:f,rules:[{conditions:[m],type:f,rules:[{conditions:q,endpoint:{url:"https://data.iotevents-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:r,type:f,rules:[{conditions:[n],type:f,rules:[{conditions:q,endpoint:{url:"https://data.iotevents.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:q,endpoint:{url:"https://data.iotevents.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-iot-events/src/endpoint/ruleset.ts b/clients/client-iot-events/src/endpoint/ruleset.ts index 3650d874a9c48..3418b2f9df837 100644 --- a/clients/client-iot-events/src/endpoint/ruleset.ts +++ b/clients/client-iot-events/src/endpoint/ruleset.ts @@ -1,320 +1,31 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: false, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://iotevents-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://iotevents-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://iotevents.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://iotevents.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/iot-events.json */ + +const s="fn", +t="argv", +u="ref"; +const a=false, +b=true, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i={[u]:"Endpoint"}, +j={[s]:"booleanEquals",[t]:[{[u]:"UseFIPS"},true]}, +k={[s]:"booleanEquals",[t]:[{[u]:"UseDualStack"},true]}, +l={}, +m={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsFIPS"]}]}, +n={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsDualStack"]}]}, +o=[i], +p=[j], +q=[], +r=[k]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:b,default:a,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:b,default:a,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:a,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[s]:"aws.partition",[t]:[{[u]:"Region"}],assign:e}],type:f,rules:[{conditions:[{[s]:"isSet",[t]:o},{[s]:"parseURL",[t]:o,assign:"url"}],type:f,rules:[{conditions:p,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:q,type:f,rules:[{conditions:r,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:q,endpoint:{url:i,properties:l,headers:l},type:h}]}]},{conditions:[j,k],type:f,rules:[{conditions:[m,n],type:f,rules:[{conditions:q,endpoint:{url:"https://iotevents-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:p,type:f,rules:[{conditions:[m],type:f,rules:[{conditions:q,type:f,rules:[{conditions:q,endpoint:{url:"https://iotevents-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]},{conditions:q,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:r,type:f,rules:[{conditions:[n],type:f,rules:[{conditions:q,endpoint:{url:"https://iotevents.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:q,endpoint:{url:"https://iotevents.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-iot-jobs-data-plane/src/endpoint/ruleset.ts b/clients/client-iot-jobs-data-plane/src/endpoint/ruleset.ts index 67db451151c61..e5a23d1b877ac 100644 --- a/clients/client-iot-jobs-data-plane/src/endpoint/ruleset.ts +++ b/clients/client-iot-jobs-data-plane/src/endpoint/ruleset.ts @@ -1,320 +1,31 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: false, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://data.jobs.iot-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://data.jobs.iot-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://data.jobs.iot.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://data.jobs.iot.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/iot-jobs-data-plane.json */ + +const s="fn", +t="argv", +u="ref"; +const a=false, +b=true, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i={[u]:"Endpoint"}, +j={[s]:"booleanEquals",[t]:[{[u]:"UseFIPS"},true]}, +k={[s]:"booleanEquals",[t]:[{[u]:"UseDualStack"},true]}, +l={}, +m={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsFIPS"]}]}, +n={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsDualStack"]}]}, +o=[i], +p=[j], +q=[], +r=[k]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:b,default:a,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:b,default:a,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:a,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[s]:"aws.partition",[t]:[{[u]:"Region"}],assign:e}],type:f,rules:[{conditions:[{[s]:"isSet",[t]:o},{[s]:"parseURL",[t]:o,assign:"url"}],type:f,rules:[{conditions:p,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:q,type:f,rules:[{conditions:r,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:q,endpoint:{url:i,properties:l,headers:l},type:h}]}]},{conditions:[j,k],type:f,rules:[{conditions:[m,n],type:f,rules:[{conditions:q,endpoint:{url:"https://data.jobs.iot-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:p,type:f,rules:[{conditions:[m],type:f,rules:[{conditions:q,type:f,rules:[{conditions:q,endpoint:{url:"https://data.jobs.iot-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]},{conditions:q,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:r,type:f,rules:[{conditions:[n],type:f,rules:[{conditions:q,endpoint:{url:"https://data.jobs.iot.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:q,endpoint:{url:"https://data.jobs.iot.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-iot-roborunner/src/endpoint/ruleset.ts b/clients/client-iot-roborunner/src/endpoint/ruleset.ts index d5cd8f1d54b14..823f9d26a3c0d 100644 --- a/clients/client-iot-roborunner/src/endpoint/ruleset.ts +++ b/clients/client-iot-roborunner/src/endpoint/ruleset.ts @@ -1,314 +1,31 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: false, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://iotroborunner-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://iotroborunner-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://iotroborunner.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://iotroborunner.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/iot-roborunner.json */ + +const s="fn", +t="argv", +u="ref"; +const a=false, +b=true, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i={[u]:"Endpoint"}, +j={[s]:"booleanEquals",[t]:[{[u]:"UseFIPS"},true]}, +k={[s]:"booleanEquals",[t]:[{[u]:"UseDualStack"},true]}, +l={}, +m={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsFIPS"]}]}, +n={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsDualStack"]}]}, +o=[i], +p=[j], +q=[], +r=[k]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:b,default:a,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:b,default:a,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:a,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[s]:"aws.partition",[t]:[{[u]:"Region"}],assign:e}],type:f,rules:[{conditions:[{[s]:"isSet",[t]:o},{[s]:"parseURL",[t]:o,assign:"url"}],type:f,rules:[{conditions:p,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:q,type:f,rules:[{conditions:r,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:q,endpoint:{url:i,properties:l,headers:l},type:h}]}]},{conditions:[j,k],type:f,rules:[{conditions:[m,n],type:f,rules:[{conditions:q,endpoint:{url:"https://iotroborunner-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:p,type:f,rules:[{conditions:[m],type:f,rules:[{conditions:q,endpoint:{url:"https://iotroborunner-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:r,type:f,rules:[{conditions:[n],type:f,rules:[{conditions:q,endpoint:{url:"https://iotroborunner.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:q,endpoint:{url:"https://iotroborunner.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-iot-wireless/src/endpoint/ruleset.ts b/clients/client-iot-wireless/src/endpoint/ruleset.ts index d112c9a254018..8b06d14306533 100644 --- a/clients/client-iot-wireless/src/endpoint/ruleset.ts +++ b/clients/client-iot-wireless/src/endpoint/ruleset.ts @@ -1,320 +1,31 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: true, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://api.iotwireless-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://api.iotwireless-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://api.iotwireless.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://api.iotwireless.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/iot-wireless.json */ + +const s="fn", +t="argv", +u="ref"; +const a=true, +b=false, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i={[u]:"Endpoint"}, +j={[s]:"booleanEquals",[t]:[{[u]:"UseFIPS"},true]}, +k={[s]:"booleanEquals",[t]:[{[u]:"UseDualStack"},true]}, +l={}, +m={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsFIPS"]}]}, +n={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsDualStack"]}]}, +o=[i], +p=[j], +q=[], +r=[k]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:a,default:b,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:a,default:b,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:b,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[s]:"aws.partition",[t]:[{[u]:"Region"}],assign:e}],type:f,rules:[{conditions:[{[s]:"isSet",[t]:o},{[s]:"parseURL",[t]:o,assign:"url"}],type:f,rules:[{conditions:p,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:q,type:f,rules:[{conditions:r,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:q,endpoint:{url:i,properties:l,headers:l},type:h}]}]},{conditions:[j,k],type:f,rules:[{conditions:[m,n],type:f,rules:[{conditions:q,endpoint:{url:"https://api.iotwireless-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:p,type:f,rules:[{conditions:[m],type:f,rules:[{conditions:q,type:f,rules:[{conditions:q,endpoint:{url:"https://api.iotwireless-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]},{conditions:q,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:r,type:f,rules:[{conditions:[n],type:f,rules:[{conditions:q,endpoint:{url:"https://api.iotwireless.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:q,endpoint:{url:"https://api.iotwireless.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-iot/src/endpoint/ruleset.ts b/clients/client-iot/src/endpoint/ruleset.ts index 36d7fcc84a1cd..181f91e804932 100644 --- a/clients/client-iot/src/endpoint/ruleset.ts +++ b/clients/client-iot/src/endpoint/ruleset.ts @@ -1,320 +1,31 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: true, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://iot-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://iot-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://iot.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://iot.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/iot.json */ + +const s="fn", +t="argv", +u="ref"; +const a=true, +b=false, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i={[u]:"Endpoint"}, +j={[s]:"booleanEquals",[t]:[{[u]:"UseFIPS"},true]}, +k={[s]:"booleanEquals",[t]:[{[u]:"UseDualStack"},true]}, +l={}, +m={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsFIPS"]}]}, +n={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsDualStack"]}]}, +o=[i], +p=[j], +q=[], +r=[k]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:a,default:b,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:a,default:b,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:b,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[s]:"aws.partition",[t]:[{[u]:"Region"}],assign:e}],type:f,rules:[{conditions:[{[s]:"isSet",[t]:o},{[s]:"parseURL",[t]:o,assign:"url"}],type:f,rules:[{conditions:p,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:q,type:f,rules:[{conditions:r,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:q,endpoint:{url:i,properties:l,headers:l},type:h}]}]},{conditions:[j,k],type:f,rules:[{conditions:[m,n],type:f,rules:[{conditions:q,endpoint:{url:"https://iot-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:p,type:f,rules:[{conditions:[m],type:f,rules:[{conditions:q,type:f,rules:[{conditions:q,endpoint:{url:"https://iot-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]},{conditions:q,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:r,type:f,rules:[{conditions:[n],type:f,rules:[{conditions:q,endpoint:{url:"https://iot.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:q,endpoint:{url:"https://iot.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-iotanalytics/src/endpoint/ruleset.ts b/clients/client-iotanalytics/src/endpoint/ruleset.ts index 465a1cbdc9cdd..0688e4059f883 100644 --- a/clients/client-iotanalytics/src/endpoint/ruleset.ts +++ b/clients/client-iotanalytics/src/endpoint/ruleset.ts @@ -1,320 +1,31 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: false, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://iotanalytics-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://iotanalytics-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://iotanalytics.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://iotanalytics.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/iotanalytics.json */ + +const s="fn", +t="argv", +u="ref"; +const a=false, +b=true, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i={[u]:"Endpoint"}, +j={[s]:"booleanEquals",[t]:[{[u]:"UseFIPS"},true]}, +k={[s]:"booleanEquals",[t]:[{[u]:"UseDualStack"},true]}, +l={}, +m={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsFIPS"]}]}, +n={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsDualStack"]}]}, +o=[i], +p=[j], +q=[], +r=[k]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:b,default:a,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:b,default:a,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:a,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[s]:"aws.partition",[t]:[{[u]:"Region"}],assign:e}],type:f,rules:[{conditions:[{[s]:"isSet",[t]:o},{[s]:"parseURL",[t]:o,assign:"url"}],type:f,rules:[{conditions:p,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:q,type:f,rules:[{conditions:r,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:q,endpoint:{url:i,properties:l,headers:l},type:h}]}]},{conditions:[j,k],type:f,rules:[{conditions:[m,n],type:f,rules:[{conditions:q,endpoint:{url:"https://iotanalytics-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:p,type:f,rules:[{conditions:[m],type:f,rules:[{conditions:q,type:f,rules:[{conditions:q,endpoint:{url:"https://iotanalytics-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]},{conditions:q,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:r,type:f,rules:[{conditions:[n],type:f,rules:[{conditions:q,endpoint:{url:"https://iotanalytics.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:q,endpoint:{url:"https://iotanalytics.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-iotdeviceadvisor/src/endpoint/ruleset.ts b/clients/client-iotdeviceadvisor/src/endpoint/ruleset.ts index a6dd50e377e73..6baf4c2fe107c 100644 --- a/clients/client-iotdeviceadvisor/src/endpoint/ruleset.ts +++ b/clients/client-iotdeviceadvisor/src/endpoint/ruleset.ts @@ -1,320 +1,31 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: false, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://api.iotdeviceadvisor-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://api.iotdeviceadvisor-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://api.iotdeviceadvisor.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://api.iotdeviceadvisor.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/iotdeviceadvisor.json */ + +const s="fn", +t="argv", +u="ref"; +const a=false, +b=true, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i={[u]:"Endpoint"}, +j={[s]:"booleanEquals",[t]:[{[u]:"UseFIPS"},true]}, +k={[s]:"booleanEquals",[t]:[{[u]:"UseDualStack"},true]}, +l={}, +m={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsFIPS"]}]}, +n={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsDualStack"]}]}, +o=[i], +p=[j], +q=[], +r=[k]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:b,default:a,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:b,default:a,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:a,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[s]:"aws.partition",[t]:[{[u]:"Region"}],assign:e}],type:f,rules:[{conditions:[{[s]:"isSet",[t]:o},{[s]:"parseURL",[t]:o,assign:"url"}],type:f,rules:[{conditions:p,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:q,type:f,rules:[{conditions:r,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:q,endpoint:{url:i,properties:l,headers:l},type:h}]}]},{conditions:[j,k],type:f,rules:[{conditions:[m,n],type:f,rules:[{conditions:q,endpoint:{url:"https://api.iotdeviceadvisor-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:p,type:f,rules:[{conditions:[m],type:f,rules:[{conditions:q,type:f,rules:[{conditions:q,endpoint:{url:"https://api.iotdeviceadvisor-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]},{conditions:q,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:r,type:f,rules:[{conditions:[n],type:f,rules:[{conditions:q,endpoint:{url:"https://api.iotdeviceadvisor.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:q,endpoint:{url:"https://api.iotdeviceadvisor.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-iotfleethub/src/endpoint/ruleset.ts b/clients/client-iotfleethub/src/endpoint/ruleset.ts index e1198868def20..0636ece1fa130 100644 --- a/clients/client-iotfleethub/src/endpoint/ruleset.ts +++ b/clients/client-iotfleethub/src/endpoint/ruleset.ts @@ -1,320 +1,31 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: false, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://api.fleethub.iot-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://api.fleethub.iot-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://api.fleethub.iot.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://api.fleethub.iot.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/iotfleethub.json */ + +const s="fn", +t="argv", +u="ref"; +const a=false, +b=true, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i={[u]:"Endpoint"}, +j={[s]:"booleanEquals",[t]:[{[u]:"UseFIPS"},true]}, +k={[s]:"booleanEquals",[t]:[{[u]:"UseDualStack"},true]}, +l={}, +m={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsFIPS"]}]}, +n={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsDualStack"]}]}, +o=[i], +p=[j], +q=[], +r=[k]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:b,default:a,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:b,default:a,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:a,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[s]:"aws.partition",[t]:[{[u]:"Region"}],assign:e}],type:f,rules:[{conditions:[{[s]:"isSet",[t]:o},{[s]:"parseURL",[t]:o,assign:"url"}],type:f,rules:[{conditions:p,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:q,type:f,rules:[{conditions:r,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:q,endpoint:{url:i,properties:l,headers:l},type:h}]}]},{conditions:[j,k],type:f,rules:[{conditions:[m,n],type:f,rules:[{conditions:q,endpoint:{url:"https://api.fleethub.iot-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:p,type:f,rules:[{conditions:[m],type:f,rules:[{conditions:q,type:f,rules:[{conditions:q,endpoint:{url:"https://api.fleethub.iot-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]},{conditions:q,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:r,type:f,rules:[{conditions:[n],type:f,rules:[{conditions:q,endpoint:{url:"https://api.fleethub.iot.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:q,endpoint:{url:"https://api.fleethub.iot.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-iotfleetwise/src/endpoint/ruleset.ts b/clients/client-iotfleetwise/src/endpoint/ruleset.ts index d25343dd62a6b..50cd13c08efb4 100644 --- a/clients/client-iotfleetwise/src/endpoint/ruleset.ts +++ b/clients/client-iotfleetwise/src/endpoint/ruleset.ts @@ -1,311 +1,30 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: true, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://iotfleetwise-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://iotfleetwise-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://iotfleetwise.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://iotfleetwise.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/iotfleetwise.json */ + +const r="fn", +s="argv", +t="ref"; +const a=true, +b=false, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i={[t]:"Endpoint"}, +j={[r]:"booleanEquals",[s]:[{[t]:"UseFIPS"},true]}, +k={[r]:"booleanEquals",[s]:[{[t]:"UseDualStack"},true]}, +l={}, +m={[r]:"booleanEquals",[s]:[true,{[r]:"getAttr",[s]:[{[t]:e},"supportsFIPS"]}]}, +n={[r]:"booleanEquals",[s]:[true,{[r]:"getAttr",[s]:[{[t]:e},"supportsDualStack"]}]}, +o=[j], +p=[], +q=[k]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:a,default:b,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:a,default:b,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:b,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[r]:"aws.partition",[s]:[{[t]:"Region"}],assign:e}],type:f,rules:[{conditions:[{[r]:"isSet",[s]:[i]}],type:f,rules:[{conditions:o,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:p,type:f,rules:[{conditions:q,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:p,endpoint:{url:i,properties:l,headers:l},type:h}]}]},{conditions:[j,k],type:f,rules:[{conditions:[m,n],type:f,rules:[{conditions:p,endpoint:{url:"https://iotfleetwise-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:p,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:o,type:f,rules:[{conditions:[m],type:f,rules:[{conditions:p,type:f,rules:[{conditions:p,endpoint:{url:"https://iotfleetwise-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]},{conditions:p,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:q,type:f,rules:[{conditions:[n],type:f,rules:[{conditions:p,endpoint:{url:"https://iotfleetwise.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:p,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:p,endpoint:{url:"https://iotfleetwise.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-iotsecuretunneling/src/endpoint/ruleset.ts b/clients/client-iotsecuretunneling/src/endpoint/ruleset.ts index cbbdbf1b63af8..51ef4d3ac01b5 100644 --- a/clients/client-iotsecuretunneling/src/endpoint/ruleset.ts +++ b/clients/client-iotsecuretunneling/src/endpoint/ruleset.ts @@ -1,370 +1,34 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: false, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://api.tunneling.iot-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "stringEquals", - argv: [ - "aws", - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "name", - ], - }, - ], - }, - ], - endpoint: { - url: "https://api.tunneling.iot-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - { - conditions: [ - { - fn: "stringEquals", - argv: [ - "aws-us-gov", - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "name", - ], - }, - ], - }, - ], - endpoint: { - url: "https://api.tunneling.iot-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - { - conditions: [], - endpoint: { - url: "https://api.tunneling.iot-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://api.tunneling.iot.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://api.tunneling.iot.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/iotsecuretunneling.json */ + +const v="fn", +w="argv", +x="ref"; +const a=false, +b=true, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i="stringEquals", +j={[x]:"Endpoint"}, +k={[v]:"booleanEquals",[w]:[{[x]:"UseFIPS"},true]}, +l={[v]:"booleanEquals",[w]:[{[x]:"UseDualStack"},true]}, +m={}, +n={[v]:"booleanEquals",[w]:[true,{[v]:"getAttr",[w]:[{[x]:e},"supportsFIPS"]}]}, +o={[v]:"booleanEquals",[w]:[true,{[v]:"getAttr",[w]:[{[x]:e},"supportsDualStack"]}]}, +p={[v]:"getAttr",[w]:[{[x]:e},"name"]}, +q={"url":"https://api.tunneling.iot-fips.{Region}.{PartitionResult#dnsSuffix}","properties":{},"headers":{}}, +r=[j], +s=[k], +t=[], +u=[l]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:b,default:a,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:b,default:a,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:a,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[v]:"aws.partition",[w]:[{[x]:"Region"}],assign:e}],type:f,rules:[{conditions:[{[v]:"isSet",[w]:r},{[v]:"parseURL",[w]:r,assign:"url"}],type:f,rules:[{conditions:s,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:t,type:f,rules:[{conditions:u,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:t,endpoint:{url:j,properties:m,headers:m},type:h}]}]},{conditions:[k,l],type:f,rules:[{conditions:[n,o],type:f,rules:[{conditions:t,endpoint:{url:"https://api.tunneling.iot-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:m,headers:m},type:h}]},{conditions:t,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:s,type:f,rules:[{conditions:[n],type:f,rules:[{conditions:t,type:f,rules:[{conditions:[{[v]:i,[w]:["aws",p]}],endpoint:q,type:h},{conditions:[{[v]:i,[w]:["aws-us-gov",p]}],endpoint:q,type:h},{conditions:t,endpoint:q,type:h}]}]},{conditions:t,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:u,type:f,rules:[{conditions:[o],type:f,rules:[{conditions:t,endpoint:{url:"https://api.tunneling.iot.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:m,headers:m},type:h}]},{conditions:t,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:t,endpoint:{url:"https://api.tunneling.iot.{Region}.{PartitionResult#dnsSuffix}",properties:m,headers:m},type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-iotsitewise/src/endpoint/ruleset.ts b/clients/client-iotsitewise/src/endpoint/ruleset.ts index c7dbb43a25541..7dbb35ec91d52 100644 --- a/clients/client-iotsitewise/src/endpoint/ruleset.ts +++ b/clients/client-iotsitewise/src/endpoint/ruleset.ts @@ -1,320 +1,31 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: false, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://iotsitewise-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://iotsitewise-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://iotsitewise.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://iotsitewise.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/iotsitewise.json */ + +const s="fn", +t="argv", +u="ref"; +const a=false, +b=true, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i={[u]:"Endpoint"}, +j={[s]:"booleanEquals",[t]:[{[u]:"UseFIPS"},true]}, +k={[s]:"booleanEquals",[t]:[{[u]:"UseDualStack"},true]}, +l={}, +m={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsFIPS"]}]}, +n={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsDualStack"]}]}, +o=[i], +p=[j], +q=[], +r=[k]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:b,default:a,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:b,default:a,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:a,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[s]:"aws.partition",[t]:[{[u]:"Region"}],assign:e}],type:f,rules:[{conditions:[{[s]:"isSet",[t]:o},{[s]:"parseURL",[t]:o,assign:"url"}],type:f,rules:[{conditions:p,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:q,type:f,rules:[{conditions:r,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:q,endpoint:{url:i,properties:l,headers:l},type:h}]}]},{conditions:[j,k],type:f,rules:[{conditions:[m,n],type:f,rules:[{conditions:q,endpoint:{url:"https://iotsitewise-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:p,type:f,rules:[{conditions:[m],type:f,rules:[{conditions:q,type:f,rules:[{conditions:q,endpoint:{url:"https://iotsitewise-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]},{conditions:q,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:r,type:f,rules:[{conditions:[n],type:f,rules:[{conditions:q,endpoint:{url:"https://iotsitewise.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:q,endpoint:{url:"https://iotsitewise.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-iotthingsgraph/src/endpoint/ruleset.ts b/clients/client-iotthingsgraph/src/endpoint/ruleset.ts index 374397bc8daff..bc2d8ad0d4d8c 100644 --- a/clients/client-iotthingsgraph/src/endpoint/ruleset.ts +++ b/clients/client-iotthingsgraph/src/endpoint/ruleset.ts @@ -1,320 +1,31 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: false, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://iotthingsgraph-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://iotthingsgraph-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://iotthingsgraph.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://iotthingsgraph.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/iotthingsgraph.json */ + +const s="fn", +t="argv", +u="ref"; +const a=false, +b=true, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i={[u]:"Endpoint"}, +j={[s]:"booleanEquals",[t]:[{[u]:"UseFIPS"},true]}, +k={[s]:"booleanEquals",[t]:[{[u]:"UseDualStack"},true]}, +l={}, +m={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsFIPS"]}]}, +n={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsDualStack"]}]}, +o=[i], +p=[j], +q=[], +r=[k]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:b,default:a,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:b,default:a,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:a,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[s]:"aws.partition",[t]:[{[u]:"Region"}],assign:e}],type:f,rules:[{conditions:[{[s]:"isSet",[t]:o},{[s]:"parseURL",[t]:o,assign:"url"}],type:f,rules:[{conditions:p,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:q,type:f,rules:[{conditions:r,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:q,endpoint:{url:i,properties:l,headers:l},type:h}]}]},{conditions:[j,k],type:f,rules:[{conditions:[m,n],type:f,rules:[{conditions:q,endpoint:{url:"https://iotthingsgraph-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:p,type:f,rules:[{conditions:[m],type:f,rules:[{conditions:q,type:f,rules:[{conditions:q,endpoint:{url:"https://iotthingsgraph-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]},{conditions:q,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:r,type:f,rules:[{conditions:[n],type:f,rules:[{conditions:q,endpoint:{url:"https://iotthingsgraph.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:q,endpoint:{url:"https://iotthingsgraph.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-iottwinmaker/src/endpoint/ruleset.ts b/clients/client-iottwinmaker/src/endpoint/ruleset.ts index 243ca100951b9..05c9fd22c88f1 100644 --- a/clients/client-iottwinmaker/src/endpoint/ruleset.ts +++ b/clients/client-iottwinmaker/src/endpoint/ruleset.ts @@ -1,311 +1,30 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: true, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://iottwinmaker-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://iottwinmaker-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://iottwinmaker.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://iottwinmaker.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/iottwinmaker.json */ + +const r="fn", +s="argv", +t="ref"; +const a=true, +b=false, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i={[t]:"Endpoint"}, +j={[r]:"booleanEquals",[s]:[{[t]:"UseFIPS"},true]}, +k={[r]:"booleanEquals",[s]:[{[t]:"UseDualStack"},true]}, +l={}, +m={[r]:"booleanEquals",[s]:[true,{[r]:"getAttr",[s]:[{[t]:e},"supportsFIPS"]}]}, +n={[r]:"booleanEquals",[s]:[true,{[r]:"getAttr",[s]:[{[t]:e},"supportsDualStack"]}]}, +o=[j], +p=[], +q=[k]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:a,default:b,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:a,default:b,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:b,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[r]:"aws.partition",[s]:[{[t]:"Region"}],assign:e}],type:f,rules:[{conditions:[{[r]:"isSet",[s]:[i]}],type:f,rules:[{conditions:o,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:p,type:f,rules:[{conditions:q,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:p,endpoint:{url:i,properties:l,headers:l},type:h}]}]},{conditions:[j,k],type:f,rules:[{conditions:[m,n],type:f,rules:[{conditions:p,endpoint:{url:"https://iottwinmaker-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:p,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:o,type:f,rules:[{conditions:[m],type:f,rules:[{conditions:p,type:f,rules:[{conditions:p,endpoint:{url:"https://iottwinmaker-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]},{conditions:p,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:q,type:f,rules:[{conditions:[n],type:f,rules:[{conditions:p,endpoint:{url:"https://iottwinmaker.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:p,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:p,endpoint:{url:"https://iottwinmaker.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-ivs/src/endpoint/ruleset.ts b/clients/client-ivs/src/endpoint/ruleset.ts index d78bcb957da80..67b34d2309da0 100644 --- a/clients/client-ivs/src/endpoint/ruleset.ts +++ b/clients/client-ivs/src/endpoint/ruleset.ts @@ -1,320 +1,31 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: false, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://ivs-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://ivs-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://ivs.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://ivs.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/ivs.json */ + +const s="fn", +t="argv", +u="ref"; +const a=false, +b=true, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i={[u]:"Endpoint"}, +j={[s]:"booleanEquals",[t]:[{[u]:"UseFIPS"},true]}, +k={[s]:"booleanEquals",[t]:[{[u]:"UseDualStack"},true]}, +l={}, +m={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsFIPS"]}]}, +n={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsDualStack"]}]}, +o=[i], +p=[j], +q=[], +r=[k]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:b,default:a,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:b,default:a,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:a,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[s]:"aws.partition",[t]:[{[u]:"Region"}],assign:e}],type:f,rules:[{conditions:[{[s]:"isSet",[t]:o},{[s]:"parseURL",[t]:o,assign:"url"}],type:f,rules:[{conditions:p,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:q,type:f,rules:[{conditions:r,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:q,endpoint:{url:i,properties:l,headers:l},type:h}]}]},{conditions:[j,k],type:f,rules:[{conditions:[m,n],type:f,rules:[{conditions:q,endpoint:{url:"https://ivs-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:p,type:f,rules:[{conditions:[m],type:f,rules:[{conditions:q,type:f,rules:[{conditions:q,endpoint:{url:"https://ivs-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]},{conditions:q,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:r,type:f,rules:[{conditions:[n],type:f,rules:[{conditions:q,endpoint:{url:"https://ivs.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:q,endpoint:{url:"https://ivs.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-ivschat/src/endpoint/ruleset.ts b/clients/client-ivschat/src/endpoint/ruleset.ts index 0649f86a65505..19e33798be070 100644 --- a/clients/client-ivschat/src/endpoint/ruleset.ts +++ b/clients/client-ivschat/src/endpoint/ruleset.ts @@ -1,320 +1,31 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: true, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://ivschat-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://ivschat-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://ivschat.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://ivschat.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/ivschat.json */ + +const s="fn", +t="argv", +u="ref"; +const a=true, +b=false, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i={[u]:"Endpoint"}, +j={[s]:"booleanEquals",[t]:[{[u]:"UseFIPS"},true]}, +k={[s]:"booleanEquals",[t]:[{[u]:"UseDualStack"},true]}, +l={}, +m={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsFIPS"]}]}, +n={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsDualStack"]}]}, +o=[i], +p=[j], +q=[], +r=[k]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:a,default:b,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:a,default:b,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:b,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[s]:"aws.partition",[t]:[{[u]:"Region"}],assign:e}],type:f,rules:[{conditions:[{[s]:"isSet",[t]:o},{[s]:"parseURL",[t]:o,assign:"url"}],type:f,rules:[{conditions:p,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:q,type:f,rules:[{conditions:r,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:q,endpoint:{url:i,properties:l,headers:l},type:h}]}]},{conditions:[j,k],type:f,rules:[{conditions:[m,n],type:f,rules:[{conditions:q,endpoint:{url:"https://ivschat-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:p,type:f,rules:[{conditions:[m],type:f,rules:[{conditions:q,type:f,rules:[{conditions:q,endpoint:{url:"https://ivschat-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]},{conditions:q,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:r,type:f,rules:[{conditions:[n],type:f,rules:[{conditions:q,endpoint:{url:"https://ivschat.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:q,endpoint:{url:"https://ivschat.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-kafka/src/endpoint/ruleset.ts b/clients/client-kafka/src/endpoint/ruleset.ts index 523e0c02ffe2f..4647f021260f6 100644 --- a/clients/client-kafka/src/endpoint/ruleset.ts +++ b/clients/client-kafka/src/endpoint/ruleset.ts @@ -1,320 +1,31 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: false, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://kafka-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://kafka-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://kafka.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://kafka.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/kafka.json */ + +const s="fn", +t="argv", +u="ref"; +const a=false, +b=true, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i={[u]:"Endpoint"}, +j={[s]:"booleanEquals",[t]:[{[u]:"UseFIPS"},true]}, +k={[s]:"booleanEquals",[t]:[{[u]:"UseDualStack"},true]}, +l={}, +m={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsFIPS"]}]}, +n={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsDualStack"]}]}, +o=[i], +p=[j], +q=[], +r=[k]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:b,default:a,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:b,default:a,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:a,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[s]:"aws.partition",[t]:[{[u]:"Region"}],assign:e}],type:f,rules:[{conditions:[{[s]:"isSet",[t]:o},{[s]:"parseURL",[t]:o,assign:"url"}],type:f,rules:[{conditions:p,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:q,type:f,rules:[{conditions:r,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:q,endpoint:{url:i,properties:l,headers:l},type:h}]}]},{conditions:[j,k],type:f,rules:[{conditions:[m,n],type:f,rules:[{conditions:q,endpoint:{url:"https://kafka-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:p,type:f,rules:[{conditions:[m],type:f,rules:[{conditions:q,type:f,rules:[{conditions:q,endpoint:{url:"https://kafka-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]},{conditions:q,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:r,type:f,rules:[{conditions:[n],type:f,rules:[{conditions:q,endpoint:{url:"https://kafka.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:q,endpoint:{url:"https://kafka.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-kafkaconnect/src/endpoint/ruleset.ts b/clients/client-kafkaconnect/src/endpoint/ruleset.ts index e829a06dfb9b4..9170116c79348 100644 --- a/clients/client-kafkaconnect/src/endpoint/ruleset.ts +++ b/clients/client-kafkaconnect/src/endpoint/ruleset.ts @@ -1,320 +1,31 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: false, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://kafkaconnect-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://kafkaconnect-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://kafkaconnect.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://kafkaconnect.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/kafkaconnect.json */ + +const s="fn", +t="argv", +u="ref"; +const a=false, +b=true, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i={[u]:"Endpoint"}, +j={[s]:"booleanEquals",[t]:[{[u]:"UseFIPS"},true]}, +k={[s]:"booleanEquals",[t]:[{[u]:"UseDualStack"},true]}, +l={}, +m={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsFIPS"]}]}, +n={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsDualStack"]}]}, +o=[i], +p=[j], +q=[], +r=[k]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:b,default:a,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:b,default:a,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:a,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[s]:"aws.partition",[t]:[{[u]:"Region"}],assign:e}],type:f,rules:[{conditions:[{[s]:"isSet",[t]:o},{[s]:"parseURL",[t]:o,assign:"url"}],type:f,rules:[{conditions:p,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:q,type:f,rules:[{conditions:r,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:q,endpoint:{url:i,properties:l,headers:l},type:h}]}]},{conditions:[j,k],type:f,rules:[{conditions:[m,n],type:f,rules:[{conditions:q,endpoint:{url:"https://kafkaconnect-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:p,type:f,rules:[{conditions:[m],type:f,rules:[{conditions:q,type:f,rules:[{conditions:q,endpoint:{url:"https://kafkaconnect-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]},{conditions:q,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:r,type:f,rules:[{conditions:[n],type:f,rules:[{conditions:q,endpoint:{url:"https://kafkaconnect.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:q,endpoint:{url:"https://kafkaconnect.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-kendra/src/endpoint/ruleset.ts b/clients/client-kendra/src/endpoint/ruleset.ts index 23f8736c08c03..e1ac1e17e1168 100644 --- a/clients/client-kendra/src/endpoint/ruleset.ts +++ b/clients/client-kendra/src/endpoint/ruleset.ts @@ -1,320 +1,31 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: true, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://kendra-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://kendra-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://kendra.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://kendra.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/kendra.json */ + +const s="fn", +t="argv", +u="ref"; +const a=true, +b=false, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i={[u]:"Endpoint"}, +j={[s]:"booleanEquals",[t]:[{[u]:"UseFIPS"},true]}, +k={[s]:"booleanEquals",[t]:[{[u]:"UseDualStack"},true]}, +l={}, +m={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsFIPS"]}]}, +n={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsDualStack"]}]}, +o=[i], +p=[j], +q=[], +r=[k]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:a,default:b,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:a,default:b,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:b,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[s]:"aws.partition",[t]:[{[u]:"Region"}],assign:e}],type:f,rules:[{conditions:[{[s]:"isSet",[t]:o},{[s]:"parseURL",[t]:o,assign:"url"}],type:f,rules:[{conditions:p,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:q,type:f,rules:[{conditions:r,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:q,endpoint:{url:i,properties:l,headers:l},type:h}]}]},{conditions:[j,k],type:f,rules:[{conditions:[m,n],type:f,rules:[{conditions:q,endpoint:{url:"https://kendra-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:p,type:f,rules:[{conditions:[m],type:f,rules:[{conditions:q,type:f,rules:[{conditions:q,endpoint:{url:"https://kendra-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]},{conditions:q,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:r,type:f,rules:[{conditions:[n],type:f,rules:[{conditions:q,endpoint:{url:"https://kendra.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:q,endpoint:{url:"https://kendra.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-keyspaces/src/endpoint/ruleset.ts b/clients/client-keyspaces/src/endpoint/ruleset.ts index ee288e30b88ba..9c87dbcb9504e 100644 --- a/clients/client-keyspaces/src/endpoint/ruleset.ts +++ b/clients/client-keyspaces/src/endpoint/ruleset.ts @@ -1,314 +1,31 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: false, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://cassandra-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://cassandra-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://cassandra.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://cassandra.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/keyspaces.json */ + +const s="fn", +t="argv", +u="ref"; +const a=false, +b=true, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i={[u]:"Endpoint"}, +j={[s]:"booleanEquals",[t]:[{[u]:"UseFIPS"},true]}, +k={[s]:"booleanEquals",[t]:[{[u]:"UseDualStack"},true]}, +l={}, +m={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsFIPS"]}]}, +n={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsDualStack"]}]}, +o=[i], +p=[j], +q=[], +r=[k]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:b,default:a,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:b,default:a,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:a,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[s]:"aws.partition",[t]:[{[u]:"Region"}],assign:e}],type:f,rules:[{conditions:[{[s]:"isSet",[t]:o},{[s]:"parseURL",[t]:o,assign:"url"}],type:f,rules:[{conditions:p,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:q,type:f,rules:[{conditions:r,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:q,endpoint:{url:i,properties:l,headers:l},type:h}]}]},{conditions:[j,k],type:f,rules:[{conditions:[m,n],type:f,rules:[{conditions:q,endpoint:{url:"https://cassandra-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:p,type:f,rules:[{conditions:[m],type:f,rules:[{conditions:q,endpoint:{url:"https://cassandra-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:r,type:f,rules:[{conditions:[n],type:f,rules:[{conditions:q,endpoint:{url:"https://cassandra.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:q,endpoint:{url:"https://cassandra.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-kinesis-analytics-v2/src/endpoint/ruleset.ts b/clients/client-kinesis-analytics-v2/src/endpoint/ruleset.ts index 9036654d46296..729b9c6f1eb3c 100644 --- a/clients/client-kinesis-analytics-v2/src/endpoint/ruleset.ts +++ b/clients/client-kinesis-analytics-v2/src/endpoint/ruleset.ts @@ -1,320 +1,31 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: false, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://kinesisanalytics-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://kinesisanalytics-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://kinesisanalytics.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://kinesisanalytics.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/kinesis-analytics-v2.json */ + +const s="fn", +t="argv", +u="ref"; +const a=false, +b=true, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i={[u]:"Endpoint"}, +j={[s]:"booleanEquals",[t]:[{[u]:"UseFIPS"},true]}, +k={[s]:"booleanEquals",[t]:[{[u]:"UseDualStack"},true]}, +l={}, +m={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsFIPS"]}]}, +n={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsDualStack"]}]}, +o=[i], +p=[j], +q=[], +r=[k]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:b,default:a,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:b,default:a,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:a,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[s]:"aws.partition",[t]:[{[u]:"Region"}],assign:e}],type:f,rules:[{conditions:[{[s]:"isSet",[t]:o},{[s]:"parseURL",[t]:o,assign:"url"}],type:f,rules:[{conditions:p,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:q,type:f,rules:[{conditions:r,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:q,endpoint:{url:i,properties:l,headers:l},type:h}]}]},{conditions:[j,k],type:f,rules:[{conditions:[m,n],type:f,rules:[{conditions:q,endpoint:{url:"https://kinesisanalytics-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:p,type:f,rules:[{conditions:[m],type:f,rules:[{conditions:q,type:f,rules:[{conditions:q,endpoint:{url:"https://kinesisanalytics-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]},{conditions:q,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:r,type:f,rules:[{conditions:[n],type:f,rules:[{conditions:q,endpoint:{url:"https://kinesisanalytics.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:q,endpoint:{url:"https://kinesisanalytics.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-kinesis-analytics/src/endpoint/ruleset.ts b/clients/client-kinesis-analytics/src/endpoint/ruleset.ts index 9036654d46296..9d9209ae50cbd 100644 --- a/clients/client-kinesis-analytics/src/endpoint/ruleset.ts +++ b/clients/client-kinesis-analytics/src/endpoint/ruleset.ts @@ -1,320 +1,31 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: false, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://kinesisanalytics-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://kinesisanalytics-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://kinesisanalytics.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://kinesisanalytics.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/kinesis-analytics.json */ + +const s="fn", +t="argv", +u="ref"; +const a=false, +b=true, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i={[u]:"Endpoint"}, +j={[s]:"booleanEquals",[t]:[{[u]:"UseFIPS"},true]}, +k={[s]:"booleanEquals",[t]:[{[u]:"UseDualStack"},true]}, +l={}, +m={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsFIPS"]}]}, +n={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsDualStack"]}]}, +o=[i], +p=[j], +q=[], +r=[k]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:b,default:a,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:b,default:a,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:a,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[s]:"aws.partition",[t]:[{[u]:"Region"}],assign:e}],type:f,rules:[{conditions:[{[s]:"isSet",[t]:o},{[s]:"parseURL",[t]:o,assign:"url"}],type:f,rules:[{conditions:p,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:q,type:f,rules:[{conditions:r,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:q,endpoint:{url:i,properties:l,headers:l},type:h}]}]},{conditions:[j,k],type:f,rules:[{conditions:[m,n],type:f,rules:[{conditions:q,endpoint:{url:"https://kinesisanalytics-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:p,type:f,rules:[{conditions:[m],type:f,rules:[{conditions:q,type:f,rules:[{conditions:q,endpoint:{url:"https://kinesisanalytics-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]},{conditions:q,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:r,type:f,rules:[{conditions:[n],type:f,rules:[{conditions:q,endpoint:{url:"https://kinesisanalytics.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:q,endpoint:{url:"https://kinesisanalytics.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-kinesis-video-archived-media/src/endpoint/ruleset.ts b/clients/client-kinesis-video-archived-media/src/endpoint/ruleset.ts index 9b2242a423d04..a4fb3ce71a028 100644 --- a/clients/client-kinesis-video-archived-media/src/endpoint/ruleset.ts +++ b/clients/client-kinesis-video-archived-media/src/endpoint/ruleset.ts @@ -1,320 +1,31 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: false, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://kinesisvideo-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://kinesisvideo-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://kinesisvideo.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://kinesisvideo.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/kinesis-video-archived-media.json */ + +const s="fn", +t="argv", +u="ref"; +const a=false, +b=true, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i={[u]:"Endpoint"}, +j={[s]:"booleanEquals",[t]:[{[u]:"UseFIPS"},true]}, +k={[s]:"booleanEquals",[t]:[{[u]:"UseDualStack"},true]}, +l={}, +m={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsFIPS"]}]}, +n={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsDualStack"]}]}, +o=[i], +p=[j], +q=[], +r=[k]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:b,default:a,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:b,default:a,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:a,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[s]:"aws.partition",[t]:[{[u]:"Region"}],assign:e}],type:f,rules:[{conditions:[{[s]:"isSet",[t]:o},{[s]:"parseURL",[t]:o,assign:"url"}],type:f,rules:[{conditions:p,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:q,type:f,rules:[{conditions:r,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:q,endpoint:{url:i,properties:l,headers:l},type:h}]}]},{conditions:[j,k],type:f,rules:[{conditions:[m,n],type:f,rules:[{conditions:q,endpoint:{url:"https://kinesisvideo-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:p,type:f,rules:[{conditions:[m],type:f,rules:[{conditions:q,type:f,rules:[{conditions:q,endpoint:{url:"https://kinesisvideo-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]},{conditions:q,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:r,type:f,rules:[{conditions:[n],type:f,rules:[{conditions:q,endpoint:{url:"https://kinesisvideo.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:q,endpoint:{url:"https://kinesisvideo.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-kinesis-video-media/src/endpoint/ruleset.ts b/clients/client-kinesis-video-media/src/endpoint/ruleset.ts index 9b2242a423d04..f3a282e3ed509 100644 --- a/clients/client-kinesis-video-media/src/endpoint/ruleset.ts +++ b/clients/client-kinesis-video-media/src/endpoint/ruleset.ts @@ -1,320 +1,31 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: false, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://kinesisvideo-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://kinesisvideo-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://kinesisvideo.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://kinesisvideo.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/kinesis-video-media.json */ + +const s="fn", +t="argv", +u="ref"; +const a=false, +b=true, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i={[u]:"Endpoint"}, +j={[s]:"booleanEquals",[t]:[{[u]:"UseFIPS"},true]}, +k={[s]:"booleanEquals",[t]:[{[u]:"UseDualStack"},true]}, +l={}, +m={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsFIPS"]}]}, +n={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsDualStack"]}]}, +o=[i], +p=[j], +q=[], +r=[k]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:b,default:a,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:b,default:a,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:a,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[s]:"aws.partition",[t]:[{[u]:"Region"}],assign:e}],type:f,rules:[{conditions:[{[s]:"isSet",[t]:o},{[s]:"parseURL",[t]:o,assign:"url"}],type:f,rules:[{conditions:p,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:q,type:f,rules:[{conditions:r,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:q,endpoint:{url:i,properties:l,headers:l},type:h}]}]},{conditions:[j,k],type:f,rules:[{conditions:[m,n],type:f,rules:[{conditions:q,endpoint:{url:"https://kinesisvideo-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:p,type:f,rules:[{conditions:[m],type:f,rules:[{conditions:q,type:f,rules:[{conditions:q,endpoint:{url:"https://kinesisvideo-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]},{conditions:q,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:r,type:f,rules:[{conditions:[n],type:f,rules:[{conditions:q,endpoint:{url:"https://kinesisvideo.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:q,endpoint:{url:"https://kinesisvideo.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-kinesis-video-signaling/src/endpoint/ruleset.ts b/clients/client-kinesis-video-signaling/src/endpoint/ruleset.ts index 9b2242a423d04..d9d881a38236a 100644 --- a/clients/client-kinesis-video-signaling/src/endpoint/ruleset.ts +++ b/clients/client-kinesis-video-signaling/src/endpoint/ruleset.ts @@ -1,320 +1,31 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: false, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://kinesisvideo-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://kinesisvideo-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://kinesisvideo.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://kinesisvideo.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/kinesis-video-signaling.json */ + +const s="fn", +t="argv", +u="ref"; +const a=false, +b=true, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i={[u]:"Endpoint"}, +j={[s]:"booleanEquals",[t]:[{[u]:"UseFIPS"},true]}, +k={[s]:"booleanEquals",[t]:[{[u]:"UseDualStack"},true]}, +l={}, +m={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsFIPS"]}]}, +n={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsDualStack"]}]}, +o=[i], +p=[j], +q=[], +r=[k]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:b,default:a,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:b,default:a,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:a,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[s]:"aws.partition",[t]:[{[u]:"Region"}],assign:e}],type:f,rules:[{conditions:[{[s]:"isSet",[t]:o},{[s]:"parseURL",[t]:o,assign:"url"}],type:f,rules:[{conditions:p,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:q,type:f,rules:[{conditions:r,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:q,endpoint:{url:i,properties:l,headers:l},type:h}]}]},{conditions:[j,k],type:f,rules:[{conditions:[m,n],type:f,rules:[{conditions:q,endpoint:{url:"https://kinesisvideo-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:p,type:f,rules:[{conditions:[m],type:f,rules:[{conditions:q,type:f,rules:[{conditions:q,endpoint:{url:"https://kinesisvideo-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]},{conditions:q,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:r,type:f,rules:[{conditions:[n],type:f,rules:[{conditions:q,endpoint:{url:"https://kinesisvideo.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:q,endpoint:{url:"https://kinesisvideo.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-kinesis-video-webrtc-storage/src/endpoint/ruleset.ts b/clients/client-kinesis-video-webrtc-storage/src/endpoint/ruleset.ts index 0d3f42553880f..5ac2f01e91c09 100644 --- a/clients/client-kinesis-video-webrtc-storage/src/endpoint/ruleset.ts +++ b/clients/client-kinesis-video-webrtc-storage/src/endpoint/ruleset.ts @@ -1,305 +1,30 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: true, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://kinesisvideo-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://kinesisvideo-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://kinesisvideo.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://kinesisvideo.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/kinesis-video-webrtc-storage.json */ + +const r="fn", +s="argv", +t="ref"; +const a=true, +b=false, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i={[t]:"Endpoint"}, +j={[r]:"booleanEquals",[s]:[{[t]:"UseFIPS"},true]}, +k={[r]:"booleanEquals",[s]:[{[t]:"UseDualStack"},true]}, +l={}, +m={[r]:"booleanEquals",[s]:[true,{[r]:"getAttr",[s]:[{[t]:e},"supportsFIPS"]}]}, +n={[r]:"booleanEquals",[s]:[true,{[r]:"getAttr",[s]:[{[t]:e},"supportsDualStack"]}]}, +o=[j], +p=[], +q=[k]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:a,default:b,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:a,default:b,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:b,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[r]:"aws.partition",[s]:[{[t]:"Region"}],assign:e}],type:f,rules:[{conditions:[{[r]:"isSet",[s]:[i]}],type:f,rules:[{conditions:o,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:p,type:f,rules:[{conditions:q,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:p,endpoint:{url:i,properties:l,headers:l},type:h}]}]},{conditions:[j,k],type:f,rules:[{conditions:[m,n],type:f,rules:[{conditions:p,endpoint:{url:"https://kinesisvideo-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:p,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:o,type:f,rules:[{conditions:[m],type:f,rules:[{conditions:p,endpoint:{url:"https://kinesisvideo-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]},{conditions:p,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:q,type:f,rules:[{conditions:[n],type:f,rules:[{conditions:p,endpoint:{url:"https://kinesisvideo.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:p,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:p,endpoint:{url:"https://kinesisvideo.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-kinesis-video/src/endpoint/ruleset.ts b/clients/client-kinesis-video/src/endpoint/ruleset.ts index de6715d388dbc..d9de0b21ba184 100644 --- a/clients/client-kinesis-video/src/endpoint/ruleset.ts +++ b/clients/client-kinesis-video/src/endpoint/ruleset.ts @@ -1,311 +1,30 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: true, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://kinesisvideo-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://kinesisvideo-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://kinesisvideo.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://kinesisvideo.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/kinesis-video.json */ + +const r="fn", +s="argv", +t="ref"; +const a=true, +b=false, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i={[t]:"Endpoint"}, +j={[r]:"booleanEquals",[s]:[{[t]:"UseFIPS"},true]}, +k={[r]:"booleanEquals",[s]:[{[t]:"UseDualStack"},true]}, +l={}, +m={[r]:"booleanEquals",[s]:[true,{[r]:"getAttr",[s]:[{[t]:e},"supportsFIPS"]}]}, +n={[r]:"booleanEquals",[s]:[true,{[r]:"getAttr",[s]:[{[t]:e},"supportsDualStack"]}]}, +o=[j], +p=[], +q=[k]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:a,default:b,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:a,default:b,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:b,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[r]:"aws.partition",[s]:[{[t]:"Region"}],assign:e}],type:f,rules:[{conditions:[{[r]:"isSet",[s]:[i]}],type:f,rules:[{conditions:o,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:p,type:f,rules:[{conditions:q,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:p,endpoint:{url:i,properties:l,headers:l},type:h}]}]},{conditions:[j,k],type:f,rules:[{conditions:[m,n],type:f,rules:[{conditions:p,endpoint:{url:"https://kinesisvideo-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:p,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:o,type:f,rules:[{conditions:[m],type:f,rules:[{conditions:p,type:f,rules:[{conditions:p,endpoint:{url:"https://kinesisvideo-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]},{conditions:p,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:q,type:f,rules:[{conditions:[n],type:f,rules:[{conditions:p,endpoint:{url:"https://kinesisvideo.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:p,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:p,endpoint:{url:"https://kinesisvideo.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-kinesis/src/endpoint/ruleset.ts b/clients/client-kinesis/src/endpoint/ruleset.ts index 575b6ac16ba6d..ce11aa4a2bf91 100644 --- a/clients/client-kinesis/src/endpoint/ruleset.ts +++ b/clients/client-kinesis/src/endpoint/ruleset.ts @@ -1,1401 +1,48 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.3", - parameters: { - Region: { - builtIn: "AWS::Region", - required: true, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - StreamARN: { - required: false, - documentation: "The ARN of the Kinesis stream", - type: "String", - }, - OperationType: { - required: false, - documentation: - "Internal parameter to distinguish between Control/Data plane API and accordingly generate control/data plane endpoint", - type: "String", - }, - ConsumerARN: { - required: false, - documentation: "The ARN of the Kinesis consumer", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "StreamARN", - }, - ], - }, - { - fn: "not", - argv: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - ], - }, - { - fn: "not", - argv: [ - { - fn: "stringEquals", - argv: [ - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "name", - ], - }, - "aws-iso", - ], - }, - ], - }, - { - fn: "not", - argv: [ - { - fn: "stringEquals", - argv: [ - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "name", - ], - }, - "aws-iso-b", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "aws.parseArn", - argv: [ - { - ref: "StreamARN", - }, - ], - assign: "arn", - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isValidHostLabel", - argv: [ - { - fn: "getAttr", - argv: [ - { - ref: "arn", - }, - "accountId", - ], - }, - false, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isValidHostLabel", - argv: [ - { - fn: "getAttr", - argv: [ - { - ref: "arn", - }, - "region", - ], - }, - false, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "stringEquals", - argv: [ - { - fn: "getAttr", - argv: [ - { - ref: "arn", - }, - "service", - ], - }, - "kinesis", - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "getAttr", - argv: [ - { - ref: "arn", - }, - "resourceId[0]", - ], - assign: "arnType", - }, - { - fn: "not", - argv: [ - { - fn: "stringEquals", - argv: [ - { - ref: "arnType", - }, - "", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "stringEquals", - argv: [ - { - ref: "arnType", - }, - "stream", - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "stringEquals", - argv: [ - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "name", - ], - }, - "{arn#partition}", - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "OperationType", - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://{arn#accountId}.{OperationType}-kinesis-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: - "DualStack is enabled, but this partition does not support DualStack.", - type: "error", - }, - ], - }, - ], - }, - { - conditions: [], - error: - "FIPS is enabled, but this partition does not support FIPS.", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://{arn#accountId}.{OperationType}-kinesis-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: - "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://{arn#accountId}.{OperationType}-kinesis.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: - "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://{arn#accountId}.{OperationType}-kinesis.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [], - error: - "Operation Type is not set. Please contact service team for resolution.", - type: "error", - }, - ], - }, - ], - }, - { - conditions: [], - error: - "Partition: {arn#partition} from ARN doesn't match with partition name: {PartitionResult#name}.", - type: "error", - }, - ], - }, - ], - }, - { - conditions: [], - error: - "Invalid ARN: Kinesis ARNs don't support `{arnType}` arn types.", - type: "error", - }, - ], - }, - ], - }, - { - conditions: [], - error: "Invalid ARN: No ARN type specified", - type: "error", - }, - ], - }, - ], - }, - { - conditions: [], - error: - "Invalid ARN: The ARN was not for the Kinesis service, found: {arn#service}.", - type: "error", - }, - ], - }, - ], - }, - { - conditions: [], - error: "Invalid ARN: Invalid region.", - type: "error", - }, - ], - }, - ], - }, - { - conditions: [], - error: "Invalid ARN: Invalid account id.", - type: "error", - }, - ], - }, - ], - }, - { - conditions: [], - error: "Invalid ARN: Failed to parse ARN.", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "ConsumerARN", - }, - ], - }, - { - fn: "not", - argv: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - ], - }, - { - fn: "not", - argv: [ - { - fn: "stringEquals", - argv: [ - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "name", - ], - }, - "aws-iso", - ], - }, - ], - }, - { - fn: "not", - argv: [ - { - fn: "stringEquals", - argv: [ - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "name", - ], - }, - "aws-iso-b", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "aws.parseArn", - argv: [ - { - ref: "ConsumerARN", - }, - ], - assign: "arn", - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isValidHostLabel", - argv: [ - { - fn: "getAttr", - argv: [ - { - ref: "arn", - }, - "accountId", - ], - }, - false, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isValidHostLabel", - argv: [ - { - fn: "getAttr", - argv: [ - { - ref: "arn", - }, - "region", - ], - }, - false, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "stringEquals", - argv: [ - { - fn: "getAttr", - argv: [ - { - ref: "arn", - }, - "service", - ], - }, - "kinesis", - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "getAttr", - argv: [ - { - ref: "arn", - }, - "resourceId[0]", - ], - assign: "arnType", - }, - { - fn: "not", - argv: [ - { - fn: "stringEquals", - argv: [ - { - ref: "arnType", - }, - "", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "stringEquals", - argv: [ - { - ref: "arnType", - }, - "stream", - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "stringEquals", - argv: [ - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "name", - ], - }, - "{arn#partition}", - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "OperationType", - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://{arn#accountId}.{OperationType}-kinesis-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: - "DualStack is enabled, but this partition does not support DualStack.", - type: "error", - }, - ], - }, - ], - }, - { - conditions: [], - error: - "FIPS is enabled, but this partition does not support FIPS.", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://{arn#accountId}.{OperationType}-kinesis-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: - "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://{arn#accountId}.{OperationType}-kinesis.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: - "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://{arn#accountId}.{OperationType}-kinesis.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [], - error: - "Operation Type is not set. Please contact service team for resolution.", - type: "error", - }, - ], - }, - ], - }, - { - conditions: [], - error: - "Partition: {arn#partition} from ARN doesn't match with partition name: {PartitionResult#name}.", - type: "error", - }, - ], - }, - ], - }, - { - conditions: [], - error: - "Invalid ARN: Kinesis ARNs don't support `{arnType}` arn types.", - type: "error", - }, - ], - }, - ], - }, - { - conditions: [], - error: "Invalid ARN: No ARN type specified", - type: "error", - }, - ], - }, - ], - }, - { - conditions: [], - error: - "Invalid ARN: The ARN was not for the Kinesis service, found: {arn#service}.", - type: "error", - }, - ], - }, - ], - }, - { - conditions: [], - error: "Invalid ARN: Invalid region.", - type: "error", - }, - ], - }, - ], - }, - { - conditions: [], - error: "Invalid ARN: Invalid account id.", - type: "error", - }, - ], - }, - ], - }, - { - conditions: [], - error: "Invalid ARN: Failed to parse ARN.", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://kinesis-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://kinesis-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://kinesis.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://kinesis.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/kinesis.json */ + +const D="type", +E="rules", +F="conditions", +G="fn", +H="argv", +I="ref", +J="url", +K="properties", +L="headers"; +const a=true, +b=false, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="isSet", +h="aws.parseArn", +i="arn", +j="endpoint", +k="error", +l={[G]:"not",[H]:[{[G]:g,[H]:[{[I]:"Endpoint"}]}]}, +m={[I]:"Endpoint"}, +n={[G]:"not",[H]:[{[G]:"stringEquals",[H]:[{[G]:"getAttr",[H]:[{[I]:e},"name"]},"aws-iso"]}]}, +o={[G]:"not",[H]:[{[G]:"stringEquals",[H]:[{[G]:"getAttr",[H]:[{[I]:e},"name"]},"aws-iso-b"]}]}, +p={}, +q={[F]:[],[k]:"FIPS is enabled but this partition does not support FIPS",[D]:k}, +r={[F]:[],[k]:"DualStack is enabled but this partition does not support DualStack",[D]:k}, +s={[F]:[],[k]:"Invalid ARN: Failed to parse ARN.",[D]:k}, +t={[G]:"booleanEquals",[H]:[true,{[G]:"getAttr",[H]:[{[I]:e},"supportsFIPS"]}]}, +u={[G]:"booleanEquals",[H]:[true,{[G]:"getAttr",[H]:[{[I]:e},"supportsDualStack"]}]}, +v=[{[I]:"StreamARN"}], +w=[{[G]:g,[H]:[m]}], +x=[{[F]:[],[D]:f,[E]:[{[F]:[{[G]:"isValidHostLabel",[H]:[{[G]:"getAttr",[H]:[{[I]:i},"accountId"]},false]}],[D]:f,[E]:[{[F]:[],[D]:f,[E]:[{[F]:[{[G]:"isValidHostLabel",[H]:[{[G]:"getAttr",[H]:[{[I]:i},"region"]},false]}],[D]:f,[E]:[{[F]:[],[D]:f,[E]:[{[F]:[{[G]:"stringEquals",[H]:[{[G]:"getAttr",[H]:[{[I]:i},"service"]},"kinesis"]}],[D]:f,[E]:[{[F]:[],[D]:f,[E]:[{[F]:[{[G]:"getAttr",[H]:[{[I]:i},"resourceId[0]"],"assign":"arnType"},{[G]:"not",[H]:[{[G]:"stringEquals",[H]:[{[I]:"arnType"},""]}]}],[D]:f,[E]:[{[F]:[],[D]:f,[E]:[{[F]:[{[G]:"stringEquals",[H]:[{[I]:"arnType"},"stream"]}],[D]:f,[E]:[{[F]:[],[D]:f,[E]:[{[F]:[{[G]:"stringEquals",[H]:[{[G]:"getAttr",[H]:[{[I]:e},"name"]},"{arn#partition}"]}],[D]:f,[E]:[{[F]:[],[D]:f,[E]:[{[F]:[{[G]:g,[H]:[{[I]:"OperationType"}]}],[D]:f,[E]:[{[F]:[],[D]:f,[E]:[{[F]:[{[G]:"booleanEquals",[H]:[{[I]:"UseFIPS"},true]},{[G]:"booleanEquals",[H]:[{[I]:"UseDualStack"},true]}],[D]:f,[E]:[{[F]:[{[G]:"booleanEquals",[H]:[{[G]:"getAttr",[H]:[{[I]:e},"supportsFIPS"]},true]}],[D]:f,[E]:[{[F]:[],[D]:f,[E]:[{[F]:[{[G]:"booleanEquals",[H]:[{[G]:"getAttr",[H]:[{[I]:e},"supportsDualStack"]},true]}],[D]:f,[E]:[{[F]:[],[j]:{[J]:"https://{arn#accountId}.{OperationType}-kinesis-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",[K]:{},[L]:{}},[D]:j}]},{[F]:[],[k]:"DualStack is enabled, but this partition does not support DualStack.",[D]:k}]}]},{[F]:[],[k]:"FIPS is enabled, but this partition does not support FIPS.",[D]:k}]},{[F]:[{[G]:"booleanEquals",[H]:[{[I]:"UseFIPS"},true]}],[D]:f,[E]:[{[F]:[{[G]:"booleanEquals",[H]:[{[G]:"getAttr",[H]:[{[I]:e},"supportsFIPS"]},true]}],[D]:f,[E]:[{[F]:[],[j]:{[J]:"https://{arn#accountId}.{OperationType}-kinesis-fips.{Region}.{PartitionResult#dnsSuffix}",[K]:{},[L]:{}},[D]:j}]},q]},{[F]:[{[G]:"booleanEquals",[H]:[{[I]:"UseDualStack"},true]}],[D]:f,[E]:[{[F]:[{[G]:"booleanEquals",[H]:[{[G]:"getAttr",[H]:[{[I]:e},"supportsDualStack"]},true]}],[D]:f,[E]:[{[F]:[],[j]:{[J]:"https://{arn#accountId}.{OperationType}-kinesis.{Region}.{PartitionResult#dualStackDnsSuffix}",[K]:{},[L]:{}},[D]:j}]},r]},{[F]:[],[j]:{[J]:"https://{arn#accountId}.{OperationType}-kinesis.{Region}.{PartitionResult#dnsSuffix}",[K]:{},[L]:{}},[D]:j}]}]},{[F]:[],[k]:"Operation Type is not set. Please contact service team for resolution.",[D]:k}]}]},{[F]:[],[k]:"Partition: {arn#partition} from ARN doesn't match with partition name: {PartitionResult#name}.",[D]:k}]}]},{[F]:[],[k]:"Invalid ARN: Kinesis ARNs don't support `{arnType}` arn types.",[D]:k}]}]},{[F]:[],[k]:"Invalid ARN: No ARN type specified",[D]:k}]}]},{[F]:[],[k]:"Invalid ARN: The ARN was not for the Kinesis service, found: {arn#service}.",[D]:k}]}]},{[F]:[],[k]:"Invalid ARN: Invalid region.",[D]:k}]}]},{[F]:[],[k]:"Invalid ARN: Invalid account id.",[D]:k}]}], +y=[], +z=[{[G]:"booleanEquals",[H]:[{[I]:"UseFIPS"},true]},{[G]:"booleanEquals",[H]:[{[I]:"UseDualStack"},true]}], +A=[{[G]:"booleanEquals",[H]:[{[I]:"UseFIPS"},true]}], +B=[{[G]:"booleanEquals",[H]:[{[I]:"UseDualStack"},true]}], +C=[{[I]:"ConsumerARN"}]; +const _data={version:"1.3",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",[D]:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:a,default:b,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",[D]:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:a,default:b,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",[D]:d},Endpoint:{builtIn:"SDK::Endpoint",required:b,documentation:"Override the endpoint used to send this request",[D]:c},StreamARN:{required:b,documentation:"The ARN of the Kinesis stream",[D]:c},OperationType:{required:b,documentation:"Internal parameter to distinguish between Control/Data plane API and accordingly generate control/data plane endpoint",[D]:c},ConsumerARN:{required:b,documentation:"The ARN of the Kinesis consumer",[D]:c}},[E]:[{[F]:[{[G]:"aws.partition",[H]:[{[I]:"Region"}],assign:e}],[D]:f,[E]:[{[F]:[{[G]:g,[H]:v},l,n,o],[D]:f,[E]:[{[F]:[{[G]:h,[H]:v,assign:i}],[D]:f,[E]:x},s]},{[F]:[{[G]:g,[H]:C},l,n,o],[D]:f,[E]:[{[F]:[{[G]:h,[H]:C,assign:i}],[D]:f,[E]:x},s]},{[F]:w,[D]:f,[E]:[{[F]:A,error:"Invalid Configuration: FIPS and custom endpoint are not supported",[D]:k},{[F]:y,[D]:f,[E]:[{[F]:B,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",[D]:k},{[F]:y,endpoint:{[J]:m,[K]:p,[L]:p},[D]:j}]}]},{[F]:z,[D]:f,[E]:[{[F]:[t,u],[D]:f,[E]:[{[F]:y,endpoint:{[J]:"https://kinesis-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",[K]:p,[L]:p},[D]:j}]},{[F]:y,error:"FIPS and DualStack are enabled, but this partition does not support one or both",[D]:k}]},{[F]:A,[D]:f,[E]:[{[F]:[t],[D]:f,[E]:[{[F]:y,[D]:f,[E]:[{[F]:y,endpoint:{[J]:"https://kinesis-fips.{Region}.{PartitionResult#dnsSuffix}",[K]:p,[L]:p},[D]:j}]}]},q]},{[F]:B,[D]:f,[E]:[{[F]:[u],[D]:f,[E]:[{[F]:y,endpoint:{[J]:"https://kinesis.{Region}.{PartitionResult#dualStackDnsSuffix}",[K]:p,[L]:p},[D]:j}]},r]},{[F]:y,endpoint:{[J]:"https://kinesis.{Region}.{PartitionResult#dnsSuffix}",[K]:p,[L]:p},[D]:j}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-kms/src/endpoint/ruleset.ts b/clients/client-kms/src/endpoint/ruleset.ts index 86cb91e9505c5..e7691c2c8a672 100644 --- a/clients/client-kms/src/endpoint/ruleset.ts +++ b/clients/client-kms/src/endpoint/ruleset.ts @@ -1,311 +1,30 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: true, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://kms-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://kms-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://kms.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://kms.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/kms.json */ + +const r="fn", +s="argv", +t="ref"; +const a=true, +b=false, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i={[t]:"Endpoint"}, +j={[r]:"booleanEquals",[s]:[{[t]:"UseFIPS"},true]}, +k={[r]:"booleanEquals",[s]:[{[t]:"UseDualStack"},true]}, +l={}, +m={[r]:"booleanEquals",[s]:[true,{[r]:"getAttr",[s]:[{[t]:e},"supportsFIPS"]}]}, +n={[r]:"booleanEquals",[s]:[true,{[r]:"getAttr",[s]:[{[t]:e},"supportsDualStack"]}]}, +o=[j], +p=[], +q=[k]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:a,default:b,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:a,default:b,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:b,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[r]:"aws.partition",[s]:[{[t]:"Region"}],assign:e}],type:f,rules:[{conditions:[{[r]:"isSet",[s]:[i]}],type:f,rules:[{conditions:o,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:p,type:f,rules:[{conditions:q,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:p,endpoint:{url:i,properties:l,headers:l},type:h}]}]},{conditions:[j,k],type:f,rules:[{conditions:[m,n],type:f,rules:[{conditions:p,endpoint:{url:"https://kms-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:p,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:o,type:f,rules:[{conditions:[m],type:f,rules:[{conditions:p,type:f,rules:[{conditions:p,endpoint:{url:"https://kms-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]},{conditions:p,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:q,type:f,rules:[{conditions:[n],type:f,rules:[{conditions:p,endpoint:{url:"https://kms.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:p,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:p,endpoint:{url:"https://kms.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-lakeformation/src/endpoint/ruleset.ts b/clients/client-lakeformation/src/endpoint/ruleset.ts index d989c25595d1a..d2865b0b9cc55 100644 --- a/clients/client-lakeformation/src/endpoint/ruleset.ts +++ b/clients/client-lakeformation/src/endpoint/ruleset.ts @@ -1,320 +1,31 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: false, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://lakeformation-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://lakeformation-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://lakeformation.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://lakeformation.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/lakeformation.json */ + +const s="fn", +t="argv", +u="ref"; +const a=false, +b=true, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i={[u]:"Endpoint"}, +j={[s]:"booleanEquals",[t]:[{[u]:"UseFIPS"},true]}, +k={[s]:"booleanEquals",[t]:[{[u]:"UseDualStack"},true]}, +l={}, +m={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsFIPS"]}]}, +n={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsDualStack"]}]}, +o=[i], +p=[j], +q=[], +r=[k]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:b,default:a,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:b,default:a,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:a,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[s]:"aws.partition",[t]:[{[u]:"Region"}],assign:e}],type:f,rules:[{conditions:[{[s]:"isSet",[t]:o},{[s]:"parseURL",[t]:o,assign:"url"}],type:f,rules:[{conditions:p,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:q,type:f,rules:[{conditions:r,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:q,endpoint:{url:i,properties:l,headers:l},type:h}]}]},{conditions:[j,k],type:f,rules:[{conditions:[m,n],type:f,rules:[{conditions:q,endpoint:{url:"https://lakeformation-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:p,type:f,rules:[{conditions:[m],type:f,rules:[{conditions:q,type:f,rules:[{conditions:q,endpoint:{url:"https://lakeformation-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]},{conditions:q,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:r,type:f,rules:[{conditions:[n],type:f,rules:[{conditions:q,endpoint:{url:"https://lakeformation.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:q,endpoint:{url:"https://lakeformation.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-lambda/src/endpoint/ruleset.ts b/clients/client-lambda/src/endpoint/ruleset.ts index cd74a1c73dda6..8255f5d6a30c7 100644 --- a/clients/client-lambda/src/endpoint/ruleset.ts +++ b/clients/client-lambda/src/endpoint/ruleset.ts @@ -1,320 +1,31 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: true, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://lambda-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://lambda-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://lambda.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://lambda.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/lambda.json */ + +const s="fn", +t="argv", +u="ref"; +const a=true, +b=false, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i={[u]:"Endpoint"}, +j={[s]:"booleanEquals",[t]:[{[u]:"UseFIPS"},true]}, +k={[s]:"booleanEquals",[t]:[{[u]:"UseDualStack"},true]}, +l={}, +m={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsFIPS"]}]}, +n={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsDualStack"]}]}, +o=[i], +p=[j], +q=[], +r=[k]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:a,default:b,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:a,default:b,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:b,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[s]:"aws.partition",[t]:[{[u]:"Region"}],assign:e}],type:f,rules:[{conditions:[{[s]:"isSet",[t]:o},{[s]:"parseURL",[t]:o,assign:"url"}],type:f,rules:[{conditions:p,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:q,type:f,rules:[{conditions:r,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:q,endpoint:{url:i,properties:l,headers:l},type:h}]}]},{conditions:[j,k],type:f,rules:[{conditions:[m,n],type:f,rules:[{conditions:q,endpoint:{url:"https://lambda-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:p,type:f,rules:[{conditions:[m],type:f,rules:[{conditions:q,type:f,rules:[{conditions:q,endpoint:{url:"https://lambda-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]},{conditions:q,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:r,type:f,rules:[{conditions:[n],type:f,rules:[{conditions:q,endpoint:{url:"https://lambda.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:q,endpoint:{url:"https://lambda.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-lex-model-building-service/src/endpoint/ruleset.ts b/clients/client-lex-model-building-service/src/endpoint/ruleset.ts index cedfd5c2c54f5..b8406e8a6d472 100644 --- a/clients/client-lex-model-building-service/src/endpoint/ruleset.ts +++ b/clients/client-lex-model-building-service/src/endpoint/ruleset.ts @@ -1,370 +1,34 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: false, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://models.lex-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "stringEquals", - argv: [ - "aws", - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "name", - ], - }, - ], - }, - ], - endpoint: { - url: "https://models-fips.lex.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - { - conditions: [ - { - fn: "stringEquals", - argv: [ - "aws-us-gov", - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "name", - ], - }, - ], - }, - ], - endpoint: { - url: "https://models-fips.lex.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - { - conditions: [], - endpoint: { - url: "https://models.lex-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://models.lex.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://models.lex.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/lex-model-building-service.json */ + +const v="fn", +w="argv", +x="ref"; +const a=false, +b=true, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i="stringEquals", +j={[x]:"Endpoint"}, +k={[v]:"booleanEquals",[w]:[{[x]:"UseFIPS"},true]}, +l={[v]:"booleanEquals",[w]:[{[x]:"UseDualStack"},true]}, +m={}, +n={[v]:"booleanEquals",[w]:[true,{[v]:"getAttr",[w]:[{[x]:e},"supportsFIPS"]}]}, +o={[v]:"booleanEquals",[w]:[true,{[v]:"getAttr",[w]:[{[x]:e},"supportsDualStack"]}]}, +p={[v]:"getAttr",[w]:[{[x]:e},"name"]}, +q={"url":"https://models-fips.lex.{Region}.{PartitionResult#dnsSuffix}","properties":{},"headers":{}}, +r=[j], +s=[k], +t=[], +u=[l]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:b,default:a,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:b,default:a,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:a,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[v]:"aws.partition",[w]:[{[x]:"Region"}],assign:e}],type:f,rules:[{conditions:[{[v]:"isSet",[w]:r},{[v]:"parseURL",[w]:r,assign:"url"}],type:f,rules:[{conditions:s,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:t,type:f,rules:[{conditions:u,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:t,endpoint:{url:j,properties:m,headers:m},type:h}]}]},{conditions:[k,l],type:f,rules:[{conditions:[n,o],type:f,rules:[{conditions:t,endpoint:{url:"https://models.lex-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:m,headers:m},type:h}]},{conditions:t,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:s,type:f,rules:[{conditions:[n],type:f,rules:[{conditions:t,type:f,rules:[{conditions:[{[v]:i,[w]:["aws",p]}],endpoint:q,type:h},{conditions:[{[v]:i,[w]:["aws-us-gov",p]}],endpoint:q,type:h},{conditions:t,endpoint:{url:"https://models.lex-fips.{Region}.{PartitionResult#dnsSuffix}",properties:m,headers:m},type:h}]}]},{conditions:t,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:u,type:f,rules:[{conditions:[o],type:f,rules:[{conditions:t,endpoint:{url:"https://models.lex.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:m,headers:m},type:h}]},{conditions:t,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:t,endpoint:{url:"https://models.lex.{Region}.{PartitionResult#dnsSuffix}",properties:m,headers:m},type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-lex-models-v2/src/endpoint/ruleset.ts b/clients/client-lex-models-v2/src/endpoint/ruleset.ts index 90c4dc5a4e897..388028ad34967 100644 --- a/clients/client-lex-models-v2/src/endpoint/ruleset.ts +++ b/clients/client-lex-models-v2/src/endpoint/ruleset.ts @@ -1,320 +1,31 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: false, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://models-v2-lex-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://models-v2-lex-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://models-v2-lex.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://models-v2-lex.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/lex-models-v2.json */ + +const s="fn", +t="argv", +u="ref"; +const a=false, +b=true, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i={[u]:"Endpoint"}, +j={[s]:"booleanEquals",[t]:[{[u]:"UseFIPS"},true]}, +k={[s]:"booleanEquals",[t]:[{[u]:"UseDualStack"},true]}, +l={}, +m={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsFIPS"]}]}, +n={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsDualStack"]}]}, +o=[i], +p=[j], +q=[], +r=[k]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:b,default:a,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:b,default:a,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:a,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[s]:"aws.partition",[t]:[{[u]:"Region"}],assign:e}],type:f,rules:[{conditions:[{[s]:"isSet",[t]:o},{[s]:"parseURL",[t]:o,assign:"url"}],type:f,rules:[{conditions:p,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:q,type:f,rules:[{conditions:r,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:q,endpoint:{url:i,properties:l,headers:l},type:h}]}]},{conditions:[j,k],type:f,rules:[{conditions:[m,n],type:f,rules:[{conditions:q,endpoint:{url:"https://models-v2-lex-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:p,type:f,rules:[{conditions:[m],type:f,rules:[{conditions:q,type:f,rules:[{conditions:q,endpoint:{url:"https://models-v2-lex-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]},{conditions:q,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:r,type:f,rules:[{conditions:[n],type:f,rules:[{conditions:q,endpoint:{url:"https://models-v2-lex.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:q,endpoint:{url:"https://models-v2-lex.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-lex-runtime-service/src/endpoint/ruleset.ts b/clients/client-lex-runtime-service/src/endpoint/ruleset.ts index 53284c6cdbc7c..02dce90162671 100644 --- a/clients/client-lex-runtime-service/src/endpoint/ruleset.ts +++ b/clients/client-lex-runtime-service/src/endpoint/ruleset.ts @@ -1,370 +1,34 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: false, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://runtime.lex-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "stringEquals", - argv: [ - "aws", - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "name", - ], - }, - ], - }, - ], - endpoint: { - url: "https://runtime-fips.lex.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - { - conditions: [ - { - fn: "stringEquals", - argv: [ - "aws-us-gov", - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "name", - ], - }, - ], - }, - ], - endpoint: { - url: "https://runtime-fips.lex.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - { - conditions: [], - endpoint: { - url: "https://runtime.lex-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://runtime.lex.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://runtime.lex.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/lex-runtime-service.json */ + +const v="fn", +w="argv", +x="ref"; +const a=false, +b=true, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i="stringEquals", +j={[x]:"Endpoint"}, +k={[v]:"booleanEquals",[w]:[{[x]:"UseFIPS"},true]}, +l={[v]:"booleanEquals",[w]:[{[x]:"UseDualStack"},true]}, +m={}, +n={[v]:"booleanEquals",[w]:[true,{[v]:"getAttr",[w]:[{[x]:e},"supportsFIPS"]}]}, +o={[v]:"booleanEquals",[w]:[true,{[v]:"getAttr",[w]:[{[x]:e},"supportsDualStack"]}]}, +p={[v]:"getAttr",[w]:[{[x]:e},"name"]}, +q={"url":"https://runtime-fips.lex.{Region}.{PartitionResult#dnsSuffix}","properties":{},"headers":{}}, +r=[j], +s=[k], +t=[], +u=[l]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:b,default:a,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:b,default:a,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:a,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[v]:"aws.partition",[w]:[{[x]:"Region"}],assign:e}],type:f,rules:[{conditions:[{[v]:"isSet",[w]:r},{[v]:"parseURL",[w]:r,assign:"url"}],type:f,rules:[{conditions:s,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:t,type:f,rules:[{conditions:u,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:t,endpoint:{url:j,properties:m,headers:m},type:h}]}]},{conditions:[k,l],type:f,rules:[{conditions:[n,o],type:f,rules:[{conditions:t,endpoint:{url:"https://runtime.lex-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:m,headers:m},type:h}]},{conditions:t,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:s,type:f,rules:[{conditions:[n],type:f,rules:[{conditions:t,type:f,rules:[{conditions:[{[v]:i,[w]:["aws",p]}],endpoint:q,type:h},{conditions:[{[v]:i,[w]:["aws-us-gov",p]}],endpoint:q,type:h},{conditions:t,endpoint:{url:"https://runtime.lex-fips.{Region}.{PartitionResult#dnsSuffix}",properties:m,headers:m},type:h}]}]},{conditions:t,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:u,type:f,rules:[{conditions:[o],type:f,rules:[{conditions:t,endpoint:{url:"https://runtime.lex.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:m,headers:m},type:h}]},{conditions:t,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:t,endpoint:{url:"https://runtime.lex.{Region}.{PartitionResult#dnsSuffix}",properties:m,headers:m},type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-lex-runtime-v2/src/endpoint/ruleset.ts b/clients/client-lex-runtime-v2/src/endpoint/ruleset.ts index 947b07cb1533c..dbf09fa9fb49a 100644 --- a/clients/client-lex-runtime-v2/src/endpoint/ruleset.ts +++ b/clients/client-lex-runtime-v2/src/endpoint/ruleset.ts @@ -1,320 +1,31 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: false, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://runtime-v2-lex-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://runtime-v2-lex-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://runtime-v2-lex.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://runtime-v2-lex.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/lex-runtime-v2.json */ + +const s="fn", +t="argv", +u="ref"; +const a=false, +b=true, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i={[u]:"Endpoint"}, +j={[s]:"booleanEquals",[t]:[{[u]:"UseFIPS"},true]}, +k={[s]:"booleanEquals",[t]:[{[u]:"UseDualStack"},true]}, +l={}, +m={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsFIPS"]}]}, +n={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsDualStack"]}]}, +o=[i], +p=[j], +q=[], +r=[k]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:b,default:a,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:b,default:a,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:a,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[s]:"aws.partition",[t]:[{[u]:"Region"}],assign:e}],type:f,rules:[{conditions:[{[s]:"isSet",[t]:o},{[s]:"parseURL",[t]:o,assign:"url"}],type:f,rules:[{conditions:p,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:q,type:f,rules:[{conditions:r,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:q,endpoint:{url:i,properties:l,headers:l},type:h}]}]},{conditions:[j,k],type:f,rules:[{conditions:[m,n],type:f,rules:[{conditions:q,endpoint:{url:"https://runtime-v2-lex-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:p,type:f,rules:[{conditions:[m],type:f,rules:[{conditions:q,type:f,rules:[{conditions:q,endpoint:{url:"https://runtime-v2-lex-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]},{conditions:q,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:r,type:f,rules:[{conditions:[n],type:f,rules:[{conditions:q,endpoint:{url:"https://runtime-v2-lex.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:q,endpoint:{url:"https://runtime-v2-lex.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-license-manager-user-subscriptions/src/endpoint/ruleset.ts b/clients/client-license-manager-user-subscriptions/src/endpoint/ruleset.ts index 59ab9540c8b2f..bb408463f03b9 100644 --- a/clients/client-license-manager-user-subscriptions/src/endpoint/ruleset.ts +++ b/clients/client-license-manager-user-subscriptions/src/endpoint/ruleset.ts @@ -1,314 +1,31 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: false, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://license-manager-user-subscriptions-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://license-manager-user-subscriptions-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://license-manager-user-subscriptions.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://license-manager-user-subscriptions.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/license-manager-user-subscriptions.json */ + +const s="fn", +t="argv", +u="ref"; +const a=false, +b=true, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i={[u]:"Endpoint"}, +j={[s]:"booleanEquals",[t]:[{[u]:"UseFIPS"},true]}, +k={[s]:"booleanEquals",[t]:[{[u]:"UseDualStack"},true]}, +l={}, +m={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsFIPS"]}]}, +n={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsDualStack"]}]}, +o=[i], +p=[j], +q=[], +r=[k]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:b,default:a,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:b,default:a,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:a,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[s]:"aws.partition",[t]:[{[u]:"Region"}],assign:e}],type:f,rules:[{conditions:[{[s]:"isSet",[t]:o},{[s]:"parseURL",[t]:o,assign:"url"}],type:f,rules:[{conditions:p,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:q,type:f,rules:[{conditions:r,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:q,endpoint:{url:i,properties:l,headers:l},type:h}]}]},{conditions:[j,k],type:f,rules:[{conditions:[m,n],type:f,rules:[{conditions:q,endpoint:{url:"https://license-manager-user-subscriptions-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:p,type:f,rules:[{conditions:[m],type:f,rules:[{conditions:q,endpoint:{url:"https://license-manager-user-subscriptions-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:r,type:f,rules:[{conditions:[n],type:f,rules:[{conditions:q,endpoint:{url:"https://license-manager-user-subscriptions.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:q,endpoint:{url:"https://license-manager-user-subscriptions.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-license-manager/src/endpoint/ruleset.ts b/clients/client-license-manager/src/endpoint/ruleset.ts index a32f1904fcef1..333de8996bd19 100644 --- a/clients/client-license-manager/src/endpoint/ruleset.ts +++ b/clients/client-license-manager/src/endpoint/ruleset.ts @@ -1,320 +1,31 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: false, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://license-manager-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://license-manager-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://license-manager.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://license-manager.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/license-manager.json */ + +const s="fn", +t="argv", +u="ref"; +const a=false, +b=true, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i={[u]:"Endpoint"}, +j={[s]:"booleanEquals",[t]:[{[u]:"UseFIPS"},true]}, +k={[s]:"booleanEquals",[t]:[{[u]:"UseDualStack"},true]}, +l={}, +m={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsFIPS"]}]}, +n={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsDualStack"]}]}, +o=[i], +p=[j], +q=[], +r=[k]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:b,default:a,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:b,default:a,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:a,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[s]:"aws.partition",[t]:[{[u]:"Region"}],assign:e}],type:f,rules:[{conditions:[{[s]:"isSet",[t]:o},{[s]:"parseURL",[t]:o,assign:"url"}],type:f,rules:[{conditions:p,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:q,type:f,rules:[{conditions:r,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:q,endpoint:{url:i,properties:l,headers:l},type:h}]}]},{conditions:[j,k],type:f,rules:[{conditions:[m,n],type:f,rules:[{conditions:q,endpoint:{url:"https://license-manager-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:p,type:f,rules:[{conditions:[m],type:f,rules:[{conditions:q,type:f,rules:[{conditions:q,endpoint:{url:"https://license-manager-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]},{conditions:q,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:r,type:f,rules:[{conditions:[n],type:f,rules:[{conditions:q,endpoint:{url:"https://license-manager.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:q,endpoint:{url:"https://license-manager.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-lightsail/src/endpoint/ruleset.ts b/clients/client-lightsail/src/endpoint/ruleset.ts index 7d5120b1f2dfe..2c443585e41c5 100644 --- a/clients/client-lightsail/src/endpoint/ruleset.ts +++ b/clients/client-lightsail/src/endpoint/ruleset.ts @@ -1,320 +1,31 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: false, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://lightsail-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://lightsail-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://lightsail.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://lightsail.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/lightsail.json */ + +const s="fn", +t="argv", +u="ref"; +const a=false, +b=true, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i={[u]:"Endpoint"}, +j={[s]:"booleanEquals",[t]:[{[u]:"UseFIPS"},true]}, +k={[s]:"booleanEquals",[t]:[{[u]:"UseDualStack"},true]}, +l={}, +m={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsFIPS"]}]}, +n={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsDualStack"]}]}, +o=[i], +p=[j], +q=[], +r=[k]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:b,default:a,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:b,default:a,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:a,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[s]:"aws.partition",[t]:[{[u]:"Region"}],assign:e}],type:f,rules:[{conditions:[{[s]:"isSet",[t]:o},{[s]:"parseURL",[t]:o,assign:"url"}],type:f,rules:[{conditions:p,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:q,type:f,rules:[{conditions:r,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:q,endpoint:{url:i,properties:l,headers:l},type:h}]}]},{conditions:[j,k],type:f,rules:[{conditions:[m,n],type:f,rules:[{conditions:q,endpoint:{url:"https://lightsail-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:p,type:f,rules:[{conditions:[m],type:f,rules:[{conditions:q,type:f,rules:[{conditions:q,endpoint:{url:"https://lightsail-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]},{conditions:q,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:r,type:f,rules:[{conditions:[n],type:f,rules:[{conditions:q,endpoint:{url:"https://lightsail.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:q,endpoint:{url:"https://lightsail.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-location/src/endpoint/ruleset.ts b/clients/client-location/src/endpoint/ruleset.ts index 25ce5a5f43eb4..6156b376c0223 100644 --- a/clients/client-location/src/endpoint/ruleset.ts +++ b/clients/client-location/src/endpoint/ruleset.ts @@ -1,314 +1,31 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: false, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://geo-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://geo-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://geo.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://geo.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/location.json */ + +const s="fn", +t="argv", +u="ref"; +const a=false, +b=true, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i={[u]:"Endpoint"}, +j={[s]:"booleanEquals",[t]:[{[u]:"UseFIPS"},true]}, +k={[s]:"booleanEquals",[t]:[{[u]:"UseDualStack"},true]}, +l={}, +m={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsFIPS"]}]}, +n={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsDualStack"]}]}, +o=[i], +p=[j], +q=[], +r=[k]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:b,default:a,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:b,default:a,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:a,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[s]:"aws.partition",[t]:[{[u]:"Region"}],assign:e}],type:f,rules:[{conditions:[{[s]:"isSet",[t]:o},{[s]:"parseURL",[t]:o,assign:"url"}],type:f,rules:[{conditions:p,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:q,type:f,rules:[{conditions:r,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:q,endpoint:{url:i,properties:l,headers:l},type:h}]}]},{conditions:[j,k],type:f,rules:[{conditions:[m,n],type:f,rules:[{conditions:q,endpoint:{url:"https://geo-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:p,type:f,rules:[{conditions:[m],type:f,rules:[{conditions:q,endpoint:{url:"https://geo-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:r,type:f,rules:[{conditions:[n],type:f,rules:[{conditions:q,endpoint:{url:"https://geo.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:q,endpoint:{url:"https://geo.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-lookoutequipment/src/endpoint/ruleset.ts b/clients/client-lookoutequipment/src/endpoint/ruleset.ts index 3c7cc8b347a4a..d123f07534404 100644 --- a/clients/client-lookoutequipment/src/endpoint/ruleset.ts +++ b/clients/client-lookoutequipment/src/endpoint/ruleset.ts @@ -1,320 +1,31 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: false, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://lookoutequipment-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://lookoutequipment-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://lookoutequipment.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://lookoutequipment.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/lookoutequipment.json */ + +const s="fn", +t="argv", +u="ref"; +const a=false, +b=true, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i={[u]:"Endpoint"}, +j={[s]:"booleanEquals",[t]:[{[u]:"UseFIPS"},true]}, +k={[s]:"booleanEquals",[t]:[{[u]:"UseDualStack"},true]}, +l={}, +m={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsFIPS"]}]}, +n={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsDualStack"]}]}, +o=[i], +p=[j], +q=[], +r=[k]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:b,default:a,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:b,default:a,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:a,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[s]:"aws.partition",[t]:[{[u]:"Region"}],assign:e}],type:f,rules:[{conditions:[{[s]:"isSet",[t]:o},{[s]:"parseURL",[t]:o,assign:"url"}],type:f,rules:[{conditions:p,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:q,type:f,rules:[{conditions:r,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:q,endpoint:{url:i,properties:l,headers:l},type:h}]}]},{conditions:[j,k],type:f,rules:[{conditions:[m,n],type:f,rules:[{conditions:q,endpoint:{url:"https://lookoutequipment-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:p,type:f,rules:[{conditions:[m],type:f,rules:[{conditions:q,type:f,rules:[{conditions:q,endpoint:{url:"https://lookoutequipment-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]},{conditions:q,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:r,type:f,rules:[{conditions:[n],type:f,rules:[{conditions:q,endpoint:{url:"https://lookoutequipment.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:q,endpoint:{url:"https://lookoutequipment.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-lookoutmetrics/src/endpoint/ruleset.ts b/clients/client-lookoutmetrics/src/endpoint/ruleset.ts index b160a4c32d369..2186697ea0fc0 100644 --- a/clients/client-lookoutmetrics/src/endpoint/ruleset.ts +++ b/clients/client-lookoutmetrics/src/endpoint/ruleset.ts @@ -1,320 +1,31 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: false, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://lookoutmetrics-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://lookoutmetrics-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://lookoutmetrics.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://lookoutmetrics.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/lookoutmetrics.json */ + +const s="fn", +t="argv", +u="ref"; +const a=false, +b=true, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i={[u]:"Endpoint"}, +j={[s]:"booleanEquals",[t]:[{[u]:"UseFIPS"},true]}, +k={[s]:"booleanEquals",[t]:[{[u]:"UseDualStack"},true]}, +l={}, +m={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsFIPS"]}]}, +n={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsDualStack"]}]}, +o=[i], +p=[j], +q=[], +r=[k]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:b,default:a,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:b,default:a,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:a,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[s]:"aws.partition",[t]:[{[u]:"Region"}],assign:e}],type:f,rules:[{conditions:[{[s]:"isSet",[t]:o},{[s]:"parseURL",[t]:o,assign:"url"}],type:f,rules:[{conditions:p,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:q,type:f,rules:[{conditions:r,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:q,endpoint:{url:i,properties:l,headers:l},type:h}]}]},{conditions:[j,k],type:f,rules:[{conditions:[m,n],type:f,rules:[{conditions:q,endpoint:{url:"https://lookoutmetrics-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:p,type:f,rules:[{conditions:[m],type:f,rules:[{conditions:q,type:f,rules:[{conditions:q,endpoint:{url:"https://lookoutmetrics-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]},{conditions:q,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:r,type:f,rules:[{conditions:[n],type:f,rules:[{conditions:q,endpoint:{url:"https://lookoutmetrics.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:q,endpoint:{url:"https://lookoutmetrics.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-lookoutvision/src/endpoint/ruleset.ts b/clients/client-lookoutvision/src/endpoint/ruleset.ts index c637fdfa159fa..5e845e9a36656 100644 --- a/clients/client-lookoutvision/src/endpoint/ruleset.ts +++ b/clients/client-lookoutvision/src/endpoint/ruleset.ts @@ -1,311 +1,30 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: true, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://lookoutvision-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://lookoutvision-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://lookoutvision.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://lookoutvision.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/lookoutvision.json */ + +const r="fn", +s="argv", +t="ref"; +const a=true, +b=false, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i={[t]:"Endpoint"}, +j={[r]:"booleanEquals",[s]:[{[t]:"UseFIPS"},true]}, +k={[r]:"booleanEquals",[s]:[{[t]:"UseDualStack"},true]}, +l={}, +m={[r]:"booleanEquals",[s]:[true,{[r]:"getAttr",[s]:[{[t]:e},"supportsFIPS"]}]}, +n={[r]:"booleanEquals",[s]:[true,{[r]:"getAttr",[s]:[{[t]:e},"supportsDualStack"]}]}, +o=[j], +p=[], +q=[k]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:a,default:b,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:a,default:b,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:b,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[r]:"aws.partition",[s]:[{[t]:"Region"}],assign:e}],type:f,rules:[{conditions:[{[r]:"isSet",[s]:[i]}],type:f,rules:[{conditions:o,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:p,type:f,rules:[{conditions:q,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:p,endpoint:{url:i,properties:l,headers:l},type:h}]}]},{conditions:[j,k],type:f,rules:[{conditions:[m,n],type:f,rules:[{conditions:p,endpoint:{url:"https://lookoutvision-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:p,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:o,type:f,rules:[{conditions:[m],type:f,rules:[{conditions:p,type:f,rules:[{conditions:p,endpoint:{url:"https://lookoutvision-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]},{conditions:p,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:q,type:f,rules:[{conditions:[n],type:f,rules:[{conditions:p,endpoint:{url:"https://lookoutvision.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:p,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:p,endpoint:{url:"https://lookoutvision.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-m2/src/endpoint/ruleset.ts b/clients/client-m2/src/endpoint/ruleset.ts index 2acba3123402f..129a6e0f6e7ea 100644 --- a/clients/client-m2/src/endpoint/ruleset.ts +++ b/clients/client-m2/src/endpoint/ruleset.ts @@ -1,311 +1,30 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: true, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://m2-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://m2-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://m2.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://m2.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/m2.json */ + +const r="fn", +s="argv", +t="ref"; +const a=true, +b=false, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i={[t]:"Endpoint"}, +j={[r]:"booleanEquals",[s]:[{[t]:"UseFIPS"},true]}, +k={[r]:"booleanEquals",[s]:[{[t]:"UseDualStack"},true]}, +l={}, +m={[r]:"booleanEquals",[s]:[true,{[r]:"getAttr",[s]:[{[t]:e},"supportsFIPS"]}]}, +n={[r]:"booleanEquals",[s]:[true,{[r]:"getAttr",[s]:[{[t]:e},"supportsDualStack"]}]}, +o=[j], +p=[], +q=[k]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:a,default:b,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:a,default:b,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:b,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[r]:"aws.partition",[s]:[{[t]:"Region"}],assign:e}],type:f,rules:[{conditions:[{[r]:"isSet",[s]:[i]}],type:f,rules:[{conditions:o,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:p,type:f,rules:[{conditions:q,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:p,endpoint:{url:i,properties:l,headers:l},type:h}]}]},{conditions:[j,k],type:f,rules:[{conditions:[m,n],type:f,rules:[{conditions:p,endpoint:{url:"https://m2-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:p,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:o,type:f,rules:[{conditions:[m],type:f,rules:[{conditions:p,type:f,rules:[{conditions:p,endpoint:{url:"https://m2-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]},{conditions:p,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:q,type:f,rules:[{conditions:[n],type:f,rules:[{conditions:p,endpoint:{url:"https://m2.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:p,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:p,endpoint:{url:"https://m2.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-machine-learning/src/endpoint/ruleset.ts b/clients/client-machine-learning/src/endpoint/ruleset.ts index 49fca6e80bb7b..ca3d720575c78 100644 --- a/clients/client-machine-learning/src/endpoint/ruleset.ts +++ b/clients/client-machine-learning/src/endpoint/ruleset.ts @@ -1,320 +1,31 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: false, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://machinelearning-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://machinelearning-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://machinelearning.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://machinelearning.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/machine-learning.json */ + +const s="fn", +t="argv", +u="ref"; +const a=false, +b=true, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i={[u]:"Endpoint"}, +j={[s]:"booleanEquals",[t]:[{[u]:"UseFIPS"},true]}, +k={[s]:"booleanEquals",[t]:[{[u]:"UseDualStack"},true]}, +l={}, +m={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsFIPS"]}]}, +n={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsDualStack"]}]}, +o=[i], +p=[j], +q=[], +r=[k]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:b,default:a,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:b,default:a,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:a,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[s]:"aws.partition",[t]:[{[u]:"Region"}],assign:e}],type:f,rules:[{conditions:[{[s]:"isSet",[t]:o},{[s]:"parseURL",[t]:o,assign:"url"}],type:f,rules:[{conditions:p,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:q,type:f,rules:[{conditions:r,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:q,endpoint:{url:i,properties:l,headers:l},type:h}]}]},{conditions:[j,k],type:f,rules:[{conditions:[m,n],type:f,rules:[{conditions:q,endpoint:{url:"https://machinelearning-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:p,type:f,rules:[{conditions:[m],type:f,rules:[{conditions:q,type:f,rules:[{conditions:q,endpoint:{url:"https://machinelearning-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]},{conditions:q,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:r,type:f,rules:[{conditions:[n],type:f,rules:[{conditions:q,endpoint:{url:"https://machinelearning.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:q,endpoint:{url:"https://machinelearning.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-macie/src/endpoint/ruleset.ts b/clients/client-macie/src/endpoint/ruleset.ts index fd2d5a592a3a7..a029fc8fb3f24 100644 --- a/clients/client-macie/src/endpoint/ruleset.ts +++ b/clients/client-macie/src/endpoint/ruleset.ts @@ -1,320 +1,31 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: false, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://macie-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://macie-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://macie.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://macie.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/macie.json */ + +const s="fn", +t="argv", +u="ref"; +const a=false, +b=true, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i={[u]:"Endpoint"}, +j={[s]:"booleanEquals",[t]:[{[u]:"UseFIPS"},true]}, +k={[s]:"booleanEquals",[t]:[{[u]:"UseDualStack"},true]}, +l={}, +m={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsFIPS"]}]}, +n={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsDualStack"]}]}, +o=[i], +p=[j], +q=[], +r=[k]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:b,default:a,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:b,default:a,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:a,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[s]:"aws.partition",[t]:[{[u]:"Region"}],assign:e}],type:f,rules:[{conditions:[{[s]:"isSet",[t]:o},{[s]:"parseURL",[t]:o,assign:"url"}],type:f,rules:[{conditions:p,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:q,type:f,rules:[{conditions:r,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:q,endpoint:{url:i,properties:l,headers:l},type:h}]}]},{conditions:[j,k],type:f,rules:[{conditions:[m,n],type:f,rules:[{conditions:q,endpoint:{url:"https://macie-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:p,type:f,rules:[{conditions:[m],type:f,rules:[{conditions:q,type:f,rules:[{conditions:q,endpoint:{url:"https://macie-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]},{conditions:q,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:r,type:f,rules:[{conditions:[n],type:f,rules:[{conditions:q,endpoint:{url:"https://macie.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:q,endpoint:{url:"https://macie.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-macie2/src/endpoint/ruleset.ts b/clients/client-macie2/src/endpoint/ruleset.ts index 83cb6fe08b4a4..89b63a6c38359 100644 --- a/clients/client-macie2/src/endpoint/ruleset.ts +++ b/clients/client-macie2/src/endpoint/ruleset.ts @@ -1,320 +1,31 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: true, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://macie2-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://macie2-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://macie2.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://macie2.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/macie2.json */ + +const s="fn", +t="argv", +u="ref"; +const a=true, +b=false, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i={[u]:"Endpoint"}, +j={[s]:"booleanEquals",[t]:[{[u]:"UseFIPS"},true]}, +k={[s]:"booleanEquals",[t]:[{[u]:"UseDualStack"},true]}, +l={}, +m={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsFIPS"]}]}, +n={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsDualStack"]}]}, +o=[i], +p=[j], +q=[], +r=[k]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:a,default:b,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:a,default:b,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:b,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[s]:"aws.partition",[t]:[{[u]:"Region"}],assign:e}],type:f,rules:[{conditions:[{[s]:"isSet",[t]:o},{[s]:"parseURL",[t]:o,assign:"url"}],type:f,rules:[{conditions:p,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:q,type:f,rules:[{conditions:r,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:q,endpoint:{url:i,properties:l,headers:l},type:h}]}]},{conditions:[j,k],type:f,rules:[{conditions:[m,n],type:f,rules:[{conditions:q,endpoint:{url:"https://macie2-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:p,type:f,rules:[{conditions:[m],type:f,rules:[{conditions:q,type:f,rules:[{conditions:q,endpoint:{url:"https://macie2-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]},{conditions:q,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:r,type:f,rules:[{conditions:[n],type:f,rules:[{conditions:q,endpoint:{url:"https://macie2.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:q,endpoint:{url:"https://macie2.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-managedblockchain/src/endpoint/ruleset.ts b/clients/client-managedblockchain/src/endpoint/ruleset.ts index f12334f7186e6..07991c415f14b 100644 --- a/clients/client-managedblockchain/src/endpoint/ruleset.ts +++ b/clients/client-managedblockchain/src/endpoint/ruleset.ts @@ -1,320 +1,31 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: false, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://managedblockchain-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://managedblockchain-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://managedblockchain.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://managedblockchain.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/managedblockchain.json */ + +const s="fn", +t="argv", +u="ref"; +const a=false, +b=true, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i={[u]:"Endpoint"}, +j={[s]:"booleanEquals",[t]:[{[u]:"UseFIPS"},true]}, +k={[s]:"booleanEquals",[t]:[{[u]:"UseDualStack"},true]}, +l={}, +m={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsFIPS"]}]}, +n={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsDualStack"]}]}, +o=[i], +p=[j], +q=[], +r=[k]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:b,default:a,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:b,default:a,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:a,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[s]:"aws.partition",[t]:[{[u]:"Region"}],assign:e}],type:f,rules:[{conditions:[{[s]:"isSet",[t]:o},{[s]:"parseURL",[t]:o,assign:"url"}],type:f,rules:[{conditions:p,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:q,type:f,rules:[{conditions:r,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:q,endpoint:{url:i,properties:l,headers:l},type:h}]}]},{conditions:[j,k],type:f,rules:[{conditions:[m,n],type:f,rules:[{conditions:q,endpoint:{url:"https://managedblockchain-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:p,type:f,rules:[{conditions:[m],type:f,rules:[{conditions:q,type:f,rules:[{conditions:q,endpoint:{url:"https://managedblockchain-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]},{conditions:q,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:r,type:f,rules:[{conditions:[n],type:f,rules:[{conditions:q,endpoint:{url:"https://managedblockchain.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:q,endpoint:{url:"https://managedblockchain.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-marketplace-catalog/src/endpoint/ruleset.ts b/clients/client-marketplace-catalog/src/endpoint/ruleset.ts index bff2e15a37798..3ef60c35fba7d 100644 --- a/clients/client-marketplace-catalog/src/endpoint/ruleset.ts +++ b/clients/client-marketplace-catalog/src/endpoint/ruleset.ts @@ -1,320 +1,31 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: false, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://catalog.marketplace-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://catalog.marketplace-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://catalog.marketplace.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://catalog.marketplace.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/marketplace-catalog.json */ + +const s="fn", +t="argv", +u="ref"; +const a=false, +b=true, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i={[u]:"Endpoint"}, +j={[s]:"booleanEquals",[t]:[{[u]:"UseFIPS"},true]}, +k={[s]:"booleanEquals",[t]:[{[u]:"UseDualStack"},true]}, +l={}, +m={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsFIPS"]}]}, +n={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsDualStack"]}]}, +o=[i], +p=[j], +q=[], +r=[k]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:b,default:a,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:b,default:a,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:a,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[s]:"aws.partition",[t]:[{[u]:"Region"}],assign:e}],type:f,rules:[{conditions:[{[s]:"isSet",[t]:o},{[s]:"parseURL",[t]:o,assign:"url"}],type:f,rules:[{conditions:p,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:q,type:f,rules:[{conditions:r,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:q,endpoint:{url:i,properties:l,headers:l},type:h}]}]},{conditions:[j,k],type:f,rules:[{conditions:[m,n],type:f,rules:[{conditions:q,endpoint:{url:"https://catalog.marketplace-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:p,type:f,rules:[{conditions:[m],type:f,rules:[{conditions:q,type:f,rules:[{conditions:q,endpoint:{url:"https://catalog.marketplace-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]},{conditions:q,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:r,type:f,rules:[{conditions:[n],type:f,rules:[{conditions:q,endpoint:{url:"https://catalog.marketplace.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:q,endpoint:{url:"https://catalog.marketplace.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-marketplace-commerce-analytics/src/endpoint/ruleset.ts b/clients/client-marketplace-commerce-analytics/src/endpoint/ruleset.ts index e6a796ef72f9a..b3a483648fd5b 100644 --- a/clients/client-marketplace-commerce-analytics/src/endpoint/ruleset.ts +++ b/clients/client-marketplace-commerce-analytics/src/endpoint/ruleset.ts @@ -1,320 +1,31 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: false, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://marketplacecommerceanalytics-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://marketplacecommerceanalytics-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://marketplacecommerceanalytics.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://marketplacecommerceanalytics.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/marketplace-commerce-analytics.json */ + +const s="fn", +t="argv", +u="ref"; +const a=false, +b=true, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i={[u]:"Endpoint"}, +j={[s]:"booleanEquals",[t]:[{[u]:"UseFIPS"},true]}, +k={[s]:"booleanEquals",[t]:[{[u]:"UseDualStack"},true]}, +l={}, +m={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsFIPS"]}]}, +n={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsDualStack"]}]}, +o=[i], +p=[j], +q=[], +r=[k]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:b,default:a,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:b,default:a,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:a,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[s]:"aws.partition",[t]:[{[u]:"Region"}],assign:e}],type:f,rules:[{conditions:[{[s]:"isSet",[t]:o},{[s]:"parseURL",[t]:o,assign:"url"}],type:f,rules:[{conditions:p,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:q,type:f,rules:[{conditions:r,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:q,endpoint:{url:i,properties:l,headers:l},type:h}]}]},{conditions:[j,k],type:f,rules:[{conditions:[m,n],type:f,rules:[{conditions:q,endpoint:{url:"https://marketplacecommerceanalytics-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:p,type:f,rules:[{conditions:[m],type:f,rules:[{conditions:q,type:f,rules:[{conditions:q,endpoint:{url:"https://marketplacecommerceanalytics-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]},{conditions:q,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:r,type:f,rules:[{conditions:[n],type:f,rules:[{conditions:q,endpoint:{url:"https://marketplacecommerceanalytics.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:q,endpoint:{url:"https://marketplacecommerceanalytics.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-marketplace-entitlement-service/src/endpoint/ruleset.ts b/clients/client-marketplace-entitlement-service/src/endpoint/ruleset.ts index dfe151f76481e..124e77a52763a 100644 --- a/clients/client-marketplace-entitlement-service/src/endpoint/ruleset.ts +++ b/clients/client-marketplace-entitlement-service/src/endpoint/ruleset.ts @@ -1,320 +1,31 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: false, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://entitlement.marketplace-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://entitlement.marketplace-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://entitlement.marketplace.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://entitlement.marketplace.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/marketplace-entitlement-service.json */ + +const s="fn", +t="argv", +u="ref"; +const a=false, +b=true, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i={[u]:"Endpoint"}, +j={[s]:"booleanEquals",[t]:[{[u]:"UseFIPS"},true]}, +k={[s]:"booleanEquals",[t]:[{[u]:"UseDualStack"},true]}, +l={}, +m={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsFIPS"]}]}, +n={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsDualStack"]}]}, +o=[i], +p=[j], +q=[], +r=[k]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:b,default:a,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:b,default:a,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:a,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[s]:"aws.partition",[t]:[{[u]:"Region"}],assign:e}],type:f,rules:[{conditions:[{[s]:"isSet",[t]:o},{[s]:"parseURL",[t]:o,assign:"url"}],type:f,rules:[{conditions:p,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:q,type:f,rules:[{conditions:r,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:q,endpoint:{url:i,properties:l,headers:l},type:h}]}]},{conditions:[j,k],type:f,rules:[{conditions:[m,n],type:f,rules:[{conditions:q,endpoint:{url:"https://entitlement.marketplace-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:p,type:f,rules:[{conditions:[m],type:f,rules:[{conditions:q,type:f,rules:[{conditions:q,endpoint:{url:"https://entitlement.marketplace-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]},{conditions:q,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:r,type:f,rules:[{conditions:[n],type:f,rules:[{conditions:q,endpoint:{url:"https://entitlement.marketplace.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:q,endpoint:{url:"https://entitlement.marketplace.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-marketplace-metering/src/endpoint/ruleset.ts b/clients/client-marketplace-metering/src/endpoint/ruleset.ts index 852d8e033c2dd..f660545edcd8c 100644 --- a/clients/client-marketplace-metering/src/endpoint/ruleset.ts +++ b/clients/client-marketplace-metering/src/endpoint/ruleset.ts @@ -1,320 +1,31 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: false, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://metering.marketplace-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://metering.marketplace-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://metering.marketplace.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://metering.marketplace.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/marketplace-metering.json */ + +const s="fn", +t="argv", +u="ref"; +const a=false, +b=true, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i={[u]:"Endpoint"}, +j={[s]:"booleanEquals",[t]:[{[u]:"UseFIPS"},true]}, +k={[s]:"booleanEquals",[t]:[{[u]:"UseDualStack"},true]}, +l={}, +m={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsFIPS"]}]}, +n={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsDualStack"]}]}, +o=[i], +p=[j], +q=[], +r=[k]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:b,default:a,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:b,default:a,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:a,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[s]:"aws.partition",[t]:[{[u]:"Region"}],assign:e}],type:f,rules:[{conditions:[{[s]:"isSet",[t]:o},{[s]:"parseURL",[t]:o,assign:"url"}],type:f,rules:[{conditions:p,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:q,type:f,rules:[{conditions:r,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:q,endpoint:{url:i,properties:l,headers:l},type:h}]}]},{conditions:[j,k],type:f,rules:[{conditions:[m,n],type:f,rules:[{conditions:q,endpoint:{url:"https://metering.marketplace-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:p,type:f,rules:[{conditions:[m],type:f,rules:[{conditions:q,type:f,rules:[{conditions:q,endpoint:{url:"https://metering.marketplace-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]},{conditions:q,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:r,type:f,rules:[{conditions:[n],type:f,rules:[{conditions:q,endpoint:{url:"https://metering.marketplace.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:q,endpoint:{url:"https://metering.marketplace.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-mediaconnect/src/endpoint/ruleset.ts b/clients/client-mediaconnect/src/endpoint/ruleset.ts index a20f0b50f67c5..bf35ad5f8aa2e 100644 --- a/clients/client-mediaconnect/src/endpoint/ruleset.ts +++ b/clients/client-mediaconnect/src/endpoint/ruleset.ts @@ -1,320 +1,31 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: false, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://mediaconnect-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://mediaconnect-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://mediaconnect.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://mediaconnect.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/mediaconnect.json */ + +const s="fn", +t="argv", +u="ref"; +const a=false, +b=true, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i={[u]:"Endpoint"}, +j={[s]:"booleanEquals",[t]:[{[u]:"UseFIPS"},true]}, +k={[s]:"booleanEquals",[t]:[{[u]:"UseDualStack"},true]}, +l={}, +m={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsFIPS"]}]}, +n={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsDualStack"]}]}, +o=[i], +p=[j], +q=[], +r=[k]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:b,default:a,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:b,default:a,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:a,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[s]:"aws.partition",[t]:[{[u]:"Region"}],assign:e}],type:f,rules:[{conditions:[{[s]:"isSet",[t]:o},{[s]:"parseURL",[t]:o,assign:"url"}],type:f,rules:[{conditions:p,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:q,type:f,rules:[{conditions:r,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:q,endpoint:{url:i,properties:l,headers:l},type:h}]}]},{conditions:[j,k],type:f,rules:[{conditions:[m,n],type:f,rules:[{conditions:q,endpoint:{url:"https://mediaconnect-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:p,type:f,rules:[{conditions:[m],type:f,rules:[{conditions:q,type:f,rules:[{conditions:q,endpoint:{url:"https://mediaconnect-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]},{conditions:q,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:r,type:f,rules:[{conditions:[n],type:f,rules:[{conditions:q,endpoint:{url:"https://mediaconnect.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:q,endpoint:{url:"https://mediaconnect.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-mediaconvert/src/endpoint/ruleset.ts b/clients/client-mediaconvert/src/endpoint/ruleset.ts index b6b6d26b13a31..57c54e2ad4bcb 100644 --- a/clients/client-mediaconvert/src/endpoint/ruleset.ts +++ b/clients/client-mediaconvert/src/endpoint/ruleset.ts @@ -1,345 +1,32 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: false, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://mediaconvert-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://mediaconvert-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://mediaconvert.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "stringEquals", - argv: [ - { - ref: "Region", - }, - "cn-northwest-1", - ], - }, - ], - endpoint: { - url: "https://subscribe.mediaconvert.cn-northwest-1.amazonaws.com.cn", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - { - conditions: [], - endpoint: { - url: "https://mediaconvert.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/mediaconvert.json */ + +const t="fn", +u="argv", +v="ref"; +const a=false, +b=true, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i={[v]:"Region"}, +j={[v]:"Endpoint"}, +k={[t]:"booleanEquals",[u]:[{[v]:"UseFIPS"},true]}, +l={[t]:"booleanEquals",[u]:[{[v]:"UseDualStack"},true]}, +m={}, +n={[t]:"booleanEquals",[u]:[true,{[t]:"getAttr",[u]:[{[v]:e},"supportsFIPS"]}]}, +o={[t]:"booleanEquals",[u]:[true,{[t]:"getAttr",[u]:[{[v]:e},"supportsDualStack"]}]}, +p=[j], +q=[k], +r=[], +s=[l]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:b,default:a,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:b,default:a,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:a,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[t]:"aws.partition",[u]:[i],assign:e}],type:f,rules:[{conditions:[{[t]:"isSet",[u]:p},{[t]:"parseURL",[u]:p,assign:"url"}],type:f,rules:[{conditions:q,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:r,type:f,rules:[{conditions:s,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:r,endpoint:{url:j,properties:m,headers:m},type:h}]}]},{conditions:[k,l],type:f,rules:[{conditions:[n,o],type:f,rules:[{conditions:r,endpoint:{url:"https://mediaconvert-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:m,headers:m},type:h}]},{conditions:r,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:q,type:f,rules:[{conditions:[n],type:f,rules:[{conditions:r,type:f,rules:[{conditions:r,endpoint:{url:"https://mediaconvert-fips.{Region}.{PartitionResult#dnsSuffix}",properties:m,headers:m},type:h}]}]},{conditions:r,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:s,type:f,rules:[{conditions:[o],type:f,rules:[{conditions:r,endpoint:{url:"https://mediaconvert.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:m,headers:m},type:h}]},{conditions:r,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:r,type:f,rules:[{conditions:[{[t]:"stringEquals",[u]:[i,"cn-northwest-1"]}],endpoint:{url:"https://subscribe.mediaconvert.cn-northwest-1.amazonaws.com.cn",properties:m,headers:m},type:h},{conditions:r,endpoint:{url:"https://mediaconvert.{Region}.{PartitionResult#dnsSuffix}",properties:m,headers:m},type:h}]}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-medialive/src/endpoint/ruleset.ts b/clients/client-medialive/src/endpoint/ruleset.ts index 6ede4038ed664..bcbf695d4fcce 100644 --- a/clients/client-medialive/src/endpoint/ruleset.ts +++ b/clients/client-medialive/src/endpoint/ruleset.ts @@ -1,311 +1,30 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: true, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://medialive-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://medialive-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://medialive.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://medialive.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/medialive.json */ + +const r="fn", +s="argv", +t="ref"; +const a=true, +b=false, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i={[t]:"Endpoint"}, +j={[r]:"booleanEquals",[s]:[{[t]:"UseFIPS"},true]}, +k={[r]:"booleanEquals",[s]:[{[t]:"UseDualStack"},true]}, +l={}, +m={[r]:"booleanEquals",[s]:[true,{[r]:"getAttr",[s]:[{[t]:e},"supportsFIPS"]}]}, +n={[r]:"booleanEquals",[s]:[true,{[r]:"getAttr",[s]:[{[t]:e},"supportsDualStack"]}]}, +o=[j], +p=[], +q=[k]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:a,default:b,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:a,default:b,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:b,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[r]:"aws.partition",[s]:[{[t]:"Region"}],assign:e}],type:f,rules:[{conditions:[{[r]:"isSet",[s]:[i]}],type:f,rules:[{conditions:o,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:p,type:f,rules:[{conditions:q,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:p,endpoint:{url:i,properties:l,headers:l},type:h}]}]},{conditions:[j,k],type:f,rules:[{conditions:[m,n],type:f,rules:[{conditions:p,endpoint:{url:"https://medialive-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:p,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:o,type:f,rules:[{conditions:[m],type:f,rules:[{conditions:p,type:f,rules:[{conditions:p,endpoint:{url:"https://medialive-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]},{conditions:p,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:q,type:f,rules:[{conditions:[n],type:f,rules:[{conditions:p,endpoint:{url:"https://medialive.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:p,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:p,endpoint:{url:"https://medialive.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-mediapackage-vod/src/endpoint/ruleset.ts b/clients/client-mediapackage-vod/src/endpoint/ruleset.ts index 948b17f132de6..aae8a3a9d0c78 100644 --- a/clients/client-mediapackage-vod/src/endpoint/ruleset.ts +++ b/clients/client-mediapackage-vod/src/endpoint/ruleset.ts @@ -1,320 +1,31 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: false, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://mediapackage-vod-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://mediapackage-vod-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://mediapackage-vod.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://mediapackage-vod.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/mediapackage-vod.json */ + +const s="fn", +t="argv", +u="ref"; +const a=false, +b=true, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i={[u]:"Endpoint"}, +j={[s]:"booleanEquals",[t]:[{[u]:"UseFIPS"},true]}, +k={[s]:"booleanEquals",[t]:[{[u]:"UseDualStack"},true]}, +l={}, +m={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsFIPS"]}]}, +n={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsDualStack"]}]}, +o=[i], +p=[j], +q=[], +r=[k]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:b,default:a,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:b,default:a,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:a,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[s]:"aws.partition",[t]:[{[u]:"Region"}],assign:e}],type:f,rules:[{conditions:[{[s]:"isSet",[t]:o},{[s]:"parseURL",[t]:o,assign:"url"}],type:f,rules:[{conditions:p,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:q,type:f,rules:[{conditions:r,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:q,endpoint:{url:i,properties:l,headers:l},type:h}]}]},{conditions:[j,k],type:f,rules:[{conditions:[m,n],type:f,rules:[{conditions:q,endpoint:{url:"https://mediapackage-vod-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:p,type:f,rules:[{conditions:[m],type:f,rules:[{conditions:q,type:f,rules:[{conditions:q,endpoint:{url:"https://mediapackage-vod-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]},{conditions:q,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:r,type:f,rules:[{conditions:[n],type:f,rules:[{conditions:q,endpoint:{url:"https://mediapackage-vod.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:q,endpoint:{url:"https://mediapackage-vod.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-mediapackage/src/endpoint/ruleset.ts b/clients/client-mediapackage/src/endpoint/ruleset.ts index d1465594042eb..f8ec5e0bcc52a 100644 --- a/clients/client-mediapackage/src/endpoint/ruleset.ts +++ b/clients/client-mediapackage/src/endpoint/ruleset.ts @@ -1,320 +1,31 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: false, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://mediapackage-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://mediapackage-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://mediapackage.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://mediapackage.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/mediapackage.json */ + +const s="fn", +t="argv", +u="ref"; +const a=false, +b=true, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i={[u]:"Endpoint"}, +j={[s]:"booleanEquals",[t]:[{[u]:"UseFIPS"},true]}, +k={[s]:"booleanEquals",[t]:[{[u]:"UseDualStack"},true]}, +l={}, +m={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsFIPS"]}]}, +n={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsDualStack"]}]}, +o=[i], +p=[j], +q=[], +r=[k]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:b,default:a,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:b,default:a,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:a,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[s]:"aws.partition",[t]:[{[u]:"Region"}],assign:e}],type:f,rules:[{conditions:[{[s]:"isSet",[t]:o},{[s]:"parseURL",[t]:o,assign:"url"}],type:f,rules:[{conditions:p,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:q,type:f,rules:[{conditions:r,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:q,endpoint:{url:i,properties:l,headers:l},type:h}]}]},{conditions:[j,k],type:f,rules:[{conditions:[m,n],type:f,rules:[{conditions:q,endpoint:{url:"https://mediapackage-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:p,type:f,rules:[{conditions:[m],type:f,rules:[{conditions:q,type:f,rules:[{conditions:q,endpoint:{url:"https://mediapackage-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]},{conditions:q,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:r,type:f,rules:[{conditions:[n],type:f,rules:[{conditions:q,endpoint:{url:"https://mediapackage.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:q,endpoint:{url:"https://mediapackage.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-mediastore-data/src/endpoint/ruleset.ts b/clients/client-mediastore-data/src/endpoint/ruleset.ts index 3fd6197a256ca..694e49baa65e1 100644 --- a/clients/client-mediastore-data/src/endpoint/ruleset.ts +++ b/clients/client-mediastore-data/src/endpoint/ruleset.ts @@ -1,320 +1,31 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: false, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://data.mediastore-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://data.mediastore-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://data.mediastore.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://data.mediastore.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/mediastore-data.json */ + +const s="fn", +t="argv", +u="ref"; +const a=false, +b=true, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i={[u]:"Endpoint"}, +j={[s]:"booleanEquals",[t]:[{[u]:"UseFIPS"},true]}, +k={[s]:"booleanEquals",[t]:[{[u]:"UseDualStack"},true]}, +l={}, +m={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsFIPS"]}]}, +n={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsDualStack"]}]}, +o=[i], +p=[j], +q=[], +r=[k]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:b,default:a,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:b,default:a,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:a,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[s]:"aws.partition",[t]:[{[u]:"Region"}],assign:e}],type:f,rules:[{conditions:[{[s]:"isSet",[t]:o},{[s]:"parseURL",[t]:o,assign:"url"}],type:f,rules:[{conditions:p,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:q,type:f,rules:[{conditions:r,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:q,endpoint:{url:i,properties:l,headers:l},type:h}]}]},{conditions:[j,k],type:f,rules:[{conditions:[m,n],type:f,rules:[{conditions:q,endpoint:{url:"https://data.mediastore-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:p,type:f,rules:[{conditions:[m],type:f,rules:[{conditions:q,type:f,rules:[{conditions:q,endpoint:{url:"https://data.mediastore-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]},{conditions:q,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:r,type:f,rules:[{conditions:[n],type:f,rules:[{conditions:q,endpoint:{url:"https://data.mediastore.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:q,endpoint:{url:"https://data.mediastore.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-mediastore/src/endpoint/ruleset.ts b/clients/client-mediastore/src/endpoint/ruleset.ts index 316e704958473..cabfdabcd2a8d 100644 --- a/clients/client-mediastore/src/endpoint/ruleset.ts +++ b/clients/client-mediastore/src/endpoint/ruleset.ts @@ -1,320 +1,31 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: false, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://mediastore-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://mediastore-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://mediastore.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://mediastore.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/mediastore.json */ + +const s="fn", +t="argv", +u="ref"; +const a=false, +b=true, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i={[u]:"Endpoint"}, +j={[s]:"booleanEquals",[t]:[{[u]:"UseFIPS"},true]}, +k={[s]:"booleanEquals",[t]:[{[u]:"UseDualStack"},true]}, +l={}, +m={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsFIPS"]}]}, +n={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsDualStack"]}]}, +o=[i], +p=[j], +q=[], +r=[k]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:b,default:a,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:b,default:a,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:a,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[s]:"aws.partition",[t]:[{[u]:"Region"}],assign:e}],type:f,rules:[{conditions:[{[s]:"isSet",[t]:o},{[s]:"parseURL",[t]:o,assign:"url"}],type:f,rules:[{conditions:p,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:q,type:f,rules:[{conditions:r,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:q,endpoint:{url:i,properties:l,headers:l},type:h}]}]},{conditions:[j,k],type:f,rules:[{conditions:[m,n],type:f,rules:[{conditions:q,endpoint:{url:"https://mediastore-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:p,type:f,rules:[{conditions:[m],type:f,rules:[{conditions:q,type:f,rules:[{conditions:q,endpoint:{url:"https://mediastore-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]},{conditions:q,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:r,type:f,rules:[{conditions:[n],type:f,rules:[{conditions:q,endpoint:{url:"https://mediastore.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:q,endpoint:{url:"https://mediastore.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-mediatailor/src/endpoint/ruleset.ts b/clients/client-mediatailor/src/endpoint/ruleset.ts index 56c5ccac53d2a..f6cc8ed7ab9b1 100644 --- a/clients/client-mediatailor/src/endpoint/ruleset.ts +++ b/clients/client-mediatailor/src/endpoint/ruleset.ts @@ -1,320 +1,31 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: false, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://api.mediatailor-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://api.mediatailor-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://api.mediatailor.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://api.mediatailor.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/mediatailor.json */ + +const s="fn", +t="argv", +u="ref"; +const a=false, +b=true, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i={[u]:"Endpoint"}, +j={[s]:"booleanEquals",[t]:[{[u]:"UseFIPS"},true]}, +k={[s]:"booleanEquals",[t]:[{[u]:"UseDualStack"},true]}, +l={}, +m={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsFIPS"]}]}, +n={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsDualStack"]}]}, +o=[i], +p=[j], +q=[], +r=[k]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:b,default:a,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:b,default:a,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:a,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[s]:"aws.partition",[t]:[{[u]:"Region"}],assign:e}],type:f,rules:[{conditions:[{[s]:"isSet",[t]:o},{[s]:"parseURL",[t]:o,assign:"url"}],type:f,rules:[{conditions:p,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:q,type:f,rules:[{conditions:r,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:q,endpoint:{url:i,properties:l,headers:l},type:h}]}]},{conditions:[j,k],type:f,rules:[{conditions:[m,n],type:f,rules:[{conditions:q,endpoint:{url:"https://api.mediatailor-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:p,type:f,rules:[{conditions:[m],type:f,rules:[{conditions:q,type:f,rules:[{conditions:q,endpoint:{url:"https://api.mediatailor-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]},{conditions:q,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:r,type:f,rules:[{conditions:[n],type:f,rules:[{conditions:q,endpoint:{url:"https://api.mediatailor.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:q,endpoint:{url:"https://api.mediatailor.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-memorydb/src/endpoint/ruleset.ts b/clients/client-memorydb/src/endpoint/ruleset.ts index 59966278220dd..3013960a9518b 100644 --- a/clients/client-memorydb/src/endpoint/ruleset.ts +++ b/clients/client-memorydb/src/endpoint/ruleset.ts @@ -1,345 +1,32 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: false, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://memory-db-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://memory-db-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://memory-db.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "stringEquals", - argv: [ - { - ref: "Region", - }, - "fips", - ], - }, - ], - endpoint: { - url: "https://memory-db-fips.us-west-1.amazonaws.com", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - { - conditions: [], - endpoint: { - url: "https://memory-db.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/memorydb.json */ + +const t="fn", +u="argv", +v="ref"; +const a=false, +b=true, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i={[v]:"Region"}, +j={[v]:"Endpoint"}, +k={[t]:"booleanEquals",[u]:[{[v]:"UseFIPS"},true]}, +l={[t]:"booleanEquals",[u]:[{[v]:"UseDualStack"},true]}, +m={}, +n={[t]:"booleanEquals",[u]:[true,{[t]:"getAttr",[u]:[{[v]:e},"supportsFIPS"]}]}, +o={[t]:"booleanEquals",[u]:[true,{[t]:"getAttr",[u]:[{[v]:e},"supportsDualStack"]}]}, +p=[j], +q=[k], +r=[], +s=[l]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:b,default:a,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:b,default:a,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:a,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[t]:"aws.partition",[u]:[i],assign:e}],type:f,rules:[{conditions:[{[t]:"isSet",[u]:p},{[t]:"parseURL",[u]:p,assign:"url"}],type:f,rules:[{conditions:q,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:r,type:f,rules:[{conditions:s,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:r,endpoint:{url:j,properties:m,headers:m},type:h}]}]},{conditions:[k,l],type:f,rules:[{conditions:[n,o],type:f,rules:[{conditions:r,endpoint:{url:"https://memory-db-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:m,headers:m},type:h}]},{conditions:r,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:q,type:f,rules:[{conditions:[n],type:f,rules:[{conditions:r,type:f,rules:[{conditions:r,endpoint:{url:"https://memory-db-fips.{Region}.{PartitionResult#dnsSuffix}",properties:m,headers:m},type:h}]}]},{conditions:r,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:s,type:f,rules:[{conditions:[o],type:f,rules:[{conditions:r,endpoint:{url:"https://memory-db.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:m,headers:m},type:h}]},{conditions:r,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:r,type:f,rules:[{conditions:[{[t]:"stringEquals",[u]:[i,"fips"]}],endpoint:{url:"https://memory-db-fips.us-west-1.amazonaws.com",properties:m,headers:m},type:h},{conditions:r,endpoint:{url:"https://memory-db.{Region}.{PartitionResult#dnsSuffix}",properties:m,headers:m},type:h}]}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-mgn/src/endpoint/ruleset.ts b/clients/client-mgn/src/endpoint/ruleset.ts index e779038d6d5a5..64cd77385b141 100644 --- a/clients/client-mgn/src/endpoint/ruleset.ts +++ b/clients/client-mgn/src/endpoint/ruleset.ts @@ -1,320 +1,31 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: false, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://mgn-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://mgn-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://mgn.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://mgn.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/mgn.json */ + +const s="fn", +t="argv", +u="ref"; +const a=false, +b=true, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i={[u]:"Endpoint"}, +j={[s]:"booleanEquals",[t]:[{[u]:"UseFIPS"},true]}, +k={[s]:"booleanEquals",[t]:[{[u]:"UseDualStack"},true]}, +l={}, +m={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsFIPS"]}]}, +n={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsDualStack"]}]}, +o=[i], +p=[j], +q=[], +r=[k]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:b,default:a,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:b,default:a,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:a,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[s]:"aws.partition",[t]:[{[u]:"Region"}],assign:e}],type:f,rules:[{conditions:[{[s]:"isSet",[t]:o},{[s]:"parseURL",[t]:o,assign:"url"}],type:f,rules:[{conditions:p,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:q,type:f,rules:[{conditions:r,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:q,endpoint:{url:i,properties:l,headers:l},type:h}]}]},{conditions:[j,k],type:f,rules:[{conditions:[m,n],type:f,rules:[{conditions:q,endpoint:{url:"https://mgn-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:p,type:f,rules:[{conditions:[m],type:f,rules:[{conditions:q,type:f,rules:[{conditions:q,endpoint:{url:"https://mgn-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]},{conditions:q,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:r,type:f,rules:[{conditions:[n],type:f,rules:[{conditions:q,endpoint:{url:"https://mgn.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:q,endpoint:{url:"https://mgn.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-migration-hub-refactor-spaces/src/endpoint/ruleset.ts b/clients/client-migration-hub-refactor-spaces/src/endpoint/ruleset.ts index 0370181f98893..e493daa9aaf27 100644 --- a/clients/client-migration-hub-refactor-spaces/src/endpoint/ruleset.ts +++ b/clients/client-migration-hub-refactor-spaces/src/endpoint/ruleset.ts @@ -1,314 +1,31 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: false, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://refactor-spaces-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://refactor-spaces-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://refactor-spaces.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://refactor-spaces.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/migration-hub-refactor-spaces.json */ + +const s="fn", +t="argv", +u="ref"; +const a=false, +b=true, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i={[u]:"Endpoint"}, +j={[s]:"booleanEquals",[t]:[{[u]:"UseFIPS"},true]}, +k={[s]:"booleanEquals",[t]:[{[u]:"UseDualStack"},true]}, +l={}, +m={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsFIPS"]}]}, +n={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsDualStack"]}]}, +o=[i], +p=[j], +q=[], +r=[k]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:b,default:a,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:b,default:a,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:a,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[s]:"aws.partition",[t]:[{[u]:"Region"}],assign:e}],type:f,rules:[{conditions:[{[s]:"isSet",[t]:o},{[s]:"parseURL",[t]:o,assign:"url"}],type:f,rules:[{conditions:p,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:q,type:f,rules:[{conditions:r,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:q,endpoint:{url:i,properties:l,headers:l},type:h}]}]},{conditions:[j,k],type:f,rules:[{conditions:[m,n],type:f,rules:[{conditions:q,endpoint:{url:"https://refactor-spaces-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:p,type:f,rules:[{conditions:[m],type:f,rules:[{conditions:q,endpoint:{url:"https://refactor-spaces-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:r,type:f,rules:[{conditions:[n],type:f,rules:[{conditions:q,endpoint:{url:"https://refactor-spaces.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:q,endpoint:{url:"https://refactor-spaces.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-migration-hub/src/endpoint/ruleset.ts b/clients/client-migration-hub/src/endpoint/ruleset.ts index 7381509a295c4..3aa59c26a9e69 100644 --- a/clients/client-migration-hub/src/endpoint/ruleset.ts +++ b/clients/client-migration-hub/src/endpoint/ruleset.ts @@ -1,320 +1,31 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: false, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://mgh-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://mgh-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://mgh.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://mgh.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/migration-hub.json */ + +const s="fn", +t="argv", +u="ref"; +const a=false, +b=true, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i={[u]:"Endpoint"}, +j={[s]:"booleanEquals",[t]:[{[u]:"UseFIPS"},true]}, +k={[s]:"booleanEquals",[t]:[{[u]:"UseDualStack"},true]}, +l={}, +m={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsFIPS"]}]}, +n={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsDualStack"]}]}, +o=[i], +p=[j], +q=[], +r=[k]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:b,default:a,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:b,default:a,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:a,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[s]:"aws.partition",[t]:[{[u]:"Region"}],assign:e}],type:f,rules:[{conditions:[{[s]:"isSet",[t]:o},{[s]:"parseURL",[t]:o,assign:"url"}],type:f,rules:[{conditions:p,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:q,type:f,rules:[{conditions:r,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:q,endpoint:{url:i,properties:l,headers:l},type:h}]}]},{conditions:[j,k],type:f,rules:[{conditions:[m,n],type:f,rules:[{conditions:q,endpoint:{url:"https://mgh-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:p,type:f,rules:[{conditions:[m],type:f,rules:[{conditions:q,type:f,rules:[{conditions:q,endpoint:{url:"https://mgh-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]},{conditions:q,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:r,type:f,rules:[{conditions:[n],type:f,rules:[{conditions:q,endpoint:{url:"https://mgh.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:q,endpoint:{url:"https://mgh.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-migrationhub-config/src/endpoint/ruleset.ts b/clients/client-migrationhub-config/src/endpoint/ruleset.ts index eafb82749ec30..6b154b982e403 100644 --- a/clients/client-migrationhub-config/src/endpoint/ruleset.ts +++ b/clients/client-migrationhub-config/src/endpoint/ruleset.ts @@ -1,314 +1,31 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: false, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://migrationhub-config-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://migrationhub-config-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://migrationhub-config.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://migrationhub-config.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/migrationhub-config.json */ + +const s="fn", +t="argv", +u="ref"; +const a=false, +b=true, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i={[u]:"Endpoint"}, +j={[s]:"booleanEquals",[t]:[{[u]:"UseFIPS"},true]}, +k={[s]:"booleanEquals",[t]:[{[u]:"UseDualStack"},true]}, +l={}, +m={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsFIPS"]}]}, +n={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsDualStack"]}]}, +o=[i], +p=[j], +q=[], +r=[k]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:b,default:a,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:b,default:a,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:a,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[s]:"aws.partition",[t]:[{[u]:"Region"}],assign:e}],type:f,rules:[{conditions:[{[s]:"isSet",[t]:o},{[s]:"parseURL",[t]:o,assign:"url"}],type:f,rules:[{conditions:p,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:q,type:f,rules:[{conditions:r,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:q,endpoint:{url:i,properties:l,headers:l},type:h}]}]},{conditions:[j,k],type:f,rules:[{conditions:[m,n],type:f,rules:[{conditions:q,endpoint:{url:"https://migrationhub-config-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:p,type:f,rules:[{conditions:[m],type:f,rules:[{conditions:q,endpoint:{url:"https://migrationhub-config-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:r,type:f,rules:[{conditions:[n],type:f,rules:[{conditions:q,endpoint:{url:"https://migrationhub-config.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:q,endpoint:{url:"https://migrationhub-config.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-migrationhuborchestrator/src/endpoint/ruleset.ts b/clients/client-migrationhuborchestrator/src/endpoint/ruleset.ts index bb14ecba4b847..7d6761bebc643 100644 --- a/clients/client-migrationhuborchestrator/src/endpoint/ruleset.ts +++ b/clients/client-migrationhuborchestrator/src/endpoint/ruleset.ts @@ -1,314 +1,31 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: false, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://migrationhub-orchestrator-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://migrationhub-orchestrator-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://migrationhub-orchestrator.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://migrationhub-orchestrator.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/migrationhuborchestrator.json */ + +const s="fn", +t="argv", +u="ref"; +const a=false, +b=true, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i={[u]:"Endpoint"}, +j={[s]:"booleanEquals",[t]:[{[u]:"UseFIPS"},true]}, +k={[s]:"booleanEquals",[t]:[{[u]:"UseDualStack"},true]}, +l={}, +m={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsFIPS"]}]}, +n={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsDualStack"]}]}, +o=[i], +p=[j], +q=[], +r=[k]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:b,default:a,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:b,default:a,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:a,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[s]:"aws.partition",[t]:[{[u]:"Region"}],assign:e}],type:f,rules:[{conditions:[{[s]:"isSet",[t]:o},{[s]:"parseURL",[t]:o,assign:"url"}],type:f,rules:[{conditions:p,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:q,type:f,rules:[{conditions:r,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:q,endpoint:{url:i,properties:l,headers:l},type:h}]}]},{conditions:[j,k],type:f,rules:[{conditions:[m,n],type:f,rules:[{conditions:q,endpoint:{url:"https://migrationhub-orchestrator-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:p,type:f,rules:[{conditions:[m],type:f,rules:[{conditions:q,endpoint:{url:"https://migrationhub-orchestrator-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:r,type:f,rules:[{conditions:[n],type:f,rules:[{conditions:q,endpoint:{url:"https://migrationhub-orchestrator.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:q,endpoint:{url:"https://migrationhub-orchestrator.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-migrationhubstrategy/src/endpoint/ruleset.ts b/clients/client-migrationhubstrategy/src/endpoint/ruleset.ts index 794e29b93df81..bd3431f7b4e1c 100644 --- a/clients/client-migrationhubstrategy/src/endpoint/ruleset.ts +++ b/clients/client-migrationhubstrategy/src/endpoint/ruleset.ts @@ -1,311 +1,30 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: true, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://migrationhub-strategy-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://migrationhub-strategy-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://migrationhub-strategy.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://migrationhub-strategy.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/migrationhubstrategy.json */ + +const r="fn", +s="argv", +t="ref"; +const a=true, +b=false, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i={[t]:"Endpoint"}, +j={[r]:"booleanEquals",[s]:[{[t]:"UseFIPS"},true]}, +k={[r]:"booleanEquals",[s]:[{[t]:"UseDualStack"},true]}, +l={}, +m={[r]:"booleanEquals",[s]:[true,{[r]:"getAttr",[s]:[{[t]:e},"supportsFIPS"]}]}, +n={[r]:"booleanEquals",[s]:[true,{[r]:"getAttr",[s]:[{[t]:e},"supportsDualStack"]}]}, +o=[j], +p=[], +q=[k]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:a,default:b,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:a,default:b,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:b,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[r]:"aws.partition",[s]:[{[t]:"Region"}],assign:e}],type:f,rules:[{conditions:[{[r]:"isSet",[s]:[i]}],type:f,rules:[{conditions:o,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:p,type:f,rules:[{conditions:q,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:p,endpoint:{url:i,properties:l,headers:l},type:h}]}]},{conditions:[j,k],type:f,rules:[{conditions:[m,n],type:f,rules:[{conditions:p,endpoint:{url:"https://migrationhub-strategy-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:p,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:o,type:f,rules:[{conditions:[m],type:f,rules:[{conditions:p,type:f,rules:[{conditions:p,endpoint:{url:"https://migrationhub-strategy-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]},{conditions:p,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:q,type:f,rules:[{conditions:[n],type:f,rules:[{conditions:p,endpoint:{url:"https://migrationhub-strategy.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:p,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:p,endpoint:{url:"https://migrationhub-strategy.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-mobile/src/endpoint/ruleset.ts b/clients/client-mobile/src/endpoint/ruleset.ts index 1d8f358ad7d93..9fd4cf28c3485 100644 --- a/clients/client-mobile/src/endpoint/ruleset.ts +++ b/clients/client-mobile/src/endpoint/ruleset.ts @@ -1,314 +1,31 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: false, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://mobile-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://mobile-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://mobile.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://mobile.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/mobile.json */ + +const s="fn", +t="argv", +u="ref"; +const a=false, +b=true, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i={[u]:"Endpoint"}, +j={[s]:"booleanEquals",[t]:[{[u]:"UseFIPS"},true]}, +k={[s]:"booleanEquals",[t]:[{[u]:"UseDualStack"},true]}, +l={}, +m={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsFIPS"]}]}, +n={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsDualStack"]}]}, +o=[i], +p=[j], +q=[], +r=[k]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:b,default:a,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:b,default:a,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:a,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[s]:"aws.partition",[t]:[{[u]:"Region"}],assign:e}],type:f,rules:[{conditions:[{[s]:"isSet",[t]:o},{[s]:"parseURL",[t]:o,assign:"url"}],type:f,rules:[{conditions:p,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:q,type:f,rules:[{conditions:r,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:q,endpoint:{url:i,properties:l,headers:l},type:h}]}]},{conditions:[j,k],type:f,rules:[{conditions:[m,n],type:f,rules:[{conditions:q,endpoint:{url:"https://mobile-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:p,type:f,rules:[{conditions:[m],type:f,rules:[{conditions:q,endpoint:{url:"https://mobile-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:r,type:f,rules:[{conditions:[n],type:f,rules:[{conditions:q,endpoint:{url:"https://mobile.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:q,endpoint:{url:"https://mobile.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-mq/src/endpoint/ruleset.ts b/clients/client-mq/src/endpoint/ruleset.ts index 21a2a523c7ee1..4c8c3544521a0 100644 --- a/clients/client-mq/src/endpoint/ruleset.ts +++ b/clients/client-mq/src/endpoint/ruleset.ts @@ -1,320 +1,31 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: false, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://mq-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://mq-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://mq.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://mq.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/mq.json */ + +const s="fn", +t="argv", +u="ref"; +const a=false, +b=true, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i={[u]:"Endpoint"}, +j={[s]:"booleanEquals",[t]:[{[u]:"UseFIPS"},true]}, +k={[s]:"booleanEquals",[t]:[{[u]:"UseDualStack"},true]}, +l={}, +m={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsFIPS"]}]}, +n={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsDualStack"]}]}, +o=[i], +p=[j], +q=[], +r=[k]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:b,default:a,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:b,default:a,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:a,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[s]:"aws.partition",[t]:[{[u]:"Region"}],assign:e}],type:f,rules:[{conditions:[{[s]:"isSet",[t]:o},{[s]:"parseURL",[t]:o,assign:"url"}],type:f,rules:[{conditions:p,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:q,type:f,rules:[{conditions:r,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:q,endpoint:{url:i,properties:l,headers:l},type:h}]}]},{conditions:[j,k],type:f,rules:[{conditions:[m,n],type:f,rules:[{conditions:q,endpoint:{url:"https://mq-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:p,type:f,rules:[{conditions:[m],type:f,rules:[{conditions:q,type:f,rules:[{conditions:q,endpoint:{url:"https://mq-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]},{conditions:q,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:r,type:f,rules:[{conditions:[n],type:f,rules:[{conditions:q,endpoint:{url:"https://mq.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:q,endpoint:{url:"https://mq.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-mturk/src/endpoint/ruleset.ts b/clients/client-mturk/src/endpoint/ruleset.ts index 620e1bf4b9376..6a0bc321e4d17 100644 --- a/clients/client-mturk/src/endpoint/ruleset.ts +++ b/clients/client-mturk/src/endpoint/ruleset.ts @@ -1,345 +1,32 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: false, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://mturk-requester-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://mturk-requester-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://mturk-requester.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "stringEquals", - argv: [ - { - ref: "Region", - }, - "sandbox", - ], - }, - ], - endpoint: { - url: "https://mturk-requester-sandbox.us-east-1.amazonaws.com", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - { - conditions: [], - endpoint: { - url: "https://mturk-requester.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/mturk.json */ + +const t="fn", +u="argv", +v="ref"; +const a=false, +b=true, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i={[v]:"Region"}, +j={[v]:"Endpoint"}, +k={[t]:"booleanEquals",[u]:[{[v]:"UseFIPS"},true]}, +l={[t]:"booleanEquals",[u]:[{[v]:"UseDualStack"},true]}, +m={}, +n={[t]:"booleanEquals",[u]:[true,{[t]:"getAttr",[u]:[{[v]:e},"supportsFIPS"]}]}, +o={[t]:"booleanEquals",[u]:[true,{[t]:"getAttr",[u]:[{[v]:e},"supportsDualStack"]}]}, +p=[j], +q=[k], +r=[], +s=[l]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:b,default:a,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:b,default:a,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:a,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[t]:"aws.partition",[u]:[i],assign:e}],type:f,rules:[{conditions:[{[t]:"isSet",[u]:p},{[t]:"parseURL",[u]:p,assign:"url"}],type:f,rules:[{conditions:q,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:r,type:f,rules:[{conditions:s,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:r,endpoint:{url:j,properties:m,headers:m},type:h}]}]},{conditions:[k,l],type:f,rules:[{conditions:[n,o],type:f,rules:[{conditions:r,endpoint:{url:"https://mturk-requester-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:m,headers:m},type:h}]},{conditions:r,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:q,type:f,rules:[{conditions:[n],type:f,rules:[{conditions:r,type:f,rules:[{conditions:r,endpoint:{url:"https://mturk-requester-fips.{Region}.{PartitionResult#dnsSuffix}",properties:m,headers:m},type:h}]}]},{conditions:r,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:s,type:f,rules:[{conditions:[o],type:f,rules:[{conditions:r,endpoint:{url:"https://mturk-requester.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:m,headers:m},type:h}]},{conditions:r,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:r,type:f,rules:[{conditions:[{[t]:"stringEquals",[u]:[i,"sandbox"]}],endpoint:{url:"https://mturk-requester-sandbox.us-east-1.amazonaws.com",properties:m,headers:m},type:h},{conditions:r,endpoint:{url:"https://mturk-requester.{Region}.{PartitionResult#dnsSuffix}",properties:m,headers:m},type:h}]}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-mwaa/src/endpoint/ruleset.ts b/clients/client-mwaa/src/endpoint/ruleset.ts index 0467805d4c4ab..c7676898dbdf5 100644 --- a/clients/client-mwaa/src/endpoint/ruleset.ts +++ b/clients/client-mwaa/src/endpoint/ruleset.ts @@ -1,320 +1,31 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: false, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://airflow-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://airflow-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://airflow.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://airflow.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/mwaa.json */ + +const s="fn", +t="argv", +u="ref"; +const a=false, +b=true, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i={[u]:"Endpoint"}, +j={[s]:"booleanEquals",[t]:[{[u]:"UseFIPS"},true]}, +k={[s]:"booleanEquals",[t]:[{[u]:"UseDualStack"},true]}, +l={}, +m={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsFIPS"]}]}, +n={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsDualStack"]}]}, +o=[i], +p=[j], +q=[], +r=[k]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:b,default:a,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:b,default:a,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:a,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[s]:"aws.partition",[t]:[{[u]:"Region"}],assign:e}],type:f,rules:[{conditions:[{[s]:"isSet",[t]:o},{[s]:"parseURL",[t]:o,assign:"url"}],type:f,rules:[{conditions:p,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:q,type:f,rules:[{conditions:r,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:q,endpoint:{url:i,properties:l,headers:l},type:h}]}]},{conditions:[j,k],type:f,rules:[{conditions:[m,n],type:f,rules:[{conditions:q,endpoint:{url:"https://airflow-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:p,type:f,rules:[{conditions:[m],type:f,rules:[{conditions:q,type:f,rules:[{conditions:q,endpoint:{url:"https://airflow-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]},{conditions:q,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:r,type:f,rules:[{conditions:[n],type:f,rules:[{conditions:q,endpoint:{url:"https://airflow.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:q,endpoint:{url:"https://airflow.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-neptune/src/endpoint/ruleset.ts b/clients/client-neptune/src/endpoint/ruleset.ts index ecd34da6161be..05f9c5567c542 100644 --- a/clients/client-neptune/src/endpoint/ruleset.ts +++ b/clients/client-neptune/src/endpoint/ruleset.ts @@ -1,440 +1,36 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: false, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://rds-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "stringEquals", - argv: [ - { - ref: "Region", - }, - "rds.ca-central-1", - ], - }, - ], - endpoint: { - url: "https://rds-fips.ca-central-1.amazonaws.com", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - { - conditions: [ - { - fn: "stringEquals", - argv: [ - { - ref: "Region", - }, - "rds.us-east-1", - ], - }, - ], - endpoint: { - url: "https://rds-fips.us-east-1.amazonaws.com", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - { - conditions: [ - { - fn: "stringEquals", - argv: [ - { - ref: "Region", - }, - "rds.us-east-2", - ], - }, - ], - endpoint: { - url: "https://rds-fips.us-east-2.amazonaws.com", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - { - conditions: [ - { - fn: "stringEquals", - argv: [ - { - ref: "Region", - }, - "rds.us-west-1", - ], - }, - ], - endpoint: { - url: "https://rds-fips.us-west-1.amazonaws.com", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - { - conditions: [ - { - fn: "stringEquals", - argv: [ - { - ref: "Region", - }, - "rds.us-west-2", - ], - }, - ], - endpoint: { - url: "https://rds-fips.us-west-2.amazonaws.com", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - { - conditions: [ - { - fn: "stringEquals", - argv: [ - "aws-us-gov", - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "name", - ], - }, - ], - }, - ], - endpoint: { - url: "https://rds.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - { - conditions: [], - endpoint: { - url: "https://rds-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://rds.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://rds.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/neptune.json */ + +const x="fn", +y="argv", +z="ref"; +const a=false, +b=true, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i="getAttr", +j="stringEquals", +k={[z]:"Region"}, +l={[z]:"Endpoint"}, +m={[x]:"booleanEquals",[y]:[{[z]:"UseFIPS"},true]}, +n={[x]:"booleanEquals",[y]:[{[z]:"UseDualStack"},true]}, +o={}, +p={[x]:"booleanEquals",[y]:[true,{[x]:i,[y]:[{[z]:e},"supportsFIPS"]}]}, +q={[z]:e}, +r={[x]:"booleanEquals",[y]:[true,{[x]:i,[y]:[q,"supportsDualStack"]}]}, +s={"url":"https://rds.{Region}.{PartitionResult#dnsSuffix}","properties":{},"headers":{}}, +t=[l], +u=[m], +v=[], +w=[n]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:b,default:a,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:b,default:a,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:a,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[x]:"aws.partition",[y]:[k],assign:e}],type:f,rules:[{conditions:[{[x]:"isSet",[y]:t},{[x]:"parseURL",[y]:t,assign:"url"}],type:f,rules:[{conditions:u,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:v,type:f,rules:[{conditions:w,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:v,endpoint:{url:l,properties:o,headers:o},type:h}]}]},{conditions:[m,n],type:f,rules:[{conditions:[p,r],type:f,rules:[{conditions:v,endpoint:{url:"https://rds-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:o,headers:o},type:h}]},{conditions:v,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:u,type:f,rules:[{conditions:[p],type:f,rules:[{conditions:v,type:f,rules:[{conditions:[{[x]:j,[y]:[k,"rds.ca-central-1"]}],endpoint:{url:"https://rds-fips.ca-central-1.amazonaws.com",properties:o,headers:o},type:h},{conditions:[{[x]:j,[y]:[k,"rds.us-east-1"]}],endpoint:{url:"https://rds-fips.us-east-1.amazonaws.com",properties:o,headers:o},type:h},{conditions:[{[x]:j,[y]:[k,"rds.us-east-2"]}],endpoint:{url:"https://rds-fips.us-east-2.amazonaws.com",properties:o,headers:o},type:h},{conditions:[{[x]:j,[y]:[k,"rds.us-west-1"]}],endpoint:{url:"https://rds-fips.us-west-1.amazonaws.com",properties:o,headers:o},type:h},{conditions:[{[x]:j,[y]:[k,"rds.us-west-2"]}],endpoint:{url:"https://rds-fips.us-west-2.amazonaws.com",properties:o,headers:o},type:h},{conditions:[{[x]:j,[y]:["aws-us-gov",{[x]:i,[y]:[q,"name"]}]}],endpoint:s,type:h},{conditions:v,endpoint:{url:"https://rds-fips.{Region}.{PartitionResult#dnsSuffix}",properties:o,headers:o},type:h}]}]},{conditions:v,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:w,type:f,rules:[{conditions:[r],type:f,rules:[{conditions:v,endpoint:{url:"https://rds.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:o,headers:o},type:h}]},{conditions:v,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:v,endpoint:s,type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-network-firewall/src/endpoint/ruleset.ts b/clients/client-network-firewall/src/endpoint/ruleset.ts index 338f1b3397620..aa4ef36f313f2 100644 --- a/clients/client-network-firewall/src/endpoint/ruleset.ts +++ b/clients/client-network-firewall/src/endpoint/ruleset.ts @@ -1,320 +1,31 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: false, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://network-firewall-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://network-firewall-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://network-firewall.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://network-firewall.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/network-firewall.json */ + +const s="fn", +t="argv", +u="ref"; +const a=false, +b=true, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i={[u]:"Endpoint"}, +j={[s]:"booleanEquals",[t]:[{[u]:"UseFIPS"},true]}, +k={[s]:"booleanEquals",[t]:[{[u]:"UseDualStack"},true]}, +l={}, +m={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsFIPS"]}]}, +n={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsDualStack"]}]}, +o=[i], +p=[j], +q=[], +r=[k]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:b,default:a,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:b,default:a,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:a,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[s]:"aws.partition",[t]:[{[u]:"Region"}],assign:e}],type:f,rules:[{conditions:[{[s]:"isSet",[t]:o},{[s]:"parseURL",[t]:o,assign:"url"}],type:f,rules:[{conditions:p,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:q,type:f,rules:[{conditions:r,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:q,endpoint:{url:i,properties:l,headers:l},type:h}]}]},{conditions:[j,k],type:f,rules:[{conditions:[m,n],type:f,rules:[{conditions:q,endpoint:{url:"https://network-firewall-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:p,type:f,rules:[{conditions:[m],type:f,rules:[{conditions:q,type:f,rules:[{conditions:q,endpoint:{url:"https://network-firewall-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]},{conditions:q,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:r,type:f,rules:[{conditions:[n],type:f,rules:[{conditions:q,endpoint:{url:"https://network-firewall.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:q,endpoint:{url:"https://network-firewall.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-networkmanager/src/endpoint/ruleset.ts b/clients/client-networkmanager/src/endpoint/ruleset.ts index 1ab77067e6867..205f855fd6bb1 100644 --- a/clients/client-networkmanager/src/endpoint/ruleset.ts +++ b/clients/client-networkmanager/src/endpoint/ruleset.ts @@ -1,866 +1,51 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: false, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "stringEquals", - argv: [ - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "name", - ], - }, - "aws", - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://networkmanager-fips.{Region}.api.aws", - properties: { - authSchemes: [ - { - name: "sigv4", - signingRegion: "us-west-2", - signingName: "networkmanager", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://networkmanager-fips.{Region}.amazonaws.com", - properties: { - authSchemes: [ - { - name: "sigv4", - signingRegion: "us-west-2", - signingName: "networkmanager", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://networkmanager.{Region}.api.aws", - properties: { - authSchemes: [ - { - name: "sigv4", - signingRegion: "us-west-2", - signingName: "networkmanager", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://networkmanager.us-west-2.amazonaws.com", - properties: { - authSchemes: [ - { - name: "sigv4", - signingRegion: "us-west-2", - signingName: "networkmanager", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [ - { - fn: "stringEquals", - argv: [ - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "name", - ], - }, - "aws-us-gov", - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://networkmanager-fips.{Region}.api.aws", - properties: { - authSchemes: [ - { - name: "sigv4", - signingRegion: "us-gov-west-1", - signingName: "networkmanager", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://networkmanager-fips.{Region}.amazonaws.com", - properties: { - authSchemes: [ - { - name: "sigv4", - signingRegion: "us-gov-west-1", - signingName: "networkmanager", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://networkmanager.{Region}.api.aws", - properties: { - authSchemes: [ - { - name: "sigv4", - signingRegion: "us-gov-west-1", - signingName: "networkmanager", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://networkmanager.us-gov-west-1.amazonaws.com", - properties: { - authSchemes: [ - { - name: "sigv4", - signingRegion: "us-gov-west-1", - signingName: "networkmanager", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://networkmanager-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://networkmanager-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://networkmanager.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "stringEquals", - argv: [ - { - ref: "Region", - }, - "aws-global", - ], - }, - ], - endpoint: { - url: "https://networkmanager.us-west-2.amazonaws.com", - properties: { - authSchemes: [ - { - name: "sigv4", - signingRegion: "us-west-2", - signingName: "networkmanager", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - { - conditions: [ - { - fn: "stringEquals", - argv: [ - { - ref: "Region", - }, - "aws-us-gov-global", - ], - }, - ], - endpoint: { - url: "https://networkmanager.us-gov-west-1.amazonaws.com", - properties: { - authSchemes: [ - { - name: "sigv4", - signingRegion: "us-gov-west-1", - signingName: "networkmanager", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - { - conditions: [], - endpoint: { - url: "https://networkmanager.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/networkmanager.json */ + +const F="type", +G="conditions", +H="fn", +I="argv", +J="ref", +K="properties", +L="headers", +M="authSchemes", +N="signingRegion", +O="signingName"; +const a=false, +b=true, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i="stringEquals", +j="https://networkmanager-fips.{Region}.api.aws", +k="https://networkmanager-fips.{Region}.amazonaws.com", +l="https://networkmanager.{Region}.api.aws", +m={[J]:"Region"}, +n={[J]:"Endpoint"}, +o={}, +p={[H]:"getAttr",[I]:[{[J]:e},"name"]}, +q={[M]:[{"name":"sigv4",[N]:"us-west-2",[O]:"networkmanager"}]}, +r={[G]:[],[g]:"FIPS and DualStack are enabled, but this partition does not support one or both",[F]:g}, +s={[G]:[],[g]:"FIPS is enabled but this partition does not support FIPS",[F]:g}, +t={[G]:[],[g]:"DualStack is enabled but this partition does not support DualStack",[F]:g}, +u={"url":"https://networkmanager.us-west-2.amazonaws.com",[K]:q,[L]:{}}, +v={[M]:[{"name":"sigv4",[N]:"us-gov-west-1",[O]:"networkmanager"}]}, +w={"url":"https://networkmanager.us-gov-west-1.amazonaws.com",[K]:v,[L]:{}}, +x=[n], +y=[{[H]:"booleanEquals",[I]:[{[J]:"UseFIPS"},true]}], +z=[], +A=[{[H]:"booleanEquals",[I]:[{[J]:"UseDualStack"},true]}], +B=[{[H]:"booleanEquals",[I]:[{[J]:"UseFIPS"},true]},{[H]:"booleanEquals",[I]:[{[J]:"UseDualStack"},true]}], +C=[{[H]:"booleanEquals",[I]:[true,{[H]:"getAttr",[I]:[{[J]:e},"supportsFIPS"]}]},{[H]:"booleanEquals",[I]:[true,{[H]:"getAttr",[I]:[{[J]:e},"supportsDualStack"]}]}], +D=[{[H]:"booleanEquals",[I]:[true,{[H]:"getAttr",[I]:[{[J]:e},"supportsFIPS"]}]}], +E=[{[H]:"booleanEquals",[I]:[true,{[H]:"getAttr",[I]:[{[J]:e},"supportsDualStack"]}]}]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",[F]:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:b,default:a,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",[F]:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:b,default:a,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",[F]:d},Endpoint:{builtIn:"SDK::Endpoint",required:a,documentation:"Override the endpoint used to send this request",[F]:c}},rules:[{[G]:[{[H]:"aws.partition",[I]:[m],assign:e}],[F]:f,rules:[{[G]:[{[H]:"isSet",[I]:x},{[H]:"parseURL",[I]:x,assign:"url"}],[F]:f,rules:[{[G]:y,error:"Invalid Configuration: FIPS and custom endpoint are not supported",[F]:g},{[G]:z,[F]:f,rules:[{[G]:A,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",[F]:g},{[G]:z,endpoint:{url:n,[K]:o,[L]:o},[F]:h}]}]},{[G]:[{[H]:i,[I]:[p,"aws"]}],[F]:f,rules:[{[G]:B,[F]:f,rules:[{[G]:C,[F]:f,rules:[{[G]:z,endpoint:{url:j,[K]:q,[L]:o},[F]:h}]},r]},{[G]:y,[F]:f,rules:[{[G]:D,[F]:f,rules:[{[G]:z,endpoint:{url:k,[K]:q,[L]:o},[F]:h}]},s]},{[G]:A,[F]:f,rules:[{[G]:E,[F]:f,rules:[{[G]:z,endpoint:{url:l,[K]:q,[L]:o},[F]:h}]},t]},{[G]:z,endpoint:u,[F]:h}]},{[G]:[{[H]:i,[I]:[p,"aws-us-gov"]}],[F]:f,rules:[{[G]:B,[F]:f,rules:[{[G]:C,[F]:f,rules:[{[G]:z,endpoint:{url:j,[K]:v,[L]:o},[F]:h}]},r]},{[G]:y,[F]:f,rules:[{[G]:D,[F]:f,rules:[{[G]:z,endpoint:{url:k,[K]:v,[L]:o},[F]:h}]},s]},{[G]:A,[F]:f,rules:[{[G]:E,[F]:f,rules:[{[G]:z,endpoint:{url:l,[K]:v,[L]:o},[F]:h}]},t]},{[G]:z,endpoint:w,[F]:h}]},{[G]:B,[F]:f,rules:[{[G]:C,[F]:f,rules:[{[G]:z,endpoint:{url:"https://networkmanager-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",[K]:o,[L]:o},[F]:h}]},r]},{[G]:y,[F]:f,rules:[{[G]:D,[F]:f,rules:[{[G]:z,[F]:f,rules:[{[G]:z,endpoint:{url:"https://networkmanager-fips.{Region}.{PartitionResult#dnsSuffix}",[K]:o,[L]:o},[F]:h}]}]},s]},{[G]:A,[F]:f,rules:[{[G]:E,[F]:f,rules:[{[G]:z,endpoint:{url:"https://networkmanager.{Region}.{PartitionResult#dualStackDnsSuffix}",[K]:o,[L]:o},[F]:h}]},t]},{[G]:z,[F]:f,rules:[{[G]:[{[H]:i,[I]:[m,"aws-global"]}],endpoint:u,[F]:h},{[G]:[{[H]:i,[I]:[m,"aws-us-gov-global"]}],endpoint:w,[F]:h},{[G]:z,endpoint:{url:"https://networkmanager.{Region}.{PartitionResult#dnsSuffix}",[K]:o,[L]:o},[F]:h}]}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-nimble/src/endpoint/ruleset.ts b/clients/client-nimble/src/endpoint/ruleset.ts index 6b146021b9c56..7c7afc2d17095 100644 --- a/clients/client-nimble/src/endpoint/ruleset.ts +++ b/clients/client-nimble/src/endpoint/ruleset.ts @@ -1,320 +1,31 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: false, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://nimble-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://nimble-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://nimble.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://nimble.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/nimble.json */ + +const s="fn", +t="argv", +u="ref"; +const a=false, +b=true, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i={[u]:"Endpoint"}, +j={[s]:"booleanEquals",[t]:[{[u]:"UseFIPS"},true]}, +k={[s]:"booleanEquals",[t]:[{[u]:"UseDualStack"},true]}, +l={}, +m={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsFIPS"]}]}, +n={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsDualStack"]}]}, +o=[i], +p=[j], +q=[], +r=[k]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:b,default:a,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:b,default:a,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:a,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[s]:"aws.partition",[t]:[{[u]:"Region"}],assign:e}],type:f,rules:[{conditions:[{[s]:"isSet",[t]:o},{[s]:"parseURL",[t]:o,assign:"url"}],type:f,rules:[{conditions:p,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:q,type:f,rules:[{conditions:r,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:q,endpoint:{url:i,properties:l,headers:l},type:h}]}]},{conditions:[j,k],type:f,rules:[{conditions:[m,n],type:f,rules:[{conditions:q,endpoint:{url:"https://nimble-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:p,type:f,rules:[{conditions:[m],type:f,rules:[{conditions:q,type:f,rules:[{conditions:q,endpoint:{url:"https://nimble-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]},{conditions:q,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:r,type:f,rules:[{conditions:[n],type:f,rules:[{conditions:q,endpoint:{url:"https://nimble.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:q,endpoint:{url:"https://nimble.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-oam/src/endpoint/ruleset.ts b/clients/client-oam/src/endpoint/ruleset.ts index 93ebaab11e7e5..d8c66ddb99762 100644 --- a/clients/client-oam/src/endpoint/ruleset.ts +++ b/clients/client-oam/src/endpoint/ruleset.ts @@ -1,314 +1,31 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: true, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://oam-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://oam-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://oam.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://oam.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/oam.json */ + +const s="fn", +t="argv", +u="ref"; +const a=true, +b=false, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i={[u]:"Endpoint"}, +j={[s]:"booleanEquals",[t]:[{[u]:"UseFIPS"},true]}, +k={[s]:"booleanEquals",[t]:[{[u]:"UseDualStack"},true]}, +l={}, +m={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsFIPS"]}]}, +n={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsDualStack"]}]}, +o=[i], +p=[j], +q=[], +r=[k]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:a,default:b,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:a,default:b,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:b,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[s]:"aws.partition",[t]:[{[u]:"Region"}],assign:e}],type:f,rules:[{conditions:[{[s]:"isSet",[t]:o},{[s]:"parseURL",[t]:o,assign:"url"}],type:f,rules:[{conditions:p,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:q,type:f,rules:[{conditions:r,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:q,endpoint:{url:i,properties:l,headers:l},type:h}]}]},{conditions:[j,k],type:f,rules:[{conditions:[m,n],type:f,rules:[{conditions:q,endpoint:{url:"https://oam-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:p,type:f,rules:[{conditions:[m],type:f,rules:[{conditions:q,endpoint:{url:"https://oam-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:r,type:f,rules:[{conditions:[n],type:f,rules:[{conditions:q,endpoint:{url:"https://oam.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:q,endpoint:{url:"https://oam.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-omics/src/endpoint/ruleset.ts b/clients/client-omics/src/endpoint/ruleset.ts index f54702b12ef07..27b8c1c156a7d 100644 --- a/clients/client-omics/src/endpoint/ruleset.ts +++ b/clients/client-omics/src/endpoint/ruleset.ts @@ -1,314 +1,31 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: true, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://omics-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://omics-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://omics.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://omics.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/omics.json */ + +const s="fn", +t="argv", +u="ref"; +const a=true, +b=false, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i={[u]:"Endpoint"}, +j={[s]:"booleanEquals",[t]:[{[u]:"UseFIPS"},true]}, +k={[s]:"booleanEquals",[t]:[{[u]:"UseDualStack"},true]}, +l={}, +m={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsFIPS"]}]}, +n={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsDualStack"]}]}, +o=[i], +p=[j], +q=[], +r=[k]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:a,default:b,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:a,default:b,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:b,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[s]:"aws.partition",[t]:[{[u]:"Region"}],assign:e}],type:f,rules:[{conditions:[{[s]:"isSet",[t]:o},{[s]:"parseURL",[t]:o,assign:"url"}],type:f,rules:[{conditions:p,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:q,type:f,rules:[{conditions:r,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:q,endpoint:{url:i,properties:l,headers:l},type:h}]}]},{conditions:[j,k],type:f,rules:[{conditions:[m,n],type:f,rules:[{conditions:q,endpoint:{url:"https://omics-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:p,type:f,rules:[{conditions:[m],type:f,rules:[{conditions:q,endpoint:{url:"https://omics-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:r,type:f,rules:[{conditions:[n],type:f,rules:[{conditions:q,endpoint:{url:"https://omics.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:q,endpoint:{url:"https://omics.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-opensearch/src/endpoint/ruleset.ts b/clients/client-opensearch/src/endpoint/ruleset.ts index 438460bbcfd53..07e44ef40f0b9 100644 --- a/clients/client-opensearch/src/endpoint/ruleset.ts +++ b/clients/client-opensearch/src/endpoint/ruleset.ts @@ -1,320 +1,31 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: false, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://es-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://es-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://es.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://es.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/opensearch.json */ + +const s="fn", +t="argv", +u="ref"; +const a=false, +b=true, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i={[u]:"Endpoint"}, +j={[s]:"booleanEquals",[t]:[{[u]:"UseFIPS"},true]}, +k={[s]:"booleanEquals",[t]:[{[u]:"UseDualStack"},true]}, +l={}, +m={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsFIPS"]}]}, +n={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsDualStack"]}]}, +o=[i], +p=[j], +q=[], +r=[k]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:b,default:a,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:b,default:a,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:a,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[s]:"aws.partition",[t]:[{[u]:"Region"}],assign:e}],type:f,rules:[{conditions:[{[s]:"isSet",[t]:o},{[s]:"parseURL",[t]:o,assign:"url"}],type:f,rules:[{conditions:p,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:q,type:f,rules:[{conditions:r,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:q,endpoint:{url:i,properties:l,headers:l},type:h}]}]},{conditions:[j,k],type:f,rules:[{conditions:[m,n],type:f,rules:[{conditions:q,endpoint:{url:"https://es-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:p,type:f,rules:[{conditions:[m],type:f,rules:[{conditions:q,type:f,rules:[{conditions:q,endpoint:{url:"https://es-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]},{conditions:q,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:r,type:f,rules:[{conditions:[n],type:f,rules:[{conditions:q,endpoint:{url:"https://es.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:q,endpoint:{url:"https://es.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-opensearchserverless/src/endpoint/ruleset.ts b/clients/client-opensearchserverless/src/endpoint/ruleset.ts index 6d4dcfd2d1858..2481f9dd89503 100644 --- a/clients/client-opensearchserverless/src/endpoint/ruleset.ts +++ b/clients/client-opensearchserverless/src/endpoint/ruleset.ts @@ -1,314 +1,31 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: true, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://aoss-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://aoss-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://aoss.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://aoss.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/opensearchserverless.json */ + +const s="fn", +t="argv", +u="ref"; +const a=true, +b=false, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i={[u]:"Endpoint"}, +j={[s]:"booleanEquals",[t]:[{[u]:"UseFIPS"},true]}, +k={[s]:"booleanEquals",[t]:[{[u]:"UseDualStack"},true]}, +l={}, +m={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsFIPS"]}]}, +n={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsDualStack"]}]}, +o=[i], +p=[j], +q=[], +r=[k]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:a,default:b,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:a,default:b,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:b,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[s]:"aws.partition",[t]:[{[u]:"Region"}],assign:e}],type:f,rules:[{conditions:[{[s]:"isSet",[t]:o},{[s]:"parseURL",[t]:o,assign:"url"}],type:f,rules:[{conditions:p,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:q,type:f,rules:[{conditions:r,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:q,endpoint:{url:i,properties:l,headers:l},type:h}]}]},{conditions:[j,k],type:f,rules:[{conditions:[m,n],type:f,rules:[{conditions:q,endpoint:{url:"https://aoss-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:p,type:f,rules:[{conditions:[m],type:f,rules:[{conditions:q,endpoint:{url:"https://aoss-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:r,type:f,rules:[{conditions:[n],type:f,rules:[{conditions:q,endpoint:{url:"https://aoss.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:q,endpoint:{url:"https://aoss.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-opsworks/src/endpoint/ruleset.ts b/clients/client-opsworks/src/endpoint/ruleset.ts index 8faa0d4e120fa..5e32a6634796d 100644 --- a/clients/client-opsworks/src/endpoint/ruleset.ts +++ b/clients/client-opsworks/src/endpoint/ruleset.ts @@ -1,320 +1,31 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: false, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://opsworks-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://opsworks-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://opsworks.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://opsworks.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/opsworks.json */ + +const s="fn", +t="argv", +u="ref"; +const a=false, +b=true, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i={[u]:"Endpoint"}, +j={[s]:"booleanEquals",[t]:[{[u]:"UseFIPS"},true]}, +k={[s]:"booleanEquals",[t]:[{[u]:"UseDualStack"},true]}, +l={}, +m={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsFIPS"]}]}, +n={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsDualStack"]}]}, +o=[i], +p=[j], +q=[], +r=[k]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:b,default:a,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:b,default:a,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:a,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[s]:"aws.partition",[t]:[{[u]:"Region"}],assign:e}],type:f,rules:[{conditions:[{[s]:"isSet",[t]:o},{[s]:"parseURL",[t]:o,assign:"url"}],type:f,rules:[{conditions:p,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:q,type:f,rules:[{conditions:r,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:q,endpoint:{url:i,properties:l,headers:l},type:h}]}]},{conditions:[j,k],type:f,rules:[{conditions:[m,n],type:f,rules:[{conditions:q,endpoint:{url:"https://opsworks-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:p,type:f,rules:[{conditions:[m],type:f,rules:[{conditions:q,type:f,rules:[{conditions:q,endpoint:{url:"https://opsworks-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]},{conditions:q,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:r,type:f,rules:[{conditions:[n],type:f,rules:[{conditions:q,endpoint:{url:"https://opsworks.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:q,endpoint:{url:"https://opsworks.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-opsworkscm/src/endpoint/ruleset.ts b/clients/client-opsworkscm/src/endpoint/ruleset.ts index 2fbfdde2df9c3..f75740de7f1c4 100644 --- a/clients/client-opsworkscm/src/endpoint/ruleset.ts +++ b/clients/client-opsworkscm/src/endpoint/ruleset.ts @@ -1,320 +1,31 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: false, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://opsworks-cm-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://opsworks-cm-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://opsworks-cm.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://opsworks-cm.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/opsworkscm.json */ + +const s="fn", +t="argv", +u="ref"; +const a=false, +b=true, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i={[u]:"Endpoint"}, +j={[s]:"booleanEquals",[t]:[{[u]:"UseFIPS"},true]}, +k={[s]:"booleanEquals",[t]:[{[u]:"UseDualStack"},true]}, +l={}, +m={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsFIPS"]}]}, +n={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsDualStack"]}]}, +o=[i], +p=[j], +q=[], +r=[k]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:b,default:a,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:b,default:a,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:a,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[s]:"aws.partition",[t]:[{[u]:"Region"}],assign:e}],type:f,rules:[{conditions:[{[s]:"isSet",[t]:o},{[s]:"parseURL",[t]:o,assign:"url"}],type:f,rules:[{conditions:p,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:q,type:f,rules:[{conditions:r,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:q,endpoint:{url:i,properties:l,headers:l},type:h}]}]},{conditions:[j,k],type:f,rules:[{conditions:[m,n],type:f,rules:[{conditions:q,endpoint:{url:"https://opsworks-cm-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:p,type:f,rules:[{conditions:[m],type:f,rules:[{conditions:q,type:f,rules:[{conditions:q,endpoint:{url:"https://opsworks-cm-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]},{conditions:q,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:r,type:f,rules:[{conditions:[n],type:f,rules:[{conditions:q,endpoint:{url:"https://opsworks-cm.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:q,endpoint:{url:"https://opsworks-cm.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-organizations/src/endpoint/ruleset.ts b/clients/client-organizations/src/endpoint/ruleset.ts index 068b7a6cac2d5..9771ae3c9432e 100644 --- a/clients/client-organizations/src/endpoint/ruleset.ts +++ b/clients/client-organizations/src/endpoint/ruleset.ts @@ -1,1174 +1,59 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: true, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "stringEquals", - argv: [ - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "name", - ], - }, - "aws", - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://organizations-fips.{Region}.api.aws", - properties: { - authSchemes: [ - { - name: "sigv4", - signingRegion: "us-east-1", - signingName: "organizations", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://organizations-fips.us-east-1.amazonaws.com", - properties: { - authSchemes: [ - { - name: "sigv4", - signingRegion: "us-east-1", - signingName: "organizations", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://organizations.{Region}.api.aws", - properties: { - authSchemes: [ - { - name: "sigv4", - signingRegion: "us-east-1", - signingName: "organizations", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://organizations.us-east-1.amazonaws.com", - properties: { - authSchemes: [ - { - name: "sigv4", - signingRegion: "us-east-1", - signingName: "organizations", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [ - { - fn: "stringEquals", - argv: [ - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "name", - ], - }, - "aws-cn", - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://organizations-fips.{Region}.api.amazonwebservices.com.cn", - properties: { - authSchemes: [ - { - name: "sigv4", - signingRegion: "cn-northwest-1", - signingName: "organizations", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://organizations-fips.{Region}.amazonaws.com.cn", - properties: { - authSchemes: [ - { - name: "sigv4", - signingRegion: "cn-northwest-1", - signingName: "organizations", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://organizations.{Region}.api.amazonwebservices.com.cn", - properties: { - authSchemes: [ - { - name: "sigv4", - signingRegion: "cn-northwest-1", - signingName: "organizations", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://organizations.cn-northwest-1.amazonaws.com.cn", - properties: { - authSchemes: [ - { - name: "sigv4", - signingRegion: "cn-northwest-1", - signingName: "organizations", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [ - { - fn: "stringEquals", - argv: [ - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "name", - ], - }, - "aws-us-gov", - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://organizations-fips.{Region}.api.aws", - properties: { - authSchemes: [ - { - name: "sigv4", - signingRegion: "us-gov-west-1", - signingName: "organizations", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://organizations.us-gov-west-1.amazonaws.com", - properties: { - authSchemes: [ - { - name: "sigv4", - signingRegion: "us-gov-west-1", - signingName: "organizations", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://organizations.{Region}.api.aws", - properties: { - authSchemes: [ - { - name: "sigv4", - signingRegion: "us-gov-west-1", - signingName: "organizations", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://organizations.us-gov-west-1.amazonaws.com", - properties: { - authSchemes: [ - { - name: "sigv4", - signingRegion: "us-gov-west-1", - signingName: "organizations", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://organizations-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "stringEquals", - argv: [ - { - ref: "Region", - }, - "aws-global", - ], - }, - ], - endpoint: { - url: "https://organizations-fips.us-east-1.amazonaws.com", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - { - conditions: [ - { - fn: "stringEquals", - argv: [ - { - ref: "Region", - }, - "aws-us-gov-global", - ], - }, - ], - endpoint: { - url: "https://organizations.us-gov-west-1.amazonaws.com", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - { - conditions: [], - endpoint: { - url: "https://organizations-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://organizations.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "stringEquals", - argv: [ - { - ref: "Region", - }, - "aws-global", - ], - }, - ], - endpoint: { - url: "https://organizations.us-east-1.amazonaws.com", - properties: { - authSchemes: [ - { - name: "sigv4", - signingRegion: "us-east-1", - signingName: "organizations", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - { - conditions: [ - { - fn: "stringEquals", - argv: [ - { - ref: "Region", - }, - "aws-cn-global", - ], - }, - ], - endpoint: { - url: "https://organizations.cn-northwest-1.amazonaws.com.cn", - properties: { - authSchemes: [ - { - name: "sigv4", - signingRegion: "cn-northwest-1", - signingName: "organizations", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - { - conditions: [ - { - fn: "stringEquals", - argv: [ - { - ref: "Region", - }, - "aws-us-gov-global", - ], - }, - ], - endpoint: { - url: "https://organizations.us-gov-west-1.amazonaws.com", - properties: { - authSchemes: [ - { - name: "sigv4", - signingRegion: "us-gov-west-1", - signingName: "organizations", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - { - conditions: [], - endpoint: { - url: "https://organizations.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/organizations.json */ + +const L="type", +M="conditions", +N="fn", +O="argv", +P="ref", +Q="url", +R="properties", +S="headers", +T="authSchemes", +U="name", +V="signingRegion", +W="signingName"; +const a=true, +b=false, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i="stringEquals", +j="https://organizations-fips.{Region}.api.aws", +k="https://organizations-fips.us-east-1.amazonaws.com", +l="https://organizations.{Region}.api.aws", +m="https://organizations.us-gov-west-1.amazonaws.com", +n={[P]:"Region"}, +o={[P]:"Endpoint"}, +p={}, +q={[N]:"getAttr",[O]:[{[P]:e},"name"]}, +r={[T]:[{[U]:"sigv4",[V]:"us-east-1",[W]:"organizations"}]}, +s={[M]:[],[g]:"FIPS and DualStack are enabled, but this partition does not support one or both",[L]:g}, +t={[M]:[],[g]:"FIPS is enabled but this partition does not support FIPS",[L]:g}, +u={[M]:[],[g]:"DualStack is enabled but this partition does not support DualStack",[L]:g}, +v={[Q]:"https://organizations.us-east-1.amazonaws.com",[R]:r,[S]:{}}, +w={[T]:[{[U]:"sigv4",[V]:"cn-northwest-1",[W]:"organizations"}]}, +x={[Q]:"https://organizations.cn-northwest-1.amazonaws.com.cn",[R]:w,[S]:{}}, +y={[T]:[{[U]:"sigv4",[V]:"us-gov-west-1",[W]:"organizations"}]}, +z={[M]:[],[h]:{[Q]:m,[R]:y,[S]:{}},[L]:h}, +A={[Q]:m,[R]:y,[S]:{}}, +B=[o], +C=[{[N]:"booleanEquals",[O]:[{[P]:"UseFIPS"},true]}], +D=[], +E=[{[N]:"booleanEquals",[O]:[{[P]:"UseDualStack"},true]}], +F=[{[N]:"booleanEquals",[O]:[{[P]:"UseFIPS"},true]},{[N]:"booleanEquals",[O]:[{[P]:"UseDualStack"},true]}], +G=[{[N]:"booleanEquals",[O]:[true,{[N]:"getAttr",[O]:[{[P]:e},"supportsFIPS"]}]},{[N]:"booleanEquals",[O]:[true,{[N]:"getAttr",[O]:[{[P]:e},"supportsDualStack"]}]}], +H=[{[N]:"booleanEquals",[O]:[true,{[N]:"getAttr",[O]:[{[P]:e},"supportsFIPS"]}]}], +I=[{[N]:"booleanEquals",[O]:[true,{[N]:"getAttr",[O]:[{[P]:e},"supportsDualStack"]}]}], +J=[{[N]:i,[O]:[n,"aws-global"]}], +K=[{[N]:i,[O]:[n,"aws-us-gov-global"]}]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",[L]:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:a,default:b,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",[L]:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:a,default:b,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",[L]:d},Endpoint:{builtIn:"SDK::Endpoint",required:b,documentation:"Override the endpoint used to send this request",[L]:c}},rules:[{[M]:[{[N]:"aws.partition",[O]:[n],assign:e}],[L]:f,rules:[{[M]:[{[N]:"isSet",[O]:B},{[N]:"parseURL",[O]:B,assign:"url"}],[L]:f,rules:[{[M]:C,error:"Invalid Configuration: FIPS and custom endpoint are not supported",[L]:g},{[M]:D,[L]:f,rules:[{[M]:E,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",[L]:g},{[M]:D,endpoint:{[Q]:o,[R]:p,[S]:p},[L]:h}]}]},{[M]:[{[N]:i,[O]:[q,"aws"]}],[L]:f,rules:[{[M]:F,[L]:f,rules:[{[M]:G,[L]:f,rules:[{[M]:D,endpoint:{[Q]:j,[R]:r,[S]:p},[L]:h}]},s]},{[M]:C,[L]:f,rules:[{[M]:H,[L]:f,rules:[{[M]:D,endpoint:{[Q]:k,[R]:r,[S]:p},[L]:h}]},t]},{[M]:E,[L]:f,rules:[{[M]:I,[L]:f,rules:[{[M]:D,endpoint:{[Q]:l,[R]:r,[S]:p},[L]:h}]},u]},{[M]:D,endpoint:v,[L]:h}]},{[M]:[{[N]:i,[O]:[q,"aws-cn"]}],[L]:f,rules:[{[M]:F,[L]:f,rules:[{[M]:G,[L]:f,rules:[{[M]:D,endpoint:{[Q]:"https://organizations-fips.{Region}.api.amazonwebservices.com.cn",[R]:w,[S]:p},[L]:h}]},s]},{[M]:C,[L]:f,rules:[{[M]:H,[L]:f,rules:[{[M]:D,endpoint:{[Q]:"https://organizations-fips.{Region}.amazonaws.com.cn",[R]:w,[S]:p},[L]:h}]},t]},{[M]:E,[L]:f,rules:[{[M]:I,[L]:f,rules:[{[M]:D,endpoint:{[Q]:"https://organizations.{Region}.api.amazonwebservices.com.cn",[R]:w,[S]:p},[L]:h}]},u]},{[M]:D,endpoint:x,[L]:h}]},{[M]:[{[N]:i,[O]:[q,"aws-us-gov"]}],[L]:f,rules:[{[M]:F,[L]:f,rules:[{[M]:G,[L]:f,rules:[{[M]:D,endpoint:{[Q]:j,[R]:y,[S]:p},[L]:h}]},s]},{[M]:C,[L]:f,rules:[{[M]:H,[L]:f,rules:[z]},t]},{[M]:E,[L]:f,rules:[{[M]:I,[L]:f,rules:[{[M]:D,endpoint:{[Q]:l,[R]:y,[S]:p},[L]:h}]},u]},z]},{[M]:F,[L]:f,rules:[{[M]:G,[L]:f,rules:[{[M]:D,endpoint:{[Q]:"https://organizations-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",[R]:p,[S]:p},[L]:h}]},s]},{[M]:C,[L]:f,rules:[{[M]:H,[L]:f,rules:[{[M]:D,[L]:f,rules:[{[M]:J,endpoint:{[Q]:k,[R]:p,[S]:p},[L]:h},{[M]:K,endpoint:{[Q]:m,[R]:p,[S]:p},[L]:h},{[M]:D,endpoint:{[Q]:"https://organizations-fips.{Region}.{PartitionResult#dnsSuffix}",[R]:p,[S]:p},[L]:h}]}]},t]},{[M]:E,[L]:f,rules:[{[M]:I,[L]:f,rules:[{[M]:D,endpoint:{[Q]:"https://organizations.{Region}.{PartitionResult#dualStackDnsSuffix}",[R]:p,[S]:p},[L]:h}]},u]},{[M]:D,[L]:f,rules:[{[M]:J,endpoint:v,[L]:h},{[M]:[{[N]:i,[O]:[n,"aws-cn-global"]}],endpoint:x,[L]:h},{[M]:K,endpoint:A,[L]:h},{[M]:D,endpoint:{[Q]:"https://organizations.{Region}.{PartitionResult#dnsSuffix}",[R]:p,[S]:p},[L]:h}]}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-outposts/src/endpoint/ruleset.ts b/clients/client-outposts/src/endpoint/ruleset.ts index 2fe2875946dfe..db79674290672 100644 --- a/clients/client-outposts/src/endpoint/ruleset.ts +++ b/clients/client-outposts/src/endpoint/ruleset.ts @@ -1,320 +1,31 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: false, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://outposts-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://outposts-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://outposts.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://outposts.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/outposts.json */ + +const s="fn", +t="argv", +u="ref"; +const a=false, +b=true, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i={[u]:"Endpoint"}, +j={[s]:"booleanEquals",[t]:[{[u]:"UseFIPS"},true]}, +k={[s]:"booleanEquals",[t]:[{[u]:"UseDualStack"},true]}, +l={}, +m={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsFIPS"]}]}, +n={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsDualStack"]}]}, +o=[i], +p=[j], +q=[], +r=[k]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:b,default:a,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:b,default:a,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:a,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[s]:"aws.partition",[t]:[{[u]:"Region"}],assign:e}],type:f,rules:[{conditions:[{[s]:"isSet",[t]:o},{[s]:"parseURL",[t]:o,assign:"url"}],type:f,rules:[{conditions:p,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:q,type:f,rules:[{conditions:r,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:q,endpoint:{url:i,properties:l,headers:l},type:h}]}]},{conditions:[j,k],type:f,rules:[{conditions:[m,n],type:f,rules:[{conditions:q,endpoint:{url:"https://outposts-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:p,type:f,rules:[{conditions:[m],type:f,rules:[{conditions:q,type:f,rules:[{conditions:q,endpoint:{url:"https://outposts-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]},{conditions:q,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:r,type:f,rules:[{conditions:[n],type:f,rules:[{conditions:q,endpoint:{url:"https://outposts.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:q,endpoint:{url:"https://outposts.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-panorama/src/endpoint/ruleset.ts b/clients/client-panorama/src/endpoint/ruleset.ts index 39c8541132cfe..3630cee7febaa 100644 --- a/clients/client-panorama/src/endpoint/ruleset.ts +++ b/clients/client-panorama/src/endpoint/ruleset.ts @@ -1,314 +1,31 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: false, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://panorama-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://panorama-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://panorama.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://panorama.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/panorama.json */ + +const s="fn", +t="argv", +u="ref"; +const a=false, +b=true, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i={[u]:"Endpoint"}, +j={[s]:"booleanEquals",[t]:[{[u]:"UseFIPS"},true]}, +k={[s]:"booleanEquals",[t]:[{[u]:"UseDualStack"},true]}, +l={}, +m={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsFIPS"]}]}, +n={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsDualStack"]}]}, +o=[i], +p=[j], +q=[], +r=[k]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:b,default:a,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:b,default:a,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:a,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[s]:"aws.partition",[t]:[{[u]:"Region"}],assign:e}],type:f,rules:[{conditions:[{[s]:"isSet",[t]:o},{[s]:"parseURL",[t]:o,assign:"url"}],type:f,rules:[{conditions:p,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:q,type:f,rules:[{conditions:r,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:q,endpoint:{url:i,properties:l,headers:l},type:h}]}]},{conditions:[j,k],type:f,rules:[{conditions:[m,n],type:f,rules:[{conditions:q,endpoint:{url:"https://panorama-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:p,type:f,rules:[{conditions:[m],type:f,rules:[{conditions:q,endpoint:{url:"https://panorama-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:r,type:f,rules:[{conditions:[n],type:f,rules:[{conditions:q,endpoint:{url:"https://panorama.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:q,endpoint:{url:"https://panorama.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-personalize-events/src/endpoint/ruleset.ts b/clients/client-personalize-events/src/endpoint/ruleset.ts index 7318238e59be6..b2fb3eac4fcaf 100644 --- a/clients/client-personalize-events/src/endpoint/ruleset.ts +++ b/clients/client-personalize-events/src/endpoint/ruleset.ts @@ -1,314 +1,31 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: false, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://personalize-events-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://personalize-events-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://personalize-events.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://personalize-events.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/personalize-events.json */ + +const s="fn", +t="argv", +u="ref"; +const a=false, +b=true, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i={[u]:"Endpoint"}, +j={[s]:"booleanEquals",[t]:[{[u]:"UseFIPS"},true]}, +k={[s]:"booleanEquals",[t]:[{[u]:"UseDualStack"},true]}, +l={}, +m={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsFIPS"]}]}, +n={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsDualStack"]}]}, +o=[i], +p=[j], +q=[], +r=[k]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:b,default:a,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:b,default:a,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:a,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[s]:"aws.partition",[t]:[{[u]:"Region"}],assign:e}],type:f,rules:[{conditions:[{[s]:"isSet",[t]:o},{[s]:"parseURL",[t]:o,assign:"url"}],type:f,rules:[{conditions:p,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:q,type:f,rules:[{conditions:r,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:q,endpoint:{url:i,properties:l,headers:l},type:h}]}]},{conditions:[j,k],type:f,rules:[{conditions:[m,n],type:f,rules:[{conditions:q,endpoint:{url:"https://personalize-events-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:p,type:f,rules:[{conditions:[m],type:f,rules:[{conditions:q,endpoint:{url:"https://personalize-events-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:r,type:f,rules:[{conditions:[n],type:f,rules:[{conditions:q,endpoint:{url:"https://personalize-events.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:q,endpoint:{url:"https://personalize-events.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-personalize-runtime/src/endpoint/ruleset.ts b/clients/client-personalize-runtime/src/endpoint/ruleset.ts index 7625ee883f7d7..5f40b555fd26d 100644 --- a/clients/client-personalize-runtime/src/endpoint/ruleset.ts +++ b/clients/client-personalize-runtime/src/endpoint/ruleset.ts @@ -1,314 +1,31 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: false, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://personalize-runtime-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://personalize-runtime-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://personalize-runtime.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://personalize-runtime.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/personalize-runtime.json */ + +const s="fn", +t="argv", +u="ref"; +const a=false, +b=true, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i={[u]:"Endpoint"}, +j={[s]:"booleanEquals",[t]:[{[u]:"UseFIPS"},true]}, +k={[s]:"booleanEquals",[t]:[{[u]:"UseDualStack"},true]}, +l={}, +m={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsFIPS"]}]}, +n={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsDualStack"]}]}, +o=[i], +p=[j], +q=[], +r=[k]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:b,default:a,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:b,default:a,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:a,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[s]:"aws.partition",[t]:[{[u]:"Region"}],assign:e}],type:f,rules:[{conditions:[{[s]:"isSet",[t]:o},{[s]:"parseURL",[t]:o,assign:"url"}],type:f,rules:[{conditions:p,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:q,type:f,rules:[{conditions:r,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:q,endpoint:{url:i,properties:l,headers:l},type:h}]}]},{conditions:[j,k],type:f,rules:[{conditions:[m,n],type:f,rules:[{conditions:q,endpoint:{url:"https://personalize-runtime-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:p,type:f,rules:[{conditions:[m],type:f,rules:[{conditions:q,endpoint:{url:"https://personalize-runtime-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:r,type:f,rules:[{conditions:[n],type:f,rules:[{conditions:q,endpoint:{url:"https://personalize-runtime.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:q,endpoint:{url:"https://personalize-runtime.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-personalize/src/endpoint/ruleset.ts b/clients/client-personalize/src/endpoint/ruleset.ts index 368d984e531cb..6e6f29d9cc20e 100644 --- a/clients/client-personalize/src/endpoint/ruleset.ts +++ b/clients/client-personalize/src/endpoint/ruleset.ts @@ -1,320 +1,31 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: false, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://personalize-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://personalize-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://personalize.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://personalize.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/personalize.json */ + +const s="fn", +t="argv", +u="ref"; +const a=false, +b=true, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i={[u]:"Endpoint"}, +j={[s]:"booleanEquals",[t]:[{[u]:"UseFIPS"},true]}, +k={[s]:"booleanEquals",[t]:[{[u]:"UseDualStack"},true]}, +l={}, +m={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsFIPS"]}]}, +n={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsDualStack"]}]}, +o=[i], +p=[j], +q=[], +r=[k]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:b,default:a,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:b,default:a,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:a,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[s]:"aws.partition",[t]:[{[u]:"Region"}],assign:e}],type:f,rules:[{conditions:[{[s]:"isSet",[t]:o},{[s]:"parseURL",[t]:o,assign:"url"}],type:f,rules:[{conditions:p,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:q,type:f,rules:[{conditions:r,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:q,endpoint:{url:i,properties:l,headers:l},type:h}]}]},{conditions:[j,k],type:f,rules:[{conditions:[m,n],type:f,rules:[{conditions:q,endpoint:{url:"https://personalize-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:p,type:f,rules:[{conditions:[m],type:f,rules:[{conditions:q,type:f,rules:[{conditions:q,endpoint:{url:"https://personalize-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]},{conditions:q,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:r,type:f,rules:[{conditions:[n],type:f,rules:[{conditions:q,endpoint:{url:"https://personalize.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:q,endpoint:{url:"https://personalize.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-pi/src/endpoint/ruleset.ts b/clients/client-pi/src/endpoint/ruleset.ts index 3033df6840ead..4a360a8aedfc8 100644 --- a/clients/client-pi/src/endpoint/ruleset.ts +++ b/clients/client-pi/src/endpoint/ruleset.ts @@ -1,320 +1,31 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: false, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://pi-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://pi-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://pi.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://pi.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/pi.json */ + +const s="fn", +t="argv", +u="ref"; +const a=false, +b=true, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i={[u]:"Endpoint"}, +j={[s]:"booleanEquals",[t]:[{[u]:"UseFIPS"},true]}, +k={[s]:"booleanEquals",[t]:[{[u]:"UseDualStack"},true]}, +l={}, +m={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsFIPS"]}]}, +n={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsDualStack"]}]}, +o=[i], +p=[j], +q=[], +r=[k]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:b,default:a,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:b,default:a,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:a,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[s]:"aws.partition",[t]:[{[u]:"Region"}],assign:e}],type:f,rules:[{conditions:[{[s]:"isSet",[t]:o},{[s]:"parseURL",[t]:o,assign:"url"}],type:f,rules:[{conditions:p,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:q,type:f,rules:[{conditions:r,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:q,endpoint:{url:i,properties:l,headers:l},type:h}]}]},{conditions:[j,k],type:f,rules:[{conditions:[m,n],type:f,rules:[{conditions:q,endpoint:{url:"https://pi-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:p,type:f,rules:[{conditions:[m],type:f,rules:[{conditions:q,type:f,rules:[{conditions:q,endpoint:{url:"https://pi-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]},{conditions:q,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:r,type:f,rules:[{conditions:[n],type:f,rules:[{conditions:q,endpoint:{url:"https://pi.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:q,endpoint:{url:"https://pi.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-pinpoint-email/src/endpoint/ruleset.ts b/clients/client-pinpoint-email/src/endpoint/ruleset.ts index fc06470996a7c..9599e5ff49943 100644 --- a/clients/client-pinpoint-email/src/endpoint/ruleset.ts +++ b/clients/client-pinpoint-email/src/endpoint/ruleset.ts @@ -1,320 +1,31 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: false, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://email-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://email-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://email.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://email.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/pinpoint-email.json */ + +const s="fn", +t="argv", +u="ref"; +const a=false, +b=true, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i={[u]:"Endpoint"}, +j={[s]:"booleanEquals",[t]:[{[u]:"UseFIPS"},true]}, +k={[s]:"booleanEquals",[t]:[{[u]:"UseDualStack"},true]}, +l={}, +m={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsFIPS"]}]}, +n={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsDualStack"]}]}, +o=[i], +p=[j], +q=[], +r=[k]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:b,default:a,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:b,default:a,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:a,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[s]:"aws.partition",[t]:[{[u]:"Region"}],assign:e}],type:f,rules:[{conditions:[{[s]:"isSet",[t]:o},{[s]:"parseURL",[t]:o,assign:"url"}],type:f,rules:[{conditions:p,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:q,type:f,rules:[{conditions:r,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:q,endpoint:{url:i,properties:l,headers:l},type:h}]}]},{conditions:[j,k],type:f,rules:[{conditions:[m,n],type:f,rules:[{conditions:q,endpoint:{url:"https://email-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:p,type:f,rules:[{conditions:[m],type:f,rules:[{conditions:q,type:f,rules:[{conditions:q,endpoint:{url:"https://email-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]},{conditions:q,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:r,type:f,rules:[{conditions:[n],type:f,rules:[{conditions:q,endpoint:{url:"https://email.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:q,endpoint:{url:"https://email.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-pinpoint-sms-voice-v2/src/endpoint/ruleset.ts b/clients/client-pinpoint-sms-voice-v2/src/endpoint/ruleset.ts index d995e294a0c89..971eed4e03b82 100644 --- a/clients/client-pinpoint-sms-voice-v2/src/endpoint/ruleset.ts +++ b/clients/client-pinpoint-sms-voice-v2/src/endpoint/ruleset.ts @@ -1,320 +1,31 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: false, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://sms-voice-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://sms-voice-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://sms-voice.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://sms-voice.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/pinpoint-sms-voice-v2.json */ + +const s="fn", +t="argv", +u="ref"; +const a=false, +b=true, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i={[u]:"Endpoint"}, +j={[s]:"booleanEquals",[t]:[{[u]:"UseFIPS"},true]}, +k={[s]:"booleanEquals",[t]:[{[u]:"UseDualStack"},true]}, +l={}, +m={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsFIPS"]}]}, +n={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsDualStack"]}]}, +o=[i], +p=[j], +q=[], +r=[k]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:b,default:a,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:b,default:a,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:a,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[s]:"aws.partition",[t]:[{[u]:"Region"}],assign:e}],type:f,rules:[{conditions:[{[s]:"isSet",[t]:o},{[s]:"parseURL",[t]:o,assign:"url"}],type:f,rules:[{conditions:p,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:q,type:f,rules:[{conditions:r,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:q,endpoint:{url:i,properties:l,headers:l},type:h}]}]},{conditions:[j,k],type:f,rules:[{conditions:[m,n],type:f,rules:[{conditions:q,endpoint:{url:"https://sms-voice-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:p,type:f,rules:[{conditions:[m],type:f,rules:[{conditions:q,type:f,rules:[{conditions:q,endpoint:{url:"https://sms-voice-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]},{conditions:q,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:r,type:f,rules:[{conditions:[n],type:f,rules:[{conditions:q,endpoint:{url:"https://sms-voice.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:q,endpoint:{url:"https://sms-voice.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-pinpoint-sms-voice/src/endpoint/ruleset.ts b/clients/client-pinpoint-sms-voice/src/endpoint/ruleset.ts index 08e1ed255ac7a..603b991aab4e4 100644 --- a/clients/client-pinpoint-sms-voice/src/endpoint/ruleset.ts +++ b/clients/client-pinpoint-sms-voice/src/endpoint/ruleset.ts @@ -1,314 +1,31 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: false, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://sms-voice.pinpoint-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://sms-voice.pinpoint-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://sms-voice.pinpoint.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://sms-voice.pinpoint.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/pinpoint-sms-voice.json */ + +const s="fn", +t="argv", +u="ref"; +const a=false, +b=true, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i={[u]:"Endpoint"}, +j={[s]:"booleanEquals",[t]:[{[u]:"UseFIPS"},true]}, +k={[s]:"booleanEquals",[t]:[{[u]:"UseDualStack"},true]}, +l={}, +m={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsFIPS"]}]}, +n={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsDualStack"]}]}, +o=[i], +p=[j], +q=[], +r=[k]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:b,default:a,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:b,default:a,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:a,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[s]:"aws.partition",[t]:[{[u]:"Region"}],assign:e}],type:f,rules:[{conditions:[{[s]:"isSet",[t]:o},{[s]:"parseURL",[t]:o,assign:"url"}],type:f,rules:[{conditions:p,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:q,type:f,rules:[{conditions:r,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:q,endpoint:{url:i,properties:l,headers:l},type:h}]}]},{conditions:[j,k],type:f,rules:[{conditions:[m,n],type:f,rules:[{conditions:q,endpoint:{url:"https://sms-voice.pinpoint-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:p,type:f,rules:[{conditions:[m],type:f,rules:[{conditions:q,endpoint:{url:"https://sms-voice.pinpoint-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:r,type:f,rules:[{conditions:[n],type:f,rules:[{conditions:q,endpoint:{url:"https://sms-voice.pinpoint.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:q,endpoint:{url:"https://sms-voice.pinpoint.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-pinpoint/src/endpoint/ruleset.ts b/clients/client-pinpoint/src/endpoint/ruleset.ts index 8b27b2bde0e5f..ef86f093c9ba7 100644 --- a/clients/client-pinpoint/src/endpoint/ruleset.ts +++ b/clients/client-pinpoint/src/endpoint/ruleset.ts @@ -1,320 +1,31 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: false, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://pinpoint-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://pinpoint-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://pinpoint.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://pinpoint.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/pinpoint.json */ + +const s="fn", +t="argv", +u="ref"; +const a=false, +b=true, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i={[u]:"Endpoint"}, +j={[s]:"booleanEquals",[t]:[{[u]:"UseFIPS"},true]}, +k={[s]:"booleanEquals",[t]:[{[u]:"UseDualStack"},true]}, +l={}, +m={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsFIPS"]}]}, +n={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsDualStack"]}]}, +o=[i], +p=[j], +q=[], +r=[k]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:b,default:a,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:b,default:a,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:a,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[s]:"aws.partition",[t]:[{[u]:"Region"}],assign:e}],type:f,rules:[{conditions:[{[s]:"isSet",[t]:o},{[s]:"parseURL",[t]:o,assign:"url"}],type:f,rules:[{conditions:p,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:q,type:f,rules:[{conditions:r,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:q,endpoint:{url:i,properties:l,headers:l},type:h}]}]},{conditions:[j,k],type:f,rules:[{conditions:[m,n],type:f,rules:[{conditions:q,endpoint:{url:"https://pinpoint-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:p,type:f,rules:[{conditions:[m],type:f,rules:[{conditions:q,type:f,rules:[{conditions:q,endpoint:{url:"https://pinpoint-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]},{conditions:q,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:r,type:f,rules:[{conditions:[n],type:f,rules:[{conditions:q,endpoint:{url:"https://pinpoint.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:q,endpoint:{url:"https://pinpoint.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-pipes/src/endpoint/ruleset.ts b/clients/client-pipes/src/endpoint/ruleset.ts index 51efe4b2484c7..ea76a8e111d5e 100644 --- a/clients/client-pipes/src/endpoint/ruleset.ts +++ b/clients/client-pipes/src/endpoint/ruleset.ts @@ -1,314 +1,31 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: true, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://pipes-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://pipes-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://pipes.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://pipes.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/pipes.json */ + +const s="fn", +t="argv", +u="ref"; +const a=true, +b=false, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i={[u]:"Endpoint"}, +j={[s]:"booleanEquals",[t]:[{[u]:"UseFIPS"},true]}, +k={[s]:"booleanEquals",[t]:[{[u]:"UseDualStack"},true]}, +l={}, +m={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsFIPS"]}]}, +n={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsDualStack"]}]}, +o=[i], +p=[j], +q=[], +r=[k]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:a,default:b,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:a,default:b,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:b,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[s]:"aws.partition",[t]:[{[u]:"Region"}],assign:e}],type:f,rules:[{conditions:[{[s]:"isSet",[t]:o},{[s]:"parseURL",[t]:o,assign:"url"}],type:f,rules:[{conditions:p,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:q,type:f,rules:[{conditions:r,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:q,endpoint:{url:i,properties:l,headers:l},type:h}]}]},{conditions:[j,k],type:f,rules:[{conditions:[m,n],type:f,rules:[{conditions:q,endpoint:{url:"https://pipes-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:p,type:f,rules:[{conditions:[m],type:f,rules:[{conditions:q,endpoint:{url:"https://pipes-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:r,type:f,rules:[{conditions:[n],type:f,rules:[{conditions:q,endpoint:{url:"https://pipes.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:q,endpoint:{url:"https://pipes.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-polly/src/endpoint/ruleset.ts b/clients/client-polly/src/endpoint/ruleset.ts index 6ddf225564479..d7a35866b52d5 100644 --- a/clients/client-polly/src/endpoint/ruleset.ts +++ b/clients/client-polly/src/endpoint/ruleset.ts @@ -1,320 +1,31 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: true, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://polly-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://polly-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://polly.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://polly.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/polly.json */ + +const s="fn", +t="argv", +u="ref"; +const a=true, +b=false, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i={[u]:"Endpoint"}, +j={[s]:"booleanEquals",[t]:[{[u]:"UseFIPS"},true]}, +k={[s]:"booleanEquals",[t]:[{[u]:"UseDualStack"},true]}, +l={}, +m={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsFIPS"]}]}, +n={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsDualStack"]}]}, +o=[i], +p=[j], +q=[], +r=[k]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:a,default:b,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:a,default:b,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:b,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[s]:"aws.partition",[t]:[{[u]:"Region"}],assign:e}],type:f,rules:[{conditions:[{[s]:"isSet",[t]:o},{[s]:"parseURL",[t]:o,assign:"url"}],type:f,rules:[{conditions:p,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:q,type:f,rules:[{conditions:r,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:q,endpoint:{url:i,properties:l,headers:l},type:h}]}]},{conditions:[j,k],type:f,rules:[{conditions:[m,n],type:f,rules:[{conditions:q,endpoint:{url:"https://polly-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:p,type:f,rules:[{conditions:[m],type:f,rules:[{conditions:q,type:f,rules:[{conditions:q,endpoint:{url:"https://polly-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]},{conditions:q,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:r,type:f,rules:[{conditions:[n],type:f,rules:[{conditions:q,endpoint:{url:"https://polly.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:q,endpoint:{url:"https://polly.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-pricing/src/endpoint/ruleset.ts b/clients/client-pricing/src/endpoint/ruleset.ts index 96ff36c5de14e..f56038b08f898 100644 --- a/clients/client-pricing/src/endpoint/ruleset.ts +++ b/clients/client-pricing/src/endpoint/ruleset.ts @@ -1,320 +1,31 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: false, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://api.pricing-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://api.pricing-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://api.pricing.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://api.pricing.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/pricing.json */ + +const s="fn", +t="argv", +u="ref"; +const a=false, +b=true, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i={[u]:"Endpoint"}, +j={[s]:"booleanEquals",[t]:[{[u]:"UseFIPS"},true]}, +k={[s]:"booleanEquals",[t]:[{[u]:"UseDualStack"},true]}, +l={}, +m={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsFIPS"]}]}, +n={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsDualStack"]}]}, +o=[i], +p=[j], +q=[], +r=[k]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:b,default:a,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:b,default:a,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:a,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[s]:"aws.partition",[t]:[{[u]:"Region"}],assign:e}],type:f,rules:[{conditions:[{[s]:"isSet",[t]:o},{[s]:"parseURL",[t]:o,assign:"url"}],type:f,rules:[{conditions:p,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:q,type:f,rules:[{conditions:r,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:q,endpoint:{url:i,properties:l,headers:l},type:h}]}]},{conditions:[j,k],type:f,rules:[{conditions:[m,n],type:f,rules:[{conditions:q,endpoint:{url:"https://api.pricing-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:p,type:f,rules:[{conditions:[m],type:f,rules:[{conditions:q,type:f,rules:[{conditions:q,endpoint:{url:"https://api.pricing-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]},{conditions:q,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:r,type:f,rules:[{conditions:[n],type:f,rules:[{conditions:q,endpoint:{url:"https://api.pricing.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:q,endpoint:{url:"https://api.pricing.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-privatenetworks/src/endpoint/ruleset.ts b/clients/client-privatenetworks/src/endpoint/ruleset.ts index 923ca035c800f..72df4c5091827 100644 --- a/clients/client-privatenetworks/src/endpoint/ruleset.ts +++ b/clients/client-privatenetworks/src/endpoint/ruleset.ts @@ -1,314 +1,31 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: false, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://private-networks-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://private-networks-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://private-networks.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://private-networks.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/privatenetworks.json */ + +const s="fn", +t="argv", +u="ref"; +const a=false, +b=true, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i={[u]:"Endpoint"}, +j={[s]:"booleanEquals",[t]:[{[u]:"UseFIPS"},true]}, +k={[s]:"booleanEquals",[t]:[{[u]:"UseDualStack"},true]}, +l={}, +m={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsFIPS"]}]}, +n={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsDualStack"]}]}, +o=[i], +p=[j], +q=[], +r=[k]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:b,default:a,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:b,default:a,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:a,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[s]:"aws.partition",[t]:[{[u]:"Region"}],assign:e}],type:f,rules:[{conditions:[{[s]:"isSet",[t]:o},{[s]:"parseURL",[t]:o,assign:"url"}],type:f,rules:[{conditions:p,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:q,type:f,rules:[{conditions:r,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:q,endpoint:{url:i,properties:l,headers:l},type:h}]}]},{conditions:[j,k],type:f,rules:[{conditions:[m,n],type:f,rules:[{conditions:q,endpoint:{url:"https://private-networks-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:p,type:f,rules:[{conditions:[m],type:f,rules:[{conditions:q,endpoint:{url:"https://private-networks-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:r,type:f,rules:[{conditions:[n],type:f,rules:[{conditions:q,endpoint:{url:"https://private-networks.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:q,endpoint:{url:"https://private-networks.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-proton/src/endpoint/ruleset.ts b/clients/client-proton/src/endpoint/ruleset.ts index 49370932fa727..a55e013f84824 100644 --- a/clients/client-proton/src/endpoint/ruleset.ts +++ b/clients/client-proton/src/endpoint/ruleset.ts @@ -1,320 +1,31 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: true, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://proton-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://proton-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://proton.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://proton.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/proton.json */ + +const s="fn", +t="argv", +u="ref"; +const a=true, +b=false, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i={[u]:"Endpoint"}, +j={[s]:"booleanEquals",[t]:[{[u]:"UseFIPS"},true]}, +k={[s]:"booleanEquals",[t]:[{[u]:"UseDualStack"},true]}, +l={}, +m={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsFIPS"]}]}, +n={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsDualStack"]}]}, +o=[i], +p=[j], +q=[], +r=[k]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:a,default:b,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:a,default:b,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:b,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[s]:"aws.partition",[t]:[{[u]:"Region"}],assign:e}],type:f,rules:[{conditions:[{[s]:"isSet",[t]:o},{[s]:"parseURL",[t]:o,assign:"url"}],type:f,rules:[{conditions:p,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:q,type:f,rules:[{conditions:r,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:q,endpoint:{url:i,properties:l,headers:l},type:h}]}]},{conditions:[j,k],type:f,rules:[{conditions:[m,n],type:f,rules:[{conditions:q,endpoint:{url:"https://proton-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:p,type:f,rules:[{conditions:[m],type:f,rules:[{conditions:q,type:f,rules:[{conditions:q,endpoint:{url:"https://proton-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]},{conditions:q,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:r,type:f,rules:[{conditions:[n],type:f,rules:[{conditions:q,endpoint:{url:"https://proton.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:q,endpoint:{url:"https://proton.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-qldb-session/src/endpoint/ruleset.ts b/clients/client-qldb-session/src/endpoint/ruleset.ts index 4dc0123a09b64..a05388a39a261 100644 --- a/clients/client-qldb-session/src/endpoint/ruleset.ts +++ b/clients/client-qldb-session/src/endpoint/ruleset.ts @@ -1,320 +1,31 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: false, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://session.qldb-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://session.qldb-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://session.qldb.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://session.qldb.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/qldb-session.json */ + +const s="fn", +t="argv", +u="ref"; +const a=false, +b=true, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i={[u]:"Endpoint"}, +j={[s]:"booleanEquals",[t]:[{[u]:"UseFIPS"},true]}, +k={[s]:"booleanEquals",[t]:[{[u]:"UseDualStack"},true]}, +l={}, +m={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsFIPS"]}]}, +n={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsDualStack"]}]}, +o=[i], +p=[j], +q=[], +r=[k]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:b,default:a,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:b,default:a,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:a,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[s]:"aws.partition",[t]:[{[u]:"Region"}],assign:e}],type:f,rules:[{conditions:[{[s]:"isSet",[t]:o},{[s]:"parseURL",[t]:o,assign:"url"}],type:f,rules:[{conditions:p,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:q,type:f,rules:[{conditions:r,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:q,endpoint:{url:i,properties:l,headers:l},type:h}]}]},{conditions:[j,k],type:f,rules:[{conditions:[m,n],type:f,rules:[{conditions:q,endpoint:{url:"https://session.qldb-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:p,type:f,rules:[{conditions:[m],type:f,rules:[{conditions:q,type:f,rules:[{conditions:q,endpoint:{url:"https://session.qldb-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]},{conditions:q,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:r,type:f,rules:[{conditions:[n],type:f,rules:[{conditions:q,endpoint:{url:"https://session.qldb.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:q,endpoint:{url:"https://session.qldb.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-qldb/src/endpoint/ruleset.ts b/clients/client-qldb/src/endpoint/ruleset.ts index fb5ed2608bce6..de2eeb176d5ac 100644 --- a/clients/client-qldb/src/endpoint/ruleset.ts +++ b/clients/client-qldb/src/endpoint/ruleset.ts @@ -1,320 +1,31 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: false, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://qldb-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://qldb-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://qldb.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://qldb.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/qldb.json */ + +const s="fn", +t="argv", +u="ref"; +const a=false, +b=true, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i={[u]:"Endpoint"}, +j={[s]:"booleanEquals",[t]:[{[u]:"UseFIPS"},true]}, +k={[s]:"booleanEquals",[t]:[{[u]:"UseDualStack"},true]}, +l={}, +m={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsFIPS"]}]}, +n={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsDualStack"]}]}, +o=[i], +p=[j], +q=[], +r=[k]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:b,default:a,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:b,default:a,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:a,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[s]:"aws.partition",[t]:[{[u]:"Region"}],assign:e}],type:f,rules:[{conditions:[{[s]:"isSet",[t]:o},{[s]:"parseURL",[t]:o,assign:"url"}],type:f,rules:[{conditions:p,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:q,type:f,rules:[{conditions:r,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:q,endpoint:{url:i,properties:l,headers:l},type:h}]}]},{conditions:[j,k],type:f,rules:[{conditions:[m,n],type:f,rules:[{conditions:q,endpoint:{url:"https://qldb-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:p,type:f,rules:[{conditions:[m],type:f,rules:[{conditions:q,type:f,rules:[{conditions:q,endpoint:{url:"https://qldb-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]},{conditions:q,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:r,type:f,rules:[{conditions:[n],type:f,rules:[{conditions:q,endpoint:{url:"https://qldb.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:q,endpoint:{url:"https://qldb.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-quicksight/src/endpoint/ruleset.ts b/clients/client-quicksight/src/endpoint/ruleset.ts index 370c0c08d77a8..9647fb03f28b8 100644 --- a/clients/client-quicksight/src/endpoint/ruleset.ts +++ b/clients/client-quicksight/src/endpoint/ruleset.ts @@ -1,320 +1,31 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: true, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://quicksight-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://quicksight-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://quicksight.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://quicksight.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/quicksight.json */ + +const s="fn", +t="argv", +u="ref"; +const a=true, +b=false, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i={[u]:"Endpoint"}, +j={[s]:"booleanEquals",[t]:[{[u]:"UseFIPS"},true]}, +k={[s]:"booleanEquals",[t]:[{[u]:"UseDualStack"},true]}, +l={}, +m={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsFIPS"]}]}, +n={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsDualStack"]}]}, +o=[i], +p=[j], +q=[], +r=[k]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:a,default:b,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:a,default:b,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:b,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[s]:"aws.partition",[t]:[{[u]:"Region"}],assign:e}],type:f,rules:[{conditions:[{[s]:"isSet",[t]:o},{[s]:"parseURL",[t]:o,assign:"url"}],type:f,rules:[{conditions:p,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:q,type:f,rules:[{conditions:r,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:q,endpoint:{url:i,properties:l,headers:l},type:h}]}]},{conditions:[j,k],type:f,rules:[{conditions:[m,n],type:f,rules:[{conditions:q,endpoint:{url:"https://quicksight-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:p,type:f,rules:[{conditions:[m],type:f,rules:[{conditions:q,type:f,rules:[{conditions:q,endpoint:{url:"https://quicksight-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]},{conditions:q,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:r,type:f,rules:[{conditions:[n],type:f,rules:[{conditions:q,endpoint:{url:"https://quicksight.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:q,endpoint:{url:"https://quicksight.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-ram/src/endpoint/ruleset.ts b/clients/client-ram/src/endpoint/ruleset.ts index d8fba729bd1ab..1dd36bc894d6b 100644 --- a/clients/client-ram/src/endpoint/ruleset.ts +++ b/clients/client-ram/src/endpoint/ruleset.ts @@ -1,320 +1,31 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: false, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://ram-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://ram-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://ram.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://ram.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/ram.json */ + +const s="fn", +t="argv", +u="ref"; +const a=false, +b=true, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i={[u]:"Endpoint"}, +j={[s]:"booleanEquals",[t]:[{[u]:"UseFIPS"},true]}, +k={[s]:"booleanEquals",[t]:[{[u]:"UseDualStack"},true]}, +l={}, +m={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsFIPS"]}]}, +n={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsDualStack"]}]}, +o=[i], +p=[j], +q=[], +r=[k]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:b,default:a,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:b,default:a,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:a,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[s]:"aws.partition",[t]:[{[u]:"Region"}],assign:e}],type:f,rules:[{conditions:[{[s]:"isSet",[t]:o},{[s]:"parseURL",[t]:o,assign:"url"}],type:f,rules:[{conditions:p,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:q,type:f,rules:[{conditions:r,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:q,endpoint:{url:i,properties:l,headers:l},type:h}]}]},{conditions:[j,k],type:f,rules:[{conditions:[m,n],type:f,rules:[{conditions:q,endpoint:{url:"https://ram-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:p,type:f,rules:[{conditions:[m],type:f,rules:[{conditions:q,type:f,rules:[{conditions:q,endpoint:{url:"https://ram-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]},{conditions:q,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:r,type:f,rules:[{conditions:[n],type:f,rules:[{conditions:q,endpoint:{url:"https://ram.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:q,endpoint:{url:"https://ram.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-rbin/src/endpoint/ruleset.ts b/clients/client-rbin/src/endpoint/ruleset.ts index fb1919c3ad965..e71e797902508 100644 --- a/clients/client-rbin/src/endpoint/ruleset.ts +++ b/clients/client-rbin/src/endpoint/ruleset.ts @@ -1,320 +1,31 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: true, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://rbin-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://rbin-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://rbin.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://rbin.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/rbin.json */ + +const s="fn", +t="argv", +u="ref"; +const a=true, +b=false, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i={[u]:"Endpoint"}, +j={[s]:"booleanEquals",[t]:[{[u]:"UseFIPS"},true]}, +k={[s]:"booleanEquals",[t]:[{[u]:"UseDualStack"},true]}, +l={}, +m={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsFIPS"]}]}, +n={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsDualStack"]}]}, +o=[i], +p=[j], +q=[], +r=[k]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:a,default:b,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:a,default:b,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:b,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[s]:"aws.partition",[t]:[{[u]:"Region"}],assign:e}],type:f,rules:[{conditions:[{[s]:"isSet",[t]:o},{[s]:"parseURL",[t]:o,assign:"url"}],type:f,rules:[{conditions:p,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:q,type:f,rules:[{conditions:r,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:q,endpoint:{url:i,properties:l,headers:l},type:h}]}]},{conditions:[j,k],type:f,rules:[{conditions:[m,n],type:f,rules:[{conditions:q,endpoint:{url:"https://rbin-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:p,type:f,rules:[{conditions:[m],type:f,rules:[{conditions:q,type:f,rules:[{conditions:q,endpoint:{url:"https://rbin-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]},{conditions:q,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:r,type:f,rules:[{conditions:[n],type:f,rules:[{conditions:q,endpoint:{url:"https://rbin.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:q,endpoint:{url:"https://rbin.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-rds-data/src/endpoint/ruleset.ts b/clients/client-rds-data/src/endpoint/ruleset.ts index 98938555971b9..04dd6fef5ca1b 100644 --- a/clients/client-rds-data/src/endpoint/ruleset.ts +++ b/clients/client-rds-data/src/endpoint/ruleset.ts @@ -1,314 +1,31 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: false, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://rds-data-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://rds-data-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://rds-data.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://rds-data.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/rds-data.json */ + +const s="fn", +t="argv", +u="ref"; +const a=false, +b=true, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i={[u]:"Endpoint"}, +j={[s]:"booleanEquals",[t]:[{[u]:"UseFIPS"},true]}, +k={[s]:"booleanEquals",[t]:[{[u]:"UseDualStack"},true]}, +l={}, +m={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsFIPS"]}]}, +n={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsDualStack"]}]}, +o=[i], +p=[j], +q=[], +r=[k]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:b,default:a,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:b,default:a,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:a,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[s]:"aws.partition",[t]:[{[u]:"Region"}],assign:e}],type:f,rules:[{conditions:[{[s]:"isSet",[t]:o},{[s]:"parseURL",[t]:o,assign:"url"}],type:f,rules:[{conditions:p,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:q,type:f,rules:[{conditions:r,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:q,endpoint:{url:i,properties:l,headers:l},type:h}]}]},{conditions:[j,k],type:f,rules:[{conditions:[m,n],type:f,rules:[{conditions:q,endpoint:{url:"https://rds-data-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:p,type:f,rules:[{conditions:[m],type:f,rules:[{conditions:q,endpoint:{url:"https://rds-data-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:r,type:f,rules:[{conditions:[n],type:f,rules:[{conditions:q,endpoint:{url:"https://rds-data.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:q,endpoint:{url:"https://rds-data.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-rds/src/endpoint/ruleset.ts b/clients/client-rds/src/endpoint/ruleset.ts index c7c6fa88a716c..9069ba24c90d8 100644 --- a/clients/client-rds/src/endpoint/ruleset.ts +++ b/clients/client-rds/src/endpoint/ruleset.ts @@ -1,431 +1,35 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: true, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://rds-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "stringEquals", - argv: [ - { - ref: "Region", - }, - "rds.ca-central-1", - ], - }, - ], - endpoint: { - url: "https://rds-fips.ca-central-1.amazonaws.com", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - { - conditions: [ - { - fn: "stringEquals", - argv: [ - { - ref: "Region", - }, - "rds.us-east-1", - ], - }, - ], - endpoint: { - url: "https://rds-fips.us-east-1.amazonaws.com", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - { - conditions: [ - { - fn: "stringEquals", - argv: [ - { - ref: "Region", - }, - "rds.us-east-2", - ], - }, - ], - endpoint: { - url: "https://rds-fips.us-east-2.amazonaws.com", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - { - conditions: [ - { - fn: "stringEquals", - argv: [ - { - ref: "Region", - }, - "rds.us-west-1", - ], - }, - ], - endpoint: { - url: "https://rds-fips.us-west-1.amazonaws.com", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - { - conditions: [ - { - fn: "stringEquals", - argv: [ - { - ref: "Region", - }, - "rds.us-west-2", - ], - }, - ], - endpoint: { - url: "https://rds-fips.us-west-2.amazonaws.com", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - { - conditions: [ - { - fn: "stringEquals", - argv: [ - "aws-us-gov", - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "name", - ], - }, - ], - }, - ], - endpoint: { - url: "https://rds.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - { - conditions: [], - endpoint: { - url: "https://rds-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://rds.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://rds.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/rds.json */ + +const w="fn", +x="argv", +y="ref"; +const a=true, +b=false, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i="getAttr", +j="stringEquals", +k={[y]:"Region"}, +l={[y]:"Endpoint"}, +m={[w]:"booleanEquals",[x]:[{[y]:"UseFIPS"},true]}, +n={[w]:"booleanEquals",[x]:[{[y]:"UseDualStack"},true]}, +o={}, +p={[w]:"booleanEquals",[x]:[true,{[w]:i,[x]:[{[y]:e},"supportsFIPS"]}]}, +q={[y]:e}, +r={[w]:"booleanEquals",[x]:[true,{[w]:i,[x]:[q,"supportsDualStack"]}]}, +s={"url":"https://rds.{Region}.{PartitionResult#dnsSuffix}","properties":{},"headers":{}}, +t=[m], +u=[], +v=[n]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:a,default:b,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:a,default:b,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:b,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[w]:"aws.partition",[x]:[k],assign:e}],type:f,rules:[{conditions:[{[w]:"isSet",[x]:[l]}],type:f,rules:[{conditions:t,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:u,type:f,rules:[{conditions:v,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:u,endpoint:{url:l,properties:o,headers:o},type:h}]}]},{conditions:[m,n],type:f,rules:[{conditions:[p,r],type:f,rules:[{conditions:u,endpoint:{url:"https://rds-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:o,headers:o},type:h}]},{conditions:u,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:t,type:f,rules:[{conditions:[p],type:f,rules:[{conditions:u,type:f,rules:[{conditions:[{[w]:j,[x]:[k,"rds.ca-central-1"]}],endpoint:{url:"https://rds-fips.ca-central-1.amazonaws.com",properties:o,headers:o},type:h},{conditions:[{[w]:j,[x]:[k,"rds.us-east-1"]}],endpoint:{url:"https://rds-fips.us-east-1.amazonaws.com",properties:o,headers:o},type:h},{conditions:[{[w]:j,[x]:[k,"rds.us-east-2"]}],endpoint:{url:"https://rds-fips.us-east-2.amazonaws.com",properties:o,headers:o},type:h},{conditions:[{[w]:j,[x]:[k,"rds.us-west-1"]}],endpoint:{url:"https://rds-fips.us-west-1.amazonaws.com",properties:o,headers:o},type:h},{conditions:[{[w]:j,[x]:[k,"rds.us-west-2"]}],endpoint:{url:"https://rds-fips.us-west-2.amazonaws.com",properties:o,headers:o},type:h},{conditions:[{[w]:j,[x]:["aws-us-gov",{[w]:i,[x]:[q,"name"]}]}],endpoint:s,type:h},{conditions:u,endpoint:{url:"https://rds-fips.{Region}.{PartitionResult#dnsSuffix}",properties:o,headers:o},type:h}]}]},{conditions:u,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:v,type:f,rules:[{conditions:[r],type:f,rules:[{conditions:u,endpoint:{url:"https://rds.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:o,headers:o},type:h}]},{conditions:u,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:u,endpoint:s,type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-redshift-data/src/endpoint/ruleset.ts b/clients/client-redshift-data/src/endpoint/ruleset.ts index d80a5c10ce547..63c504432e596 100644 --- a/clients/client-redshift-data/src/endpoint/ruleset.ts +++ b/clients/client-redshift-data/src/endpoint/ruleset.ts @@ -1,314 +1,31 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: false, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://redshift-data-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://redshift-data-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://redshift-data.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://redshift-data.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/redshift-data.json */ + +const s="fn", +t="argv", +u="ref"; +const a=false, +b=true, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i={[u]:"Endpoint"}, +j={[s]:"booleanEquals",[t]:[{[u]:"UseFIPS"},true]}, +k={[s]:"booleanEquals",[t]:[{[u]:"UseDualStack"},true]}, +l={}, +m={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsFIPS"]}]}, +n={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsDualStack"]}]}, +o=[i], +p=[j], +q=[], +r=[k]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:b,default:a,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:b,default:a,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:a,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[s]:"aws.partition",[t]:[{[u]:"Region"}],assign:e}],type:f,rules:[{conditions:[{[s]:"isSet",[t]:o},{[s]:"parseURL",[t]:o,assign:"url"}],type:f,rules:[{conditions:p,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:q,type:f,rules:[{conditions:r,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:q,endpoint:{url:i,properties:l,headers:l},type:h}]}]},{conditions:[j,k],type:f,rules:[{conditions:[m,n],type:f,rules:[{conditions:q,endpoint:{url:"https://redshift-data-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:p,type:f,rules:[{conditions:[m],type:f,rules:[{conditions:q,endpoint:{url:"https://redshift-data-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:r,type:f,rules:[{conditions:[n],type:f,rules:[{conditions:q,endpoint:{url:"https://redshift-data.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:q,endpoint:{url:"https://redshift-data.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-redshift-serverless/src/endpoint/ruleset.ts b/clients/client-redshift-serverless/src/endpoint/ruleset.ts index e9977cb3fb8cc..752e0e1fdfb24 100644 --- a/clients/client-redshift-serverless/src/endpoint/ruleset.ts +++ b/clients/client-redshift-serverless/src/endpoint/ruleset.ts @@ -1,320 +1,31 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: false, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://redshift-serverless-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://redshift-serverless-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://redshift-serverless.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://redshift-serverless.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/redshift-serverless.json */ + +const s="fn", +t="argv", +u="ref"; +const a=false, +b=true, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i={[u]:"Endpoint"}, +j={[s]:"booleanEquals",[t]:[{[u]:"UseFIPS"},true]}, +k={[s]:"booleanEquals",[t]:[{[u]:"UseDualStack"},true]}, +l={}, +m={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsFIPS"]}]}, +n={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsDualStack"]}]}, +o=[i], +p=[j], +q=[], +r=[k]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:b,default:a,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:b,default:a,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:a,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[s]:"aws.partition",[t]:[{[u]:"Region"}],assign:e}],type:f,rules:[{conditions:[{[s]:"isSet",[t]:o},{[s]:"parseURL",[t]:o,assign:"url"}],type:f,rules:[{conditions:p,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:q,type:f,rules:[{conditions:r,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:q,endpoint:{url:i,properties:l,headers:l},type:h}]}]},{conditions:[j,k],type:f,rules:[{conditions:[m,n],type:f,rules:[{conditions:q,endpoint:{url:"https://redshift-serverless-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:p,type:f,rules:[{conditions:[m],type:f,rules:[{conditions:q,type:f,rules:[{conditions:q,endpoint:{url:"https://redshift-serverless-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]},{conditions:q,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:r,type:f,rules:[{conditions:[n],type:f,rules:[{conditions:q,endpoint:{url:"https://redshift-serverless.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:q,endpoint:{url:"https://redshift-serverless.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-redshift/src/endpoint/ruleset.ts b/clients/client-redshift/src/endpoint/ruleset.ts index e553ae7fc0fff..24f9c1b15a06f 100644 --- a/clients/client-redshift/src/endpoint/ruleset.ts +++ b/clients/client-redshift/src/endpoint/ruleset.ts @@ -1,320 +1,31 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: false, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://redshift-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://redshift-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://redshift.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://redshift.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/redshift.json */ + +const s="fn", +t="argv", +u="ref"; +const a=false, +b=true, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i={[u]:"Endpoint"}, +j={[s]:"booleanEquals",[t]:[{[u]:"UseFIPS"},true]}, +k={[s]:"booleanEquals",[t]:[{[u]:"UseDualStack"},true]}, +l={}, +m={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsFIPS"]}]}, +n={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsDualStack"]}]}, +o=[i], +p=[j], +q=[], +r=[k]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:b,default:a,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:b,default:a,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:a,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[s]:"aws.partition",[t]:[{[u]:"Region"}],assign:e}],type:f,rules:[{conditions:[{[s]:"isSet",[t]:o},{[s]:"parseURL",[t]:o,assign:"url"}],type:f,rules:[{conditions:p,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:q,type:f,rules:[{conditions:r,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:q,endpoint:{url:i,properties:l,headers:l},type:h}]}]},{conditions:[j,k],type:f,rules:[{conditions:[m,n],type:f,rules:[{conditions:q,endpoint:{url:"https://redshift-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:p,type:f,rules:[{conditions:[m],type:f,rules:[{conditions:q,type:f,rules:[{conditions:q,endpoint:{url:"https://redshift-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]},{conditions:q,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:r,type:f,rules:[{conditions:[n],type:f,rules:[{conditions:q,endpoint:{url:"https://redshift.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:q,endpoint:{url:"https://redshift.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-rekognition/src/endpoint/ruleset.ts b/clients/client-rekognition/src/endpoint/ruleset.ts index 9eaf01ed9cc45..d4ca27cfb5e2c 100644 --- a/clients/client-rekognition/src/endpoint/ruleset.ts +++ b/clients/client-rekognition/src/endpoint/ruleset.ts @@ -1,425 +1,32 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: true, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://rekognition-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "stringEquals", - argv: [ - { - ref: "Region", - }, - "rekognition.ca-central-1", - ], - }, - ], - endpoint: { - url: "https://rekognition-fips.ca-central-1.amazonaws.com", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - { - conditions: [ - { - fn: "stringEquals", - argv: [ - { - ref: "Region", - }, - "rekognition.us-east-1", - ], - }, - ], - endpoint: { - url: "https://rekognition-fips.us-east-1.amazonaws.com", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - { - conditions: [ - { - fn: "stringEquals", - argv: [ - { - ref: "Region", - }, - "rekognition.us-east-2", - ], - }, - ], - endpoint: { - url: "https://rekognition-fips.us-east-2.amazonaws.com", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - { - conditions: [ - { - fn: "stringEquals", - argv: [ - { - ref: "Region", - }, - "rekognition.us-west-1", - ], - }, - ], - endpoint: { - url: "https://rekognition-fips.us-west-1.amazonaws.com", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - { - conditions: [ - { - fn: "stringEquals", - argv: [ - { - ref: "Region", - }, - "rekognition.us-west-2", - ], - }, - ], - endpoint: { - url: "https://rekognition-fips.us-west-2.amazonaws.com", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - { - conditions: [ - { - fn: "stringEquals", - argv: [ - { - ref: "Region", - }, - "rekognition.us-gov-west-1", - ], - }, - ], - endpoint: { - url: "https://rekognition-fips.us-gov-west-1.amazonaws.com", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - { - conditions: [], - endpoint: { - url: "https://rekognition-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://rekognition.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://rekognition.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/rekognition.json */ + +const t="fn", +u="argv", +v="ref"; +const a=true, +b=false, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i="stringEquals", +j={[v]:"Region"}, +k={[v]:"Endpoint"}, +l={[t]:"booleanEquals",[u]:[{[v]:"UseFIPS"},true]}, +m={[t]:"booleanEquals",[u]:[{[v]:"UseDualStack"},true]}, +n={}, +o={[t]:"booleanEquals",[u]:[true,{[t]:"getAttr",[u]:[{[v]:e},"supportsFIPS"]}]}, +p={[t]:"booleanEquals",[u]:[true,{[t]:"getAttr",[u]:[{[v]:e},"supportsDualStack"]}]}, +q=[l], +r=[], +s=[m]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:a,default:b,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:a,default:b,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:b,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[t]:"aws.partition",[u]:[j],assign:e}],type:f,rules:[{conditions:[{[t]:"isSet",[u]:[k]}],type:f,rules:[{conditions:q,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:r,type:f,rules:[{conditions:s,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:r,endpoint:{url:k,properties:n,headers:n},type:h}]}]},{conditions:[l,m],type:f,rules:[{conditions:[o,p],type:f,rules:[{conditions:r,endpoint:{url:"https://rekognition-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:n,headers:n},type:h}]},{conditions:r,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:q,type:f,rules:[{conditions:[o],type:f,rules:[{conditions:r,type:f,rules:[{conditions:[{[t]:i,[u]:[j,"rekognition.ca-central-1"]}],endpoint:{url:"https://rekognition-fips.ca-central-1.amazonaws.com",properties:n,headers:n},type:h},{conditions:[{[t]:i,[u]:[j,"rekognition.us-east-1"]}],endpoint:{url:"https://rekognition-fips.us-east-1.amazonaws.com",properties:n,headers:n},type:h},{conditions:[{[t]:i,[u]:[j,"rekognition.us-east-2"]}],endpoint:{url:"https://rekognition-fips.us-east-2.amazonaws.com",properties:n,headers:n},type:h},{conditions:[{[t]:i,[u]:[j,"rekognition.us-west-1"]}],endpoint:{url:"https://rekognition-fips.us-west-1.amazonaws.com",properties:n,headers:n},type:h},{conditions:[{[t]:i,[u]:[j,"rekognition.us-west-2"]}],endpoint:{url:"https://rekognition-fips.us-west-2.amazonaws.com",properties:n,headers:n},type:h},{conditions:[{[t]:i,[u]:[j,"rekognition.us-gov-west-1"]}],endpoint:{url:"https://rekognition-fips.us-gov-west-1.amazonaws.com",properties:n,headers:n},type:h},{conditions:r,endpoint:{url:"https://rekognition-fips.{Region}.{PartitionResult#dnsSuffix}",properties:n,headers:n},type:h}]}]},{conditions:r,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:s,type:f,rules:[{conditions:[p],type:f,rules:[{conditions:r,endpoint:{url:"https://rekognition.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:n,headers:n},type:h}]},{conditions:r,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:r,endpoint:{url:"https://rekognition.{Region}.{PartitionResult#dnsSuffix}",properties:n,headers:n},type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-resiliencehub/src/endpoint/ruleset.ts b/clients/client-resiliencehub/src/endpoint/ruleset.ts index 065ed21016dfc..8a5e32b9a07cf 100644 --- a/clients/client-resiliencehub/src/endpoint/ruleset.ts +++ b/clients/client-resiliencehub/src/endpoint/ruleset.ts @@ -1,320 +1,31 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: false, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://resiliencehub-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://resiliencehub-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://resiliencehub.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://resiliencehub.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/resiliencehub.json */ + +const s="fn", +t="argv", +u="ref"; +const a=false, +b=true, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i={[u]:"Endpoint"}, +j={[s]:"booleanEquals",[t]:[{[u]:"UseFIPS"},true]}, +k={[s]:"booleanEquals",[t]:[{[u]:"UseDualStack"},true]}, +l={}, +m={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsFIPS"]}]}, +n={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsDualStack"]}]}, +o=[i], +p=[j], +q=[], +r=[k]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:b,default:a,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:b,default:a,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:a,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[s]:"aws.partition",[t]:[{[u]:"Region"}],assign:e}],type:f,rules:[{conditions:[{[s]:"isSet",[t]:o},{[s]:"parseURL",[t]:o,assign:"url"}],type:f,rules:[{conditions:p,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:q,type:f,rules:[{conditions:r,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:q,endpoint:{url:i,properties:l,headers:l},type:h}]}]},{conditions:[j,k],type:f,rules:[{conditions:[m,n],type:f,rules:[{conditions:q,endpoint:{url:"https://resiliencehub-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:p,type:f,rules:[{conditions:[m],type:f,rules:[{conditions:q,type:f,rules:[{conditions:q,endpoint:{url:"https://resiliencehub-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]},{conditions:q,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:r,type:f,rules:[{conditions:[n],type:f,rules:[{conditions:q,endpoint:{url:"https://resiliencehub.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:q,endpoint:{url:"https://resiliencehub.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-resource-explorer-2/src/endpoint/ruleset.ts b/clients/client-resource-explorer-2/src/endpoint/ruleset.ts index a4777b01f5edc..948d09c684832 100644 --- a/clients/client-resource-explorer-2/src/endpoint/ruleset.ts +++ b/clients/client-resource-explorer-2/src/endpoint/ruleset.ts @@ -1,252 +1,29 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: false, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://resource-explorer-2-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://resource-explorer-2.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://resource-explorer-2-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://resource-explorer-2.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/resource-explorer-2.json */ + +const r="argv", +s="ref"; +const a=false, +b=true, +c="String", +d="PartitionResult", +e="tree", +f="booleanEquals", +g="error", +h="endpoint", +i="getAttr", +j={[s]:"Endpoint"}, +k={}, +l={[s]:d}, +m={"conditions":[],[g]:"FIPS is enabled but this partition does not support FIPS","type":g}, +n=[j], +o=[{"fn":f,[r]:[{[s]:"UseFIPS"},true]}], +p=[], +q=[{"fn":f,[r]:[true,{"fn":i,[r]:[l,"supportsFIPS"]}]}]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseFIPS:{builtIn:"AWS::UseFIPS",required:b,default:a,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:"Boolean"},Endpoint:{builtIn:"SDK::Endpoint",required:a,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{fn:"aws.partition",[r]:[{[s]:"Region"}],assign:d}],type:e,rules:[{conditions:[{fn:"isSet",[r]:n},{fn:"parseURL",[r]:n,assign:"url"}],type:e,rules:[{conditions:o,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:p,endpoint:{url:j,properties:k,headers:k},type:h}]},{conditions:p,type:e,rules:[{conditions:[{fn:f,[r]:[b,{fn:i,[r]:[l,"supportsDualStack"]}]}],type:e,rules:[{conditions:o,type:e,rules:[{conditions:q,type:e,rules:[{conditions:p,endpoint:{url:"https://resource-explorer-2-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:k,headers:k},type:h}]},m]},{conditions:p,endpoint:{url:"https://resource-explorer-2.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:k,headers:k},type:h}]},{conditions:p,type:e,rules:[{conditions:o,type:e,rules:[{conditions:q,type:e,rules:[{conditions:p,endpoint:{url:"https://resource-explorer-2-fips.{Region}.{PartitionResult#dnsSuffix}",properties:k,headers:k},type:h}]},m]},{conditions:p,endpoint:{url:"https://resource-explorer-2.{Region}.{PartitionResult#dnsSuffix}",properties:k,headers:k},type:h}]}]}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-resource-groups-tagging-api/src/endpoint/ruleset.ts b/clients/client-resource-groups-tagging-api/src/endpoint/ruleset.ts index ef5576c532863..51f89cfb46bc9 100644 --- a/clients/client-resource-groups-tagging-api/src/endpoint/ruleset.ts +++ b/clients/client-resource-groups-tagging-api/src/endpoint/ruleset.ts @@ -1,320 +1,31 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: false, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://tagging-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://tagging-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://tagging.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://tagging.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/resource-groups-tagging-api.json */ + +const s="fn", +t="argv", +u="ref"; +const a=false, +b=true, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i={[u]:"Endpoint"}, +j={[s]:"booleanEquals",[t]:[{[u]:"UseFIPS"},true]}, +k={[s]:"booleanEquals",[t]:[{[u]:"UseDualStack"},true]}, +l={}, +m={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsFIPS"]}]}, +n={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsDualStack"]}]}, +o=[i], +p=[j], +q=[], +r=[k]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:b,default:a,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:b,default:a,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:a,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[s]:"aws.partition",[t]:[{[u]:"Region"}],assign:e}],type:f,rules:[{conditions:[{[s]:"isSet",[t]:o},{[s]:"parseURL",[t]:o,assign:"url"}],type:f,rules:[{conditions:p,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:q,type:f,rules:[{conditions:r,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:q,endpoint:{url:i,properties:l,headers:l},type:h}]}]},{conditions:[j,k],type:f,rules:[{conditions:[m,n],type:f,rules:[{conditions:q,endpoint:{url:"https://tagging-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:p,type:f,rules:[{conditions:[m],type:f,rules:[{conditions:q,type:f,rules:[{conditions:q,endpoint:{url:"https://tagging-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]},{conditions:q,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:r,type:f,rules:[{conditions:[n],type:f,rules:[{conditions:q,endpoint:{url:"https://tagging.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:q,endpoint:{url:"https://tagging.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-resource-groups/src/endpoint/ruleset.ts b/clients/client-resource-groups/src/endpoint/ruleset.ts index eff66b5f0d917..47b20ddcd93cd 100644 --- a/clients/client-resource-groups/src/endpoint/ruleset.ts +++ b/clients/client-resource-groups/src/endpoint/ruleset.ts @@ -1,345 +1,34 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: false, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://resource-groups-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "stringEquals", - argv: [ - "aws-us-gov", - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "name", - ], - }, - ], - }, - ], - endpoint: { - url: "https://resource-groups.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - { - conditions: [], - endpoint: { - url: "https://resource-groups-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://resource-groups.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://resource-groups.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/resource-groups.json */ + +const v="fn", +w="argv", +x="ref"; +const a=false, +b=true, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i="getAttr", +j={[x]:"Endpoint"}, +k={[v]:"booleanEquals",[w]:[{[x]:"UseFIPS"},true]}, +l={[v]:"booleanEquals",[w]:[{[x]:"UseDualStack"},true]}, +m={}, +n={[v]:"booleanEquals",[w]:[true,{[v]:i,[w]:[{[x]:e},"supportsFIPS"]}]}, +o={[x]:e}, +p={[v]:"booleanEquals",[w]:[true,{[v]:i,[w]:[o,"supportsDualStack"]}]}, +q={"url":"https://resource-groups.{Region}.{PartitionResult#dnsSuffix}","properties":{},"headers":{}}, +r=[j], +s=[k], +t=[], +u=[l]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:b,default:a,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:b,default:a,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:a,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[v]:"aws.partition",[w]:[{[x]:"Region"}],assign:e}],type:f,rules:[{conditions:[{[v]:"isSet",[w]:r},{[v]:"parseURL",[w]:r,assign:"url"}],type:f,rules:[{conditions:s,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:t,type:f,rules:[{conditions:u,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:t,endpoint:{url:j,properties:m,headers:m},type:h}]}]},{conditions:[k,l],type:f,rules:[{conditions:[n,p],type:f,rules:[{conditions:t,endpoint:{url:"https://resource-groups-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:m,headers:m},type:h}]},{conditions:t,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:s,type:f,rules:[{conditions:[n],type:f,rules:[{conditions:t,type:f,rules:[{conditions:[{[v]:"stringEquals",[w]:["aws-us-gov",{[v]:i,[w]:[o,"name"]}]}],endpoint:q,type:h},{conditions:t,endpoint:{url:"https://resource-groups-fips.{Region}.{PartitionResult#dnsSuffix}",properties:m,headers:m},type:h}]}]},{conditions:t,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:u,type:f,rules:[{conditions:[p],type:f,rules:[{conditions:t,endpoint:{url:"https://resource-groups.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:m,headers:m},type:h}]},{conditions:t,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:t,endpoint:q,type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-robomaker/src/endpoint/ruleset.ts b/clients/client-robomaker/src/endpoint/ruleset.ts index 7bf0901d61248..65ba1f1243ddf 100644 --- a/clients/client-robomaker/src/endpoint/ruleset.ts +++ b/clients/client-robomaker/src/endpoint/ruleset.ts @@ -1,320 +1,31 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: false, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://robomaker-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://robomaker-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://robomaker.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://robomaker.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/robomaker.json */ + +const s="fn", +t="argv", +u="ref"; +const a=false, +b=true, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i={[u]:"Endpoint"}, +j={[s]:"booleanEquals",[t]:[{[u]:"UseFIPS"},true]}, +k={[s]:"booleanEquals",[t]:[{[u]:"UseDualStack"},true]}, +l={}, +m={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsFIPS"]}]}, +n={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsDualStack"]}]}, +o=[i], +p=[j], +q=[], +r=[k]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:b,default:a,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:b,default:a,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:a,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[s]:"aws.partition",[t]:[{[u]:"Region"}],assign:e}],type:f,rules:[{conditions:[{[s]:"isSet",[t]:o},{[s]:"parseURL",[t]:o,assign:"url"}],type:f,rules:[{conditions:p,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:q,type:f,rules:[{conditions:r,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:q,endpoint:{url:i,properties:l,headers:l},type:h}]}]},{conditions:[j,k],type:f,rules:[{conditions:[m,n],type:f,rules:[{conditions:q,endpoint:{url:"https://robomaker-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:p,type:f,rules:[{conditions:[m],type:f,rules:[{conditions:q,type:f,rules:[{conditions:q,endpoint:{url:"https://robomaker-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]},{conditions:q,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:r,type:f,rules:[{conditions:[n],type:f,rules:[{conditions:q,endpoint:{url:"https://robomaker.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:q,endpoint:{url:"https://robomaker.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-rolesanywhere/src/endpoint/ruleset.ts b/clients/client-rolesanywhere/src/endpoint/ruleset.ts index ace4293d31280..f068fd48aa4c6 100644 --- a/clients/client-rolesanywhere/src/endpoint/ruleset.ts +++ b/clients/client-rolesanywhere/src/endpoint/ruleset.ts @@ -1,320 +1,31 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: false, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://rolesanywhere-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://rolesanywhere-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://rolesanywhere.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://rolesanywhere.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/rolesanywhere.json */ + +const s="fn", +t="argv", +u="ref"; +const a=false, +b=true, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i={[u]:"Endpoint"}, +j={[s]:"booleanEquals",[t]:[{[u]:"UseFIPS"},true]}, +k={[s]:"booleanEquals",[t]:[{[u]:"UseDualStack"},true]}, +l={}, +m={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsFIPS"]}]}, +n={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsDualStack"]}]}, +o=[i], +p=[j], +q=[], +r=[k]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:b,default:a,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:b,default:a,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:a,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[s]:"aws.partition",[t]:[{[u]:"Region"}],assign:e}],type:f,rules:[{conditions:[{[s]:"isSet",[t]:o},{[s]:"parseURL",[t]:o,assign:"url"}],type:f,rules:[{conditions:p,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:q,type:f,rules:[{conditions:r,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:q,endpoint:{url:i,properties:l,headers:l},type:h}]}]},{conditions:[j,k],type:f,rules:[{conditions:[m,n],type:f,rules:[{conditions:q,endpoint:{url:"https://rolesanywhere-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:p,type:f,rules:[{conditions:[m],type:f,rules:[{conditions:q,type:f,rules:[{conditions:q,endpoint:{url:"https://rolesanywhere-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]},{conditions:q,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:r,type:f,rules:[{conditions:[n],type:f,rules:[{conditions:q,endpoint:{url:"https://rolesanywhere.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:q,endpoint:{url:"https://rolesanywhere.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-route-53-domains/src/endpoint/ruleset.ts b/clients/client-route-53-domains/src/endpoint/ruleset.ts index abd91695cb795..f54d12ccaa5a2 100644 --- a/clients/client-route-53-domains/src/endpoint/ruleset.ts +++ b/clients/client-route-53-domains/src/endpoint/ruleset.ts @@ -1,320 +1,31 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: false, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://route53domains-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://route53domains-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://route53domains.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://route53domains.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/route-53-domains.json */ + +const s="fn", +t="argv", +u="ref"; +const a=false, +b=true, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i={[u]:"Endpoint"}, +j={[s]:"booleanEquals",[t]:[{[u]:"UseFIPS"},true]}, +k={[s]:"booleanEquals",[t]:[{[u]:"UseDualStack"},true]}, +l={}, +m={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsFIPS"]}]}, +n={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsDualStack"]}]}, +o=[i], +p=[j], +q=[], +r=[k]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:b,default:a,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:b,default:a,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:a,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[s]:"aws.partition",[t]:[{[u]:"Region"}],assign:e}],type:f,rules:[{conditions:[{[s]:"isSet",[t]:o},{[s]:"parseURL",[t]:o,assign:"url"}],type:f,rules:[{conditions:p,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:q,type:f,rules:[{conditions:r,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:q,endpoint:{url:i,properties:l,headers:l},type:h}]}]},{conditions:[j,k],type:f,rules:[{conditions:[m,n],type:f,rules:[{conditions:q,endpoint:{url:"https://route53domains-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:p,type:f,rules:[{conditions:[m],type:f,rules:[{conditions:q,type:f,rules:[{conditions:q,endpoint:{url:"https://route53domains-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]},{conditions:q,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:r,type:f,rules:[{conditions:[n],type:f,rules:[{conditions:q,endpoint:{url:"https://route53domains.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:q,endpoint:{url:"https://route53domains.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-route-53/src/endpoint/ruleset.ts b/clients/client-route-53/src/endpoint/ruleset.ts index 1ccc4fab06764..e99a0e9e54a4b 100644 --- a/clients/client-route-53/src/endpoint/ruleset.ts +++ b/clients/client-route-53/src/endpoint/ruleset.ts @@ -1,1442 +1,61 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: true, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "stringEquals", - argv: [ - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "name", - ], - }, - "aws", - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://route-53-fips.{Region}.api.aws", - properties: { - authSchemes: [ - { - name: "sigv4", - signingRegion: "us-east-1", - signingName: "route53", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://route53-fips.amazonaws.com", - properties: { - authSchemes: [ - { - name: "sigv4", - signingRegion: "us-east-1", - signingName: "route53", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://route-53.{Region}.api.aws", - properties: { - authSchemes: [ - { - name: "sigv4", - signingRegion: "us-east-1", - signingName: "route53", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://route53.amazonaws.com", - properties: { - authSchemes: [ - { - name: "sigv4", - signingRegion: "us-east-1", - signingName: "route53", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [ - { - fn: "stringEquals", - argv: [ - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "name", - ], - }, - "aws-cn", - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://route-53-fips.{Region}.api.amazonwebservices.com.cn", - properties: { - authSchemes: [ - { - name: "sigv4", - signingRegion: "cn-northwest-1", - signingName: "route53", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://route-53-fips.{Region}.amazonaws.com.cn", - properties: { - authSchemes: [ - { - name: "sigv4", - signingRegion: "cn-northwest-1", - signingName: "route53", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://route-53.{Region}.api.amazonwebservices.com.cn", - properties: { - authSchemes: [ - { - name: "sigv4", - signingRegion: "cn-northwest-1", - signingName: "route53", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://route53.amazonaws.com.cn", - properties: { - authSchemes: [ - { - name: "sigv4", - signingRegion: "cn-northwest-1", - signingName: "route53", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [ - { - fn: "stringEquals", - argv: [ - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "name", - ], - }, - "aws-us-gov", - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://route-53-fips.{Region}.api.aws", - properties: { - authSchemes: [ - { - name: "sigv4", - signingRegion: "us-gov-west-1", - signingName: "route53", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://route53.us-gov.amazonaws.com", - properties: { - authSchemes: [ - { - name: "sigv4", - signingRegion: "us-gov-west-1", - signingName: "route53", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://route-53.{Region}.api.aws", - properties: { - authSchemes: [ - { - name: "sigv4", - signingRegion: "us-gov-west-1", - signingName: "route53", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://route53.us-gov.amazonaws.com", - properties: { - authSchemes: [ - { - name: "sigv4", - signingRegion: "us-gov-west-1", - signingName: "route53", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [ - { - fn: "stringEquals", - argv: [ - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "name", - ], - }, - "aws-iso", - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://route-53-fips.{Region}.c2s.ic.gov", - properties: { - authSchemes: [ - { - name: "sigv4", - signingRegion: "us-iso-east-1", - signingName: "route53", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://route53.c2s.ic.gov", - properties: { - authSchemes: [ - { - name: "sigv4", - signingRegion: "us-iso-east-1", - signingName: "route53", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [ - { - fn: "stringEquals", - argv: [ - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "name", - ], - }, - "aws-iso-b", - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://route-53-fips.{Region}.sc2s.sgov.gov", - properties: { - authSchemes: [ - { - name: "sigv4", - signingRegion: "us-isob-east-1", - signingName: "route53", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://route53.sc2s.sgov.gov", - properties: { - authSchemes: [ - { - name: "sigv4", - signingRegion: "us-isob-east-1", - signingName: "route53", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://route53-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "stringEquals", - argv: [ - { - ref: "Region", - }, - "aws-global", - ], - }, - ], - endpoint: { - url: "https://route53-fips.amazonaws.com", - properties: { - authSchemes: [ - { - name: "sigv4", - signingRegion: "us-east-1", - signingName: "route53", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - { - conditions: [ - { - fn: "stringEquals", - argv: [ - { - ref: "Region", - }, - "aws-us-gov-global", - ], - }, - ], - endpoint: { - url: "https://route53.us-gov.amazonaws.com", - properties: { - authSchemes: [ - { - name: "sigv4", - signingRegion: "us-gov-west-1", - signingName: "route53", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - { - conditions: [], - endpoint: { - url: "https://route53-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://route53.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "stringEquals", - argv: [ - { - ref: "Region", - }, - "aws-global", - ], - }, - ], - endpoint: { - url: "https://route53.amazonaws.com", - properties: { - authSchemes: [ - { - name: "sigv4", - signingRegion: "us-east-1", - signingName: "route53", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - { - conditions: [ - { - fn: "stringEquals", - argv: [ - { - ref: "Region", - }, - "aws-cn-global", - ], - }, - ], - endpoint: { - url: "https://route53.amazonaws.com.cn", - properties: { - authSchemes: [ - { - name: "sigv4", - signingRegion: "cn-northwest-1", - signingName: "route53", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - { - conditions: [ - { - fn: "stringEquals", - argv: [ - { - ref: "Region", - }, - "aws-us-gov-global", - ], - }, - ], - endpoint: { - url: "https://route53.us-gov.amazonaws.com", - properties: { - authSchemes: [ - { - name: "sigv4", - signingRegion: "us-gov-west-1", - signingName: "route53", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - { - conditions: [ - { - fn: "stringEquals", - argv: [ - { - ref: "Region", - }, - "aws-iso-global", - ], - }, - ], - endpoint: { - url: "https://route53.c2s.ic.gov", - properties: { - authSchemes: [ - { - name: "sigv4", - signingRegion: "us-iso-east-1", - signingName: "route53", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - { - conditions: [ - { - fn: "stringEquals", - argv: [ - { - ref: "Region", - }, - "aws-iso-b-global", - ], - }, - ], - endpoint: { - url: "https://route53.sc2s.sgov.gov", - properties: { - authSchemes: [ - { - name: "sigv4", - signingRegion: "us-isob-east-1", - signingName: "route53", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - { - conditions: [], - endpoint: { - url: "https://route53.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/route-53.json */ + +const N="type", +O="conditions", +P="fn", +Q="argv", +R="ref", +S="url", +T="properties", +U="headers", +V="authSchemes", +W="name", +X="signingRegion", +Y="signingName"; +const a=true, +b=false, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i="stringEquals", +j="https://route-53-fips.{Region}.api.aws", +k="https://route-53.{Region}.api.aws", +l={[R]:"Region"}, +m={[R]:"Endpoint"}, +n={}, +o={[P]:"getAttr",[Q]:[{[R]:e},"name"]}, +p={[V]:[{[W]:"sigv4",[X]:"us-east-1",[Y]:"route53"}]}, +q={[O]:[],[g]:"FIPS and DualStack are enabled, but this partition does not support one or both",[N]:g}, +r={[S]:"https://route53-fips.amazonaws.com",[T]:p,[U]:{}}, +s={[O]:[],[g]:"FIPS is enabled but this partition does not support FIPS",[N]:g}, +t={[O]:[],[g]:"DualStack is enabled but this partition does not support DualStack",[N]:g}, +u={[S]:"https://route53.amazonaws.com",[T]:p,[U]:{}}, +v={[V]:[{[W]:"sigv4",[X]:"cn-northwest-1",[Y]:"route53"}]}, +w={[S]:"https://route53.amazonaws.com.cn",[T]:v,[U]:{}}, +x={[V]:[{[W]:"sigv4",[X]:"us-gov-west-1",[Y]:"route53"}]}, +y={[O]:[],[h]:{[S]:"https://route53.us-gov.amazonaws.com",[T]:x,[U]:{}},[N]:h}, +z={[V]:[{[W]:"sigv4",[X]:"us-iso-east-1",[Y]:"route53"}]}, +A={[S]:"https://route53.c2s.ic.gov",[T]:z,[U]:{}}, +B={[V]:[{[W]:"sigv4",[X]:"us-isob-east-1",[Y]:"route53"}]}, +C={[S]:"https://route53.sc2s.sgov.gov",[T]:B,[U]:{}}, +D={[O]:[{[P]:i,[Q]:[l,"aws-us-gov-global"]}],[h]:{[S]:"https://route53.us-gov.amazonaws.com",[T]:x,[U]:{}},[N]:h}, +E=[m], +F=[{[P]:"booleanEquals",[Q]:[{[R]:"UseFIPS"},true]}], +G=[], +H=[{[P]:"booleanEquals",[Q]:[{[R]:"UseDualStack"},true]}], +I=[{[P]:"booleanEquals",[Q]:[{[R]:"UseFIPS"},true]},{[P]:"booleanEquals",[Q]:[{[R]:"UseDualStack"},true]}], +J=[{[P]:"booleanEquals",[Q]:[true,{[P]:"getAttr",[Q]:[{[R]:e},"supportsFIPS"]}]},{[P]:"booleanEquals",[Q]:[true,{[P]:"getAttr",[Q]:[{[R]:e},"supportsDualStack"]}]}], +K=[{[P]:"booleanEquals",[Q]:[true,{[P]:"getAttr",[Q]:[{[R]:e},"supportsFIPS"]}]}], +L=[{[P]:"booleanEquals",[Q]:[true,{[P]:"getAttr",[Q]:[{[R]:e},"supportsDualStack"]}]}], +M=[{[P]:i,[Q]:[l,"aws-global"]}]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",[N]:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:a,default:b,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",[N]:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:a,default:b,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",[N]:d},Endpoint:{builtIn:"SDK::Endpoint",required:b,documentation:"Override the endpoint used to send this request",[N]:c}},rules:[{[O]:[{[P]:"aws.partition",[Q]:[l],assign:e}],[N]:f,rules:[{[O]:[{[P]:"isSet",[Q]:E},{[P]:"parseURL",[Q]:E,assign:"url"}],[N]:f,rules:[{[O]:F,error:"Invalid Configuration: FIPS and custom endpoint are not supported",[N]:g},{[O]:G,[N]:f,rules:[{[O]:H,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",[N]:g},{[O]:G,endpoint:{[S]:m,[T]:n,[U]:n},[N]:h}]}]},{[O]:[{[P]:i,[Q]:[o,"aws"]}],[N]:f,rules:[{[O]:I,[N]:f,rules:[{[O]:J,[N]:f,rules:[{[O]:G,endpoint:{[S]:j,[T]:p,[U]:n},[N]:h}]},q]},{[O]:F,[N]:f,rules:[{[O]:K,[N]:f,rules:[{[O]:G,endpoint:r,[N]:h}]},s]},{[O]:H,[N]:f,rules:[{[O]:L,[N]:f,rules:[{[O]:G,endpoint:{[S]:k,[T]:p,[U]:n},[N]:h}]},t]},{[O]:G,endpoint:u,[N]:h}]},{[O]:[{[P]:i,[Q]:[o,"aws-cn"]}],[N]:f,rules:[{[O]:I,[N]:f,rules:[{[O]:J,[N]:f,rules:[{[O]:G,endpoint:{[S]:"https://route-53-fips.{Region}.api.amazonwebservices.com.cn",[T]:v,[U]:n},[N]:h}]},q]},{[O]:F,[N]:f,rules:[{[O]:K,[N]:f,rules:[{[O]:G,endpoint:{[S]:"https://route-53-fips.{Region}.amazonaws.com.cn",[T]:v,[U]:n},[N]:h}]},s]},{[O]:H,[N]:f,rules:[{[O]:L,[N]:f,rules:[{[O]:G,endpoint:{[S]:"https://route-53.{Region}.api.amazonwebservices.com.cn",[T]:v,[U]:n},[N]:h}]},t]},{[O]:G,endpoint:w,[N]:h}]},{[O]:[{[P]:i,[Q]:[o,"aws-us-gov"]}],[N]:f,rules:[{[O]:I,[N]:f,rules:[{[O]:J,[N]:f,rules:[{[O]:G,endpoint:{[S]:j,[T]:x,[U]:n},[N]:h}]},q]},{[O]:F,[N]:f,rules:[{[O]:K,[N]:f,rules:[y]},s]},{[O]:H,[N]:f,rules:[{[O]:L,[N]:f,rules:[{[O]:G,endpoint:{[S]:k,[T]:x,[U]:n},[N]:h}]},t]},y]},{[O]:[{[P]:i,[Q]:[o,"aws-iso"]}],[N]:f,rules:[{[O]:F,[N]:f,rules:[{[O]:K,[N]:f,rules:[{[O]:G,endpoint:{[S]:"https://route-53-fips.{Region}.c2s.ic.gov",[T]:z,[U]:n},[N]:h}]},s]},{[O]:G,endpoint:A,[N]:h}]},{[O]:[{[P]:i,[Q]:[o,"aws-iso-b"]}],[N]:f,rules:[{[O]:F,[N]:f,rules:[{[O]:K,[N]:f,rules:[{[O]:G,endpoint:{[S]:"https://route-53-fips.{Region}.sc2s.sgov.gov",[T]:B,[U]:n},[N]:h}]},s]},{[O]:G,endpoint:C,[N]:h}]},{[O]:I,[N]:f,rules:[{[O]:J,[N]:f,rules:[{[O]:G,endpoint:{[S]:"https://route53-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",[T]:n,[U]:n},[N]:h}]},q]},{[O]:F,[N]:f,rules:[{[O]:K,[N]:f,rules:[{[O]:G,[N]:f,rules:[{[O]:M,endpoint:r,[N]:h},D,{[O]:G,endpoint:{[S]:"https://route53-fips.{Region}.{PartitionResult#dnsSuffix}",[T]:n,[U]:n},[N]:h}]}]},s]},{[O]:H,[N]:f,rules:[{[O]:L,[N]:f,rules:[{[O]:G,endpoint:{[S]:"https://route53.{Region}.{PartitionResult#dualStackDnsSuffix}",[T]:n,[U]:n},[N]:h}]},t]},{[O]:G,[N]:f,rules:[{[O]:M,endpoint:u,[N]:h},{[O]:[{[P]:i,[Q]:[l,"aws-cn-global"]}],endpoint:w,[N]:h},D,{[O]:[{[P]:i,[Q]:[l,"aws-iso-global"]}],endpoint:A,[N]:h},{[O]:[{[P]:i,[Q]:[l,"aws-iso-b-global"]}],endpoint:C,[N]:h},{[O]:G,endpoint:{[S]:"https://route53.{Region}.{PartitionResult#dnsSuffix}",[T]:n,[U]:n},[N]:h}]}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-route53-recovery-cluster/src/endpoint/ruleset.ts b/clients/client-route53-recovery-cluster/src/endpoint/ruleset.ts index 9d6dee0f40525..8a9a9f6865a56 100644 --- a/clients/client-route53-recovery-cluster/src/endpoint/ruleset.ts +++ b/clients/client-route53-recovery-cluster/src/endpoint/ruleset.ts @@ -1,314 +1,31 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: false, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://route53-recovery-cluster-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://route53-recovery-cluster-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://route53-recovery-cluster.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://route53-recovery-cluster.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/route53-recovery-cluster.json */ + +const s="fn", +t="argv", +u="ref"; +const a=false, +b=true, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i={[u]:"Endpoint"}, +j={[s]:"booleanEquals",[t]:[{[u]:"UseFIPS"},true]}, +k={[s]:"booleanEquals",[t]:[{[u]:"UseDualStack"},true]}, +l={}, +m={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsFIPS"]}]}, +n={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsDualStack"]}]}, +o=[i], +p=[j], +q=[], +r=[k]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:b,default:a,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:b,default:a,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:a,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[s]:"aws.partition",[t]:[{[u]:"Region"}],assign:e}],type:f,rules:[{conditions:[{[s]:"isSet",[t]:o},{[s]:"parseURL",[t]:o,assign:"url"}],type:f,rules:[{conditions:p,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:q,type:f,rules:[{conditions:r,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:q,endpoint:{url:i,properties:l,headers:l},type:h}]}]},{conditions:[j,k],type:f,rules:[{conditions:[m,n],type:f,rules:[{conditions:q,endpoint:{url:"https://route53-recovery-cluster-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:p,type:f,rules:[{conditions:[m],type:f,rules:[{conditions:q,endpoint:{url:"https://route53-recovery-cluster-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:r,type:f,rules:[{conditions:[n],type:f,rules:[{conditions:q,endpoint:{url:"https://route53-recovery-cluster.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:q,endpoint:{url:"https://route53-recovery-cluster.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-route53-recovery-control-config/src/endpoint/ruleset.ts b/clients/client-route53-recovery-control-config/src/endpoint/ruleset.ts index 7137005ee4fd2..69436f36c6747 100644 --- a/clients/client-route53-recovery-control-config/src/endpoint/ruleset.ts +++ b/clients/client-route53-recovery-control-config/src/endpoint/ruleset.ts @@ -1,353 +1,32 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: false, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://route53-recovery-control-config-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://route53-recovery-control-config-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://route53-recovery-control-config.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "stringEquals", - argv: [ - { - ref: "Region", - }, - "aws-global", - ], - }, - ], - endpoint: { - url: "https://route53-recovery-control-config.us-west-2.amazonaws.com", - properties: { - authSchemes: [ - { - name: "sigv4", - signingName: "route53-recovery-control-config", - signingRegion: "us-west-2", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - { - conditions: [], - endpoint: { - url: "https://route53-recovery-control-config.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/route53-recovery-control-config.json */ + +const t="fn", +u="argv", +v="ref"; +const a=false, +b=true, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i={[v]:"Region"}, +j={[v]:"Endpoint"}, +k={[t]:"booleanEquals",[u]:[{[v]:"UseFIPS"},true]}, +l={[t]:"booleanEquals",[u]:[{[v]:"UseDualStack"},true]}, +m={}, +n={[t]:"booleanEquals",[u]:[true,{[t]:"getAttr",[u]:[{[v]:e},"supportsFIPS"]}]}, +o={[t]:"booleanEquals",[u]:[true,{[t]:"getAttr",[u]:[{[v]:e},"supportsDualStack"]}]}, +p=[j], +q=[k], +r=[], +s=[l]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:b,default:a,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:b,default:a,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:a,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[t]:"aws.partition",[u]:[i],assign:e}],type:f,rules:[{conditions:[{[t]:"isSet",[u]:p},{[t]:"parseURL",[u]:p,assign:"url"}],type:f,rules:[{conditions:q,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:r,type:f,rules:[{conditions:s,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:r,endpoint:{url:j,properties:m,headers:m},type:h}]}]},{conditions:[k,l],type:f,rules:[{conditions:[n,o],type:f,rules:[{conditions:r,endpoint:{url:"https://route53-recovery-control-config-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:m,headers:m},type:h}]},{conditions:r,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:q,type:f,rules:[{conditions:[n],type:f,rules:[{conditions:r,type:f,rules:[{conditions:r,endpoint:{url:"https://route53-recovery-control-config-fips.{Region}.{PartitionResult#dnsSuffix}",properties:m,headers:m},type:h}]}]},{conditions:r,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:s,type:f,rules:[{conditions:[o],type:f,rules:[{conditions:r,endpoint:{url:"https://route53-recovery-control-config.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:m,headers:m},type:h}]},{conditions:r,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:r,type:f,rules:[{conditions:[{[t]:"stringEquals",[u]:[i,"aws-global"]}],endpoint:{url:"https://route53-recovery-control-config.us-west-2.amazonaws.com",properties:{authSchemes:[{name:"sigv4",signingName:"route53-recovery-control-config",signingRegion:"us-west-2"}]},headers:m},type:h},{conditions:r,endpoint:{url:"https://route53-recovery-control-config.{Region}.{PartitionResult#dnsSuffix}",properties:m,headers:m},type:h}]}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-route53-recovery-readiness/src/endpoint/ruleset.ts b/clients/client-route53-recovery-readiness/src/endpoint/ruleset.ts index 79da12e454cbf..ea8e25514cd37 100644 --- a/clients/client-route53-recovery-readiness/src/endpoint/ruleset.ts +++ b/clients/client-route53-recovery-readiness/src/endpoint/ruleset.ts @@ -1,314 +1,31 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: false, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://route53-recovery-readiness-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://route53-recovery-readiness-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://route53-recovery-readiness.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://route53-recovery-readiness.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/route53-recovery-readiness.json */ + +const s="fn", +t="argv", +u="ref"; +const a=false, +b=true, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i={[u]:"Endpoint"}, +j={[s]:"booleanEquals",[t]:[{[u]:"UseFIPS"},true]}, +k={[s]:"booleanEquals",[t]:[{[u]:"UseDualStack"},true]}, +l={}, +m={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsFIPS"]}]}, +n={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsDualStack"]}]}, +o=[i], +p=[j], +q=[], +r=[k]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:b,default:a,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:b,default:a,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:a,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[s]:"aws.partition",[t]:[{[u]:"Region"}],assign:e}],type:f,rules:[{conditions:[{[s]:"isSet",[t]:o},{[s]:"parseURL",[t]:o,assign:"url"}],type:f,rules:[{conditions:p,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:q,type:f,rules:[{conditions:r,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:q,endpoint:{url:i,properties:l,headers:l},type:h}]}]},{conditions:[j,k],type:f,rules:[{conditions:[m,n],type:f,rules:[{conditions:q,endpoint:{url:"https://route53-recovery-readiness-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:p,type:f,rules:[{conditions:[m],type:f,rules:[{conditions:q,endpoint:{url:"https://route53-recovery-readiness-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:r,type:f,rules:[{conditions:[n],type:f,rules:[{conditions:q,endpoint:{url:"https://route53-recovery-readiness.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:q,endpoint:{url:"https://route53-recovery-readiness.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-route53resolver/src/endpoint/ruleset.ts b/clients/client-route53resolver/src/endpoint/ruleset.ts index 3b96872449658..089b2d2fca7cf 100644 --- a/clients/client-route53resolver/src/endpoint/ruleset.ts +++ b/clients/client-route53resolver/src/endpoint/ruleset.ts @@ -1,320 +1,31 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: false, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://route53resolver-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://route53resolver-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://route53resolver.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://route53resolver.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/route53resolver.json */ + +const s="fn", +t="argv", +u="ref"; +const a=false, +b=true, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i={[u]:"Endpoint"}, +j={[s]:"booleanEquals",[t]:[{[u]:"UseFIPS"},true]}, +k={[s]:"booleanEquals",[t]:[{[u]:"UseDualStack"},true]}, +l={}, +m={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsFIPS"]}]}, +n={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsDualStack"]}]}, +o=[i], +p=[j], +q=[], +r=[k]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:b,default:a,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:b,default:a,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:a,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[s]:"aws.partition",[t]:[{[u]:"Region"}],assign:e}],type:f,rules:[{conditions:[{[s]:"isSet",[t]:o},{[s]:"parseURL",[t]:o,assign:"url"}],type:f,rules:[{conditions:p,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:q,type:f,rules:[{conditions:r,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:q,endpoint:{url:i,properties:l,headers:l},type:h}]}]},{conditions:[j,k],type:f,rules:[{conditions:[m,n],type:f,rules:[{conditions:q,endpoint:{url:"https://route53resolver-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:p,type:f,rules:[{conditions:[m],type:f,rules:[{conditions:q,type:f,rules:[{conditions:q,endpoint:{url:"https://route53resolver-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]},{conditions:q,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:r,type:f,rules:[{conditions:[n],type:f,rules:[{conditions:q,endpoint:{url:"https://route53resolver.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:q,endpoint:{url:"https://route53resolver.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-rum/src/endpoint/ruleset.ts b/clients/client-rum/src/endpoint/ruleset.ts index 8eda861828962..44d8f700cda78 100644 --- a/clients/client-rum/src/endpoint/ruleset.ts +++ b/clients/client-rum/src/endpoint/ruleset.ts @@ -1,320 +1,31 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: false, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://rum-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://rum-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://rum.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://rum.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/rum.json */ + +const s="fn", +t="argv", +u="ref"; +const a=false, +b=true, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i={[u]:"Endpoint"}, +j={[s]:"booleanEquals",[t]:[{[u]:"UseFIPS"},true]}, +k={[s]:"booleanEquals",[t]:[{[u]:"UseDualStack"},true]}, +l={}, +m={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsFIPS"]}]}, +n={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsDualStack"]}]}, +o=[i], +p=[j], +q=[], +r=[k]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:b,default:a,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:b,default:a,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:a,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[s]:"aws.partition",[t]:[{[u]:"Region"}],assign:e}],type:f,rules:[{conditions:[{[s]:"isSet",[t]:o},{[s]:"parseURL",[t]:o,assign:"url"}],type:f,rules:[{conditions:p,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:q,type:f,rules:[{conditions:r,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:q,endpoint:{url:i,properties:l,headers:l},type:h}]}]},{conditions:[j,k],type:f,rules:[{conditions:[m,n],type:f,rules:[{conditions:q,endpoint:{url:"https://rum-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:p,type:f,rules:[{conditions:[m],type:f,rules:[{conditions:q,type:f,rules:[{conditions:q,endpoint:{url:"https://rum-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]},{conditions:q,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:r,type:f,rules:[{conditions:[n],type:f,rules:[{conditions:q,endpoint:{url:"https://rum.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:q,endpoint:{url:"https://rum.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-s3-control/src/endpoint/ruleset.ts b/clients/client-s3-control/src/endpoint/ruleset.ts index 6fded0416de42..580d354e7d5a6 100644 --- a/clients/client-s3-control/src/endpoint/ruleset.ts +++ b/clients/client-s3-control/src/endpoint/ruleset.ts @@ -1,2475 +1,101 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: false, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - AccountId: { - required: false, - documentation: - "The Account ID used to send the request. This is an optional parameter that will be set automatically for operations that require it.", - type: "String", - }, - RequiresAccountId: { - required: false, - documentation: "Internal parameter for operations that require account id host prefix.", - type: "Boolean", - }, - OutpostId: { - required: false, - documentation: - "The Outpost ID. Some operations have an optional OutpostId which should be used in endpoint construction.", - type: "String", - }, - Bucket: { - required: false, - documentation: - "The S3 bucket used to send the request. This is an optional parameter that will be set automatically for operations that are scoped to an S3 bucket.", - type: "String", - }, - AccessPointName: { - required: false, - documentation: - "The S3 AccessPointName used to send the request. This is an optional parameter that will be set automatically for operations that are scoped to an S3 AccessPoint.", - type: "String", - }, - UseArnRegion: { - builtIn: "AWS::S3Control::UseArnRegion", - required: false, - documentation: - "When an Access Point ARN is provided and this flag is enabled, the SDK MUST use the ARN's region when constructing the endpoint instead of the client's configured region.", - type: "Boolean", - }, - }, - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Region", - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "OutpostId", - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "partitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "stringEquals", - argv: [ - { - fn: "getAttr", - argv: [ - { - ref: "partitionResult", - }, - "name", - ], - }, - "aws-cn", - ], - }, - ], - error: "Partition does not support FIPS", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "RequiresAccountId", - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "RequiresAccountId", - }, - true, - ], - }, - { - fn: "not", - argv: [ - { - fn: "isSet", - argv: [ - { - ref: "AccountId", - }, - ], - }, - ], - }, - ], - error: "AccountId is required but not set", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "AccountId", - }, - ], - }, - { - fn: "not", - argv: [ - { - fn: "isValidHostLabel", - argv: [ - { - ref: "AccountId", - }, - false, - ], - }, - ], - }, - ], - error: "AccountId must only contain a-z, A-Z, 0-9 and `-`.", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "not", - argv: [ - { - fn: "isValidHostLabel", - argv: [ - { - ref: "OutpostId", - }, - false, - ], - }, - ], - }, - ], - error: "OutpostId must only contain a-z, A-Z, 0-9 and `-`.", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isValidHostLabel", - argv: [ - { - ref: "Region", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: - "Invalid configuration: Outposts do not support dual-stack", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - endpoint: { - url: "{url#scheme}://{url#authority}{url#path}", - properties: { - authSchemes: [ - { - name: "sigv4", - signingRegion: "{Region}", - disableDoubleEncoding: true, - signingName: "s3-outposts", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - endpoint: { - url: "https://s3-outposts-fips.{Region}.{partitionResult#dnsSuffix}", - properties: { - authSchemes: [ - { - name: "sigv4", - signingRegion: "{Region}", - disableDoubleEncoding: true, - signingName: "s3-outposts", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - { - conditions: [], - endpoint: { - url: "https://s3-outposts.{Region}.{partitionResult#dnsSuffix}", - properties: { - authSchemes: [ - { - name: "sigv4", - signingRegion: "{Region}", - disableDoubleEncoding: true, - signingName: "s3-outposts", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - ], - }, - { - conditions: [], - error: "Invalid region: region was not a valid DNS name.", - type: "error", - }, - ], - }, - ], - }, - ], - }, - ], - }, - ], - }, - ], - }, - { - conditions: [], - error: "A valid partition could not be determined", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "AccessPointName", - }, - ], - }, - { - fn: "aws.parseArn", - argv: [ - { - ref: "AccessPointName", - }, - ], - assign: "accessPointArn", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "getAttr", - argv: [ - { - ref: "accessPointArn", - }, - "resourceId[0]", - ], - assign: "arnType", - }, - { - fn: "not", - argv: [ - { - fn: "stringEquals", - argv: [ - { - ref: "arnType", - }, - "", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "stringEquals", - argv: [ - { - fn: "getAttr", - argv: [ - { - ref: "accessPointArn", - }, - "service", - ], - }, - "s3-outposts", - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid configuration: Outpost Access Points do not support dual-stack", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "getAttr", - argv: [ - { - ref: "accessPointArn", - }, - "resourceId[1]", - ], - assign: "outpostId", - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isValidHostLabel", - argv: [ - { - ref: "outpostId", - }, - false, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "UseArnRegion", - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseArnRegion", - }, - false, - ], - }, - { - fn: "not", - argv: [ - { - fn: "stringEquals", - argv: [ - { - fn: "getAttr", - argv: [ - { - ref: "accessPointArn", - }, - "region", - ], - }, - "{Region}", - ], - }, - ], - }, - ], - error: - "Invalid configuration: region from ARN `{accessPointArn#region}` does not match client region `{Region}` and UseArnRegion is `false`", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "partitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - fn: "getAttr", - argv: [ - { - ref: "accessPointArn", - }, - "region", - ], - }, - ], - assign: "arnPartition", - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "stringEquals", - argv: [ - { - fn: "getAttr", - argv: [ - { - ref: "arnPartition", - }, - "name", - ], - }, - { - fn: "getAttr", - argv: [ - { - ref: "partitionResult", - }, - "name", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isValidHostLabel", - argv: [ - { - fn: "getAttr", - argv: [ - { - ref: "accessPointArn", - }, - "region", - ], - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "not", - argv: [ - { - fn: "stringEquals", - argv: [ - { - fn: "getAttr", - argv: [ - { - ref: "accessPointArn", - }, - "accountId", - ], - }, - "", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isValidHostLabel", - argv: [ - { - fn: "getAttr", - argv: [ - { - ref: "accessPointArn", - }, - "accountId", - ], - }, - false, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "AccountId", - }, - ], - }, - { - fn: "not", - argv: [ - { - fn: "stringEquals", - argv: [ - { - ref: "AccountId", - }, - "{accessPointArn#accountId}", - ], - }, - ], - }, - ], - error: - "Invalid ARN: the accountId specified in the ARN (`{accessPointArn#accountId}`) does not match the parameter (`{AccountId}`)", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "getAttr", - argv: [ - { - ref: "accessPointArn", - }, - "resourceId[2]", - ], - assign: - "outpostType", - }, - ], - type: "tree", - rules: [ - { - conditions: - [], - type: "tree", - rules: [ - { - conditions: - [ - { - fn: "getAttr", - argv: [ - { - ref: "accessPointArn", - }, - "resourceId[3]", - ], - assign: - "accessPointName", - }, - ], - type: "tree", - rules: - [ - { - conditions: - [], - type: "tree", - rules: - [ - { - conditions: - [ - { - fn: "stringEquals", - argv: [ - { - ref: "outpostType", - }, - "accesspoint", - ], - }, - ], - type: "tree", - rules: - [ - { - conditions: - [], - type: "tree", - rules: - [ - { - conditions: - [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - endpoint: - { - url: "https://s3-outposts-fips.{accessPointArn#region}.{arnPartition#dnsSuffix}", - properties: - { - authSchemes: - [ - { - name: "sigv4", - signingRegion: - "{accessPointArn#region}", - disableDoubleEncoding: - true, - signingName: - "s3-outposts", - }, - ], - }, - headers: - { - "x-amz-account-id": - [ - "{accessPointArn#accountId}", - ], - "x-amz-outpost-id": - [ - "{outpostId}", - ], - }, - }, - type: "endpoint", - }, - { - conditions: - [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: - "url", - }, - ], - endpoint: - { - url: "{url#scheme}://{url#authority}{url#path}", - properties: - { - authSchemes: - [ - { - name: "sigv4", - signingRegion: - "{accessPointArn#region}", - disableDoubleEncoding: - true, - signingName: - "s3-outposts", - }, - ], - }, - headers: - { - "x-amz-account-id": - [ - "{accessPointArn#accountId}", - ], - "x-amz-outpost-id": - [ - "{outpostId}", - ], - }, - }, - type: "endpoint", - }, - { - conditions: - [], - endpoint: - { - url: "https://s3-outposts.{accessPointArn#region}.{arnPartition#dnsSuffix}", - properties: - { - authSchemes: - [ - { - name: "sigv4", - signingRegion: - "{accessPointArn#region}", - disableDoubleEncoding: - true, - signingName: - "s3-outposts", - }, - ], - }, - headers: - { - "x-amz-account-id": - [ - "{accessPointArn#accountId}", - ], - "x-amz-outpost-id": - [ - "{outpostId}", - ], - }, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: - [], - error: - "Expected an outpost type `accesspoint`, found `{outpostType}`", - type: "error", - }, - ], - }, - ], - }, - { - conditions: - [], - error: - "Invalid ARN: expected an access point name", - type: "error", - }, - ], - }, - ], - }, - { - conditions: - [], - error: - "Invalid ARN: Expected a 4-component resource", - type: "error", - }, - ], - }, - ], - }, - ], - }, - { - conditions: [], - error: - "Invalid ARN: The account id may only contain a-z, A-Z, 0-9 and `-`. Found: `{accessPointArn#accountId}`", - type: "error", - }, - ], - }, - ], - }, - { - conditions: [], - error: - "Invalid ARN: missing account ID", - type: "error", - }, - ], - }, - ], - }, - { - conditions: [], - error: - "Invalid region in ARN: `{accessPointArn#region}` (invalid DNS name)", - type: "error", - }, - ], - }, - ], - }, - { - conditions: [], - error: - "Client was configured for partition `{partitionResult#name}` but ARN has `{arnPartition#name}`", - type: "error", - }, - ], - }, - ], - }, - { - conditions: [], - error: - "Could not load partition for ARN region `{accessPointArn#region}`", - type: "error", - }, - ], - }, - ], - }, - { - conditions: [], - error: "A valid partition could not be determined", - type: "error", - }, - ], - }, - ], - }, - ], - }, - { - conditions: [], - error: - "Invalid ARN: The outpost Id must only contain a-z, A-Z, 0-9 and `-`., found: `{outpostId}`", - type: "error", - }, - ], - }, - ], - }, - { - conditions: [], - error: "Invalid ARN: The Outpost Id was not set", - type: "error", - }, - ], - }, - ], - }, - ], - }, - { - conditions: [], - error: "Invalid ARN: No ARN type specified", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Bucket", - }, - ], - }, - { - fn: "aws.parseArn", - argv: [ - { - ref: "Bucket", - }, - ], - assign: "bucketArn", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "getAttr", - argv: [ - { - ref: "bucketArn", - }, - "resourceId[0]", - ], - assign: "arnType", - }, - { - fn: "not", - argv: [ - { - fn: "stringEquals", - argv: [ - { - ref: "arnType", - }, - "", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "stringEquals", - argv: [ - { - fn: "getAttr", - argv: [ - { - ref: "bucketArn", - }, - "service", - ], - }, - "s3-outposts", - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid configuration: Outpost buckets do not support dual-stack", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "getAttr", - argv: [ - { - ref: "bucketArn", - }, - "resourceId[1]", - ], - assign: "outpostId", - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isValidHostLabel", - argv: [ - { - ref: "outpostId", - }, - false, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "UseArnRegion", - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseArnRegion", - }, - false, - ], - }, - { - fn: "not", - argv: [ - { - fn: "stringEquals", - argv: [ - { - fn: "getAttr", - argv: [ - { - ref: "bucketArn", - }, - "region", - ], - }, - "{Region}", - ], - }, - ], - }, - ], - error: - "Invalid configuration: region from ARN `{bucketArn#region}` does not match client region `{Region}` and UseArnRegion is `false`", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - fn: "getAttr", - argv: [ - { - ref: "bucketArn", - }, - "region", - ], - }, - ], - assign: "arnPartition", - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "partitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "stringEquals", - argv: [ - { - fn: "getAttr", - argv: [ - { - ref: "arnPartition", - }, - "name", - ], - }, - { - fn: "getAttr", - argv: [ - { - ref: "partitionResult", - }, - "name", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isValidHostLabel", - argv: [ - { - fn: "getAttr", - argv: [ - { - ref: "bucketArn", - }, - "region", - ], - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "not", - argv: [ - { - fn: "stringEquals", - argv: [ - { - fn: "getAttr", - argv: [ - { - ref: "bucketArn", - }, - "accountId", - ], - }, - "", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isValidHostLabel", - argv: [ - { - fn: "getAttr", - argv: [ - { - ref: "bucketArn", - }, - "accountId", - ], - }, - false, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "AccountId", - }, - ], - }, - { - fn: "not", - argv: [ - { - fn: "stringEquals", - argv: [ - { - ref: "AccountId", - }, - "{bucketArn#accountId}", - ], - }, - ], - }, - ], - error: - "Invalid ARN: the accountId specified in the ARN (`{bucketArn#accountId}`) does not match the parameter (`{AccountId}`)", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "getAttr", - argv: [ - { - ref: "bucketArn", - }, - "resourceId[2]", - ], - assign: - "outpostType", - }, - ], - type: "tree", - rules: [ - { - conditions: - [], - type: "tree", - rules: [ - { - conditions: - [ - { - fn: "getAttr", - argv: [ - { - ref: "bucketArn", - }, - "resourceId[3]", - ], - assign: - "bucketName", - }, - ], - type: "tree", - rules: - [ - { - conditions: - [], - type: "tree", - rules: - [ - { - conditions: - [ - { - fn: "stringEquals", - argv: [ - { - ref: "outpostType", - }, - "bucket", - ], - }, - ], - type: "tree", - rules: - [ - { - conditions: - [], - type: "tree", - rules: - [ - { - conditions: - [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - endpoint: - { - url: "https://s3-outposts-fips.{bucketArn#region}.{arnPartition#dnsSuffix}", - properties: - { - authSchemes: - [ - { - name: "sigv4", - signingRegion: - "{bucketArn#region}", - disableDoubleEncoding: - true, - signingName: - "s3-outposts", - }, - ], - }, - headers: - { - "x-amz-account-id": - [ - "{bucketArn#accountId}", - ], - "x-amz-outpost-id": - [ - "{outpostId}", - ], - }, - }, - type: "endpoint", - }, - { - conditions: - [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: - "url", - }, - ], - endpoint: - { - url: "{url#scheme}://{url#authority}{url#path}", - properties: - { - authSchemes: - [ - { - name: "sigv4", - signingRegion: - "{bucketArn#region}", - disableDoubleEncoding: - true, - signingName: - "s3-outposts", - }, - ], - }, - headers: - { - "x-amz-account-id": - [ - "{bucketArn#accountId}", - ], - "x-amz-outpost-id": - [ - "{outpostId}", - ], - }, - }, - type: "endpoint", - }, - { - conditions: - [], - endpoint: - { - url: "https://s3-outposts.{bucketArn#region}.{arnPartition#dnsSuffix}", - properties: - { - authSchemes: - [ - { - name: "sigv4", - signingRegion: - "{bucketArn#region}", - disableDoubleEncoding: - true, - signingName: - "s3-outposts", - }, - ], - }, - headers: - { - "x-amz-account-id": - [ - "{bucketArn#accountId}", - ], - "x-amz-outpost-id": - [ - "{outpostId}", - ], - }, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: - [], - error: - "Invalid ARN: Expected an outpost type `bucket`, found `{outpostType}`", - type: "error", - }, - ], - }, - ], - }, - { - conditions: - [], - error: - "Invalid ARN: expected a bucket name", - type: "error", - }, - ], - }, - ], - }, - { - conditions: - [], - error: - "Invalid ARN: Expected a 4-component resource", - type: "error", - }, - ], - }, - ], - }, - ], - }, - { - conditions: [], - error: - "Invalid ARN: The account id may only contain a-z, A-Z, 0-9 and `-`. Found: `{bucketArn#accountId}`", - type: "error", - }, - ], - }, - ], - }, - { - conditions: [], - error: - "Invalid ARN: missing account ID", - type: "error", - }, - ], - }, - ], - }, - { - conditions: [], - error: - "Invalid region in ARN: `{bucketArn#region}` (invalid DNS name)", - type: "error", - }, - ], - }, - ], - }, - { - conditions: [], - error: - "Client was configured for partition `{partitionResult#name}` but ARN has `{arnPartition#name}`", - type: "error", - }, - ], - }, - ], - }, - { - conditions: [], - error: "A valid partition could not be determined", - type: "error", - }, - ], - }, - ], - }, - { - conditions: [], - error: - "Could not load partition for ARN region `{bucketArn#region}`", - type: "error", - }, - ], - }, - ], - }, - ], - }, - { - conditions: [], - error: - "Invalid ARN: The outpost Id must only contain a-z, A-Z, 0-9 and `-`., found: `{outpostId}`", - type: "error", - }, - ], - }, - ], - }, - { - conditions: [], - error: "Invalid ARN: The Outpost Id was not set", - type: "error", - }, - ], - }, - ], - }, - ], - }, - { - conditions: [], - error: "Invalid ARN: No ARN type specified", - type: "error", - }, - ], - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "partitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isValidHostLabel", - argv: [ - { - ref: "Region", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "stringEquals", - argv: [ - { - fn: "getAttr", - argv: [ - { - ref: "partitionResult", - }, - "name", - ], - }, - "aws-cn", - ], - }, - ], - error: "Partition does not support FIPS", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "RequiresAccountId", - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "RequiresAccountId", - }, - true, - ], - }, - { - fn: "not", - argv: [ - { - fn: "isSet", - argv: [ - { - ref: "AccountId", - }, - ], - }, - ], - }, - ], - error: "AccountId is required but not set", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "AccountId", - }, - ], - }, - { - fn: "not", - argv: [ - { - fn: "isValidHostLabel", - argv: [ - { - ref: "AccountId", - }, - false, - ], - }, - ], - }, - ], - error: "AccountId must only contain a-z, A-Z, 0-9 and `-`.", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: - "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "RequiresAccountId", - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "RequiresAccountId", - }, - true, - ], - }, - { - fn: "isSet", - argv: [ - { - ref: "AccountId", - }, - ], - }, - ], - endpoint: { - url: "{url#scheme}://{AccountId}.{url#authority}{url#path}", - properties: { - authSchemes: [ - { - name: "sigv4", - signingRegion: "{Region}", - disableDoubleEncoding: true, - signingName: "s3", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - { - conditions: [], - endpoint: { - url: "{url#scheme}://{url#authority}{url#path}", - properties: { - authSchemes: [ - { - name: "sigv4", - signingRegion: "{Region}", - disableDoubleEncoding: true, - signingName: "s3", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - { - fn: "isSet", - argv: [ - { - ref: "RequiresAccountId", - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "RequiresAccountId", - }, - true, - ], - }, - { - fn: "isSet", - argv: [ - { - ref: "AccountId", - }, - ], - }, - ], - endpoint: { - url: "https://{AccountId}.s3-control-fips.dualstack.{Region}.{partitionResult#dnsSuffix}", - properties: { - authSchemes: [ - { - name: "sigv4", - signingRegion: "{Region}", - disableDoubleEncoding: true, - signingName: "s3", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - endpoint: { - url: "https://s3-control-fips.dualstack.{Region}.{partitionResult#dnsSuffix}", - properties: { - authSchemes: [ - { - name: "sigv4", - signingRegion: "{Region}", - disableDoubleEncoding: true, - signingName: "s3", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - false, - ], - }, - { - fn: "isSet", - argv: [ - { - ref: "RequiresAccountId", - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "RequiresAccountId", - }, - true, - ], - }, - { - fn: "isSet", - argv: [ - { - ref: "AccountId", - }, - ], - }, - ], - endpoint: { - url: "https://{AccountId}.s3-control-fips.{Region}.{partitionResult#dnsSuffix}", - properties: { - authSchemes: [ - { - name: "sigv4", - signingRegion: "{Region}", - disableDoubleEncoding: true, - signingName: "s3", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - false, - ], - }, - ], - endpoint: { - url: "https://s3-control-fips.{Region}.{partitionResult#dnsSuffix}", - properties: { - authSchemes: [ - { - name: "sigv4", - signingRegion: "{Region}", - disableDoubleEncoding: true, - signingName: "s3", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - false, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - { - fn: "isSet", - argv: [ - { - ref: "RequiresAccountId", - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "RequiresAccountId", - }, - true, - ], - }, - { - fn: "isSet", - argv: [ - { - ref: "AccountId", - }, - ], - }, - ], - endpoint: { - url: "https://{AccountId}.s3-control.dualstack.{Region}.{partitionResult#dnsSuffix}", - properties: { - authSchemes: [ - { - name: "sigv4", - signingRegion: "{Region}", - disableDoubleEncoding: true, - signingName: "s3", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - false, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - endpoint: { - url: "https://s3-control.dualstack.{Region}.{partitionResult#dnsSuffix}", - properties: { - authSchemes: [ - { - name: "sigv4", - signingRegion: "{Region}", - disableDoubleEncoding: true, - signingName: "s3", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - false, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - false, - ], - }, - { - fn: "isSet", - argv: [ - { - ref: "RequiresAccountId", - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "RequiresAccountId", - }, - true, - ], - }, - { - fn: "isSet", - argv: [ - { - ref: "AccountId", - }, - ], - }, - ], - endpoint: { - url: "https://{AccountId}.s3-control.{Region}.{partitionResult#dnsSuffix}", - properties: { - authSchemes: [ - { - name: "sigv4", - signingRegion: "{Region}", - disableDoubleEncoding: true, - signingName: "s3", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - false, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - false, - ], - }, - ], - endpoint: { - url: "https://s3-control.{Region}.{partitionResult#dnsSuffix}", - properties: { - authSchemes: [ - { - name: "sigv4", - signingRegion: "{Region}", - disableDoubleEncoding: true, - signingName: "s3", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - ], - }, - ], - }, - ], - }, - ], - }, - { - conditions: [], - error: "Invalid region: region was not a valid DNS name.", - type: "error", - }, - ], - }, - ], - }, - { - conditions: [], - error: "A valid partition could not be determined", - type: "error", - }, - ], - }, - ], - }, - ], - }, - { - conditions: [], - error: "Region must be set", - type: "error", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/s3-control.json */ + +const aA="type", +aB="conditions", +aC="fn", +aD="argv", +aE="ref", +aF="assign", +aG="authSchemes", +aH="name", +aI="signingRegion", +aJ="disableDoubleEncoding", +aK="signingName", +aL="x-amz-account-id", +aM="x-amz-outpost-id"; +const a=false, +b=true, +c="String", +d="Boolean", +e="tree", +f="isSet", +g="aws.partition", +h="stringEquals", +i="getAttr", +j="error", +k="not", +l="isValidHostLabel", +m="{url#scheme}://{url#authority}{url#path}", +n="{Region}", +o="s3-outposts", +p="endpoint", +q="aws.parseArn", +r="accessPointArn", +s="resourceId[0]", +t="arnType", +u="service", +v="resourceId[1]", +w="outpostId", +x="arnPartition", +y="{accessPointArn#accountId}", +z="resourceId[2]", +A="outpostType", +B="resourceId[3]", +C="bucketArn", +D="{bucketArn#accountId}", +E={[aE]:"OutpostId"}, +F={[aB]:[{[aC]:"booleanEquals",[aD]:[{[aE]:"UseFIPS"},true]},{[aC]:h,[aD]:[{[aC]:i,[aD]:[{[aE]:"partitionResult"},"name"]},"aws-cn"]}],[j]:"Partition does not support FIPS",[aA]:j}, +G={[aC]:"booleanEquals",[aD]:[{[aE]:"UseFIPS"},true]}, +H={[aB]:[{[aC]:f,[aD]:[{[aE]:"RequiresAccountId"}]},{[aC]:"booleanEquals",[aD]:[{[aE]:"RequiresAccountId"},true]},{[aC]:k,[aD]:[{[aC]:f,[aD]:[{[aE]:"AccountId"}]}]}],[j]:"AccountId is required but not set",[aA]:j}, +I={[aC]:f,[aD]:[{[aE]:"RequiresAccountId"}]}, +J={[aC]:"booleanEquals",[aD]:[{[aE]:"RequiresAccountId"},true]}, +K={[aC]:f,[aD]:[{[aE]:"AccountId"}]}, +L={[aE]:"AccountId"}, +M={[aB]:[K,{[aC]:k,[aD]:[{[aC]:l,[aD]:[L,false]}]}],[j]:"AccountId must only contain a-z, A-Z, 0-9 and `-`.",[aA]:j}, +N={[aC]:"booleanEquals",[aD]:[{[aE]:"UseDualStack"},true]}, +O={[aG]:[{[aH]:"sigv4",[aI]:n,[aJ]:true,[aK]:o}]}, +P={}, +Q={[aB]:[],[j]:"Invalid region: region was not a valid DNS name.",[aA]:j}, +R={[aB]:[],[j]:"A valid partition could not be determined",[aA]:j}, +S={[aE]:r}, +T={[aC]:k,[aD]:[{[aC]:h,[aD]:[{[aE]:t},""]}]}, +U={[aC]:f,[aD]:[{[aE]:"UseArnRegion"}]}, +V={[aC]:"booleanEquals",[aD]:[{[aE]:"UseArnRegion"},false]}, +W={[aC]:i,[aD]:[S,"region"]}, +X={[aC]:i,[aD]:[S,"accountId"]}, +Y={[aE]:A}, +Z={[aG]:[{[aH]:"sigv4",[aI]:"{accessPointArn#region}",[aJ]:true,[aK]:o}]}, +aa={[aL]:[y],[aM]:["{outpostId}"]}, +ab={[aB]:[],[j]:"Invalid ARN: Expected a 4-component resource",[aA]:j}, +ac={[aB]:[],[j]:"Invalid ARN: missing account ID",[aA]:j}, +ad={[aB]:[],[j]:"Client was configured for partition `{partitionResult#name}` but ARN has `{arnPartition#name}`",[aA]:j}, +ae={[aB]:[],[j]:"Invalid ARN: The outpost Id must only contain a-z, A-Z, 0-9 and `-`., found: `{outpostId}`",[aA]:j}, +af={[aB]:[],[j]:"Invalid ARN: The Outpost Id was not set",[aA]:j}, +ag={[aB]:[],[j]:"Invalid ARN: No ARN type specified",[aA]:j}, +ah={[aE]:C}, +ai={[aC]:i,[aD]:[ah,"region"]}, +aj={[aC]:i,[aD]:[ah,"accountId"]}, +ak={[aG]:[{[aH]:"sigv4",[aI]:"{bucketArn#region}",[aJ]:true,[aK]:o}]}, +al={[aL]:[D],[aM]:["{outpostId}"]}, +am={[aG]:[{[aH]:"sigv4",[aI]:n,[aJ]:true,[aK]:"s3"}]}, +an={[aC]:"booleanEquals",[aD]:[{[aE]:"UseDualStack"},false]}, +ao={[aC]:"booleanEquals",[aD]:[{[aE]:"UseFIPS"},false]}, +ap=[], +aq=[{[aE]:"Region"}], +ar=[{[aC]:g,[aD]:aq,[aF]:"partitionResult"}], +as=[{[aC]:l,[aD]:[{[aE]:"Region"},true]}], +at=[N], +au=[{[aC]:f,[aD]:[{[aE]:"Endpoint"}]},{[aC]:"parseURL",[aD]:[{[aE]:"Endpoint"}],[aF]:"url"}], +av=[G], +aw=[{[aE]:"AccessPointName"}], +ax=[{[aC]:l,[aD]:[{[aE]:w},false]}], +ay=[{[aC]:h,[aD]:[{[aC]:i,[aD]:[{[aE]:x},"name"]},{[aC]:i,[aD]:[{[aE]:"partitionResult"},"name"]}]}], +az=[{[aE]:"Bucket"}]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",[aA]:c},UseFIPS:{builtIn:"AWS::UseFIPS",required:b,default:a,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",[aA]:d},UseDualStack:{builtIn:"AWS::UseDualStack",required:b,default:a,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",[aA]:d},Endpoint:{builtIn:"SDK::Endpoint",required:a,documentation:"Override the endpoint used to send this request",[aA]:c},AccountId:{required:a,documentation:"The Account ID used to send the request. This is an optional parameter that will be set automatically for operations that require it.",[aA]:c},RequiresAccountId:{required:a,documentation:"Internal parameter for operations that require account id host prefix.",[aA]:d},OutpostId:{required:a,documentation:"The Outpost ID. Some operations have an optional OutpostId which should be used in endpoint construction.",[aA]:c},Bucket:{required:a,documentation:"The S3 bucket used to send the request. This is an optional parameter that will be set automatically for operations that are scoped to an S3 bucket.",[aA]:c},AccessPointName:{required:a,documentation:"The S3 AccessPointName used to send the request. This is an optional parameter that will be set automatically for operations that are scoped to an S3 AccessPoint.",[aA]:c},UseArnRegion:{builtIn:"AWS::S3Control::UseArnRegion",required:a,documentation:"When an Access Point ARN is provided and this flag is enabled, the SDK MUST use the ARN's region when constructing the endpoint instead of the client's configured region.",[aA]:d}},rules:[{[aB]:ap,[aA]:e,rules:[{[aB]:[{[aC]:f,[aD]:aq}],[aA]:e,rules:[{[aB]:ap,[aA]:e,rules:[{[aB]:[{[aC]:f,[aD]:[E]}],[aA]:e,rules:[{[aB]:ar,[aA]:e,rules:[{[aB]:ap,[aA]:e,rules:[F,{[aB]:ap,[aA]:e,rules:[H,{[aB]:ap,[aA]:e,rules:[M,{[aB]:ap,[aA]:e,rules:[{[aB]:[{[aC]:k,[aD]:[{[aC]:l,[aD]:[E,a]}]}],error:"OutpostId must only contain a-z, A-Z, 0-9 and `-`.",[aA]:j},{[aB]:ap,[aA]:e,rules:[{[aB]:as,[aA]:e,rules:[{[aB]:ap,[aA]:e,rules:[{[aB]:at,error:"Invalid configuration: Outposts do not support dual-stack",[aA]:j},{[aB]:ap,[aA]:e,rules:[{[aB]:au,endpoint:{url:m,properties:O,headers:P},[aA]:p},{[aB]:av,endpoint:{url:"https://s3-outposts-fips.{Region}.{partitionResult#dnsSuffix}",properties:O,headers:P},[aA]:p},{[aB]:ap,endpoint:{url:"https://s3-outposts.{Region}.{partitionResult#dnsSuffix}",properties:O,headers:P},[aA]:p}]}]}]},Q]}]}]}]}]}]},R]},{[aB]:[{[aC]:f,[aD]:aw},{[aC]:q,[aD]:aw,[aF]:r}],[aA]:e,rules:[{[aB]:[{[aC]:i,[aD]:[S,s],[aF]:t},T],[aA]:e,rules:[{[aB]:[{[aC]:h,[aD]:[{[aC]:i,[aD]:[S,u]},o]}],[aA]:e,rules:[{[aB]:at,error:"Invalid configuration: Outpost Access Points do not support dual-stack",[aA]:j},{[aB]:ap,[aA]:e,rules:[{[aB]:[{[aC]:i,[aD]:[S,v],[aF]:w}],[aA]:e,rules:[{[aB]:ap,[aA]:e,rules:[{[aB]:ax,[aA]:e,rules:[{[aB]:ap,[aA]:e,rules:[{[aB]:[U,V,{[aC]:k,[aD]:[{[aC]:h,[aD]:[W,n]}]}],error:"Invalid configuration: region from ARN `{accessPointArn#region}` does not match client region `{Region}` and UseArnRegion is `false`",[aA]:j},{[aB]:ap,[aA]:e,rules:[{[aB]:ar,[aA]:e,rules:[{[aB]:ap,[aA]:e,rules:[{[aB]:[{[aC]:g,[aD]:[W],[aF]:x}],[aA]:e,rules:[{[aB]:ap,[aA]:e,rules:[{[aB]:ay,[aA]:e,rules:[{[aB]:ap,[aA]:e,rules:[{[aB]:[{[aC]:l,[aD]:[W,b]}],[aA]:e,rules:[{[aB]:ap,[aA]:e,rules:[{[aB]:[{[aC]:k,[aD]:[{[aC]:h,[aD]:[X,""]}]}],[aA]:e,rules:[{[aB]:ap,[aA]:e,rules:[{[aB]:[{[aC]:l,[aD]:[X,a]}],[aA]:e,rules:[{[aB]:ap,[aA]:e,rules:[{[aB]:[K,{[aC]:k,[aD]:[{[aC]:h,[aD]:[L,y]}]}],error:"Invalid ARN: the accountId specified in the ARN (`{accessPointArn#accountId}`) does not match the parameter (`{AccountId}`)",[aA]:j},{[aB]:ap,[aA]:e,rules:[{[aB]:[{[aC]:i,[aD]:[S,z],[aF]:A}],[aA]:e,rules:[{[aB]:ap,[aA]:e,rules:[{[aB]:[{[aC]:i,[aD]:[S,B],[aF]:"accessPointName"}],[aA]:e,rules:[{[aB]:ap,[aA]:e,rules:[{[aB]:[{[aC]:h,[aD]:[Y,"accesspoint"]}],[aA]:e,rules:[{[aB]:ap,[aA]:e,rules:[{[aB]:av,endpoint:{url:"https://s3-outposts-fips.{accessPointArn#region}.{arnPartition#dnsSuffix}",properties:Z,headers:aa},[aA]:p},{[aB]:au,endpoint:{url:m,properties:Z,headers:aa},[aA]:p},{[aB]:ap,endpoint:{url:"https://s3-outposts.{accessPointArn#region}.{arnPartition#dnsSuffix}",properties:Z,headers:aa},[aA]:p}]}]},{[aB]:ap,error:"Expected an outpost type `accesspoint`, found `{outpostType}`",[aA]:j}]}]},{[aB]:ap,error:"Invalid ARN: expected an access point name",[aA]:j}]}]},ab]}]}]},{[aB]:ap,error:"Invalid ARN: The account id may only contain a-z, A-Z, 0-9 and `-`. Found: `{accessPointArn#accountId}`",[aA]:j}]}]},ac]}]},{[aB]:ap,error:"Invalid region in ARN: `{accessPointArn#region}` (invalid DNS name)",[aA]:j}]}]},ad]}]},{[aB]:ap,error:"Could not load partition for ARN region `{accessPointArn#region}`",[aA]:j}]}]},R]}]}]},ae]}]},af]}]}]},ag]},{[aB]:[{[aC]:f,[aD]:az},{[aC]:q,[aD]:az,[aF]:C}],[aA]:e,rules:[{[aB]:[{[aC]:i,[aD]:[ah,s],[aF]:t},T],[aA]:e,rules:[{[aB]:[{[aC]:h,[aD]:[{[aC]:i,[aD]:[ah,u]},o]}],[aA]:e,rules:[{[aB]:at,error:"Invalid configuration: Outpost buckets do not support dual-stack",[aA]:j},{[aB]:ap,[aA]:e,rules:[{[aB]:[{[aC]:i,[aD]:[ah,v],[aF]:w}],[aA]:e,rules:[{[aB]:ap,[aA]:e,rules:[{[aB]:ax,[aA]:e,rules:[{[aB]:ap,[aA]:e,rules:[{[aB]:[U,V,{[aC]:k,[aD]:[{[aC]:h,[aD]:[ai,n]}]}],error:"Invalid configuration: region from ARN `{bucketArn#region}` does not match client region `{Region}` and UseArnRegion is `false`",[aA]:j},{[aB]:ap,[aA]:e,rules:[{[aB]:[{[aC]:g,[aD]:[ai],[aF]:x}],[aA]:e,rules:[{[aB]:ap,[aA]:e,rules:[{[aB]:ar,[aA]:e,rules:[{[aB]:ap,[aA]:e,rules:[{[aB]:ay,[aA]:e,rules:[{[aB]:ap,[aA]:e,rules:[{[aB]:[{[aC]:l,[aD]:[ai,b]}],[aA]:e,rules:[{[aB]:ap,[aA]:e,rules:[{[aB]:[{[aC]:k,[aD]:[{[aC]:h,[aD]:[aj,""]}]}],[aA]:e,rules:[{[aB]:ap,[aA]:e,rules:[{[aB]:[{[aC]:l,[aD]:[aj,a]}],[aA]:e,rules:[{[aB]:ap,[aA]:e,rules:[{[aB]:[K,{[aC]:k,[aD]:[{[aC]:h,[aD]:[L,D]}]}],error:"Invalid ARN: the accountId specified in the ARN (`{bucketArn#accountId}`) does not match the parameter (`{AccountId}`)",[aA]:j},{[aB]:ap,[aA]:e,rules:[{[aB]:[{[aC]:i,[aD]:[ah,z],[aF]:A}],[aA]:e,rules:[{[aB]:ap,[aA]:e,rules:[{[aB]:[{[aC]:i,[aD]:[ah,B],[aF]:"bucketName"}],[aA]:e,rules:[{[aB]:ap,[aA]:e,rules:[{[aB]:[{[aC]:h,[aD]:[Y,"bucket"]}],[aA]:e,rules:[{[aB]:ap,[aA]:e,rules:[{[aB]:av,endpoint:{url:"https://s3-outposts-fips.{bucketArn#region}.{arnPartition#dnsSuffix}",properties:ak,headers:al},[aA]:p},{[aB]:au,endpoint:{url:m,properties:ak,headers:al},[aA]:p},{[aB]:ap,endpoint:{url:"https://s3-outposts.{bucketArn#region}.{arnPartition#dnsSuffix}",properties:ak,headers:al},[aA]:p}]}]},{[aB]:ap,error:"Invalid ARN: Expected an outpost type `bucket`, found `{outpostType}`",[aA]:j}]}]},{[aB]:ap,error:"Invalid ARN: expected a bucket name",[aA]:j}]}]},ab]}]}]},{[aB]:ap,error:"Invalid ARN: The account id may only contain a-z, A-Z, 0-9 and `-`. Found: `{bucketArn#accountId}`",[aA]:j}]}]},ac]}]},{[aB]:ap,error:"Invalid region in ARN: `{bucketArn#region}` (invalid DNS name)",[aA]:j}]}]},ad]}]},R]}]},{[aB]:ap,error:"Could not load partition for ARN region `{bucketArn#region}`",[aA]:j}]}]}]},ae]}]},af]}]}]},ag]},{[aB]:ap,[aA]:e,rules:[{[aB]:ar,[aA]:e,rules:[{[aB]:ap,[aA]:e,rules:[{[aB]:as,[aA]:e,rules:[{[aB]:ap,[aA]:e,rules:[F,{[aB]:ap,[aA]:e,rules:[H,{[aB]:ap,[aA]:e,rules:[M,{[aB]:ap,[aA]:e,rules:[{[aB]:au,[aA]:e,rules:[{[aB]:at,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",[aA]:j},{[aB]:ap,[aA]:e,rules:[{[aB]:[I,J,K],endpoint:{url:"{url#scheme}://{AccountId}.{url#authority}{url#path}",properties:am,headers:P},[aA]:p},{[aB]:ap,endpoint:{url:m,properties:am,headers:P},[aA]:p}]}]},{[aB]:ap,[aA]:e,rules:[{[aB]:[G,N,I,J,K],endpoint:{url:"https://{AccountId}.s3-control-fips.dualstack.{Region}.{partitionResult#dnsSuffix}",properties:am,headers:P},[aA]:p},{[aB]:[G,N],endpoint:{url:"https://s3-control-fips.dualstack.{Region}.{partitionResult#dnsSuffix}",properties:am,headers:P},[aA]:p},{[aB]:[G,an,I,J,K],endpoint:{url:"https://{AccountId}.s3-control-fips.{Region}.{partitionResult#dnsSuffix}",properties:am,headers:P},[aA]:p},{[aB]:[G,an],endpoint:{url:"https://s3-control-fips.{Region}.{partitionResult#dnsSuffix}",properties:am,headers:P},[aA]:p},{[aB]:[ao,N,I,J,K],endpoint:{url:"https://{AccountId}.s3-control.dualstack.{Region}.{partitionResult#dnsSuffix}",properties:am,headers:P},[aA]:p},{[aB]:[ao,N],endpoint:{url:"https://s3-control.dualstack.{Region}.{partitionResult#dnsSuffix}",properties:am,headers:P},[aA]:p},{[aB]:[ao,an,I,J,K],endpoint:{url:"https://{AccountId}.s3-control.{Region}.{partitionResult#dnsSuffix}",properties:am,headers:P},[aA]:p},{[aB]:[ao,an],endpoint:{url:"https://s3-control.{Region}.{partitionResult#dnsSuffix}",properties:am,headers:P},[aA]:p}]}]}]}]}]}]},Q]}]},R]}]}]},{[aB]:ap,error:"Region must be set",[aA]:j}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-s3/src/endpoint/ruleset.ts b/clients/client-s3/src/endpoint/ruleset.ts index b6a0ad3b3fd39..8b3213cc1b757 100644 --- a/clients/client-s3/src/endpoint/ruleset.ts +++ b/clients/client-s3/src/endpoint/ruleset.ts @@ -1,10491 +1,175 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Bucket: { - required: false, - documentation: - "The S3 bucket used to send the request. This is an optional parameter that will be set automatically for operations that are scoped to an S3 bucket.", - type: "String", - }, - Region: { - builtIn: "AWS::Region", - required: false, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - ForcePathStyle: { - builtIn: "AWS::S3::ForcePathStyle", - required: false, - documentation: "When true, force a path-style endpoint to be used where the bucket name is part of the path.", - type: "Boolean", - }, - Accelerate: { - builtIn: "AWS::S3::Accelerate", - required: true, - default: false, - documentation: "When true, use S3 Accelerate. NOTE: Not all regions support S3 accelerate.", - type: "Boolean", - }, - UseGlobalEndpoint: { - builtIn: "AWS::S3::UseGlobalEndpoint", - required: true, - default: false, - documentation: "Whether the global endpoint should be used, rather then the regional endpoint for us-east-1.", - type: "Boolean", - }, - UseObjectLambdaEndpoint: { - required: false, - documentation: "Internal parameter to use object lambda endpoint for an operation (eg: WriteGetObjectResponse)", - type: "Boolean", - }, - DisableAccessPoints: { - required: false, - documentation: "Internal parameter to disable Access Point Buckets", - type: "Boolean", - }, - DisableMultiRegionAccessPoints: { - builtIn: "AWS::S3::DisableMultiRegionAccessPoints", - required: true, - default: false, - documentation: "Whether multi-region access points (MRAP) should be disabled.", - type: "Boolean", - }, - UseArnRegion: { - builtIn: "AWS::S3::UseArnRegion", - required: false, - documentation: - "When an Access Point ARN is provided and this flag is enabled, the SDK MUST use the ARN's region when constructing the endpoint instead of the client's configured region.", - type: "Boolean", - }, - }, - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Region", - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Bucket", - }, - ], - }, - { - fn: "substring", - argv: [ - { - ref: "Bucket", - }, - 49, - 50, - true, - ], - assign: "hardwareType", - }, - { - fn: "substring", - argv: [ - { - ref: "Bucket", - }, - 8, - 12, - true, - ], - assign: "regionPrefix", - }, - { - fn: "substring", - argv: [ - { - ref: "Bucket", - }, - 0, - 7, - true, - ], - assign: "abbaSuffix", - }, - { - fn: "substring", - argv: [ - { - ref: "Bucket", - }, - 32, - 49, - true, - ], - assign: "outpostId", - }, - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "regionPartition", - }, - { - fn: "stringEquals", - argv: [ - { - ref: "abbaSuffix", - }, - "--op-s3", - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isValidHostLabel", - argv: [ - { - ref: "outpostId", - }, - false, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "stringEquals", - argv: [ - { - ref: "hardwareType", - }, - "e", - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "stringEquals", - argv: [ - { - ref: "regionPrefix", - }, - "beta", - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "not", - argv: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - ], - }, - ], - error: "Expected a endpoint to be specified but no endpoint was found", - type: "error", - }, - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - endpoint: { - url: "https://{Bucket}.ec2.{url#authority}", - properties: { - authSchemes: [ - { - name: "sigv4", - signingName: "s3-outposts", - disableDoubleEncoding: true, - signingRegion: "{Region}", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://{Bucket}.ec2.s3-outposts.{Region}.{regionPartition#dnsSuffix}", - properties: { - authSchemes: [ - { - name: "sigv4", - signingName: "s3-outposts", - disableDoubleEncoding: true, - signingRegion: "{Region}", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [ - { - fn: "stringEquals", - argv: [ - { - ref: "hardwareType", - }, - "o", - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "stringEquals", - argv: [ - { - ref: "regionPrefix", - }, - "beta", - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "not", - argv: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - ], - }, - ], - error: "Expected a endpoint to be specified but no endpoint was found", - type: "error", - }, - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - endpoint: { - url: "https://{Bucket}.op-{outpostId}.{url#authority}", - properties: { - authSchemes: [ - { - name: "sigv4", - signingName: "s3-outposts", - disableDoubleEncoding: true, - signingRegion: "{Region}", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://{Bucket}.op-{outpostId}.s3-outposts.{Region}.{regionPartition#dnsSuffix}", - properties: { - authSchemes: [ - { - name: "sigv4", - signingName: "s3-outposts", - disableDoubleEncoding: true, - signingRegion: "{Region}", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: `Unrecognized hardware type: "Expected hardware type o or e but got {hardwareType}"`, - type: "error", - }, - ], - }, - ], - }, - { - conditions: [], - error: "Invalid ARN: The outpost Id must only contain a-z, A-Z, 0-9 and `-`.", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Bucket", - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "not", - argv: [ - { - fn: "isSet", - argv: [ - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - ], - }, - ], - }, - ], - error: "Custom endpoint `{Endpoint}` was not a valid URI", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "ForcePathStyle", - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "ForcePathStyle", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "aws.parseArn", - argv: [ - { - ref: "Bucket", - }, - ], - }, - ], - error: "Path-style addressing cannot be used with ARN buckets", - type: "error", - }, - { - conditions: [ - { - fn: "uriEncode", - argv: [ - { - ref: "Bucket", - }, - ], - assign: "uri_encoded_bucket", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - ], - error: "Cannot set dual-stack in combination with a custom endpoint.", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "partitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "Accelerate", - }, - false, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - false, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - { - fn: "not", - argv: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - ], - }, - { - fn: "stringEquals", - argv: [ - { - ref: "Region", - }, - "aws-global", - ], - }, - ], - endpoint: { - url: "https://s3.dualstack.us-east-1.{partitionResult#dnsSuffix}/{uri_encoded_bucket}", - properties: { - authSchemes: [ - { - name: "sigv4", - signingName: "s3", - disableDoubleEncoding: true, - signingRegion: "us-east-1", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - { - fn: "not", - argv: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - ], - }, - { - fn: "stringEquals", - argv: [ - { - ref: "Region", - }, - "aws-global", - ], - }, - ], - endpoint: { - url: "https://s3.dualstack.us-east-1.{partitionResult#dnsSuffix}/{uri_encoded_bucket}", - properties: { - authSchemes: [ - { - name: "sigv4", - signingName: "s3", - disableDoubleEncoding: true, - signingRegion: "us-east-1", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - { - fn: "not", - argv: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - ], - }, - { - fn: "not", - argv: [ - { - fn: "stringEquals", - argv: [ - { - ref: "Region", - }, - "aws-global", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseGlobalEndpoint", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://s3.dualstack.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}", - properties: { - authSchemes: [ - { - name: "sigv4", - signingName: "s3", - disableDoubleEncoding: true, - signingRegion: "{Region}", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - { - fn: "not", - argv: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - ], - }, - { - fn: "not", - argv: [ - { - fn: "stringEquals", - argv: [ - { - ref: "Region", - }, - "aws-global", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseGlobalEndpoint", - }, - false, - ], - }, - ], - endpoint: { - url: "https://s3.dualstack.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}", - properties: { - authSchemes: [ - { - name: "sigv4", - signingName: "s3", - disableDoubleEncoding: true, - signingRegion: "{Region}", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - false, - ], - }, - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - { - fn: "stringEquals", - argv: [ - { - ref: "Region", - }, - "aws-global", - ], - }, - ], - endpoint: { - url: "{url#scheme}://{url#authority}{url#normalizedPath}{uri_encoded_bucket}", - properties: { - authSchemes: [ - { - name: "sigv4", - signingName: "s3", - disableDoubleEncoding: true, - signingRegion: "us-east-1", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - false, - ], - }, - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - { - fn: "stringEquals", - argv: [ - { - ref: "Region", - }, - "aws-global", - ], - }, - ], - endpoint: { - url: "{url#scheme}://{url#authority}{url#normalizedPath}{uri_encoded_bucket}", - properties: { - authSchemes: [ - { - name: "sigv4", - signingName: "s3", - disableDoubleEncoding: true, - signingRegion: "us-east-1", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - false, - ], - }, - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - { - fn: "not", - argv: [ - { - fn: "stringEquals", - argv: [ - { - ref: "Region", - }, - "aws-global", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseGlobalEndpoint", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "stringEquals", - argv: [ - { - ref: "Region", - }, - "us-east-1", - ], - }, - ], - endpoint: { - url: "{url#scheme}://{url#authority}{url#normalizedPath}{uri_encoded_bucket}", - properties: { - authSchemes: [ - { - name: "sigv4", - signingName: "s3", - disableDoubleEncoding: true, - signingRegion: "{Region}", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - { - conditions: [], - endpoint: { - url: "{url#scheme}://{url#authority}{url#normalizedPath}{uri_encoded_bucket}", - properties: { - authSchemes: [ - { - name: "sigv4", - signingName: "s3", - disableDoubleEncoding: true, - signingRegion: "{Region}", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - false, - ], - }, - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - { - fn: "not", - argv: [ - { - fn: "stringEquals", - argv: [ - { - ref: "Region", - }, - "aws-global", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseGlobalEndpoint", - }, - false, - ], - }, - ], - endpoint: { - url: "{url#scheme}://{url#authority}{url#normalizedPath}{uri_encoded_bucket}", - properties: { - authSchemes: [ - { - name: "sigv4", - signingName: "s3", - disableDoubleEncoding: true, - signingRegion: "{Region}", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - false, - ], - }, - { - fn: "not", - argv: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - ], - }, - { - fn: "stringEquals", - argv: [ - { - ref: "Region", - }, - "aws-global", - ], - }, - ], - endpoint: { - url: "https://s3.{partitionResult#dnsSuffix}/{uri_encoded_bucket}", - properties: { - authSchemes: [ - { - name: "sigv4", - signingName: "s3", - disableDoubleEncoding: true, - signingRegion: "us-east-1", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - false, - ], - }, - { - fn: "not", - argv: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - ], - }, - { - fn: "stringEquals", - argv: [ - { - ref: "Region", - }, - "aws-global", - ], - }, - ], - endpoint: { - url: "https://s3.{partitionResult#dnsSuffix}/{uri_encoded_bucket}", - properties: { - authSchemes: [ - { - name: "sigv4", - signingName: "s3", - disableDoubleEncoding: true, - signingRegion: "us-east-1", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - false, - ], - }, - { - fn: "not", - argv: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - ], - }, - { - fn: "not", - argv: [ - { - fn: "stringEquals", - argv: [ - { - ref: "Region", - }, - "aws-global", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseGlobalEndpoint", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "stringEquals", - argv: [ - { - ref: "Region", - }, - "us-east-1", - ], - }, - ], - endpoint: { - url: "https://s3.{partitionResult#dnsSuffix}/{uri_encoded_bucket}", - properties: { - authSchemes: [ - { - name: "sigv4", - signingName: "s3", - disableDoubleEncoding: true, - signingRegion: "{Region}", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - { - conditions: [], - endpoint: { - url: "https://s3.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}", - properties: { - authSchemes: [ - { - name: "sigv4", - signingName: "s3", - disableDoubleEncoding: true, - signingRegion: "{Region}", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - false, - ], - }, - { - fn: "not", - argv: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - ], - }, - { - fn: "not", - argv: [ - { - fn: "stringEquals", - argv: [ - { - ref: "Region", - }, - "aws-global", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseGlobalEndpoint", - }, - false, - ], - }, - ], - endpoint: { - url: "https://s3.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}", - properties: { - authSchemes: [ - { - name: "sigv4", - signingName: "s3", - disableDoubleEncoding: true, - signingRegion: "{Region}", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [], - error: "Path-style addressing cannot be used with FIPS", - type: "error", - }, - ], - }, - ], - }, - { - conditions: [], - error: "Path-style addressing cannot be used with S3 Accelerate", - type: "error", - }, - ], - }, - ], - }, - { - conditions: [], - error: "A valid partition could not be determined", - type: "error", - }, - ], - }, - ], - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "aws.isVirtualHostableS3Bucket", - argv: [ - { - ref: "Bucket", - }, - false, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "partitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isValidHostLabel", - argv: [ - { - ref: "Region", - }, - false, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "stringEquals", - argv: [ - { - fn: "getAttr", - argv: [ - { - ref: "partitionResult", - }, - "name", - ], - }, - "aws-cn", - ], - }, - ], - error: "Partition does not support FIPS", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "Accelerate", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Accelerate cannot be used with FIPS", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "Accelerate", - }, - true, - ], - }, - { - fn: "stringEquals", - argv: [ - { - fn: "getAttr", - argv: [ - { - ref: "partitionResult", - }, - "name", - ], - }, - "aws-cn", - ], - }, - ], - error: "S3 Accelerate cannot be used in this region", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: - "Host override cannot be combined with Dualstack, FIPS, or S3 Accelerate", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: - "Host override cannot be combined with Dualstack, FIPS, or S3 Accelerate", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "Accelerate", - }, - true, - ], - }, - ], - error: - "Host override cannot be combined with Dualstack, FIPS, or S3 Accelerate", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "Accelerate", - }, - false, - ], - }, - { - fn: "not", - argv: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - ], - }, - { - fn: "stringEquals", - argv: [ - { - ref: "Region", - }, - "aws-global", - ], - }, - ], - endpoint: { - url: "https://{Bucket}.s3-fips.dualstack.us-east-1.{partitionResult#dnsSuffix}", - properties: { - authSchemes: [ - { - name: "sigv4", - signingName: "s3", - disableDoubleEncoding: true, - signingRegion: "us-east-1", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "Accelerate", - }, - false, - ], - }, - { - fn: "not", - argv: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - ], - }, - { - fn: "stringEquals", - argv: [ - { - ref: "Region", - }, - "aws-global", - ], - }, - ], - endpoint: { - url: "https://{Bucket}.s3-fips.dualstack.us-east-1.{partitionResult#dnsSuffix}", - properties: { - authSchemes: [ - { - name: "sigv4", - signingName: "s3", - disableDoubleEncoding: true, - signingRegion: "us-east-1", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "Accelerate", - }, - false, - ], - }, - { - fn: "not", - argv: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - ], - }, - { - fn: "not", - argv: [ - { - fn: "stringEquals", - argv: [ - { - ref: "Region", - }, - "aws-global", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseGlobalEndpoint", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://{Bucket}.s3-fips.dualstack.{Region}.{partitionResult#dnsSuffix}", - properties: { - authSchemes: [ - { - name: "sigv4", - signingName: "s3", - disableDoubleEncoding: true, - signingRegion: "{Region}", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "Accelerate", - }, - false, - ], - }, - { - fn: "not", - argv: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - ], - }, - { - fn: "not", - argv: [ - { - fn: "stringEquals", - argv: [ - { - ref: "Region", - }, - "aws-global", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseGlobalEndpoint", - }, - false, - ], - }, - ], - endpoint: { - url: "https://{Bucket}.s3-fips.dualstack.{Region}.{partitionResult#dnsSuffix}", - properties: { - authSchemes: [ - { - name: "sigv4", - signingName: "s3", - disableDoubleEncoding: true, - signingRegion: "{Region}", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - false, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "Accelerate", - }, - false, - ], - }, - { - fn: "not", - argv: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - ], - }, - { - fn: "stringEquals", - argv: [ - { - ref: "Region", - }, - "aws-global", - ], - }, - ], - endpoint: { - url: "https://{Bucket}.s3-fips.us-east-1.{partitionResult#dnsSuffix}", - properties: { - authSchemes: [ - { - name: "sigv4", - signingName: "s3", - disableDoubleEncoding: true, - signingRegion: "us-east-1", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - false, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "Accelerate", - }, - false, - ], - }, - { - fn: "not", - argv: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - ], - }, - { - fn: "stringEquals", - argv: [ - { - ref: "Region", - }, - "aws-global", - ], - }, - ], - endpoint: { - url: "https://{Bucket}.s3-fips.us-east-1.{partitionResult#dnsSuffix}", - properties: { - authSchemes: [ - { - name: "sigv4", - signingName: "s3", - disableDoubleEncoding: true, - signingRegion: "us-east-1", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - false, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "Accelerate", - }, - false, - ], - }, - { - fn: "not", - argv: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - ], - }, - { - fn: "not", - argv: [ - { - fn: "stringEquals", - argv: [ - { - ref: "Region", - }, - "aws-global", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseGlobalEndpoint", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://{Bucket}.s3-fips.{Region}.{partitionResult#dnsSuffix}", - properties: { - authSchemes: [ - { - name: "sigv4", - signingName: "s3", - disableDoubleEncoding: true, - signingRegion: "{Region}", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - false, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "Accelerate", - }, - false, - ], - }, - { - fn: "not", - argv: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - ], - }, - { - fn: "not", - argv: [ - { - fn: "stringEquals", - argv: [ - { - ref: "Region", - }, - "aws-global", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseGlobalEndpoint", - }, - false, - ], - }, - ], - endpoint: { - url: "https://{Bucket}.s3-fips.{Region}.{partitionResult#dnsSuffix}", - properties: { - authSchemes: [ - { - name: "sigv4", - signingName: "s3", - disableDoubleEncoding: true, - signingRegion: "{Region}", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - false, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "Accelerate", - }, - true, - ], - }, - { - fn: "not", - argv: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - ], - }, - { - fn: "stringEquals", - argv: [ - { - ref: "Region", - }, - "aws-global", - ], - }, - ], - endpoint: { - url: "https://{Bucket}.s3-accelerate.dualstack.us-east-1.{partitionResult#dnsSuffix}", - properties: { - authSchemes: [ - { - name: "sigv4", - signingName: "s3", - disableDoubleEncoding: true, - signingRegion: "us-east-1", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - false, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "Accelerate", - }, - true, - ], - }, - { - fn: "not", - argv: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - ], - }, - { - fn: "stringEquals", - argv: [ - { - ref: "Region", - }, - "aws-global", - ], - }, - ], - endpoint: { - url: "https://{Bucket}.s3-accelerate.dualstack.us-east-1.{partitionResult#dnsSuffix}", - properties: { - authSchemes: [ - { - name: "sigv4", - signingName: "s3", - disableDoubleEncoding: true, - signingRegion: "us-east-1", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - false, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "Accelerate", - }, - true, - ], - }, - { - fn: "not", - argv: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - ], - }, - { - fn: "not", - argv: [ - { - fn: "stringEquals", - argv: [ - { - ref: "Region", - }, - "aws-global", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseGlobalEndpoint", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://{Bucket}.s3-accelerate.dualstack.{partitionResult#dnsSuffix}", - properties: { - authSchemes: [ - { - name: "sigv4", - signingName: "s3", - disableDoubleEncoding: true, - signingRegion: "{Region}", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - false, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "Accelerate", - }, - true, - ], - }, - { - fn: "not", - argv: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - ], - }, - { - fn: "not", - argv: [ - { - fn: "stringEquals", - argv: [ - { - ref: "Region", - }, - "aws-global", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseGlobalEndpoint", - }, - false, - ], - }, - ], - endpoint: { - url: "https://{Bucket}.s3-accelerate.dualstack.{partitionResult#dnsSuffix}", - properties: { - authSchemes: [ - { - name: "sigv4", - signingName: "s3", - disableDoubleEncoding: true, - signingRegion: "{Region}", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - false, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "Accelerate", - }, - false, - ], - }, - { - fn: "not", - argv: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - ], - }, - { - fn: "stringEquals", - argv: [ - { - ref: "Region", - }, - "aws-global", - ], - }, - ], - endpoint: { - url: "https://{Bucket}.s3.dualstack.us-east-1.{partitionResult#dnsSuffix}", - properties: { - authSchemes: [ - { - name: "sigv4", - signingName: "s3", - disableDoubleEncoding: true, - signingRegion: "us-east-1", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - false, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "Accelerate", - }, - false, - ], - }, - { - fn: "not", - argv: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - ], - }, - { - fn: "stringEquals", - argv: [ - { - ref: "Region", - }, - "aws-global", - ], - }, - ], - endpoint: { - url: "https://{Bucket}.s3.dualstack.us-east-1.{partitionResult#dnsSuffix}", - properties: { - authSchemes: [ - { - name: "sigv4", - signingName: "s3", - disableDoubleEncoding: true, - signingRegion: "us-east-1", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - false, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "Accelerate", - }, - false, - ], - }, - { - fn: "not", - argv: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - ], - }, - { - fn: "not", - argv: [ - { - fn: "stringEquals", - argv: [ - { - ref: "Region", - }, - "aws-global", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseGlobalEndpoint", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://{Bucket}.s3.dualstack.{Region}.{partitionResult#dnsSuffix}", - properties: { - authSchemes: [ - { - name: "sigv4", - signingName: "s3", - disableDoubleEncoding: true, - signingRegion: "{Region}", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - false, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "Accelerate", - }, - false, - ], - }, - { - fn: "not", - argv: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - ], - }, - { - fn: "not", - argv: [ - { - fn: "stringEquals", - argv: [ - { - ref: "Region", - }, - "aws-global", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseGlobalEndpoint", - }, - false, - ], - }, - ], - endpoint: { - url: "https://{Bucket}.s3.dualstack.{Region}.{partitionResult#dnsSuffix}", - properties: { - authSchemes: [ - { - name: "sigv4", - signingName: "s3", - disableDoubleEncoding: true, - signingRegion: "{Region}", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - false, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - false, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "Accelerate", - }, - false, - ], - }, - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - { - fn: "booleanEquals", - argv: [ - { - fn: "getAttr", - argv: [ - { - ref: "url", - }, - "isIp", - ], - }, - true, - ], - }, - { - fn: "stringEquals", - argv: [ - { - ref: "Region", - }, - "aws-global", - ], - }, - ], - endpoint: { - url: "{url#scheme}://{url#authority}{url#normalizedPath}{Bucket}", - properties: { - authSchemes: [ - { - name: "sigv4", - signingName: "s3", - disableDoubleEncoding: true, - signingRegion: "us-east-1", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - false, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - false, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "Accelerate", - }, - false, - ], - }, - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - { - fn: "booleanEquals", - argv: [ - { - fn: "getAttr", - argv: [ - { - ref: "url", - }, - "isIp", - ], - }, - false, - ], - }, - { - fn: "stringEquals", - argv: [ - { - ref: "Region", - }, - "aws-global", - ], - }, - ], - endpoint: { - url: "{url#scheme}://{Bucket}.{url#authority}{url#path}", - properties: { - authSchemes: [ - { - name: "sigv4", - signingName: "s3", - disableDoubleEncoding: true, - signingRegion: "us-east-1", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - false, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - false, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "Accelerate", - }, - false, - ], - }, - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - { - fn: "booleanEquals", - argv: [ - { - fn: "getAttr", - argv: [ - { - ref: "url", - }, - "isIp", - ], - }, - true, - ], - }, - { - fn: "stringEquals", - argv: [ - { - ref: "Region", - }, - "aws-global", - ], - }, - ], - endpoint: { - url: "{url#scheme}://{url#authority}{url#normalizedPath}{Bucket}", - properties: { - authSchemes: [ - { - name: "sigv4", - signingName: "s3", - disableDoubleEncoding: true, - signingRegion: "us-east-1", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - false, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - false, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "Accelerate", - }, - false, - ], - }, - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - { - fn: "booleanEquals", - argv: [ - { - fn: "getAttr", - argv: [ - { - ref: "url", - }, - "isIp", - ], - }, - false, - ], - }, - { - fn: "stringEquals", - argv: [ - { - ref: "Region", - }, - "aws-global", - ], - }, - ], - endpoint: { - url: "{url#scheme}://{Bucket}.{url#authority}{url#path}", - properties: { - authSchemes: [ - { - name: "sigv4", - signingName: "s3", - disableDoubleEncoding: true, - signingRegion: "us-east-1", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - false, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - false, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "Accelerate", - }, - false, - ], - }, - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - { - fn: "booleanEquals", - argv: [ - { - fn: "getAttr", - argv: [ - { - ref: "url", - }, - "isIp", - ], - }, - true, - ], - }, - { - fn: "not", - argv: [ - { - fn: "stringEquals", - argv: [ - { - ref: "Region", - }, - "aws-global", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseGlobalEndpoint", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "stringEquals", - argv: [ - { - ref: "Region", - }, - "us-east-1", - ], - }, - ], - endpoint: { - url: "{url#scheme}://{url#authority}{url#normalizedPath}{Bucket}", - properties: { - authSchemes: [ - { - name: "sigv4", - signingName: "s3", - disableDoubleEncoding: true, - signingRegion: "{Region}", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - { - conditions: [], - endpoint: { - url: "{url#scheme}://{url#authority}{url#normalizedPath}{Bucket}", - properties: { - authSchemes: [ - { - name: "sigv4", - signingName: "s3", - disableDoubleEncoding: true, - signingRegion: "{Region}", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - false, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - false, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "Accelerate", - }, - false, - ], - }, - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - { - fn: "booleanEquals", - argv: [ - { - fn: "getAttr", - argv: [ - { - ref: "url", - }, - "isIp", - ], - }, - false, - ], - }, - { - fn: "not", - argv: [ - { - fn: "stringEquals", - argv: [ - { - ref: "Region", - }, - "aws-global", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseGlobalEndpoint", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "stringEquals", - argv: [ - { - ref: "Region", - }, - "us-east-1", - ], - }, - ], - endpoint: { - url: "{url#scheme}://{Bucket}.{url#authority}{url#path}", - properties: { - authSchemes: [ - { - name: "sigv4", - signingName: "s3", - disableDoubleEncoding: true, - signingRegion: "{Region}", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - { - conditions: [], - endpoint: { - url: "{url#scheme}://{Bucket}.{url#authority}{url#path}", - properties: { - authSchemes: [ - { - name: "sigv4", - signingName: "s3", - disableDoubleEncoding: true, - signingRegion: "{Region}", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - false, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - false, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "Accelerate", - }, - false, - ], - }, - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - { - fn: "booleanEquals", - argv: [ - { - fn: "getAttr", - argv: [ - { - ref: "url", - }, - "isIp", - ], - }, - true, - ], - }, - { - fn: "not", - argv: [ - { - fn: "stringEquals", - argv: [ - { - ref: "Region", - }, - "aws-global", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseGlobalEndpoint", - }, - false, - ], - }, - ], - endpoint: { - url: "{url#scheme}://{url#authority}{url#normalizedPath}{Bucket}", - properties: { - authSchemes: [ - { - name: "sigv4", - signingName: "s3", - disableDoubleEncoding: true, - signingRegion: "{Region}", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - false, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - false, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "Accelerate", - }, - false, - ], - }, - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - { - fn: "booleanEquals", - argv: [ - { - fn: "getAttr", - argv: [ - { - ref: "url", - }, - "isIp", - ], - }, - false, - ], - }, - { - fn: "not", - argv: [ - { - fn: "stringEquals", - argv: [ - { - ref: "Region", - }, - "aws-global", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseGlobalEndpoint", - }, - false, - ], - }, - ], - endpoint: { - url: "{url#scheme}://{Bucket}.{url#authority}{url#path}", - properties: { - authSchemes: [ - { - name: "sigv4", - signingName: "s3", - disableDoubleEncoding: true, - signingRegion: "{Region}", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - false, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - false, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "Accelerate", - }, - true, - ], - }, - { - fn: "not", - argv: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - ], - }, - { - fn: "stringEquals", - argv: [ - { - ref: "Region", - }, - "aws-global", - ], - }, - ], - endpoint: { - url: "https://{Bucket}.s3-accelerate.{partitionResult#dnsSuffix}", - properties: { - authSchemes: [ - { - name: "sigv4", - signingName: "s3", - disableDoubleEncoding: true, - signingRegion: "us-east-1", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - false, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - false, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "Accelerate", - }, - true, - ], - }, - { - fn: "not", - argv: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - ], - }, - { - fn: "stringEquals", - argv: [ - { - ref: "Region", - }, - "aws-global", - ], - }, - ], - endpoint: { - url: "https://{Bucket}.s3-accelerate.{partitionResult#dnsSuffix}", - properties: { - authSchemes: [ - { - name: "sigv4", - signingName: "s3", - disableDoubleEncoding: true, - signingRegion: "us-east-1", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - false, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - false, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "Accelerate", - }, - true, - ], - }, - { - fn: "not", - argv: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - ], - }, - { - fn: "not", - argv: [ - { - fn: "stringEquals", - argv: [ - { - ref: "Region", - }, - "aws-global", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseGlobalEndpoint", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "stringEquals", - argv: [ - { - ref: "Region", - }, - "us-east-1", - ], - }, - ], - endpoint: { - url: "https://{Bucket}.s3-accelerate.{partitionResult#dnsSuffix}", - properties: { - authSchemes: [ - { - name: "sigv4", - signingName: "s3", - disableDoubleEncoding: true, - signingRegion: "{Region}", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - { - conditions: [], - endpoint: { - url: "https://{Bucket}.s3-accelerate.{partitionResult#dnsSuffix}", - properties: { - authSchemes: [ - { - name: "sigv4", - signingName: "s3", - disableDoubleEncoding: true, - signingRegion: "{Region}", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - false, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - false, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "Accelerate", - }, - true, - ], - }, - { - fn: "not", - argv: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - ], - }, - { - fn: "not", - argv: [ - { - fn: "stringEquals", - argv: [ - { - ref: "Region", - }, - "aws-global", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseGlobalEndpoint", - }, - false, - ], - }, - ], - endpoint: { - url: "https://{Bucket}.s3-accelerate.{partitionResult#dnsSuffix}", - properties: { - authSchemes: [ - { - name: "sigv4", - signingName: "s3", - disableDoubleEncoding: true, - signingRegion: "{Region}", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - false, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - false, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "Accelerate", - }, - false, - ], - }, - { - fn: "not", - argv: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - ], - }, - { - fn: "stringEquals", - argv: [ - { - ref: "Region", - }, - "aws-global", - ], - }, - ], - endpoint: { - url: "https://{Bucket}.s3.{partitionResult#dnsSuffix}", - properties: { - authSchemes: [ - { - name: "sigv4", - signingName: "s3", - disableDoubleEncoding: true, - signingRegion: "us-east-1", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - false, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - false, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "Accelerate", - }, - false, - ], - }, - { - fn: "not", - argv: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - ], - }, - { - fn: "stringEquals", - argv: [ - { - ref: "Region", - }, - "aws-global", - ], - }, - ], - endpoint: { - url: "https://{Bucket}.s3.{partitionResult#dnsSuffix}", - properties: { - authSchemes: [ - { - name: "sigv4", - signingName: "s3", - disableDoubleEncoding: true, - signingRegion: "us-east-1", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - false, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - false, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "Accelerate", - }, - false, - ], - }, - { - fn: "not", - argv: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - ], - }, - { - fn: "not", - argv: [ - { - fn: "stringEquals", - argv: [ - { - ref: "Region", - }, - "aws-global", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseGlobalEndpoint", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "stringEquals", - argv: [ - { - ref: "Region", - }, - "us-east-1", - ], - }, - ], - endpoint: { - url: "https://{Bucket}.s3.{partitionResult#dnsSuffix}", - properties: { - authSchemes: [ - { - name: "sigv4", - signingName: "s3", - disableDoubleEncoding: true, - signingRegion: "{Region}", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - { - conditions: [], - endpoint: { - url: "https://{Bucket}.s3.{Region}.{partitionResult#dnsSuffix}", - properties: { - authSchemes: [ - { - name: "sigv4", - signingName: "s3", - disableDoubleEncoding: true, - signingRegion: "{Region}", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - false, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - false, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "Accelerate", - }, - false, - ], - }, - { - fn: "not", - argv: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - ], - }, - { - fn: "not", - argv: [ - { - fn: "stringEquals", - argv: [ - { - ref: "Region", - }, - "aws-global", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseGlobalEndpoint", - }, - false, - ], - }, - ], - endpoint: { - url: "https://{Bucket}.s3.{Region}.{partitionResult#dnsSuffix}", - properties: { - authSchemes: [ - { - name: "sigv4", - signingName: "s3", - disableDoubleEncoding: true, - signingRegion: "{Region}", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - ], - }, - ], - }, - ], - }, - ], - }, - ], - }, - ], - }, - { - conditions: [], - error: "Invalid region: region was not a valid DNS name.", - type: "error", - }, - ], - }, - ], - }, - { - conditions: [], - error: "A valid partition could not be determined", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - { - fn: "stringEquals", - argv: [ - { - fn: "getAttr", - argv: [ - { - ref: "url", - }, - "scheme", - ], - }, - "http", - ], - }, - { - fn: "aws.isVirtualHostableS3Bucket", - argv: [ - { - ref: "Bucket", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - false, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - false, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "Accelerate", - }, - false, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "partitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isValidHostLabel", - argv: [ - { - ref: "Region", - }, - false, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "{url#scheme}://{Bucket}.{url#authority}{url#path}", - properties: { - authSchemes: [ - { - name: "sigv4", - signingName: "s3", - disableDoubleEncoding: true, - signingRegion: "{Region}", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "Invalid region: region was not a valid DNS name.", - type: "error", - }, - ], - }, - ], - }, - { - conditions: [], - error: "A valid partition could not be determined", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "aws.parseArn", - argv: [ - { - ref: "Bucket", - }, - ], - assign: "bucketArn", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "getAttr", - argv: [ - { - ref: "bucketArn", - }, - "resourceId[0]", - ], - assign: "arnType", - }, - { - fn: "not", - argv: [ - { - fn: "stringEquals", - argv: [ - { - ref: "arnType", - }, - "", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "stringEquals", - argv: [ - { - fn: "getAttr", - argv: [ - { - ref: "bucketArn", - }, - "service", - ], - }, - "s3-object-lambda", - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "stringEquals", - argv: [ - { - ref: "arnType", - }, - "accesspoint", - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "getAttr", - argv: [ - { - ref: "bucketArn", - }, - "resourceId[1]", - ], - assign: "accessPointName", - }, - { - fn: "not", - argv: [ - { - fn: "stringEquals", - argv: [ - { - ref: "accessPointName", - }, - "", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "S3 Object Lambda does not support Dual-stack", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "Accelerate", - }, - true, - ], - }, - ], - error: "S3 Object Lambda does not support S3 Accelerate", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "not", - argv: [ - { - fn: "stringEquals", - argv: [ - { - fn: "getAttr", - argv: [ - { - ref: "bucketArn", - }, - "region", - ], - }, - "", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "DisableAccessPoints", - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "DisableAccessPoints", - }, - true, - ], - }, - ], - error: - "Access points are not supported for this operation", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "not", - argv: [ - { - fn: "isSet", - argv: [ - { - fn: "getAttr", - argv: [ - { - ref: "bucketArn", - }, - "resourceId[2]", - ], - }, - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "UseArnRegion", - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseArnRegion", - }, - false, - ], - }, - { - fn: "not", - argv: [ - { - fn: "stringEquals", - argv: [ - { - fn: "getAttr", - argv: [ - { - ref: "bucketArn", - }, - "region", - ], - }, - "{Region}", - ], - }, - ], - }, - ], - error: - "Invalid configuration: region from ARN `{bucketArn#region}` does not match client region `{Region}` and UseArnRegion is `false`", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - fn: "getAttr", - argv: [ - { - ref: "bucketArn", - }, - "region", - ], - }, - ], - assign: "bucketPartition", - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: - "partitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "stringEquals", - argv: [ - { - fn: "getAttr", - argv: [ - { - ref: "bucketPartition", - }, - "name", - ], - }, - { - fn: "getAttr", - argv: [ - { - ref: "partitionResult", - }, - "name", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: - [], - type: "tree", - rules: [ - { - conditions: - [ - { - fn: "isValidHostLabel", - argv: [ - { - fn: "getAttr", - argv: [ - { - ref: "bucketArn", - }, - "region", - ], - }, - true, - ], - }, - ], - type: "tree", - rules: - [ - { - conditions: - [], - type: "tree", - rules: - [ - { - conditions: - [ - { - fn: "stringEquals", - argv: [ - { - fn: "getAttr", - argv: [ - { - ref: "bucketArn", - }, - "accountId", - ], - }, - "", - ], - }, - ], - error: - "Invalid ARN: Missing account id", - type: "error", - }, - { - conditions: - [], - type: "tree", - rules: - [ - { - conditions: - [ - { - fn: "isValidHostLabel", - argv: [ - { - fn: "getAttr", - argv: [ - { - ref: "bucketArn", - }, - "accountId", - ], - }, - false, - ], - }, - ], - type: "tree", - rules: - [ - { - conditions: - [], - type: "tree", - rules: - [ - { - conditions: - [ - { - fn: "isValidHostLabel", - argv: [ - { - ref: "accessPointName", - }, - false, - ], - }, - ], - type: "tree", - rules: - [ - { - conditions: - [], - type: "tree", - rules: - [ - { - conditions: - [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "stringEquals", - argv: [ - { - fn: "getAttr", - argv: [ - { - ref: "bucketPartition", - }, - "name", - ], - }, - "aws-cn", - ], - }, - ], - error: - "Partition does not support FIPS", - type: "error", - }, - { - conditions: - [], - type: "tree", - rules: - [ - { - conditions: - [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: - "url", - }, - ], - endpoint: - { - url: "{url#scheme}://{accessPointName}-{bucketArn#accountId}.{url#authority}{url#path}", - properties: - { - authSchemes: - [ - { - name: "sigv4", - signingName: - "s3-object-lambda", - disableDoubleEncoding: - true, - signingRegion: - "{bucketArn#region}", - }, - ], - }, - headers: - {}, - }, - type: "endpoint", - }, - { - conditions: - [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - endpoint: - { - url: "https://{accessPointName}-{bucketArn#accountId}.s3-object-lambda-fips.{bucketArn#region}.{bucketPartition#dnsSuffix}", - properties: - { - authSchemes: - [ - { - name: "sigv4", - signingName: - "s3-object-lambda", - disableDoubleEncoding: - true, - signingRegion: - "{bucketArn#region}", - }, - ], - }, - headers: - {}, - }, - type: "endpoint", - }, - { - conditions: - [], - endpoint: - { - url: "https://{accessPointName}-{bucketArn#accountId}.s3-object-lambda.{bucketArn#region}.{bucketPartition#dnsSuffix}", - properties: - { - authSchemes: - [ - { - name: "sigv4", - signingName: - "s3-object-lambda", - disableDoubleEncoding: - true, - signingRegion: - "{bucketArn#region}", - }, - ], - }, - headers: - {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - ], - }, - { - conditions: - [], - error: - "Invalid ARN: The access point name may only contain a-z, A-Z, 0-9 and `-`. Found: `{accessPointName}`", - type: "error", - }, - ], - }, - ], - }, - { - conditions: - [], - error: - "Invalid ARN: The account id may only contain a-z, A-Z, 0-9 and `-`. Found: `{bucketArn#accountId}`", - type: "error", - }, - ], - }, - ], - }, - ], - }, - { - conditions: - [], - error: - "Invalid region in ARN: `{bucketArn#region}` (invalid DNS name)", - type: "error", - }, - ], - }, - ], - }, - { - conditions: - [], - error: - "Client was configured for partition `{partitionResult#name}` but ARN (`{Bucket}`) has `{bucketPartition#name}`", - type: "error", - }, - ], - }, - ], - }, - { - conditions: [], - error: - "A valid partition could not be determined", - type: "error", - }, - ], - }, - ], - }, - { - conditions: [], - error: - "Could not load partition for ARN region `{bucketArn#region}`", - type: "error", - }, - ], - }, - ], - }, - ], - }, - { - conditions: [], - error: - "Invalid ARN: The ARN may only contain a single resource component after `accesspoint`.", - type: "error", - }, - ], - }, - ], - }, - ], - }, - { - conditions: [], - error: "Invalid ARN: bucket ARN is missing a region", - type: "error", - }, - ], - }, - ], - }, - ], - }, - ], - }, - { - conditions: [], - error: - "Invalid ARN: Expected a resource of the format `accesspoint:` but no name was provided", - type: "error", - }, - ], - }, - ], - }, - { - conditions: [], - error: - "Invalid ARN: Object Lambda ARNs only support `accesspoint` arn types, but found: `{arnType}`", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "stringEquals", - argv: [ - { - ref: "arnType", - }, - "accesspoint", - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "getAttr", - argv: [ - { - ref: "bucketArn", - }, - "resourceId[1]", - ], - assign: "accessPointName", - }, - { - fn: "not", - argv: [ - { - fn: "stringEquals", - argv: [ - { - ref: "accessPointName", - }, - "", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "not", - argv: [ - { - fn: "stringEquals", - argv: [ - { - fn: "getAttr", - argv: [ - { - ref: "bucketArn", - }, - "region", - ], - }, - "", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "stringEquals", - argv: [ - { - ref: "arnType", - }, - "accesspoint", - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "not", - argv: [ - { - fn: "stringEquals", - argv: [ - { - fn: "getAttr", - argv: [ - { - ref: "bucketArn", - }, - "region", - ], - }, - "", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "DisableAccessPoints", - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "DisableAccessPoints", - }, - true, - ], - }, - ], - error: - "Access points are not supported for this operation", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "not", - argv: [ - { - fn: "isSet", - argv: [ - { - fn: "getAttr", - argv: [ - { - ref: "bucketArn", - }, - "resourceId[2]", - ], - }, - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "UseArnRegion", - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseArnRegion", - }, - false, - ], - }, - { - fn: "not", - argv: [ - { - fn: "stringEquals", - argv: [ - { - fn: "getAttr", - argv: [ - { - ref: "bucketArn", - }, - "region", - ], - }, - "{Region}", - ], - }, - ], - }, - ], - error: - "Invalid configuration: region from ARN `{bucketArn#region}` does not match client region `{Region}` and UseArnRegion is `false`", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - fn: "getAttr", - argv: [ - { - ref: "bucketArn", - }, - "region", - ], - }, - ], - assign: "bucketPartition", - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "partitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "stringEquals", - argv: [ - { - fn: "getAttr", - argv: [ - { - ref: "bucketPartition", - }, - "name", - ], - }, - "{partitionResult#name}", - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isValidHostLabel", - argv: [ - { - fn: "getAttr", - argv: [ - { - ref: "bucketArn", - }, - "region", - ], - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: - [], - type: "tree", - rules: [ - { - conditions: - [ - { - fn: "stringEquals", - argv: [ - { - fn: "getAttr", - argv: [ - { - ref: "bucketArn", - }, - "service", - ], - }, - "s3", - ], - }, - ], - type: "tree", - rules: - [ - { - conditions: - [], - type: "tree", - rules: - [ - { - conditions: - [ - { - fn: "isValidHostLabel", - argv: [ - { - fn: "getAttr", - argv: [ - { - ref: "bucketArn", - }, - "accountId", - ], - }, - false, - ], - }, - ], - type: "tree", - rules: - [ - { - conditions: - [], - type: "tree", - rules: - [ - { - conditions: - [ - { - fn: "isValidHostLabel", - argv: [ - { - ref: "accessPointName", - }, - false, - ], - }, - ], - type: "tree", - rules: - [ - { - conditions: - [], - type: "tree", - rules: - [ - { - conditions: - [ - { - fn: "booleanEquals", - argv: [ - { - ref: "Accelerate", - }, - true, - ], - }, - ], - error: - "Access Points do not support S3 Accelerate", - type: "error", - }, - { - conditions: - [], - type: "tree", - rules: - [ - { - conditions: - [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "stringEquals", - argv: [ - { - fn: "getAttr", - argv: [ - { - ref: "bucketPartition", - }, - "name", - ], - }, - "aws-cn", - ], - }, - ], - error: - "Partition does not support FIPS", - type: "error", - }, - { - conditions: - [], - type: "tree", - rules: - [ - { - conditions: - [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - ], - error: - "DualStack cannot be combined with a Host override (PrivateLink)", - type: "error", - }, - { - conditions: - [], - type: "tree", - rules: - [ - { - conditions: - [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - endpoint: - { - url: "https://{accessPointName}-{bucketArn#accountId}.s3-accesspoint-fips.dualstack.{bucketArn#region}.{bucketPartition#dnsSuffix}", - properties: - { - authSchemes: - [ - { - name: "sigv4", - signingName: - "s3", - disableDoubleEncoding: - true, - signingRegion: - "{bucketArn#region}", - }, - ], - }, - headers: - {}, - }, - type: "endpoint", - }, - { - conditions: - [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - false, - ], - }, - ], - endpoint: - { - url: "https://{accessPointName}-{bucketArn#accountId}.s3-accesspoint-fips.{bucketArn#region}.{bucketPartition#dnsSuffix}", - properties: - { - authSchemes: - [ - { - name: "sigv4", - signingName: - "s3", - disableDoubleEncoding: - true, - signingRegion: - "{bucketArn#region}", - }, - ], - }, - headers: - {}, - }, - type: "endpoint", - }, - { - conditions: - [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - false, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - endpoint: - { - url: "https://{accessPointName}-{bucketArn#accountId}.s3-accesspoint.dualstack.{bucketArn#region}.{bucketPartition#dnsSuffix}", - properties: - { - authSchemes: - [ - { - name: "sigv4", - signingName: - "s3", - disableDoubleEncoding: - true, - signingRegion: - "{bucketArn#region}", - }, - ], - }, - headers: - {}, - }, - type: "endpoint", - }, - { - conditions: - [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - false, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - false, - ], - }, - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: - "url", - }, - ], - endpoint: - { - url: "{url#scheme}://{accessPointName}-{bucketArn#accountId}.{url#authority}{url#path}", - properties: - { - authSchemes: - [ - { - name: "sigv4", - signingName: - "s3", - disableDoubleEncoding: - true, - signingRegion: - "{bucketArn#region}", - }, - ], - }, - headers: - {}, - }, - type: "endpoint", - }, - { - conditions: - [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - false, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - false, - ], - }, - ], - endpoint: - { - url: "https://{accessPointName}-{bucketArn#accountId}.s3-accesspoint.{bucketArn#region}.{bucketPartition#dnsSuffix}", - properties: - { - authSchemes: - [ - { - name: "sigv4", - signingName: - "s3", - disableDoubleEncoding: - true, - signingRegion: - "{bucketArn#region}", - }, - ], - }, - headers: - {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - ], - }, - ], - }, - ], - }, - { - conditions: - [], - error: - "Invalid ARN: The access point name may only contain a-z, A-Z, 0-9 and `-`. Found: `{accessPointName}`", - type: "error", - }, - ], - }, - ], - }, - { - conditions: - [], - error: - "Invalid ARN: The account id may only contain a-z, A-Z, 0-9 and `-`. Found: `{bucketArn#accountId}`", - type: "error", - }, - ], - }, - ], - }, - { - conditions: - [], - error: - "Invalid ARN: The ARN was not for the S3 service, found: {bucketArn#service}", - type: "error", - }, - ], - }, - ], - }, - { - conditions: - [], - error: - "Invalid region in ARN: `{bucketArn#region}` (invalid DNS name)", - type: "error", - }, - ], - }, - ], - }, - { - conditions: [], - error: - "Client was configured for partition `{partitionResult#name}` but ARN (`{Bucket}`) has `{bucketPartition#name}`", - type: "error", - }, - ], - }, - ], - }, - { - conditions: [], - error: - "A valid partition could not be determined", - type: "error", - }, - ], - }, - ], - }, - { - conditions: [], - error: - "Could not load partition for ARN region `{bucketArn#region}`", - type: "error", - }, - ], - }, - ], - }, - ], - }, - { - conditions: [], - error: - "Invalid ARN: The ARN may only contain a single resource component after `accesspoint`.", - type: "error", - }, - ], - }, - ], - }, - ], - }, - { - conditions: [], - error: "Invalid ARN: bucket ARN is missing a region", - type: "error", - }, - ], - }, - ], - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isValidHostLabel", - argv: [ - { - ref: "accessPointName", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "S3 MRAP does not support dual-stack", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "S3 MRAP does not support FIPS", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "Accelerate", - }, - true, - ], - }, - ], - error: "S3 MRAP does not support S3 Accelerate", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "DisableMultiRegionAccessPoints", - }, - true, - ], - }, - ], - error: - "Invalid configuration: Multi-Region Access Point ARNs are disabled.", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "mrapPartition", - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "stringEquals", - argv: [ - { - fn: "getAttr", - argv: [ - { - ref: "mrapPartition", - }, - "name", - ], - }, - { - fn: "getAttr", - argv: [ - { - ref: "bucketArn", - }, - "partition", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://{accessPointName}.accesspoint.s3-global.{mrapPartition#dnsSuffix}", - properties: { - authSchemes: [ - { - name: "sigv4a", - signingName: "s3", - disableDoubleEncoding: - true, - signingRegionSet: [ - "*", - ], - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: - "Client was configured for partition `{mrapPartition#name}` but bucket referred to partition `{bucketArn#partition}`", - type: "error", - }, - ], - }, - ], - }, - { - conditions: [], - error: "{Region} was not a valid region", - type: "error", - }, - ], - }, - ], - }, - ], - }, - ], - }, - ], - }, - ], - }, - { - conditions: [], - error: "Invalid Access Point Name", - type: "error", - }, - ], - }, - ], - }, - ], - }, - { - conditions: [], - error: - "Invalid ARN: Expected a resource of the format `accesspoint:` but no name was provided", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "stringEquals", - argv: [ - { - fn: "getAttr", - argv: [ - { - ref: "bucketArn", - }, - "service", - ], - }, - "s3-outposts", - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "S3 Outposts does not support Dual-stack", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "S3 Outposts does not support FIPS", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "Accelerate", - }, - true, - ], - }, - ], - error: "S3 Outposts does not support S3 Accelerate", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - fn: "getAttr", - argv: [ - { - ref: "bucketArn", - }, - "resourceId[4]", - ], - }, - ], - }, - ], - error: - "Invalid Arn: Outpost Access Point ARN contains sub resources", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "getAttr", - argv: [ - { - ref: "bucketArn", - }, - "resourceId[1]", - ], - assign: "outpostId", - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isValidHostLabel", - argv: [ - { - ref: "outpostId", - }, - false, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "UseArnRegion", - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseArnRegion", - }, - false, - ], - }, - { - fn: "not", - argv: [ - { - fn: "stringEquals", - argv: [ - { - fn: "getAttr", - argv: [ - { - ref: "bucketArn", - }, - "region", - ], - }, - "{Region}", - ], - }, - ], - }, - ], - error: - "Invalid configuration: region from ARN `{bucketArn#region}` does not match client region `{Region}` and UseArnRegion is `false`", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - fn: "getAttr", - argv: [ - { - ref: "bucketArn", - }, - "region", - ], - }, - ], - assign: "bucketPartition", - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "partitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "stringEquals", - argv: [ - { - fn: "getAttr", - argv: [ - { - ref: "bucketPartition", - }, - "name", - ], - }, - { - fn: "getAttr", - argv: [ - { - ref: "partitionResult", - }, - "name", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isValidHostLabel", - argv: [ - { - fn: "getAttr", - argv: [ - { - ref: "bucketArn", - }, - "region", - ], - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: - [], - type: "tree", - rules: [ - { - conditions: - [ - { - fn: "isValidHostLabel", - argv: [ - { - fn: "getAttr", - argv: [ - { - ref: "bucketArn", - }, - "accountId", - ], - }, - false, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: - [], - type: "tree", - rules: - [ - { - conditions: - [ - { - fn: "getAttr", - argv: [ - { - ref: "bucketArn", - }, - "resourceId[2]", - ], - assign: - "outpostType", - }, - ], - type: "tree", - rules: - [ - { - conditions: - [], - type: "tree", - rules: - [ - { - conditions: - [ - { - fn: "getAttr", - argv: [ - { - ref: "bucketArn", - }, - "resourceId[3]", - ], - assign: - "accessPointName", - }, - ], - type: "tree", - rules: - [ - { - conditions: - [], - type: "tree", - rules: - [ - { - conditions: - [ - { - fn: "stringEquals", - argv: [ - { - ref: "outpostType", - }, - "accesspoint", - ], - }, - ], - type: "tree", - rules: - [ - { - conditions: - [], - type: "tree", - rules: - [ - { - conditions: - [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: - "url", - }, - ], - endpoint: - { - url: "https://{accessPointName}-{bucketArn#accountId}.{outpostId}.{url#authority}", - properties: - { - authSchemes: - [ - { - name: "sigv4", - signingName: - "s3-outposts", - disableDoubleEncoding: - true, - signingRegion: - "{bucketArn#region}", - }, - ], - }, - headers: - {}, - }, - type: "endpoint", - }, - { - conditions: - [], - endpoint: - { - url: "https://{accessPointName}-{bucketArn#accountId}.{outpostId}.s3-outposts.{bucketArn#region}.{bucketPartition#dnsSuffix}", - properties: - { - authSchemes: - [ - { - name: "sigv4", - signingName: - "s3-outposts", - disableDoubleEncoding: - true, - signingRegion: - "{bucketArn#region}", - }, - ], - }, - headers: - {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: - [], - error: - "Expected an outpost type `accesspoint`, found {outpostType}", - type: "error", - }, - ], - }, - ], - }, - { - conditions: - [], - error: - "Invalid ARN: expected an access point name", - type: "error", - }, - ], - }, - ], - }, - { - conditions: - [], - error: - "Invalid ARN: Expected a 4-component resource", - type: "error", - }, - ], - }, - ], - }, - { - conditions: - [], - error: - "Invalid ARN: The account id may only contain a-z, A-Z, 0-9 and `-`. Found: `{bucketArn#accountId}`", - type: "error", - }, - ], - }, - ], - }, - { - conditions: [], - error: - "Invalid region in ARN: `{bucketArn#region}` (invalid DNS name)", - type: "error", - }, - ], - }, - ], - }, - { - conditions: [], - error: - "Client was configured for partition `{partitionResult#name}` but ARN (`{Bucket}`) has `{bucketPartition#name}`", - type: "error", - }, - ], - }, - ], - }, - { - conditions: [], - error: - "A valid partition could not be determined", - type: "error", - }, - ], - }, - ], - }, - { - conditions: [], - error: - "Could not load partition for ARN region {bucketArn#region}", - type: "error", - }, - ], - }, - ], - }, - ], - }, - { - conditions: [], - error: - "Invalid ARN: The outpost Id may only contain a-z, A-Z, 0-9 and `-`. Found: `{outpostId}`", - type: "error", - }, - ], - }, - ], - }, - { - conditions: [], - error: "Invalid ARN: The Outpost Id was not set", - type: "error", - }, - ], - }, - ], - }, - ], - }, - ], - }, - ], - }, - { - conditions: [], - error: "Invalid ARN: Unrecognized format: {Bucket} (type: {arnType})", - type: "error", - }, - ], - }, - ], - }, - { - conditions: [], - error: "Invalid ARN: No ARN type specified", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "substring", - argv: [ - { - ref: "Bucket", - }, - 0, - 4, - false, - ], - assign: "arnPrefix", - }, - { - fn: "stringEquals", - argv: [ - { - ref: "arnPrefix", - }, - "arn:", - ], - }, - { - fn: "not", - argv: [ - { - fn: "isSet", - argv: [ - { - fn: "aws.parseArn", - argv: [ - { - ref: "Bucket", - }, - ], - }, - ], - }, - ], - }, - ], - error: "Invalid ARN: `{Bucket}` was not a valid ARN", - type: "error", - }, - { - conditions: [ - { - fn: "uriEncode", - argv: [ - { - ref: "Bucket", - }, - ], - assign: "uri_encoded_bucket", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - ], - error: "Cannot set dual-stack in combination with a custom endpoint.", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "partitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "Accelerate", - }, - false, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - false, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - { - fn: "not", - argv: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - ], - }, - { - fn: "stringEquals", - argv: [ - { - ref: "Region", - }, - "aws-global", - ], - }, - ], - endpoint: { - url: "https://s3.dualstack.us-east-1.{partitionResult#dnsSuffix}/{uri_encoded_bucket}", - properties: { - authSchemes: [ - { - name: "sigv4", - signingName: "s3", - disableDoubleEncoding: true, - signingRegion: "us-east-1", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - { - fn: "not", - argv: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - ], - }, - { - fn: "stringEquals", - argv: [ - { - ref: "Region", - }, - "aws-global", - ], - }, - ], - endpoint: { - url: "https://s3.dualstack.us-east-1.{partitionResult#dnsSuffix}/{uri_encoded_bucket}", - properties: { - authSchemes: [ - { - name: "sigv4", - signingName: "s3", - disableDoubleEncoding: true, - signingRegion: "us-east-1", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - { - fn: "not", - argv: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - ], - }, - { - fn: "not", - argv: [ - { - fn: "stringEquals", - argv: [ - { - ref: "Region", - }, - "aws-global", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseGlobalEndpoint", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://s3.dualstack.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}", - properties: { - authSchemes: [ - { - name: "sigv4", - signingName: "s3", - disableDoubleEncoding: true, - signingRegion: "{Region}", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - { - fn: "not", - argv: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - ], - }, - { - fn: "not", - argv: [ - { - fn: "stringEquals", - argv: [ - { - ref: "Region", - }, - "aws-global", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseGlobalEndpoint", - }, - false, - ], - }, - ], - endpoint: { - url: "https://s3.dualstack.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}", - properties: { - authSchemes: [ - { - name: "sigv4", - signingName: "s3", - disableDoubleEncoding: true, - signingRegion: "{Region}", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - false, - ], - }, - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - { - fn: "stringEquals", - argv: [ - { - ref: "Region", - }, - "aws-global", - ], - }, - ], - endpoint: { - url: "{url#scheme}://{url#authority}{url#normalizedPath}{uri_encoded_bucket}", - properties: { - authSchemes: [ - { - name: "sigv4", - signingName: "s3", - disableDoubleEncoding: true, - signingRegion: "us-east-1", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - false, - ], - }, - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - { - fn: "stringEquals", - argv: [ - { - ref: "Region", - }, - "aws-global", - ], - }, - ], - endpoint: { - url: "{url#scheme}://{url#authority}{url#normalizedPath}{uri_encoded_bucket}", - properties: { - authSchemes: [ - { - name: "sigv4", - signingName: "s3", - disableDoubleEncoding: true, - signingRegion: "us-east-1", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - false, - ], - }, - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - { - fn: "not", - argv: [ - { - fn: "stringEquals", - argv: [ - { - ref: "Region", - }, - "aws-global", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseGlobalEndpoint", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "stringEquals", - argv: [ - { - ref: "Region", - }, - "us-east-1", - ], - }, - ], - endpoint: { - url: "{url#scheme}://{url#authority}{url#normalizedPath}{uri_encoded_bucket}", - properties: { - authSchemes: [ - { - name: "sigv4", - signingName: "s3", - disableDoubleEncoding: true, - signingRegion: "{Region}", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - { - conditions: [], - endpoint: { - url: "{url#scheme}://{url#authority}{url#normalizedPath}{uri_encoded_bucket}", - properties: { - authSchemes: [ - { - name: "sigv4", - signingName: "s3", - disableDoubleEncoding: true, - signingRegion: "{Region}", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - false, - ], - }, - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - { - fn: "not", - argv: [ - { - fn: "stringEquals", - argv: [ - { - ref: "Region", - }, - "aws-global", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseGlobalEndpoint", - }, - false, - ], - }, - ], - endpoint: { - url: "{url#scheme}://{url#authority}{url#normalizedPath}{uri_encoded_bucket}", - properties: { - authSchemes: [ - { - name: "sigv4", - signingName: "s3", - disableDoubleEncoding: true, - signingRegion: "{Region}", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - false, - ], - }, - { - fn: "not", - argv: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - ], - }, - { - fn: "stringEquals", - argv: [ - { - ref: "Region", - }, - "aws-global", - ], - }, - ], - endpoint: { - url: "https://s3.{partitionResult#dnsSuffix}/{uri_encoded_bucket}", - properties: { - authSchemes: [ - { - name: "sigv4", - signingName: "s3", - disableDoubleEncoding: true, - signingRegion: "us-east-1", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - false, - ], - }, - { - fn: "not", - argv: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - ], - }, - { - fn: "stringEquals", - argv: [ - { - ref: "Region", - }, - "aws-global", - ], - }, - ], - endpoint: { - url: "https://s3.{partitionResult#dnsSuffix}/{uri_encoded_bucket}", - properties: { - authSchemes: [ - { - name: "sigv4", - signingName: "s3", - disableDoubleEncoding: true, - signingRegion: "us-east-1", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - false, - ], - }, - { - fn: "not", - argv: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - ], - }, - { - fn: "not", - argv: [ - { - fn: "stringEquals", - argv: [ - { - ref: "Region", - }, - "aws-global", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseGlobalEndpoint", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "stringEquals", - argv: [ - { - ref: "Region", - }, - "us-east-1", - ], - }, - ], - endpoint: { - url: "https://s3.{partitionResult#dnsSuffix}/{uri_encoded_bucket}", - properties: { - authSchemes: [ - { - name: "sigv4", - signingName: "s3", - disableDoubleEncoding: true, - signingRegion: "{Region}", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - { - conditions: [], - endpoint: { - url: "https://s3.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}", - properties: { - authSchemes: [ - { - name: "sigv4", - signingName: "s3", - disableDoubleEncoding: true, - signingRegion: "{Region}", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - false, - ], - }, - { - fn: "not", - argv: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - ], - }, - { - fn: "not", - argv: [ - { - fn: "stringEquals", - argv: [ - { - ref: "Region", - }, - "aws-global", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseGlobalEndpoint", - }, - false, - ], - }, - ], - endpoint: { - url: "https://s3.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}", - properties: { - authSchemes: [ - { - name: "sigv4", - signingName: "s3", - disableDoubleEncoding: true, - signingRegion: "{Region}", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [], - error: "Path-style addressing cannot be used with FIPS", - type: "error", - }, - ], - }, - ], - }, - { - conditions: [], - error: "Path-style addressing cannot be used with S3 Accelerate", - type: "error", - }, - ], - }, - ], - }, - { - conditions: [], - error: "A valid partition could not be determined", - type: "error", - }, - ], - }, - ], - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "UseObjectLambdaEndpoint", - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseObjectLambdaEndpoint", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "partitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isValidHostLabel", - argv: [ - { - ref: "Region", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "S3 Object Lambda does not support Dual-stack", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "Accelerate", - }, - true, - ], - }, - ], - error: "S3 Object Lambda does not support S3 Accelerate", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "stringEquals", - argv: [ - { - fn: "getAttr", - argv: [ - { - ref: "partitionResult", - }, - "name", - ], - }, - "aws-cn", - ], - }, - ], - error: "Partition does not support FIPS", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - endpoint: { - url: "{url#scheme}://{url#authority}{url#path}", - properties: { - authSchemes: [ - { - name: "sigv4", - signingName: "s3-object-lambda", - disableDoubleEncoding: true, - signingRegion: "{Region}", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - endpoint: { - url: "https://s3-object-lambda-fips.{Region}.{partitionResult#dnsSuffix}", - properties: { - authSchemes: [ - { - name: "sigv4", - signingName: "s3-object-lambda", - disableDoubleEncoding: true, - signingRegion: "{Region}", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - { - conditions: [], - endpoint: { - url: "https://s3-object-lambda.{Region}.{partitionResult#dnsSuffix}", - properties: { - authSchemes: [ - { - name: "sigv4", - signingName: "s3-object-lambda", - disableDoubleEncoding: true, - signingRegion: "{Region}", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - ], - }, - ], - }, - ], - }, - { - conditions: [], - error: "Invalid region: region was not a valid DNS name.", - type: "error", - }, - ], - }, - ], - }, - { - conditions: [], - error: "A valid partition could not be determined", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "not", - argv: [ - { - fn: "isSet", - argv: [ - { - ref: "Bucket", - }, - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "partitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isValidHostLabel", - argv: [ - { - ref: "Region", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "stringEquals", - argv: [ - { - fn: "getAttr", - argv: [ - { - ref: "partitionResult", - }, - "name", - ], - }, - "aws-cn", - ], - }, - ], - error: "Partition does not support FIPS", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - { - fn: "stringEquals", - argv: [ - { - ref: "Region", - }, - "aws-global", - ], - }, - ], - endpoint: { - url: "{url#scheme}://{url#authority}{url#path}", - properties: { - authSchemes: [ - { - name: "sigv4", - signingName: "s3", - disableDoubleEncoding: true, - signingRegion: "us-east-1", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - { - fn: "stringEquals", - argv: [ - { - ref: "Region", - }, - "aws-global", - ], - }, - ], - endpoint: { - url: "{url#scheme}://{url#authority}{url#path}", - properties: { - authSchemes: [ - { - name: "sigv4", - signingName: "s3", - disableDoubleEncoding: true, - signingRegion: "us-east-1", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - { - fn: "not", - argv: [ - { - fn: "stringEquals", - argv: [ - { - ref: "Region", - }, - "aws-global", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseGlobalEndpoint", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "{url#scheme}://{url#authority}{url#path}", - properties: { - authSchemes: [ - { - name: "sigv4", - signingName: "s3", - disableDoubleEncoding: true, - signingRegion: "{Region}", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - { - fn: "not", - argv: [ - { - fn: "stringEquals", - argv: [ - { - ref: "Region", - }, - "aws-global", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseGlobalEndpoint", - }, - false, - ], - }, - ], - endpoint: { - url: "{url#scheme}://{url#authority}{url#path}", - properties: { - authSchemes: [ - { - name: "sigv4", - signingName: "s3", - disableDoubleEncoding: true, - signingRegion: "{Region}", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - { - fn: "not", - argv: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - ], - }, - { - fn: "stringEquals", - argv: [ - { - ref: "Region", - }, - "aws-global", - ], - }, - ], - endpoint: { - url: "https://s3-fips.dualstack.us-east-1.{partitionResult#dnsSuffix}", - properties: { - authSchemes: [ - { - name: "sigv4", - signingName: "s3", - disableDoubleEncoding: true, - signingRegion: "us-east-1", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - { - fn: "not", - argv: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - ], - }, - { - fn: "stringEquals", - argv: [ - { - ref: "Region", - }, - "aws-global", - ], - }, - ], - endpoint: { - url: "https://s3-fips.dualstack.us-east-1.{partitionResult#dnsSuffix}", - properties: { - authSchemes: [ - { - name: "sigv4", - signingName: "s3", - disableDoubleEncoding: true, - signingRegion: "us-east-1", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - { - fn: "not", - argv: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - ], - }, - { - fn: "not", - argv: [ - { - fn: "stringEquals", - argv: [ - { - ref: "Region", - }, - "aws-global", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseGlobalEndpoint", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://s3-fips.dualstack.{Region}.{partitionResult#dnsSuffix}", - properties: { - authSchemes: [ - { - name: "sigv4", - signingName: "s3", - disableDoubleEncoding: true, - signingRegion: "{Region}", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - { - fn: "not", - argv: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - ], - }, - { - fn: "not", - argv: [ - { - fn: "stringEquals", - argv: [ - { - ref: "Region", - }, - "aws-global", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseGlobalEndpoint", - }, - false, - ], - }, - ], - endpoint: { - url: "https://s3-fips.dualstack.{Region}.{partitionResult#dnsSuffix}", - properties: { - authSchemes: [ - { - name: "sigv4", - signingName: "s3", - disableDoubleEncoding: true, - signingRegion: "{Region}", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - false, - ], - }, - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - { - fn: "stringEquals", - argv: [ - { - ref: "Region", - }, - "aws-global", - ], - }, - ], - endpoint: { - url: "{url#scheme}://{url#authority}{url#path}", - properties: { - authSchemes: [ - { - name: "sigv4", - signingName: "s3", - disableDoubleEncoding: true, - signingRegion: "us-east-1", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - false, - ], - }, - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - { - fn: "stringEquals", - argv: [ - { - ref: "Region", - }, - "aws-global", - ], - }, - ], - endpoint: { - url: "{url#scheme}://{url#authority}{url#path}", - properties: { - authSchemes: [ - { - name: "sigv4", - signingName: "s3", - disableDoubleEncoding: true, - signingRegion: "us-east-1", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - false, - ], - }, - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - { - fn: "not", - argv: [ - { - fn: "stringEquals", - argv: [ - { - ref: "Region", - }, - "aws-global", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseGlobalEndpoint", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "{url#scheme}://{url#authority}{url#path}", - properties: { - authSchemes: [ - { - name: "sigv4", - signingName: "s3", - disableDoubleEncoding: true, - signingRegion: "{Region}", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - false, - ], - }, - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - { - fn: "not", - argv: [ - { - fn: "stringEquals", - argv: [ - { - ref: "Region", - }, - "aws-global", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseGlobalEndpoint", - }, - false, - ], - }, - ], - endpoint: { - url: "{url#scheme}://{url#authority}{url#path}", - properties: { - authSchemes: [ - { - name: "sigv4", - signingName: "s3", - disableDoubleEncoding: true, - signingRegion: "{Region}", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - false, - ], - }, - { - fn: "not", - argv: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - ], - }, - { - fn: "stringEquals", - argv: [ - { - ref: "Region", - }, - "aws-global", - ], - }, - ], - endpoint: { - url: "https://s3-fips.us-east-1.{partitionResult#dnsSuffix}", - properties: { - authSchemes: [ - { - name: "sigv4", - signingName: "s3", - disableDoubleEncoding: true, - signingRegion: "us-east-1", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - false, - ], - }, - { - fn: "not", - argv: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - ], - }, - { - fn: "stringEquals", - argv: [ - { - ref: "Region", - }, - "aws-global", - ], - }, - ], - endpoint: { - url: "https://s3-fips.us-east-1.{partitionResult#dnsSuffix}", - properties: { - authSchemes: [ - { - name: "sigv4", - signingName: "s3", - disableDoubleEncoding: true, - signingRegion: "us-east-1", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - false, - ], - }, - { - fn: "not", - argv: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - ], - }, - { - fn: "not", - argv: [ - { - fn: "stringEquals", - argv: [ - { - ref: "Region", - }, - "aws-global", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseGlobalEndpoint", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://s3-fips.{Region}.{partitionResult#dnsSuffix}", - properties: { - authSchemes: [ - { - name: "sigv4", - signingName: "s3", - disableDoubleEncoding: true, - signingRegion: "{Region}", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - false, - ], - }, - { - fn: "not", - argv: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - ], - }, - { - fn: "not", - argv: [ - { - fn: "stringEquals", - argv: [ - { - ref: "Region", - }, - "aws-global", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseGlobalEndpoint", - }, - false, - ], - }, - ], - endpoint: { - url: "https://s3-fips.{Region}.{partitionResult#dnsSuffix}", - properties: { - authSchemes: [ - { - name: "sigv4", - signingName: "s3", - disableDoubleEncoding: true, - signingRegion: "{Region}", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - false, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - { - fn: "stringEquals", - argv: [ - { - ref: "Region", - }, - "aws-global", - ], - }, - ], - endpoint: { - url: "{url#scheme}://{url#authority}{url#path}", - properties: { - authSchemes: [ - { - name: "sigv4", - signingName: "s3", - disableDoubleEncoding: true, - signingRegion: "us-east-1", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - false, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - { - fn: "stringEquals", - argv: [ - { - ref: "Region", - }, - "aws-global", - ], - }, - ], - endpoint: { - url: "{url#scheme}://{url#authority}{url#path}", - properties: { - authSchemes: [ - { - name: "sigv4", - signingName: "s3", - disableDoubleEncoding: true, - signingRegion: "us-east-1", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - false, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - { - fn: "not", - argv: [ - { - fn: "stringEquals", - argv: [ - { - ref: "Region", - }, - "aws-global", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseGlobalEndpoint", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "{url#scheme}://{url#authority}{url#path}", - properties: { - authSchemes: [ - { - name: "sigv4", - signingName: "s3", - disableDoubleEncoding: true, - signingRegion: "{Region}", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - false, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - { - fn: "not", - argv: [ - { - fn: "stringEquals", - argv: [ - { - ref: "Region", - }, - "aws-global", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseGlobalEndpoint", - }, - false, - ], - }, - ], - endpoint: { - url: "{url#scheme}://{url#authority}{url#path}", - properties: { - authSchemes: [ - { - name: "sigv4", - signingName: "s3", - disableDoubleEncoding: true, - signingRegion: "{Region}", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - false, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - { - fn: "not", - argv: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - ], - }, - { - fn: "stringEquals", - argv: [ - { - ref: "Region", - }, - "aws-global", - ], - }, - ], - endpoint: { - url: "https://s3.dualstack.us-east-1.{partitionResult#dnsSuffix}", - properties: { - authSchemes: [ - { - name: "sigv4", - signingName: "s3", - disableDoubleEncoding: true, - signingRegion: "us-east-1", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - false, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - { - fn: "not", - argv: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - ], - }, - { - fn: "stringEquals", - argv: [ - { - ref: "Region", - }, - "aws-global", - ], - }, - ], - endpoint: { - url: "https://s3.dualstack.us-east-1.{partitionResult#dnsSuffix}", - properties: { - authSchemes: [ - { - name: "sigv4", - signingName: "s3", - disableDoubleEncoding: true, - signingRegion: "us-east-1", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - false, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - { - fn: "not", - argv: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - ], - }, - { - fn: "not", - argv: [ - { - fn: "stringEquals", - argv: [ - { - ref: "Region", - }, - "aws-global", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseGlobalEndpoint", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://s3.dualstack.{Region}.{partitionResult#dnsSuffix}", - properties: { - authSchemes: [ - { - name: "sigv4", - signingName: "s3", - disableDoubleEncoding: true, - signingRegion: "{Region}", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - false, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - { - fn: "not", - argv: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - ], - }, - { - fn: "not", - argv: [ - { - fn: "stringEquals", - argv: [ - { - ref: "Region", - }, - "aws-global", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseGlobalEndpoint", - }, - false, - ], - }, - ], - endpoint: { - url: "https://s3.dualstack.{Region}.{partitionResult#dnsSuffix}", - properties: { - authSchemes: [ - { - name: "sigv4", - signingName: "s3", - disableDoubleEncoding: true, - signingRegion: "{Region}", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - false, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - false, - ], - }, - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - { - fn: "stringEquals", - argv: [ - { - ref: "Region", - }, - "aws-global", - ], - }, - ], - endpoint: { - url: "{url#scheme}://{url#authority}{url#path}", - properties: { - authSchemes: [ - { - name: "sigv4", - signingName: "s3", - disableDoubleEncoding: true, - signingRegion: "us-east-1", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - false, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - false, - ], - }, - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - { - fn: "stringEquals", - argv: [ - { - ref: "Region", - }, - "aws-global", - ], - }, - ], - endpoint: { - url: "{url#scheme}://{url#authority}{url#path}", - properties: { - authSchemes: [ - { - name: "sigv4", - signingName: "s3", - disableDoubleEncoding: true, - signingRegion: "us-east-1", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - false, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - false, - ], - }, - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - { - fn: "not", - argv: [ - { - fn: "stringEquals", - argv: [ - { - ref: "Region", - }, - "aws-global", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseGlobalEndpoint", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "stringEquals", - argv: [ - { - ref: "Region", - }, - "us-east-1", - ], - }, - ], - endpoint: { - url: "{url#scheme}://{url#authority}{url#path}", - properties: { - authSchemes: [ - { - name: "sigv4", - signingName: "s3", - disableDoubleEncoding: true, - signingRegion: "{Region}", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - { - conditions: [], - endpoint: { - url: "{url#scheme}://{url#authority}{url#path}", - properties: { - authSchemes: [ - { - name: "sigv4", - signingName: "s3", - disableDoubleEncoding: true, - signingRegion: "{Region}", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - false, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - false, - ], - }, - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - { - fn: "not", - argv: [ - { - fn: "stringEquals", - argv: [ - { - ref: "Region", - }, - "aws-global", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseGlobalEndpoint", - }, - false, - ], - }, - ], - endpoint: { - url: "{url#scheme}://{url#authority}{url#path}", - properties: { - authSchemes: [ - { - name: "sigv4", - signingName: "s3", - disableDoubleEncoding: true, - signingRegion: "{Region}", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - false, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - false, - ], - }, - { - fn: "not", - argv: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - ], - }, - { - fn: "stringEquals", - argv: [ - { - ref: "Region", - }, - "aws-global", - ], - }, - ], - endpoint: { - url: "https://s3.{partitionResult#dnsSuffix}", - properties: { - authSchemes: [ - { - name: "sigv4", - signingName: "s3", - disableDoubleEncoding: true, - signingRegion: "us-east-1", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - false, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - false, - ], - }, - { - fn: "not", - argv: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - ], - }, - { - fn: "stringEquals", - argv: [ - { - ref: "Region", - }, - "aws-global", - ], - }, - ], - endpoint: { - url: "https://s3.{partitionResult#dnsSuffix}", - properties: { - authSchemes: [ - { - name: "sigv4", - signingName: "s3", - disableDoubleEncoding: true, - signingRegion: "us-east-1", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - false, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - false, - ], - }, - { - fn: "not", - argv: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - ], - }, - { - fn: "not", - argv: [ - { - fn: "stringEquals", - argv: [ - { - ref: "Region", - }, - "aws-global", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseGlobalEndpoint", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "stringEquals", - argv: [ - { - ref: "Region", - }, - "us-east-1", - ], - }, - ], - endpoint: { - url: "https://s3.{partitionResult#dnsSuffix}", - properties: { - authSchemes: [ - { - name: "sigv4", - signingName: "s3", - disableDoubleEncoding: true, - signingRegion: "{Region}", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - { - conditions: [], - endpoint: { - url: "https://s3.{Region}.{partitionResult#dnsSuffix}", - properties: { - authSchemes: [ - { - name: "sigv4", - signingName: "s3", - disableDoubleEncoding: true, - signingRegion: "{Region}", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - false, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - false, - ], - }, - { - fn: "not", - argv: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - ], - }, - { - fn: "not", - argv: [ - { - fn: "stringEquals", - argv: [ - { - ref: "Region", - }, - "aws-global", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseGlobalEndpoint", - }, - false, - ], - }, - ], - endpoint: { - url: "https://s3.{Region}.{partitionResult#dnsSuffix}", - properties: { - authSchemes: [ - { - name: "sigv4", - signingName: "s3", - disableDoubleEncoding: true, - signingRegion: "{Region}", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - ], - }, - { - conditions: [], - error: "Invalid region: region was not a valid DNS name.", - type: "error", - }, - ], - }, - ], - }, - { - conditions: [], - error: "A valid partition could not be determined", - type: "error", - }, - ], - }, - ], - }, - ], - }, - { - conditions: [], - error: "A region must be set when sending requests to S3.", - type: "error", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/s3.json */ + +const bV="type", +bW="rules", +bX="conditions", +bY="fn", +bZ="argv", +ca="ref", +cb="assign", +cc="url", +cd="properties", +ce="authSchemes", +cf="signingName", +cg="disableDoubleEncoding", +ch="signingRegion", +ci="headers"; +const a=false, +b=true, +c="String", +d="Boolean", +e="tree", +f="isSet", +g="substring", +h="hardwareType", +i="regionPrefix", +j="abbaSuffix", +k="outpostId", +l="aws.partition", +m="stringEquals", +n="isValidHostLabel", +o="not", +p="error", +q="parseURL", +r="s3-outposts", +s="endpoint", +t="booleanEquals", +u="aws.parseArn", +v="s3", +w="aws.isVirtualHostableS3Bucket", +x="getAttr", +y="name", +z="Host override cannot be combined with Dualstack, FIPS, or S3 Accelerate", +A="https://{Bucket}.s3.{partitionResult#dnsSuffix}", +B="bucketArn", +C="arnType", +D="", +E="s3-object-lambda", +F="accesspoint", +G="accessPointName", +H="{url#scheme}://{accessPointName}-{bucketArn#accountId}.{url#authority}{url#path}", +I="mrapPartition", +J="outpostType", +K="arnPrefix", +L="{url#scheme}://{url#authority}{url#path}", +M="https://s3.{partitionResult#dnsSuffix}", +N={[bY]:f,[bZ]:[{[ca]:"Bucket"}]}, +O={[ca]:"Bucket"}, +P={[ca]:h}, +Q={[bX]:[{[bY]:o,[bZ]:[{[bY]:f,[bZ]:[{[ca]:"Endpoint"}]}]}],[p]:"Expected a endpoint to be specified but no endpoint was found",[bV]:p}, +R={[bY]:o,[bZ]:[{[bY]:f,[bZ]:[{[ca]:"Endpoint"}]}]}, +S={[bY]:f,[bZ]:[{[ca]:"Endpoint"}]}, +T={[bY]:q,[bZ]:[{[ca]:"Endpoint"}],[cb]:"url"}, +U={[ce]:[{[y]:"sigv4",[cf]:r,[cg]:true,[ch]:"{Region}"}]}, +V={}, +W={[ca]:"ForcePathStyle"}, +X={[bX]:[{[bY]:"uriEncode",[bZ]:[O],[cb]:"uri_encoded_bucket"}],[bV]:e,[bW]:[{[bX]:[{[bY]:t,[bZ]:[{[ca]:"UseDualStack"},true]},S],[p]:"Cannot set dual-stack in combination with a custom endpoint.",[bV]:p},{[bX]:[],[bV]:e,[bW]:[{[bX]:[{[bY]:l,[bZ]:[{[ca]:"Region"}],[cb]:"partitionResult"}],[bV]:e,[bW]:[{[bX]:[],[bV]:e,[bW]:[{[bX]:[{[bY]:t,[bZ]:[{[ca]:"Accelerate"},false]}],[bV]:e,[bW]:[{[bX]:[],[bV]:e,[bW]:[{[bX]:[{[bY]:t,[bZ]:[{[ca]:"UseFIPS"},false]}],[bV]:e,[bW]:[{[bX]:[],[bV]:e,[bW]:[{[bX]:[{[bY]:t,[bZ]:[{[ca]:"UseDualStack"},true]},R,{[bY]:m,[bZ]:[{[ca]:"Region"},"aws-global"]}],[s]:{[cc]:"https://s3.dualstack.us-east-1.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[cd]:{[ce]:[{[y]:"sigv4",[cf]:v,[cg]:true,[ch]:"us-east-1"}]},[ci]:{}},[bV]:s},{[bX]:[{[bY]:t,[bZ]:[{[ca]:"UseDualStack"},true]},R,{[bY]:m,[bZ]:[{[ca]:"Region"},"aws-global"]}],[s]:{[cc]:"https://s3.dualstack.us-east-1.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[cd]:{[ce]:[{[y]:"sigv4",[cf]:v,[cg]:true,[ch]:"us-east-1"}]},[ci]:{}},[bV]:s},{[bX]:[{[bY]:t,[bZ]:[{[ca]:"UseDualStack"},true]},R,{[bY]:o,[bZ]:[{[bY]:m,[bZ]:[{[ca]:"Region"},"aws-global"]}]},{[bY]:t,[bZ]:[{[ca]:"UseGlobalEndpoint"},true]}],[bV]:e,[bW]:[{[bX]:[],[s]:{[cc]:"https://s3.dualstack.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[cd]:{[ce]:[{[y]:"sigv4",[cf]:v,[cg]:true,[ch]:"{Region}"}]},[ci]:{}},[bV]:s}]},{[bX]:[{[bY]:t,[bZ]:[{[ca]:"UseDualStack"},true]},R,{[bY]:o,[bZ]:[{[bY]:m,[bZ]:[{[ca]:"Region"},"aws-global"]}]},{[bY]:t,[bZ]:[{[ca]:"UseGlobalEndpoint"},false]}],[s]:{[cc]:"https://s3.dualstack.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[cd]:{[ce]:[{[y]:"sigv4",[cf]:v,[cg]:true,[ch]:"{Region}"}]},[ci]:{}},[bV]:s},{[bX]:[{[bY]:t,[bZ]:[{[ca]:"UseDualStack"},false]},S,T,{[bY]:m,[bZ]:[{[ca]:"Region"},"aws-global"]}],[s]:{[cc]:"{url#scheme}://{url#authority}{url#normalizedPath}{uri_encoded_bucket}",[cd]:{[ce]:[{[y]:"sigv4",[cf]:v,[cg]:true,[ch]:"us-east-1"}]},[ci]:{}},[bV]:s},{[bX]:[{[bY]:t,[bZ]:[{[ca]:"UseDualStack"},false]},S,T,{[bY]:m,[bZ]:[{[ca]:"Region"},"aws-global"]}],[s]:{[cc]:"{url#scheme}://{url#authority}{url#normalizedPath}{uri_encoded_bucket}",[cd]:{[ce]:[{[y]:"sigv4",[cf]:v,[cg]:true,[ch]:"us-east-1"}]},[ci]:{}},[bV]:s},{[bX]:[{[bY]:t,[bZ]:[{[ca]:"UseDualStack"},false]},S,T,{[bY]:o,[bZ]:[{[bY]:m,[bZ]:[{[ca]:"Region"},"aws-global"]}]},{[bY]:t,[bZ]:[{[ca]:"UseGlobalEndpoint"},true]}],[bV]:e,[bW]:[{[bX]:[{[bY]:m,[bZ]:[{[ca]:"Region"},"us-east-1"]}],[s]:{[cc]:"{url#scheme}://{url#authority}{url#normalizedPath}{uri_encoded_bucket}",[cd]:{[ce]:[{[y]:"sigv4",[cf]:v,[cg]:true,[ch]:"{Region}"}]},[ci]:{}},[bV]:s},{[bX]:[],[s]:{[cc]:"{url#scheme}://{url#authority}{url#normalizedPath}{uri_encoded_bucket}",[cd]:{[ce]:[{[y]:"sigv4",[cf]:v,[cg]:true,[ch]:"{Region}"}]},[ci]:{}},[bV]:s}]},{[bX]:[{[bY]:t,[bZ]:[{[ca]:"UseDualStack"},false]},S,T,{[bY]:o,[bZ]:[{[bY]:m,[bZ]:[{[ca]:"Region"},"aws-global"]}]},{[bY]:t,[bZ]:[{[ca]:"UseGlobalEndpoint"},false]}],[s]:{[cc]:"{url#scheme}://{url#authority}{url#normalizedPath}{uri_encoded_bucket}",[cd]:{[ce]:[{[y]:"sigv4",[cf]:v,[cg]:true,[ch]:"{Region}"}]},[ci]:{}},[bV]:s},{[bX]:[{[bY]:t,[bZ]:[{[ca]:"UseDualStack"},false]},R,{[bY]:m,[bZ]:[{[ca]:"Region"},"aws-global"]}],[s]:{[cc]:"https://s3.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[cd]:{[ce]:[{[y]:"sigv4",[cf]:v,[cg]:true,[ch]:"us-east-1"}]},[ci]:{}},[bV]:s},{[bX]:[{[bY]:t,[bZ]:[{[ca]:"UseDualStack"},false]},R,{[bY]:m,[bZ]:[{[ca]:"Region"},"aws-global"]}],[s]:{[cc]:"https://s3.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[cd]:{[ce]:[{[y]:"sigv4",[cf]:v,[cg]:true,[ch]:"us-east-1"}]},[ci]:{}},[bV]:s},{[bX]:[{[bY]:t,[bZ]:[{[ca]:"UseDualStack"},false]},R,{[bY]:o,[bZ]:[{[bY]:m,[bZ]:[{[ca]:"Region"},"aws-global"]}]},{[bY]:t,[bZ]:[{[ca]:"UseGlobalEndpoint"},true]}],[bV]:e,[bW]:[{[bX]:[{[bY]:m,[bZ]:[{[ca]:"Region"},"us-east-1"]}],[s]:{[cc]:"https://s3.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[cd]:{[ce]:[{[y]:"sigv4",[cf]:v,[cg]:true,[ch]:"{Region}"}]},[ci]:{}},[bV]:s},{[bX]:[],[s]:{[cc]:"https://s3.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[cd]:{[ce]:[{[y]:"sigv4",[cf]:v,[cg]:true,[ch]:"{Region}"}]},[ci]:{}},[bV]:s}]},{[bX]:[{[bY]:t,[bZ]:[{[ca]:"UseDualStack"},false]},R,{[bY]:o,[bZ]:[{[bY]:m,[bZ]:[{[ca]:"Region"},"aws-global"]}]},{[bY]:t,[bZ]:[{[ca]:"UseGlobalEndpoint"},false]}],[s]:{[cc]:"https://s3.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[cd]:{[ce]:[{[y]:"sigv4",[cf]:v,[cg]:true,[ch]:"{Region}"}]},[ci]:{}},[bV]:s}]}]},{[bX]:[],[p]:"Path-style addressing cannot be used with FIPS",[bV]:p}]}]},{[bX]:[],[p]:"Path-style addressing cannot be used with S3 Accelerate",[bV]:p}]}]},{[bX]:[],[p]:"A valid partition could not be determined",[bV]:p}]}]}, +Y={[bY]:t,[bZ]:[{[ca]:"UseDualStack"},true]}, +Z={[bY]:t,[bZ]:[{[ca]:"Accelerate"},false]}, +aa={[bY]:t,[bZ]:[{[ca]:"UseFIPS"},false]}, +ab={[bY]:o,[bZ]:[{[bY]:m,[bZ]:[{[ca]:"Region"},"aws-global"]}]}, +ac={[bY]:t,[bZ]:[{[ca]:"UseGlobalEndpoint"},true]}, +ad={[ce]:[{[y]:"sigv4",[cf]:v,[cg]:true,[ch]:"{Region}"}]}, +ae={[bY]:t,[bZ]:[{[ca]:"UseGlobalEndpoint"},false]}, +af={[bY]:t,[bZ]:[{[ca]:"UseDualStack"},false]}, +ag={[bX]:[],[p]:"A valid partition could not be determined",[bV]:p}, +ah={[bX]:[{[bY]:t,[bZ]:[{[ca]:"UseFIPS"},true]},{[bY]:m,[bZ]:[{[bY]:x,[bZ]:[{[ca]:"partitionResult"},y]},"aws-cn"]}],[p]:"Partition does not support FIPS",[bV]:p}, +ai={[bY]:t,[bZ]:[{[ca]:"UseFIPS"},true]}, +aj={[bY]:m,[bZ]:[{[bY]:x,[bZ]:[{[ca]:"partitionResult"},y]},"aws-cn"]}, +ak={[bY]:t,[bZ]:[{[ca]:"Accelerate"},true]}, +al={[bX]:[Y,ai,Z,R,{[bY]:m,[bZ]:[{[ca]:"Region"},"aws-global"]}],[s]:{[cc]:"https://{Bucket}.s3-fips.dualstack.us-east-1.{partitionResult#dnsSuffix}",[cd]:{[ce]:[{[y]:"sigv4",[cf]:v,[cg]:true,[ch]:"us-east-1"}]},[ci]:{}},[bV]:s}, +am={[cc]:"https://{Bucket}.s3-fips.dualstack.{Region}.{partitionResult#dnsSuffix}",[cd]:ad,[ci]:{}}, +an={[bX]:[af,ai,Z,R,{[bY]:m,[bZ]:[{[ca]:"Region"},"aws-global"]}],[s]:{[cc]:"https://{Bucket}.s3-fips.us-east-1.{partitionResult#dnsSuffix}",[cd]:{[ce]:[{[y]:"sigv4",[cf]:v,[cg]:true,[ch]:"us-east-1"}]},[ci]:{}},[bV]:s}, +ao={[cc]:"https://{Bucket}.s3-fips.{Region}.{partitionResult#dnsSuffix}",[cd]:ad,[ci]:{}}, +ap={[bX]:[Y,aa,ak,R,{[bY]:m,[bZ]:[{[ca]:"Region"},"aws-global"]}],[s]:{[cc]:"https://{Bucket}.s3-accelerate.dualstack.us-east-1.{partitionResult#dnsSuffix}",[cd]:{[ce]:[{[y]:"sigv4",[cf]:v,[cg]:true,[ch]:"us-east-1"}]},[ci]:{}},[bV]:s}, +aq={[cc]:"https://{Bucket}.s3-accelerate.dualstack.{partitionResult#dnsSuffix}",[cd]:ad,[ci]:{}}, +ar={[bX]:[Y,aa,Z,R,{[bY]:m,[bZ]:[{[ca]:"Region"},"aws-global"]}],[s]:{[cc]:"https://{Bucket}.s3.dualstack.us-east-1.{partitionResult#dnsSuffix}",[cd]:{[ce]:[{[y]:"sigv4",[cf]:v,[cg]:true,[ch]:"us-east-1"}]},[ci]:{}},[bV]:s}, +as={[cc]:"https://{Bucket}.s3.dualstack.{Region}.{partitionResult#dnsSuffix}",[cd]:ad,[ci]:{}}, +at={[bX]:[af,aa,Z,S,T,{[bY]:t,[bZ]:[{[bY]:x,[bZ]:[{[ca]:"url"},"isIp"]},true]},{[bY]:m,[bZ]:[{[ca]:"Region"},"aws-global"]}],[s]:{[cc]:"{url#scheme}://{url#authority}{url#normalizedPath}{Bucket}",[cd]:{[ce]:[{[y]:"sigv4",[cf]:v,[cg]:true,[ch]:"us-east-1"}]},[ci]:{}},[bV]:s}, +au={[bY]:t,[bZ]:[{[bY]:x,[bZ]:[{[ca]:"url"},"isIp"]},true]}, +av={[ca]:"url"}, +aw={[bX]:[af,aa,Z,S,T,{[bY]:t,[bZ]:[{[bY]:x,[bZ]:[av,"isIp"]},false]},{[bY]:m,[bZ]:[{[ca]:"Region"},"aws-global"]}],[s]:{[cc]:"{url#scheme}://{Bucket}.{url#authority}{url#path}",[cd]:{[ce]:[{[y]:"sigv4",[cf]:v,[cg]:true,[ch]:"us-east-1"}]},[ci]:{}},[bV]:s}, +ax={[bY]:t,[bZ]:[{[bY]:x,[bZ]:[av,"isIp"]},false]}, +ay={[cc]:"{url#scheme}://{url#authority}{url#normalizedPath}{Bucket}",[cd]:ad,[ci]:{}}, +az={[cc]:"{url#scheme}://{Bucket}.{url#authority}{url#path}",[cd]:ad,[ci]:{}}, +aA={[bX]:[],[s]:az,[bV]:s}, +aB={[bX]:[af,aa,ak,R,{[bY]:m,[bZ]:[{[ca]:"Region"},"aws-global"]}],[s]:{[cc]:"https://{Bucket}.s3-accelerate.{partitionResult#dnsSuffix}",[cd]:{[ce]:[{[y]:"sigv4",[cf]:v,[cg]:true,[ch]:"us-east-1"}]},[ci]:{}},[bV]:s}, +aC={[cc]:"https://{Bucket}.s3-accelerate.{partitionResult#dnsSuffix}",[cd]:ad,[ci]:{}}, +aD={[bX]:[af,aa,Z,R,{[bY]:m,[bZ]:[{[ca]:"Region"},"aws-global"]}],[s]:{[cc]:A,[cd]:{[ce]:[{[y]:"sigv4",[cf]:v,[cg]:true,[ch]:"us-east-1"}]},[ci]:{}},[bV]:s}, +aE={[cc]:"https://{Bucket}.s3.{Region}.{partitionResult#dnsSuffix}",[cd]:ad,[ci]:{}}, +aF={[bX]:[],[p]:"Invalid region: region was not a valid DNS name.",[bV]:p}, +aG={[ca]:B}, +aH={[ca]:C}, +aI={[bY]:x,[bZ]:[aG,"service"]}, +aJ={[ca]:G}, +aK={[bX]:[Y],[p]:"S3 Object Lambda does not support Dual-stack",[bV]:p}, +aL={[bX]:[ak],[p]:"S3 Object Lambda does not support S3 Accelerate",[bV]:p}, +aM={[bX]:[{[bY]:f,[bZ]:[{[ca]:"DisableAccessPoints"}]},{[bY]:t,[bZ]:[{[ca]:"DisableAccessPoints"},true]}],[p]:"Access points are not supported for this operation",[bV]:p}, +aN={[bX]:[{[bY]:f,[bZ]:[{[ca]:"UseArnRegion"}]},{[bY]:t,[bZ]:[{[ca]:"UseArnRegion"},false]},{[bY]:o,[bZ]:[{[bY]:m,[bZ]:[{[bY]:x,[bZ]:[aG,"region"]},"{Region}"]}]}],[p]:"Invalid configuration: region from ARN `{bucketArn#region}` does not match client region `{Region}` and UseArnRegion is `false`",[bV]:p}, +aO={[bY]:x,[bZ]:[{[ca]:"bucketPartition"},y]}, +aP={[bY]:x,[bZ]:[aG,"accountId"]}, +aQ={[bX]:[ai,{[bY]:m,[bZ]:[aO,"aws-cn"]}],[p]:"Partition does not support FIPS",[bV]:p}, +aR={[ce]:[{[y]:"sigv4",[cf]:E,[cg]:true,[ch]:"{bucketArn#region}"}]}, +aS={[bX]:[],[p]:"Invalid ARN: The access point name may only contain a-z, A-Z, 0-9 and `-`. Found: `{accessPointName}`",[bV]:p}, +aT={[bX]:[],[p]:"Invalid ARN: The account id may only contain a-z, A-Z, 0-9 and `-`. Found: `{bucketArn#accountId}`",[bV]:p}, +aU={[bX]:[],[p]:"Invalid region in ARN: `{bucketArn#region}` (invalid DNS name)",[bV]:p}, +aV={[bX]:[],[p]:"Client was configured for partition `{partitionResult#name}` but ARN (`{Bucket}`) has `{bucketPartition#name}`",[bV]:p}, +aW={[bX]:[],[p]:"Could not load partition for ARN region `{bucketArn#region}`",[bV]:p}, +aX={[bX]:[],[p]:"Invalid ARN: The ARN may only contain a single resource component after `accesspoint`.",[bV]:p}, +aY={[bX]:[],[p]:"Invalid ARN: bucket ARN is missing a region",[bV]:p}, +aZ={[bX]:[],[p]:"Invalid ARN: Expected a resource of the format `accesspoint:` but no name was provided",[bV]:p}, +ba={[ce]:[{[y]:"sigv4",[cf]:v,[cg]:true,[ch]:"{bucketArn#region}"}]}, +bb={[ce]:[{[y]:"sigv4",[cf]:r,[cg]:true,[ch]:"{bucketArn#region}"}]}, +bc={[ca]:"UseObjectLambdaEndpoint"}, +bd={[ce]:[{[y]:"sigv4",[cf]:E,[cg]:true,[ch]:"{Region}"}]}, +be={[bX]:[ai,Y,S,T,{[bY]:m,[bZ]:[{[ca]:"Region"},"aws-global"]}],[s]:{[cc]:L,[cd]:{[ce]:[{[y]:"sigv4",[cf]:v,[cg]:true,[ch]:"us-east-1"}]},[ci]:{}},[bV]:s}, +bf={[bX]:[],[s]:{[cc]:L,[cd]:ad,[ci]:{}},[bV]:s}, +bg={[cc]:L,[cd]:ad,[ci]:{}}, +bh={[bX]:[ai,Y,R,{[bY]:m,[bZ]:[{[ca]:"Region"},"aws-global"]}],[s]:{[cc]:"https://s3-fips.dualstack.us-east-1.{partitionResult#dnsSuffix}",[cd]:{[ce]:[{[y]:"sigv4",[cf]:v,[cg]:true,[ch]:"us-east-1"}]},[ci]:{}},[bV]:s}, +bi={[cc]:"https://s3-fips.dualstack.{Region}.{partitionResult#dnsSuffix}",[cd]:ad,[ci]:{}}, +bj={[bX]:[ai,af,S,T,{[bY]:m,[bZ]:[{[ca]:"Region"},"aws-global"]}],[s]:{[cc]:L,[cd]:{[ce]:[{[y]:"sigv4",[cf]:v,[cg]:true,[ch]:"us-east-1"}]},[ci]:{}},[bV]:s}, +bk={[bX]:[ai,af,R,{[bY]:m,[bZ]:[{[ca]:"Region"},"aws-global"]}],[s]:{[cc]:"https://s3-fips.us-east-1.{partitionResult#dnsSuffix}",[cd]:{[ce]:[{[y]:"sigv4",[cf]:v,[cg]:true,[ch]:"us-east-1"}]},[ci]:{}},[bV]:s}, +bl={[cc]:"https://s3-fips.{Region}.{partitionResult#dnsSuffix}",[cd]:ad,[ci]:{}}, +bm={[bX]:[aa,Y,S,T,{[bY]:m,[bZ]:[{[ca]:"Region"},"aws-global"]}],[s]:{[cc]:L,[cd]:{[ce]:[{[y]:"sigv4",[cf]:v,[cg]:true,[ch]:"us-east-1"}]},[ci]:{}},[bV]:s}, +bn={[bX]:[aa,Y,R,{[bY]:m,[bZ]:[{[ca]:"Region"},"aws-global"]}],[s]:{[cc]:"https://s3.dualstack.us-east-1.{partitionResult#dnsSuffix}",[cd]:{[ce]:[{[y]:"sigv4",[cf]:v,[cg]:true,[ch]:"us-east-1"}]},[ci]:{}},[bV]:s}, +bo={[cc]:"https://s3.dualstack.{Region}.{partitionResult#dnsSuffix}",[cd]:ad,[ci]:{}}, +bp={[bX]:[aa,af,S,T,{[bY]:m,[bZ]:[{[ca]:"Region"},"aws-global"]}],[s]:{[cc]:L,[cd]:{[ce]:[{[y]:"sigv4",[cf]:v,[cg]:true,[ch]:"us-east-1"}]},[ci]:{}},[bV]:s}, +bq={[bX]:[aa,af,R,{[bY]:m,[bZ]:[{[ca]:"Region"},"aws-global"]}],[s]:{[cc]:M,[cd]:{[ce]:[{[y]:"sigv4",[cf]:v,[cg]:true,[ch]:"us-east-1"}]},[ci]:{}},[bV]:s}, +br={[cc]:"https://s3.{Region}.{partitionResult#dnsSuffix}",[cd]:ad,[ci]:{}}, +bs=[], +bt=[{[ca]:"Region"}], +bu=[O], +bv=[{[bY]:n,[bZ]:[{[ca]:k},false]}], +bw=[{[bY]:m,[bZ]:[{[ca]:i},"beta"]}], +bx=[{[ca]:"Endpoint"}], +by=[S,T], +bz=[N], +bA=[{[bY]:u,[bZ]:[O]}], +bB=[Y,S], +bC=[{[bY]:l,[bZ]:bt,[cb]:"partitionResult"}], +bD=[{[bY]:m,[bZ]:[{[ca]:"Region"},"us-east-1"]}], +bE=[{[bY]:n,[bZ]:[{[ca]:"Region"},false]}], +bF=[{[bY]:m,[bZ]:[aH,F]}], +bG=[{[bY]:x,[bZ]:[aG,"resourceId[1]"],[cb]:G},{[bY]:o,[bZ]:[{[bY]:m,[bZ]:[aJ,D]}]}], +bH=[aG,"resourceId[1]"], +bI=[Y], +bJ=[ak], +bK=[{[bY]:o,[bZ]:[{[bY]:m,[bZ]:[{[bY]:x,[bZ]:[aG,"region"]},D]}]}], +bL=[{[bY]:o,[bZ]:[{[bY]:f,[bZ]:[{[bY]:x,[bZ]:[aG,"resourceId[2]"]}]}]}], +bM=[aG,"resourceId[2]"], +bN=[{[bY]:l,[bZ]:[{[bY]:x,[bZ]:[aG,"region"]}],[cb]:"bucketPartition"}], +bO=[{[bY]:m,[bZ]:[aO,{[bY]:x,[bZ]:[{[ca]:"partitionResult"},y]}]}], +bP=[{[bY]:n,[bZ]:[{[bY]:x,[bZ]:[aG,"region"]},true]}], +bQ=[{[bY]:n,[bZ]:[aP,false]}], +bR=[{[bY]:n,[bZ]:[aJ,false]}], +bS=[ai], +bT=[{[bY]:n,[bZ]:[{[ca]:"Region"},true]}], +bU=[bf]; +const _data={version:"1.0",parameters:{Bucket:{required:a,documentation:"The S3 bucket used to send the request. This is an optional parameter that will be set automatically for operations that are scoped to an S3 bucket.",[bV]:c},Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",[bV]:c},UseFIPS:{builtIn:"AWS::UseFIPS",required:b,default:a,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",[bV]:d},UseDualStack:{builtIn:"AWS::UseDualStack",required:b,default:a,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",[bV]:d},Endpoint:{builtIn:"SDK::Endpoint",required:a,documentation:"Override the endpoint used to send this request",[bV]:c},ForcePathStyle:{builtIn:"AWS::S3::ForcePathStyle",required:a,documentation:"When true, force a path-style endpoint to be used where the bucket name is part of the path.",[bV]:d},Accelerate:{builtIn:"AWS::S3::Accelerate",required:b,default:a,documentation:"When true, use S3 Accelerate. NOTE: Not all regions support S3 accelerate.",[bV]:d},UseGlobalEndpoint:{builtIn:"AWS::S3::UseGlobalEndpoint",required:b,default:a,documentation:"Whether the global endpoint should be used, rather then the regional endpoint for us-east-1.",[bV]:d},UseObjectLambdaEndpoint:{required:a,documentation:"Internal parameter to use object lambda endpoint for an operation (eg: WriteGetObjectResponse)",[bV]:d},DisableAccessPoints:{required:a,documentation:"Internal parameter to disable Access Point Buckets",[bV]:d},DisableMultiRegionAccessPoints:{builtIn:"AWS::S3::DisableMultiRegionAccessPoints",required:b,default:a,documentation:"Whether multi-region access points (MRAP) should be disabled.",[bV]:d},UseArnRegion:{builtIn:"AWS::S3::UseArnRegion",required:a,documentation:"When an Access Point ARN is provided and this flag is enabled, the SDK MUST use the ARN's region when constructing the endpoint instead of the client's configured region.",[bV]:d}},[bW]:[{[bX]:bs,[bV]:e,[bW]:[{[bX]:[{[bY]:f,[bZ]:bt}],[bV]:e,[bW]:[{[bX]:bs,[bV]:e,[bW]:[{[bX]:[N,{[bY]:g,[bZ]:[O,49,50,b],[cb]:h},{[bY]:g,[bZ]:[O,8,12,b],[cb]:i},{[bY]:g,[bZ]:[O,0,7,b],[cb]:j},{[bY]:g,[bZ]:[O,32,49,b],[cb]:k},{[bY]:l,[bZ]:bt,[cb]:"regionPartition"},{[bY]:m,[bZ]:[{[ca]:j},"--op-s3"]}],[bV]:e,[bW]:[{[bX]:bv,[bV]:e,[bW]:[{[bX]:bs,[bV]:e,[bW]:[{[bX]:[{[bY]:m,[bZ]:[P,"e"]}],[bV]:e,[bW]:[{[bX]:bw,[bV]:e,[bW]:[Q,{[bX]:by,endpoint:{[cc]:"https://{Bucket}.ec2.{url#authority}",[cd]:U,[ci]:V},[bV]:s}]},{[bX]:bs,endpoint:{[cc]:"https://{Bucket}.ec2.s3-outposts.{Region}.{regionPartition#dnsSuffix}",[cd]:U,[ci]:V},[bV]:s}]},{[bX]:[{[bY]:m,[bZ]:[P,"o"]}],[bV]:e,[bW]:[{[bX]:bw,[bV]:e,[bW]:[Q,{[bX]:by,endpoint:{[cc]:"https://{Bucket}.op-{outpostId}.{url#authority}",[cd]:U,[ci]:V},[bV]:s}]},{[bX]:bs,endpoint:{[cc]:"https://{Bucket}.op-{outpostId}.s3-outposts.{Region}.{regionPartition#dnsSuffix}",[cd]:U,[ci]:V},[bV]:s}]},{[bX]:bs,error:"Unrecognized hardware type: \"Expected hardware type o or e but got {hardwareType}\"",[bV]:p}]}]},{[bX]:bs,error:"Invalid ARN: The outpost Id must only contain a-z, A-Z, 0-9 and `-`.",[bV]:p}]},{[bX]:bz,[bV]:e,[bW]:[{[bX]:[S,{[bY]:o,[bZ]:[{[bY]:f,[bZ]:[{[bY]:q,[bZ]:bx}]}]}],error:"Custom endpoint `{Endpoint}` was not a valid URI",[bV]:p},{[bX]:bs,[bV]:e,[bW]:[{[bX]:[{[bY]:f,[bZ]:[W]},{[bY]:t,[bZ]:[W,b]}],[bV]:e,[bW]:[{[bX]:bs,[bV]:e,[bW]:[{[bX]:bA,error:"Path-style addressing cannot be used with ARN buckets",[bV]:p},X]}]},{[bX]:[{[bY]:w,[bZ]:[O,a]}],[bV]:e,[bW]:[{[bX]:bC,[bV]:e,[bW]:[{[bX]:bs,[bV]:e,[bW]:[{[bX]:bE,[bV]:e,[bW]:[{[bX]:bs,[bV]:e,[bW]:[ah,{[bX]:bs,[bV]:e,[bW]:[{[bX]:[ak,ai],error:"Accelerate cannot be used with FIPS",[bV]:p},{[bX]:bs,[bV]:e,[bW]:[{[bX]:[ak,aj],error:"S3 Accelerate cannot be used in this region",[bV]:p},{[bX]:bs,[bV]:e,[bW]:[{[bX]:[S,Y],error:z,[bV]:p},{[bX]:bs,[bV]:e,[bW]:[{[bX]:[S,ai],error:z,[bV]:p},{[bX]:bs,[bV]:e,[bW]:[{[bX]:[S,ak],error:z,[bV]:p},{[bX]:bs,[bV]:e,[bW]:[al,al,{[bX]:[Y,ai,Z,R,ab,ac],[bV]:e,[bW]:[{[bX]:bs,endpoint:am,[bV]:s}]},{[bX]:[Y,ai,Z,R,ab,ae],endpoint:am,[bV]:s},an,an,{[bX]:[af,ai,Z,R,ab,ac],[bV]:e,[bW]:[{[bX]:bs,endpoint:ao,[bV]:s}]},{[bX]:[af,ai,Z,R,ab,ae],endpoint:ao,[bV]:s},ap,ap,{[bX]:[Y,aa,ak,R,ab,ac],[bV]:e,[bW]:[{[bX]:bs,endpoint:aq,[bV]:s}]},{[bX]:[Y,aa,ak,R,ab,ae],endpoint:aq,[bV]:s},ar,ar,{[bX]:[Y,aa,Z,R,ab,ac],[bV]:e,[bW]:[{[bX]:bs,endpoint:as,[bV]:s}]},{[bX]:[Y,aa,Z,R,ab,ae],endpoint:as,[bV]:s},at,aw,at,aw,{[bX]:[af,aa,Z,S,T,au,ab,ac],[bV]:e,[bW]:[{[bX]:bD,endpoint:ay,[bV]:s},{[bX]:bs,endpoint:ay,[bV]:s}]},{[bX]:[af,aa,Z,S,T,ax,ab,ac],[bV]:e,[bW]:[{[bX]:bD,endpoint:az,[bV]:s},aA]},{[bX]:[af,aa,Z,S,T,au,ab,ae],endpoint:ay,[bV]:s},{[bX]:[af,aa,Z,S,T,ax,ab,ae],endpoint:az,[bV]:s},aB,aB,{[bX]:[af,aa,ak,R,ab,ac],[bV]:e,[bW]:[{[bX]:bD,endpoint:aC,[bV]:s},{[bX]:bs,endpoint:aC,[bV]:s}]},{[bX]:[af,aa,ak,R,ab,ae],endpoint:aC,[bV]:s},aD,aD,{[bX]:[af,aa,Z,R,ab,ac],[bV]:e,[bW]:[{[bX]:bD,endpoint:{[cc]:A,[cd]:ad,[ci]:V},[bV]:s},{[bX]:bs,endpoint:aE,[bV]:s}]},{[bX]:[af,aa,Z,R,ab,ae],endpoint:aE,[bV]:s}]}]}]}]}]}]}]}]},aF]}]},ag]},{[bX]:[S,T,{[bY]:m,[bZ]:[{[bY]:x,[bZ]:[av,"scheme"]},"http"]},{[bY]:w,[bZ]:[O,b]},aa,af,Z],[bV]:e,[bW]:[{[bX]:bC,[bV]:e,[bW]:[{[bX]:bs,[bV]:e,[bW]:[{[bX]:bE,[bV]:e,[bW]:[aA]},aF]}]},ag]},{[bX]:[{[bY]:u,[bZ]:bu,[cb]:B}],[bV]:e,[bW]:[{[bX]:[{[bY]:x,[bZ]:[aG,"resourceId[0]"],[cb]:C},{[bY]:o,[bZ]:[{[bY]:m,[bZ]:[aH,D]}]}],[bV]:e,[bW]:[{[bX]:bs,[bV]:e,[bW]:[{[bX]:[{[bY]:m,[bZ]:[aI,E]}],[bV]:e,[bW]:[{[bX]:bF,[bV]:e,[bW]:[{[bX]:bs,[bV]:e,[bW]:[{[bX]:bG,[bV]:e,[bW]:[{[bX]:bs,[bV]:e,[bW]:[aK,{[bX]:bs,[bV]:e,[bW]:[aL,{[bX]:bs,[bV]:e,[bW]:[{[bX]:bK,[bV]:e,[bW]:[{[bX]:bs,[bV]:e,[bW]:[aM,{[bX]:bs,[bV]:e,[bW]:[{[bX]:bL,[bV]:e,[bW]:[{[bX]:bs,[bV]:e,[bW]:[aN,{[bX]:bs,[bV]:e,[bW]:[{[bX]:bN,[bV]:e,[bW]:[{[bX]:bs,[bV]:e,[bW]:[{[bX]:bC,[bV]:e,[bW]:[{[bX]:bs,[bV]:e,[bW]:[{[bX]:bO,[bV]:e,[bW]:[{[bX]:bs,[bV]:e,[bW]:[{[bX]:bP,[bV]:e,[bW]:[{[bX]:bs,[bV]:e,[bW]:[{[bX]:[{[bY]:m,[bZ]:[aP,D]}],error:"Invalid ARN: Missing account id",[bV]:p},{[bX]:bs,[bV]:e,[bW]:[{[bX]:bQ,[bV]:e,[bW]:[{[bX]:bs,[bV]:e,[bW]:[{[bX]:bR,[bV]:e,[bW]:[{[bX]:bs,[bV]:e,[bW]:[aQ,{[bX]:bs,[bV]:e,[bW]:[{[bX]:by,endpoint:{[cc]:H,[cd]:aR,[ci]:V},[bV]:s},{[bX]:bS,endpoint:{[cc]:"https://{accessPointName}-{bucketArn#accountId}.s3-object-lambda-fips.{bucketArn#region}.{bucketPartition#dnsSuffix}",[cd]:aR,[ci]:V},[bV]:s},{[bX]:bs,endpoint:{[cc]:"https://{accessPointName}-{bucketArn#accountId}.s3-object-lambda.{bucketArn#region}.{bucketPartition#dnsSuffix}",[cd]:aR,[ci]:V},[bV]:s}]}]}]},aS]}]},aT]}]}]},aU]}]},aV]}]},ag]}]},aW]}]}]},aX]}]}]},aY]}]}]}]},aZ]}]},{[bX]:bs,error:"Invalid ARN: Object Lambda ARNs only support `accesspoint` arn types, but found: `{arnType}`",[bV]:p}]},{[bX]:bF,[bV]:e,[bW]:[{[bX]:bG,[bV]:e,[bW]:[{[bX]:bs,[bV]:e,[bW]:[{[bX]:bK,[bV]:e,[bW]:[{[bX]:bF,[bV]:e,[bW]:[{[bX]:bK,[bV]:e,[bW]:[{[bX]:bs,[bV]:e,[bW]:[aM,{[bX]:bs,[bV]:e,[bW]:[{[bX]:bL,[bV]:e,[bW]:[{[bX]:bs,[bV]:e,[bW]:[aN,{[bX]:bs,[bV]:e,[bW]:[{[bX]:bN,[bV]:e,[bW]:[{[bX]:bs,[bV]:e,[bW]:[{[bX]:bC,[bV]:e,[bW]:[{[bX]:bs,[bV]:e,[bW]:[{[bX]:[{[bY]:m,[bZ]:[aO,"{partitionResult#name}"]}],[bV]:e,[bW]:[{[bX]:bs,[bV]:e,[bW]:[{[bX]:bP,[bV]:e,[bW]:[{[bX]:bs,[bV]:e,[bW]:[{[bX]:[{[bY]:m,[bZ]:[aI,v]}],[bV]:e,[bW]:[{[bX]:bs,[bV]:e,[bW]:[{[bX]:bQ,[bV]:e,[bW]:[{[bX]:bs,[bV]:e,[bW]:[{[bX]:bR,[bV]:e,[bW]:[{[bX]:bs,[bV]:e,[bW]:[{[bX]:bJ,error:"Access Points do not support S3 Accelerate",[bV]:p},{[bX]:bs,[bV]:e,[bW]:[aQ,{[bX]:bs,[bV]:e,[bW]:[{[bX]:bB,error:"DualStack cannot be combined with a Host override (PrivateLink)",[bV]:p},{[bX]:bs,[bV]:e,[bW]:[{[bX]:[ai,Y],endpoint:{[cc]:"https://{accessPointName}-{bucketArn#accountId}.s3-accesspoint-fips.dualstack.{bucketArn#region}.{bucketPartition#dnsSuffix}",[cd]:ba,[ci]:V},[bV]:s},{[bX]:[ai,af],endpoint:{[cc]:"https://{accessPointName}-{bucketArn#accountId}.s3-accesspoint-fips.{bucketArn#region}.{bucketPartition#dnsSuffix}",[cd]:ba,[ci]:V},[bV]:s},{[bX]:[aa,Y],endpoint:{[cc]:"https://{accessPointName}-{bucketArn#accountId}.s3-accesspoint.dualstack.{bucketArn#region}.{bucketPartition#dnsSuffix}",[cd]:ba,[ci]:V},[bV]:s},{[bX]:[aa,af,S,T],endpoint:{[cc]:H,[cd]:ba,[ci]:V},[bV]:s},{[bX]:[aa,af],endpoint:{[cc]:"https://{accessPointName}-{bucketArn#accountId}.s3-accesspoint.{bucketArn#region}.{bucketPartition#dnsSuffix}",[cd]:ba,[ci]:V},[bV]:s}]}]}]}]}]},aS]}]},aT]}]},{[bX]:bs,error:"Invalid ARN: The ARN was not for the S3 service, found: {bucketArn#service}",[bV]:p}]}]},aU]}]},aV]}]},ag]}]},aW]}]}]},aX]}]}]},aY]}]},{[bX]:bs,[bV]:e,[bW]:[{[bX]:[{[bY]:n,[bZ]:[aJ,b]}],[bV]:e,[bW]:[{[bX]:bs,[bV]:e,[bW]:[{[bX]:bI,error:"S3 MRAP does not support dual-stack",[bV]:p},{[bX]:bs,[bV]:e,[bW]:[{[bX]:bS,error:"S3 MRAP does not support FIPS",[bV]:p},{[bX]:bs,[bV]:e,[bW]:[{[bX]:bJ,error:"S3 MRAP does not support S3 Accelerate",[bV]:p},{[bX]:bs,[bV]:e,[bW]:[{[bX]:[{[bY]:t,[bZ]:[{[ca]:"DisableMultiRegionAccessPoints"},b]}],error:"Invalid configuration: Multi-Region Access Point ARNs are disabled.",[bV]:p},{[bX]:bs,[bV]:e,[bW]:[{[bX]:[{[bY]:l,[bZ]:bt,[cb]:I}],[bV]:e,[bW]:[{[bX]:bs,[bV]:e,[bW]:[{[bX]:[{[bY]:m,[bZ]:[{[bY]:x,[bZ]:[{[ca]:I},y]},{[bY]:x,[bZ]:[aG,"partition"]}]}],[bV]:e,[bW]:[{[bX]:bs,endpoint:{[cc]:"https://{accessPointName}.accesspoint.s3-global.{mrapPartition#dnsSuffix}",[cd]:{[ce]:[{name:"sigv4a",[cf]:v,[cg]:b,signingRegionSet:["*"]}]},[ci]:V},[bV]:s}]},{[bX]:bs,error:"Client was configured for partition `{mrapPartition#name}` but bucket referred to partition `{bucketArn#partition}`",[bV]:p}]}]},{[bX]:bs,error:"{Region} was not a valid region",[bV]:p}]}]}]}]}]}]},{[bX]:bs,error:"Invalid Access Point Name",[bV]:p}]}]}]},aZ]},{[bX]:[{[bY]:m,[bZ]:[aI,r]}],[bV]:e,[bW]:[{[bX]:bI,error:"S3 Outposts does not support Dual-stack",[bV]:p},{[bX]:bs,[bV]:e,[bW]:[{[bX]:bS,error:"S3 Outposts does not support FIPS",[bV]:p},{[bX]:bs,[bV]:e,[bW]:[{[bX]:bJ,error:"S3 Outposts does not support S3 Accelerate",[bV]:p},{[bX]:bs,[bV]:e,[bW]:[{[bX]:[{[bY]:f,[bZ]:[{[bY]:x,[bZ]:[aG,"resourceId[4]"]}]}],error:"Invalid Arn: Outpost Access Point ARN contains sub resources",[bV]:p},{[bX]:bs,[bV]:e,[bW]:[{[bX]:[{[bY]:x,[bZ]:bH,[cb]:k}],[bV]:e,[bW]:[{[bX]:bs,[bV]:e,[bW]:[{[bX]:bv,[bV]:e,[bW]:[{[bX]:bs,[bV]:e,[bW]:[aN,{[bX]:bs,[bV]:e,[bW]:[{[bX]:bN,[bV]:e,[bW]:[{[bX]:bs,[bV]:e,[bW]:[{[bX]:bC,[bV]:e,[bW]:[{[bX]:bs,[bV]:e,[bW]:[{[bX]:bO,[bV]:e,[bW]:[{[bX]:bs,[bV]:e,[bW]:[{[bX]:bP,[bV]:e,[bW]:[{[bX]:bs,[bV]:e,[bW]:[{[bX]:bQ,[bV]:e,[bW]:[{[bX]:bs,[bV]:e,[bW]:[{[bX]:[{[bY]:x,[bZ]:bM,[cb]:J}],[bV]:e,[bW]:[{[bX]:bs,[bV]:e,[bW]:[{[bX]:[{[bY]:x,[bZ]:[aG,"resourceId[3]"],[cb]:G}],[bV]:e,[bW]:[{[bX]:bs,[bV]:e,[bW]:[{[bX]:[{[bY]:m,[bZ]:[{[ca]:J},F]}],[bV]:e,[bW]:[{[bX]:bs,[bV]:e,[bW]:[{[bX]:by,endpoint:{[cc]:"https://{accessPointName}-{bucketArn#accountId}.{outpostId}.{url#authority}",[cd]:bb,[ci]:V},[bV]:s},{[bX]:bs,endpoint:{[cc]:"https://{accessPointName}-{bucketArn#accountId}.{outpostId}.s3-outposts.{bucketArn#region}.{bucketPartition#dnsSuffix}",[cd]:bb,[ci]:V},[bV]:s}]}]},{[bX]:bs,error:"Expected an outpost type `accesspoint`, found {outpostType}",[bV]:p}]}]},{[bX]:bs,error:"Invalid ARN: expected an access point name",[bV]:p}]}]},{[bX]:bs,error:"Invalid ARN: Expected a 4-component resource",[bV]:p}]}]},aT]}]},aU]}]},aV]}]},ag]}]},{[bX]:bs,error:"Could not load partition for ARN region {bucketArn#region}",[bV]:p}]}]}]},{[bX]:bs,error:"Invalid ARN: The outpost Id may only contain a-z, A-Z, 0-9 and `-`. Found: `{outpostId}`",[bV]:p}]}]},{[bX]:bs,error:"Invalid ARN: The Outpost Id was not set",[bV]:p}]}]}]}]}]},{[bX]:bs,error:"Invalid ARN: Unrecognized format: {Bucket} (type: {arnType})",[bV]:p}]}]},{[bX]:bs,error:"Invalid ARN: No ARN type specified",[bV]:p}]},{[bX]:[{[bY]:g,[bZ]:[O,0,4,a],[cb]:K},{[bY]:m,[bZ]:[{[ca]:K},"arn:"]},{[bY]:o,[bZ]:[{[bY]:f,[bZ]:bA}]}],error:"Invalid ARN: `{Bucket}` was not a valid ARN",[bV]:p},X]}]},{[bX]:[{[bY]:f,[bZ]:[bc]},{[bY]:t,[bZ]:[bc,b]}],[bV]:e,[bW]:[{[bX]:bC,[bV]:e,[bW]:[{[bX]:bs,[bV]:e,[bW]:[{[bX]:bT,[bV]:e,[bW]:[{[bX]:bs,[bV]:e,[bW]:[aK,{[bX]:bs,[bV]:e,[bW]:[aL,{[bX]:bs,[bV]:e,[bW]:[ah,{[bX]:bs,[bV]:e,[bW]:[{[bX]:by,endpoint:{[cc]:L,[cd]:bd,[ci]:V},[bV]:s},{[bX]:bS,endpoint:{[cc]:"https://s3-object-lambda-fips.{Region}.{partitionResult#dnsSuffix}",[cd]:bd,[ci]:V},[bV]:s},{[bX]:bs,endpoint:{[cc]:"https://s3-object-lambda.{Region}.{partitionResult#dnsSuffix}",[cd]:bd,[ci]:V},[bV]:s}]}]}]}]}]},aF]}]},ag]},{[bX]:[{[bY]:o,[bZ]:bz}],[bV]:e,[bW]:[{[bX]:bC,[bV]:e,[bW]:[{[bX]:bs,[bV]:e,[bW]:[{[bX]:bT,[bV]:e,[bW]:[{[bX]:bs,[bV]:e,[bW]:[ah,{[bX]:bs,[bV]:e,[bW]:[be,be,{[bX]:[ai,Y,S,T,ab,ac],[bV]:e,[bW]:bU},{[bX]:[ai,Y,S,T,ab,ae],endpoint:bg,[bV]:s},bh,bh,{[bX]:[ai,Y,R,ab,ac],[bV]:e,[bW]:[{[bX]:bs,endpoint:bi,[bV]:s}]},{[bX]:[ai,Y,R,ab,ae],endpoint:bi,[bV]:s},bj,bj,{[bX]:[ai,af,S,T,ab,ac],[bV]:e,[bW]:bU},{[bX]:[ai,af,S,T,ab,ae],endpoint:bg,[bV]:s},bk,bk,{[bX]:[ai,af,R,ab,ac],[bV]:e,[bW]:[{[bX]:bs,endpoint:bl,[bV]:s}]},{[bX]:[ai,af,R,ab,ae],endpoint:bl,[bV]:s},bm,bm,{[bX]:[aa,Y,S,T,ab,ac],[bV]:e,[bW]:bU},{[bX]:[aa,Y,S,T,ab,ae],endpoint:bg,[bV]:s},bn,bn,{[bX]:[aa,Y,R,ab,ac],[bV]:e,[bW]:[{[bX]:bs,endpoint:bo,[bV]:s}]},{[bX]:[aa,Y,R,ab,ae],endpoint:bo,[bV]:s},bp,bp,{[bX]:[aa,af,S,T,ab,ac],[bV]:e,[bW]:[{[bX]:bD,endpoint:bg,[bV]:s},bf]},{[bX]:[aa,af,S,T,ab,ae],endpoint:bg,[bV]:s},bq,bq,{[bX]:[aa,af,R,ab,ac],[bV]:e,[bW]:[{[bX]:bD,endpoint:{[cc]:M,[cd]:ad,[ci]:V},[bV]:s},{[bX]:bs,endpoint:br,[bV]:s}]},{[bX]:[aa,af,R,ab,ae],endpoint:br,[bV]:s}]}]}]},aF]}]},ag]}]}]},{[bX]:bs,error:"A region must be set when sending requests to S3.",[bV]:p}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-s3outposts/src/endpoint/ruleset.ts b/clients/client-s3outposts/src/endpoint/ruleset.ts index 1d2557133348b..0d522d57c33b7 100644 --- a/clients/client-s3outposts/src/endpoint/ruleset.ts +++ b/clients/client-s3outposts/src/endpoint/ruleset.ts @@ -1,320 +1,31 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: false, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://s3-outposts-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://s3-outposts-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://s3-outposts.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://s3-outposts.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/s3outposts.json */ + +const s="fn", +t="argv", +u="ref"; +const a=false, +b=true, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i={[u]:"Endpoint"}, +j={[s]:"booleanEquals",[t]:[{[u]:"UseFIPS"},true]}, +k={[s]:"booleanEquals",[t]:[{[u]:"UseDualStack"},true]}, +l={}, +m={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsFIPS"]}]}, +n={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsDualStack"]}]}, +o=[i], +p=[j], +q=[], +r=[k]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:b,default:a,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:b,default:a,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:a,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[s]:"aws.partition",[t]:[{[u]:"Region"}],assign:e}],type:f,rules:[{conditions:[{[s]:"isSet",[t]:o},{[s]:"parseURL",[t]:o,assign:"url"}],type:f,rules:[{conditions:p,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:q,type:f,rules:[{conditions:r,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:q,endpoint:{url:i,properties:l,headers:l},type:h}]}]},{conditions:[j,k],type:f,rules:[{conditions:[m,n],type:f,rules:[{conditions:q,endpoint:{url:"https://s3-outposts-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:p,type:f,rules:[{conditions:[m],type:f,rules:[{conditions:q,type:f,rules:[{conditions:q,endpoint:{url:"https://s3-outposts-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]},{conditions:q,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:r,type:f,rules:[{conditions:[n],type:f,rules:[{conditions:q,endpoint:{url:"https://s3-outposts.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:q,endpoint:{url:"https://s3-outposts.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-sagemaker-a2i-runtime/src/endpoint/ruleset.ts b/clients/client-sagemaker-a2i-runtime/src/endpoint/ruleset.ts index 92b317225d65b..d6244619a0758 100644 --- a/clients/client-sagemaker-a2i-runtime/src/endpoint/ruleset.ts +++ b/clients/client-sagemaker-a2i-runtime/src/endpoint/ruleset.ts @@ -1,314 +1,31 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: false, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://a2i-runtime.sagemaker-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://a2i-runtime.sagemaker-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://a2i-runtime.sagemaker.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://a2i-runtime.sagemaker.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/sagemaker-a2i-runtime.json */ + +const s="fn", +t="argv", +u="ref"; +const a=false, +b=true, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i={[u]:"Endpoint"}, +j={[s]:"booleanEquals",[t]:[{[u]:"UseFIPS"},true]}, +k={[s]:"booleanEquals",[t]:[{[u]:"UseDualStack"},true]}, +l={}, +m={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsFIPS"]}]}, +n={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsDualStack"]}]}, +o=[i], +p=[j], +q=[], +r=[k]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:b,default:a,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:b,default:a,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:a,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[s]:"aws.partition",[t]:[{[u]:"Region"}],assign:e}],type:f,rules:[{conditions:[{[s]:"isSet",[t]:o},{[s]:"parseURL",[t]:o,assign:"url"}],type:f,rules:[{conditions:p,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:q,type:f,rules:[{conditions:r,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:q,endpoint:{url:i,properties:l,headers:l},type:h}]}]},{conditions:[j,k],type:f,rules:[{conditions:[m,n],type:f,rules:[{conditions:q,endpoint:{url:"https://a2i-runtime.sagemaker-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:p,type:f,rules:[{conditions:[m],type:f,rules:[{conditions:q,endpoint:{url:"https://a2i-runtime.sagemaker-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:r,type:f,rules:[{conditions:[n],type:f,rules:[{conditions:q,endpoint:{url:"https://a2i-runtime.sagemaker.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:q,endpoint:{url:"https://a2i-runtime.sagemaker.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-sagemaker-edge/src/endpoint/ruleset.ts b/clients/client-sagemaker-edge/src/endpoint/ruleset.ts index 4c39e3ca903a0..60b816ece1bc9 100644 --- a/clients/client-sagemaker-edge/src/endpoint/ruleset.ts +++ b/clients/client-sagemaker-edge/src/endpoint/ruleset.ts @@ -1,320 +1,31 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: false, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://edge.sagemaker-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://edge.sagemaker-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://edge.sagemaker.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://edge.sagemaker.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/sagemaker-edge.json */ + +const s="fn", +t="argv", +u="ref"; +const a=false, +b=true, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i={[u]:"Endpoint"}, +j={[s]:"booleanEquals",[t]:[{[u]:"UseFIPS"},true]}, +k={[s]:"booleanEquals",[t]:[{[u]:"UseDualStack"},true]}, +l={}, +m={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsFIPS"]}]}, +n={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsDualStack"]}]}, +o=[i], +p=[j], +q=[], +r=[k]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:b,default:a,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:b,default:a,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:a,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[s]:"aws.partition",[t]:[{[u]:"Region"}],assign:e}],type:f,rules:[{conditions:[{[s]:"isSet",[t]:o},{[s]:"parseURL",[t]:o,assign:"url"}],type:f,rules:[{conditions:p,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:q,type:f,rules:[{conditions:r,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:q,endpoint:{url:i,properties:l,headers:l},type:h}]}]},{conditions:[j,k],type:f,rules:[{conditions:[m,n],type:f,rules:[{conditions:q,endpoint:{url:"https://edge.sagemaker-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:p,type:f,rules:[{conditions:[m],type:f,rules:[{conditions:q,type:f,rules:[{conditions:q,endpoint:{url:"https://edge.sagemaker-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]},{conditions:q,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:r,type:f,rules:[{conditions:[n],type:f,rules:[{conditions:q,endpoint:{url:"https://edge.sagemaker.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:q,endpoint:{url:"https://edge.sagemaker.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-sagemaker-featurestore-runtime/src/endpoint/ruleset.ts b/clients/client-sagemaker-featurestore-runtime/src/endpoint/ruleset.ts index bf9dfecb4a532..802babefc3c59 100644 --- a/clients/client-sagemaker-featurestore-runtime/src/endpoint/ruleset.ts +++ b/clients/client-sagemaker-featurestore-runtime/src/endpoint/ruleset.ts @@ -1,314 +1,31 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: true, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://featurestore-runtime.sagemaker-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://featurestore-runtime.sagemaker-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://featurestore-runtime.sagemaker.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://featurestore-runtime.sagemaker.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/sagemaker-featurestore-runtime.json */ + +const s="fn", +t="argv", +u="ref"; +const a=true, +b=false, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i={[u]:"Endpoint"}, +j={[s]:"booleanEquals",[t]:[{[u]:"UseFIPS"},true]}, +k={[s]:"booleanEquals",[t]:[{[u]:"UseDualStack"},true]}, +l={}, +m={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsFIPS"]}]}, +n={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsDualStack"]}]}, +o=[i], +p=[j], +q=[], +r=[k]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:a,default:b,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:a,default:b,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:b,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[s]:"aws.partition",[t]:[{[u]:"Region"}],assign:e}],type:f,rules:[{conditions:[{[s]:"isSet",[t]:o},{[s]:"parseURL",[t]:o,assign:"url"}],type:f,rules:[{conditions:p,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:q,type:f,rules:[{conditions:r,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:q,endpoint:{url:i,properties:l,headers:l},type:h}]}]},{conditions:[j,k],type:f,rules:[{conditions:[m,n],type:f,rules:[{conditions:q,endpoint:{url:"https://featurestore-runtime.sagemaker-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:p,type:f,rules:[{conditions:[m],type:f,rules:[{conditions:q,endpoint:{url:"https://featurestore-runtime.sagemaker-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:r,type:f,rules:[{conditions:[n],type:f,rules:[{conditions:q,endpoint:{url:"https://featurestore-runtime.sagemaker.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:q,endpoint:{url:"https://featurestore-runtime.sagemaker.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-sagemaker-geospatial/src/endpoint/ruleset.ts b/clients/client-sagemaker-geospatial/src/endpoint/ruleset.ts index 33a7abbc5abc5..54b3d0cc89933 100644 --- a/clients/client-sagemaker-geospatial/src/endpoint/ruleset.ts +++ b/clients/client-sagemaker-geospatial/src/endpoint/ruleset.ts @@ -1,314 +1,31 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: true, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://sagemaker-geospatial-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://sagemaker-geospatial-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://sagemaker-geospatial.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://sagemaker-geospatial.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/sagemaker-geospatial.json */ + +const s="fn", +t="argv", +u="ref"; +const a=true, +b=false, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i={[u]:"Endpoint"}, +j={[s]:"booleanEquals",[t]:[{[u]:"UseFIPS"},true]}, +k={[s]:"booleanEquals",[t]:[{[u]:"UseDualStack"},true]}, +l={}, +m={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsFIPS"]}]}, +n={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsDualStack"]}]}, +o=[i], +p=[j], +q=[], +r=[k]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:a,default:b,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:a,default:b,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:b,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[s]:"aws.partition",[t]:[{[u]:"Region"}],assign:e}],type:f,rules:[{conditions:[{[s]:"isSet",[t]:o},{[s]:"parseURL",[t]:o,assign:"url"}],type:f,rules:[{conditions:p,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:q,type:f,rules:[{conditions:r,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:q,endpoint:{url:i,properties:l,headers:l},type:h}]}]},{conditions:[j,k],type:f,rules:[{conditions:[m,n],type:f,rules:[{conditions:q,endpoint:{url:"https://sagemaker-geospatial-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:p,type:f,rules:[{conditions:[m],type:f,rules:[{conditions:q,endpoint:{url:"https://sagemaker-geospatial-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:r,type:f,rules:[{conditions:[n],type:f,rules:[{conditions:q,endpoint:{url:"https://sagemaker-geospatial.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:q,endpoint:{url:"https://sagemaker-geospatial.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-sagemaker-metrics/src/endpoint/ruleset.ts b/clients/client-sagemaker-metrics/src/endpoint/ruleset.ts index 8b6ccc9c04c0a..49151729f2166 100644 --- a/clients/client-sagemaker-metrics/src/endpoint/ruleset.ts +++ b/clients/client-sagemaker-metrics/src/endpoint/ruleset.ts @@ -1,305 +1,30 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: true, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://metrics.sagemaker-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://metrics.sagemaker-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://metrics.sagemaker.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://metrics.sagemaker.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/sagemaker-metrics.json */ + +const r="fn", +s="argv", +t="ref"; +const a=true, +b=false, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i={[t]:"Endpoint"}, +j={[r]:"booleanEquals",[s]:[{[t]:"UseFIPS"},true]}, +k={[r]:"booleanEquals",[s]:[{[t]:"UseDualStack"},true]}, +l={}, +m={[r]:"booleanEquals",[s]:[true,{[r]:"getAttr",[s]:[{[t]:e},"supportsFIPS"]}]}, +n={[r]:"booleanEquals",[s]:[true,{[r]:"getAttr",[s]:[{[t]:e},"supportsDualStack"]}]}, +o=[j], +p=[], +q=[k]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:a,default:b,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:a,default:b,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:b,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[r]:"aws.partition",[s]:[{[t]:"Region"}],assign:e}],type:f,rules:[{conditions:[{[r]:"isSet",[s]:[i]}],type:f,rules:[{conditions:o,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:p,type:f,rules:[{conditions:q,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:p,endpoint:{url:i,properties:l,headers:l},type:h}]}]},{conditions:[j,k],type:f,rules:[{conditions:[m,n],type:f,rules:[{conditions:p,endpoint:{url:"https://metrics.sagemaker-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:p,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:o,type:f,rules:[{conditions:[m],type:f,rules:[{conditions:p,endpoint:{url:"https://metrics.sagemaker-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]},{conditions:p,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:q,type:f,rules:[{conditions:[n],type:f,rules:[{conditions:p,endpoint:{url:"https://metrics.sagemaker.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:p,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:p,endpoint:{url:"https://metrics.sagemaker.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-sagemaker-runtime/src/endpoint/ruleset.ts b/clients/client-sagemaker-runtime/src/endpoint/ruleset.ts index 761c9bd52bd74..bf0b8c0307963 100644 --- a/clients/client-sagemaker-runtime/src/endpoint/ruleset.ts +++ b/clients/client-sagemaker-runtime/src/endpoint/ruleset.ts @@ -1,370 +1,34 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: false, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://runtime.sagemaker-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "stringEquals", - argv: [ - "aws", - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "name", - ], - }, - ], - }, - ], - endpoint: { - url: "https://runtime-fips.sagemaker.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - { - conditions: [ - { - fn: "stringEquals", - argv: [ - "aws-us-gov", - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "name", - ], - }, - ], - }, - ], - endpoint: { - url: "https://runtime.sagemaker.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - { - conditions: [], - endpoint: { - url: "https://runtime.sagemaker-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://runtime.sagemaker.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://runtime.sagemaker.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/sagemaker-runtime.json */ + +const v="fn", +w="argv", +x="ref"; +const a=false, +b=true, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i="stringEquals", +j={[x]:"Endpoint"}, +k={[v]:"booleanEquals",[w]:[{[x]:"UseFIPS"},true]}, +l={[v]:"booleanEquals",[w]:[{[x]:"UseDualStack"},true]}, +m={}, +n={[v]:"booleanEquals",[w]:[true,{[v]:"getAttr",[w]:[{[x]:e},"supportsFIPS"]}]}, +o={[v]:"booleanEquals",[w]:[true,{[v]:"getAttr",[w]:[{[x]:e},"supportsDualStack"]}]}, +p={[v]:"getAttr",[w]:[{[x]:e},"name"]}, +q={"url":"https://runtime.sagemaker.{Region}.{PartitionResult#dnsSuffix}","properties":{},"headers":{}}, +r=[j], +s=[k], +t=[], +u=[l]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:b,default:a,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:b,default:a,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:a,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[v]:"aws.partition",[w]:[{[x]:"Region"}],assign:e}],type:f,rules:[{conditions:[{[v]:"isSet",[w]:r},{[v]:"parseURL",[w]:r,assign:"url"}],type:f,rules:[{conditions:s,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:t,type:f,rules:[{conditions:u,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:t,endpoint:{url:j,properties:m,headers:m},type:h}]}]},{conditions:[k,l],type:f,rules:[{conditions:[n,o],type:f,rules:[{conditions:t,endpoint:{url:"https://runtime.sagemaker-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:m,headers:m},type:h}]},{conditions:t,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:s,type:f,rules:[{conditions:[n],type:f,rules:[{conditions:t,type:f,rules:[{conditions:[{[v]:i,[w]:["aws",p]}],endpoint:{url:"https://runtime-fips.sagemaker.{Region}.{PartitionResult#dnsSuffix}",properties:m,headers:m},type:h},{conditions:[{[v]:i,[w]:["aws-us-gov",p]}],endpoint:q,type:h},{conditions:t,endpoint:{url:"https://runtime.sagemaker-fips.{Region}.{PartitionResult#dnsSuffix}",properties:m,headers:m},type:h}]}]},{conditions:t,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:u,type:f,rules:[{conditions:[o],type:f,rules:[{conditions:t,endpoint:{url:"https://runtime.sagemaker.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:m,headers:m},type:h}]},{conditions:t,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:t,endpoint:q,type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-sagemaker/src/endpoint/ruleset.ts b/clients/client-sagemaker/src/endpoint/ruleset.ts index 38c0c7e2dba8e..2795e64b56368 100644 --- a/clients/client-sagemaker/src/endpoint/ruleset.ts +++ b/clients/client-sagemaker/src/endpoint/ruleset.ts @@ -1,380 +1,34 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: true, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://api.sagemaker-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "stringEquals", - argv: [ - "aws", - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "name", - ], - }, - ], - }, - ], - endpoint: { - url: "https://api-fips.sagemaker.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - { - conditions: [ - { - fn: "stringEquals", - argv: [ - { - ref: "Region", - }, - "us-gov-west-1-secondary", - ], - }, - ], - endpoint: { - url: "https://api.sagemaker.us-gov-west-1.amazonaws.com", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - { - conditions: [ - { - fn: "stringEquals", - argv: [ - "aws-us-gov", - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "name", - ], - }, - ], - }, - ], - endpoint: { - url: "https://api-fips.sagemaker.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - { - conditions: [], - endpoint: { - url: "https://api.sagemaker-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://api.sagemaker.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://api.sagemaker.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/sagemaker.json */ + +const v="fn", +w="argv", +x="ref"; +const a=true, +b=false, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i="stringEquals", +j={[x]:"Region"}, +k={[x]:"Endpoint"}, +l={[v]:"booleanEquals",[w]:[{[x]:"UseFIPS"},true]}, +m={[v]:"booleanEquals",[w]:[{[x]:"UseDualStack"},true]}, +n={}, +o={[v]:"booleanEquals",[w]:[true,{[v]:"getAttr",[w]:[{[x]:e},"supportsFIPS"]}]}, +p={[v]:"booleanEquals",[w]:[true,{[v]:"getAttr",[w]:[{[x]:e},"supportsDualStack"]}]}, +q={[v]:"getAttr",[w]:[{[x]:e},"name"]}, +r={"url":"https://api-fips.sagemaker.{Region}.{PartitionResult#dnsSuffix}","properties":{},"headers":{}}, +s=[l], +t=[], +u=[m]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:a,default:b,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:a,default:b,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:b,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[v]:"aws.partition",[w]:[j],assign:e}],type:f,rules:[{conditions:[{[v]:"isSet",[w]:[k]}],type:f,rules:[{conditions:s,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:t,type:f,rules:[{conditions:u,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:t,endpoint:{url:k,properties:n,headers:n},type:h}]}]},{conditions:[l,m],type:f,rules:[{conditions:[o,p],type:f,rules:[{conditions:t,endpoint:{url:"https://api.sagemaker-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:n,headers:n},type:h}]},{conditions:t,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:s,type:f,rules:[{conditions:[o],type:f,rules:[{conditions:t,type:f,rules:[{conditions:[{[v]:i,[w]:["aws",q]}],endpoint:r,type:h},{conditions:[{[v]:i,[w]:[j,"us-gov-west-1-secondary"]}],endpoint:{url:"https://api.sagemaker.us-gov-west-1.amazonaws.com",properties:n,headers:n},type:h},{conditions:[{[v]:i,[w]:["aws-us-gov",q]}],endpoint:r,type:h},{conditions:t,endpoint:{url:"https://api.sagemaker-fips.{Region}.{PartitionResult#dnsSuffix}",properties:n,headers:n},type:h}]}]},{conditions:t,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:u,type:f,rules:[{conditions:[p],type:f,rules:[{conditions:t,endpoint:{url:"https://api.sagemaker.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:n,headers:n},type:h}]},{conditions:t,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:t,endpoint:{url:"https://api.sagemaker.{Region}.{PartitionResult#dnsSuffix}",properties:n,headers:n},type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-savingsplans/src/endpoint/ruleset.ts b/clients/client-savingsplans/src/endpoint/ruleset.ts index e38b209973ef4..9557a95948b43 100644 --- a/clients/client-savingsplans/src/endpoint/ruleset.ts +++ b/clients/client-savingsplans/src/endpoint/ruleset.ts @@ -1,596 +1,42 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: false, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "stringEquals", - argv: [ - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "name", - ], - }, - "aws", - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://savingsplans-fips.{Region}.api.aws", - properties: { - authSchemes: [ - { - name: "sigv4", - signingName: "savingsplans", - signingRegion: "us-east-1", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://savingsplans-fips.{Region}.amazonaws.com", - properties: { - authSchemes: [ - { - name: "sigv4", - signingName: "savingsplans", - signingRegion: "us-east-1", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://savingsplans.{Region}.api.aws", - properties: { - authSchemes: [ - { - name: "sigv4", - signingName: "savingsplans", - signingRegion: "us-east-1", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://savingsplans.amazonaws.com", - properties: { - authSchemes: [ - { - name: "sigv4", - signingName: "savingsplans", - signingRegion: "us-east-1", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://savingsplans-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://savingsplans-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://savingsplans.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "stringEquals", - argv: [ - { - ref: "Region", - }, - "aws-global", - ], - }, - ], - endpoint: { - url: "https://savingsplans.amazonaws.com", - properties: { - authSchemes: [ - { - name: "sigv4", - signingName: "savingsplans", - signingRegion: "us-east-1", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - { - conditions: [], - endpoint: { - url: "https://savingsplans.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/savingsplans.json */ + +const B="type", +C="conditions", +D="fn", +E="argv", +F="ref"; +const a=false, +b=true, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i="stringEquals", +j="getAttr", +k={[F]:"Region"}, +l={[F]:"Endpoint"}, +m={}, +n={[F]:e}, +o={"authSchemes":[{"name":"sigv4","signingName":"savingsplans","signingRegion":"us-east-1"}]}, +p={[C]:[],[g]:"FIPS and DualStack are enabled, but this partition does not support one or both",[B]:g}, +q={[C]:[],[g]:"FIPS is enabled but this partition does not support FIPS",[B]:g}, +r={[C]:[],[g]:"DualStack is enabled but this partition does not support DualStack",[B]:g}, +s={"url":"https://savingsplans.amazonaws.com","properties":o,"headers":{}}, +t=[l], +u=[{[D]:"booleanEquals",[E]:[{[F]:"UseFIPS"},true]}], +v=[], +w=[{[D]:"booleanEquals",[E]:[{[F]:"UseDualStack"},true]}], +x=[{[D]:"booleanEquals",[E]:[{[F]:"UseFIPS"},true]},{[D]:"booleanEquals",[E]:[{[F]:"UseDualStack"},true]}], +y=[{[D]:"booleanEquals",[E]:[true,{[D]:j,[E]:[n,"supportsFIPS"]}]},{[D]:"booleanEquals",[E]:[true,{[D]:j,[E]:[n,"supportsDualStack"]}]}], +z=[{[D]:"booleanEquals",[E]:[true,{[D]:j,[E]:[n,"supportsFIPS"]}]}], +A=[{[D]:"booleanEquals",[E]:[true,{[D]:j,[E]:[n,"supportsDualStack"]}]}]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",[B]:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:b,default:a,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",[B]:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:b,default:a,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",[B]:d},Endpoint:{builtIn:"SDK::Endpoint",required:a,documentation:"Override the endpoint used to send this request",[B]:c}},rules:[{[C]:[{[D]:"aws.partition",[E]:[k],assign:e}],[B]:f,rules:[{[C]:[{[D]:"isSet",[E]:t},{[D]:"parseURL",[E]:t,assign:"url"}],[B]:f,rules:[{[C]:u,error:"Invalid Configuration: FIPS and custom endpoint are not supported",[B]:g},{[C]:v,[B]:f,rules:[{[C]:w,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",[B]:g},{[C]:v,endpoint:{url:l,properties:m,headers:m},[B]:h}]}]},{[C]:[{[D]:i,[E]:[{[D]:j,[E]:[n,"name"]},"aws"]}],[B]:f,rules:[{[C]:x,[B]:f,rules:[{[C]:y,[B]:f,rules:[{[C]:v,endpoint:{url:"https://savingsplans-fips.{Region}.api.aws",properties:o,headers:m},[B]:h}]},p]},{[C]:u,[B]:f,rules:[{[C]:z,[B]:f,rules:[{[C]:v,endpoint:{url:"https://savingsplans-fips.{Region}.amazonaws.com",properties:o,headers:m},[B]:h}]},q]},{[C]:w,[B]:f,rules:[{[C]:A,[B]:f,rules:[{[C]:v,endpoint:{url:"https://savingsplans.{Region}.api.aws",properties:o,headers:m},[B]:h}]},r]},{[C]:v,endpoint:s,[B]:h}]},{[C]:x,[B]:f,rules:[{[C]:y,[B]:f,rules:[{[C]:v,endpoint:{url:"https://savingsplans-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:m,headers:m},[B]:h}]},p]},{[C]:u,[B]:f,rules:[{[C]:z,[B]:f,rules:[{[C]:v,[B]:f,rules:[{[C]:v,endpoint:{url:"https://savingsplans-fips.{Region}.{PartitionResult#dnsSuffix}",properties:m,headers:m},[B]:h}]}]},q]},{[C]:w,[B]:f,rules:[{[C]:A,[B]:f,rules:[{[C]:v,endpoint:{url:"https://savingsplans.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:m,headers:m},[B]:h}]},r]},{[C]:v,[B]:f,rules:[{[C]:[{[D]:i,[E]:[k,"aws-global"]}],endpoint:s,[B]:h},{[C]:v,endpoint:{url:"https://savingsplans.{Region}.{PartitionResult#dnsSuffix}",properties:m,headers:m},[B]:h}]}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-scheduler/src/endpoint/ruleset.ts b/clients/client-scheduler/src/endpoint/ruleset.ts index 48be198b52f18..93ba919b08f8d 100644 --- a/clients/client-scheduler/src/endpoint/ruleset.ts +++ b/clients/client-scheduler/src/endpoint/ruleset.ts @@ -1,314 +1,31 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: false, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://scheduler-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://scheduler-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://scheduler.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://scheduler.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/scheduler.json */ + +const s="fn", +t="argv", +u="ref"; +const a=false, +b=true, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i={[u]:"Endpoint"}, +j={[s]:"booleanEquals",[t]:[{[u]:"UseFIPS"},true]}, +k={[s]:"booleanEquals",[t]:[{[u]:"UseDualStack"},true]}, +l={}, +m={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsFIPS"]}]}, +n={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsDualStack"]}]}, +o=[i], +p=[j], +q=[], +r=[k]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:b,default:a,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:b,default:a,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:a,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[s]:"aws.partition",[t]:[{[u]:"Region"}],assign:e}],type:f,rules:[{conditions:[{[s]:"isSet",[t]:o},{[s]:"parseURL",[t]:o,assign:"url"}],type:f,rules:[{conditions:p,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:q,type:f,rules:[{conditions:r,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:q,endpoint:{url:i,properties:l,headers:l},type:h}]}]},{conditions:[j,k],type:f,rules:[{conditions:[m,n],type:f,rules:[{conditions:q,endpoint:{url:"https://scheduler-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:p,type:f,rules:[{conditions:[m],type:f,rules:[{conditions:q,endpoint:{url:"https://scheduler-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:r,type:f,rules:[{conditions:[n],type:f,rules:[{conditions:q,endpoint:{url:"https://scheduler.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:q,endpoint:{url:"https://scheduler.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-schemas/src/endpoint/ruleset.ts b/clients/client-schemas/src/endpoint/ruleset.ts index bbd761ce7c0b7..a37e9d18cbe1e 100644 --- a/clients/client-schemas/src/endpoint/ruleset.ts +++ b/clients/client-schemas/src/endpoint/ruleset.ts @@ -1,320 +1,31 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: false, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://schemas-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://schemas-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://schemas.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://schemas.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/schemas.json */ + +const s="fn", +t="argv", +u="ref"; +const a=false, +b=true, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i={[u]:"Endpoint"}, +j={[s]:"booleanEquals",[t]:[{[u]:"UseFIPS"},true]}, +k={[s]:"booleanEquals",[t]:[{[u]:"UseDualStack"},true]}, +l={}, +m={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsFIPS"]}]}, +n={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsDualStack"]}]}, +o=[i], +p=[j], +q=[], +r=[k]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:b,default:a,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:b,default:a,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:a,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[s]:"aws.partition",[t]:[{[u]:"Region"}],assign:e}],type:f,rules:[{conditions:[{[s]:"isSet",[t]:o},{[s]:"parseURL",[t]:o,assign:"url"}],type:f,rules:[{conditions:p,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:q,type:f,rules:[{conditions:r,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:q,endpoint:{url:i,properties:l,headers:l},type:h}]}]},{conditions:[j,k],type:f,rules:[{conditions:[m,n],type:f,rules:[{conditions:q,endpoint:{url:"https://schemas-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:p,type:f,rules:[{conditions:[m],type:f,rules:[{conditions:q,type:f,rules:[{conditions:q,endpoint:{url:"https://schemas-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]},{conditions:q,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:r,type:f,rules:[{conditions:[n],type:f,rules:[{conditions:q,endpoint:{url:"https://schemas.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:q,endpoint:{url:"https://schemas.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-secrets-manager/src/endpoint/ruleset.ts b/clients/client-secrets-manager/src/endpoint/ruleset.ts index c959339e51f4e..4bee4a6025726 100644 --- a/clients/client-secrets-manager/src/endpoint/ruleset.ts +++ b/clients/client-secrets-manager/src/endpoint/ruleset.ts @@ -1,320 +1,31 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: false, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://secretsmanager-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://secretsmanager-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://secretsmanager.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://secretsmanager.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/secrets-manager.json */ + +const s="fn", +t="argv", +u="ref"; +const a=false, +b=true, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i={[u]:"Endpoint"}, +j={[s]:"booleanEquals",[t]:[{[u]:"UseFIPS"},true]}, +k={[s]:"booleanEquals",[t]:[{[u]:"UseDualStack"},true]}, +l={}, +m={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsFIPS"]}]}, +n={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsDualStack"]}]}, +o=[i], +p=[j], +q=[], +r=[k]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:b,default:a,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:b,default:a,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:a,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[s]:"aws.partition",[t]:[{[u]:"Region"}],assign:e}],type:f,rules:[{conditions:[{[s]:"isSet",[t]:o},{[s]:"parseURL",[t]:o,assign:"url"}],type:f,rules:[{conditions:p,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:q,type:f,rules:[{conditions:r,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:q,endpoint:{url:i,properties:l,headers:l},type:h}]}]},{conditions:[j,k],type:f,rules:[{conditions:[m,n],type:f,rules:[{conditions:q,endpoint:{url:"https://secretsmanager-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:p,type:f,rules:[{conditions:[m],type:f,rules:[{conditions:q,type:f,rules:[{conditions:q,endpoint:{url:"https://secretsmanager-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]},{conditions:q,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:r,type:f,rules:[{conditions:[n],type:f,rules:[{conditions:q,endpoint:{url:"https://secretsmanager.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:q,endpoint:{url:"https://secretsmanager.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-securityhub/src/endpoint/ruleset.ts b/clients/client-securityhub/src/endpoint/ruleset.ts index cc45c24880206..5d04671b138d5 100644 --- a/clients/client-securityhub/src/endpoint/ruleset.ts +++ b/clients/client-securityhub/src/endpoint/ruleset.ts @@ -1,311 +1,30 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: true, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://securityhub-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://securityhub-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://securityhub.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://securityhub.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/securityhub.json */ + +const r="fn", +s="argv", +t="ref"; +const a=true, +b=false, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i={[t]:"Endpoint"}, +j={[r]:"booleanEquals",[s]:[{[t]:"UseFIPS"},true]}, +k={[r]:"booleanEquals",[s]:[{[t]:"UseDualStack"},true]}, +l={}, +m={[r]:"booleanEquals",[s]:[true,{[r]:"getAttr",[s]:[{[t]:e},"supportsFIPS"]}]}, +n={[r]:"booleanEquals",[s]:[true,{[r]:"getAttr",[s]:[{[t]:e},"supportsDualStack"]}]}, +o=[j], +p=[], +q=[k]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:a,default:b,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:a,default:b,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:b,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[r]:"aws.partition",[s]:[{[t]:"Region"}],assign:e}],type:f,rules:[{conditions:[{[r]:"isSet",[s]:[i]}],type:f,rules:[{conditions:o,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:p,type:f,rules:[{conditions:q,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:p,endpoint:{url:i,properties:l,headers:l},type:h}]}]},{conditions:[j,k],type:f,rules:[{conditions:[m,n],type:f,rules:[{conditions:p,endpoint:{url:"https://securityhub-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:p,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:o,type:f,rules:[{conditions:[m],type:f,rules:[{conditions:p,type:f,rules:[{conditions:p,endpoint:{url:"https://securityhub-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]},{conditions:p,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:q,type:f,rules:[{conditions:[n],type:f,rules:[{conditions:p,endpoint:{url:"https://securityhub.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:p,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:p,endpoint:{url:"https://securityhub.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-securitylake/src/endpoint/ruleset.ts b/clients/client-securitylake/src/endpoint/ruleset.ts index f26caee37f03f..1e065c4d8f569 100644 --- a/clients/client-securitylake/src/endpoint/ruleset.ts +++ b/clients/client-securitylake/src/endpoint/ruleset.ts @@ -1,314 +1,31 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: true, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://securitylake-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://securitylake-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://securitylake.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://securitylake.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/securitylake.json */ + +const s="fn", +t="argv", +u="ref"; +const a=true, +b=false, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i={[u]:"Endpoint"}, +j={[s]:"booleanEquals",[t]:[{[u]:"UseFIPS"},true]}, +k={[s]:"booleanEquals",[t]:[{[u]:"UseDualStack"},true]}, +l={}, +m={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsFIPS"]}]}, +n={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsDualStack"]}]}, +o=[i], +p=[j], +q=[], +r=[k]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:a,default:b,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:a,default:b,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:b,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[s]:"aws.partition",[t]:[{[u]:"Region"}],assign:e}],type:f,rules:[{conditions:[{[s]:"isSet",[t]:o},{[s]:"parseURL",[t]:o,assign:"url"}],type:f,rules:[{conditions:p,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:q,type:f,rules:[{conditions:r,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:q,endpoint:{url:i,properties:l,headers:l},type:h}]}]},{conditions:[j,k],type:f,rules:[{conditions:[m,n],type:f,rules:[{conditions:q,endpoint:{url:"https://securitylake-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:p,type:f,rules:[{conditions:[m],type:f,rules:[{conditions:q,endpoint:{url:"https://securitylake-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:r,type:f,rules:[{conditions:[n],type:f,rules:[{conditions:q,endpoint:{url:"https://securitylake.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:q,endpoint:{url:"https://securitylake.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-serverlessapplicationrepository/src/endpoint/ruleset.ts b/clients/client-serverlessapplicationrepository/src/endpoint/ruleset.ts index eb32d78e86414..8367fb1cc8a56 100644 --- a/clients/client-serverlessapplicationrepository/src/endpoint/ruleset.ts +++ b/clients/client-serverlessapplicationrepository/src/endpoint/ruleset.ts @@ -1,320 +1,31 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: false, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://serverlessrepo-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://serverlessrepo-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://serverlessrepo.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://serverlessrepo.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/serverlessapplicationrepository.json */ + +const s="fn", +t="argv", +u="ref"; +const a=false, +b=true, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i={[u]:"Endpoint"}, +j={[s]:"booleanEquals",[t]:[{[u]:"UseFIPS"},true]}, +k={[s]:"booleanEquals",[t]:[{[u]:"UseDualStack"},true]}, +l={}, +m={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsFIPS"]}]}, +n={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsDualStack"]}]}, +o=[i], +p=[j], +q=[], +r=[k]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:b,default:a,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:b,default:a,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:a,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[s]:"aws.partition",[t]:[{[u]:"Region"}],assign:e}],type:f,rules:[{conditions:[{[s]:"isSet",[t]:o},{[s]:"parseURL",[t]:o,assign:"url"}],type:f,rules:[{conditions:p,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:q,type:f,rules:[{conditions:r,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:q,endpoint:{url:i,properties:l,headers:l},type:h}]}]},{conditions:[j,k],type:f,rules:[{conditions:[m,n],type:f,rules:[{conditions:q,endpoint:{url:"https://serverlessrepo-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:p,type:f,rules:[{conditions:[m],type:f,rules:[{conditions:q,type:f,rules:[{conditions:q,endpoint:{url:"https://serverlessrepo-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]},{conditions:q,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:r,type:f,rules:[{conditions:[n],type:f,rules:[{conditions:q,endpoint:{url:"https://serverlessrepo.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:q,endpoint:{url:"https://serverlessrepo.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-service-catalog-appregistry/src/endpoint/ruleset.ts b/clients/client-service-catalog-appregistry/src/endpoint/ruleset.ts index e1f93803e7ec6..1d00e19dac53d 100644 --- a/clients/client-service-catalog-appregistry/src/endpoint/ruleset.ts +++ b/clients/client-service-catalog-appregistry/src/endpoint/ruleset.ts @@ -1,345 +1,34 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: false, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://servicecatalog-appregistry-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "stringEquals", - argv: [ - "aws-us-gov", - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "name", - ], - }, - ], - }, - ], - endpoint: { - url: "https://servicecatalog-appregistry.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - { - conditions: [], - endpoint: { - url: "https://servicecatalog-appregistry-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://servicecatalog-appregistry.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://servicecatalog-appregistry.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/service-catalog-appregistry.json */ + +const v="fn", +w="argv", +x="ref"; +const a=false, +b=true, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i="getAttr", +j={[x]:"Endpoint"}, +k={[v]:"booleanEquals",[w]:[{[x]:"UseFIPS"},true]}, +l={[v]:"booleanEquals",[w]:[{[x]:"UseDualStack"},true]}, +m={}, +n={[v]:"booleanEquals",[w]:[true,{[v]:i,[w]:[{[x]:e},"supportsFIPS"]}]}, +o={[x]:e}, +p={[v]:"booleanEquals",[w]:[true,{[v]:i,[w]:[o,"supportsDualStack"]}]}, +q={"url":"https://servicecatalog-appregistry.{Region}.{PartitionResult#dnsSuffix}","properties":{},"headers":{}}, +r=[j], +s=[k], +t=[], +u=[l]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:b,default:a,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:b,default:a,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:a,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[v]:"aws.partition",[w]:[{[x]:"Region"}],assign:e}],type:f,rules:[{conditions:[{[v]:"isSet",[w]:r},{[v]:"parseURL",[w]:r,assign:"url"}],type:f,rules:[{conditions:s,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:t,type:f,rules:[{conditions:u,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:t,endpoint:{url:j,properties:m,headers:m},type:h}]}]},{conditions:[k,l],type:f,rules:[{conditions:[n,p],type:f,rules:[{conditions:t,endpoint:{url:"https://servicecatalog-appregistry-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:m,headers:m},type:h}]},{conditions:t,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:s,type:f,rules:[{conditions:[n],type:f,rules:[{conditions:t,type:f,rules:[{conditions:[{[v]:"stringEquals",[w]:["aws-us-gov",{[v]:i,[w]:[o,"name"]}]}],endpoint:q,type:h},{conditions:t,endpoint:{url:"https://servicecatalog-appregistry-fips.{Region}.{PartitionResult#dnsSuffix}",properties:m,headers:m},type:h}]}]},{conditions:t,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:u,type:f,rules:[{conditions:[p],type:f,rules:[{conditions:t,endpoint:{url:"https://servicecatalog-appregistry.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:m,headers:m},type:h}]},{conditions:t,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:t,endpoint:q,type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-service-catalog/src/endpoint/ruleset.ts b/clients/client-service-catalog/src/endpoint/ruleset.ts index b78201a3aa254..fb6c6668faa58 100644 --- a/clients/client-service-catalog/src/endpoint/ruleset.ts +++ b/clients/client-service-catalog/src/endpoint/ruleset.ts @@ -1,320 +1,31 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: false, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://servicecatalog-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://servicecatalog-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://servicecatalog.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://servicecatalog.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/service-catalog.json */ + +const s="fn", +t="argv", +u="ref"; +const a=false, +b=true, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i={[u]:"Endpoint"}, +j={[s]:"booleanEquals",[t]:[{[u]:"UseFIPS"},true]}, +k={[s]:"booleanEquals",[t]:[{[u]:"UseDualStack"},true]}, +l={}, +m={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsFIPS"]}]}, +n={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsDualStack"]}]}, +o=[i], +p=[j], +q=[], +r=[k]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:b,default:a,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:b,default:a,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:a,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[s]:"aws.partition",[t]:[{[u]:"Region"}],assign:e}],type:f,rules:[{conditions:[{[s]:"isSet",[t]:o},{[s]:"parseURL",[t]:o,assign:"url"}],type:f,rules:[{conditions:p,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:q,type:f,rules:[{conditions:r,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:q,endpoint:{url:i,properties:l,headers:l},type:h}]}]},{conditions:[j,k],type:f,rules:[{conditions:[m,n],type:f,rules:[{conditions:q,endpoint:{url:"https://servicecatalog-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:p,type:f,rules:[{conditions:[m],type:f,rules:[{conditions:q,type:f,rules:[{conditions:q,endpoint:{url:"https://servicecatalog-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]},{conditions:q,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:r,type:f,rules:[{conditions:[n],type:f,rules:[{conditions:q,endpoint:{url:"https://servicecatalog.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:q,endpoint:{url:"https://servicecatalog.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-service-quotas/src/endpoint/ruleset.ts b/clients/client-service-quotas/src/endpoint/ruleset.ts index daf8a875f32e7..725d09101ca37 100644 --- a/clients/client-service-quotas/src/endpoint/ruleset.ts +++ b/clients/client-service-quotas/src/endpoint/ruleset.ts @@ -1,345 +1,34 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: false, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://servicequotas-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "stringEquals", - argv: [ - "aws-us-gov", - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "name", - ], - }, - ], - }, - ], - endpoint: { - url: "https://servicequotas.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - { - conditions: [], - endpoint: { - url: "https://servicequotas-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://servicequotas.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://servicequotas.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/service-quotas.json */ + +const v="fn", +w="argv", +x="ref"; +const a=false, +b=true, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i="getAttr", +j={[x]:"Endpoint"}, +k={[v]:"booleanEquals",[w]:[{[x]:"UseFIPS"},true]}, +l={[v]:"booleanEquals",[w]:[{[x]:"UseDualStack"},true]}, +m={}, +n={[v]:"booleanEquals",[w]:[true,{[v]:i,[w]:[{[x]:e},"supportsFIPS"]}]}, +o={[x]:e}, +p={[v]:"booleanEquals",[w]:[true,{[v]:i,[w]:[o,"supportsDualStack"]}]}, +q={"url":"https://servicequotas.{Region}.{PartitionResult#dnsSuffix}","properties":{},"headers":{}}, +r=[j], +s=[k], +t=[], +u=[l]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:b,default:a,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:b,default:a,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:a,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[v]:"aws.partition",[w]:[{[x]:"Region"}],assign:e}],type:f,rules:[{conditions:[{[v]:"isSet",[w]:r},{[v]:"parseURL",[w]:r,assign:"url"}],type:f,rules:[{conditions:s,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:t,type:f,rules:[{conditions:u,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:t,endpoint:{url:j,properties:m,headers:m},type:h}]}]},{conditions:[k,l],type:f,rules:[{conditions:[n,p],type:f,rules:[{conditions:t,endpoint:{url:"https://servicequotas-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:m,headers:m},type:h}]},{conditions:t,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:s,type:f,rules:[{conditions:[n],type:f,rules:[{conditions:t,type:f,rules:[{conditions:[{[v]:"stringEquals",[w]:["aws-us-gov",{[v]:i,[w]:[o,"name"]}]}],endpoint:q,type:h},{conditions:t,endpoint:{url:"https://servicequotas-fips.{Region}.{PartitionResult#dnsSuffix}",properties:m,headers:m},type:h}]}]},{conditions:t,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:u,type:f,rules:[{conditions:[p],type:f,rules:[{conditions:t,endpoint:{url:"https://servicequotas.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:m,headers:m},type:h}]},{conditions:t,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:t,endpoint:q,type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-servicediscovery/src/endpoint/ruleset.ts b/clients/client-servicediscovery/src/endpoint/ruleset.ts index ebd669120dc16..c3827b291d043 100644 --- a/clients/client-servicediscovery/src/endpoint/ruleset.ts +++ b/clients/client-servicediscovery/src/endpoint/ruleset.ts @@ -1,358 +1,33 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: true, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://servicediscovery-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "stringEquals", - argv: [ - { - ref: "Region", - }, - "servicediscovery", - ], - }, - ], - endpoint: { - url: "https://servicediscovery-fips.ca-central-1.amazonaws.com", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - { - conditions: [ - { - fn: "stringEquals", - argv: [ - { - ref: "Region", - }, - "servicediscovery", - ], - }, - ], - endpoint: { - url: "https://servicediscovery-fips.us-gov-west-1.amazonaws.com", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - { - conditions: [], - endpoint: { - url: "https://servicediscovery-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://servicediscovery.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://servicediscovery.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/servicediscovery.json */ + +const u="fn", +v="argv", +w="ref"; +const a=true, +b=false, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i={[w]:"Region"}, +j={[w]:"Endpoint"}, +k={[u]:"booleanEquals",[v]:[{[w]:"UseFIPS"},true]}, +l={[u]:"booleanEquals",[v]:[{[w]:"UseDualStack"},true]}, +m={}, +n={[u]:"booleanEquals",[v]:[true,{[u]:"getAttr",[v]:[{[w]:e},"supportsFIPS"]}]}, +o={[u]:"booleanEquals",[v]:[true,{[u]:"getAttr",[v]:[{[w]:e},"supportsDualStack"]}]}, +p=[j], +q=[k], +r=[], +s=[l], +t=[{[u]:"stringEquals",[v]:[i,"servicediscovery"]}]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:a,default:b,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:a,default:b,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:b,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[u]:"aws.partition",[v]:[i],assign:e}],type:f,rules:[{conditions:[{[u]:"isSet",[v]:p},{[u]:"parseURL",[v]:p,assign:"url"}],type:f,rules:[{conditions:q,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:r,type:f,rules:[{conditions:s,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:r,endpoint:{url:j,properties:m,headers:m},type:h}]}]},{conditions:[k,l],type:f,rules:[{conditions:[n,o],type:f,rules:[{conditions:r,endpoint:{url:"https://servicediscovery-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:m,headers:m},type:h}]},{conditions:r,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:q,type:f,rules:[{conditions:[n],type:f,rules:[{conditions:r,type:f,rules:[{conditions:t,endpoint:{url:"https://servicediscovery-fips.ca-central-1.amazonaws.com",properties:m,headers:m},type:h},{conditions:t,endpoint:{url:"https://servicediscovery-fips.us-gov-west-1.amazonaws.com",properties:m,headers:m},type:h},{conditions:r,endpoint:{url:"https://servicediscovery-fips.{Region}.{PartitionResult#dnsSuffix}",properties:m,headers:m},type:h}]}]},{conditions:r,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:s,type:f,rules:[{conditions:[o],type:f,rules:[{conditions:r,endpoint:{url:"https://servicediscovery.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:m,headers:m},type:h}]},{conditions:r,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:r,endpoint:{url:"https://servicediscovery.{Region}.{PartitionResult#dnsSuffix}",properties:m,headers:m},type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-ses/src/endpoint/ruleset.ts b/clients/client-ses/src/endpoint/ruleset.ts index fc06470996a7c..d6d17f1c62a03 100644 --- a/clients/client-ses/src/endpoint/ruleset.ts +++ b/clients/client-ses/src/endpoint/ruleset.ts @@ -1,320 +1,31 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: false, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://email-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://email-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://email.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://email.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/ses.json */ + +const s="fn", +t="argv", +u="ref"; +const a=false, +b=true, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i={[u]:"Endpoint"}, +j={[s]:"booleanEquals",[t]:[{[u]:"UseFIPS"},true]}, +k={[s]:"booleanEquals",[t]:[{[u]:"UseDualStack"},true]}, +l={}, +m={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsFIPS"]}]}, +n={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsDualStack"]}]}, +o=[i], +p=[j], +q=[], +r=[k]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:b,default:a,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:b,default:a,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:a,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[s]:"aws.partition",[t]:[{[u]:"Region"}],assign:e}],type:f,rules:[{conditions:[{[s]:"isSet",[t]:o},{[s]:"parseURL",[t]:o,assign:"url"}],type:f,rules:[{conditions:p,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:q,type:f,rules:[{conditions:r,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:q,endpoint:{url:i,properties:l,headers:l},type:h}]}]},{conditions:[j,k],type:f,rules:[{conditions:[m,n],type:f,rules:[{conditions:q,endpoint:{url:"https://email-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:p,type:f,rules:[{conditions:[m],type:f,rules:[{conditions:q,type:f,rules:[{conditions:q,endpoint:{url:"https://email-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]},{conditions:q,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:r,type:f,rules:[{conditions:[n],type:f,rules:[{conditions:q,endpoint:{url:"https://email.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:q,endpoint:{url:"https://email.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-sesv2/src/endpoint/ruleset.ts b/clients/client-sesv2/src/endpoint/ruleset.ts index fc06470996a7c..a4835597d1642 100644 --- a/clients/client-sesv2/src/endpoint/ruleset.ts +++ b/clients/client-sesv2/src/endpoint/ruleset.ts @@ -1,320 +1,31 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: false, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://email-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://email-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://email.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://email.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/sesv2.json */ + +const s="fn", +t="argv", +u="ref"; +const a=false, +b=true, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i={[u]:"Endpoint"}, +j={[s]:"booleanEquals",[t]:[{[u]:"UseFIPS"},true]}, +k={[s]:"booleanEquals",[t]:[{[u]:"UseDualStack"},true]}, +l={}, +m={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsFIPS"]}]}, +n={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsDualStack"]}]}, +o=[i], +p=[j], +q=[], +r=[k]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:b,default:a,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:b,default:a,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:a,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[s]:"aws.partition",[t]:[{[u]:"Region"}],assign:e}],type:f,rules:[{conditions:[{[s]:"isSet",[t]:o},{[s]:"parseURL",[t]:o,assign:"url"}],type:f,rules:[{conditions:p,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:q,type:f,rules:[{conditions:r,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:q,endpoint:{url:i,properties:l,headers:l},type:h}]}]},{conditions:[j,k],type:f,rules:[{conditions:[m,n],type:f,rules:[{conditions:q,endpoint:{url:"https://email-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:p,type:f,rules:[{conditions:[m],type:f,rules:[{conditions:q,type:f,rules:[{conditions:q,endpoint:{url:"https://email-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]},{conditions:q,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:r,type:f,rules:[{conditions:[n],type:f,rules:[{conditions:q,endpoint:{url:"https://email.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:q,endpoint:{url:"https://email.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-sfn/src/endpoint/ruleset.ts b/clients/client-sfn/src/endpoint/ruleset.ts index 85a6b03fc7a30..dae432b31026f 100644 --- a/clients/client-sfn/src/endpoint/ruleset.ts +++ b/clients/client-sfn/src/endpoint/ruleset.ts @@ -1,339 +1,32 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: true, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://states-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "stringEquals", - argv: [ - { - ref: "Region", - }, - "us-gov-west-1", - ], - }, - ], - endpoint: { - url: "https://states.us-gov-west-1.amazonaws.com", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - { - conditions: [], - endpoint: { - url: "https://states-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://states.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://states.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/sfn.json */ + +const t="fn", +u="argv", +v="ref"; +const a=true, +b=false, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i={[v]:"Region"}, +j={[v]:"Endpoint"}, +k={[t]:"booleanEquals",[u]:[{[v]:"UseFIPS"},true]}, +l={[t]:"booleanEquals",[u]:[{[v]:"UseDualStack"},true]}, +m={}, +n={[t]:"booleanEquals",[u]:[true,{[t]:"getAttr",[u]:[{[v]:e},"supportsFIPS"]}]}, +o={[t]:"booleanEquals",[u]:[true,{[t]:"getAttr",[u]:[{[v]:e},"supportsDualStack"]}]}, +p=[j], +q=[k], +r=[], +s=[l]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:a,default:b,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:a,default:b,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:b,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[t]:"aws.partition",[u]:[i],assign:e}],type:f,rules:[{conditions:[{[t]:"isSet",[u]:p},{[t]:"parseURL",[u]:p,assign:"url"}],type:f,rules:[{conditions:q,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:r,type:f,rules:[{conditions:s,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:r,endpoint:{url:j,properties:m,headers:m},type:h}]}]},{conditions:[k,l],type:f,rules:[{conditions:[n,o],type:f,rules:[{conditions:r,endpoint:{url:"https://states-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:m,headers:m},type:h}]},{conditions:r,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:q,type:f,rules:[{conditions:[n],type:f,rules:[{conditions:r,type:f,rules:[{conditions:[{[t]:"stringEquals",[u]:[i,"us-gov-west-1"]}],endpoint:{url:"https://states.us-gov-west-1.amazonaws.com",properties:m,headers:m},type:h},{conditions:r,endpoint:{url:"https://states-fips.{Region}.{PartitionResult#dnsSuffix}",properties:m,headers:m},type:h}]}]},{conditions:r,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:s,type:f,rules:[{conditions:[o],type:f,rules:[{conditions:r,endpoint:{url:"https://states.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:m,headers:m},type:h}]},{conditions:r,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:r,endpoint:{url:"https://states.{Region}.{PartitionResult#dnsSuffix}",properties:m,headers:m},type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-shield/src/endpoint/ruleset.ts b/clients/client-shield/src/endpoint/ruleset.ts index eb7df9caf17db..890afb8c45202 100644 --- a/clients/client-shield/src/endpoint/ruleset.ts +++ b/clients/client-shield/src/endpoint/ruleset.ts @@ -1,615 +1,44 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: false, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "stringEquals", - argv: [ - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "name", - ], - }, - "aws", - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://shield-fips.{Region}.api.aws", - properties: { - authSchemes: [ - { - name: "sigv4", - signingName: "shield", - signingRegion: "us-east-1", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://shield-fips.us-east-1.amazonaws.com", - properties: { - authSchemes: [ - { - name: "sigv4", - signingName: "shield", - signingRegion: "us-east-1", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://shield.{Region}.api.aws", - properties: { - authSchemes: [ - { - name: "sigv4", - signingName: "shield", - signingRegion: "us-east-1", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://shield.us-east-1.amazonaws.com", - properties: { - authSchemes: [ - { - name: "sigv4", - signingName: "shield", - signingRegion: "us-east-1", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://shield-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "stringEquals", - argv: [ - { - ref: "Region", - }, - "aws-global", - ], - }, - ], - endpoint: { - url: "https://shield-fips.us-east-1.amazonaws.com", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - { - conditions: [], - endpoint: { - url: "https://shield-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://shield.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "stringEquals", - argv: [ - { - ref: "Region", - }, - "aws-global", - ], - }, - ], - endpoint: { - url: "https://shield.us-east-1.amazonaws.com", - properties: { - authSchemes: [ - { - name: "sigv4", - signingName: "shield", - signingRegion: "us-east-1", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - { - conditions: [], - endpoint: { - url: "https://shield.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/shield.json */ + +const D="type", +E="conditions", +F="fn", +G="argv", +H="ref"; +const a=false, +b=true, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i="stringEquals", +j="getAttr", +k="https://shield-fips.us-east-1.amazonaws.com", +l={[H]:"Region"}, +m={[H]:"Endpoint"}, +n={}, +o={[H]:e}, +p={"authSchemes":[{"name":"sigv4","signingName":"shield","signingRegion":"us-east-1"}]}, +q={[E]:[],[g]:"FIPS and DualStack are enabled, but this partition does not support one or both",[D]:g}, +r={[E]:[],[g]:"FIPS is enabled but this partition does not support FIPS",[D]:g}, +s={[E]:[],[g]:"DualStack is enabled but this partition does not support DualStack",[D]:g}, +t={"url":"https://shield.us-east-1.amazonaws.com","properties":p,"headers":{}}, +u=[m], +v=[{[F]:"booleanEquals",[G]:[{[H]:"UseFIPS"},true]}], +w=[], +x=[{[F]:"booleanEquals",[G]:[{[H]:"UseDualStack"},true]}], +y=[{[F]:"booleanEquals",[G]:[{[H]:"UseFIPS"},true]},{[F]:"booleanEquals",[G]:[{[H]:"UseDualStack"},true]}], +z=[{[F]:"booleanEquals",[G]:[true,{[F]:j,[G]:[o,"supportsFIPS"]}]},{[F]:"booleanEquals",[G]:[true,{[F]:j,[G]:[o,"supportsDualStack"]}]}], +A=[{[F]:"booleanEquals",[G]:[true,{[F]:j,[G]:[o,"supportsFIPS"]}]}], +B=[{[F]:"booleanEquals",[G]:[true,{[F]:j,[G]:[o,"supportsDualStack"]}]}], +C=[{[F]:i,[G]:[l,"aws-global"]}]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",[D]:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:b,default:a,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",[D]:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:b,default:a,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",[D]:d},Endpoint:{builtIn:"SDK::Endpoint",required:a,documentation:"Override the endpoint used to send this request",[D]:c}},rules:[{[E]:[{[F]:"aws.partition",[G]:[l],assign:e}],[D]:f,rules:[{[E]:[{[F]:"isSet",[G]:u},{[F]:"parseURL",[G]:u,assign:"url"}],[D]:f,rules:[{[E]:v,error:"Invalid Configuration: FIPS and custom endpoint are not supported",[D]:g},{[E]:w,[D]:f,rules:[{[E]:x,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",[D]:g},{[E]:w,endpoint:{url:m,properties:n,headers:n},[D]:h}]}]},{[E]:[{[F]:i,[G]:[{[F]:j,[G]:[o,"name"]},"aws"]}],[D]:f,rules:[{[E]:y,[D]:f,rules:[{[E]:z,[D]:f,rules:[{[E]:w,endpoint:{url:"https://shield-fips.{Region}.api.aws",properties:p,headers:n},[D]:h}]},q]},{[E]:v,[D]:f,rules:[{[E]:A,[D]:f,rules:[{[E]:w,endpoint:{url:k,properties:p,headers:n},[D]:h}]},r]},{[E]:x,[D]:f,rules:[{[E]:B,[D]:f,rules:[{[E]:w,endpoint:{url:"https://shield.{Region}.api.aws",properties:p,headers:n},[D]:h}]},s]},{[E]:w,endpoint:t,[D]:h}]},{[E]:y,[D]:f,rules:[{[E]:z,[D]:f,rules:[{[E]:w,endpoint:{url:"https://shield-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:n,headers:n},[D]:h}]},q]},{[E]:v,[D]:f,rules:[{[E]:A,[D]:f,rules:[{[E]:w,[D]:f,rules:[{[E]:C,endpoint:{url:k,properties:n,headers:n},[D]:h},{[E]:w,endpoint:{url:"https://shield-fips.{Region}.{PartitionResult#dnsSuffix}",properties:n,headers:n},[D]:h}]}]},r]},{[E]:x,[D]:f,rules:[{[E]:B,[D]:f,rules:[{[E]:w,endpoint:{url:"https://shield.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:n,headers:n},[D]:h}]},s]},{[E]:w,[D]:f,rules:[{[E]:C,endpoint:t,[D]:h},{[E]:w,endpoint:{url:"https://shield.{Region}.{PartitionResult#dnsSuffix}",properties:n,headers:n},[D]:h}]}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-signer/src/endpoint/ruleset.ts b/clients/client-signer/src/endpoint/ruleset.ts index 9ae5c8f7ab78b..115b3d5d32db3 100644 --- a/clients/client-signer/src/endpoint/ruleset.ts +++ b/clients/client-signer/src/endpoint/ruleset.ts @@ -1,314 +1,31 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: false, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://signer-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://signer-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://signer.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://signer.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/signer.json */ + +const s="fn", +t="argv", +u="ref"; +const a=false, +b=true, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i={[u]:"Endpoint"}, +j={[s]:"booleanEquals",[t]:[{[u]:"UseFIPS"},true]}, +k={[s]:"booleanEquals",[t]:[{[u]:"UseDualStack"},true]}, +l={}, +m={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsFIPS"]}]}, +n={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsDualStack"]}]}, +o=[i], +p=[j], +q=[], +r=[k]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:b,default:a,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:b,default:a,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:a,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[s]:"aws.partition",[t]:[{[u]:"Region"}],assign:e}],type:f,rules:[{conditions:[{[s]:"isSet",[t]:o},{[s]:"parseURL",[t]:o,assign:"url"}],type:f,rules:[{conditions:p,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:q,type:f,rules:[{conditions:r,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:q,endpoint:{url:i,properties:l,headers:l},type:h}]}]},{conditions:[j,k],type:f,rules:[{conditions:[m,n],type:f,rules:[{conditions:q,endpoint:{url:"https://signer-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:p,type:f,rules:[{conditions:[m],type:f,rules:[{conditions:q,endpoint:{url:"https://signer-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:r,type:f,rules:[{conditions:[n],type:f,rules:[{conditions:q,endpoint:{url:"https://signer.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:q,endpoint:{url:"https://signer.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-simspaceweaver/src/endpoint/ruleset.ts b/clients/client-simspaceweaver/src/endpoint/ruleset.ts index 268f5eae9de1f..381ca0cf75e7c 100644 --- a/clients/client-simspaceweaver/src/endpoint/ruleset.ts +++ b/clients/client-simspaceweaver/src/endpoint/ruleset.ts @@ -1,314 +1,31 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: false, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://simspaceweaver-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://simspaceweaver-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://simspaceweaver.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://simspaceweaver.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/simspaceweaver.json */ + +const s="fn", +t="argv", +u="ref"; +const a=false, +b=true, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i={[u]:"Endpoint"}, +j={[s]:"booleanEquals",[t]:[{[u]:"UseFIPS"},true]}, +k={[s]:"booleanEquals",[t]:[{[u]:"UseDualStack"},true]}, +l={}, +m={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsFIPS"]}]}, +n={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsDualStack"]}]}, +o=[i], +p=[j], +q=[], +r=[k]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:b,default:a,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:b,default:a,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:a,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[s]:"aws.partition",[t]:[{[u]:"Region"}],assign:e}],type:f,rules:[{conditions:[{[s]:"isSet",[t]:o},{[s]:"parseURL",[t]:o,assign:"url"}],type:f,rules:[{conditions:p,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:q,type:f,rules:[{conditions:r,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:q,endpoint:{url:i,properties:l,headers:l},type:h}]}]},{conditions:[j,k],type:f,rules:[{conditions:[m,n],type:f,rules:[{conditions:q,endpoint:{url:"https://simspaceweaver-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:p,type:f,rules:[{conditions:[m],type:f,rules:[{conditions:q,endpoint:{url:"https://simspaceweaver-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:r,type:f,rules:[{conditions:[n],type:f,rules:[{conditions:q,endpoint:{url:"https://simspaceweaver.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:q,endpoint:{url:"https://simspaceweaver.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-sms/src/endpoint/ruleset.ts b/clients/client-sms/src/endpoint/ruleset.ts index 5e62c8b99d56f..49811d7745f93 100644 --- a/clients/client-sms/src/endpoint/ruleset.ts +++ b/clients/client-sms/src/endpoint/ruleset.ts @@ -1,320 +1,31 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: false, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://sms-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://sms-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://sms.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://sms.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/sms.json */ + +const s="fn", +t="argv", +u="ref"; +const a=false, +b=true, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i={[u]:"Endpoint"}, +j={[s]:"booleanEquals",[t]:[{[u]:"UseFIPS"},true]}, +k={[s]:"booleanEquals",[t]:[{[u]:"UseDualStack"},true]}, +l={}, +m={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsFIPS"]}]}, +n={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsDualStack"]}]}, +o=[i], +p=[j], +q=[], +r=[k]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:b,default:a,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:b,default:a,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:a,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[s]:"aws.partition",[t]:[{[u]:"Region"}],assign:e}],type:f,rules:[{conditions:[{[s]:"isSet",[t]:o},{[s]:"parseURL",[t]:o,assign:"url"}],type:f,rules:[{conditions:p,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:q,type:f,rules:[{conditions:r,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:q,endpoint:{url:i,properties:l,headers:l},type:h}]}]},{conditions:[j,k],type:f,rules:[{conditions:[m,n],type:f,rules:[{conditions:q,endpoint:{url:"https://sms-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:p,type:f,rules:[{conditions:[m],type:f,rules:[{conditions:q,type:f,rules:[{conditions:q,endpoint:{url:"https://sms-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]},{conditions:q,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:r,type:f,rules:[{conditions:[n],type:f,rules:[{conditions:q,endpoint:{url:"https://sms.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:q,endpoint:{url:"https://sms.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-snow-device-management/src/endpoint/ruleset.ts b/clients/client-snow-device-management/src/endpoint/ruleset.ts index a426b2acd44fe..2af76354707ae 100644 --- a/clients/client-snow-device-management/src/endpoint/ruleset.ts +++ b/clients/client-snow-device-management/src/endpoint/ruleset.ts @@ -1,314 +1,31 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: false, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://snow-device-management-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://snow-device-management-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://snow-device-management.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://snow-device-management.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/snow-device-management.json */ + +const s="fn", +t="argv", +u="ref"; +const a=false, +b=true, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i={[u]:"Endpoint"}, +j={[s]:"booleanEquals",[t]:[{[u]:"UseFIPS"},true]}, +k={[s]:"booleanEquals",[t]:[{[u]:"UseDualStack"},true]}, +l={}, +m={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsFIPS"]}]}, +n={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsDualStack"]}]}, +o=[i], +p=[j], +q=[], +r=[k]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:b,default:a,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:b,default:a,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:a,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[s]:"aws.partition",[t]:[{[u]:"Region"}],assign:e}],type:f,rules:[{conditions:[{[s]:"isSet",[t]:o},{[s]:"parseURL",[t]:o,assign:"url"}],type:f,rules:[{conditions:p,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:q,type:f,rules:[{conditions:r,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:q,endpoint:{url:i,properties:l,headers:l},type:h}]}]},{conditions:[j,k],type:f,rules:[{conditions:[m,n],type:f,rules:[{conditions:q,endpoint:{url:"https://snow-device-management-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:p,type:f,rules:[{conditions:[m],type:f,rules:[{conditions:q,endpoint:{url:"https://snow-device-management-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:r,type:f,rules:[{conditions:[n],type:f,rules:[{conditions:q,endpoint:{url:"https://snow-device-management.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:q,endpoint:{url:"https://snow-device-management.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-snowball/src/endpoint/ruleset.ts b/clients/client-snowball/src/endpoint/ruleset.ts index a930d7727db54..11338007c38c7 100644 --- a/clients/client-snowball/src/endpoint/ruleset.ts +++ b/clients/client-snowball/src/endpoint/ruleset.ts @@ -1,320 +1,31 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: false, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://snowball-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://snowball-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://snowball.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://snowball.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/snowball.json */ + +const s="fn", +t="argv", +u="ref"; +const a=false, +b=true, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i={[u]:"Endpoint"}, +j={[s]:"booleanEquals",[t]:[{[u]:"UseFIPS"},true]}, +k={[s]:"booleanEquals",[t]:[{[u]:"UseDualStack"},true]}, +l={}, +m={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsFIPS"]}]}, +n={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsDualStack"]}]}, +o=[i], +p=[j], +q=[], +r=[k]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:b,default:a,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:b,default:a,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:a,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[s]:"aws.partition",[t]:[{[u]:"Region"}],assign:e}],type:f,rules:[{conditions:[{[s]:"isSet",[t]:o},{[s]:"parseURL",[t]:o,assign:"url"}],type:f,rules:[{conditions:p,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:q,type:f,rules:[{conditions:r,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:q,endpoint:{url:i,properties:l,headers:l},type:h}]}]},{conditions:[j,k],type:f,rules:[{conditions:[m,n],type:f,rules:[{conditions:q,endpoint:{url:"https://snowball-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:p,type:f,rules:[{conditions:[m],type:f,rules:[{conditions:q,type:f,rules:[{conditions:q,endpoint:{url:"https://snowball-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]},{conditions:q,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:r,type:f,rules:[{conditions:[n],type:f,rules:[{conditions:q,endpoint:{url:"https://snowball.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:q,endpoint:{url:"https://snowball.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-sns/src/endpoint/ruleset.ts b/clients/client-sns/src/endpoint/ruleset.ts index 8bb5a09776d68..4817213ac2d50 100644 --- a/clients/client-sns/src/endpoint/ruleset.ts +++ b/clients/client-sns/src/endpoint/ruleset.ts @@ -1,358 +1,33 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: false, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://sns-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "stringEquals", - argv: [ - { - ref: "Region", - }, - "us-gov-east-1", - ], - }, - ], - endpoint: { - url: "https://sns.us-gov-east-1.amazonaws.com", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - { - conditions: [ - { - fn: "stringEquals", - argv: [ - { - ref: "Region", - }, - "us-gov-west-1", - ], - }, - ], - endpoint: { - url: "https://sns.us-gov-west-1.amazonaws.com", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - { - conditions: [], - endpoint: { - url: "https://sns-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://sns.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://sns.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/sns.json */ + +const u="fn", +v="argv", +w="ref"; +const a=false, +b=true, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i="stringEquals", +j={[w]:"Region"}, +k={[w]:"Endpoint"}, +l={[u]:"booleanEquals",[v]:[{[w]:"UseFIPS"},true]}, +m={[u]:"booleanEquals",[v]:[{[w]:"UseDualStack"},true]}, +n={}, +o={[u]:"booleanEquals",[v]:[true,{[u]:"getAttr",[v]:[{[w]:e},"supportsFIPS"]}]}, +p={[u]:"booleanEquals",[v]:[true,{[u]:"getAttr",[v]:[{[w]:e},"supportsDualStack"]}]}, +q=[k], +r=[l], +s=[], +t=[m]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:b,default:a,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:b,default:a,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:a,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[u]:"aws.partition",[v]:[j],assign:e}],type:f,rules:[{conditions:[{[u]:"isSet",[v]:q},{[u]:"parseURL",[v]:q,assign:"url"}],type:f,rules:[{conditions:r,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:s,type:f,rules:[{conditions:t,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:s,endpoint:{url:k,properties:n,headers:n},type:h}]}]},{conditions:[l,m],type:f,rules:[{conditions:[o,p],type:f,rules:[{conditions:s,endpoint:{url:"https://sns-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:n,headers:n},type:h}]},{conditions:s,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:r,type:f,rules:[{conditions:[o],type:f,rules:[{conditions:s,type:f,rules:[{conditions:[{[u]:i,[v]:[j,"us-gov-east-1"]}],endpoint:{url:"https://sns.us-gov-east-1.amazonaws.com",properties:n,headers:n},type:h},{conditions:[{[u]:i,[v]:[j,"us-gov-west-1"]}],endpoint:{url:"https://sns.us-gov-west-1.amazonaws.com",properties:n,headers:n},type:h},{conditions:s,endpoint:{url:"https://sns-fips.{Region}.{PartitionResult#dnsSuffix}",properties:n,headers:n},type:h}]}]},{conditions:s,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:t,type:f,rules:[{conditions:[p],type:f,rules:[{conditions:s,endpoint:{url:"https://sns.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:n,headers:n},type:h}]},{conditions:s,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:s,endpoint:{url:"https://sns.{Region}.{PartitionResult#dnsSuffix}",properties:n,headers:n},type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-sqs/src/endpoint/ruleset.ts b/clients/client-sqs/src/endpoint/ruleset.ts index 298acee19cbdd..0e84e8c8a6ccc 100644 --- a/clients/client-sqs/src/endpoint/ruleset.ts +++ b/clients/client-sqs/src/endpoint/ruleset.ts @@ -1,345 +1,34 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: false, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://sqs-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "stringEquals", - argv: [ - "aws-us-gov", - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "name", - ], - }, - ], - }, - ], - endpoint: { - url: "https://sqs.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - { - conditions: [], - endpoint: { - url: "https://sqs-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://sqs.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://sqs.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/sqs.json */ + +const v="fn", +w="argv", +x="ref"; +const a=false, +b=true, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i="getAttr", +j={[x]:"Endpoint"}, +k={[v]:"booleanEquals",[w]:[{[x]:"UseFIPS"},true]}, +l={[v]:"booleanEquals",[w]:[{[x]:"UseDualStack"},true]}, +m={}, +n={[v]:"booleanEquals",[w]:[true,{[v]:i,[w]:[{[x]:e},"supportsFIPS"]}]}, +o={[x]:e}, +p={[v]:"booleanEquals",[w]:[true,{[v]:i,[w]:[o,"supportsDualStack"]}]}, +q={"url":"https://sqs.{Region}.{PartitionResult#dnsSuffix}","properties":{},"headers":{}}, +r=[j], +s=[k], +t=[], +u=[l]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:b,default:a,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:b,default:a,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:a,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[v]:"aws.partition",[w]:[{[x]:"Region"}],assign:e}],type:f,rules:[{conditions:[{[v]:"isSet",[w]:r},{[v]:"parseURL",[w]:r,assign:"url"}],type:f,rules:[{conditions:s,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:t,type:f,rules:[{conditions:u,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:t,endpoint:{url:j,properties:m,headers:m},type:h}]}]},{conditions:[k,l],type:f,rules:[{conditions:[n,p],type:f,rules:[{conditions:t,endpoint:{url:"https://sqs-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:m,headers:m},type:h}]},{conditions:t,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:s,type:f,rules:[{conditions:[n],type:f,rules:[{conditions:t,type:f,rules:[{conditions:[{[v]:"stringEquals",[w]:["aws-us-gov",{[v]:i,[w]:[o,"name"]}]}],endpoint:q,type:h},{conditions:t,endpoint:{url:"https://sqs-fips.{Region}.{PartitionResult#dnsSuffix}",properties:m,headers:m},type:h}]}]},{conditions:t,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:u,type:f,rules:[{conditions:[p],type:f,rules:[{conditions:t,endpoint:{url:"https://sqs.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:m,headers:m},type:h}]},{conditions:t,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:t,endpoint:q,type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-ssm-contacts/src/endpoint/ruleset.ts b/clients/client-ssm-contacts/src/endpoint/ruleset.ts index a3469ceb018ae..69437d478e5d1 100644 --- a/clients/client-ssm-contacts/src/endpoint/ruleset.ts +++ b/clients/client-ssm-contacts/src/endpoint/ruleset.ts @@ -1,314 +1,31 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: false, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://ssm-contacts-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://ssm-contacts-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://ssm-contacts.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://ssm-contacts.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/ssm-contacts.json */ + +const s="fn", +t="argv", +u="ref"; +const a=false, +b=true, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i={[u]:"Endpoint"}, +j={[s]:"booleanEquals",[t]:[{[u]:"UseFIPS"},true]}, +k={[s]:"booleanEquals",[t]:[{[u]:"UseDualStack"},true]}, +l={}, +m={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsFIPS"]}]}, +n={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsDualStack"]}]}, +o=[i], +p=[j], +q=[], +r=[k]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:b,default:a,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:b,default:a,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:a,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[s]:"aws.partition",[t]:[{[u]:"Region"}],assign:e}],type:f,rules:[{conditions:[{[s]:"isSet",[t]:o},{[s]:"parseURL",[t]:o,assign:"url"}],type:f,rules:[{conditions:p,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:q,type:f,rules:[{conditions:r,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:q,endpoint:{url:i,properties:l,headers:l},type:h}]}]},{conditions:[j,k],type:f,rules:[{conditions:[m,n],type:f,rules:[{conditions:q,endpoint:{url:"https://ssm-contacts-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:p,type:f,rules:[{conditions:[m],type:f,rules:[{conditions:q,endpoint:{url:"https://ssm-contacts-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:r,type:f,rules:[{conditions:[n],type:f,rules:[{conditions:q,endpoint:{url:"https://ssm-contacts.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:q,endpoint:{url:"https://ssm-contacts.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-ssm-incidents/src/endpoint/ruleset.ts b/clients/client-ssm-incidents/src/endpoint/ruleset.ts index 7f6f02bf15046..9f55a00433827 100644 --- a/clients/client-ssm-incidents/src/endpoint/ruleset.ts +++ b/clients/client-ssm-incidents/src/endpoint/ruleset.ts @@ -1,320 +1,31 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: false, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://ssm-incidents-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://ssm-incidents-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://ssm-incidents.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://ssm-incidents.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/ssm-incidents.json */ + +const s="fn", +t="argv", +u="ref"; +const a=false, +b=true, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i={[u]:"Endpoint"}, +j={[s]:"booleanEquals",[t]:[{[u]:"UseFIPS"},true]}, +k={[s]:"booleanEquals",[t]:[{[u]:"UseDualStack"},true]}, +l={}, +m={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsFIPS"]}]}, +n={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsDualStack"]}]}, +o=[i], +p=[j], +q=[], +r=[k]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:b,default:a,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:b,default:a,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:a,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[s]:"aws.partition",[t]:[{[u]:"Region"}],assign:e}],type:f,rules:[{conditions:[{[s]:"isSet",[t]:o},{[s]:"parseURL",[t]:o,assign:"url"}],type:f,rules:[{conditions:p,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:q,type:f,rules:[{conditions:r,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:q,endpoint:{url:i,properties:l,headers:l},type:h}]}]},{conditions:[j,k],type:f,rules:[{conditions:[m,n],type:f,rules:[{conditions:q,endpoint:{url:"https://ssm-incidents-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:p,type:f,rules:[{conditions:[m],type:f,rules:[{conditions:q,type:f,rules:[{conditions:q,endpoint:{url:"https://ssm-incidents-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]},{conditions:q,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:r,type:f,rules:[{conditions:[n],type:f,rules:[{conditions:q,endpoint:{url:"https://ssm-incidents.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:q,endpoint:{url:"https://ssm-incidents.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-ssm-sap/src/endpoint/ruleset.ts b/clients/client-ssm-sap/src/endpoint/ruleset.ts index b5bbeb2c0af92..455220dfe0fa6 100644 --- a/clients/client-ssm-sap/src/endpoint/ruleset.ts +++ b/clients/client-ssm-sap/src/endpoint/ruleset.ts @@ -1,314 +1,31 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: true, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://ssm-sap-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://ssm-sap-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://ssm-sap.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://ssm-sap.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/ssm-sap.json */ + +const s="fn", +t="argv", +u="ref"; +const a=true, +b=false, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i={[u]:"Endpoint"}, +j={[s]:"booleanEquals",[t]:[{[u]:"UseFIPS"},true]}, +k={[s]:"booleanEquals",[t]:[{[u]:"UseDualStack"},true]}, +l={}, +m={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsFIPS"]}]}, +n={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsDualStack"]}]}, +o=[i], +p=[j], +q=[], +r=[k]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:a,default:b,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:a,default:b,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:b,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[s]:"aws.partition",[t]:[{[u]:"Region"}],assign:e}],type:f,rules:[{conditions:[{[s]:"isSet",[t]:o},{[s]:"parseURL",[t]:o,assign:"url"}],type:f,rules:[{conditions:p,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:q,type:f,rules:[{conditions:r,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:q,endpoint:{url:i,properties:l,headers:l},type:h}]}]},{conditions:[j,k],type:f,rules:[{conditions:[m,n],type:f,rules:[{conditions:q,endpoint:{url:"https://ssm-sap-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:p,type:f,rules:[{conditions:[m],type:f,rules:[{conditions:q,endpoint:{url:"https://ssm-sap-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:r,type:f,rules:[{conditions:[n],type:f,rules:[{conditions:q,endpoint:{url:"https://ssm-sap.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:q,endpoint:{url:"https://ssm-sap.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-ssm/src/endpoint/ruleset.ts b/clients/client-ssm/src/endpoint/ruleset.ts index a6342af0aa2d0..70fe58cc7fa2b 100644 --- a/clients/client-ssm/src/endpoint/ruleset.ts +++ b/clients/client-ssm/src/endpoint/ruleset.ts @@ -1,345 +1,34 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: false, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://ssm-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "stringEquals", - argv: [ - "aws-us-gov", - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "name", - ], - }, - ], - }, - ], - endpoint: { - url: "https://ssm.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - { - conditions: [], - endpoint: { - url: "https://ssm-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://ssm.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://ssm.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/ssm.json */ + +const v="fn", +w="argv", +x="ref"; +const a=false, +b=true, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i="getAttr", +j={[x]:"Endpoint"}, +k={[v]:"booleanEquals",[w]:[{[x]:"UseFIPS"},true]}, +l={[v]:"booleanEquals",[w]:[{[x]:"UseDualStack"},true]}, +m={}, +n={[v]:"booleanEquals",[w]:[true,{[v]:i,[w]:[{[x]:e},"supportsFIPS"]}]}, +o={[x]:e}, +p={[v]:"booleanEquals",[w]:[true,{[v]:i,[w]:[o,"supportsDualStack"]}]}, +q={"url":"https://ssm.{Region}.{PartitionResult#dnsSuffix}","properties":{},"headers":{}}, +r=[j], +s=[k], +t=[], +u=[l]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:b,default:a,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:b,default:a,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:a,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[v]:"aws.partition",[w]:[{[x]:"Region"}],assign:e}],type:f,rules:[{conditions:[{[v]:"isSet",[w]:r},{[v]:"parseURL",[w]:r,assign:"url"}],type:f,rules:[{conditions:s,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:t,type:f,rules:[{conditions:u,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:t,endpoint:{url:j,properties:m,headers:m},type:h}]}]},{conditions:[k,l],type:f,rules:[{conditions:[n,p],type:f,rules:[{conditions:t,endpoint:{url:"https://ssm-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:m,headers:m},type:h}]},{conditions:t,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:s,type:f,rules:[{conditions:[n],type:f,rules:[{conditions:t,type:f,rules:[{conditions:[{[v]:"stringEquals",[w]:["aws-us-gov",{[v]:i,[w]:[o,"name"]}]}],endpoint:q,type:h},{conditions:t,endpoint:{url:"https://ssm-fips.{Region}.{PartitionResult#dnsSuffix}",properties:m,headers:m},type:h}]}]},{conditions:t,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:u,type:f,rules:[{conditions:[p],type:f,rules:[{conditions:t,endpoint:{url:"https://ssm.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:m,headers:m},type:h}]},{conditions:t,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:t,endpoint:q,type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-sso-admin/src/endpoint/ruleset.ts b/clients/client-sso-admin/src/endpoint/ruleset.ts index d43fe19b0b763..cf778e797da42 100644 --- a/clients/client-sso-admin/src/endpoint/ruleset.ts +++ b/clients/client-sso-admin/src/endpoint/ruleset.ts @@ -1,320 +1,31 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: false, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://sso-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://sso-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://sso.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://sso.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/sso-admin.json */ + +const s="fn", +t="argv", +u="ref"; +const a=false, +b=true, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i={[u]:"Endpoint"}, +j={[s]:"booleanEquals",[t]:[{[u]:"UseFIPS"},true]}, +k={[s]:"booleanEquals",[t]:[{[u]:"UseDualStack"},true]}, +l={}, +m={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsFIPS"]}]}, +n={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsDualStack"]}]}, +o=[i], +p=[j], +q=[], +r=[k]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:b,default:a,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:b,default:a,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:a,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[s]:"aws.partition",[t]:[{[u]:"Region"}],assign:e}],type:f,rules:[{conditions:[{[s]:"isSet",[t]:o},{[s]:"parseURL",[t]:o,assign:"url"}],type:f,rules:[{conditions:p,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:q,type:f,rules:[{conditions:r,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:q,endpoint:{url:i,properties:l,headers:l},type:h}]}]},{conditions:[j,k],type:f,rules:[{conditions:[m,n],type:f,rules:[{conditions:q,endpoint:{url:"https://sso-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:p,type:f,rules:[{conditions:[m],type:f,rules:[{conditions:q,type:f,rules:[{conditions:q,endpoint:{url:"https://sso-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]},{conditions:q,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:r,type:f,rules:[{conditions:[n],type:f,rules:[{conditions:q,endpoint:{url:"https://sso.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:q,endpoint:{url:"https://sso.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-sso-oidc/src/endpoint/ruleset.ts b/clients/client-sso-oidc/src/endpoint/ruleset.ts index 0e8bf263ee539..1b9036d954b9e 100644 --- a/clients/client-sso-oidc/src/endpoint/ruleset.ts +++ b/clients/client-sso-oidc/src/endpoint/ruleset.ts @@ -1,320 +1,31 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: false, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://oidc-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://oidc-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://oidc.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://oidc.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/sso-oidc.json */ + +const s="fn", +t="argv", +u="ref"; +const a=false, +b=true, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i={[u]:"Endpoint"}, +j={[s]:"booleanEquals",[t]:[{[u]:"UseFIPS"},true]}, +k={[s]:"booleanEquals",[t]:[{[u]:"UseDualStack"},true]}, +l={}, +m={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsFIPS"]}]}, +n={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsDualStack"]}]}, +o=[i], +p=[j], +q=[], +r=[k]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:b,default:a,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:b,default:a,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:a,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[s]:"aws.partition",[t]:[{[u]:"Region"}],assign:e}],type:f,rules:[{conditions:[{[s]:"isSet",[t]:o},{[s]:"parseURL",[t]:o,assign:"url"}],type:f,rules:[{conditions:p,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:q,type:f,rules:[{conditions:r,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:q,endpoint:{url:i,properties:l,headers:l},type:h}]}]},{conditions:[j,k],type:f,rules:[{conditions:[m,n],type:f,rules:[{conditions:q,endpoint:{url:"https://oidc-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:p,type:f,rules:[{conditions:[m],type:f,rules:[{conditions:q,type:f,rules:[{conditions:q,endpoint:{url:"https://oidc-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]},{conditions:q,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:r,type:f,rules:[{conditions:[n],type:f,rules:[{conditions:q,endpoint:{url:"https://oidc.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:q,endpoint:{url:"https://oidc.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-sso/src/endpoint/ruleset.ts b/clients/client-sso/src/endpoint/ruleset.ts index 049715158c26c..5c3bfb9922eb4 100644 --- a/clients/client-sso/src/endpoint/ruleset.ts +++ b/clients/client-sso/src/endpoint/ruleset.ts @@ -1,320 +1,31 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: false, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://portal.sso-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://portal.sso-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://portal.sso.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://portal.sso.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/sso.json */ + +const s="fn", +t="argv", +u="ref"; +const a=false, +b=true, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i={[u]:"Endpoint"}, +j={[s]:"booleanEquals",[t]:[{[u]:"UseFIPS"},true]}, +k={[s]:"booleanEquals",[t]:[{[u]:"UseDualStack"},true]}, +l={}, +m={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsFIPS"]}]}, +n={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsDualStack"]}]}, +o=[i], +p=[j], +q=[], +r=[k]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:b,default:a,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:b,default:a,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:a,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[s]:"aws.partition",[t]:[{[u]:"Region"}],assign:e}],type:f,rules:[{conditions:[{[s]:"isSet",[t]:o},{[s]:"parseURL",[t]:o,assign:"url"}],type:f,rules:[{conditions:p,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:q,type:f,rules:[{conditions:r,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:q,endpoint:{url:i,properties:l,headers:l},type:h}]}]},{conditions:[j,k],type:f,rules:[{conditions:[m,n],type:f,rules:[{conditions:q,endpoint:{url:"https://portal.sso-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:p,type:f,rules:[{conditions:[m],type:f,rules:[{conditions:q,type:f,rules:[{conditions:q,endpoint:{url:"https://portal.sso-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]},{conditions:q,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:r,type:f,rules:[{conditions:[n],type:f,rules:[{conditions:q,endpoint:{url:"https://portal.sso.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:q,endpoint:{url:"https://portal.sso.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-storage-gateway/src/endpoint/ruleset.ts b/clients/client-storage-gateway/src/endpoint/ruleset.ts index bb893d8403105..49db8de5feb3a 100644 --- a/clients/client-storage-gateway/src/endpoint/ruleset.ts +++ b/clients/client-storage-gateway/src/endpoint/ruleset.ts @@ -1,320 +1,31 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: false, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://storagegateway-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://storagegateway-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://storagegateway.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://storagegateway.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/storage-gateway.json */ + +const s="fn", +t="argv", +u="ref"; +const a=false, +b=true, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i={[u]:"Endpoint"}, +j={[s]:"booleanEquals",[t]:[{[u]:"UseFIPS"},true]}, +k={[s]:"booleanEquals",[t]:[{[u]:"UseDualStack"},true]}, +l={}, +m={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsFIPS"]}]}, +n={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsDualStack"]}]}, +o=[i], +p=[j], +q=[], +r=[k]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:b,default:a,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:b,default:a,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:a,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[s]:"aws.partition",[t]:[{[u]:"Region"}],assign:e}],type:f,rules:[{conditions:[{[s]:"isSet",[t]:o},{[s]:"parseURL",[t]:o,assign:"url"}],type:f,rules:[{conditions:p,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:q,type:f,rules:[{conditions:r,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:q,endpoint:{url:i,properties:l,headers:l},type:h}]}]},{conditions:[j,k],type:f,rules:[{conditions:[m,n],type:f,rules:[{conditions:q,endpoint:{url:"https://storagegateway-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:p,type:f,rules:[{conditions:[m],type:f,rules:[{conditions:q,type:f,rules:[{conditions:q,endpoint:{url:"https://storagegateway-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]},{conditions:q,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:r,type:f,rules:[{conditions:[n],type:f,rules:[{conditions:q,endpoint:{url:"https://storagegateway.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:q,endpoint:{url:"https://storagegateway.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-sts/src/endpoint/ruleset.ts b/clients/client-sts/src/endpoint/ruleset.ts index 76e427fa185d4..d0768f015bd4a 100644 --- a/clients/client-sts/src/endpoint/ruleset.ts +++ b/clients/client-sts/src/endpoint/ruleset.ts @@ -1,881 +1,49 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: false, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - UseGlobalEndpoint: { - builtIn: "AWS::STS::UseGlobalEndpoint", - required: true, - default: false, - documentation: "Whether the global endpoint should be used, rather then the regional endpoint for us-east-1.", - type: "Boolean", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseGlobalEndpoint", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - false, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - false, - ], - }, - { - fn: "not", - argv: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "stringEquals", - argv: [ - { - ref: "Region", - }, - "ap-northeast-1", - ], - }, - ], - endpoint: { - url: "https://sts.amazonaws.com", - properties: { - authSchemes: [ - { - name: "sigv4", - signingName: "sts", - signingRegion: "us-east-1", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - { - conditions: [ - { - fn: "stringEquals", - argv: [ - { - ref: "Region", - }, - "ap-south-1", - ], - }, - ], - endpoint: { - url: "https://sts.amazonaws.com", - properties: { - authSchemes: [ - { - name: "sigv4", - signingName: "sts", - signingRegion: "us-east-1", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - { - conditions: [ - { - fn: "stringEquals", - argv: [ - { - ref: "Region", - }, - "ap-southeast-1", - ], - }, - ], - endpoint: { - url: "https://sts.amazonaws.com", - properties: { - authSchemes: [ - { - name: "sigv4", - signingName: "sts", - signingRegion: "us-east-1", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - { - conditions: [ - { - fn: "stringEquals", - argv: [ - { - ref: "Region", - }, - "ap-southeast-2", - ], - }, - ], - endpoint: { - url: "https://sts.amazonaws.com", - properties: { - authSchemes: [ - { - name: "sigv4", - signingName: "sts", - signingRegion: "us-east-1", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - { - conditions: [ - { - fn: "stringEquals", - argv: [ - { - ref: "Region", - }, - "aws-global", - ], - }, - ], - endpoint: { - url: "https://sts.amazonaws.com", - properties: { - authSchemes: [ - { - name: "sigv4", - signingName: "sts", - signingRegion: "us-east-1", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - { - conditions: [ - { - fn: "stringEquals", - argv: [ - { - ref: "Region", - }, - "ca-central-1", - ], - }, - ], - endpoint: { - url: "https://sts.amazonaws.com", - properties: { - authSchemes: [ - { - name: "sigv4", - signingName: "sts", - signingRegion: "us-east-1", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - { - conditions: [ - { - fn: "stringEquals", - argv: [ - { - ref: "Region", - }, - "eu-central-1", - ], - }, - ], - endpoint: { - url: "https://sts.amazonaws.com", - properties: { - authSchemes: [ - { - name: "sigv4", - signingName: "sts", - signingRegion: "us-east-1", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - { - conditions: [ - { - fn: "stringEquals", - argv: [ - { - ref: "Region", - }, - "eu-north-1", - ], - }, - ], - endpoint: { - url: "https://sts.amazonaws.com", - properties: { - authSchemes: [ - { - name: "sigv4", - signingName: "sts", - signingRegion: "us-east-1", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - { - conditions: [ - { - fn: "stringEquals", - argv: [ - { - ref: "Region", - }, - "eu-west-1", - ], - }, - ], - endpoint: { - url: "https://sts.amazonaws.com", - properties: { - authSchemes: [ - { - name: "sigv4", - signingName: "sts", - signingRegion: "us-east-1", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - { - conditions: [ - { - fn: "stringEquals", - argv: [ - { - ref: "Region", - }, - "eu-west-2", - ], - }, - ], - endpoint: { - url: "https://sts.amazonaws.com", - properties: { - authSchemes: [ - { - name: "sigv4", - signingName: "sts", - signingRegion: "us-east-1", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - { - conditions: [ - { - fn: "stringEquals", - argv: [ - { - ref: "Region", - }, - "eu-west-3", - ], - }, - ], - endpoint: { - url: "https://sts.amazonaws.com", - properties: { - authSchemes: [ - { - name: "sigv4", - signingName: "sts", - signingRegion: "us-east-1", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - { - conditions: [ - { - fn: "stringEquals", - argv: [ - { - ref: "Region", - }, - "sa-east-1", - ], - }, - ], - endpoint: { - url: "https://sts.amazonaws.com", - properties: { - authSchemes: [ - { - name: "sigv4", - signingName: "sts", - signingRegion: "us-east-1", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - { - conditions: [ - { - fn: "stringEquals", - argv: [ - { - ref: "Region", - }, - "us-east-1", - ], - }, - ], - endpoint: { - url: "https://sts.amazonaws.com", - properties: { - authSchemes: [ - { - name: "sigv4", - signingName: "sts", - signingRegion: "us-east-1", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - { - conditions: [ - { - fn: "stringEquals", - argv: [ - { - ref: "Region", - }, - "us-east-2", - ], - }, - ], - endpoint: { - url: "https://sts.amazonaws.com", - properties: { - authSchemes: [ - { - name: "sigv4", - signingName: "sts", - signingRegion: "us-east-1", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - { - conditions: [ - { - fn: "stringEquals", - argv: [ - { - ref: "Region", - }, - "us-west-1", - ], - }, - ], - endpoint: { - url: "https://sts.amazonaws.com", - properties: { - authSchemes: [ - { - name: "sigv4", - signingName: "sts", - signingRegion: "us-east-1", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - { - conditions: [ - { - fn: "stringEquals", - argv: [ - { - ref: "Region", - }, - "us-west-2", - ], - }, - ], - endpoint: { - url: "https://sts.amazonaws.com", - properties: { - authSchemes: [ - { - name: "sigv4", - signingName: "sts", - signingRegion: "us-east-1", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - { - conditions: [], - endpoint: { - url: "https://sts.{Region}.{PartitionResult#dnsSuffix}", - properties: { - authSchemes: [ - { - name: "sigv4", - signingName: "sts", - signingRegion: "{Region}", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://sts-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "stringEquals", - argv: [ - "aws-us-gov", - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "name", - ], - }, - ], - }, - ], - endpoint: { - url: "https://sts.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - { - conditions: [], - endpoint: { - url: "https://sts-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://sts.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "stringEquals", - argv: [ - { - ref: "Region", - }, - "aws-global", - ], - }, - ], - endpoint: { - url: "https://sts.amazonaws.com", - properties: { - authSchemes: [ - { - name: "sigv4", - signingRegion: "us-east-1", - signingName: "sts", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - { - conditions: [], - endpoint: { - url: "https://sts.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/sts.json */ + +const I="fn", +J="argv", +K="ref", +L="properties", +M="headers"; +const a=false, +b=true, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="booleanEquals", +h="stringEquals", +i="https://sts.amazonaws.com", +j="sigv4", +k="sts", +l="us-east-1", +m="endpoint", +n="https://sts.{Region}.{PartitionResult#dnsSuffix}", +o="error", +p="getAttr", +q={[K]:"Region"}, +r={[K]:"UseFIPS"}, +s={[K]:"UseDualStack"}, +t={[I]:"isSet",[J]:[{[K]:"Endpoint"}]}, +u={[K]:"Endpoint"}, +v={"url":i,[L]:{"authSchemes":[{"name":j,"signingName":k,"signingRegion":l}]},[M]:{}}, +w={}, +x={[I]:g,[J]:[r,true]}, +y={[I]:g,[J]:[s,true]}, +z={[I]:g,[J]:[true,{[I]:p,[J]:[{[K]:e},"supportsFIPS"]}]}, +A={[K]:e}, +B={[I]:g,[J]:[true,{[I]:p,[J]:[A,"supportsDualStack"]}]}, +C={"url":n,[L]:{},[M]:{}}, +D=[u], +E=[{[I]:h,[J]:[q,"aws-global"]}], +F=[], +G=[x], +H=[y]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:b,default:a,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:b,default:a,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:a,documentation:"Override the endpoint used to send this request",type:c},UseGlobalEndpoint:{builtIn:"AWS::STS::UseGlobalEndpoint",required:b,default:a,documentation:"Whether the global endpoint should be used, rather then the regional endpoint for us-east-1.",type:d}},rules:[{conditions:[{[I]:"aws.partition",[J]:[q],assign:e}],type:f,rules:[{conditions:[{[I]:g,[J]:[{[K]:"UseGlobalEndpoint"},b]},{[I]:g,[J]:[r,a]},{[I]:g,[J]:[s,a]},{[I]:"not",[J]:[t]}],type:f,rules:[{conditions:[{[I]:h,[J]:[q,"ap-northeast-1"]}],endpoint:v,type:m},{conditions:[{[I]:h,[J]:[q,"ap-south-1"]}],endpoint:v,type:m},{conditions:[{[I]:h,[J]:[q,"ap-southeast-1"]}],endpoint:v,type:m},{conditions:[{[I]:h,[J]:[q,"ap-southeast-2"]}],endpoint:v,type:m},{conditions:E,endpoint:v,type:m},{conditions:[{[I]:h,[J]:[q,"ca-central-1"]}],endpoint:v,type:m},{conditions:[{[I]:h,[J]:[q,"eu-central-1"]}],endpoint:v,type:m},{conditions:[{[I]:h,[J]:[q,"eu-north-1"]}],endpoint:v,type:m},{conditions:[{[I]:h,[J]:[q,"eu-west-1"]}],endpoint:v,type:m},{conditions:[{[I]:h,[J]:[q,"eu-west-2"]}],endpoint:v,type:m},{conditions:[{[I]:h,[J]:[q,"eu-west-3"]}],endpoint:v,type:m},{conditions:[{[I]:h,[J]:[q,"sa-east-1"]}],endpoint:v,type:m},{conditions:[{[I]:h,[J]:[q,l]}],endpoint:v,type:m},{conditions:[{[I]:h,[J]:[q,"us-east-2"]}],endpoint:v,type:m},{conditions:[{[I]:h,[J]:[q,"us-west-1"]}],endpoint:v,type:m},{conditions:[{[I]:h,[J]:[q,"us-west-2"]}],endpoint:v,type:m},{conditions:F,endpoint:{url:n,[L]:{authSchemes:[{name:j,signingName:k,signingRegion:"{Region}"}]},[M]:w},type:m}]},{conditions:[t,{[I]:"parseURL",[J]:D,assign:"url"}],type:f,rules:[{conditions:G,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:o},{conditions:F,type:f,rules:[{conditions:H,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:o},{conditions:F,endpoint:{url:u,[L]:w,[M]:w},type:m}]}]},{conditions:[x,y],type:f,rules:[{conditions:[z,B],type:f,rules:[{conditions:F,endpoint:{url:"https://sts-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",[L]:w,[M]:w},type:m}]},{conditions:F,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:o}]},{conditions:G,type:f,rules:[{conditions:[z],type:f,rules:[{conditions:F,type:f,rules:[{conditions:[{[I]:h,[J]:["aws-us-gov",{[I]:p,[J]:[A,"name"]}]}],endpoint:C,type:m},{conditions:F,endpoint:{url:"https://sts-fips.{Region}.{PartitionResult#dnsSuffix}",[L]:w,[M]:w},type:m}]}]},{conditions:F,error:"FIPS is enabled but this partition does not support FIPS",type:o}]},{conditions:H,type:f,rules:[{conditions:[B],type:f,rules:[{conditions:F,endpoint:{url:"https://sts.{Region}.{PartitionResult#dualStackDnsSuffix}",[L]:w,[M]:w},type:m}]},{conditions:F,error:"DualStack is enabled but this partition does not support DualStack",type:o}]},{conditions:F,type:f,rules:[{conditions:E,endpoint:{url:i,[L]:{authSchemes:[{name:j,signingRegion:l,signingName:k}]},[M]:w},type:m},{conditions:F,endpoint:C,type:m}]}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-support-app/src/endpoint/ruleset.ts b/clients/client-support-app/src/endpoint/ruleset.ts index a9b69fa28ab1e..df4343f794281 100644 --- a/clients/client-support-app/src/endpoint/ruleset.ts +++ b/clients/client-support-app/src/endpoint/ruleset.ts @@ -1,314 +1,31 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: false, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://supportapp-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://supportapp-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://supportapp.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://supportapp.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/support-app.json */ + +const s="fn", +t="argv", +u="ref"; +const a=false, +b=true, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i={[u]:"Endpoint"}, +j={[s]:"booleanEquals",[t]:[{[u]:"UseFIPS"},true]}, +k={[s]:"booleanEquals",[t]:[{[u]:"UseDualStack"},true]}, +l={}, +m={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsFIPS"]}]}, +n={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsDualStack"]}]}, +o=[i], +p=[j], +q=[], +r=[k]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:b,default:a,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:b,default:a,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:a,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[s]:"aws.partition",[t]:[{[u]:"Region"}],assign:e}],type:f,rules:[{conditions:[{[s]:"isSet",[t]:o},{[s]:"parseURL",[t]:o,assign:"url"}],type:f,rules:[{conditions:p,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:q,type:f,rules:[{conditions:r,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:q,endpoint:{url:i,properties:l,headers:l},type:h}]}]},{conditions:[j,k],type:f,rules:[{conditions:[m,n],type:f,rules:[{conditions:q,endpoint:{url:"https://supportapp-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:p,type:f,rules:[{conditions:[m],type:f,rules:[{conditions:q,endpoint:{url:"https://supportapp-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:r,type:f,rules:[{conditions:[n],type:f,rules:[{conditions:q,endpoint:{url:"https://supportapp.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:q,endpoint:{url:"https://supportapp.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-support/src/endpoint/ruleset.ts b/clients/client-support/src/endpoint/ruleset.ts index bdafb19ad23a0..352da5fa2cdf8 100644 --- a/clients/client-support/src/endpoint/ruleset.ts +++ b/clients/client-support/src/endpoint/ruleset.ts @@ -1,480 +1,37 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: false, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://support-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "stringEquals", - argv: [ - { - ref: "Region", - }, - "us-gov-west-1", - ], - }, - ], - endpoint: { - url: "https://support.us-gov-west-1.amazonaws.com", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - { - conditions: [], - endpoint: { - url: "https://support-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://support.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "stringEquals", - argv: [ - { - ref: "Region", - }, - "aws-global", - ], - }, - ], - endpoint: { - url: "https://support.us-east-1.amazonaws.com", - properties: { - authSchemes: [ - { - name: "sigv4", - signingName: "support", - signingRegion: "us-east-1", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - { - conditions: [ - { - fn: "stringEquals", - argv: [ - { - ref: "Region", - }, - "aws-cn-global", - ], - }, - ], - endpoint: { - url: "https://support.cn-north-1.amazonaws.com.cn", - properties: { - authSchemes: [ - { - name: "sigv4", - signingName: "support", - signingRegion: "cn-north-1", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - { - conditions: [ - { - fn: "stringEquals", - argv: [ - { - ref: "Region", - }, - "aws-us-gov-global", - ], - }, - ], - endpoint: { - url: "https://support.us-gov-west-1.amazonaws.com", - properties: { - authSchemes: [ - { - name: "sigv4", - signingName: "support", - signingRegion: "us-gov-west-1", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - { - conditions: [ - { - fn: "stringEquals", - argv: [ - { - ref: "Region", - }, - "aws-iso-global", - ], - }, - ], - endpoint: { - url: "https://support.us-iso-east-1.c2s.ic.gov", - properties: { - authSchemes: [ - { - name: "sigv4", - signingName: "support", - signingRegion: "us-iso-east-1", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - { - conditions: [ - { - fn: "stringEquals", - argv: [ - { - ref: "Region", - }, - "aws-iso-b-global", - ], - }, - ], - endpoint: { - url: "https://support.us-isob-east-1.sc2s.sgov.gov", - properties: { - authSchemes: [ - { - name: "sigv4", - signingName: "support", - signingRegion: "us-isob-east-1", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - { - conditions: [], - endpoint: { - url: "https://support.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/support.json */ + +const y="fn", +z="argv", +A="ref"; +const a=false, +b=true, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i="stringEquals", +j="us-gov-west-1", +k="https://support.us-gov-west-1.amazonaws.com", +l="sigv4", +m="support", +n={[A]:"Region"}, +o={[A]:"Endpoint"}, +p={[y]:"booleanEquals",[z]:[{[A]:"UseFIPS"},true]}, +q={[y]:"booleanEquals",[z]:[{[A]:"UseDualStack"},true]}, +r={}, +s={[y]:"booleanEquals",[z]:[true,{[y]:"getAttr",[z]:[{[A]:e},"supportsFIPS"]}]}, +t={[y]:"booleanEquals",[z]:[true,{[y]:"getAttr",[z]:[{[A]:e},"supportsDualStack"]}]}, +u=[o], +v=[p], +w=[], +x=[q]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:b,default:a,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:b,default:a,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:a,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[y]:"aws.partition",[z]:[n],assign:e}],type:f,rules:[{conditions:[{[y]:"isSet",[z]:u},{[y]:"parseURL",[z]:u,assign:"url"}],type:f,rules:[{conditions:v,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:w,type:f,rules:[{conditions:x,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:w,endpoint:{url:o,properties:r,headers:r},type:h}]}]},{conditions:[p,q],type:f,rules:[{conditions:[s,t],type:f,rules:[{conditions:w,endpoint:{url:"https://support-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:r,headers:r},type:h}]},{conditions:w,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:v,type:f,rules:[{conditions:[s],type:f,rules:[{conditions:w,type:f,rules:[{conditions:[{[y]:i,[z]:[n,j]}],endpoint:{url:k,properties:r,headers:r},type:h},{conditions:w,endpoint:{url:"https://support-fips.{Region}.{PartitionResult#dnsSuffix}",properties:r,headers:r},type:h}]}]},{conditions:w,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:x,type:f,rules:[{conditions:[t],type:f,rules:[{conditions:w,endpoint:{url:"https://support.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:r,headers:r},type:h}]},{conditions:w,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:w,type:f,rules:[{conditions:[{[y]:i,[z]:[n,"aws-global"]}],endpoint:{url:"https://support.us-east-1.amazonaws.com",properties:{authSchemes:[{name:l,signingName:m,signingRegion:"us-east-1"}]},headers:r},type:h},{conditions:[{[y]:i,[z]:[n,"aws-cn-global"]}],endpoint:{url:"https://support.cn-north-1.amazonaws.com.cn",properties:{authSchemes:[{name:l,signingName:m,signingRegion:"cn-north-1"}]},headers:r},type:h},{conditions:[{[y]:i,[z]:[n,"aws-us-gov-global"]}],endpoint:{url:k,properties:{authSchemes:[{name:l,signingName:m,signingRegion:j}]},headers:r},type:h},{conditions:[{[y]:i,[z]:[n,"aws-iso-global"]}],endpoint:{url:"https://support.us-iso-east-1.c2s.ic.gov",properties:{authSchemes:[{name:l,signingName:m,signingRegion:"us-iso-east-1"}]},headers:r},type:h},{conditions:[{[y]:i,[z]:[n,"aws-iso-b-global"]}],endpoint:{url:"https://support.us-isob-east-1.sc2s.sgov.gov",properties:{authSchemes:[{name:l,signingName:m,signingRegion:"us-isob-east-1"}]},headers:r},type:h},{conditions:w,endpoint:{url:"https://support.{Region}.{PartitionResult#dnsSuffix}",properties:r,headers:r},type:h}]}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-swf/src/endpoint/ruleset.ts b/clients/client-swf/src/endpoint/ruleset.ts index cf0f636b73a56..cdb25fca31b0f 100644 --- a/clients/client-swf/src/endpoint/ruleset.ts +++ b/clients/client-swf/src/endpoint/ruleset.ts @@ -1,320 +1,31 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: false, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://swf-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://swf-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://swf.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://swf.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/swf.json */ + +const s="fn", +t="argv", +u="ref"; +const a=false, +b=true, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i={[u]:"Endpoint"}, +j={[s]:"booleanEquals",[t]:[{[u]:"UseFIPS"},true]}, +k={[s]:"booleanEquals",[t]:[{[u]:"UseDualStack"},true]}, +l={}, +m={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsFIPS"]}]}, +n={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsDualStack"]}]}, +o=[i], +p=[j], +q=[], +r=[k]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:b,default:a,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:b,default:a,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:a,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[s]:"aws.partition",[t]:[{[u]:"Region"}],assign:e}],type:f,rules:[{conditions:[{[s]:"isSet",[t]:o},{[s]:"parseURL",[t]:o,assign:"url"}],type:f,rules:[{conditions:p,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:q,type:f,rules:[{conditions:r,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:q,endpoint:{url:i,properties:l,headers:l},type:h}]}]},{conditions:[j,k],type:f,rules:[{conditions:[m,n],type:f,rules:[{conditions:q,endpoint:{url:"https://swf-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:p,type:f,rules:[{conditions:[m],type:f,rules:[{conditions:q,type:f,rules:[{conditions:q,endpoint:{url:"https://swf-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]},{conditions:q,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:r,type:f,rules:[{conditions:[n],type:f,rules:[{conditions:q,endpoint:{url:"https://swf.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:q,endpoint:{url:"https://swf.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-synthetics/src/endpoint/ruleset.ts b/clients/client-synthetics/src/endpoint/ruleset.ts index c9e5d2de577e4..ea916c55a48ce 100644 --- a/clients/client-synthetics/src/endpoint/ruleset.ts +++ b/clients/client-synthetics/src/endpoint/ruleset.ts @@ -1,320 +1,31 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: false, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://synthetics-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://synthetics-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://synthetics.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://synthetics.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/synthetics.json */ + +const s="fn", +t="argv", +u="ref"; +const a=false, +b=true, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i={[u]:"Endpoint"}, +j={[s]:"booleanEquals",[t]:[{[u]:"UseFIPS"},true]}, +k={[s]:"booleanEquals",[t]:[{[u]:"UseDualStack"},true]}, +l={}, +m={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsFIPS"]}]}, +n={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsDualStack"]}]}, +o=[i], +p=[j], +q=[], +r=[k]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:b,default:a,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:b,default:a,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:a,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[s]:"aws.partition",[t]:[{[u]:"Region"}],assign:e}],type:f,rules:[{conditions:[{[s]:"isSet",[t]:o},{[s]:"parseURL",[t]:o,assign:"url"}],type:f,rules:[{conditions:p,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:q,type:f,rules:[{conditions:r,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:q,endpoint:{url:i,properties:l,headers:l},type:h}]}]},{conditions:[j,k],type:f,rules:[{conditions:[m,n],type:f,rules:[{conditions:q,endpoint:{url:"https://synthetics-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:p,type:f,rules:[{conditions:[m],type:f,rules:[{conditions:q,type:f,rules:[{conditions:q,endpoint:{url:"https://synthetics-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]},{conditions:q,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:r,type:f,rules:[{conditions:[n],type:f,rules:[{conditions:q,endpoint:{url:"https://synthetics.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:q,endpoint:{url:"https://synthetics.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-textract/src/endpoint/ruleset.ts b/clients/client-textract/src/endpoint/ruleset.ts index 4ca0276eb5315..a3ada6d7a9285 100644 --- a/clients/client-textract/src/endpoint/ruleset.ts +++ b/clients/client-textract/src/endpoint/ruleset.ts @@ -1,320 +1,31 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: true, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://textract-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://textract-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://textract.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://textract.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/textract.json */ + +const s="fn", +t="argv", +u="ref"; +const a=true, +b=false, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i={[u]:"Endpoint"}, +j={[s]:"booleanEquals",[t]:[{[u]:"UseFIPS"},true]}, +k={[s]:"booleanEquals",[t]:[{[u]:"UseDualStack"},true]}, +l={}, +m={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsFIPS"]}]}, +n={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsDualStack"]}]}, +o=[i], +p=[j], +q=[], +r=[k]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:a,default:b,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:a,default:b,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:b,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[s]:"aws.partition",[t]:[{[u]:"Region"}],assign:e}],type:f,rules:[{conditions:[{[s]:"isSet",[t]:o},{[s]:"parseURL",[t]:o,assign:"url"}],type:f,rules:[{conditions:p,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:q,type:f,rules:[{conditions:r,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:q,endpoint:{url:i,properties:l,headers:l},type:h}]}]},{conditions:[j,k],type:f,rules:[{conditions:[m,n],type:f,rules:[{conditions:q,endpoint:{url:"https://textract-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:p,type:f,rules:[{conditions:[m],type:f,rules:[{conditions:q,type:f,rules:[{conditions:q,endpoint:{url:"https://textract-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]},{conditions:q,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:r,type:f,rules:[{conditions:[n],type:f,rules:[{conditions:q,endpoint:{url:"https://textract.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:q,endpoint:{url:"https://textract.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-timestream-query/src/endpoint/ruleset.ts b/clients/client-timestream-query/src/endpoint/ruleset.ts index 2e2eab06f6bdb..b8b28763616cb 100644 --- a/clients/client-timestream-query/src/endpoint/ruleset.ts +++ b/clients/client-timestream-query/src/endpoint/ruleset.ts @@ -1,314 +1,31 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: false, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://query.timestream-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://query.timestream-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://query.timestream.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://query.timestream.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/timestream-query.json */ + +const s="fn", +t="argv", +u="ref"; +const a=false, +b=true, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i={[u]:"Endpoint"}, +j={[s]:"booleanEquals",[t]:[{[u]:"UseFIPS"},true]}, +k={[s]:"booleanEquals",[t]:[{[u]:"UseDualStack"},true]}, +l={}, +m={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsFIPS"]}]}, +n={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsDualStack"]}]}, +o=[i], +p=[j], +q=[], +r=[k]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:b,default:a,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:b,default:a,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:a,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[s]:"aws.partition",[t]:[{[u]:"Region"}],assign:e}],type:f,rules:[{conditions:[{[s]:"isSet",[t]:o},{[s]:"parseURL",[t]:o,assign:"url"}],type:f,rules:[{conditions:p,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:q,type:f,rules:[{conditions:r,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:q,endpoint:{url:i,properties:l,headers:l},type:h}]}]},{conditions:[j,k],type:f,rules:[{conditions:[m,n],type:f,rules:[{conditions:q,endpoint:{url:"https://query.timestream-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:p,type:f,rules:[{conditions:[m],type:f,rules:[{conditions:q,endpoint:{url:"https://query.timestream-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:r,type:f,rules:[{conditions:[n],type:f,rules:[{conditions:q,endpoint:{url:"https://query.timestream.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:q,endpoint:{url:"https://query.timestream.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-timestream-write/src/endpoint/ruleset.ts b/clients/client-timestream-write/src/endpoint/ruleset.ts index deea51e9b12fe..410c634a9021c 100644 --- a/clients/client-timestream-write/src/endpoint/ruleset.ts +++ b/clients/client-timestream-write/src/endpoint/ruleset.ts @@ -1,314 +1,31 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: false, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://ingest.timestream-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://ingest.timestream-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://ingest.timestream.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://ingest.timestream.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/timestream-write.json */ + +const s="fn", +t="argv", +u="ref"; +const a=false, +b=true, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i={[u]:"Endpoint"}, +j={[s]:"booleanEquals",[t]:[{[u]:"UseFIPS"},true]}, +k={[s]:"booleanEquals",[t]:[{[u]:"UseDualStack"},true]}, +l={}, +m={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsFIPS"]}]}, +n={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsDualStack"]}]}, +o=[i], +p=[j], +q=[], +r=[k]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:b,default:a,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:b,default:a,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:a,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[s]:"aws.partition",[t]:[{[u]:"Region"}],assign:e}],type:f,rules:[{conditions:[{[s]:"isSet",[t]:o},{[s]:"parseURL",[t]:o,assign:"url"}],type:f,rules:[{conditions:p,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:q,type:f,rules:[{conditions:r,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:q,endpoint:{url:i,properties:l,headers:l},type:h}]}]},{conditions:[j,k],type:f,rules:[{conditions:[m,n],type:f,rules:[{conditions:q,endpoint:{url:"https://ingest.timestream-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:p,type:f,rules:[{conditions:[m],type:f,rules:[{conditions:q,endpoint:{url:"https://ingest.timestream-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:r,type:f,rules:[{conditions:[n],type:f,rules:[{conditions:q,endpoint:{url:"https://ingest.timestream.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:q,endpoint:{url:"https://ingest.timestream.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-transcribe-streaming/src/endpoint/ruleset.ts b/clients/client-transcribe-streaming/src/endpoint/ruleset.ts index 843e469a544fc..95f6621339845 100644 --- a/clients/client-transcribe-streaming/src/endpoint/ruleset.ts +++ b/clients/client-transcribe-streaming/src/endpoint/ruleset.ts @@ -1,396 +1,33 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: false, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://transcribestreaming-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "stringEquals", - argv: [ - { - ref: "Region", - }, - "transcribestreaming-ca-central-1", - ], - }, - ], - endpoint: { - url: "https://transcribestreaming-fips.ca-central-1.amazonaws.com", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - { - conditions: [ - { - fn: "stringEquals", - argv: [ - { - ref: "Region", - }, - "transcribestreaming-us-east-1", - ], - }, - ], - endpoint: { - url: "https://transcribestreaming-fips.us-east-1.amazonaws.com", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - { - conditions: [ - { - fn: "stringEquals", - argv: [ - { - ref: "Region", - }, - "transcribestreaming-us-east-2", - ], - }, - ], - endpoint: { - url: "https://transcribestreaming-fips.us-east-2.amazonaws.com", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - { - conditions: [ - { - fn: "stringEquals", - argv: [ - { - ref: "Region", - }, - "transcribestreaming-us-west-2", - ], - }, - ], - endpoint: { - url: "https://transcribestreaming-fips.us-west-2.amazonaws.com", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - { - conditions: [], - endpoint: { - url: "https://transcribestreaming-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://transcribestreaming.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://transcribestreaming.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/transcribe-streaming.json */ + +const u="fn", +v="argv", +w="ref"; +const a=false, +b=true, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i="stringEquals", +j={[w]:"Region"}, +k={[w]:"Endpoint"}, +l={[u]:"booleanEquals",[v]:[{[w]:"UseFIPS"},true]}, +m={[u]:"booleanEquals",[v]:[{[w]:"UseDualStack"},true]}, +n={}, +o={[u]:"booleanEquals",[v]:[true,{[u]:"getAttr",[v]:[{[w]:e},"supportsFIPS"]}]}, +p={[u]:"booleanEquals",[v]:[true,{[u]:"getAttr",[v]:[{[w]:e},"supportsDualStack"]}]}, +q=[k], +r=[l], +s=[], +t=[m]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:b,default:a,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:b,default:a,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:a,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[u]:"aws.partition",[v]:[j],assign:e}],type:f,rules:[{conditions:[{[u]:"isSet",[v]:q},{[u]:"parseURL",[v]:q,assign:"url"}],type:f,rules:[{conditions:r,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:s,type:f,rules:[{conditions:t,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:s,endpoint:{url:k,properties:n,headers:n},type:h}]}]},{conditions:[l,m],type:f,rules:[{conditions:[o,p],type:f,rules:[{conditions:s,endpoint:{url:"https://transcribestreaming-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:n,headers:n},type:h}]},{conditions:s,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:r,type:f,rules:[{conditions:[o],type:f,rules:[{conditions:s,type:f,rules:[{conditions:[{[u]:i,[v]:[j,"transcribestreaming-ca-central-1"]}],endpoint:{url:"https://transcribestreaming-fips.ca-central-1.amazonaws.com",properties:n,headers:n},type:h},{conditions:[{[u]:i,[v]:[j,"transcribestreaming-us-east-1"]}],endpoint:{url:"https://transcribestreaming-fips.us-east-1.amazonaws.com",properties:n,headers:n},type:h},{conditions:[{[u]:i,[v]:[j,"transcribestreaming-us-east-2"]}],endpoint:{url:"https://transcribestreaming-fips.us-east-2.amazonaws.com",properties:n,headers:n},type:h},{conditions:[{[u]:i,[v]:[j,"transcribestreaming-us-west-2"]}],endpoint:{url:"https://transcribestreaming-fips.us-west-2.amazonaws.com",properties:n,headers:n},type:h},{conditions:s,endpoint:{url:"https://transcribestreaming-fips.{Region}.{PartitionResult#dnsSuffix}",properties:n,headers:n},type:h}]}]},{conditions:s,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:t,type:f,rules:[{conditions:[p],type:f,rules:[{conditions:s,endpoint:{url:"https://transcribestreaming.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:n,headers:n},type:h}]},{conditions:s,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:s,endpoint:{url:"https://transcribestreaming.{Region}.{PartitionResult#dnsSuffix}",properties:n,headers:n},type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-transcribe/src/endpoint/ruleset.ts b/clients/client-transcribe/src/endpoint/ruleset.ts index 01b998444e1c2..5a3aa63a00942 100644 --- a/clients/client-transcribe/src/endpoint/ruleset.ts +++ b/clients/client-transcribe/src/endpoint/ruleset.ts @@ -1,414 +1,35 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: true, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://transcribe-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "stringEquals", - argv: [ - "aws", - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "name", - ], - }, - ], - }, - ], - endpoint: { - url: "https://fips.transcribe.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - { - conditions: [ - { - fn: "stringEquals", - argv: [ - "aws-us-gov", - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "name", - ], - }, - ], - }, - ], - endpoint: { - url: "https://fips.transcribe.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - { - conditions: [], - endpoint: { - url: "https://transcribe-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://transcribe.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "stringEquals", - argv: [ - { - ref: "Region", - }, - "cn-north-1", - ], - }, - ], - endpoint: { - url: "https://cn.transcribe.cn-north-1.amazonaws.com.cn", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - { - conditions: [ - { - fn: "stringEquals", - argv: [ - { - ref: "Region", - }, - "cn-northwest-1", - ], - }, - ], - endpoint: { - url: "https://cn.transcribe.cn-northwest-1.amazonaws.com.cn", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - { - conditions: [], - endpoint: { - url: "https://transcribe.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/transcribe.json */ + +const w="fn", +x="argv", +y="ref"; +const a=true, +b=false, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i="stringEquals", +j={[y]:"Region"}, +k={[y]:"Endpoint"}, +l={[w]:"booleanEquals",[x]:[{[y]:"UseFIPS"},true]}, +m={[w]:"booleanEquals",[x]:[{[y]:"UseDualStack"},true]}, +n={}, +o={[w]:"booleanEquals",[x]:[true,{[w]:"getAttr",[x]:[{[y]:e},"supportsFIPS"]}]}, +p={[w]:"booleanEquals",[x]:[true,{[w]:"getAttr",[x]:[{[y]:e},"supportsDualStack"]}]}, +q={[w]:"getAttr",[x]:[{[y]:e},"name"]}, +r={"url":"https://fips.transcribe.{Region}.{PartitionResult#dnsSuffix}","properties":{},"headers":{}}, +s=[k], +t=[l], +u=[], +v=[m]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:a,default:b,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:a,default:b,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:b,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[w]:"aws.partition",[x]:[j],assign:e}],type:f,rules:[{conditions:[{[w]:"isSet",[x]:s},{[w]:"parseURL",[x]:s,assign:"url"}],type:f,rules:[{conditions:t,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:u,type:f,rules:[{conditions:v,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:u,endpoint:{url:k,properties:n,headers:n},type:h}]}]},{conditions:[l,m],type:f,rules:[{conditions:[o,p],type:f,rules:[{conditions:u,endpoint:{url:"https://transcribe-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:n,headers:n},type:h}]},{conditions:u,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:t,type:f,rules:[{conditions:[o],type:f,rules:[{conditions:u,type:f,rules:[{conditions:[{[w]:i,[x]:["aws",q]}],endpoint:r,type:h},{conditions:[{[w]:i,[x]:["aws-us-gov",q]}],endpoint:r,type:h},{conditions:u,endpoint:{url:"https://transcribe-fips.{Region}.{PartitionResult#dnsSuffix}",properties:n,headers:n},type:h}]}]},{conditions:u,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:v,type:f,rules:[{conditions:[p],type:f,rules:[{conditions:u,endpoint:{url:"https://transcribe.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:n,headers:n},type:h}]},{conditions:u,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:u,type:f,rules:[{conditions:[{[w]:i,[x]:[j,"cn-north-1"]}],endpoint:{url:"https://cn.transcribe.cn-north-1.amazonaws.com.cn",properties:n,headers:n},type:h},{conditions:[{[w]:i,[x]:[j,"cn-northwest-1"]}],endpoint:{url:"https://cn.transcribe.cn-northwest-1.amazonaws.com.cn",properties:n,headers:n},type:h},{conditions:u,endpoint:{url:"https://transcribe.{Region}.{PartitionResult#dnsSuffix}",properties:n,headers:n},type:h}]}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-transfer/src/endpoint/ruleset.ts b/clients/client-transfer/src/endpoint/ruleset.ts index de666d55b6e5d..55179f0e69372 100644 --- a/clients/client-transfer/src/endpoint/ruleset.ts +++ b/clients/client-transfer/src/endpoint/ruleset.ts @@ -1,320 +1,31 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: false, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://transfer-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://transfer-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://transfer.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://transfer.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/transfer.json */ + +const s="fn", +t="argv", +u="ref"; +const a=false, +b=true, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i={[u]:"Endpoint"}, +j={[s]:"booleanEquals",[t]:[{[u]:"UseFIPS"},true]}, +k={[s]:"booleanEquals",[t]:[{[u]:"UseDualStack"},true]}, +l={}, +m={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsFIPS"]}]}, +n={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsDualStack"]}]}, +o=[i], +p=[j], +q=[], +r=[k]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:b,default:a,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:b,default:a,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:a,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[s]:"aws.partition",[t]:[{[u]:"Region"}],assign:e}],type:f,rules:[{conditions:[{[s]:"isSet",[t]:o},{[s]:"parseURL",[t]:o,assign:"url"}],type:f,rules:[{conditions:p,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:q,type:f,rules:[{conditions:r,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:q,endpoint:{url:i,properties:l,headers:l},type:h}]}]},{conditions:[j,k],type:f,rules:[{conditions:[m,n],type:f,rules:[{conditions:q,endpoint:{url:"https://transfer-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:p,type:f,rules:[{conditions:[m],type:f,rules:[{conditions:q,type:f,rules:[{conditions:q,endpoint:{url:"https://transfer-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]},{conditions:q,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:r,type:f,rules:[{conditions:[n],type:f,rules:[{conditions:q,endpoint:{url:"https://transfer.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:q,endpoint:{url:"https://transfer.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-translate/src/endpoint/ruleset.ts b/clients/client-translate/src/endpoint/ruleset.ts index 434e427011e0c..3237a1c79ce00 100644 --- a/clients/client-translate/src/endpoint/ruleset.ts +++ b/clients/client-translate/src/endpoint/ruleset.ts @@ -1,311 +1,30 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: true, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://translate-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://translate-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://translate.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://translate.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/translate.json */ + +const r="fn", +s="argv", +t="ref"; +const a=true, +b=false, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i={[t]:"Endpoint"}, +j={[r]:"booleanEquals",[s]:[{[t]:"UseFIPS"},true]}, +k={[r]:"booleanEquals",[s]:[{[t]:"UseDualStack"},true]}, +l={}, +m={[r]:"booleanEquals",[s]:[true,{[r]:"getAttr",[s]:[{[t]:e},"supportsFIPS"]}]}, +n={[r]:"booleanEquals",[s]:[true,{[r]:"getAttr",[s]:[{[t]:e},"supportsDualStack"]}]}, +o=[j], +p=[], +q=[k]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:a,default:b,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:a,default:b,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:b,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[r]:"aws.partition",[s]:[{[t]:"Region"}],assign:e}],type:f,rules:[{conditions:[{[r]:"isSet",[s]:[i]}],type:f,rules:[{conditions:o,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:p,type:f,rules:[{conditions:q,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:p,endpoint:{url:i,properties:l,headers:l},type:h}]}]},{conditions:[j,k],type:f,rules:[{conditions:[m,n],type:f,rules:[{conditions:p,endpoint:{url:"https://translate-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:p,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:o,type:f,rules:[{conditions:[m],type:f,rules:[{conditions:p,type:f,rules:[{conditions:p,endpoint:{url:"https://translate-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]},{conditions:p,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:q,type:f,rules:[{conditions:[n],type:f,rules:[{conditions:p,endpoint:{url:"https://translate.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:p,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:p,endpoint:{url:"https://translate.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-voice-id/src/endpoint/ruleset.ts b/clients/client-voice-id/src/endpoint/ruleset.ts index 0ccd48344d792..6db087d8b8965 100644 --- a/clients/client-voice-id/src/endpoint/ruleset.ts +++ b/clients/client-voice-id/src/endpoint/ruleset.ts @@ -1,320 +1,31 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: false, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://voiceid-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://voiceid-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://voiceid.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://voiceid.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/voice-id.json */ + +const s="fn", +t="argv", +u="ref"; +const a=false, +b=true, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i={[u]:"Endpoint"}, +j={[s]:"booleanEquals",[t]:[{[u]:"UseFIPS"},true]}, +k={[s]:"booleanEquals",[t]:[{[u]:"UseDualStack"},true]}, +l={}, +m={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsFIPS"]}]}, +n={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsDualStack"]}]}, +o=[i], +p=[j], +q=[], +r=[k]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:b,default:a,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:b,default:a,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:a,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[s]:"aws.partition",[t]:[{[u]:"Region"}],assign:e}],type:f,rules:[{conditions:[{[s]:"isSet",[t]:o},{[s]:"parseURL",[t]:o,assign:"url"}],type:f,rules:[{conditions:p,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:q,type:f,rules:[{conditions:r,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:q,endpoint:{url:i,properties:l,headers:l},type:h}]}]},{conditions:[j,k],type:f,rules:[{conditions:[m,n],type:f,rules:[{conditions:q,endpoint:{url:"https://voiceid-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:p,type:f,rules:[{conditions:[m],type:f,rules:[{conditions:q,type:f,rules:[{conditions:q,endpoint:{url:"https://voiceid-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]},{conditions:q,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:r,type:f,rules:[{conditions:[n],type:f,rules:[{conditions:q,endpoint:{url:"https://voiceid.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:q,endpoint:{url:"https://voiceid.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-waf-regional/src/endpoint/ruleset.ts b/clients/client-waf-regional/src/endpoint/ruleset.ts index 60b56d7aad67e..486164ceef58c 100644 --- a/clients/client-waf-regional/src/endpoint/ruleset.ts +++ b/clients/client-waf-regional/src/endpoint/ruleset.ts @@ -1,320 +1,31 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: false, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://waf-regional-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://waf-regional-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://waf-regional.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://waf-regional.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/waf-regional.json */ + +const s="fn", +t="argv", +u="ref"; +const a=false, +b=true, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i={[u]:"Endpoint"}, +j={[s]:"booleanEquals",[t]:[{[u]:"UseFIPS"},true]}, +k={[s]:"booleanEquals",[t]:[{[u]:"UseDualStack"},true]}, +l={}, +m={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsFIPS"]}]}, +n={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsDualStack"]}]}, +o=[i], +p=[j], +q=[], +r=[k]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:b,default:a,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:b,default:a,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:a,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[s]:"aws.partition",[t]:[{[u]:"Region"}],assign:e}],type:f,rules:[{conditions:[{[s]:"isSet",[t]:o},{[s]:"parseURL",[t]:o,assign:"url"}],type:f,rules:[{conditions:p,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:q,type:f,rules:[{conditions:r,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:q,endpoint:{url:i,properties:l,headers:l},type:h}]}]},{conditions:[j,k],type:f,rules:[{conditions:[m,n],type:f,rules:[{conditions:q,endpoint:{url:"https://waf-regional-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:p,type:f,rules:[{conditions:[m],type:f,rules:[{conditions:q,type:f,rules:[{conditions:q,endpoint:{url:"https://waf-regional-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]},{conditions:q,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:r,type:f,rules:[{conditions:[n],type:f,rules:[{conditions:q,endpoint:{url:"https://waf-regional.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:q,endpoint:{url:"https://waf-regional.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-waf/src/endpoint/ruleset.ts b/clients/client-waf/src/endpoint/ruleset.ts index 92d5c8102071b..9a7a8fd786149 100644 --- a/clients/client-waf/src/endpoint/ruleset.ts +++ b/clients/client-waf/src/endpoint/ruleset.ts @@ -1,650 +1,47 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: false, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "stringEquals", - argv: [ - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "name", - ], - }, - "aws", - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://waf-fips.{Region}.api.aws", - properties: { - authSchemes: [ - { - name: "sigv4", - signingName: "waf", - signingRegion: "us-east-1", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://waf-fips.amazonaws.com", - properties: { - authSchemes: [ - { - name: "sigv4", - signingName: "waf", - signingRegion: "us-east-1", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://waf.{Region}.api.aws", - properties: { - authSchemes: [ - { - name: "sigv4", - signingName: "waf", - signingRegion: "us-east-1", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://waf.amazonaws.com", - properties: { - authSchemes: [ - { - name: "sigv4", - signingName: "waf", - signingRegion: "us-east-1", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://waf-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "stringEquals", - argv: [ - { - ref: "Region", - }, - "aws", - ], - }, - ], - endpoint: { - url: "https://waf-fips.amazonaws.com", - properties: { - authSchemes: [ - { - name: "sigv4", - signingName: "waf", - signingRegion: "us-east-1", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - { - conditions: [ - { - fn: "stringEquals", - argv: [ - { - ref: "Region", - }, - "aws-global", - ], - }, - ], - endpoint: { - url: "https://waf-fips.amazonaws.com", - properties: { - authSchemes: [ - { - name: "sigv4", - signingName: "waf", - signingRegion: "us-east-1", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - { - conditions: [], - endpoint: { - url: "https://waf-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://waf.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "stringEquals", - argv: [ - { - ref: "Region", - }, - "aws-global", - ], - }, - ], - endpoint: { - url: "https://waf.amazonaws.com", - properties: { - authSchemes: [ - { - name: "sigv4", - signingName: "waf", - signingRegion: "us-east-1", - }, - ], - }, - headers: {}, - }, - type: "endpoint", - }, - { - conditions: [], - endpoint: { - url: "https://waf.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/waf.json */ + +const E="type", +F="conditions", +G="fn", +H="argv", +I="ref", +J="properties", +K="headers"; +const a=false, +b=true, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i="stringEquals", +j="getAttr", +k="aws", +l={[I]:"Region"}, +m={[I]:"Endpoint"}, +n={}, +o={[I]:e}, +p={"authSchemes":[{"name":"sigv4","signingName":"waf","signingRegion":"us-east-1"}]}, +q={[F]:[],[g]:"FIPS and DualStack are enabled, but this partition does not support one or both",[E]:g}, +r={"url":"https://waf-fips.amazonaws.com",[J]:p,[K]:{}}, +s={[F]:[],[g]:"FIPS is enabled but this partition does not support FIPS",[E]:g}, +t={[F]:[],[g]:"DualStack is enabled but this partition does not support DualStack",[E]:g}, +u={"url":"https://waf.amazonaws.com",[J]:p,[K]:{}}, +v=[m], +w=[{[G]:"booleanEquals",[H]:[{[I]:"UseFIPS"},true]}], +x=[], +y=[{[G]:"booleanEquals",[H]:[{[I]:"UseDualStack"},true]}], +z=[{[G]:"booleanEquals",[H]:[{[I]:"UseFIPS"},true]},{[G]:"booleanEquals",[H]:[{[I]:"UseDualStack"},true]}], +A=[{[G]:"booleanEquals",[H]:[true,{[G]:j,[H]:[o,"supportsFIPS"]}]},{[G]:"booleanEquals",[H]:[true,{[G]:j,[H]:[o,"supportsDualStack"]}]}], +B=[{[G]:"booleanEquals",[H]:[true,{[G]:j,[H]:[o,"supportsFIPS"]}]}], +C=[{[G]:"booleanEquals",[H]:[true,{[G]:j,[H]:[o,"supportsDualStack"]}]}], +D=[{[G]:i,[H]:[l,"aws-global"]}]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",[E]:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:b,default:a,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",[E]:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:b,default:a,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",[E]:d},Endpoint:{builtIn:"SDK::Endpoint",required:a,documentation:"Override the endpoint used to send this request",[E]:c}},rules:[{[F]:[{[G]:"aws.partition",[H]:[l],assign:e}],[E]:f,rules:[{[F]:[{[G]:"isSet",[H]:v},{[G]:"parseURL",[H]:v,assign:"url"}],[E]:f,rules:[{[F]:w,error:"Invalid Configuration: FIPS and custom endpoint are not supported",[E]:g},{[F]:x,[E]:f,rules:[{[F]:y,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",[E]:g},{[F]:x,endpoint:{url:m,[J]:n,[K]:n},[E]:h}]}]},{[F]:[{[G]:i,[H]:[{[G]:j,[H]:[o,"name"]},k]}],[E]:f,rules:[{[F]:z,[E]:f,rules:[{[F]:A,[E]:f,rules:[{[F]:x,endpoint:{url:"https://waf-fips.{Region}.api.aws",[J]:p,[K]:n},[E]:h}]},q]},{[F]:w,[E]:f,rules:[{[F]:B,[E]:f,rules:[{[F]:x,endpoint:r,[E]:h}]},s]},{[F]:y,[E]:f,rules:[{[F]:C,[E]:f,rules:[{[F]:x,endpoint:{url:"https://waf.{Region}.api.aws",[J]:p,[K]:n},[E]:h}]},t]},{[F]:x,endpoint:u,[E]:h}]},{[F]:z,[E]:f,rules:[{[F]:A,[E]:f,rules:[{[F]:x,endpoint:{url:"https://waf-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",[J]:n,[K]:n},[E]:h}]},q]},{[F]:w,[E]:f,rules:[{[F]:B,[E]:f,rules:[{[F]:x,[E]:f,rules:[{[F]:[{[G]:i,[H]:[l,k]}],endpoint:r,[E]:h},{[F]:D,endpoint:r,[E]:h},{[F]:x,endpoint:{url:"https://waf-fips.{Region}.{PartitionResult#dnsSuffix}",[J]:n,[K]:n},[E]:h}]}]},s]},{[F]:y,[E]:f,rules:[{[F]:C,[E]:f,rules:[{[F]:x,endpoint:{url:"https://waf.{Region}.{PartitionResult#dualStackDnsSuffix}",[J]:n,[K]:n},[E]:h}]},t]},{[F]:x,[E]:f,rules:[{[F]:D,endpoint:u,[E]:h},{[F]:x,endpoint:{url:"https://waf.{Region}.{PartitionResult#dnsSuffix}",[J]:n,[K]:n},[E]:h}]}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-wafv2/src/endpoint/ruleset.ts b/clients/client-wafv2/src/endpoint/ruleset.ts index efbe5bed64255..96a6cc1b15625 100644 --- a/clients/client-wafv2/src/endpoint/ruleset.ts +++ b/clients/client-wafv2/src/endpoint/ruleset.ts @@ -1,311 +1,30 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: true, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://wafv2-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://wafv2-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://wafv2.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://wafv2.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/wafv2.json */ + +const r="fn", +s="argv", +t="ref"; +const a=true, +b=false, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i={[t]:"Endpoint"}, +j={[r]:"booleanEquals",[s]:[{[t]:"UseFIPS"},true]}, +k={[r]:"booleanEquals",[s]:[{[t]:"UseDualStack"},true]}, +l={}, +m={[r]:"booleanEquals",[s]:[true,{[r]:"getAttr",[s]:[{[t]:e},"supportsFIPS"]}]}, +n={[r]:"booleanEquals",[s]:[true,{[r]:"getAttr",[s]:[{[t]:e},"supportsDualStack"]}]}, +o=[j], +p=[], +q=[k]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:a,default:b,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:a,default:b,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:b,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[r]:"aws.partition",[s]:[{[t]:"Region"}],assign:e}],type:f,rules:[{conditions:[{[r]:"isSet",[s]:[i]}],type:f,rules:[{conditions:o,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:p,type:f,rules:[{conditions:q,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:p,endpoint:{url:i,properties:l,headers:l},type:h}]}]},{conditions:[j,k],type:f,rules:[{conditions:[m,n],type:f,rules:[{conditions:p,endpoint:{url:"https://wafv2-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:p,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:o,type:f,rules:[{conditions:[m],type:f,rules:[{conditions:p,type:f,rules:[{conditions:p,endpoint:{url:"https://wafv2-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]},{conditions:p,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:q,type:f,rules:[{conditions:[n],type:f,rules:[{conditions:p,endpoint:{url:"https://wafv2.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:p,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:p,endpoint:{url:"https://wafv2.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-wellarchitected/src/endpoint/ruleset.ts b/clients/client-wellarchitected/src/endpoint/ruleset.ts index bdc7570b7cd38..302e6cfa7b8cb 100644 --- a/clients/client-wellarchitected/src/endpoint/ruleset.ts +++ b/clients/client-wellarchitected/src/endpoint/ruleset.ts @@ -1,320 +1,31 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: false, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://wellarchitected-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://wellarchitected-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://wellarchitected.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://wellarchitected.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/wellarchitected.json */ + +const s="fn", +t="argv", +u="ref"; +const a=false, +b=true, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i={[u]:"Endpoint"}, +j={[s]:"booleanEquals",[t]:[{[u]:"UseFIPS"},true]}, +k={[s]:"booleanEquals",[t]:[{[u]:"UseDualStack"},true]}, +l={}, +m={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsFIPS"]}]}, +n={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsDualStack"]}]}, +o=[i], +p=[j], +q=[], +r=[k]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:b,default:a,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:b,default:a,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:a,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[s]:"aws.partition",[t]:[{[u]:"Region"}],assign:e}],type:f,rules:[{conditions:[{[s]:"isSet",[t]:o},{[s]:"parseURL",[t]:o,assign:"url"}],type:f,rules:[{conditions:p,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:q,type:f,rules:[{conditions:r,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:q,endpoint:{url:i,properties:l,headers:l},type:h}]}]},{conditions:[j,k],type:f,rules:[{conditions:[m,n],type:f,rules:[{conditions:q,endpoint:{url:"https://wellarchitected-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:p,type:f,rules:[{conditions:[m],type:f,rules:[{conditions:q,type:f,rules:[{conditions:q,endpoint:{url:"https://wellarchitected-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]},{conditions:q,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:r,type:f,rules:[{conditions:[n],type:f,rules:[{conditions:q,endpoint:{url:"https://wellarchitected.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:q,endpoint:{url:"https://wellarchitected.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-wisdom/src/endpoint/ruleset.ts b/clients/client-wisdom/src/endpoint/ruleset.ts index 4408812bdf7d6..fef8155de7489 100644 --- a/clients/client-wisdom/src/endpoint/ruleset.ts +++ b/clients/client-wisdom/src/endpoint/ruleset.ts @@ -1,320 +1,31 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: false, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://wisdom-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://wisdom-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://wisdom.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://wisdom.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/wisdom.json */ + +const s="fn", +t="argv", +u="ref"; +const a=false, +b=true, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i={[u]:"Endpoint"}, +j={[s]:"booleanEquals",[t]:[{[u]:"UseFIPS"},true]}, +k={[s]:"booleanEquals",[t]:[{[u]:"UseDualStack"},true]}, +l={}, +m={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsFIPS"]}]}, +n={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsDualStack"]}]}, +o=[i], +p=[j], +q=[], +r=[k]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:b,default:a,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:b,default:a,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:a,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[s]:"aws.partition",[t]:[{[u]:"Region"}],assign:e}],type:f,rules:[{conditions:[{[s]:"isSet",[t]:o},{[s]:"parseURL",[t]:o,assign:"url"}],type:f,rules:[{conditions:p,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:q,type:f,rules:[{conditions:r,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:q,endpoint:{url:i,properties:l,headers:l},type:h}]}]},{conditions:[j,k],type:f,rules:[{conditions:[m,n],type:f,rules:[{conditions:q,endpoint:{url:"https://wisdom-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:p,type:f,rules:[{conditions:[m],type:f,rules:[{conditions:q,type:f,rules:[{conditions:q,endpoint:{url:"https://wisdom-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]},{conditions:q,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:r,type:f,rules:[{conditions:[n],type:f,rules:[{conditions:q,endpoint:{url:"https://wisdom.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:q,endpoint:{url:"https://wisdom.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-workdocs/src/endpoint/ruleset.ts b/clients/client-workdocs/src/endpoint/ruleset.ts index d8306953c50ef..1de5cdbb75df0 100644 --- a/clients/client-workdocs/src/endpoint/ruleset.ts +++ b/clients/client-workdocs/src/endpoint/ruleset.ts @@ -1,320 +1,31 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: false, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://workdocs-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://workdocs-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://workdocs.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://workdocs.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/workdocs.json */ + +const s="fn", +t="argv", +u="ref"; +const a=false, +b=true, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i={[u]:"Endpoint"}, +j={[s]:"booleanEquals",[t]:[{[u]:"UseFIPS"},true]}, +k={[s]:"booleanEquals",[t]:[{[u]:"UseDualStack"},true]}, +l={}, +m={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsFIPS"]}]}, +n={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsDualStack"]}]}, +o=[i], +p=[j], +q=[], +r=[k]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:b,default:a,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:b,default:a,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:a,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[s]:"aws.partition",[t]:[{[u]:"Region"}],assign:e}],type:f,rules:[{conditions:[{[s]:"isSet",[t]:o},{[s]:"parseURL",[t]:o,assign:"url"}],type:f,rules:[{conditions:p,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:q,type:f,rules:[{conditions:r,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:q,endpoint:{url:i,properties:l,headers:l},type:h}]}]},{conditions:[j,k],type:f,rules:[{conditions:[m,n],type:f,rules:[{conditions:q,endpoint:{url:"https://workdocs-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:p,type:f,rules:[{conditions:[m],type:f,rules:[{conditions:q,type:f,rules:[{conditions:q,endpoint:{url:"https://workdocs-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]},{conditions:q,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:r,type:f,rules:[{conditions:[n],type:f,rules:[{conditions:q,endpoint:{url:"https://workdocs.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:q,endpoint:{url:"https://workdocs.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-worklink/src/endpoint/ruleset.ts b/clients/client-worklink/src/endpoint/ruleset.ts index 33f1c3a9e8906..7f99b137c630e 100644 --- a/clients/client-worklink/src/endpoint/ruleset.ts +++ b/clients/client-worklink/src/endpoint/ruleset.ts @@ -1,314 +1,31 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: false, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://worklink-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://worklink-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://worklink.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://worklink.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/worklink.json */ + +const s="fn", +t="argv", +u="ref"; +const a=false, +b=true, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i={[u]:"Endpoint"}, +j={[s]:"booleanEquals",[t]:[{[u]:"UseFIPS"},true]}, +k={[s]:"booleanEquals",[t]:[{[u]:"UseDualStack"},true]}, +l={}, +m={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsFIPS"]}]}, +n={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsDualStack"]}]}, +o=[i], +p=[j], +q=[], +r=[k]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:b,default:a,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:b,default:a,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:a,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[s]:"aws.partition",[t]:[{[u]:"Region"}],assign:e}],type:f,rules:[{conditions:[{[s]:"isSet",[t]:o},{[s]:"parseURL",[t]:o,assign:"url"}],type:f,rules:[{conditions:p,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:q,type:f,rules:[{conditions:r,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:q,endpoint:{url:i,properties:l,headers:l},type:h}]}]},{conditions:[j,k],type:f,rules:[{conditions:[m,n],type:f,rules:[{conditions:q,endpoint:{url:"https://worklink-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:p,type:f,rules:[{conditions:[m],type:f,rules:[{conditions:q,endpoint:{url:"https://worklink-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:r,type:f,rules:[{conditions:[n],type:f,rules:[{conditions:q,endpoint:{url:"https://worklink.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:q,endpoint:{url:"https://worklink.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-workmail/src/endpoint/ruleset.ts b/clients/client-workmail/src/endpoint/ruleset.ts index f4474e0cccdce..79b1e548fb4d9 100644 --- a/clients/client-workmail/src/endpoint/ruleset.ts +++ b/clients/client-workmail/src/endpoint/ruleset.ts @@ -1,320 +1,31 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: false, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://workmail-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://workmail-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://workmail.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://workmail.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/workmail.json */ + +const s="fn", +t="argv", +u="ref"; +const a=false, +b=true, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i={[u]:"Endpoint"}, +j={[s]:"booleanEquals",[t]:[{[u]:"UseFIPS"},true]}, +k={[s]:"booleanEquals",[t]:[{[u]:"UseDualStack"},true]}, +l={}, +m={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsFIPS"]}]}, +n={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsDualStack"]}]}, +o=[i], +p=[j], +q=[], +r=[k]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:b,default:a,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:b,default:a,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:a,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[s]:"aws.partition",[t]:[{[u]:"Region"}],assign:e}],type:f,rules:[{conditions:[{[s]:"isSet",[t]:o},{[s]:"parseURL",[t]:o,assign:"url"}],type:f,rules:[{conditions:p,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:q,type:f,rules:[{conditions:r,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:q,endpoint:{url:i,properties:l,headers:l},type:h}]}]},{conditions:[j,k],type:f,rules:[{conditions:[m,n],type:f,rules:[{conditions:q,endpoint:{url:"https://workmail-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:p,type:f,rules:[{conditions:[m],type:f,rules:[{conditions:q,type:f,rules:[{conditions:q,endpoint:{url:"https://workmail-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]},{conditions:q,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:r,type:f,rules:[{conditions:[n],type:f,rules:[{conditions:q,endpoint:{url:"https://workmail.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:q,endpoint:{url:"https://workmail.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-workmailmessageflow/src/endpoint/ruleset.ts b/clients/client-workmailmessageflow/src/endpoint/ruleset.ts index 4f09340c94bad..0e363a2578a54 100644 --- a/clients/client-workmailmessageflow/src/endpoint/ruleset.ts +++ b/clients/client-workmailmessageflow/src/endpoint/ruleset.ts @@ -1,314 +1,31 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: false, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://workmailmessageflow-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://workmailmessageflow-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://workmailmessageflow.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://workmailmessageflow.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/workmailmessageflow.json */ + +const s="fn", +t="argv", +u="ref"; +const a=false, +b=true, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i={[u]:"Endpoint"}, +j={[s]:"booleanEquals",[t]:[{[u]:"UseFIPS"},true]}, +k={[s]:"booleanEquals",[t]:[{[u]:"UseDualStack"},true]}, +l={}, +m={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsFIPS"]}]}, +n={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsDualStack"]}]}, +o=[i], +p=[j], +q=[], +r=[k]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:b,default:a,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:b,default:a,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:a,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[s]:"aws.partition",[t]:[{[u]:"Region"}],assign:e}],type:f,rules:[{conditions:[{[s]:"isSet",[t]:o},{[s]:"parseURL",[t]:o,assign:"url"}],type:f,rules:[{conditions:p,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:q,type:f,rules:[{conditions:r,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:q,endpoint:{url:i,properties:l,headers:l},type:h}]}]},{conditions:[j,k],type:f,rules:[{conditions:[m,n],type:f,rules:[{conditions:q,endpoint:{url:"https://workmailmessageflow-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:p,type:f,rules:[{conditions:[m],type:f,rules:[{conditions:q,endpoint:{url:"https://workmailmessageflow-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:r,type:f,rules:[{conditions:[n],type:f,rules:[{conditions:q,endpoint:{url:"https://workmailmessageflow.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:q,endpoint:{url:"https://workmailmessageflow.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-workspaces-web/src/endpoint/ruleset.ts b/clients/client-workspaces-web/src/endpoint/ruleset.ts index 0673a2d4d2666..0937d09b5a66b 100644 --- a/clients/client-workspaces-web/src/endpoint/ruleset.ts +++ b/clients/client-workspaces-web/src/endpoint/ruleset.ts @@ -1,320 +1,31 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: true, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://workspaces-web-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://workspaces-web-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://workspaces-web.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://workspaces-web.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/workspaces-web.json */ + +const s="fn", +t="argv", +u="ref"; +const a=true, +b=false, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i={[u]:"Endpoint"}, +j={[s]:"booleanEquals",[t]:[{[u]:"UseFIPS"},true]}, +k={[s]:"booleanEquals",[t]:[{[u]:"UseDualStack"},true]}, +l={}, +m={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsFIPS"]}]}, +n={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsDualStack"]}]}, +o=[i], +p=[j], +q=[], +r=[k]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:a,default:b,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:a,default:b,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:b,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[s]:"aws.partition",[t]:[{[u]:"Region"}],assign:e}],type:f,rules:[{conditions:[{[s]:"isSet",[t]:o},{[s]:"parseURL",[t]:o,assign:"url"}],type:f,rules:[{conditions:p,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:q,type:f,rules:[{conditions:r,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:q,endpoint:{url:i,properties:l,headers:l},type:h}]}]},{conditions:[j,k],type:f,rules:[{conditions:[m,n],type:f,rules:[{conditions:q,endpoint:{url:"https://workspaces-web-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:p,type:f,rules:[{conditions:[m],type:f,rules:[{conditions:q,type:f,rules:[{conditions:q,endpoint:{url:"https://workspaces-web-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]},{conditions:q,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:r,type:f,rules:[{conditions:[n],type:f,rules:[{conditions:q,endpoint:{url:"https://workspaces-web.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:q,endpoint:{url:"https://workspaces-web.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-workspaces/src/endpoint/ruleset.ts b/clients/client-workspaces/src/endpoint/ruleset.ts index 4eda632477df8..a13545c554166 100644 --- a/clients/client-workspaces/src/endpoint/ruleset.ts +++ b/clients/client-workspaces/src/endpoint/ruleset.ts @@ -1,320 +1,31 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: false, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://workspaces-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://workspaces-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://workspaces.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://workspaces.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/workspaces.json */ + +const s="fn", +t="argv", +u="ref"; +const a=false, +b=true, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i={[u]:"Endpoint"}, +j={[s]:"booleanEquals",[t]:[{[u]:"UseFIPS"},true]}, +k={[s]:"booleanEquals",[t]:[{[u]:"UseDualStack"},true]}, +l={}, +m={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsFIPS"]}]}, +n={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsDualStack"]}]}, +o=[i], +p=[j], +q=[], +r=[k]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:b,default:a,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:b,default:a,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:a,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[s]:"aws.partition",[t]:[{[u]:"Region"}],assign:e}],type:f,rules:[{conditions:[{[s]:"isSet",[t]:o},{[s]:"parseURL",[t]:o,assign:"url"}],type:f,rules:[{conditions:p,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:q,type:f,rules:[{conditions:r,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:q,endpoint:{url:i,properties:l,headers:l},type:h}]}]},{conditions:[j,k],type:f,rules:[{conditions:[m,n],type:f,rules:[{conditions:q,endpoint:{url:"https://workspaces-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:p,type:f,rules:[{conditions:[m],type:f,rules:[{conditions:q,type:f,rules:[{conditions:q,endpoint:{url:"https://workspaces-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]},{conditions:q,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:r,type:f,rules:[{conditions:[n],type:f,rules:[{conditions:q,endpoint:{url:"https://workspaces.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:q,endpoint:{url:"https://workspaces.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/clients/client-xray/src/endpoint/ruleset.ts b/clients/client-xray/src/endpoint/ruleset.ts index 3ca7e30004b2c..c2cc47071014b 100644 --- a/clients/client-xray/src/endpoint/ruleset.ts +++ b/clients/client-xray/src/endpoint/ruleset.ts @@ -1,320 +1,31 @@ -// smithy-typescript generated code +// @ts-nocheck +// generated code, do not edit import { RuleSetObject } from "@aws-sdk/util-endpoints"; -export const ruleSet: RuleSetObject = { - version: "1.0", - parameters: { - Region: { - builtIn: "AWS::Region", - required: false, - documentation: "The AWS region used to dispatch the request.", - type: "String", - }, - UseDualStack: { - builtIn: "AWS::UseDualStack", - required: true, - default: false, - documentation: - "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - type: "Boolean", - }, - UseFIPS: { - builtIn: "AWS::UseFIPS", - required: true, - default: false, - documentation: - "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - type: "Boolean", - }, - Endpoint: { - builtIn: "SDK::Endpoint", - required: false, - documentation: "Override the endpoint used to send this request", - type: "String", - }, - }, - rules: [ - { - conditions: [ - { - fn: "aws.partition", - argv: [ - { - ref: "Region", - }, - ], - assign: "PartitionResult", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "isSet", - argv: [ - { - ref: "Endpoint", - }, - ], - }, - { - fn: "parseURL", - argv: [ - { - ref: "Endpoint", - }, - ], - assign: "url", - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - error: "Invalid Configuration: FIPS and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - error: "Invalid Configuration: Dualstack and custom endpoint are not supported", - type: "error", - }, - { - conditions: [], - endpoint: { - url: { - ref: "Endpoint", - }, - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://xray-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "FIPS and DualStack are enabled, but this partition does not support one or both", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseFIPS", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsFIPS", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://xray-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], - }, - { - conditions: [], - error: "FIPS is enabled but this partition does not support FIPS", - type: "error", - }, - ], - }, - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - { - ref: "UseDualStack", - }, - true, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [ - { - fn: "booleanEquals", - argv: [ - true, - { - fn: "getAttr", - argv: [ - { - ref: "PartitionResult", - }, - "supportsDualStack", - ], - }, - ], - }, - ], - type: "tree", - rules: [ - { - conditions: [], - endpoint: { - url: "https://xray.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - { - conditions: [], - error: "DualStack is enabled but this partition does not support DualStack", - type: "error", - }, - ], - }, - { - conditions: [], - endpoint: { - url: "https://xray.{Region}.{PartitionResult#dnsSuffix}", - properties: {}, - headers: {}, - }, - type: "endpoint", - }, - ], - }, - ], -}; +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/xray.json */ + +const s="fn", +t="argv", +u="ref"; +const a=false, +b=true, +c="String", +d="Boolean", +e="PartitionResult", +f="tree", +g="error", +h="endpoint", +i={[u]:"Endpoint"}, +j={[s]:"booleanEquals",[t]:[{[u]:"UseFIPS"},true]}, +k={[s]:"booleanEquals",[t]:[{[u]:"UseDualStack"},true]}, +l={}, +m={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsFIPS"]}]}, +n={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:e},"supportsDualStack"]}]}, +o=[i], +p=[j], +q=[], +r=[k]; +const _data={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:a,documentation:"The AWS region used to dispatch the request.",type:c},UseDualStack:{builtIn:"AWS::UseDualStack",required:b,default:a,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:d},UseFIPS:{builtIn:"AWS::UseFIPS",required:b,default:a,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:d},Endpoint:{builtIn:"SDK::Endpoint",required:a,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{[s]:"aws.partition",[t]:[{[u]:"Region"}],assign:e}],type:f,rules:[{conditions:[{[s]:"isSet",[t]:o},{[s]:"parseURL",[t]:o,assign:"url"}],type:f,rules:[{conditions:p,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:q,type:f,rules:[{conditions:r,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:g},{conditions:q,endpoint:{url:i,properties:l,headers:l},type:h}]}]},{conditions:[j,k],type:f,rules:[{conditions:[m,n],type:f,rules:[{conditions:q,endpoint:{url:"https://xray-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:g}]},{conditions:p,type:f,rules:[{conditions:[m],type:f,rules:[{conditions:q,type:f,rules:[{conditions:q,endpoint:{url:"https://xray-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]},{conditions:q,error:"FIPS is enabled but this partition does not support FIPS",type:g}]},{conditions:r,type:f,rules:[{conditions:[n],type:f,rules:[{conditions:q,endpoint:{url:"https://xray.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:h}]},{conditions:q,error:"DualStack is enabled but this partition does not support DualStack",type:g}]},{conditions:q,endpoint:{url:"https://xray.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]}; +export const ruleSet: RuleSetObject = _data as any; diff --git a/scripts/generate-clients/index.js b/scripts/generate-clients/index.js index ac99418e3a4f9..adffd0a6c10f9 100644 --- a/scripts/generate-clients/index.js +++ b/scripts/generate-clients/index.js @@ -92,6 +92,8 @@ const { await copyServerTests(CODE_GEN_PROTOCOL_TESTS_OUTPUT_DIR, PRIVATE_CLIENTS_DIR); } + require("../endpoints-ruleset/compress"); + if (!keepFiles) { emptyDirSync(CODE_GEN_SDK_OUTPUT_DIR); if (!noPrivateClients) {