diff --git a/clients/client-accessanalyzer/src/endpoint/ruleset.ts b/clients/client-accessanalyzer/src/endpoint/ruleset.ts index 4c1e679ef8c4..9de13ab8bd13 100644 --- a/clients/client-accessanalyzer/src/endpoint/ruleset.ts +++ b/clients/client-accessanalyzer/src/endpoint/ruleset.ts @@ -6,26 +6,25 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; or see "smithy.rules#endpointRuleSet" in codegen/sdk-codegen/aws-models/accessanalyzer.json */ -const s="fn", -t="argv", -u="ref"; +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={[u]:"Endpoint"}, -j={[s]:"booleanEquals",[t]:[{[u]:"UseFIPS"},true]}, -k={[s]:"booleanEquals",[t]:[{[u]:"UseDualStack"},true]}, +d="PartitionResult", +e="tree", +f="error", +g="endpoint", +h={"required":true,"default":false,"type":"Boolean"}, +i={[t]:"Endpoint"}, +j={[r]:"booleanEquals",[s]:[{[t]:"UseFIPS"},true]}, +k={[r]:"booleanEquals",[s]:[{[t]:"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"]}]}, +m={[r]:"booleanEquals",[s]:[true,{[r]:"getAttr",[s]:[{[t]:d},"supportsFIPS"]}]}, +n={[r]:"booleanEquals",[s]:[true,{[r]:"getAttr",[s]:[{[t]:d},"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}]}]}; +q=[k]; +const _data={version:"1.0",parameters:{Region:{required:a,type:c},UseDualStack:h,UseFIPS:h,Endpoint:{required:b,type:c}},rules:[{conditions:[{[r]:"aws.partition",[s]:[{[t]:"Region"}],assign:d}],type:e,rules:[{conditions:[{[r]:"isSet",[s]:o},{[r]:"parseURL",[s]:o,assign:"url"}],type:e,rules:[{conditions:p,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:f},{type:e,rules:[{conditions:q,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:f},{endpoint:{url:i,properties:l,headers:l},type:g}]}]},{conditions:[j,k],type:e,rules:[{conditions:[m,n],type:e,rules:[{endpoint:{url:"https://access-analyzer-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:g}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:f}]},{conditions:p,type:e,rules:[{conditions:[m],type:e,rules:[{type:e,rules:[{endpoint:{url:"https://access-analyzer-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:g}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:f}]},{conditions:q,type:e,rules:[{conditions:[n],type:e,rules:[{endpoint:{url:"https://access-analyzer.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:g}]},{error:"DualStack is enabled but this partition does not support DualStack",type:f}]},{endpoint:{url:"https://access-analyzer.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:g}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-account/src/endpoint/ruleset.ts b/clients/client-account/src/endpoint/ruleset.ts index fc924564a921..a1877680d7b9 100644 --- a/clients/client-account/src/endpoint/ruleset.ts +++ b/clients/client-account/src/endpoint/ruleset.ts @@ -6,43 +6,40 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; 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}]}]}]}; +const z="required", +A="type", +B="fn", +C="argv", +D="ref", +E="properties", +F="headers", +G="authSchemes", +H="signingName", +I="signingRegion"; +const a="PartitionResult", +b="tree", +c="error", +d="endpoint", +e="stringEquals", +f={[z]:false,[A]:"String"}, +g={[z]:true,"default":false,[A]:"Boolean"}, +h={[D]:"Region"}, +i={[D]:"Endpoint"}, +j={}, +k={[B]:"getAttr",[C]:[{[D]:a},"name"]}, +l={[G]:[{"name":"sigv4",[H]:"account",[I]:"us-east-1"}]}, +m={[c]:"FIPS and DualStack are enabled, but this partition does not support one or both",[A]:c}, +n={[c]:"FIPS is enabled but this partition does not support FIPS",[A]:c}, +o={[c]:"DualStack is enabled but this partition does not support DualStack",[A]:c}, +p={"url":"https://account.us-east-1.amazonaws.com",[E]:l,[F]:{}}, +q={[G]:[{"name":"sigv4",[H]:"account",[I]:"cn-northwest-1"}]}, +r={"url":"https://account.cn-northwest-1.amazonaws.com.cn",[E]:q,[F]:{}}, +s=[i], +t=[{[B]:"booleanEquals",[C]:[{[D]:"UseFIPS"},true]}], +u=[{[B]:"booleanEquals",[C]:[{[D]:"UseDualStack"},true]}], +v=[{[B]:"booleanEquals",[C]:[{[D]:"UseFIPS"},true]},{[B]:"booleanEquals",[C]:[{[D]:"UseDualStack"},true]}], +w=[{[B]:"booleanEquals",[C]:[true,{[B]:"getAttr",[C]:[{[D]:a},"supportsFIPS"]}]},{[B]:"booleanEquals",[C]:[true,{[B]:"getAttr",[C]:[{[D]:a},"supportsDualStack"]}]}], +x=[{[B]:"booleanEquals",[C]:[true,{[B]:"getAttr",[C]:[{[D]:a},"supportsFIPS"]}]}], +y=[{[B]:"booleanEquals",[C]:[true,{[B]:"getAttr",[C]:[{[D]:a},"supportsDualStack"]}]}]; +const _data={version:"1.0",parameters:{Region:f,UseDualStack:g,UseFIPS:g,Endpoint:f},rules:[{conditions:[{[B]:"aws.partition",[C]:[h],assign:a}],[A]:b,rules:[{conditions:[{[B]:"isSet",[C]:s},{[B]:"parseURL",[C]:s,assign:"url"}],[A]:b,rules:[{conditions:t,error:"Invalid Configuration: FIPS and custom endpoint are not supported",[A]:c},{[A]:b,rules:[{conditions:u,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",[A]:c},{endpoint:{url:i,[E]:j,[F]:j},[A]:d}]}]},{conditions:[{[B]:e,[C]:[k,"aws"]}],[A]:b,rules:[{conditions:v,[A]:b,rules:[{conditions:w,[A]:b,rules:[{endpoint:{url:"https://account-fips.{Region}.api.aws",[E]:l,[F]:j},[A]:d}]},m]},{conditions:t,[A]:b,rules:[{conditions:x,[A]:b,rules:[{endpoint:{url:"https://account-fips.{Region}.amazonaws.com",[E]:l,[F]:j},[A]:d}]},n]},{conditions:u,[A]:b,rules:[{conditions:y,[A]:b,rules:[{endpoint:{url:"https://account.{Region}.api.aws",[E]:l,[F]:j},[A]:d}]},o]},{endpoint:p,[A]:d}]},{conditions:[{[B]:e,[C]:[k,"aws-cn"]}],[A]:b,rules:[{conditions:v,[A]:b,rules:[{conditions:w,[A]:b,rules:[{endpoint:{url:"https://account-fips.{Region}.api.amazonwebservices.com.cn",[E]:q,[F]:j},[A]:d}]},m]},{conditions:t,[A]:b,rules:[{conditions:x,[A]:b,rules:[{endpoint:{url:"https://account-fips.{Region}.amazonaws.com.cn",[E]:q,[F]:j},[A]:d}]},n]},{conditions:u,[A]:b,rules:[{conditions:y,[A]:b,rules:[{endpoint:{url:"https://account.{Region}.api.amazonwebservices.com.cn",[E]:q,[F]:j},[A]:d}]},o]},{endpoint:r,[A]:d}]},{conditions:v,[A]:b,rules:[{conditions:w,[A]:b,rules:[{endpoint:{url:"https://account-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",[E]:j,[F]:j},[A]:d}]},m]},{conditions:t,[A]:b,rules:[{conditions:x,[A]:b,rules:[{[A]:b,rules:[{endpoint:{url:"https://account-fips.{Region}.{PartitionResult#dnsSuffix}",[E]:j,[F]:j},[A]:d}]}]},n]},{conditions:u,[A]:b,rules:[{conditions:y,[A]:b,rules:[{endpoint:{url:"https://account.{Region}.{PartitionResult#dualStackDnsSuffix}",[E]:j,[F]:j},[A]:d}]},o]},{[A]:b,rules:[{conditions:[{[B]:e,[C]:[h,"aws-global"]}],endpoint:p,[A]:d},{conditions:[{[B]:e,[C]:[h,"aws-cn-global"]}],endpoint:r,[A]:d},{endpoint:{url:"https://account.{Region}.{PartitionResult#dnsSuffix}",[E]:j,[F]:j},[A]:d}]}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-acm-pca/src/endpoint/ruleset.ts b/clients/client-acm-pca/src/endpoint/ruleset.ts index fe73306f2b12..1a108a496d52 100644 --- a/clients/client-acm-pca/src/endpoint/ruleset.ts +++ b/clients/client-acm-pca/src/endpoint/ruleset.ts @@ -6,29 +6,27 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; 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}]}]}; +const s="required", +t="fn", +u="argv", +v="ref"; +const a="PartitionResult", +b="tree", +c="error", +d="endpoint", +e="getAttr", +f={[s]:false,"type":"String"}, +g={[s]:true,"default":false,"type":"Boolean"}, +h={[v]:"Endpoint"}, +i={[t]:"booleanEquals",[u]:[{[v]:"UseFIPS"},true]}, +j={[t]:"booleanEquals",[u]:[{[v]:"UseDualStack"},true]}, +k={}, +l={[t]:"booleanEquals",[u]:[true,{[t]:e,[u]:[{[v]:a},"supportsFIPS"]}]}, +m={[v]:a}, +n={[t]:"booleanEquals",[u]:[true,{[t]:e,[u]:[m,"supportsDualStack"]}]}, +o={"url":"https://acm-pca.{Region}.{PartitionResult#dnsSuffix}","properties":{},"headers":{}}, +p=[h], +q=[i], +r=[j]; +const _data={version:"1.0",parameters:{Region:f,UseDualStack:g,UseFIPS:g,Endpoint:f},rules:[{conditions:[{[t]:"aws.partition",[u]:[{[v]:"Region"}],assign:a}],type:b,rules:[{conditions:[{[t]:"isSet",[u]:p},{[t]:"parseURL",[u]:p,assign:"url"}],type:b,rules:[{conditions:q,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:c},{type:b,rules:[{conditions:r,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:c},{endpoint:{url:h,properties:k,headers:k},type:d}]}]},{conditions:[i,j],type:b,rules:[{conditions:[l,n],type:b,rules:[{endpoint:{url:"https://acm-pca-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:k,headers:k},type:d}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:c}]},{conditions:q,type:b,rules:[{conditions:[l],type:b,rules:[{type:b,rules:[{conditions:[{[t]:"stringEquals",[u]:["aws-us-gov",{[t]:e,[u]:[m,"name"]}]}],endpoint:o,type:d},{endpoint:{url:"https://acm-pca-fips.{Region}.{PartitionResult#dnsSuffix}",properties:k,headers:k},type:d}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:c}]},{conditions:r,type:b,rules:[{conditions:[n],type:b,rules:[{endpoint:{url:"https://acm-pca.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:k,headers:k},type:d}]},{error:"DualStack is enabled but this partition does not support DualStack",type:c}]},{endpoint:o,type:d}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-acm/src/endpoint/ruleset.ts b/clients/client-acm/src/endpoint/ruleset.ts index 260bda9e4e9b..6da5a7062b35 100644 --- a/clients/client-acm/src/endpoint/ruleset.ts +++ b/clients/client-acm/src/endpoint/ruleset.ts @@ -6,29 +6,27 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; 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}]}]}; +const s="required", +t="fn", +u="argv", +v="ref"; +const a="PartitionResult", +b="tree", +c="error", +d="endpoint", +e="getAttr", +f={[s]:false,"type":"String"}, +g={[s]:true,"default":false,"type":"Boolean"}, +h={[v]:"Endpoint"}, +i={[t]:"booleanEquals",[u]:[{[v]:"UseFIPS"},true]}, +j={[t]:"booleanEquals",[u]:[{[v]:"UseDualStack"},true]}, +k={}, +l={[t]:"booleanEquals",[u]:[true,{[t]:e,[u]:[{[v]:a},"supportsFIPS"]}]}, +m={[v]:a}, +n={[t]:"booleanEquals",[u]:[true,{[t]:e,[u]:[m,"supportsDualStack"]}]}, +o={"url":"https://acm.{Region}.{PartitionResult#dnsSuffix}","properties":{},"headers":{}}, +p=[h], +q=[i], +r=[j]; +const _data={version:"1.0",parameters:{Region:f,UseDualStack:g,UseFIPS:g,Endpoint:f},rules:[{conditions:[{[t]:"aws.partition",[u]:[{[v]:"Region"}],assign:a}],type:b,rules:[{conditions:[{[t]:"isSet",[u]:p},{[t]:"parseURL",[u]:p,assign:"url"}],type:b,rules:[{conditions:q,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:c},{type:b,rules:[{conditions:r,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:c},{endpoint:{url:h,properties:k,headers:k},type:d}]}]},{conditions:[i,j],type:b,rules:[{conditions:[l,n],type:b,rules:[{endpoint:{url:"https://acm-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:k,headers:k},type:d}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:c}]},{conditions:q,type:b,rules:[{conditions:[l],type:b,rules:[{type:b,rules:[{conditions:[{[t]:"stringEquals",[u]:["aws-us-gov",{[t]:e,[u]:[m,"name"]}]}],endpoint:o,type:d},{endpoint:{url:"https://acm-fips.{Region}.{PartitionResult#dnsSuffix}",properties:k,headers:k},type:d}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:c}]},{conditions:r,type:b,rules:[{conditions:[n],type:b,rules:[{endpoint:{url:"https://acm.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:k,headers:k},type:d}]},{error:"DualStack is enabled but this partition does not support DualStack",type:c}]},{endpoint:o,type:d}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-alexa-for-business/src/endpoint/ruleset.ts b/clients/client-alexa-for-business/src/endpoint/ruleset.ts index 34bcb146cf41..476cce207e62 100644 --- a/clients/client-alexa-for-business/src/endpoint/ruleset.ts +++ b/clients/client-alexa-for-business/src/endpoint/ruleset.ts @@ -6,26 +6,24 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; 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}]}]}; +const p="required", +q="fn", +r="argv", +s="ref"; +const a="PartitionResult", +b="tree", +c="error", +d="endpoint", +e={[p]:false,"type":"String"}, +f={[p]:true,"default":false,"type":"Boolean"}, +g={[s]:"Endpoint"}, +h={[q]:"booleanEquals",[r]:[{[s]:"UseFIPS"},true]}, +i={[q]:"booleanEquals",[r]:[{[s]:"UseDualStack"},true]}, +j={}, +k={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsFIPS"]}]}, +l={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsDualStack"]}]}, +m=[g], +n=[h], +o=[i]; +const _data={version:"1.0",parameters:{Region:e,UseDualStack:f,UseFIPS:f,Endpoint:e},rules:[{conditions:[{[q]:"aws.partition",[r]:[{[s]:"Region"}],assign:a}],type:b,rules:[{conditions:[{[q]:"isSet",[r]:m},{[q]:"parseURL",[r]:m,assign:"url"}],type:b,rules:[{conditions:n,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:c},{type:b,rules:[{conditions:o,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:c},{endpoint:{url:g,properties:j,headers:j},type:d}]}]},{conditions:[h,i],type:b,rules:[{conditions:[k,l],type:b,rules:[{endpoint:{url:"https://a4b-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:c}]},{conditions:n,type:b,rules:[{conditions:[k],type:b,rules:[{type:b,rules:[{endpoint:{url:"https://a4b-fips.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:c}]},{conditions:o,type:b,rules:[{conditions:[l],type:b,rules:[{endpoint:{url:"https://a4b.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"DualStack is enabled but this partition does not support DualStack",type:c}]},{endpoint:{url:"https://a4b.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-amp/src/endpoint/ruleset.ts b/clients/client-amp/src/endpoint/ruleset.ts index 46dfb002fb4e..c7c5c9727d52 100644 --- a/clients/client-amp/src/endpoint/ruleset.ts +++ b/clients/client-amp/src/endpoint/ruleset.ts @@ -6,26 +6,24 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; 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}]}]}; +const p="required", +q="fn", +r="argv", +s="ref"; +const a="PartitionResult", +b="tree", +c="error", +d="endpoint", +e={[p]:false,"type":"String"}, +f={[p]:true,"default":false,"type":"Boolean"}, +g={[s]:"Endpoint"}, +h={[q]:"booleanEquals",[r]:[{[s]:"UseFIPS"},true]}, +i={[q]:"booleanEquals",[r]:[{[s]:"UseDualStack"},true]}, +j={}, +k={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsFIPS"]}]}, +l={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsDualStack"]}]}, +m=[g], +n=[h], +o=[i]; +const _data={version:"1.0",parameters:{Region:e,UseDualStack:f,UseFIPS:f,Endpoint:e},rules:[{conditions:[{[q]:"aws.partition",[r]:[{[s]:"Region"}],assign:a}],type:b,rules:[{conditions:[{[q]:"isSet",[r]:m},{[q]:"parseURL",[r]:m,assign:"url"}],type:b,rules:[{conditions:n,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:c},{type:b,rules:[{conditions:o,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:c},{endpoint:{url:g,properties:j,headers:j},type:d}]}]},{conditions:[h,i],type:b,rules:[{conditions:[k,l],type:b,rules:[{endpoint:{url:"https://aps-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:c}]},{conditions:n,type:b,rules:[{conditions:[k],type:b,rules:[{type:b,rules:[{endpoint:{url:"https://aps-fips.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:c}]},{conditions:o,type:b,rules:[{conditions:[l],type:b,rules:[{endpoint:{url:"https://aps.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"DualStack is enabled but this partition does not support DualStack",type:c}]},{endpoint:{url:"https://aps.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-amplify/src/endpoint/ruleset.ts b/clients/client-amplify/src/endpoint/ruleset.ts index 7722275077d0..361d829511da 100644 --- a/clients/client-amplify/src/endpoint/ruleset.ts +++ b/clients/client-amplify/src/endpoint/ruleset.ts @@ -6,26 +6,24 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; 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}]}]}; +const p="required", +q="fn", +r="argv", +s="ref"; +const a="PartitionResult", +b="tree", +c="error", +d="endpoint", +e={[p]:false,"type":"String"}, +f={[p]:true,"default":false,"type":"Boolean"}, +g={[s]:"Endpoint"}, +h={[q]:"booleanEquals",[r]:[{[s]:"UseFIPS"},true]}, +i={[q]:"booleanEquals",[r]:[{[s]:"UseDualStack"},true]}, +j={}, +k={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsFIPS"]}]}, +l={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsDualStack"]}]}, +m=[g], +n=[h], +o=[i]; +const _data={version:"1.0",parameters:{Region:e,UseDualStack:f,UseFIPS:f,Endpoint:e},rules:[{conditions:[{[q]:"aws.partition",[r]:[{[s]:"Region"}],assign:a}],type:b,rules:[{conditions:[{[q]:"isSet",[r]:m},{[q]:"parseURL",[r]:m,assign:"url"}],type:b,rules:[{conditions:n,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:c},{type:b,rules:[{conditions:o,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:c},{endpoint:{url:g,properties:j,headers:j},type:d}]}]},{conditions:[h,i],type:b,rules:[{conditions:[k,l],type:b,rules:[{endpoint:{url:"https://amplify-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:c}]},{conditions:n,type:b,rules:[{conditions:[k],type:b,rules:[{type:b,rules:[{endpoint:{url:"https://amplify-fips.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:c}]},{conditions:o,type:b,rules:[{conditions:[l],type:b,rules:[{endpoint:{url:"https://amplify.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"DualStack is enabled but this partition does not support DualStack",type:c}]},{endpoint:{url:"https://amplify.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-amplifybackend/src/endpoint/ruleset.ts b/clients/client-amplifybackend/src/endpoint/ruleset.ts index c2d424ee1212..78f4987051f9 100644 --- a/clients/client-amplifybackend/src/endpoint/ruleset.ts +++ b/clients/client-amplifybackend/src/endpoint/ruleset.ts @@ -6,26 +6,24 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; 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}]}]}; +const p="required", +q="fn", +r="argv", +s="ref"; +const a="PartitionResult", +b="tree", +c="error", +d="endpoint", +e={[p]:false,"type":"String"}, +f={[p]:true,"default":false,"type":"Boolean"}, +g={[s]:"Endpoint"}, +h={[q]:"booleanEquals",[r]:[{[s]:"UseFIPS"},true]}, +i={[q]:"booleanEquals",[r]:[{[s]:"UseDualStack"},true]}, +j={}, +k={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsFIPS"]}]}, +l={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsDualStack"]}]}, +m=[g], +n=[h], +o=[i]; +const _data={version:"1.0",parameters:{Region:e,UseDualStack:f,UseFIPS:f,Endpoint:e},rules:[{conditions:[{[q]:"aws.partition",[r]:[{[s]:"Region"}],assign:a}],type:b,rules:[{conditions:[{[q]:"isSet",[r]:m},{[q]:"parseURL",[r]:m,assign:"url"}],type:b,rules:[{conditions:n,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:c},{type:b,rules:[{conditions:o,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:c},{endpoint:{url:g,properties:j,headers:j},type:d}]}]},{conditions:[h,i],type:b,rules:[{conditions:[k,l],type:b,rules:[{endpoint:{url:"https://amplifybackend-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:c}]},{conditions:n,type:b,rules:[{conditions:[k],type:b,rules:[{type:b,rules:[{endpoint:{url:"https://amplifybackend-fips.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:c}]},{conditions:o,type:b,rules:[{conditions:[l],type:b,rules:[{endpoint:{url:"https://amplifybackend.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"DualStack is enabled but this partition does not support DualStack",type:c}]},{endpoint:{url:"https://amplifybackend.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-amplifyuibuilder/src/endpoint/ruleset.ts b/clients/client-amplifyuibuilder/src/endpoint/ruleset.ts index b2425dd90a70..36e29b745034 100644 --- a/clients/client-amplifyuibuilder/src/endpoint/ruleset.ts +++ b/clients/client-amplifyuibuilder/src/endpoint/ruleset.ts @@ -6,26 +6,24 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; 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}]}]}; +const p="required", +q="fn", +r="argv", +s="ref"; +const a="PartitionResult", +b="tree", +c="error", +d="endpoint", +e={[p]:false,"type":"String"}, +f={[p]:true,"default":false,"type":"Boolean"}, +g={[s]:"Endpoint"}, +h={[q]:"booleanEquals",[r]:[{[s]:"UseFIPS"},true]}, +i={[q]:"booleanEquals",[r]:[{[s]:"UseDualStack"},true]}, +j={}, +k={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsFIPS"]}]}, +l={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsDualStack"]}]}, +m=[g], +n=[h], +o=[i]; +const _data={version:"1.0",parameters:{Region:e,UseDualStack:f,UseFIPS:f,Endpoint:e},rules:[{conditions:[{[q]:"aws.partition",[r]:[{[s]:"Region"}],assign:a}],type:b,rules:[{conditions:[{[q]:"isSet",[r]:m},{[q]:"parseURL",[r]:m,assign:"url"}],type:b,rules:[{conditions:n,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:c},{type:b,rules:[{conditions:o,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:c},{endpoint:{url:g,properties:j,headers:j},type:d}]}]},{conditions:[h,i],type:b,rules:[{conditions:[k,l],type:b,rules:[{endpoint:{url:"https://amplifyuibuilder-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:c}]},{conditions:n,type:b,rules:[{conditions:[k],type:b,rules:[{type:b,rules:[{endpoint:{url:"https://amplifyuibuilder-fips.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:c}]},{conditions:o,type:b,rules:[{conditions:[l],type:b,rules:[{endpoint:{url:"https://amplifyuibuilder.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"DualStack is enabled but this partition does not support DualStack",type:c}]},{endpoint:{url:"https://amplifyuibuilder.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-api-gateway/src/endpoint/ruleset.ts b/clients/client-api-gateway/src/endpoint/ruleset.ts index 61022bbc538e..c1ec7c0955a7 100644 --- a/clients/client-api-gateway/src/endpoint/ruleset.ts +++ b/clients/client-api-gateway/src/endpoint/ruleset.ts @@ -6,26 +6,24 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; 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}]}]}; +const p="required", +q="fn", +r="argv", +s="ref"; +const a="PartitionResult", +b="tree", +c="error", +d="endpoint", +e={[p]:false,"type":"String"}, +f={[p]:true,"default":false,"type":"Boolean"}, +g={[s]:"Endpoint"}, +h={[q]:"booleanEquals",[r]:[{[s]:"UseFIPS"},true]}, +i={[q]:"booleanEquals",[r]:[{[s]:"UseDualStack"},true]}, +j={}, +k={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsFIPS"]}]}, +l={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsDualStack"]}]}, +m=[g], +n=[h], +o=[i]; +const _data={version:"1.0",parameters:{Region:e,UseDualStack:f,UseFIPS:f,Endpoint:e},rules:[{conditions:[{[q]:"aws.partition",[r]:[{[s]:"Region"}],assign:a}],type:b,rules:[{conditions:[{[q]:"isSet",[r]:m},{[q]:"parseURL",[r]:m,assign:"url"}],type:b,rules:[{conditions:n,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:c},{type:b,rules:[{conditions:o,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:c},{endpoint:{url:g,properties:j,headers:j},type:d}]}]},{conditions:[h,i],type:b,rules:[{conditions:[k,l],type:b,rules:[{endpoint:{url:"https://apigateway-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:c}]},{conditions:n,type:b,rules:[{conditions:[k],type:b,rules:[{type:b,rules:[{endpoint:{url:"https://apigateway-fips.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:c}]},{conditions:o,type:b,rules:[{conditions:[l],type:b,rules:[{endpoint:{url:"https://apigateway.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"DualStack is enabled but this partition does not support DualStack",type:c}]},{endpoint:{url:"https://apigateway.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-apigatewaymanagementapi/src/endpoint/ruleset.ts b/clients/client-apigatewaymanagementapi/src/endpoint/ruleset.ts index f017bc865cff..7ac54fe5dd2d 100644 --- a/clients/client-apigatewaymanagementapi/src/endpoint/ruleset.ts +++ b/clients/client-apigatewaymanagementapi/src/endpoint/ruleset.ts @@ -6,26 +6,24 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; 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}]}]}; +const p="required", +q="fn", +r="argv", +s="ref"; +const a="PartitionResult", +b="tree", +c="error", +d="endpoint", +e={[p]:false,"type":"String"}, +f={[p]:true,"default":false,"type":"Boolean"}, +g={[s]:"Endpoint"}, +h={[q]:"booleanEquals",[r]:[{[s]:"UseFIPS"},true]}, +i={[q]:"booleanEquals",[r]:[{[s]:"UseDualStack"},true]}, +j={}, +k={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsFIPS"]}]}, +l={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsDualStack"]}]}, +m=[g], +n=[h], +o=[i]; +const _data={version:"1.0",parameters:{Region:e,UseDualStack:f,UseFIPS:f,Endpoint:e},rules:[{conditions:[{[q]:"aws.partition",[r]:[{[s]:"Region"}],assign:a}],type:b,rules:[{conditions:[{[q]:"isSet",[r]:m},{[q]:"parseURL",[r]:m,assign:"url"}],type:b,rules:[{conditions:n,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:c},{type:b,rules:[{conditions:o,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:c},{endpoint:{url:g,properties:j,headers:j},type:d}]}]},{conditions:[h,i],type:b,rules:[{conditions:[k,l],type:b,rules:[{endpoint:{url:"https://execute-api-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:c}]},{conditions:n,type:b,rules:[{conditions:[k],type:b,rules:[{endpoint:{url:"https://execute-api-fips.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]},{error:"FIPS is enabled but this partition does not support FIPS",type:c}]},{conditions:o,type:b,rules:[{conditions:[l],type:b,rules:[{endpoint:{url:"https://execute-api.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"DualStack is enabled but this partition does not support DualStack",type:c}]},{endpoint:{url:"https://execute-api.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-apigatewayv2/src/endpoint/ruleset.ts b/clients/client-apigatewayv2/src/endpoint/ruleset.ts index ffc210db9155..93d041d7a677 100644 --- a/clients/client-apigatewayv2/src/endpoint/ruleset.ts +++ b/clients/client-apigatewayv2/src/endpoint/ruleset.ts @@ -6,26 +6,24 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; 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}]}]}; +const p="required", +q="fn", +r="argv", +s="ref"; +const a="PartitionResult", +b="tree", +c="error", +d="endpoint", +e={[p]:false,"type":"String"}, +f={[p]:true,"default":false,"type":"Boolean"}, +g={[s]:"Endpoint"}, +h={[q]:"booleanEquals",[r]:[{[s]:"UseFIPS"},true]}, +i={[q]:"booleanEquals",[r]:[{[s]:"UseDualStack"},true]}, +j={}, +k={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsFIPS"]}]}, +l={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsDualStack"]}]}, +m=[g], +n=[h], +o=[i]; +const _data={version:"1.0",parameters:{Region:e,UseDualStack:f,UseFIPS:f,Endpoint:e},rules:[{conditions:[{[q]:"aws.partition",[r]:[{[s]:"Region"}],assign:a}],type:b,rules:[{conditions:[{[q]:"isSet",[r]:m},{[q]:"parseURL",[r]:m,assign:"url"}],type:b,rules:[{conditions:n,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:c},{type:b,rules:[{conditions:o,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:c},{endpoint:{url:g,properties:j,headers:j},type:d}]}]},{conditions:[h,i],type:b,rules:[{conditions:[k,l],type:b,rules:[{endpoint:{url:"https://apigateway-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:c}]},{conditions:n,type:b,rules:[{conditions:[k],type:b,rules:[{type:b,rules:[{endpoint:{url:"https://apigateway-fips.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:c}]},{conditions:o,type:b,rules:[{conditions:[l],type:b,rules:[{endpoint:{url:"https://apigateway.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"DualStack is enabled but this partition does not support DualStack",type:c}]},{endpoint:{url:"https://apigateway.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-app-mesh/src/endpoint/ruleset.ts b/clients/client-app-mesh/src/endpoint/ruleset.ts index 084a9d1f09d4..c517bb43bc01 100644 --- a/clients/client-app-mesh/src/endpoint/ruleset.ts +++ b/clients/client-app-mesh/src/endpoint/ruleset.ts @@ -6,26 +6,24 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; 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}]}]}; +const p="required", +q="fn", +r="argv", +s="ref"; +const a="PartitionResult", +b="tree", +c="error", +d="endpoint", +e={[p]:false,"type":"String"}, +f={[p]:true,"default":false,"type":"Boolean"}, +g={[s]:"Endpoint"}, +h={[q]:"booleanEquals",[r]:[{[s]:"UseFIPS"},true]}, +i={[q]:"booleanEquals",[r]:[{[s]:"UseDualStack"},true]}, +j={}, +k={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsFIPS"]}]}, +l={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsDualStack"]}]}, +m=[g], +n=[h], +o=[i]; +const _data={version:"1.0",parameters:{Region:e,UseDualStack:f,UseFIPS:f,Endpoint:e},rules:[{conditions:[{[q]:"aws.partition",[r]:[{[s]:"Region"}],assign:a}],type:b,rules:[{conditions:[{[q]:"isSet",[r]:m},{[q]:"parseURL",[r]:m,assign:"url"}],type:b,rules:[{conditions:n,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:c},{type:b,rules:[{conditions:o,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:c},{endpoint:{url:g,properties:j,headers:j},type:d}]}]},{conditions:[h,i],type:b,rules:[{conditions:[k,l],type:b,rules:[{endpoint:{url:"https://appmesh-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:c}]},{conditions:n,type:b,rules:[{conditions:[k],type:b,rules:[{type:b,rules:[{endpoint:{url:"https://appmesh-fips.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:c}]},{conditions:o,type:b,rules:[{conditions:[l],type:b,rules:[{endpoint:{url:"https://appmesh.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"DualStack is enabled but this partition does not support DualStack",type:c}]},{endpoint:{url:"https://appmesh.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-appconfig/src/endpoint/ruleset.ts b/clients/client-appconfig/src/endpoint/ruleset.ts index 5a4ba1bdaae3..0c2d811c9464 100644 --- a/clients/client-appconfig/src/endpoint/ruleset.ts +++ b/clients/client-appconfig/src/endpoint/ruleset.ts @@ -6,28 +6,26 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; 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}]}]}; +const r="required", +s="fn", +t="argv", +u="ref"; +const a="PartitionResult", +b="tree", +c="error", +d="endpoint", +e="stringEquals", +f={[r]:false,"type":"String"}, +g={[r]:true,"default":false,"type":"Boolean"}, +h={[u]:"Region"}, +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]:a},"supportsFIPS"]}]}, +n={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:a},"supportsDualStack"]}]}, +o=[i], +p=[j], +q=[k]; +const _data={version:"1.0",parameters:{Region:f,UseDualStack:g,UseFIPS:g,Endpoint:f},rules:[{conditions:[{[s]:"aws.partition",[t]:[h],assign:a}],type:b,rules:[{conditions:[{[s]:"isSet",[t]:o},{[s]:"parseURL",[t]:o,assign:"url"}],type:b,rules:[{conditions:p,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:c},{type:b,rules:[{conditions:q,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:c},{endpoint:{url:i,properties:l,headers:l},type:d}]}]},{conditions:[j,k],type:b,rules:[{conditions:[m,n],type:b,rules:[{endpoint:{url:"https://appconfig-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:d}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:c}]},{conditions:p,type:b,rules:[{conditions:[m],type:b,rules:[{type:b,rules:[{conditions:[{[s]:e,[t]:[h,"us-gov-west-1"]}],endpoint:{url:"https://appconfig.us-gov-west-1.amazonaws.com",properties:l,headers:l},type:d},{conditions:[{[s]:e,[t]:[h,"us-gov-east-1"]}],endpoint:{url:"https://appconfig.us-gov-east-1.amazonaws.com",properties:l,headers:l},type:d},{endpoint:{url:"https://appconfig-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:d}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:c}]},{conditions:q,type:b,rules:[{conditions:[n],type:b,rules:[{endpoint:{url:"https://appconfig.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:d}]},{error:"DualStack is enabled but this partition does not support DualStack",type:c}]},{endpoint:{url:"https://appconfig.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:d}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-appconfigdata/src/endpoint/ruleset.ts b/clients/client-appconfigdata/src/endpoint/ruleset.ts index b1f002101989..d3d86e46d328 100644 --- a/clients/client-appconfigdata/src/endpoint/ruleset.ts +++ b/clients/client-appconfigdata/src/endpoint/ruleset.ts @@ -6,26 +6,24 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; 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}]}]}; +const p="required", +q="fn", +r="argv", +s="ref"; +const a="PartitionResult", +b="tree", +c="error", +d="endpoint", +e={[p]:false,"type":"String"}, +f={[p]:true,"default":false,"type":"Boolean"}, +g={[s]:"Endpoint"}, +h={[q]:"booleanEquals",[r]:[{[s]:"UseFIPS"},true]}, +i={[q]:"booleanEquals",[r]:[{[s]:"UseDualStack"},true]}, +j={}, +k={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsFIPS"]}]}, +l={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsDualStack"]}]}, +m=[g], +n=[h], +o=[i]; +const _data={version:"1.0",parameters:{Region:e,UseDualStack:f,UseFIPS:f,Endpoint:e},rules:[{conditions:[{[q]:"aws.partition",[r]:[{[s]:"Region"}],assign:a}],type:b,rules:[{conditions:[{[q]:"isSet",[r]:m},{[q]:"parseURL",[r]:m,assign:"url"}],type:b,rules:[{conditions:n,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:c},{type:b,rules:[{conditions:o,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:c},{endpoint:{url:g,properties:j,headers:j},type:d}]}]},{conditions:[h,i],type:b,rules:[{conditions:[k,l],type:b,rules:[{endpoint:{url:"https://appconfigdata-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:c}]},{conditions:n,type:b,rules:[{conditions:[k],type:b,rules:[{type:b,rules:[{endpoint:{url:"https://appconfigdata-fips.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:c}]},{conditions:o,type:b,rules:[{conditions:[l],type:b,rules:[{endpoint:{url:"https://appconfigdata.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"DualStack is enabled but this partition does not support DualStack",type:c}]},{endpoint:{url:"https://appconfigdata.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-appflow/src/endpoint/ruleset.ts b/clients/client-appflow/src/endpoint/ruleset.ts index fca92c92ef6b..384bfad2c912 100644 --- a/clients/client-appflow/src/endpoint/ruleset.ts +++ b/clients/client-appflow/src/endpoint/ruleset.ts @@ -6,25 +6,24 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; or see "smithy.rules#endpointRuleSet" in codegen/sdk-codegen/aws-models/appflow.json */ -const r="fn", -s="argv", -t="ref"; +const q="fn", +r="argv", +s="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]}, +d="PartitionResult", +e="tree", +f="error", +g="endpoint", +h={"required":true,"default":false,"type":"Boolean"}, +i={[s]:"Endpoint"}, +j={[q]:"booleanEquals",[r]:[{[s]:"UseFIPS"},true]}, +k={[q]:"booleanEquals",[r]:[{[s]:"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"]}]}, +m={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:d},"supportsFIPS"]}]}, +n={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:d},"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}]}]}; +p=[k]; +const _data={version:"1.0",parameters:{Region:{required:a,type:c},UseDualStack:h,UseFIPS:h,Endpoint:{required:b,type:c}},rules:[{conditions:[{[q]:"aws.partition",[r]:[{[s]:"Region"}],assign:d}],type:e,rules:[{conditions:[{[q]:"isSet",[r]:[i]}],type:e,rules:[{conditions:o,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:f},{type:e,rules:[{conditions:p,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:f},{endpoint:{url:i,properties:l,headers:l},type:g}]}]},{conditions:[j,k],type:e,rules:[{conditions:[m,n],type:e,rules:[{endpoint:{url:"https://appflow-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:g}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:f}]},{conditions:o,type:e,rules:[{conditions:[m],type:e,rules:[{type:e,rules:[{endpoint:{url:"https://appflow-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:g}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:f}]},{conditions:p,type:e,rules:[{conditions:[n],type:e,rules:[{endpoint:{url:"https://appflow.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:g}]},{error:"DualStack is enabled but this partition does not support DualStack",type:f}]},{endpoint:{url:"https://appflow.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:g}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-appintegrations/src/endpoint/ruleset.ts b/clients/client-appintegrations/src/endpoint/ruleset.ts index 1e9571d300ca..1ee009ad0d1a 100644 --- a/clients/client-appintegrations/src/endpoint/ruleset.ts +++ b/clients/client-appintegrations/src/endpoint/ruleset.ts @@ -6,26 +6,24 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; 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}]}]}; +const p="required", +q="fn", +r="argv", +s="ref"; +const a="PartitionResult", +b="tree", +c="error", +d="endpoint", +e={[p]:false,"type":"String"}, +f={[p]:true,"default":false,"type":"Boolean"}, +g={[s]:"Endpoint"}, +h={[q]:"booleanEquals",[r]:[{[s]:"UseFIPS"},true]}, +i={[q]:"booleanEquals",[r]:[{[s]:"UseDualStack"},true]}, +j={}, +k={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsFIPS"]}]}, +l={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsDualStack"]}]}, +m=[g], +n=[h], +o=[i]; +const _data={version:"1.0",parameters:{Region:e,UseDualStack:f,UseFIPS:f,Endpoint:e},rules:[{conditions:[{[q]:"aws.partition",[r]:[{[s]:"Region"}],assign:a}],type:b,rules:[{conditions:[{[q]:"isSet",[r]:m},{[q]:"parseURL",[r]:m,assign:"url"}],type:b,rules:[{conditions:n,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:c},{type:b,rules:[{conditions:o,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:c},{endpoint:{url:g,properties:j,headers:j},type:d}]}]},{conditions:[h,i],type:b,rules:[{conditions:[k,l],type:b,rules:[{endpoint:{url:"https://app-integrations-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:c}]},{conditions:n,type:b,rules:[{conditions:[k],type:b,rules:[{type:b,rules:[{endpoint:{url:"https://app-integrations-fips.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:c}]},{conditions:o,type:b,rules:[{conditions:[l],type:b,rules:[{endpoint:{url:"https://app-integrations.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"DualStack is enabled but this partition does not support DualStack",type:c}]},{endpoint:{url:"https://app-integrations.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-application-auto-scaling/src/endpoint/ruleset.ts b/clients/client-application-auto-scaling/src/endpoint/ruleset.ts index fbe9b5a36cae..6bf57e911497 100644 --- a/clients/client-application-auto-scaling/src/endpoint/ruleset.ts +++ b/clients/client-application-auto-scaling/src/endpoint/ruleset.ts @@ -6,26 +6,24 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; 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}]}]}; +const p="required", +q="fn", +r="argv", +s="ref"; +const a="PartitionResult", +b="tree", +c="error", +d="endpoint", +e={[p]:false,"type":"String"}, +f={[p]:true,"default":false,"type":"Boolean"}, +g={[s]:"Endpoint"}, +h={[q]:"booleanEquals",[r]:[{[s]:"UseFIPS"},true]}, +i={[q]:"booleanEquals",[r]:[{[s]:"UseDualStack"},true]}, +j={}, +k={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsFIPS"]}]}, +l={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsDualStack"]}]}, +m=[g], +n=[h], +o=[i]; +const _data={version:"1.0",parameters:{Region:e,UseDualStack:f,UseFIPS:f,Endpoint:e},rules:[{conditions:[{[q]:"aws.partition",[r]:[{[s]:"Region"}],assign:a}],type:b,rules:[{conditions:[{[q]:"isSet",[r]:m},{[q]:"parseURL",[r]:m,assign:"url"}],type:b,rules:[{conditions:n,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:c},{type:b,rules:[{conditions:o,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:c},{endpoint:{url:g,properties:j,headers:j},type:d}]}]},{conditions:[h,i],type:b,rules:[{conditions:[k,l],type:b,rules:[{endpoint:{url:"https://application-autoscaling-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:c}]},{conditions:n,type:b,rules:[{conditions:[k],type:b,rules:[{type:b,rules:[{endpoint:{url:"https://application-autoscaling-fips.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:c}]},{conditions:o,type:b,rules:[{conditions:[l],type:b,rules:[{endpoint:{url:"https://application-autoscaling.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"DualStack is enabled but this partition does not support DualStack",type:c}]},{endpoint:{url:"https://application-autoscaling.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-application-discovery-service/src/endpoint/ruleset.ts b/clients/client-application-discovery-service/src/endpoint/ruleset.ts index a03c2c96c11e..ef581c434403 100644 --- a/clients/client-application-discovery-service/src/endpoint/ruleset.ts +++ b/clients/client-application-discovery-service/src/endpoint/ruleset.ts @@ -6,26 +6,24 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; 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}]}]}; +const p="required", +q="fn", +r="argv", +s="ref"; +const a="PartitionResult", +b="tree", +c="error", +d="endpoint", +e={[p]:false,"type":"String"}, +f={[p]:true,"default":false,"type":"Boolean"}, +g={[s]:"Endpoint"}, +h={[q]:"booleanEquals",[r]:[{[s]:"UseFIPS"},true]}, +i={[q]:"booleanEquals",[r]:[{[s]:"UseDualStack"},true]}, +j={}, +k={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsFIPS"]}]}, +l={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsDualStack"]}]}, +m=[g], +n=[h], +o=[i]; +const _data={version:"1.0",parameters:{Region:e,UseDualStack:f,UseFIPS:f,Endpoint:e},rules:[{conditions:[{[q]:"aws.partition",[r]:[{[s]:"Region"}],assign:a}],type:b,rules:[{conditions:[{[q]:"isSet",[r]:m},{[q]:"parseURL",[r]:m,assign:"url"}],type:b,rules:[{conditions:n,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:c},{type:b,rules:[{conditions:o,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:c},{endpoint:{url:g,properties:j,headers:j},type:d}]}]},{conditions:[h,i],type:b,rules:[{conditions:[k,l],type:b,rules:[{endpoint:{url:"https://discovery-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:c}]},{conditions:n,type:b,rules:[{conditions:[k],type:b,rules:[{type:b,rules:[{endpoint:{url:"https://discovery-fips.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:c}]},{conditions:o,type:b,rules:[{conditions:[l],type:b,rules:[{endpoint:{url:"https://discovery.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"DualStack is enabled but this partition does not support DualStack",type:c}]},{endpoint:{url:"https://discovery.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-application-insights/src/endpoint/ruleset.ts b/clients/client-application-insights/src/endpoint/ruleset.ts index a17865c2e16c..78a7facdb82f 100644 --- a/clients/client-application-insights/src/endpoint/ruleset.ts +++ b/clients/client-application-insights/src/endpoint/ruleset.ts @@ -6,26 +6,24 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; 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}]}]}; +const p="required", +q="fn", +r="argv", +s="ref"; +const a="PartitionResult", +b="tree", +c="error", +d="endpoint", +e={[p]:false,"type":"String"}, +f={[p]:true,"default":false,"type":"Boolean"}, +g={[s]:"Endpoint"}, +h={[q]:"booleanEquals",[r]:[{[s]:"UseFIPS"},true]}, +i={[q]:"booleanEquals",[r]:[{[s]:"UseDualStack"},true]}, +j={}, +k={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsFIPS"]}]}, +l={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsDualStack"]}]}, +m=[g], +n=[h], +o=[i]; +const _data={version:"1.0",parameters:{Region:e,UseDualStack:f,UseFIPS:f,Endpoint:e},rules:[{conditions:[{[q]:"aws.partition",[r]:[{[s]:"Region"}],assign:a}],type:b,rules:[{conditions:[{[q]:"isSet",[r]:m},{[q]:"parseURL",[r]:m,assign:"url"}],type:b,rules:[{conditions:n,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:c},{type:b,rules:[{conditions:o,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:c},{endpoint:{url:g,properties:j,headers:j},type:d}]}]},{conditions:[h,i],type:b,rules:[{conditions:[k,l],type:b,rules:[{endpoint:{url:"https://applicationinsights-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:c}]},{conditions:n,type:b,rules:[{conditions:[k],type:b,rules:[{type:b,rules:[{endpoint:{url:"https://applicationinsights-fips.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:c}]},{conditions:o,type:b,rules:[{conditions:[l],type:b,rules:[{endpoint:{url:"https://applicationinsights.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"DualStack is enabled but this partition does not support DualStack",type:c}]},{endpoint:{url:"https://applicationinsights.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-applicationcostprofiler/src/endpoint/ruleset.ts b/clients/client-applicationcostprofiler/src/endpoint/ruleset.ts index c8927c79cb90..175f41fa0938 100644 --- a/clients/client-applicationcostprofiler/src/endpoint/ruleset.ts +++ b/clients/client-applicationcostprofiler/src/endpoint/ruleset.ts @@ -6,26 +6,24 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; 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}]}]}; +const p="required", +q="fn", +r="argv", +s="ref"; +const a="PartitionResult", +b="tree", +c="error", +d="endpoint", +e={[p]:false,"type":"String"}, +f={[p]:true,"default":false,"type":"Boolean"}, +g={[s]:"Endpoint"}, +h={[q]:"booleanEquals",[r]:[{[s]:"UseFIPS"},true]}, +i={[q]:"booleanEquals",[r]:[{[s]:"UseDualStack"},true]}, +j={}, +k={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsFIPS"]}]}, +l={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsDualStack"]}]}, +m=[g], +n=[h], +o=[i]; +const _data={version:"1.0",parameters:{Region:e,UseDualStack:f,UseFIPS:f,Endpoint:e},rules:[{conditions:[{[q]:"aws.partition",[r]:[{[s]:"Region"}],assign:a}],type:b,rules:[{conditions:[{[q]:"isSet",[r]:m},{[q]:"parseURL",[r]:m,assign:"url"}],type:b,rules:[{conditions:n,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:c},{type:b,rules:[{conditions:o,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:c},{endpoint:{url:g,properties:j,headers:j},type:d}]}]},{conditions:[h,i],type:b,rules:[{conditions:[k,l],type:b,rules:[{endpoint:{url:"https://application-cost-profiler-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:c}]},{conditions:n,type:b,rules:[{conditions:[k],type:b,rules:[{endpoint:{url:"https://application-cost-profiler-fips.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]},{error:"FIPS is enabled but this partition does not support FIPS",type:c}]},{conditions:o,type:b,rules:[{conditions:[l],type:b,rules:[{endpoint:{url:"https://application-cost-profiler.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"DualStack is enabled but this partition does not support DualStack",type:c}]},{endpoint:{url:"https://application-cost-profiler.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-apprunner/src/endpoint/ruleset.ts b/clients/client-apprunner/src/endpoint/ruleset.ts index fe1946f34b96..7af6460542bd 100644 --- a/clients/client-apprunner/src/endpoint/ruleset.ts +++ b/clients/client-apprunner/src/endpoint/ruleset.ts @@ -6,26 +6,24 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; 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}]}]}; +const p="required", +q="fn", +r="argv", +s="ref"; +const a="PartitionResult", +b="tree", +c="error", +d="endpoint", +e={[p]:false,"type":"String"}, +f={[p]:true,"default":false,"type":"Boolean"}, +g={[s]:"Endpoint"}, +h={[q]:"booleanEquals",[r]:[{[s]:"UseFIPS"},true]}, +i={[q]:"booleanEquals",[r]:[{[s]:"UseDualStack"},true]}, +j={}, +k={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsFIPS"]}]}, +l={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsDualStack"]}]}, +m=[g], +n=[h], +o=[i]; +const _data={version:"1.0",parameters:{Region:e,UseDualStack:f,UseFIPS:f,Endpoint:e},rules:[{conditions:[{[q]:"aws.partition",[r]:[{[s]:"Region"}],assign:a}],type:b,rules:[{conditions:[{[q]:"isSet",[r]:m},{[q]:"parseURL",[r]:m,assign:"url"}],type:b,rules:[{conditions:n,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:c},{type:b,rules:[{conditions:o,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:c},{endpoint:{url:g,properties:j,headers:j},type:d}]}]},{conditions:[h,i],type:b,rules:[{conditions:[k,l],type:b,rules:[{endpoint:{url:"https://apprunner-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:c}]},{conditions:n,type:b,rules:[{conditions:[k],type:b,rules:[{type:b,rules:[{endpoint:{url:"https://apprunner-fips.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:c}]},{conditions:o,type:b,rules:[{conditions:[l],type:b,rules:[{endpoint:{url:"https://apprunner.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"DualStack is enabled but this partition does not support DualStack",type:c}]},{endpoint:{url:"https://apprunner.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-appstream/src/endpoint/ruleset.ts b/clients/client-appstream/src/endpoint/ruleset.ts index 1ba9fc131ef0..2cfb88cd5b8c 100644 --- a/clients/client-appstream/src/endpoint/ruleset.ts +++ b/clients/client-appstream/src/endpoint/ruleset.ts @@ -6,26 +6,24 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; 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}]}]}; +const p="required", +q="fn", +r="argv", +s="ref"; +const a="PartitionResult", +b="tree", +c="error", +d="endpoint", +e={[p]:false,"type":"String"}, +f={[p]:true,"default":false,"type":"Boolean"}, +g={[s]:"Endpoint"}, +h={[q]:"booleanEquals",[r]:[{[s]:"UseFIPS"},true]}, +i={[q]:"booleanEquals",[r]:[{[s]:"UseDualStack"},true]}, +j={}, +k={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsFIPS"]}]}, +l={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsDualStack"]}]}, +m=[g], +n=[h], +o=[i]; +const _data={version:"1.0",parameters:{Region:e,UseDualStack:f,UseFIPS:f,Endpoint:e},rules:[{conditions:[{[q]:"aws.partition",[r]:[{[s]:"Region"}],assign:a}],type:b,rules:[{conditions:[{[q]:"isSet",[r]:m},{[q]:"parseURL",[r]:m,assign:"url"}],type:b,rules:[{conditions:n,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:c},{type:b,rules:[{conditions:o,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:c},{endpoint:{url:g,properties:j,headers:j},type:d}]}]},{conditions:[h,i],type:b,rules:[{conditions:[k,l],type:b,rules:[{endpoint:{url:"https://appstream2-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:c}]},{conditions:n,type:b,rules:[{conditions:[k],type:b,rules:[{type:b,rules:[{endpoint:{url:"https://appstream2-fips.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:c}]},{conditions:o,type:b,rules:[{conditions:[l],type:b,rules:[{endpoint:{url:"https://appstream2.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"DualStack is enabled but this partition does not support DualStack",type:c}]},{endpoint:{url:"https://appstream2.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-appsync/src/endpoint/ruleset.ts b/clients/client-appsync/src/endpoint/ruleset.ts index c08e745d7b8f..04829fcce522 100644 --- a/clients/client-appsync/src/endpoint/ruleset.ts +++ b/clients/client-appsync/src/endpoint/ruleset.ts @@ -6,26 +6,25 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; or see "smithy.rules#endpointRuleSet" in codegen/sdk-codegen/aws-models/appsync.json */ -const s="fn", -t="argv", -u="ref"; +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={[u]:"Endpoint"}, -j={[s]:"booleanEquals",[t]:[{[u]:"UseFIPS"},true]}, -k={[s]:"booleanEquals",[t]:[{[u]:"UseDualStack"},true]}, +d="PartitionResult", +e="tree", +f="error", +g="endpoint", +h={"required":true,"default":false,"type":"Boolean"}, +i={[t]:"Endpoint"}, +j={[r]:"booleanEquals",[s]:[{[t]:"UseFIPS"},true]}, +k={[r]:"booleanEquals",[s]:[{[t]:"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"]}]}, +m={[r]:"booleanEquals",[s]:[true,{[r]:"getAttr",[s]:[{[t]:d},"supportsFIPS"]}]}, +n={[r]:"booleanEquals",[s]:[true,{[r]:"getAttr",[s]:[{[t]:d},"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}]}]}; +q=[k]; +const _data={version:"1.0",parameters:{Region:{required:a,type:c},UseDualStack:h,UseFIPS:h,Endpoint:{required:b,type:c}},rules:[{conditions:[{[r]:"aws.partition",[s]:[{[t]:"Region"}],assign:d}],type:e,rules:[{conditions:[{[r]:"isSet",[s]:o},{[r]:"parseURL",[s]:o,assign:"url"}],type:e,rules:[{conditions:p,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:f},{type:e,rules:[{conditions:q,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:f},{endpoint:{url:i,properties:l,headers:l},type:g}]}]},{conditions:[j,k],type:e,rules:[{conditions:[m,n],type:e,rules:[{endpoint:{url:"https://appsync-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:g}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:f}]},{conditions:p,type:e,rules:[{conditions:[m],type:e,rules:[{type:e,rules:[{endpoint:{url:"https://appsync-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:g}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:f}]},{conditions:q,type:e,rules:[{conditions:[n],type:e,rules:[{endpoint:{url:"https://appsync.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:g}]},{error:"DualStack is enabled but this partition does not support DualStack",type:f}]},{endpoint:{url:"https://appsync.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:g}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-arc-zonal-shift/src/endpoint/ruleset.ts b/clients/client-arc-zonal-shift/src/endpoint/ruleset.ts index 109866823f05..2fb8d84d25bd 100644 --- a/clients/client-arc-zonal-shift/src/endpoint/ruleset.ts +++ b/clients/client-arc-zonal-shift/src/endpoint/ruleset.ts @@ -6,26 +6,25 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; or see "smithy.rules#endpointRuleSet" in codegen/sdk-codegen/aws-models/arc-zonal-shift.json */ -const s="fn", -t="argv", -u="ref"; +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={[u]:"Endpoint"}, -j={[s]:"booleanEquals",[t]:[{[u]:"UseFIPS"},true]}, -k={[s]:"booleanEquals",[t]:[{[u]:"UseDualStack"},true]}, +d="PartitionResult", +e="tree", +f="error", +g="endpoint", +h={"required":true,"default":false,"type":"Boolean"}, +i={[t]:"Endpoint"}, +j={[r]:"booleanEquals",[s]:[{[t]:"UseFIPS"},true]}, +k={[r]:"booleanEquals",[s]:[{[t]:"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"]}]}, +m={[r]:"booleanEquals",[s]:[true,{[r]:"getAttr",[s]:[{[t]:d},"supportsFIPS"]}]}, +n={[r]:"booleanEquals",[s]:[true,{[r]:"getAttr",[s]:[{[t]:d},"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}]}]}; +q=[k]; +const _data={version:"1.0",parameters:{Region:{required:a,type:c},UseDualStack:h,UseFIPS:h,Endpoint:{required:b,type:c}},rules:[{conditions:[{[r]:"aws.partition",[s]:[{[t]:"Region"}],assign:d}],type:e,rules:[{conditions:[{[r]:"isSet",[s]:o},{[r]:"parseURL",[s]:o,assign:"url"}],type:e,rules:[{conditions:p,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:f},{type:e,rules:[{conditions:q,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:f},{endpoint:{url:i,properties:l,headers:l},type:g}]}]},{conditions:[j,k],type:e,rules:[{conditions:[m,n],type:e,rules:[{endpoint:{url:"https://arc-zonal-shift-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:g}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:f}]},{conditions:p,type:e,rules:[{conditions:[m],type:e,rules:[{endpoint:{url:"https://arc-zonal-shift-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:g}]},{error:"FIPS is enabled but this partition does not support FIPS",type:f}]},{conditions:q,type:e,rules:[{conditions:[n],type:e,rules:[{endpoint:{url:"https://arc-zonal-shift.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:g}]},{error:"DualStack is enabled but this partition does not support DualStack",type:f}]},{endpoint:{url:"https://arc-zonal-shift.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:g}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-athena/src/endpoint/ruleset.ts b/clients/client-athena/src/endpoint/ruleset.ts index b4a3e3b263bc..86d4e6f56001 100644 --- a/clients/client-athena/src/endpoint/ruleset.ts +++ b/clients/client-athena/src/endpoint/ruleset.ts @@ -6,25 +6,24 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; or see "smithy.rules#endpointRuleSet" in codegen/sdk-codegen/aws-models/athena.json */ -const r="fn", -s="argv", -t="ref"; +const q="fn", +r="argv", +s="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]}, +d="PartitionResult", +e="tree", +f="error", +g="endpoint", +h={"required":true,"default":false,"type":"Boolean"}, +i={[s]:"Endpoint"}, +j={[q]:"booleanEquals",[r]:[{[s]:"UseFIPS"},true]}, +k={[q]:"booleanEquals",[r]:[{[s]:"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"]}]}, +m={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:d},"supportsFIPS"]}]}, +n={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:d},"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}]}]}; +p=[k]; +const _data={version:"1.0",parameters:{Region:{required:a,type:c},UseDualStack:h,UseFIPS:h,Endpoint:{required:b,type:c}},rules:[{conditions:[{[q]:"aws.partition",[r]:[{[s]:"Region"}],assign:d}],type:e,rules:[{conditions:[{[q]:"isSet",[r]:[i]}],type:e,rules:[{conditions:o,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:f},{type:e,rules:[{conditions:p,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:f},{endpoint:{url:i,properties:l,headers:l},type:g}]}]},{conditions:[j,k],type:e,rules:[{conditions:[m,n],type:e,rules:[{endpoint:{url:"https://athena-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:g}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:f}]},{conditions:o,type:e,rules:[{conditions:[m],type:e,rules:[{type:e,rules:[{endpoint:{url:"https://athena-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:g}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:f}]},{conditions:p,type:e,rules:[{conditions:[n],type:e,rules:[{endpoint:{url:"https://athena.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:g}]},{error:"DualStack is enabled but this partition does not support DualStack",type:f}]},{endpoint:{url:"https://athena.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:g}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-auditmanager/src/endpoint/ruleset.ts b/clients/client-auditmanager/src/endpoint/ruleset.ts index c96462ac8450..8325b9602fd7 100644 --- a/clients/client-auditmanager/src/endpoint/ruleset.ts +++ b/clients/client-auditmanager/src/endpoint/ruleset.ts @@ -6,26 +6,24 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; 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}]}]}; +const p="required", +q="fn", +r="argv", +s="ref"; +const a="PartitionResult", +b="tree", +c="error", +d="endpoint", +e={[p]:false,"type":"String"}, +f={[p]:true,"default":false,"type":"Boolean"}, +g={[s]:"Endpoint"}, +h={[q]:"booleanEquals",[r]:[{[s]:"UseFIPS"},true]}, +i={[q]:"booleanEquals",[r]:[{[s]:"UseDualStack"},true]}, +j={}, +k={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsFIPS"]}]}, +l={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsDualStack"]}]}, +m=[g], +n=[h], +o=[i]; +const _data={version:"1.0",parameters:{Region:e,UseDualStack:f,UseFIPS:f,Endpoint:e},rules:[{conditions:[{[q]:"aws.partition",[r]:[{[s]:"Region"}],assign:a}],type:b,rules:[{conditions:[{[q]:"isSet",[r]:m},{[q]:"parseURL",[r]:m,assign:"url"}],type:b,rules:[{conditions:n,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:c},{type:b,rules:[{conditions:o,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:c},{endpoint:{url:g,properties:j,headers:j},type:d}]}]},{conditions:[h,i],type:b,rules:[{conditions:[k,l],type:b,rules:[{endpoint:{url:"https://auditmanager-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:c}]},{conditions:n,type:b,rules:[{conditions:[k],type:b,rules:[{type:b,rules:[{endpoint:{url:"https://auditmanager-fips.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:c}]},{conditions:o,type:b,rules:[{conditions:[l],type:b,rules:[{endpoint:{url:"https://auditmanager.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"DualStack is enabled but this partition does not support DualStack",type:c}]},{endpoint:{url:"https://auditmanager.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-auto-scaling-plans/src/endpoint/ruleset.ts b/clients/client-auto-scaling-plans/src/endpoint/ruleset.ts index 65ff9cf08bcb..f3ee79af935f 100644 --- a/clients/client-auto-scaling-plans/src/endpoint/ruleset.ts +++ b/clients/client-auto-scaling-plans/src/endpoint/ruleset.ts @@ -6,26 +6,24 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; 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}]}]}; +const p="required", +q="fn", +r="argv", +s="ref"; +const a="PartitionResult", +b="tree", +c="error", +d="endpoint", +e={[p]:false,"type":"String"}, +f={[p]:true,"default":false,"type":"Boolean"}, +g={[s]:"Endpoint"}, +h={[q]:"booleanEquals",[r]:[{[s]:"UseFIPS"},true]}, +i={[q]:"booleanEquals",[r]:[{[s]:"UseDualStack"},true]}, +j={}, +k={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsFIPS"]}]}, +l={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsDualStack"]}]}, +m=[g], +n=[h], +o=[i]; +const _data={version:"1.0",parameters:{Region:e,UseDualStack:f,UseFIPS:f,Endpoint:e},rules:[{conditions:[{[q]:"aws.partition",[r]:[{[s]:"Region"}],assign:a}],type:b,rules:[{conditions:[{[q]:"isSet",[r]:m},{[q]:"parseURL",[r]:m,assign:"url"}],type:b,rules:[{conditions:n,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:c},{type:b,rules:[{conditions:o,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:c},{endpoint:{url:g,properties:j,headers:j},type:d}]}]},{conditions:[h,i],type:b,rules:[{conditions:[k,l],type:b,rules:[{endpoint:{url:"https://autoscaling-plans-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:c}]},{conditions:n,type:b,rules:[{conditions:[k],type:b,rules:[{type:b,rules:[{endpoint:{url:"https://autoscaling-plans-fips.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:c}]},{conditions:o,type:b,rules:[{conditions:[l],type:b,rules:[{endpoint:{url:"https://autoscaling-plans.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"DualStack is enabled but this partition does not support DualStack",type:c}]},{endpoint:{url:"https://autoscaling-plans.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-auto-scaling/src/endpoint/ruleset.ts b/clients/client-auto-scaling/src/endpoint/ruleset.ts index ad9bbdd96ebc..72f0373a49d7 100644 --- a/clients/client-auto-scaling/src/endpoint/ruleset.ts +++ b/clients/client-auto-scaling/src/endpoint/ruleset.ts @@ -6,28 +6,27 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; or see "smithy.rules#endpointRuleSet" in codegen/sdk-codegen/aws-models/auto-scaling.json */ -const u="fn", -v="argv", -w="ref"; +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="getAttr", -j={[w]:"Endpoint"}, -k={[u]:"booleanEquals",[v]:[{[w]:"UseFIPS"},true]}, -l={[u]:"booleanEquals",[v]:[{[w]:"UseDualStack"},true]}, +d="PartitionResult", +e="tree", +f="error", +g="endpoint", +h="getAttr", +i={"required":true,"default":false,"type":"Boolean"}, +j={[v]:"Endpoint"}, +k={[t]:"booleanEquals",[u]:[{[v]:"UseFIPS"},true]}, +l={[t]:"booleanEquals",[u]:[{[v]:"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"]}]}, +n={[t]:"booleanEquals",[u]:[true,{[t]:h,[u]:[{[v]:d},"supportsFIPS"]}]}, +o={[v]:d}, +p={[t]:"booleanEquals",[u]:[true,{[t]:h,[u]:[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}]}]}; +s=[l]; +const _data={version:"1.0",parameters:{Region:{required:a,type:c},UseDualStack:i,UseFIPS:i,Endpoint:{required:b,type:c}},rules:[{conditions:[{[t]:"aws.partition",[u]:[{[v]:"Region"}],assign:d}],type:e,rules:[{conditions:[{[t]:"isSet",[u]:[j]}],type:e,rules:[{conditions:r,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:f},{type:e,rules:[{conditions:s,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:f},{endpoint:{url:j,properties:m,headers:m},type:g}]}]},{conditions:[k,l],type:e,rules:[{conditions:[n,p],type:e,rules:[{endpoint:{url:"https://autoscaling-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:m,headers:m},type:g}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:f}]},{conditions:r,type:e,rules:[{conditions:[n],type:e,rules:[{type:e,rules:[{conditions:[{[t]:"stringEquals",[u]:["aws-us-gov",{[t]:h,[u]:[o,"name"]}]}],endpoint:q,type:g},{endpoint:{url:"https://autoscaling-fips.{Region}.{PartitionResult#dnsSuffix}",properties:m,headers:m},type:g}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:f}]},{conditions:s,type:e,rules:[{conditions:[p],type:e,rules:[{endpoint:{url:"https://autoscaling.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:m,headers:m},type:g}]},{error:"DualStack is enabled but this partition does not support DualStack",type:f}]},{endpoint:q,type:g}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-backup-gateway/src/endpoint/ruleset.ts b/clients/client-backup-gateway/src/endpoint/ruleset.ts index 7df1e38fe123..8fa4d8661680 100644 --- a/clients/client-backup-gateway/src/endpoint/ruleset.ts +++ b/clients/client-backup-gateway/src/endpoint/ruleset.ts @@ -6,25 +6,24 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; or see "smithy.rules#endpointRuleSet" in codegen/sdk-codegen/aws-models/backup-gateway.json */ -const r="fn", -s="argv", -t="ref"; +const q="fn", +r="argv", +s="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]}, +d="PartitionResult", +e="tree", +f="error", +g="endpoint", +h={"required":true,"default":false,"type":"Boolean"}, +i={[s]:"Endpoint"}, +j={[q]:"booleanEquals",[r]:[{[s]:"UseFIPS"},true]}, +k={[q]:"booleanEquals",[r]:[{[s]:"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"]}]}, +m={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:d},"supportsFIPS"]}]}, +n={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:d},"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}]}]}; +p=[k]; +const _data={version:"1.0",parameters:{Region:{required:a,type:c},UseDualStack:h,UseFIPS:h,Endpoint:{required:b,type:c}},rules:[{conditions:[{[q]:"aws.partition",[r]:[{[s]:"Region"}],assign:d}],type:e,rules:[{conditions:[{[q]:"isSet",[r]:[i]}],type:e,rules:[{conditions:o,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:f},{type:e,rules:[{conditions:p,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:f},{endpoint:{url:i,properties:l,headers:l},type:g}]}]},{conditions:[j,k],type:e,rules:[{conditions:[m,n],type:e,rules:[{endpoint:{url:"https://backup-gateway-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:g}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:f}]},{conditions:o,type:e,rules:[{conditions:[m],type:e,rules:[{type:e,rules:[{endpoint:{url:"https://backup-gateway-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:g}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:f}]},{conditions:p,type:e,rules:[{conditions:[n],type:e,rules:[{endpoint:{url:"https://backup-gateway.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:g}]},{error:"DualStack is enabled but this partition does not support DualStack",type:f}]},{endpoint:{url:"https://backup-gateway.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:g}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-backup/src/endpoint/ruleset.ts b/clients/client-backup/src/endpoint/ruleset.ts index db1c5df7b88e..3861ddb74af2 100644 --- a/clients/client-backup/src/endpoint/ruleset.ts +++ b/clients/client-backup/src/endpoint/ruleset.ts @@ -6,26 +6,25 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; or see "smithy.rules#endpointRuleSet" in codegen/sdk-codegen/aws-models/backup.json */ -const s="fn", -t="argv", -u="ref"; +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={[u]:"Endpoint"}, -j={[s]:"booleanEquals",[t]:[{[u]:"UseFIPS"},true]}, -k={[s]:"booleanEquals",[t]:[{[u]:"UseDualStack"},true]}, +d="PartitionResult", +e="tree", +f="error", +g="endpoint", +h={"required":true,"default":false,"type":"Boolean"}, +i={[t]:"Endpoint"}, +j={[r]:"booleanEquals",[s]:[{[t]:"UseFIPS"},true]}, +k={[r]:"booleanEquals",[s]:[{[t]:"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"]}]}, +m={[r]:"booleanEquals",[s]:[true,{[r]:"getAttr",[s]:[{[t]:d},"supportsFIPS"]}]}, +n={[r]:"booleanEquals",[s]:[true,{[r]:"getAttr",[s]:[{[t]:d},"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}]}]}; +q=[k]; +const _data={version:"1.0",parameters:{Region:{required:a,type:c},UseDualStack:h,UseFIPS:h,Endpoint:{required:b,type:c}},rules:[{conditions:[{[r]:"aws.partition",[s]:[{[t]:"Region"}],assign:d}],type:e,rules:[{conditions:[{[r]:"isSet",[s]:o},{[r]:"parseURL",[s]:o,assign:"url"}],type:e,rules:[{conditions:p,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:f},{type:e,rules:[{conditions:q,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:f},{endpoint:{url:i,properties:l,headers:l},type:g}]}]},{conditions:[j,k],type:e,rules:[{conditions:[m,n],type:e,rules:[{endpoint:{url:"https://backup-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:g}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:f}]},{conditions:p,type:e,rules:[{conditions:[m],type:e,rules:[{type:e,rules:[{endpoint:{url:"https://backup-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:g}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:f}]},{conditions:q,type:e,rules:[{conditions:[n],type:e,rules:[{endpoint:{url:"https://backup.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:g}]},{error:"DualStack is enabled but this partition does not support DualStack",type:f}]},{endpoint:{url:"https://backup.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:g}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-backupstorage/src/endpoint/ruleset.ts b/clients/client-backupstorage/src/endpoint/ruleset.ts index a0f015cabf7d..72a441026842 100644 --- a/clients/client-backupstorage/src/endpoint/ruleset.ts +++ b/clients/client-backupstorage/src/endpoint/ruleset.ts @@ -6,26 +6,24 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; 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}]}]}; +const p="required", +q="fn", +r="argv", +s="ref"; +const a="PartitionResult", +b="tree", +c="error", +d="endpoint", +e={[p]:false,"type":"String"}, +f={[p]:true,"default":false,"type":"Boolean"}, +g={[s]:"Endpoint"}, +h={[q]:"booleanEquals",[r]:[{[s]:"UseFIPS"},true]}, +i={[q]:"booleanEquals",[r]:[{[s]:"UseDualStack"},true]}, +j={}, +k={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsFIPS"]}]}, +l={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsDualStack"]}]}, +m=[g], +n=[h], +o=[i]; +const _data={version:"1.0",parameters:{Region:e,UseDualStack:f,UseFIPS:f,Endpoint:e},rules:[{conditions:[{[q]:"aws.partition",[r]:[{[s]:"Region"}],assign:a}],type:b,rules:[{conditions:[{[q]:"isSet",[r]:m},{[q]:"parseURL",[r]:m,assign:"url"}],type:b,rules:[{conditions:n,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:c},{type:b,rules:[{conditions:o,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:c},{endpoint:{url:g,properties:j,headers:j},type:d}]}]},{conditions:[h,i],type:b,rules:[{conditions:[k,l],type:b,rules:[{endpoint:{url:"https://backupstorage-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:c}]},{conditions:n,type:b,rules:[{conditions:[k],type:b,rules:[{endpoint:{url:"https://backupstorage-fips.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]},{error:"FIPS is enabled but this partition does not support FIPS",type:c}]},{conditions:o,type:b,rules:[{conditions:[l],type:b,rules:[{endpoint:{url:"https://backupstorage.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"DualStack is enabled but this partition does not support DualStack",type:c}]},{endpoint:{url:"https://backupstorage.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-batch/src/endpoint/ruleset.ts b/clients/client-batch/src/endpoint/ruleset.ts index f093fe0020fd..9520299fd1f9 100644 --- a/clients/client-batch/src/endpoint/ruleset.ts +++ b/clients/client-batch/src/endpoint/ruleset.ts @@ -6,28 +6,27 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; or see "smithy.rules#endpointRuleSet" in codegen/sdk-codegen/aws-models/batch.json */ -const u="fn", -v="argv", -w="ref"; +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={[w]:"Endpoint"}, -k={[u]:"booleanEquals",[v]:[{[w]:"UseFIPS"},true]}, -l={[u]:"booleanEquals",[v]:[{[w]:"UseDualStack"},true]}, +d="PartitionResult", +e="tree", +f="error", +g="endpoint", +h="stringEquals", +i={"required":true,"default":false,"type":"Boolean"}, +j={[v]:"Endpoint"}, +k={[t]:"booleanEquals",[u]:[{[v]:"UseFIPS"},true]}, +l={[t]:"booleanEquals",[u]:[{[v]:"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"]}, +n={[t]:"booleanEquals",[u]:[true,{[t]:"getAttr",[u]:[{[v]:d},"supportsFIPS"]}]}, +o={[t]:"booleanEquals",[u]:[true,{[t]:"getAttr",[u]:[{[v]:d},"supportsDualStack"]}]}, +p={[t]:"getAttr",[u]:[{[v]:d},"name"]}, q={"url":"https://batch.{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://batch-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.batch.{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://batch-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://batch.{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}]}]}; +s=[l]; +const _data={version:"1.0",parameters:{Region:{required:a,type:c},UseDualStack:i,UseFIPS:i,Endpoint:{required:b,type:c}},rules:[{conditions:[{[t]:"aws.partition",[u]:[{[v]:"Region"}],assign:d}],type:e,rules:[{conditions:[{[t]:"isSet",[u]:[j]}],type:e,rules:[{conditions:r,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:f},{type:e,rules:[{conditions:s,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:f},{endpoint:{url:j,properties:m,headers:m},type:g}]}]},{conditions:[k,l],type:e,rules:[{conditions:[n,o],type:e,rules:[{endpoint:{url:"https://batch-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:m,headers:m},type:g}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:f}]},{conditions:r,type:e,rules:[{conditions:[n],type:e,rules:[{type:e,rules:[{conditions:[{[t]:h,[u]:["aws",p]}],endpoint:{url:"https://fips.batch.{Region}.{PartitionResult#dnsSuffix}",properties:m,headers:m},type:g},{conditions:[{[t]:h,[u]:["aws-us-gov",p]}],endpoint:q,type:g},{endpoint:{url:"https://batch-fips.{Region}.{PartitionResult#dnsSuffix}",properties:m,headers:m},type:g}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:f}]},{conditions:s,type:e,rules:[{conditions:[o],type:e,rules:[{endpoint:{url:"https://batch.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:m,headers:m},type:g}]},{error:"DualStack is enabled but this partition does not support DualStack",type:f}]},{endpoint:q,type:g}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-billingconductor/src/endpoint/ruleset.ts b/clients/client-billingconductor/src/endpoint/ruleset.ts index 826c56a311c5..277a998bbffd 100644 --- a/clients/client-billingconductor/src/endpoint/ruleset.ts +++ b/clients/client-billingconductor/src/endpoint/ruleset.ts @@ -6,37 +6,35 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; 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="type", +B="fn", +C="argv", +D="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"}, +d="PartitionResult", +e="tree", +f="error", +g="endpoint", +h="stringEquals", +i="getAttr", +j={"required":true,"default":false,[A]:"Boolean"}, +k={[D]:"Region"}, +l={[D]:"Endpoint"}, m={}, -n={[F]:e}, +n={[D]:d}, 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}, +p={[f]:"FIPS and DualStack are enabled, but this partition does not support one or both",[A]:f}, +q={[f]:"FIPS is enabled but this partition does not support FIPS",[A]:f}, +r={[f]:"DualStack is enabled but this partition does not support DualStack",[A]:f}, 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}]}]}]}; +u=[{[B]:"booleanEquals",[C]:[{[D]:"UseFIPS"},true]}], +v=[{[B]:"booleanEquals",[C]:[{[D]:"UseDualStack"},true]}], +w=[{[B]:"booleanEquals",[C]:[{[D]:"UseFIPS"},true]},{[B]:"booleanEquals",[C]:[{[D]:"UseDualStack"},true]}], +x=[{[B]:"booleanEquals",[C]:[true,{[B]:i,[C]:[n,"supportsFIPS"]}]},{[B]:"booleanEquals",[C]:[true,{[B]:i,[C]:[n,"supportsDualStack"]}]}], +y=[{[B]:"booleanEquals",[C]:[true,{[B]:i,[C]:[n,"supportsFIPS"]}]}], +z=[{[B]:"booleanEquals",[C]:[true,{[B]:i,[C]:[n,"supportsDualStack"]}]}]; +const _data={version:"1.0",parameters:{Region:{required:a,[A]:c},UseDualStack:j,UseFIPS:j,Endpoint:{required:b,[A]:c}},rules:[{conditions:[{[B]:"aws.partition",[C]:[k],assign:d}],[A]:e,rules:[{conditions:[{[B]:"isSet",[C]:t},{[B]:"parseURL",[C]:t,assign:"url"}],[A]:e,rules:[{conditions:u,error:"Invalid Configuration: FIPS and custom endpoint are not supported",[A]:f},{[A]:e,rules:[{conditions:v,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",[A]:f},{endpoint:{url:l,properties:m,headers:m},[A]:g}]}]},{conditions:[{[B]:h,[C]:[{[B]:i,[C]:[n,"name"]},"aws"]}],[A]:e,rules:[{conditions:w,[A]:e,rules:[{conditions:x,[A]:e,rules:[{endpoint:{url:"https://billingconductor-fips.{Region}.api.aws",properties:o,headers:m},[A]:g}]},p]},{conditions:u,[A]:e,rules:[{conditions:y,[A]:e,rules:[{endpoint:{url:"https://billingconductor-fips.{Region}.amazonaws.com",properties:o,headers:m},[A]:g}]},q]},{conditions:v,[A]:e,rules:[{conditions:z,[A]:e,rules:[{endpoint:{url:"https://billingconductor.{Region}.api.aws",properties:o,headers:m},[A]:g}]},r]},{endpoint:s,[A]:g}]},{conditions:w,[A]:e,rules:[{conditions:x,[A]:e,rules:[{endpoint:{url:"https://billingconductor-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:m,headers:m},[A]:g}]},p]},{conditions:u,[A]:e,rules:[{conditions:y,[A]:e,rules:[{[A]:e,rules:[{endpoint:{url:"https://billingconductor-fips.{Region}.{PartitionResult#dnsSuffix}",properties:m,headers:m},[A]:g}]}]},q]},{conditions:v,[A]:e,rules:[{conditions:z,[A]:e,rules:[{endpoint:{url:"https://billingconductor.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:m,headers:m},[A]:g}]},r]},{[A]:e,rules:[{conditions:[{[B]:h,[C]:[k,"aws-global"]}],endpoint:s,[A]:g},{endpoint:{url:"https://billingconductor.{Region}.{PartitionResult#dnsSuffix}",properties:m,headers:m},[A]:g}]}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-braket/src/endpoint/ruleset.ts b/clients/client-braket/src/endpoint/ruleset.ts index 156320be9b02..fb9c5bc0e118 100644 --- a/clients/client-braket/src/endpoint/ruleset.ts +++ b/clients/client-braket/src/endpoint/ruleset.ts @@ -6,26 +6,24 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; 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}]}]}; +const p="required", +q="fn", +r="argv", +s="ref"; +const a="PartitionResult", +b="tree", +c="error", +d="endpoint", +e={[p]:false,"type":"String"}, +f={[p]:true,"default":false,"type":"Boolean"}, +g={[s]:"Endpoint"}, +h={[q]:"booleanEquals",[r]:[{[s]:"UseFIPS"},true]}, +i={[q]:"booleanEquals",[r]:[{[s]:"UseDualStack"},true]}, +j={}, +k={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsFIPS"]}]}, +l={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsDualStack"]}]}, +m=[g], +n=[h], +o=[i]; +const _data={version:"1.0",parameters:{Region:e,UseDualStack:f,UseFIPS:f,Endpoint:e},rules:[{conditions:[{[q]:"aws.partition",[r]:[{[s]:"Region"}],assign:a}],type:b,rules:[{conditions:[{[q]:"isSet",[r]:m},{[q]:"parseURL",[r]:m,assign:"url"}],type:b,rules:[{conditions:n,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:c},{type:b,rules:[{conditions:o,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:c},{endpoint:{url:g,properties:j,headers:j},type:d}]}]},{conditions:[h,i],type:b,rules:[{conditions:[k,l],type:b,rules:[{endpoint:{url:"https://braket-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:c}]},{conditions:n,type:b,rules:[{conditions:[k],type:b,rules:[{type:b,rules:[{endpoint:{url:"https://braket-fips.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:c}]},{conditions:o,type:b,rules:[{conditions:[l],type:b,rules:[{endpoint:{url:"https://braket.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"DualStack is enabled but this partition does not support DualStack",type:c}]},{endpoint:{url:"https://braket.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-budgets/src/endpoint/ruleset.ts b/clients/client-budgets/src/endpoint/ruleset.ts index 9ed6de2dcd4a..c90d225b9e7e 100644 --- a/clients/client-budgets/src/endpoint/ruleset.ts +++ b/clients/client-budgets/src/endpoint/ruleset.ts @@ -6,43 +6,40 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; 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}]}]}]}; +const z="required", +A="type", +B="fn", +C="argv", +D="ref", +E="properties", +F="headers", +G="authSchemes", +H="signingName", +I="signingRegion"; +const a="PartitionResult", +b="tree", +c="error", +d="endpoint", +e="stringEquals", +f={[z]:false,[A]:"String"}, +g={[z]:true,"default":false,[A]:"Boolean"}, +h={[D]:"Region"}, +i={[D]:"Endpoint"}, +j={}, +k={[B]:"getAttr",[C]:[{[D]:a},"name"]}, +l={[G]:[{"name":"sigv4",[H]:"budgets",[I]:"us-east-1"}]}, +m={[c]:"FIPS and DualStack are enabled, but this partition does not support one or both",[A]:c}, +n={[c]:"FIPS is enabled but this partition does not support FIPS",[A]:c}, +o={[c]:"DualStack is enabled but this partition does not support DualStack",[A]:c}, +p={"url":"https://budgets.amazonaws.com",[E]:l,[F]:{}}, +q={[G]:[{"name":"sigv4",[H]:"budgets",[I]:"cn-northwest-1"}]}, +r={"url":"https://budgets.amazonaws.com.cn",[E]:q,[F]:{}}, +s=[i], +t=[{[B]:"booleanEquals",[C]:[{[D]:"UseFIPS"},true]}], +u=[{[B]:"booleanEquals",[C]:[{[D]:"UseDualStack"},true]}], +v=[{[B]:"booleanEquals",[C]:[{[D]:"UseFIPS"},true]},{[B]:"booleanEquals",[C]:[{[D]:"UseDualStack"},true]}], +w=[{[B]:"booleanEquals",[C]:[true,{[B]:"getAttr",[C]:[{[D]:a},"supportsFIPS"]}]},{[B]:"booleanEquals",[C]:[true,{[B]:"getAttr",[C]:[{[D]:a},"supportsDualStack"]}]}], +x=[{[B]:"booleanEquals",[C]:[true,{[B]:"getAttr",[C]:[{[D]:a},"supportsFIPS"]}]}], +y=[{[B]:"booleanEquals",[C]:[true,{[B]:"getAttr",[C]:[{[D]:a},"supportsDualStack"]}]}]; +const _data={version:"1.0",parameters:{Region:f,UseDualStack:g,UseFIPS:g,Endpoint:f},rules:[{conditions:[{[B]:"aws.partition",[C]:[h],assign:a}],[A]:b,rules:[{conditions:[{[B]:"isSet",[C]:s},{[B]:"parseURL",[C]:s,assign:"url"}],[A]:b,rules:[{conditions:t,error:"Invalid Configuration: FIPS and custom endpoint are not supported",[A]:c},{[A]:b,rules:[{conditions:u,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",[A]:c},{endpoint:{url:i,[E]:j,[F]:j},[A]:d}]}]},{conditions:[{[B]:e,[C]:[k,"aws"]}],[A]:b,rules:[{conditions:v,[A]:b,rules:[{conditions:w,[A]:b,rules:[{endpoint:{url:"https://budgets-fips.{Region}.api.aws",[E]:l,[F]:j},[A]:d}]},m]},{conditions:t,[A]:b,rules:[{conditions:x,[A]:b,rules:[{endpoint:{url:"https://budgets-fips.{Region}.amazonaws.com",[E]:l,[F]:j},[A]:d}]},n]},{conditions:u,[A]:b,rules:[{conditions:y,[A]:b,rules:[{endpoint:{url:"https://budgets.{Region}.api.aws",[E]:l,[F]:j},[A]:d}]},o]},{endpoint:p,[A]:d}]},{conditions:[{[B]:e,[C]:[k,"aws-cn"]}],[A]:b,rules:[{conditions:v,[A]:b,rules:[{conditions:w,[A]:b,rules:[{endpoint:{url:"https://budgets-fips.{Region}.api.amazonwebservices.com.cn",[E]:q,[F]:j},[A]:d}]},m]},{conditions:t,[A]:b,rules:[{conditions:x,[A]:b,rules:[{endpoint:{url:"https://budgets-fips.{Region}.amazonaws.com.cn",[E]:q,[F]:j},[A]:d}]},n]},{conditions:u,[A]:b,rules:[{conditions:y,[A]:b,rules:[{endpoint:{url:"https://budgets.{Region}.api.amazonwebservices.com.cn",[E]:q,[F]:j},[A]:d}]},o]},{endpoint:r,[A]:d}]},{conditions:v,[A]:b,rules:[{conditions:w,[A]:b,rules:[{endpoint:{url:"https://budgets-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",[E]:j,[F]:j},[A]:d}]},m]},{conditions:t,[A]:b,rules:[{conditions:x,[A]:b,rules:[{[A]:b,rules:[{endpoint:{url:"https://budgets-fips.{Region}.{PartitionResult#dnsSuffix}",[E]:j,[F]:j},[A]:d}]}]},n]},{conditions:u,[A]:b,rules:[{conditions:y,[A]:b,rules:[{endpoint:{url:"https://budgets.{Region}.{PartitionResult#dualStackDnsSuffix}",[E]:j,[F]:j},[A]:d}]},o]},{[A]:b,rules:[{conditions:[{[B]:e,[C]:[h,"aws-global"]}],endpoint:p,[A]:d},{conditions:[{[B]:e,[C]:[h,"aws-cn-global"]}],endpoint:r,[A]:d},{endpoint:{url:"https://budgets.{Region}.{PartitionResult#dnsSuffix}",[E]:j,[F]:j},[A]:d}]}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-chime-sdk-identity/src/endpoint/ruleset.ts b/clients/client-chime-sdk-identity/src/endpoint/ruleset.ts index 9c11a34cc001..861380b8c476 100644 --- a/clients/client-chime-sdk-identity/src/endpoint/ruleset.ts +++ b/clients/client-chime-sdk-identity/src/endpoint/ruleset.ts @@ -6,26 +6,24 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; 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}]}]}; +const p="required", +q="fn", +r="argv", +s="ref"; +const a="PartitionResult", +b="tree", +c="error", +d="endpoint", +e={[p]:false,"type":"String"}, +f={[p]:true,"default":false,"type":"Boolean"}, +g={[s]:"Endpoint"}, +h={[q]:"booleanEquals",[r]:[{[s]:"UseFIPS"},true]}, +i={[q]:"booleanEquals",[r]:[{[s]:"UseDualStack"},true]}, +j={}, +k={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsFIPS"]}]}, +l={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsDualStack"]}]}, +m=[g], +n=[h], +o=[i]; +const _data={version:"1.0",parameters:{Region:e,UseDualStack:f,UseFIPS:f,Endpoint:e},rules:[{conditions:[{[q]:"aws.partition",[r]:[{[s]:"Region"}],assign:a}],type:b,rules:[{conditions:[{[q]:"isSet",[r]:m},{[q]:"parseURL",[r]:m,assign:"url"}],type:b,rules:[{conditions:n,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:c},{type:b,rules:[{conditions:o,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:c},{endpoint:{url:g,properties:j,headers:j},type:d}]}]},{conditions:[h,i],type:b,rules:[{conditions:[k,l],type:b,rules:[{endpoint:{url:"https://identity-chime-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:c}]},{conditions:n,type:b,rules:[{conditions:[k],type:b,rules:[{type:b,rules:[{endpoint:{url:"https://identity-chime-fips.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:c}]},{conditions:o,type:b,rules:[{conditions:[l],type:b,rules:[{endpoint:{url:"https://identity-chime.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"DualStack is enabled but this partition does not support DualStack",type:c}]},{endpoint:{url:"https://identity-chime.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]}; export const ruleSet: RuleSetObject = _data; 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 60b3a8e4870b..4a1cebaf6f50 100644 --- a/clients/client-chime-sdk-media-pipelines/src/endpoint/ruleset.ts +++ b/clients/client-chime-sdk-media-pipelines/src/endpoint/ruleset.ts @@ -6,26 +6,24 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; 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}]}]}; +const p="required", +q="fn", +r="argv", +s="ref"; +const a="PartitionResult", +b="tree", +c="error", +d="endpoint", +e={[p]:false,"type":"String"}, +f={[p]:true,"default":false,"type":"Boolean"}, +g={[s]:"Endpoint"}, +h={[q]:"booleanEquals",[r]:[{[s]:"UseFIPS"},true]}, +i={[q]:"booleanEquals",[r]:[{[s]:"UseDualStack"},true]}, +j={}, +k={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsFIPS"]}]}, +l={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsDualStack"]}]}, +m=[g], +n=[h], +o=[i]; +const _data={version:"1.0",parameters:{Region:e,UseDualStack:f,UseFIPS:f,Endpoint:e},rules:[{conditions:[{[q]:"aws.partition",[r]:[{[s]:"Region"}],assign:a}],type:b,rules:[{conditions:[{[q]:"isSet",[r]:m},{[q]:"parseURL",[r]:m,assign:"url"}],type:b,rules:[{conditions:n,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:c},{type:b,rules:[{conditions:o,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:c},{endpoint:{url:g,properties:j,headers:j},type:d}]}]},{conditions:[h,i],type:b,rules:[{conditions:[k,l],type:b,rules:[{endpoint:{url:"https://media-pipelines-chime-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:c}]},{conditions:n,type:b,rules:[{conditions:[k],type:b,rules:[{type:b,rules:[{endpoint:{url:"https://media-pipelines-chime-fips.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:c}]},{conditions:o,type:b,rules:[{conditions:[l],type:b,rules:[{endpoint:{url:"https://media-pipelines-chime.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"DualStack is enabled but this partition does not support DualStack",type:c}]},{endpoint:{url:"https://media-pipelines-chime.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-chime-sdk-meetings/src/endpoint/ruleset.ts b/clients/client-chime-sdk-meetings/src/endpoint/ruleset.ts index 8a2f6c87b92a..8f0704ddc168 100644 --- a/clients/client-chime-sdk-meetings/src/endpoint/ruleset.ts +++ b/clients/client-chime-sdk-meetings/src/endpoint/ruleset.ts @@ -6,26 +6,24 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; 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}]}]}; +const p="required", +q="fn", +r="argv", +s="ref"; +const a="PartitionResult", +b="tree", +c="error", +d="endpoint", +e={[p]:false,"type":"String"}, +f={[p]:true,"default":false,"type":"Boolean"}, +g={[s]:"Endpoint"}, +h={[q]:"booleanEquals",[r]:[{[s]:"UseFIPS"},true]}, +i={[q]:"booleanEquals",[r]:[{[s]:"UseDualStack"},true]}, +j={}, +k={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsFIPS"]}]}, +l={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsDualStack"]}]}, +m=[g], +n=[h], +o=[i]; +const _data={version:"1.0",parameters:{Region:e,UseDualStack:f,UseFIPS:f,Endpoint:e},rules:[{conditions:[{[q]:"aws.partition",[r]:[{[s]:"Region"}],assign:a}],type:b,rules:[{conditions:[{[q]:"isSet",[r]:m},{[q]:"parseURL",[r]:m,assign:"url"}],type:b,rules:[{conditions:n,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:c},{type:b,rules:[{conditions:o,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:c},{endpoint:{url:g,properties:j,headers:j},type:d}]}]},{conditions:[h,i],type:b,rules:[{conditions:[k,l],type:b,rules:[{endpoint:{url:"https://meetings-chime-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:c}]},{conditions:n,type:b,rules:[{conditions:[k],type:b,rules:[{type:b,rules:[{endpoint:{url:"https://meetings-chime-fips.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:c}]},{conditions:o,type:b,rules:[{conditions:[l],type:b,rules:[{endpoint:{url:"https://meetings-chime.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"DualStack is enabled but this partition does not support DualStack",type:c}]},{endpoint:{url:"https://meetings-chime.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-chime-sdk-messaging/src/endpoint/ruleset.ts b/clients/client-chime-sdk-messaging/src/endpoint/ruleset.ts index 688e45f10766..4a255814b741 100644 --- a/clients/client-chime-sdk-messaging/src/endpoint/ruleset.ts +++ b/clients/client-chime-sdk-messaging/src/endpoint/ruleset.ts @@ -6,26 +6,25 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; or see "smithy.rules#endpointRuleSet" in codegen/sdk-codegen/aws-models/chime-sdk-messaging.json */ -const s="fn", -t="argv", -u="ref"; +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={[u]:"Endpoint"}, -j={[s]:"booleanEquals",[t]:[{[u]:"UseFIPS"},true]}, -k={[s]:"booleanEquals",[t]:[{[u]:"UseDualStack"},true]}, +d="PartitionResult", +e="tree", +f="error", +g="endpoint", +h={"required":true,"default":false,"type":"Boolean"}, +i={[t]:"Endpoint"}, +j={[r]:"booleanEquals",[s]:[{[t]:"UseFIPS"},true]}, +k={[r]:"booleanEquals",[s]:[{[t]:"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"]}]}, +m={[r]:"booleanEquals",[s]:[true,{[r]:"getAttr",[s]:[{[t]:d},"supportsFIPS"]}]}, +n={[r]:"booleanEquals",[s]:[true,{[r]:"getAttr",[s]:[{[t]:d},"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}]}]}; +q=[k]; +const _data={version:"1.0",parameters:{Region:{required:a,type:c},UseDualStack:h,UseFIPS:h,Endpoint:{required:b,type:c}},rules:[{conditions:[{[r]:"aws.partition",[s]:[{[t]:"Region"}],assign:d}],type:e,rules:[{conditions:[{[r]:"isSet",[s]:o},{[r]:"parseURL",[s]:o,assign:"url"}],type:e,rules:[{conditions:p,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:f},{type:e,rules:[{conditions:q,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:f},{endpoint:{url:i,properties:l,headers:l},type:g}]}]},{conditions:[j,k],type:e,rules:[{conditions:[m,n],type:e,rules:[{endpoint:{url:"https://messaging-chime-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:g}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:f}]},{conditions:p,type:e,rules:[{conditions:[m],type:e,rules:[{type:e,rules:[{endpoint:{url:"https://messaging-chime-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:g}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:f}]},{conditions:q,type:e,rules:[{conditions:[n],type:e,rules:[{endpoint:{url:"https://messaging-chime.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:g}]},{error:"DualStack is enabled but this partition does not support DualStack",type:f}]},{endpoint:{url:"https://messaging-chime.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:g}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-chime-sdk-voice/src/endpoint/ruleset.ts b/clients/client-chime-sdk-voice/src/endpoint/ruleset.ts index c18202ac8a67..5dc700e58740 100644 --- a/clients/client-chime-sdk-voice/src/endpoint/ruleset.ts +++ b/clients/client-chime-sdk-voice/src/endpoint/ruleset.ts @@ -6,26 +6,24 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; 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}]}]}; +const p="required", +q="fn", +r="argv", +s="ref"; +const a="PartitionResult", +b="tree", +c="error", +d="endpoint", +e={[p]:false,"type":"String"}, +f={[p]:true,"default":false,"type":"Boolean"}, +g={[s]:"Endpoint"}, +h={[q]:"booleanEquals",[r]:[{[s]:"UseFIPS"},true]}, +i={[q]:"booleanEquals",[r]:[{[s]:"UseDualStack"},true]}, +j={}, +k={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsFIPS"]}]}, +l={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsDualStack"]}]}, +m=[g], +n=[h], +o=[i]; +const _data={version:"1.0",parameters:{Region:e,UseDualStack:f,UseFIPS:f,Endpoint:e},rules:[{conditions:[{[q]:"aws.partition",[r]:[{[s]:"Region"}],assign:a}],type:b,rules:[{conditions:[{[q]:"isSet",[r]:m},{[q]:"parseURL",[r]:m,assign:"url"}],type:b,rules:[{conditions:n,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:c},{type:b,rules:[{conditions:o,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:c},{endpoint:{url:g,properties:j,headers:j},type:d}]}]},{conditions:[h,i],type:b,rules:[{conditions:[k,l],type:b,rules:[{endpoint:{url:"https://voice-chime-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:c}]},{conditions:n,type:b,rules:[{conditions:[k],type:b,rules:[{endpoint:{url:"https://voice-chime-fips.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]},{error:"FIPS is enabled but this partition does not support FIPS",type:c}]},{conditions:o,type:b,rules:[{conditions:[l],type:b,rules:[{endpoint:{url:"https://voice-chime.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"DualStack is enabled but this partition does not support DualStack",type:c}]},{endpoint:{url:"https://voice-chime.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-chime/src/endpoint/ruleset.ts b/clients/client-chime/src/endpoint/ruleset.ts index 9e7a9ae04c66..f9d2e4ebcf27 100644 --- a/clients/client-chime/src/endpoint/ruleset.ts +++ b/clients/client-chime/src/endpoint/ruleset.ts @@ -6,37 +6,34 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; 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}]}]}]}; +const y="required", +z="type", +A="fn", +B="argv", +C="ref"; +const a="PartitionResult", +b="tree", +c="error", +d="endpoint", +e="stringEquals", +f="getAttr", +g={[y]:false,[z]:"String"}, +h={[y]:true,"default":false,[z]:"Boolean"}, +i={[C]:"Region"}, +j={[C]:"Endpoint"}, +k={}, +l={[C]:a}, +m={"authSchemes":[{"name":"sigv4","signingName":"chime","signingRegion":"us-east-1"}]}, +n={[c]:"FIPS and DualStack are enabled, but this partition does not support one or both",[z]:c}, +o={[c]:"FIPS is enabled but this partition does not support FIPS",[z]:c}, +p={[c]:"DualStack is enabled but this partition does not support DualStack",[z]:c}, +q={"url":"https://chime.us-east-1.amazonaws.com","properties":m,"headers":{}}, +r=[j], +s=[{[A]:"booleanEquals",[B]:[{[C]:"UseFIPS"},true]}], +t=[{[A]:"booleanEquals",[B]:[{[C]:"UseDualStack"},true]}], +u=[{[A]:"booleanEquals",[B]:[{[C]:"UseFIPS"},true]},{[A]:"booleanEquals",[B]:[{[C]:"UseDualStack"},true]}], +v=[{[A]:"booleanEquals",[B]:[true,{[A]:f,[B]:[l,"supportsFIPS"]}]},{[A]:"booleanEquals",[B]:[true,{[A]:f,[B]:[l,"supportsDualStack"]}]}], +w=[{[A]:"booleanEquals",[B]:[true,{[A]:f,[B]:[l,"supportsFIPS"]}]}], +x=[{[A]:"booleanEquals",[B]:[true,{[A]:f,[B]:[l,"supportsDualStack"]}]}]; +const _data={version:"1.0",parameters:{Region:g,UseDualStack:h,UseFIPS:h,Endpoint:g},rules:[{conditions:[{[A]:"aws.partition",[B]:[i],assign:a}],[z]:b,rules:[{conditions:[{[A]:"isSet",[B]:r},{[A]:"parseURL",[B]:r,assign:"url"}],[z]:b,rules:[{conditions:s,error:"Invalid Configuration: FIPS and custom endpoint are not supported",[z]:c},{[z]:b,rules:[{conditions:t,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",[z]:c},{endpoint:{url:j,properties:k,headers:k},[z]:d}]}]},{conditions:[{[A]:e,[B]:[{[A]:f,[B]:[l,"name"]},"aws"]}],[z]:b,rules:[{conditions:u,[z]:b,rules:[{conditions:v,[z]:b,rules:[{endpoint:{url:"https://chime-fips.{Region}.api.aws",properties:m,headers:k},[z]:d}]},n]},{conditions:s,[z]:b,rules:[{conditions:w,[z]:b,rules:[{endpoint:{url:"https://chime-fips.{Region}.amazonaws.com",properties:m,headers:k},[z]:d}]},o]},{conditions:t,[z]:b,rules:[{conditions:x,[z]:b,rules:[{endpoint:{url:"https://chime.{Region}.api.aws",properties:m,headers:k},[z]:d}]},p]},{endpoint:q,[z]:d}]},{conditions:u,[z]:b,rules:[{conditions:v,[z]:b,rules:[{endpoint:{url:"https://chime-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:k,headers:k},[z]:d}]},n]},{conditions:s,[z]:b,rules:[{conditions:w,[z]:b,rules:[{[z]:b,rules:[{endpoint:{url:"https://chime-fips.{Region}.{PartitionResult#dnsSuffix}",properties:k,headers:k},[z]:d}]}]},o]},{conditions:t,[z]:b,rules:[{conditions:x,[z]:b,rules:[{endpoint:{url:"https://chime.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:k,headers:k},[z]:d}]},p]},{[z]:b,rules:[{conditions:[{[A]:e,[B]:[i,"aws-global"]}],endpoint:q,[z]:d},{endpoint:{url:"https://chime.{Region}.{PartitionResult#dnsSuffix}",properties:k,headers:k},[z]:d}]}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-cloud9/src/endpoint/ruleset.ts b/clients/client-cloud9/src/endpoint/ruleset.ts index 87580ffc302c..a8d4ced09353 100644 --- a/clients/client-cloud9/src/endpoint/ruleset.ts +++ b/clients/client-cloud9/src/endpoint/ruleset.ts @@ -6,26 +6,24 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; 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}]}]}; +const p="required", +q="fn", +r="argv", +s="ref"; +const a="PartitionResult", +b="tree", +c="error", +d="endpoint", +e={[p]:false,"type":"String"}, +f={[p]:true,"default":false,"type":"Boolean"}, +g={[s]:"Endpoint"}, +h={[q]:"booleanEquals",[r]:[{[s]:"UseFIPS"},true]}, +i={[q]:"booleanEquals",[r]:[{[s]:"UseDualStack"},true]}, +j={}, +k={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsFIPS"]}]}, +l={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsDualStack"]}]}, +m=[g], +n=[h], +o=[i]; +const _data={version:"1.0",parameters:{Region:e,UseDualStack:f,UseFIPS:f,Endpoint:e},rules:[{conditions:[{[q]:"aws.partition",[r]:[{[s]:"Region"}],assign:a}],type:b,rules:[{conditions:[{[q]:"isSet",[r]:m},{[q]:"parseURL",[r]:m,assign:"url"}],type:b,rules:[{conditions:n,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:c},{type:b,rules:[{conditions:o,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:c},{endpoint:{url:g,properties:j,headers:j},type:d}]}]},{conditions:[h,i],type:b,rules:[{conditions:[k,l],type:b,rules:[{endpoint:{url:"https://cloud9-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:c}]},{conditions:n,type:b,rules:[{conditions:[k],type:b,rules:[{type:b,rules:[{endpoint:{url:"https://cloud9-fips.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:c}]},{conditions:o,type:b,rules:[{conditions:[l],type:b,rules:[{endpoint:{url:"https://cloud9.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"DualStack is enabled but this partition does not support DualStack",type:c}]},{endpoint:{url:"https://cloud9.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-cloudcontrol/src/endpoint/ruleset.ts b/clients/client-cloudcontrol/src/endpoint/ruleset.ts index e0352d1b8dce..f1a43971784e 100644 --- a/clients/client-cloudcontrol/src/endpoint/ruleset.ts +++ b/clients/client-cloudcontrol/src/endpoint/ruleset.ts @@ -6,26 +6,24 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; 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}]}]}; +const p="required", +q="fn", +r="argv", +s="ref"; +const a="PartitionResult", +b="tree", +c="error", +d="endpoint", +e={[p]:false,"type":"String"}, +f={[p]:true,"default":false,"type":"Boolean"}, +g={[s]:"Endpoint"}, +h={[q]:"booleanEquals",[r]:[{[s]:"UseFIPS"},true]}, +i={[q]:"booleanEquals",[r]:[{[s]:"UseDualStack"},true]}, +j={}, +k={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsFIPS"]}]}, +l={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsDualStack"]}]}, +m=[g], +n=[h], +o=[i]; +const _data={version:"1.0",parameters:{Region:e,UseDualStack:f,UseFIPS:f,Endpoint:e},rules:[{conditions:[{[q]:"aws.partition",[r]:[{[s]:"Region"}],assign:a}],type:b,rules:[{conditions:[{[q]:"isSet",[r]:m},{[q]:"parseURL",[r]:m,assign:"url"}],type:b,rules:[{conditions:n,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:c},{type:b,rules:[{conditions:o,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:c},{endpoint:{url:g,properties:j,headers:j},type:d}]}]},{conditions:[h,i],type:b,rules:[{conditions:[k,l],type:b,rules:[{endpoint:{url:"https://cloudcontrolapi-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:c}]},{conditions:n,type:b,rules:[{conditions:[k],type:b,rules:[{type:b,rules:[{endpoint:{url:"https://cloudcontrolapi-fips.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:c}]},{conditions:o,type:b,rules:[{conditions:[l],type:b,rules:[{endpoint:{url:"https://cloudcontrolapi.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"DualStack is enabled but this partition does not support DualStack",type:c}]},{endpoint:{url:"https://cloudcontrolapi.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-clouddirectory/src/endpoint/ruleset.ts b/clients/client-clouddirectory/src/endpoint/ruleset.ts index 33f06fe04f39..3bf8383c67b9 100644 --- a/clients/client-clouddirectory/src/endpoint/ruleset.ts +++ b/clients/client-clouddirectory/src/endpoint/ruleset.ts @@ -6,26 +6,24 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; 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}]}]}; +const p="required", +q="fn", +r="argv", +s="ref"; +const a="PartitionResult", +b="tree", +c="error", +d="endpoint", +e={[p]:false,"type":"String"}, +f={[p]:true,"default":false,"type":"Boolean"}, +g={[s]:"Endpoint"}, +h={[q]:"booleanEquals",[r]:[{[s]:"UseFIPS"},true]}, +i={[q]:"booleanEquals",[r]:[{[s]:"UseDualStack"},true]}, +j={}, +k={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsFIPS"]}]}, +l={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsDualStack"]}]}, +m=[g], +n=[h], +o=[i]; +const _data={version:"1.0",parameters:{Region:e,UseDualStack:f,UseFIPS:f,Endpoint:e},rules:[{conditions:[{[q]:"aws.partition",[r]:[{[s]:"Region"}],assign:a}],type:b,rules:[{conditions:[{[q]:"isSet",[r]:m},{[q]:"parseURL",[r]:m,assign:"url"}],type:b,rules:[{conditions:n,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:c},{type:b,rules:[{conditions:o,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:c},{endpoint:{url:g,properties:j,headers:j},type:d}]}]},{conditions:[h,i],type:b,rules:[{conditions:[k,l],type:b,rules:[{endpoint:{url:"https://clouddirectory-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:c}]},{conditions:n,type:b,rules:[{conditions:[k],type:b,rules:[{type:b,rules:[{endpoint:{url:"https://clouddirectory-fips.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:c}]},{conditions:o,type:b,rules:[{conditions:[l],type:b,rules:[{endpoint:{url:"https://clouddirectory.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"DualStack is enabled but this partition does not support DualStack",type:c}]},{endpoint:{url:"https://clouddirectory.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-cloudformation/src/endpoint/ruleset.ts b/clients/client-cloudformation/src/endpoint/ruleset.ts index ecf5329099c2..7a739f8ec865 100644 --- a/clients/client-cloudformation/src/endpoint/ruleset.ts +++ b/clients/client-cloudformation/src/endpoint/ruleset.ts @@ -6,26 +6,24 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; 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}]}]}; +const p="required", +q="fn", +r="argv", +s="ref"; +const a="PartitionResult", +b="tree", +c="error", +d="endpoint", +e={[p]:false,"type":"String"}, +f={[p]:true,"default":false,"type":"Boolean"}, +g={[s]:"Endpoint"}, +h={[q]:"booleanEquals",[r]:[{[s]:"UseFIPS"},true]}, +i={[q]:"booleanEquals",[r]:[{[s]:"UseDualStack"},true]}, +j={}, +k={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsFIPS"]}]}, +l={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsDualStack"]}]}, +m=[g], +n=[h], +o=[i]; +const _data={version:"1.0",parameters:{Region:e,UseDualStack:f,UseFIPS:f,Endpoint:e},rules:[{conditions:[{[q]:"aws.partition",[r]:[{[s]:"Region"}],assign:a}],type:b,rules:[{conditions:[{[q]:"isSet",[r]:m},{[q]:"parseURL",[r]:m,assign:"url"}],type:b,rules:[{conditions:n,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:c},{type:b,rules:[{conditions:o,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:c},{endpoint:{url:g,properties:j,headers:j},type:d}]}]},{conditions:[h,i],type:b,rules:[{conditions:[k,l],type:b,rules:[{endpoint:{url:"https://cloudformation-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:c}]},{conditions:n,type:b,rules:[{conditions:[k],type:b,rules:[{type:b,rules:[{endpoint:{url:"https://cloudformation-fips.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:c}]},{conditions:o,type:b,rules:[{conditions:[l],type:b,rules:[{endpoint:{url:"https://cloudformation.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"DualStack is enabled but this partition does not support DualStack",type:c}]},{endpoint:{url:"https://cloudformation.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-cloudfront/src/endpoint/ruleset.ts b/clients/client-cloudfront/src/endpoint/ruleset.ts index 03bd956f0f18..1edf6336b0b7 100644 --- a/clients/client-cloudfront/src/endpoint/ruleset.ts +++ b/clients/client-cloudfront/src/endpoint/ruleset.ts @@ -6,42 +6,40 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; 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="type", +B="fn", +C="argv", +D="ref", +E="properties", +F="headers", +G="authSchemes", +H="signingRegion", +I="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"}, +d="PartitionResult", +e="tree", +f="error", +g="endpoint", +h="stringEquals", +i={"required":true,"default":false,[A]:"Boolean"}, +j={[D]:"Region"}, +k={[D]:"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}]}]}]}; +m={[B]:"getAttr",[C]:[{[D]:d},"name"]}, +n={[G]:[{"name":"sigv4",[H]:"us-east-1",[I]:"cloudfront"}]}, +o={[f]:"FIPS and DualStack are enabled, but this partition does not support one or both",[A]:f}, +p={[f]:"FIPS is enabled but this partition does not support FIPS",[A]:f}, +q={[f]:"DualStack is enabled but this partition does not support DualStack",[A]:f}, +r={"url":"https://cloudfront.amazonaws.com",[E]:n,[F]:{}}, +s={[G]:[{"name":"sigv4",[H]:"cn-northwest-1",[I]:"cloudfront"}]}, +t={"url":"https://cloudfront.cn-northwest-1.amazonaws.com.cn",[E]:s,[F]:{}}, +u=[{[B]:"booleanEquals",[C]:[{[D]:"UseFIPS"},true]}], +v=[{[B]:"booleanEquals",[C]:[{[D]:"UseDualStack"},true]}], +w=[{[B]:"booleanEquals",[C]:[{[D]:"UseFIPS"},true]},{[B]:"booleanEquals",[C]:[{[D]:"UseDualStack"},true]}], +x=[{[B]:"booleanEquals",[C]:[true,{[B]:"getAttr",[C]:[{[D]:d},"supportsFIPS"]}]},{[B]:"booleanEquals",[C]:[true,{[B]:"getAttr",[C]:[{[D]:d},"supportsDualStack"]}]}], +y=[{[B]:"booleanEquals",[C]:[true,{[B]:"getAttr",[C]:[{[D]:d},"supportsFIPS"]}]}], +z=[{[B]:"booleanEquals",[C]:[true,{[B]:"getAttr",[C]:[{[D]:d},"supportsDualStack"]}]}]; +const _data={version:"1.0",parameters:{Region:{required:a,[A]:c},UseDualStack:i,UseFIPS:i,Endpoint:{required:b,[A]:c}},rules:[{conditions:[{[B]:"aws.partition",[C]:[j],assign:d}],[A]:e,rules:[{conditions:[{[B]:"isSet",[C]:[k]}],[A]:e,rules:[{conditions:u,error:"Invalid Configuration: FIPS and custom endpoint are not supported",[A]:f},{[A]:e,rules:[{conditions:v,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",[A]:f},{endpoint:{url:k,[E]:l,[F]:l},[A]:g}]}]},{conditions:[{[B]:h,[C]:[m,"aws"]}],[A]:e,rules:[{conditions:w,[A]:e,rules:[{conditions:x,[A]:e,rules:[{endpoint:{url:"https://cloudfront-fips.{Region}.api.aws",[E]:n,[F]:l},[A]:g}]},o]},{conditions:u,[A]:e,rules:[{conditions:y,[A]:e,rules:[{endpoint:{url:"https://cloudfront-fips.{Region}.amazonaws.com",[E]:n,[F]:l},[A]:g}]},p]},{conditions:v,[A]:e,rules:[{conditions:z,[A]:e,rules:[{endpoint:{url:"https://cloudfront.{Region}.api.aws",[E]:n,[F]:l},[A]:g}]},q]},{endpoint:r,[A]:g}]},{conditions:[{[B]:h,[C]:[m,"aws-cn"]}],[A]:e,rules:[{conditions:w,[A]:e,rules:[{conditions:x,[A]:e,rules:[{endpoint:{url:"https://cloudfront-fips.{Region}.api.amazonwebservices.com.cn",[E]:s,[F]:l},[A]:g}]},o]},{conditions:u,[A]:e,rules:[{conditions:y,[A]:e,rules:[{endpoint:{url:"https://cloudfront-fips.{Region}.amazonaws.com.cn",[E]:s,[F]:l},[A]:g}]},p]},{conditions:v,[A]:e,rules:[{conditions:z,[A]:e,rules:[{endpoint:{url:"https://cloudfront.{Region}.api.amazonwebservices.com.cn",[E]:s,[F]:l},[A]:g}]},q]},{endpoint:t,[A]:g}]},{conditions:w,[A]:e,rules:[{conditions:x,[A]:e,rules:[{endpoint:{url:"https://cloudfront-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",[E]:l,[F]:l},[A]:g}]},o]},{conditions:u,[A]:e,rules:[{conditions:y,[A]:e,rules:[{[A]:e,rules:[{endpoint:{url:"https://cloudfront-fips.{Region}.{PartitionResult#dnsSuffix}",[E]:l,[F]:l},[A]:g}]}]},p]},{conditions:v,[A]:e,rules:[{conditions:z,[A]:e,rules:[{endpoint:{url:"https://cloudfront.{Region}.{PartitionResult#dualStackDnsSuffix}",[E]:l,[F]:l},[A]:g}]},q]},{[A]:e,rules:[{conditions:[{[B]:h,[C]:[j,"aws-global"]}],endpoint:r,[A]:g},{conditions:[{[B]:h,[C]:[j,"aws-cn-global"]}],endpoint:t,[A]:g},{endpoint:{url:"https://cloudfront.{Region}.{PartitionResult#dnsSuffix}",[E]:l,[F]:l},[A]:g}]}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-cloudhsm-v2/src/endpoint/ruleset.ts b/clients/client-cloudhsm-v2/src/endpoint/ruleset.ts index ea6fd34b85e8..31c803377c36 100644 --- a/clients/client-cloudhsm-v2/src/endpoint/ruleset.ts +++ b/clients/client-cloudhsm-v2/src/endpoint/ruleset.ts @@ -6,26 +6,24 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; 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}]}]}; +const p="required", +q="fn", +r="argv", +s="ref"; +const a="PartitionResult", +b="tree", +c="error", +d="endpoint", +e={[p]:false,"type":"String"}, +f={[p]:true,"default":false,"type":"Boolean"}, +g={[s]:"Endpoint"}, +h={[q]:"booleanEquals",[r]:[{[s]:"UseFIPS"},true]}, +i={[q]:"booleanEquals",[r]:[{[s]:"UseDualStack"},true]}, +j={}, +k={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsFIPS"]}]}, +l={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsDualStack"]}]}, +m=[g], +n=[h], +o=[i]; +const _data={version:"1.0",parameters:{Region:e,UseDualStack:f,UseFIPS:f,Endpoint:e},rules:[{conditions:[{[q]:"aws.partition",[r]:[{[s]:"Region"}],assign:a}],type:b,rules:[{conditions:[{[q]:"isSet",[r]:m},{[q]:"parseURL",[r]:m,assign:"url"}],type:b,rules:[{conditions:n,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:c},{type:b,rules:[{conditions:o,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:c},{endpoint:{url:g,properties:j,headers:j},type:d}]}]},{conditions:[h,i],type:b,rules:[{conditions:[k,l],type:b,rules:[{endpoint:{url:"https://cloudhsmv2-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:c}]},{conditions:n,type:b,rules:[{conditions:[k],type:b,rules:[{type:b,rules:[{endpoint:{url:"https://cloudhsmv2-fips.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:c}]},{conditions:o,type:b,rules:[{conditions:[l],type:b,rules:[{endpoint:{url:"https://cloudhsmv2.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"DualStack is enabled but this partition does not support DualStack",type:c}]},{endpoint:{url:"https://cloudhsmv2.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-cloudhsm/src/endpoint/ruleset.ts b/clients/client-cloudhsm/src/endpoint/ruleset.ts index 6d7d01b4993c..a0666c060256 100644 --- a/clients/client-cloudhsm/src/endpoint/ruleset.ts +++ b/clients/client-cloudhsm/src/endpoint/ruleset.ts @@ -6,26 +6,24 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; 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}]}]}; +const p="required", +q="fn", +r="argv", +s="ref"; +const a="PartitionResult", +b="tree", +c="error", +d="endpoint", +e={[p]:false,"type":"String"}, +f={[p]:true,"default":false,"type":"Boolean"}, +g={[s]:"Endpoint"}, +h={[q]:"booleanEquals",[r]:[{[s]:"UseFIPS"},true]}, +i={[q]:"booleanEquals",[r]:[{[s]:"UseDualStack"},true]}, +j={}, +k={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsFIPS"]}]}, +l={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsDualStack"]}]}, +m=[g], +n=[h], +o=[i]; +const _data={version:"1.0",parameters:{Region:e,UseDualStack:f,UseFIPS:f,Endpoint:e},rules:[{conditions:[{[q]:"aws.partition",[r]:[{[s]:"Region"}],assign:a}],type:b,rules:[{conditions:[{[q]:"isSet",[r]:m},{[q]:"parseURL",[r]:m,assign:"url"}],type:b,rules:[{conditions:n,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:c},{type:b,rules:[{conditions:o,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:c},{endpoint:{url:g,properties:j,headers:j},type:d}]}]},{conditions:[h,i],type:b,rules:[{conditions:[k,l],type:b,rules:[{endpoint:{url:"https://cloudhsm-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:c}]},{conditions:n,type:b,rules:[{conditions:[k],type:b,rules:[{type:b,rules:[{endpoint:{url:"https://cloudhsm-fips.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:c}]},{conditions:o,type:b,rules:[{conditions:[l],type:b,rules:[{endpoint:{url:"https://cloudhsm.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"DualStack is enabled but this partition does not support DualStack",type:c}]},{endpoint:{url:"https://cloudhsm.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-cloudsearch-domain/src/endpoint/ruleset.ts b/clients/client-cloudsearch-domain/src/endpoint/ruleset.ts index df735da75431..7177e7bd9b9a 100644 --- a/clients/client-cloudsearch-domain/src/endpoint/ruleset.ts +++ b/clients/client-cloudsearch-domain/src/endpoint/ruleset.ts @@ -6,26 +6,24 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; 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}]}]}; +const p="required", +q="fn", +r="argv", +s="ref"; +const a="PartitionResult", +b="tree", +c="error", +d="endpoint", +e={[p]:false,"type":"String"}, +f={[p]:true,"default":false,"type":"Boolean"}, +g={[s]:"Endpoint"}, +h={[q]:"booleanEquals",[r]:[{[s]:"UseFIPS"},true]}, +i={[q]:"booleanEquals",[r]:[{[s]:"UseDualStack"},true]}, +j={}, +k={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsFIPS"]}]}, +l={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsDualStack"]}]}, +m=[g], +n=[h], +o=[i]; +const _data={version:"1.0",parameters:{Region:e,UseDualStack:f,UseFIPS:f,Endpoint:e},rules:[{conditions:[{[q]:"aws.partition",[r]:[{[s]:"Region"}],assign:a}],type:b,rules:[{conditions:[{[q]:"isSet",[r]:m},{[q]:"parseURL",[r]:m,assign:"url"}],type:b,rules:[{conditions:n,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:c},{type:b,rules:[{conditions:o,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:c},{endpoint:{url:g,properties:j,headers:j},type:d}]}]},{conditions:[h,i],type:b,rules:[{conditions:[k,l],type:b,rules:[{endpoint:{url:"https://cloudsearchdomain-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:c}]},{conditions:n,type:b,rules:[{conditions:[k],type:b,rules:[{endpoint:{url:"https://cloudsearchdomain-fips.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]},{error:"FIPS is enabled but this partition does not support FIPS",type:c}]},{conditions:o,type:b,rules:[{conditions:[l],type:b,rules:[{endpoint:{url:"https://cloudsearchdomain.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"DualStack is enabled but this partition does not support DualStack",type:c}]},{endpoint:{url:"https://cloudsearchdomain.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-cloudsearch/src/endpoint/ruleset.ts b/clients/client-cloudsearch/src/endpoint/ruleset.ts index c8e2ecbeb3ed..df06775a104d 100644 --- a/clients/client-cloudsearch/src/endpoint/ruleset.ts +++ b/clients/client-cloudsearch/src/endpoint/ruleset.ts @@ -6,26 +6,24 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; 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}]}]}; +const p="required", +q="fn", +r="argv", +s="ref"; +const a="PartitionResult", +b="tree", +c="error", +d="endpoint", +e={[p]:false,"type":"String"}, +f={[p]:true,"default":false,"type":"Boolean"}, +g={[s]:"Endpoint"}, +h={[q]:"booleanEquals",[r]:[{[s]:"UseFIPS"},true]}, +i={[q]:"booleanEquals",[r]:[{[s]:"UseDualStack"},true]}, +j={}, +k={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsFIPS"]}]}, +l={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsDualStack"]}]}, +m=[g], +n=[h], +o=[i]; +const _data={version:"1.0",parameters:{Region:e,UseDualStack:f,UseFIPS:f,Endpoint:e},rules:[{conditions:[{[q]:"aws.partition",[r]:[{[s]:"Region"}],assign:a}],type:b,rules:[{conditions:[{[q]:"isSet",[r]:m},{[q]:"parseURL",[r]:m,assign:"url"}],type:b,rules:[{conditions:n,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:c},{type:b,rules:[{conditions:o,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:c},{endpoint:{url:g,properties:j,headers:j},type:d}]}]},{conditions:[h,i],type:b,rules:[{conditions:[k,l],type:b,rules:[{endpoint:{url:"https://cloudsearch-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:c}]},{conditions:n,type:b,rules:[{conditions:[k],type:b,rules:[{type:b,rules:[{endpoint:{url:"https://cloudsearch-fips.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:c}]},{conditions:o,type:b,rules:[{conditions:[l],type:b,rules:[{endpoint:{url:"https://cloudsearch.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"DualStack is enabled but this partition does not support DualStack",type:c}]},{endpoint:{url:"https://cloudsearch.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-cloudtrail/src/endpoint/ruleset.ts b/clients/client-cloudtrail/src/endpoint/ruleset.ts index 266b815279d4..249d48fde73b 100644 --- a/clients/client-cloudtrail/src/endpoint/ruleset.ts +++ b/clients/client-cloudtrail/src/endpoint/ruleset.ts @@ -6,27 +6,26 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; or see "smithy.rules#endpointRuleSet" in codegen/sdk-codegen/aws-models/cloudtrail.json */ -const t="fn", -u="argv", -v="ref"; +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="stringEquals", -j={[v]:"Region"}, -k={[v]:"Endpoint"}, -l={[t]:"booleanEquals",[u]:[{[v]:"UseFIPS"},true]}, -m={[t]:"booleanEquals",[u]:[{[v]:"UseDualStack"},true]}, +d="PartitionResult", +e="tree", +f="error", +g="endpoint", +h="stringEquals", +i={"required":true,"default":false,"type":"Boolean"}, +j={[u]:"Region"}, +k={[u]:"Endpoint"}, +l={[s]:"booleanEquals",[t]:[{[u]:"UseFIPS"},true]}, +m={[s]:"booleanEquals",[t]:[{[u]:"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"]}]}, +o={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:d},"supportsFIPS"]}]}, +p={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:d},"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}]}]}; +r=[m]; +const _data={version:"1.0",parameters:{Region:{required:a,type:c},UseDualStack:i,UseFIPS:i,Endpoint:{required:b,type:c}},rules:[{conditions:[{[s]:"aws.partition",[t]:[j],assign:d}],type:e,rules:[{conditions:[{[s]:"isSet",[t]:[k]}],type:e,rules:[{conditions:q,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:f},{type:e,rules:[{conditions:r,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:f},{endpoint:{url:k,properties:n,headers:n},type:g}]}]},{conditions:[l,m],type:e,rules:[{conditions:[o,p],type:e,rules:[{endpoint:{url:"https://cloudtrail-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:n,headers:n},type:g}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:f}]},{conditions:q,type:e,rules:[{conditions:[o],type:e,rules:[{type:e,rules:[{conditions:[{[s]:h,[t]:[j,"us-gov-east-1"]}],endpoint:{url:"https://cloudtrail.us-gov-east-1.amazonaws.com",properties:n,headers:n},type:g},{conditions:[{[s]:h,[t]:[j,"us-gov-west-1"]}],endpoint:{url:"https://cloudtrail.us-gov-west-1.amazonaws.com",properties:n,headers:n},type:g},{endpoint:{url:"https://cloudtrail-fips.{Region}.{PartitionResult#dnsSuffix}",properties:n,headers:n},type:g}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:f}]},{conditions:r,type:e,rules:[{conditions:[p],type:e,rules:[{endpoint:{url:"https://cloudtrail.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:n,headers:n},type:g}]},{error:"DualStack is enabled but this partition does not support DualStack",type:f}]},{endpoint:{url:"https://cloudtrail.{Region}.{PartitionResult#dnsSuffix}",properties:n,headers:n},type:g}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-cloudwatch-events/src/endpoint/ruleset.ts b/clients/client-cloudwatch-events/src/endpoint/ruleset.ts index 0a1136619633..20a4b918d6a0 100644 --- a/clients/client-cloudwatch-events/src/endpoint/ruleset.ts +++ b/clients/client-cloudwatch-events/src/endpoint/ruleset.ts @@ -6,28 +6,26 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; 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}]}]}; +const r="required", +s="fn", +t="argv", +u="ref"; +const a="PartitionResult", +b="tree", +c="error", +d="endpoint", +e="stringEquals", +f={[r]:false,"type":"String"}, +g={[r]:true,"default":false,"type":"Boolean"}, +h={[u]:"Region"}, +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]:a},"supportsFIPS"]}]}, +n={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:a},"supportsDualStack"]}]}, +o=[i], +p=[j], +q=[k]; +const _data={version:"1.0",parameters:{Region:f,UseDualStack:g,UseFIPS:g,Endpoint:f},rules:[{conditions:[{[s]:"aws.partition",[t]:[h],assign:a}],type:b,rules:[{conditions:[{[s]:"isSet",[t]:o},{[s]:"parseURL",[t]:o,assign:"url"}],type:b,rules:[{conditions:p,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:c},{type:b,rules:[{conditions:q,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:c},{endpoint:{url:i,properties:l,headers:l},type:d}]}]},{conditions:[j,k],type:b,rules:[{conditions:[m,n],type:b,rules:[{endpoint:{url:"https://events-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:d}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:c}]},{conditions:p,type:b,rules:[{conditions:[m],type:b,rules:[{type:b,rules:[{conditions:[{[s]:e,[t]:[h,"us-gov-west-1"]}],endpoint:{url:"https://events.us-gov-west-1.amazonaws.com",properties:l,headers:l},type:d},{conditions:[{[s]:e,[t]:[h,"us-gov-east-1"]}],endpoint:{url:"https://events.us-gov-east-1.amazonaws.com",properties:l,headers:l},type:d},{endpoint:{url:"https://events-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:d}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:c}]},{conditions:q,type:b,rules:[{conditions:[n],type:b,rules:[{endpoint:{url:"https://events.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:d}]},{error:"DualStack is enabled but this partition does not support DualStack",type:c}]},{endpoint:{url:"https://events.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:d}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-cloudwatch-logs/src/endpoint/ruleset.ts b/clients/client-cloudwatch-logs/src/endpoint/ruleset.ts index d4a47e520c96..8997a9410187 100644 --- a/clients/client-cloudwatch-logs/src/endpoint/ruleset.ts +++ b/clients/client-cloudwatch-logs/src/endpoint/ruleset.ts @@ -6,27 +6,26 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; or see "smithy.rules#endpointRuleSet" in codegen/sdk-codegen/aws-models/cloudwatch-logs.json */ -const t="fn", -u="argv", -v="ref"; +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="stringEquals", -j={[v]:"Region"}, -k={[v]:"Endpoint"}, -l={[t]:"booleanEquals",[u]:[{[v]:"UseFIPS"},true]}, -m={[t]:"booleanEquals",[u]:[{[v]:"UseDualStack"},true]}, +d="PartitionResult", +e="tree", +f="error", +g="endpoint", +h="stringEquals", +i={"required":true,"default":false,"type":"Boolean"}, +j={[u]:"Region"}, +k={[u]:"Endpoint"}, +l={[s]:"booleanEquals",[t]:[{[u]:"UseFIPS"},true]}, +m={[s]:"booleanEquals",[t]:[{[u]:"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"]}]}, +o={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:d},"supportsFIPS"]}]}, +p={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:d},"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}]}]}; +r=[m]; +const _data={version:"1.0",parameters:{Region:{required:a,type:c},UseDualStack:i,UseFIPS:i,Endpoint:{required:b,type:c}},rules:[{conditions:[{[s]:"aws.partition",[t]:[j],assign:d}],type:e,rules:[{conditions:[{[s]:"isSet",[t]:[k]}],type:e,rules:[{conditions:q,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:f},{type:e,rules:[{conditions:r,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:f},{endpoint:{url:k,properties:n,headers:n},type:g}]}]},{conditions:[l,m],type:e,rules:[{conditions:[o,p],type:e,rules:[{endpoint:{url:"https://logs-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:n,headers:n},type:g}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:f}]},{conditions:q,type:e,rules:[{conditions:[o],type:e,rules:[{type:e,rules:[{conditions:[{[s]:h,[t]:[j,"us-gov-east-1"]}],endpoint:{url:"https://logs.us-gov-east-1.amazonaws.com",properties:n,headers:n},type:g},{conditions:[{[s]:h,[t]:[j,"us-gov-west-1"]}],endpoint:{url:"https://logs.us-gov-west-1.amazonaws.com",properties:n,headers:n},type:g},{endpoint:{url:"https://logs-fips.{Region}.{PartitionResult#dnsSuffix}",properties:n,headers:n},type:g}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:f}]},{conditions:r,type:e,rules:[{conditions:[p],type:e,rules:[{endpoint:{url:"https://logs.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:n,headers:n},type:g}]},{error:"DualStack is enabled but this partition does not support DualStack",type:f}]},{endpoint:{url:"https://logs.{Region}.{PartitionResult#dnsSuffix}",properties:n,headers:n},type:g}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-cloudwatch/src/endpoint/ruleset.ts b/clients/client-cloudwatch/src/endpoint/ruleset.ts index d61df1a03406..177ab1b061f0 100644 --- a/clients/client-cloudwatch/src/endpoint/ruleset.ts +++ b/clients/client-cloudwatch/src/endpoint/ruleset.ts @@ -6,28 +6,27 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; or see "smithy.rules#endpointRuleSet" in codegen/sdk-codegen/aws-models/cloudwatch.json */ -const u="fn", -v="argv", -w="ref"; +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="getAttr", -j={[w]:"Endpoint"}, -k={[u]:"booleanEquals",[v]:[{[w]:"UseFIPS"},true]}, -l={[u]:"booleanEquals",[v]:[{[w]:"UseDualStack"},true]}, +d="PartitionResult", +e="tree", +f="error", +g="endpoint", +h="getAttr", +i={"required":true,"default":false,"type":"Boolean"}, +j={[v]:"Endpoint"}, +k={[t]:"booleanEquals",[u]:[{[v]:"UseFIPS"},true]}, +l={[t]:"booleanEquals",[u]:[{[v]:"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"]}]}, +n={[t]:"booleanEquals",[u]:[true,{[t]:h,[u]:[{[v]:d},"supportsFIPS"]}]}, +o={[v]:d}, +p={[t]:"booleanEquals",[u]:[true,{[t]:h,[u]:[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}]}]}; +s=[l]; +const _data={version:"1.0",parameters:{Region:{required:a,type:c},UseDualStack:i,UseFIPS:i,Endpoint:{required:b,type:c}},rules:[{conditions:[{[t]:"aws.partition",[u]:[{[v]:"Region"}],assign:d}],type:e,rules:[{conditions:[{[t]:"isSet",[u]:[j]}],type:e,rules:[{conditions:r,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:f},{type:e,rules:[{conditions:s,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:f},{endpoint:{url:j,properties:m,headers:m},type:g}]}]},{conditions:[k,l],type:e,rules:[{conditions:[n,p],type:e,rules:[{endpoint:{url:"https://monitoring-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:m,headers:m},type:g}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:f}]},{conditions:r,type:e,rules:[{conditions:[n],type:e,rules:[{type:e,rules:[{conditions:[{[t]:"stringEquals",[u]:["aws-us-gov",{[t]:h,[u]:[o,"name"]}]}],endpoint:q,type:g},{endpoint:{url:"https://monitoring-fips.{Region}.{PartitionResult#dnsSuffix}",properties:m,headers:m},type:g}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:f}]},{conditions:s,type:e,rules:[{conditions:[p],type:e,rules:[{endpoint:{url:"https://monitoring.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:m,headers:m},type:g}]},{error:"DualStack is enabled but this partition does not support DualStack",type:f}]},{endpoint:q,type:g}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-codeartifact/src/endpoint/ruleset.ts b/clients/client-codeartifact/src/endpoint/ruleset.ts index 6e5c05bd02df..8ccd7c32b39e 100644 --- a/clients/client-codeartifact/src/endpoint/ruleset.ts +++ b/clients/client-codeartifact/src/endpoint/ruleset.ts @@ -6,26 +6,24 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; 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}]}]}; +const p="required", +q="fn", +r="argv", +s="ref"; +const a="PartitionResult", +b="tree", +c="error", +d="endpoint", +e={[p]:false,"type":"String"}, +f={[p]:true,"default":false,"type":"Boolean"}, +g={[s]:"Endpoint"}, +h={[q]:"booleanEquals",[r]:[{[s]:"UseFIPS"},true]}, +i={[q]:"booleanEquals",[r]:[{[s]:"UseDualStack"},true]}, +j={}, +k={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsFIPS"]}]}, +l={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsDualStack"]}]}, +m=[g], +n=[h], +o=[i]; +const _data={version:"1.0",parameters:{Region:e,UseDualStack:f,UseFIPS:f,Endpoint:e},rules:[{conditions:[{[q]:"aws.partition",[r]:[{[s]:"Region"}],assign:a}],type:b,rules:[{conditions:[{[q]:"isSet",[r]:m},{[q]:"parseURL",[r]:m,assign:"url"}],type:b,rules:[{conditions:n,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:c},{type:b,rules:[{conditions:o,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:c},{endpoint:{url:g,properties:j,headers:j},type:d}]}]},{conditions:[h,i],type:b,rules:[{conditions:[k,l],type:b,rules:[{endpoint:{url:"https://codeartifact-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:c}]},{conditions:n,type:b,rules:[{conditions:[k],type:b,rules:[{type:b,rules:[{endpoint:{url:"https://codeartifact-fips.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:c}]},{conditions:o,type:b,rules:[{conditions:[l],type:b,rules:[{endpoint:{url:"https://codeartifact.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"DualStack is enabled but this partition does not support DualStack",type:c}]},{endpoint:{url:"https://codeartifact.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-codebuild/src/endpoint/ruleset.ts b/clients/client-codebuild/src/endpoint/ruleset.ts index afd4d0cbe5b1..16b6dea64bbc 100644 --- a/clients/client-codebuild/src/endpoint/ruleset.ts +++ b/clients/client-codebuild/src/endpoint/ruleset.ts @@ -6,26 +6,24 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; 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}]}]}; +const p="required", +q="fn", +r="argv", +s="ref"; +const a="PartitionResult", +b="tree", +c="error", +d="endpoint", +e={[p]:false,"type":"String"}, +f={[p]:true,"default":false,"type":"Boolean"}, +g={[s]:"Endpoint"}, +h={[q]:"booleanEquals",[r]:[{[s]:"UseFIPS"},true]}, +i={[q]:"booleanEquals",[r]:[{[s]:"UseDualStack"},true]}, +j={}, +k={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsFIPS"]}]}, +l={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsDualStack"]}]}, +m=[g], +n=[h], +o=[i]; +const _data={version:"1.0",parameters:{Region:e,UseDualStack:f,UseFIPS:f,Endpoint:e},rules:[{conditions:[{[q]:"aws.partition",[r]:[{[s]:"Region"}],assign:a}],type:b,rules:[{conditions:[{[q]:"isSet",[r]:m},{[q]:"parseURL",[r]:m,assign:"url"}],type:b,rules:[{conditions:n,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:c},{type:b,rules:[{conditions:o,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:c},{endpoint:{url:g,properties:j,headers:j},type:d}]}]},{conditions:[h,i],type:b,rules:[{conditions:[k,l],type:b,rules:[{endpoint:{url:"https://codebuild-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:c}]},{conditions:n,type:b,rules:[{conditions:[k],type:b,rules:[{type:b,rules:[{endpoint:{url:"https://codebuild-fips.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:c}]},{conditions:o,type:b,rules:[{conditions:[l],type:b,rules:[{endpoint:{url:"https://codebuild.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"DualStack is enabled but this partition does not support DualStack",type:c}]},{endpoint:{url:"https://codebuild.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-codecatalyst/src/endpoint/ruleset.ts b/clients/client-codecatalyst/src/endpoint/ruleset.ts index 1489003a21eb..d47b672c04c9 100644 --- a/clients/client-codecatalyst/src/endpoint/ruleset.ts +++ b/clients/client-codecatalyst/src/endpoint/ruleset.ts @@ -6,25 +6,24 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; 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 n="type", +o="conditions", +p="argv", +q="ref", +r="properties", +s="headers"; const a=true, b=false, -c="String", -d="tree", -e="isSet", -f="endpoint", -g="aws.partition", -h="PartitionResult", -i={[r]:"Endpoint"}, +c="tree", +d="isSet", +e="endpoint", +f="aws.partition", +g="PartitionResult", +h={"required":false,[n]:"String"}, +i={[q]:"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}]}]}; +k={"fn":d,[p]:[{[q]:"Region"}]}, +l=[{[q]:"Region"}], +m=[{[o]:[{"fn":"booleanEquals",[p]:[{[q]:"UseFIPS"},true]}],[n]:c,"rules":[{[o]:[{"fn":"booleanEquals",[p]:[{"fn":"getAttr",[p]:[{[q]:g},"supportsFIPS"]},false]}],"error":"Partition does not support FIPS.",[n]:"error"},{[e]:{"url":"https://codecatalyst-fips.global.{PartitionResult#dualStackDnsSuffix}",[r]:{},[s]:{}},[n]:e}]},{[e]:{"url":"https://codecatalyst.global.{PartitionResult#dualStackDnsSuffix}",[r]:{},[s]:{}},[n]:e}]; +const _data={version:"1.3",parameters:{UseFIPS:{required:a,default:b,[n]:"Boolean"},Region:h,Endpoint:h},rules:[{[n]:c,rules:[{[o]:[{fn:d,[p]:[i]}],endpoint:{url:i,[r]:j,[s]:j},[n]:e},{[o]:[{fn:"not",[p]:[k]},{fn:f,[p]:["us-west-2"],assign:g}],[n]:c,rules:m},{[o]:[k,{fn:f,[p]:l,assign:g}],[n]:c,rules:m}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-codecommit/src/endpoint/ruleset.ts b/clients/client-codecommit/src/endpoint/ruleset.ts index c3fe7a368c7e..d10eebe1a2a7 100644 --- a/clients/client-codecommit/src/endpoint/ruleset.ts +++ b/clients/client-codecommit/src/endpoint/ruleset.ts @@ -6,26 +6,24 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; 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}]}]}; +const p="required", +q="fn", +r="argv", +s="ref"; +const a="PartitionResult", +b="tree", +c="error", +d="endpoint", +e={[p]:false,"type":"String"}, +f={[p]:true,"default":false,"type":"Boolean"}, +g={[s]:"Endpoint"}, +h={[q]:"booleanEquals",[r]:[{[s]:"UseFIPS"},true]}, +i={[q]:"booleanEquals",[r]:[{[s]:"UseDualStack"},true]}, +j={}, +k={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsFIPS"]}]}, +l={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsDualStack"]}]}, +m=[g], +n=[h], +o=[i]; +const _data={version:"1.0",parameters:{Region:e,UseDualStack:f,UseFIPS:f,Endpoint:e},rules:[{conditions:[{[q]:"aws.partition",[r]:[{[s]:"Region"}],assign:a}],type:b,rules:[{conditions:[{[q]:"isSet",[r]:m},{[q]:"parseURL",[r]:m,assign:"url"}],type:b,rules:[{conditions:n,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:c},{type:b,rules:[{conditions:o,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:c},{endpoint:{url:g,properties:j,headers:j},type:d}]}]},{conditions:[h,i],type:b,rules:[{conditions:[k,l],type:b,rules:[{endpoint:{url:"https://codecommit-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:c}]},{conditions:n,type:b,rules:[{conditions:[k],type:b,rules:[{type:b,rules:[{endpoint:{url:"https://codecommit-fips.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:c}]},{conditions:o,type:b,rules:[{conditions:[l],type:b,rules:[{endpoint:{url:"https://codecommit.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"DualStack is enabled but this partition does not support DualStack",type:c}]},{endpoint:{url:"https://codecommit.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-codedeploy/src/endpoint/ruleset.ts b/clients/client-codedeploy/src/endpoint/ruleset.ts index e2fb231a0c1c..c74b0cb311e4 100644 --- a/clients/client-codedeploy/src/endpoint/ruleset.ts +++ b/clients/client-codedeploy/src/endpoint/ruleset.ts @@ -6,26 +6,24 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; 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}]}]}; +const p="required", +q="fn", +r="argv", +s="ref"; +const a="PartitionResult", +b="tree", +c="error", +d="endpoint", +e={[p]:false,"type":"String"}, +f={[p]:true,"default":false,"type":"Boolean"}, +g={[s]:"Endpoint"}, +h={[q]:"booleanEquals",[r]:[{[s]:"UseFIPS"},true]}, +i={[q]:"booleanEquals",[r]:[{[s]:"UseDualStack"},true]}, +j={}, +k={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsFIPS"]}]}, +l={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsDualStack"]}]}, +m=[g], +n=[h], +o=[i]; +const _data={version:"1.0",parameters:{Region:e,UseDualStack:f,UseFIPS:f,Endpoint:e},rules:[{conditions:[{[q]:"aws.partition",[r]:[{[s]:"Region"}],assign:a}],type:b,rules:[{conditions:[{[q]:"isSet",[r]:m},{[q]:"parseURL",[r]:m,assign:"url"}],type:b,rules:[{conditions:n,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:c},{type:b,rules:[{conditions:o,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:c},{endpoint:{url:g,properties:j,headers:j},type:d}]}]},{conditions:[h,i],type:b,rules:[{conditions:[k,l],type:b,rules:[{endpoint:{url:"https://codedeploy-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:c}]},{conditions:n,type:b,rules:[{conditions:[k],type:b,rules:[{type:b,rules:[{endpoint:{url:"https://codedeploy-fips.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:c}]},{conditions:o,type:b,rules:[{conditions:[l],type:b,rules:[{endpoint:{url:"https://codedeploy.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"DualStack is enabled but this partition does not support DualStack",type:c}]},{endpoint:{url:"https://codedeploy.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-codeguru-reviewer/src/endpoint/ruleset.ts b/clients/client-codeguru-reviewer/src/endpoint/ruleset.ts index d3b9299ca1b2..cfe7da27e295 100644 --- a/clients/client-codeguru-reviewer/src/endpoint/ruleset.ts +++ b/clients/client-codeguru-reviewer/src/endpoint/ruleset.ts @@ -6,26 +6,24 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; 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}]}]}; +const p="required", +q="fn", +r="argv", +s="ref"; +const a="PartitionResult", +b="tree", +c="error", +d="endpoint", +e={[p]:false,"type":"String"}, +f={[p]:true,"default":false,"type":"Boolean"}, +g={[s]:"Endpoint"}, +h={[q]:"booleanEquals",[r]:[{[s]:"UseFIPS"},true]}, +i={[q]:"booleanEquals",[r]:[{[s]:"UseDualStack"},true]}, +j={}, +k={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsFIPS"]}]}, +l={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsDualStack"]}]}, +m=[g], +n=[h], +o=[i]; +const _data={version:"1.0",parameters:{Region:e,UseDualStack:f,UseFIPS:f,Endpoint:e},rules:[{conditions:[{[q]:"aws.partition",[r]:[{[s]:"Region"}],assign:a}],type:b,rules:[{conditions:[{[q]:"isSet",[r]:m},{[q]:"parseURL",[r]:m,assign:"url"}],type:b,rules:[{conditions:n,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:c},{type:b,rules:[{conditions:o,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:c},{endpoint:{url:g,properties:j,headers:j},type:d}]}]},{conditions:[h,i],type:b,rules:[{conditions:[k,l],type:b,rules:[{endpoint:{url:"https://codeguru-reviewer-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:c}]},{conditions:n,type:b,rules:[{conditions:[k],type:b,rules:[{type:b,rules:[{endpoint:{url:"https://codeguru-reviewer-fips.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:c}]},{conditions:o,type:b,rules:[{conditions:[l],type:b,rules:[{endpoint:{url:"https://codeguru-reviewer.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"DualStack is enabled but this partition does not support DualStack",type:c}]},{endpoint:{url:"https://codeguru-reviewer.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-codeguruprofiler/src/endpoint/ruleset.ts b/clients/client-codeguruprofiler/src/endpoint/ruleset.ts index 888df3c88e8d..8decb9b43a98 100644 --- a/clients/client-codeguruprofiler/src/endpoint/ruleset.ts +++ b/clients/client-codeguruprofiler/src/endpoint/ruleset.ts @@ -6,26 +6,24 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; 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}]}]}; +const p="required", +q="fn", +r="argv", +s="ref"; +const a="PartitionResult", +b="tree", +c="error", +d="endpoint", +e={[p]:false,"type":"String"}, +f={[p]:true,"default":false,"type":"Boolean"}, +g={[s]:"Endpoint"}, +h={[q]:"booleanEquals",[r]:[{[s]:"UseFIPS"},true]}, +i={[q]:"booleanEquals",[r]:[{[s]:"UseDualStack"},true]}, +j={}, +k={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsFIPS"]}]}, +l={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsDualStack"]}]}, +m=[g], +n=[h], +o=[i]; +const _data={version:"1.0",parameters:{Region:e,UseDualStack:f,UseFIPS:f,Endpoint:e},rules:[{conditions:[{[q]:"aws.partition",[r]:[{[s]:"Region"}],assign:a}],type:b,rules:[{conditions:[{[q]:"isSet",[r]:m},{[q]:"parseURL",[r]:m,assign:"url"}],type:b,rules:[{conditions:n,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:c},{type:b,rules:[{conditions:o,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:c},{endpoint:{url:g,properties:j,headers:j},type:d}]}]},{conditions:[h,i],type:b,rules:[{conditions:[k,l],type:b,rules:[{endpoint:{url:"https://codeguru-profiler-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:c}]},{conditions:n,type:b,rules:[{conditions:[k],type:b,rules:[{endpoint:{url:"https://codeguru-profiler-fips.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]},{error:"FIPS is enabled but this partition does not support FIPS",type:c}]},{conditions:o,type:b,rules:[{conditions:[l],type:b,rules:[{endpoint:{url:"https://codeguru-profiler.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"DualStack is enabled but this partition does not support DualStack",type:c}]},{endpoint:{url:"https://codeguru-profiler.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-codepipeline/src/endpoint/ruleset.ts b/clients/client-codepipeline/src/endpoint/ruleset.ts index 54936f4ffd94..4619d8267d14 100644 --- a/clients/client-codepipeline/src/endpoint/ruleset.ts +++ b/clients/client-codepipeline/src/endpoint/ruleset.ts @@ -6,26 +6,24 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; 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}]}]}; +const p="required", +q="fn", +r="argv", +s="ref"; +const a="PartitionResult", +b="tree", +c="error", +d="endpoint", +e={[p]:false,"type":"String"}, +f={[p]:true,"default":false,"type":"Boolean"}, +g={[s]:"Endpoint"}, +h={[q]:"booleanEquals",[r]:[{[s]:"UseFIPS"},true]}, +i={[q]:"booleanEquals",[r]:[{[s]:"UseDualStack"},true]}, +j={}, +k={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsFIPS"]}]}, +l={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsDualStack"]}]}, +m=[g], +n=[h], +o=[i]; +const _data={version:"1.0",parameters:{Region:e,UseDualStack:f,UseFIPS:f,Endpoint:e},rules:[{conditions:[{[q]:"aws.partition",[r]:[{[s]:"Region"}],assign:a}],type:b,rules:[{conditions:[{[q]:"isSet",[r]:m},{[q]:"parseURL",[r]:m,assign:"url"}],type:b,rules:[{conditions:n,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:c},{type:b,rules:[{conditions:o,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:c},{endpoint:{url:g,properties:j,headers:j},type:d}]}]},{conditions:[h,i],type:b,rules:[{conditions:[k,l],type:b,rules:[{endpoint:{url:"https://codepipeline-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:c}]},{conditions:n,type:b,rules:[{conditions:[k],type:b,rules:[{type:b,rules:[{endpoint:{url:"https://codepipeline-fips.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:c}]},{conditions:o,type:b,rules:[{conditions:[l],type:b,rules:[{endpoint:{url:"https://codepipeline.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"DualStack is enabled but this partition does not support DualStack",type:c}]},{endpoint:{url:"https://codepipeline.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-codestar-connections/src/endpoint/ruleset.ts b/clients/client-codestar-connections/src/endpoint/ruleset.ts index 79fa6be51454..bad9306ca473 100644 --- a/clients/client-codestar-connections/src/endpoint/ruleset.ts +++ b/clients/client-codestar-connections/src/endpoint/ruleset.ts @@ -6,26 +6,24 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; 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}]}]}; +const p="required", +q="fn", +r="argv", +s="ref"; +const a="PartitionResult", +b="tree", +c="error", +d="endpoint", +e={[p]:false,"type":"String"}, +f={[p]:true,"default":false,"type":"Boolean"}, +g={[s]:"Endpoint"}, +h={[q]:"booleanEquals",[r]:[{[s]:"UseFIPS"},true]}, +i={[q]:"booleanEquals",[r]:[{[s]:"UseDualStack"},true]}, +j={}, +k={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsFIPS"]}]}, +l={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsDualStack"]}]}, +m=[g], +n=[h], +o=[i]; +const _data={version:"1.0",parameters:{Region:e,UseDualStack:f,UseFIPS:f,Endpoint:e},rules:[{conditions:[{[q]:"aws.partition",[r]:[{[s]:"Region"}],assign:a}],type:b,rules:[{conditions:[{[q]:"isSet",[r]:m},{[q]:"parseURL",[r]:m,assign:"url"}],type:b,rules:[{conditions:n,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:c},{type:b,rules:[{conditions:o,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:c},{endpoint:{url:g,properties:j,headers:j},type:d}]}]},{conditions:[h,i],type:b,rules:[{conditions:[k,l],type:b,rules:[{endpoint:{url:"https://codestar-connections-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:c}]},{conditions:n,type:b,rules:[{conditions:[k],type:b,rules:[{type:b,rules:[{endpoint:{url:"https://codestar-connections-fips.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:c}]},{conditions:o,type:b,rules:[{conditions:[l],type:b,rules:[{endpoint:{url:"https://codestar-connections.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"DualStack is enabled but this partition does not support DualStack",type:c}]},{endpoint:{url:"https://codestar-connections.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-codestar-notifications/src/endpoint/ruleset.ts b/clients/client-codestar-notifications/src/endpoint/ruleset.ts index 101bc980b771..56e54c75857b 100644 --- a/clients/client-codestar-notifications/src/endpoint/ruleset.ts +++ b/clients/client-codestar-notifications/src/endpoint/ruleset.ts @@ -6,26 +6,24 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; 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}]}]}; +const p="required", +q="fn", +r="argv", +s="ref"; +const a="PartitionResult", +b="tree", +c="error", +d="endpoint", +e={[p]:false,"type":"String"}, +f={[p]:true,"default":false,"type":"Boolean"}, +g={[s]:"Endpoint"}, +h={[q]:"booleanEquals",[r]:[{[s]:"UseFIPS"},true]}, +i={[q]:"booleanEquals",[r]:[{[s]:"UseDualStack"},true]}, +j={}, +k={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsFIPS"]}]}, +l={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsDualStack"]}]}, +m=[g], +n=[h], +o=[i]; +const _data={version:"1.0",parameters:{Region:e,UseDualStack:f,UseFIPS:f,Endpoint:e},rules:[{conditions:[{[q]:"aws.partition",[r]:[{[s]:"Region"}],assign:a}],type:b,rules:[{conditions:[{[q]:"isSet",[r]:m},{[q]:"parseURL",[r]:m,assign:"url"}],type:b,rules:[{conditions:n,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:c},{type:b,rules:[{conditions:o,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:c},{endpoint:{url:g,properties:j,headers:j},type:d}]}]},{conditions:[h,i],type:b,rules:[{conditions:[k,l],type:b,rules:[{endpoint:{url:"https://codestar-notifications-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:c}]},{conditions:n,type:b,rules:[{conditions:[k],type:b,rules:[{endpoint:{url:"https://codestar-notifications-fips.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]},{error:"FIPS is enabled but this partition does not support FIPS",type:c}]},{conditions:o,type:b,rules:[{conditions:[l],type:b,rules:[{endpoint:{url:"https://codestar-notifications.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"DualStack is enabled but this partition does not support DualStack",type:c}]},{endpoint:{url:"https://codestar-notifications.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-codestar/src/endpoint/ruleset.ts b/clients/client-codestar/src/endpoint/ruleset.ts index c37a42f22ca6..0fb26b733c02 100644 --- a/clients/client-codestar/src/endpoint/ruleset.ts +++ b/clients/client-codestar/src/endpoint/ruleset.ts @@ -6,26 +6,24 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; 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}]}]}; +const p="required", +q="fn", +r="argv", +s="ref"; +const a="PartitionResult", +b="tree", +c="error", +d="endpoint", +e={[p]:false,"type":"String"}, +f={[p]:true,"default":false,"type":"Boolean"}, +g={[s]:"Endpoint"}, +h={[q]:"booleanEquals",[r]:[{[s]:"UseFIPS"},true]}, +i={[q]:"booleanEquals",[r]:[{[s]:"UseDualStack"},true]}, +j={}, +k={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsFIPS"]}]}, +l={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsDualStack"]}]}, +m=[g], +n=[h], +o=[i]; +const _data={version:"1.0",parameters:{Region:e,UseDualStack:f,UseFIPS:f,Endpoint:e},rules:[{conditions:[{[q]:"aws.partition",[r]:[{[s]:"Region"}],assign:a}],type:b,rules:[{conditions:[{[q]:"isSet",[r]:m},{[q]:"parseURL",[r]:m,assign:"url"}],type:b,rules:[{conditions:n,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:c},{type:b,rules:[{conditions:o,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:c},{endpoint:{url:g,properties:j,headers:j},type:d}]}]},{conditions:[h,i],type:b,rules:[{conditions:[k,l],type:b,rules:[{endpoint:{url:"https://codestar-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:c}]},{conditions:n,type:b,rules:[{conditions:[k],type:b,rules:[{type:b,rules:[{endpoint:{url:"https://codestar-fips.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:c}]},{conditions:o,type:b,rules:[{conditions:[l],type:b,rules:[{endpoint:{url:"https://codestar.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"DualStack is enabled but this partition does not support DualStack",type:c}]},{endpoint:{url:"https://codestar.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-cognito-identity-provider/src/endpoint/ruleset.ts b/clients/client-cognito-identity-provider/src/endpoint/ruleset.ts index e8d1c5b7b01c..0f8df9b35478 100644 --- a/clients/client-cognito-identity-provider/src/endpoint/ruleset.ts +++ b/clients/client-cognito-identity-provider/src/endpoint/ruleset.ts @@ -6,26 +6,24 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; 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}]}]}; +const p="required", +q="fn", +r="argv", +s="ref"; +const a="PartitionResult", +b="tree", +c="error", +d="endpoint", +e={[p]:false,"type":"String"}, +f={[p]:true,"default":false,"type":"Boolean"}, +g={[s]:"Endpoint"}, +h={[q]:"booleanEquals",[r]:[{[s]:"UseFIPS"},true]}, +i={[q]:"booleanEquals",[r]:[{[s]:"UseDualStack"},true]}, +j={}, +k={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsFIPS"]}]}, +l={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsDualStack"]}]}, +m=[g], +n=[h], +o=[i]; +const _data={version:"1.0",parameters:{Region:e,UseDualStack:f,UseFIPS:f,Endpoint:e},rules:[{conditions:[{[q]:"aws.partition",[r]:[{[s]:"Region"}],assign:a}],type:b,rules:[{conditions:[{[q]:"isSet",[r]:m},{[q]:"parseURL",[r]:m,assign:"url"}],type:b,rules:[{conditions:n,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:c},{type:b,rules:[{conditions:o,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:c},{endpoint:{url:g,properties:j,headers:j},type:d}]}]},{conditions:[h,i],type:b,rules:[{conditions:[k,l],type:b,rules:[{endpoint:{url:"https://cognito-idp-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:c}]},{conditions:n,type:b,rules:[{conditions:[k],type:b,rules:[{type:b,rules:[{endpoint:{url:"https://cognito-idp-fips.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:c}]},{conditions:o,type:b,rules:[{conditions:[l],type:b,rules:[{endpoint:{url:"https://cognito-idp.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"DualStack is enabled but this partition does not support DualStack",type:c}]},{endpoint:{url:"https://cognito-idp.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-cognito-identity/src/endpoint/ruleset.ts b/clients/client-cognito-identity/src/endpoint/ruleset.ts index ad9fccb2e497..4981576d8ac5 100644 --- a/clients/client-cognito-identity/src/endpoint/ruleset.ts +++ b/clients/client-cognito-identity/src/endpoint/ruleset.ts @@ -6,26 +6,24 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; 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}]}]}; +const p="required", +q="fn", +r="argv", +s="ref"; +const a="PartitionResult", +b="tree", +c="error", +d="endpoint", +e={[p]:false,"type":"String"}, +f={[p]:true,"default":false,"type":"Boolean"}, +g={[s]:"Endpoint"}, +h={[q]:"booleanEquals",[r]:[{[s]:"UseFIPS"},true]}, +i={[q]:"booleanEquals",[r]:[{[s]:"UseDualStack"},true]}, +j={}, +k={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsFIPS"]}]}, +l={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsDualStack"]}]}, +m=[g], +n=[h], +o=[i]; +const _data={version:"1.0",parameters:{Region:e,UseDualStack:f,UseFIPS:f,Endpoint:e},rules:[{conditions:[{[q]:"aws.partition",[r]:[{[s]:"Region"}],assign:a}],type:b,rules:[{conditions:[{[q]:"isSet",[r]:m},{[q]:"parseURL",[r]:m,assign:"url"}],type:b,rules:[{conditions:n,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:c},{type:b,rules:[{conditions:o,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:c},{endpoint:{url:g,properties:j,headers:j},type:d}]}]},{conditions:[h,i],type:b,rules:[{conditions:[k,l],type:b,rules:[{endpoint:{url:"https://cognito-identity-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:c}]},{conditions:n,type:b,rules:[{conditions:[k],type:b,rules:[{type:b,rules:[{endpoint:{url:"https://cognito-identity-fips.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:c}]},{conditions:o,type:b,rules:[{conditions:[l],type:b,rules:[{endpoint:{url:"https://cognito-identity.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"DualStack is enabled but this partition does not support DualStack",type:c}]},{endpoint:{url:"https://cognito-identity.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-cognito-sync/src/endpoint/ruleset.ts b/clients/client-cognito-sync/src/endpoint/ruleset.ts index 8a2f3aea1c0e..ebe16e7c9f9b 100644 --- a/clients/client-cognito-sync/src/endpoint/ruleset.ts +++ b/clients/client-cognito-sync/src/endpoint/ruleset.ts @@ -6,26 +6,24 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; 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}]}]}; +const p="required", +q="fn", +r="argv", +s="ref"; +const a="PartitionResult", +b="tree", +c="error", +d="endpoint", +e={[p]:false,"type":"String"}, +f={[p]:true,"default":false,"type":"Boolean"}, +g={[s]:"Endpoint"}, +h={[q]:"booleanEquals",[r]:[{[s]:"UseFIPS"},true]}, +i={[q]:"booleanEquals",[r]:[{[s]:"UseDualStack"},true]}, +j={}, +k={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsFIPS"]}]}, +l={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsDualStack"]}]}, +m=[g], +n=[h], +o=[i]; +const _data={version:"1.0",parameters:{Region:e,UseDualStack:f,UseFIPS:f,Endpoint:e},rules:[{conditions:[{[q]:"aws.partition",[r]:[{[s]:"Region"}],assign:a}],type:b,rules:[{conditions:[{[q]:"isSet",[r]:m},{[q]:"parseURL",[r]:m,assign:"url"}],type:b,rules:[{conditions:n,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:c},{type:b,rules:[{conditions:o,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:c},{endpoint:{url:g,properties:j,headers:j},type:d}]}]},{conditions:[h,i],type:b,rules:[{conditions:[k,l],type:b,rules:[{endpoint:{url:"https://cognito-sync-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:c}]},{conditions:n,type:b,rules:[{conditions:[k],type:b,rules:[{type:b,rules:[{endpoint:{url:"https://cognito-sync-fips.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:c}]},{conditions:o,type:b,rules:[{conditions:[l],type:b,rules:[{endpoint:{url:"https://cognito-sync.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"DualStack is enabled but this partition does not support DualStack",type:c}]},{endpoint:{url:"https://cognito-sync.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-comprehend/src/endpoint/ruleset.ts b/clients/client-comprehend/src/endpoint/ruleset.ts index c0499e096ffa..69264eb0e236 100644 --- a/clients/client-comprehend/src/endpoint/ruleset.ts +++ b/clients/client-comprehend/src/endpoint/ruleset.ts @@ -6,26 +6,25 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; or see "smithy.rules#endpointRuleSet" in codegen/sdk-codegen/aws-models/comprehend.json */ -const s="fn", -t="argv", -u="ref"; +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={[u]:"Endpoint"}, -j={[s]:"booleanEquals",[t]:[{[u]:"UseFIPS"},true]}, -k={[s]:"booleanEquals",[t]:[{[u]:"UseDualStack"},true]}, +d="PartitionResult", +e="tree", +f="error", +g="endpoint", +h={"required":true,"default":false,"type":"Boolean"}, +i={[t]:"Endpoint"}, +j={[r]:"booleanEquals",[s]:[{[t]:"UseFIPS"},true]}, +k={[r]:"booleanEquals",[s]:[{[t]:"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"]}]}, +m={[r]:"booleanEquals",[s]:[true,{[r]:"getAttr",[s]:[{[t]:d},"supportsFIPS"]}]}, +n={[r]:"booleanEquals",[s]:[true,{[r]:"getAttr",[s]:[{[t]:d},"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}]}]}; +q=[k]; +const _data={version:"1.0",parameters:{Region:{required:a,type:c},UseDualStack:h,UseFIPS:h,Endpoint:{required:b,type:c}},rules:[{conditions:[{[r]:"aws.partition",[s]:[{[t]:"Region"}],assign:d}],type:e,rules:[{conditions:[{[r]:"isSet",[s]:o},{[r]:"parseURL",[s]:o,assign:"url"}],type:e,rules:[{conditions:p,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:f},{type:e,rules:[{conditions:q,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:f},{endpoint:{url:i,properties:l,headers:l},type:g}]}]},{conditions:[j,k],type:e,rules:[{conditions:[m,n],type:e,rules:[{endpoint:{url:"https://comprehend-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:g}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:f}]},{conditions:p,type:e,rules:[{conditions:[m],type:e,rules:[{type:e,rules:[{endpoint:{url:"https://comprehend-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:g}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:f}]},{conditions:q,type:e,rules:[{conditions:[n],type:e,rules:[{endpoint:{url:"https://comprehend.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:g}]},{error:"DualStack is enabled but this partition does not support DualStack",type:f}]},{endpoint:{url:"https://comprehend.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:g}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-comprehendmedical/src/endpoint/ruleset.ts b/clients/client-comprehendmedical/src/endpoint/ruleset.ts index 3cb646b84be5..259a1d57f78c 100644 --- a/clients/client-comprehendmedical/src/endpoint/ruleset.ts +++ b/clients/client-comprehendmedical/src/endpoint/ruleset.ts @@ -6,26 +6,24 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; 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}]}]}; +const p="required", +q="fn", +r="argv", +s="ref"; +const a="PartitionResult", +b="tree", +c="error", +d="endpoint", +e={[p]:false,"type":"String"}, +f={[p]:true,"default":false,"type":"Boolean"}, +g={[s]:"Endpoint"}, +h={[q]:"booleanEquals",[r]:[{[s]:"UseFIPS"},true]}, +i={[q]:"booleanEquals",[r]:[{[s]:"UseDualStack"},true]}, +j={}, +k={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsFIPS"]}]}, +l={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsDualStack"]}]}, +m=[g], +n=[h], +o=[i]; +const _data={version:"1.0",parameters:{Region:e,UseDualStack:f,UseFIPS:f,Endpoint:e},rules:[{conditions:[{[q]:"aws.partition",[r]:[{[s]:"Region"}],assign:a}],type:b,rules:[{conditions:[{[q]:"isSet",[r]:m},{[q]:"parseURL",[r]:m,assign:"url"}],type:b,rules:[{conditions:n,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:c},{type:b,rules:[{conditions:o,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:c},{endpoint:{url:g,properties:j,headers:j},type:d}]}]},{conditions:[h,i],type:b,rules:[{conditions:[k,l],type:b,rules:[{endpoint:{url:"https://comprehendmedical-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:c}]},{conditions:n,type:b,rules:[{conditions:[k],type:b,rules:[{type:b,rules:[{endpoint:{url:"https://comprehendmedical-fips.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:c}]},{conditions:o,type:b,rules:[{conditions:[l],type:b,rules:[{endpoint:{url:"https://comprehendmedical.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"DualStack is enabled but this partition does not support DualStack",type:c}]},{endpoint:{url:"https://comprehendmedical.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-compute-optimizer/src/endpoint/ruleset.ts b/clients/client-compute-optimizer/src/endpoint/ruleset.ts index ea8df7bd7ba3..27acdbb33505 100644 --- a/clients/client-compute-optimizer/src/endpoint/ruleset.ts +++ b/clients/client-compute-optimizer/src/endpoint/ruleset.ts @@ -6,26 +6,25 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; or see "smithy.rules#endpointRuleSet" in codegen/sdk-codegen/aws-models/compute-optimizer.json */ -const s="fn", -t="argv", -u="ref"; +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={[u]:"Endpoint"}, -j={[s]:"booleanEquals",[t]:[{[u]:"UseFIPS"},true]}, -k={[s]:"booleanEquals",[t]:[{[u]:"UseDualStack"},true]}, +d="PartitionResult", +e="tree", +f="error", +g="endpoint", +h={"required":true,"default":false,"type":"Boolean"}, +i={[t]:"Endpoint"}, +j={[r]:"booleanEquals",[s]:[{[t]:"UseFIPS"},true]}, +k={[r]:"booleanEquals",[s]:[{[t]:"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"]}]}, +m={[r]:"booleanEquals",[s]:[true,{[r]:"getAttr",[s]:[{[t]:d},"supportsFIPS"]}]}, +n={[r]:"booleanEquals",[s]:[true,{[r]:"getAttr",[s]:[{[t]:d},"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}]}]}; +q=[k]; +const _data={version:"1.0",parameters:{Region:{required:a,type:c},UseDualStack:h,UseFIPS:h,Endpoint:{required:b,type:c}},rules:[{conditions:[{[r]:"aws.partition",[s]:[{[t]:"Region"}],assign:d}],type:e,rules:[{conditions:[{[r]:"isSet",[s]:o},{[r]:"parseURL",[s]:o,assign:"url"}],type:e,rules:[{conditions:p,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:f},{type:e,rules:[{conditions:q,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:f},{endpoint:{url:i,properties:l,headers:l},type:g}]}]},{conditions:[j,k],type:e,rules:[{conditions:[m,n],type:e,rules:[{endpoint:{url:"https://compute-optimizer-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:g}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:f}]},{conditions:p,type:e,rules:[{conditions:[m],type:e,rules:[{type:e,rules:[{endpoint:{url:"https://compute-optimizer-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:g}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:f}]},{conditions:q,type:e,rules:[{conditions:[n],type:e,rules:[{endpoint:{url:"https://compute-optimizer.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:g}]},{error:"DualStack is enabled but this partition does not support DualStack",type:f}]},{endpoint:{url:"https://compute-optimizer.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:g}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-config-service/src/endpoint/ruleset.ts b/clients/client-config-service/src/endpoint/ruleset.ts index 376a32cae321..55b37599980c 100644 --- a/clients/client-config-service/src/endpoint/ruleset.ts +++ b/clients/client-config-service/src/endpoint/ruleset.ts @@ -6,29 +6,28 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; or see "smithy.rules#endpointRuleSet" in codegen/sdk-codegen/aws-models/config-service.json */ -const v="fn", -w="argv", -x="ref"; +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={[x]:"Endpoint"}, -k={[v]:"booleanEquals",[w]:[{[x]:"UseFIPS"},true]}, -l={[v]:"booleanEquals",[w]:[{[x]:"UseDualStack"},true]}, +d="PartitionResult", +e="tree", +f="error", +g="endpoint", +h="getAttr", +i={"required":true,"default":false,"type":"Boolean"}, +j={[w]:"Endpoint"}, +k={[u]:"booleanEquals",[v]:[{[w]:"UseFIPS"},true]}, +l={[u]:"booleanEquals",[v]:[{[w]:"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"]}]}, +n={[u]:"booleanEquals",[v]:[true,{[u]:h,[v]:[{[w]:d},"supportsFIPS"]}]}, +o={[w]:d}, +p={[u]:"booleanEquals",[v]:[true,{[u]:h,[v]:[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}]}]}; +t=[l]; +const _data={version:"1.0",parameters:{Region:{required:a,type:c},UseDualStack:i,UseFIPS:i,Endpoint:{required:b,type:c}},rules:[{conditions:[{[u]:"aws.partition",[v]:[{[w]:"Region"}],assign:d}],type:e,rules:[{conditions:[{[u]:"isSet",[v]:r},{[u]:"parseURL",[v]:r,assign:"url"}],type:e,rules:[{conditions:s,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:f},{type:e,rules:[{conditions:t,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:f},{endpoint:{url:j,properties:m,headers:m},type:g}]}]},{conditions:[k,l],type:e,rules:[{conditions:[n,p],type:e,rules:[{endpoint:{url:"https://config-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:m,headers:m},type:g}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:f}]},{conditions:s,type:e,rules:[{conditions:[n],type:e,rules:[{type:e,rules:[{conditions:[{[u]:"stringEquals",[v]:["aws-us-gov",{[u]:h,[v]:[o,"name"]}]}],endpoint:q,type:g},{endpoint:{url:"https://config-fips.{Region}.{PartitionResult#dnsSuffix}",properties:m,headers:m},type:g}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:f}]},{conditions:t,type:e,rules:[{conditions:[p],type:e,rules:[{endpoint:{url:"https://config.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:m,headers:m},type:g}]},{error:"DualStack is enabled but this partition does not support DualStack",type:f}]},{endpoint:q,type:g}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-connect-contact-lens/src/endpoint/ruleset.ts b/clients/client-connect-contact-lens/src/endpoint/ruleset.ts index 0b2460b6356c..99e4897b1b47 100644 --- a/clients/client-connect-contact-lens/src/endpoint/ruleset.ts +++ b/clients/client-connect-contact-lens/src/endpoint/ruleset.ts @@ -6,26 +6,24 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; 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}]}]}; +const p="required", +q="fn", +r="argv", +s="ref"; +const a="PartitionResult", +b="tree", +c="error", +d="endpoint", +e={[p]:false,"type":"String"}, +f={[p]:true,"default":false,"type":"Boolean"}, +g={[s]:"Endpoint"}, +h={[q]:"booleanEquals",[r]:[{[s]:"UseFIPS"},true]}, +i={[q]:"booleanEquals",[r]:[{[s]:"UseDualStack"},true]}, +j={}, +k={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsFIPS"]}]}, +l={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsDualStack"]}]}, +m=[g], +n=[h], +o=[i]; +const _data={version:"1.0",parameters:{Region:e,UseDualStack:f,UseFIPS:f,Endpoint:e},rules:[{conditions:[{[q]:"aws.partition",[r]:[{[s]:"Region"}],assign:a}],type:b,rules:[{conditions:[{[q]:"isSet",[r]:m},{[q]:"parseURL",[r]:m,assign:"url"}],type:b,rules:[{conditions:n,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:c},{type:b,rules:[{conditions:o,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:c},{endpoint:{url:g,properties:j,headers:j},type:d}]}]},{conditions:[h,i],type:b,rules:[{conditions:[k,l],type:b,rules:[{endpoint:{url:"https://contact-lens-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:c}]},{conditions:n,type:b,rules:[{conditions:[k],type:b,rules:[{type:b,rules:[{endpoint:{url:"https://contact-lens-fips.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:c}]},{conditions:o,type:b,rules:[{conditions:[l],type:b,rules:[{endpoint:{url:"https://contact-lens.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"DualStack is enabled but this partition does not support DualStack",type:c}]},{endpoint:{url:"https://contact-lens.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-connect/src/endpoint/ruleset.ts b/clients/client-connect/src/endpoint/ruleset.ts index 3313d252a9ab..484c66e2359b 100644 --- a/clients/client-connect/src/endpoint/ruleset.ts +++ b/clients/client-connect/src/endpoint/ruleset.ts @@ -6,25 +6,24 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; or see "smithy.rules#endpointRuleSet" in codegen/sdk-codegen/aws-models/connect.json */ -const r="fn", -s="argv", -t="ref"; +const q="fn", +r="argv", +s="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]}, +d="PartitionResult", +e="tree", +f="error", +g="endpoint", +h={"required":true,"default":false,"type":"Boolean"}, +i={[s]:"Endpoint"}, +j={[q]:"booleanEquals",[r]:[{[s]:"UseFIPS"},true]}, +k={[q]:"booleanEquals",[r]:[{[s]:"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"]}]}, +m={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:d},"supportsFIPS"]}]}, +n={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:d},"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}]}]}; +p=[k]; +const _data={version:"1.0",parameters:{Region:{required:a,type:c},UseDualStack:h,UseFIPS:h,Endpoint:{required:b,type:c}},rules:[{conditions:[{[q]:"aws.partition",[r]:[{[s]:"Region"}],assign:d}],type:e,rules:[{conditions:[{[q]:"isSet",[r]:[i]}],type:e,rules:[{conditions:o,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:f},{type:e,rules:[{conditions:p,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:f},{endpoint:{url:i,properties:l,headers:l},type:g}]}]},{conditions:[j,k],type:e,rules:[{conditions:[m,n],type:e,rules:[{endpoint:{url:"https://connect-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:g}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:f}]},{conditions:o,type:e,rules:[{conditions:[m],type:e,rules:[{type:e,rules:[{endpoint:{url:"https://connect-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:g}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:f}]},{conditions:p,type:e,rules:[{conditions:[n],type:e,rules:[{endpoint:{url:"https://connect.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:g}]},{error:"DualStack is enabled but this partition does not support DualStack",type:f}]},{endpoint:{url:"https://connect.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:g}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-connectcampaigns/src/endpoint/ruleset.ts b/clients/client-connectcampaigns/src/endpoint/ruleset.ts index e1c05e0192a4..54201deb27b3 100644 --- a/clients/client-connectcampaigns/src/endpoint/ruleset.ts +++ b/clients/client-connectcampaigns/src/endpoint/ruleset.ts @@ -6,26 +6,24 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; 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}]}]}; +const p="required", +q="fn", +r="argv", +s="ref"; +const a="PartitionResult", +b="tree", +c="error", +d="endpoint", +e={[p]:false,"type":"String"}, +f={[p]:true,"default":false,"type":"Boolean"}, +g={[s]:"Endpoint"}, +h={[q]:"booleanEquals",[r]:[{[s]:"UseFIPS"},true]}, +i={[q]:"booleanEquals",[r]:[{[s]:"UseDualStack"},true]}, +j={}, +k={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsFIPS"]}]}, +l={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsDualStack"]}]}, +m=[g], +n=[h], +o=[i]; +const _data={version:"1.0",parameters:{Region:e,UseDualStack:f,UseFIPS:f,Endpoint:e},rules:[{conditions:[{[q]:"aws.partition",[r]:[{[s]:"Region"}],assign:a}],type:b,rules:[{conditions:[{[q]:"isSet",[r]:m},{[q]:"parseURL",[r]:m,assign:"url"}],type:b,rules:[{conditions:n,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:c},{type:b,rules:[{conditions:o,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:c},{endpoint:{url:g,properties:j,headers:j},type:d}]}]},{conditions:[h,i],type:b,rules:[{conditions:[k,l],type:b,rules:[{endpoint:{url:"https://connect-campaigns-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:c}]},{conditions:n,type:b,rules:[{conditions:[k],type:b,rules:[{type:b,rules:[{endpoint:{url:"https://connect-campaigns-fips.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:c}]},{conditions:o,type:b,rules:[{conditions:[l],type:b,rules:[{endpoint:{url:"https://connect-campaigns.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"DualStack is enabled but this partition does not support DualStack",type:c}]},{endpoint:{url:"https://connect-campaigns.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-connectcases/src/endpoint/ruleset.ts b/clients/client-connectcases/src/endpoint/ruleset.ts index e5d6c363955c..036309fe9181 100644 --- a/clients/client-connectcases/src/endpoint/ruleset.ts +++ b/clients/client-connectcases/src/endpoint/ruleset.ts @@ -6,26 +6,24 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; 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}]}]}; +const p="required", +q="fn", +r="argv", +s="ref"; +const a="PartitionResult", +b="tree", +c="error", +d="endpoint", +e={[p]:false,"type":"String"}, +f={[p]:true,"default":false,"type":"Boolean"}, +g={[s]:"Endpoint"}, +h={[q]:"booleanEquals",[r]:[{[s]:"UseFIPS"},true]}, +i={[q]:"booleanEquals",[r]:[{[s]:"UseDualStack"},true]}, +j={}, +k={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsFIPS"]}]}, +l={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsDualStack"]}]}, +m=[g], +n=[h], +o=[i]; +const _data={version:"1.0",parameters:{Region:e,UseDualStack:f,UseFIPS:f,Endpoint:e},rules:[{conditions:[{[q]:"aws.partition",[r]:[{[s]:"Region"}],assign:a}],type:b,rules:[{conditions:[{[q]:"isSet",[r]:m},{[q]:"parseURL",[r]:m,assign:"url"}],type:b,rules:[{conditions:n,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:c},{type:b,rules:[{conditions:o,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:c},{endpoint:{url:g,properties:j,headers:j},type:d}]}]},{conditions:[h,i],type:b,rules:[{conditions:[k,l],type:b,rules:[{endpoint:{url:"https://cases-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:c}]},{conditions:n,type:b,rules:[{conditions:[k],type:b,rules:[{endpoint:{url:"https://cases-fips.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]},{error:"FIPS is enabled but this partition does not support FIPS",type:c}]},{conditions:o,type:b,rules:[{conditions:[l],type:b,rules:[{endpoint:{url:"https://cases.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"DualStack is enabled but this partition does not support DualStack",type:c}]},{endpoint:{url:"https://cases.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-connectparticipant/src/endpoint/ruleset.ts b/clients/client-connectparticipant/src/endpoint/ruleset.ts index d6698fb74499..d0a61491bd6b 100644 --- a/clients/client-connectparticipant/src/endpoint/ruleset.ts +++ b/clients/client-connectparticipant/src/endpoint/ruleset.ts @@ -6,26 +6,24 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; 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}]}]}; +const p="required", +q="fn", +r="argv", +s="ref"; +const a="PartitionResult", +b="tree", +c="error", +d="endpoint", +e={[p]:false,"type":"String"}, +f={[p]:true,"default":false,"type":"Boolean"}, +g={[s]:"Endpoint"}, +h={[q]:"booleanEquals",[r]:[{[s]:"UseFIPS"},true]}, +i={[q]:"booleanEquals",[r]:[{[s]:"UseDualStack"},true]}, +j={}, +k={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsFIPS"]}]}, +l={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsDualStack"]}]}, +m=[g], +n=[h], +o=[i]; +const _data={version:"1.0",parameters:{Region:e,UseDualStack:f,UseFIPS:f,Endpoint:e},rules:[{conditions:[{[q]:"aws.partition",[r]:[{[s]:"Region"}],assign:a}],type:b,rules:[{conditions:[{[q]:"isSet",[r]:m},{[q]:"parseURL",[r]:m,assign:"url"}],type:b,rules:[{conditions:n,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:c},{type:b,rules:[{conditions:o,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:c},{endpoint:{url:g,properties:j,headers:j},type:d}]}]},{conditions:[h,i],type:b,rules:[{conditions:[k,l],type:b,rules:[{endpoint:{url:"https://participant.connect-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:c}]},{conditions:n,type:b,rules:[{conditions:[k],type:b,rules:[{endpoint:{url:"https://participant.connect-fips.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]},{error:"FIPS is enabled but this partition does not support FIPS",type:c}]},{conditions:o,type:b,rules:[{conditions:[l],type:b,rules:[{endpoint:{url:"https://participant.connect.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"DualStack is enabled but this partition does not support DualStack",type:c}]},{endpoint:{url:"https://participant.connect.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-controltower/src/endpoint/ruleset.ts b/clients/client-controltower/src/endpoint/ruleset.ts index d5b9626ad738..e5c408e9aa2f 100644 --- a/clients/client-controltower/src/endpoint/ruleset.ts +++ b/clients/client-controltower/src/endpoint/ruleset.ts @@ -6,26 +6,24 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; 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}]}]}; +const p="required", +q="fn", +r="argv", +s="ref"; +const a="PartitionResult", +b="tree", +c="error", +d="endpoint", +e={[p]:false,"type":"String"}, +f={[p]:true,"default":false,"type":"Boolean"}, +g={[s]:"Endpoint"}, +h={[q]:"booleanEquals",[r]:[{[s]:"UseFIPS"},true]}, +i={[q]:"booleanEquals",[r]:[{[s]:"UseDualStack"},true]}, +j={}, +k={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsFIPS"]}]}, +l={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsDualStack"]}]}, +m=[g], +n=[h], +o=[i]; +const _data={version:"1.0",parameters:{Region:e,UseDualStack:f,UseFIPS:f,Endpoint:e},rules:[{conditions:[{[q]:"aws.partition",[r]:[{[s]:"Region"}],assign:a}],type:b,rules:[{conditions:[{[q]:"isSet",[r]:m},{[q]:"parseURL",[r]:m,assign:"url"}],type:b,rules:[{conditions:n,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:c},{type:b,rules:[{conditions:o,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:c},{endpoint:{url:g,properties:j,headers:j},type:d}]}]},{conditions:[h,i],type:b,rules:[{conditions:[k,l],type:b,rules:[{endpoint:{url:"https://controltower-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:c}]},{conditions:n,type:b,rules:[{conditions:[k],type:b,rules:[{type:b,rules:[{endpoint:{url:"https://controltower-fips.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:c}]},{conditions:o,type:b,rules:[{conditions:[l],type:b,rules:[{endpoint:{url:"https://controltower.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"DualStack is enabled but this partition does not support DualStack",type:c}]},{endpoint:{url:"https://controltower.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]}; export const ruleSet: RuleSetObject = _data; 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 66bf3ccb69c9..52e47ccd4cf4 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 @@ -6,26 +6,24 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; 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}]}]}; +const p="required", +q="fn", +r="argv", +s="ref"; +const a="PartitionResult", +b="tree", +c="error", +d="endpoint", +e={[p]:false,"type":"String"}, +f={[p]:true,"default":false,"type":"Boolean"}, +g={[s]:"Endpoint"}, +h={[q]:"booleanEquals",[r]:[{[s]:"UseFIPS"},true]}, +i={[q]:"booleanEquals",[r]:[{[s]:"UseDualStack"},true]}, +j={}, +k={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsFIPS"]}]}, +l={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsDualStack"]}]}, +m=[g], +n=[h], +o=[i]; +const _data={version:"1.0",parameters:{Region:e,UseDualStack:f,UseFIPS:f,Endpoint:e},rules:[{conditions:[{[q]:"aws.partition",[r]:[{[s]:"Region"}],assign:a}],type:b,rules:[{conditions:[{[q]:"isSet",[r]:m},{[q]:"parseURL",[r]:m,assign:"url"}],type:b,rules:[{conditions:n,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:c},{type:b,rules:[{conditions:o,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:c},{endpoint:{url:g,properties:j,headers:j},type:d}]}]},{conditions:[h,i],type:b,rules:[{conditions:[k,l],type:b,rules:[{endpoint:{url:"https://cur-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:c}]},{conditions:n,type:b,rules:[{conditions:[k],type:b,rules:[{type:b,rules:[{endpoint:{url:"https://cur-fips.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:c}]},{conditions:o,type:b,rules:[{conditions:[l],type:b,rules:[{endpoint:{url:"https://cur.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"DualStack is enabled but this partition does not support DualStack",type:c}]},{endpoint:{url:"https://cur.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-cost-explorer/src/endpoint/ruleset.ts b/clients/client-cost-explorer/src/endpoint/ruleset.ts index fe49249632c7..fc4dcb3e0d4f 100644 --- a/clients/client-cost-explorer/src/endpoint/ruleset.ts +++ b/clients/client-cost-explorer/src/endpoint/ruleset.ts @@ -6,42 +6,40 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; 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="type", +B="fn", +C="argv", +D="ref", +E="properties", +F="headers", +G="authSchemes", +H="signingRegion", +I="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"}, +d="PartitionResult", +e="tree", +f="error", +g="endpoint", +h="stringEquals", +i={"required":true,"default":false,[A]:"Boolean"}, +j={[D]:"Region"}, +k={[D]:"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}]}]}]}; +m={[B]:"getAttr",[C]:[{[D]:d},"name"]}, +n={[G]:[{"name":"sigv4",[H]:"us-east-1",[I]:"ce"}]}, +o={[f]:"FIPS and DualStack are enabled, but this partition does not support one or both",[A]:f}, +p={[f]:"FIPS is enabled but this partition does not support FIPS",[A]:f}, +q={[f]:"DualStack is enabled but this partition does not support DualStack",[A]:f}, +r={"url":"https://ce.us-east-1.amazonaws.com",[E]:n,[F]:{}}, +s={[G]:[{"name":"sigv4",[H]:"cn-northwest-1",[I]:"ce"}]}, +t={"url":"https://ce.cn-northwest-1.amazonaws.com.cn",[E]:s,[F]:{}}, +u=[{[B]:"booleanEquals",[C]:[{[D]:"UseFIPS"},true]}], +v=[{[B]:"booleanEquals",[C]:[{[D]:"UseDualStack"},true]}], +w=[{[B]:"booleanEquals",[C]:[{[D]:"UseFIPS"},true]},{[B]:"booleanEquals",[C]:[{[D]:"UseDualStack"},true]}], +x=[{[B]:"booleanEquals",[C]:[true,{[B]:"getAttr",[C]:[{[D]:d},"supportsFIPS"]}]},{[B]:"booleanEquals",[C]:[true,{[B]:"getAttr",[C]:[{[D]:d},"supportsDualStack"]}]}], +y=[{[B]:"booleanEquals",[C]:[true,{[B]:"getAttr",[C]:[{[D]:d},"supportsFIPS"]}]}], +z=[{[B]:"booleanEquals",[C]:[true,{[B]:"getAttr",[C]:[{[D]:d},"supportsDualStack"]}]}]; +const _data={version:"1.0",parameters:{Region:{required:a,[A]:c},UseDualStack:i,UseFIPS:i,Endpoint:{required:b,[A]:c}},rules:[{conditions:[{[B]:"aws.partition",[C]:[j],assign:d}],[A]:e,rules:[{conditions:[{[B]:"isSet",[C]:[k]}],[A]:e,rules:[{conditions:u,error:"Invalid Configuration: FIPS and custom endpoint are not supported",[A]:f},{[A]:e,rules:[{conditions:v,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",[A]:f},{endpoint:{url:k,[E]:l,[F]:l},[A]:g}]}]},{conditions:[{[B]:h,[C]:[m,"aws"]}],[A]:e,rules:[{conditions:w,[A]:e,rules:[{conditions:x,[A]:e,rules:[{endpoint:{url:"https://cost-explorer-fips.{Region}.api.aws",[E]:n,[F]:l},[A]:g}]},o]},{conditions:u,[A]:e,rules:[{conditions:y,[A]:e,rules:[{endpoint:{url:"https://cost-explorer-fips.{Region}.amazonaws.com",[E]:n,[F]:l},[A]:g}]},p]},{conditions:v,[A]:e,rules:[{conditions:z,[A]:e,rules:[{endpoint:{url:"https://cost-explorer.{Region}.api.aws",[E]:n,[F]:l},[A]:g}]},q]},{endpoint:r,[A]:g}]},{conditions:[{[B]:h,[C]:[m,"aws-cn"]}],[A]:e,rules:[{conditions:w,[A]:e,rules:[{conditions:x,[A]:e,rules:[{endpoint:{url:"https://cost-explorer-fips.{Region}.api.amazonwebservices.com.cn",[E]:s,[F]:l},[A]:g}]},o]},{conditions:u,[A]:e,rules:[{conditions:y,[A]:e,rules:[{endpoint:{url:"https://cost-explorer-fips.{Region}.amazonaws.com.cn",[E]:s,[F]:l},[A]:g}]},p]},{conditions:v,[A]:e,rules:[{conditions:z,[A]:e,rules:[{endpoint:{url:"https://cost-explorer.{Region}.api.amazonwebservices.com.cn",[E]:s,[F]:l},[A]:g}]},q]},{endpoint:t,[A]:g}]},{conditions:w,[A]:e,rules:[{conditions:x,[A]:e,rules:[{endpoint:{url:"https://ce-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",[E]:l,[F]:l},[A]:g}]},o]},{conditions:u,[A]:e,rules:[{conditions:y,[A]:e,rules:[{[A]:e,rules:[{endpoint:{url:"https://ce-fips.{Region}.{PartitionResult#dnsSuffix}",[E]:l,[F]:l},[A]:g}]}]},p]},{conditions:v,[A]:e,rules:[{conditions:z,[A]:e,rules:[{endpoint:{url:"https://ce.{Region}.{PartitionResult#dualStackDnsSuffix}",[E]:l,[F]:l},[A]:g}]},q]},{[A]:e,rules:[{conditions:[{[B]:h,[C]:[j,"aws-global"]}],endpoint:r,[A]:g},{conditions:[{[B]:h,[C]:[j,"aws-cn-global"]}],endpoint:t,[A]:g},{endpoint:{url:"https://ce.{Region}.{PartitionResult#dnsSuffix}",[E]:l,[F]:l},[A]:g}]}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-customer-profiles/src/endpoint/ruleset.ts b/clients/client-customer-profiles/src/endpoint/ruleset.ts index 2146a90c9e7e..e3634c5c6011 100644 --- a/clients/client-customer-profiles/src/endpoint/ruleset.ts +++ b/clients/client-customer-profiles/src/endpoint/ruleset.ts @@ -6,25 +6,24 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; or see "smithy.rules#endpointRuleSet" in codegen/sdk-codegen/aws-models/customer-profiles.json */ -const r="fn", -s="argv", -t="ref"; +const q="fn", +r="argv", +s="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]}, +d="PartitionResult", +e="tree", +f="error", +g="endpoint", +h={"required":true,"default":false,"type":"Boolean"}, +i={[s]:"Endpoint"}, +j={[q]:"booleanEquals",[r]:[{[s]:"UseFIPS"},true]}, +k={[q]:"booleanEquals",[r]:[{[s]:"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"]}]}, +m={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:d},"supportsFIPS"]}]}, +n={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:d},"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}]}]}; +p=[k]; +const _data={version:"1.0",parameters:{Region:{required:a,type:c},UseDualStack:h,UseFIPS:h,Endpoint:{required:b,type:c}},rules:[{conditions:[{[q]:"aws.partition",[r]:[{[s]:"Region"}],assign:d}],type:e,rules:[{conditions:[{[q]:"isSet",[r]:[i]}],type:e,rules:[{conditions:o,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:f},{type:e,rules:[{conditions:p,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:f},{endpoint:{url:i,properties:l,headers:l},type:g}]}]},{conditions:[j,k],type:e,rules:[{conditions:[m,n],type:e,rules:[{endpoint:{url:"https://profile-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:g}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:f}]},{conditions:o,type:e,rules:[{conditions:[m],type:e,rules:[{type:e,rules:[{endpoint:{url:"https://profile-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:g}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:f}]},{conditions:p,type:e,rules:[{conditions:[n],type:e,rules:[{endpoint:{url:"https://profile.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:g}]},{error:"DualStack is enabled but this partition does not support DualStack",type:f}]},{endpoint:{url:"https://profile.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:g}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-data-pipeline/src/endpoint/ruleset.ts b/clients/client-data-pipeline/src/endpoint/ruleset.ts index 0c765997c3cb..78ae846616b5 100644 --- a/clients/client-data-pipeline/src/endpoint/ruleset.ts +++ b/clients/client-data-pipeline/src/endpoint/ruleset.ts @@ -6,26 +6,24 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; 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}]}]}; +const p="required", +q="fn", +r="argv", +s="ref"; +const a="PartitionResult", +b="tree", +c="error", +d="endpoint", +e={[p]:false,"type":"String"}, +f={[p]:true,"default":false,"type":"Boolean"}, +g={[s]:"Endpoint"}, +h={[q]:"booleanEquals",[r]:[{[s]:"UseFIPS"},true]}, +i={[q]:"booleanEquals",[r]:[{[s]:"UseDualStack"},true]}, +j={}, +k={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsFIPS"]}]}, +l={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsDualStack"]}]}, +m=[g], +n=[h], +o=[i]; +const _data={version:"1.0",parameters:{Region:e,UseDualStack:f,UseFIPS:f,Endpoint:e},rules:[{conditions:[{[q]:"aws.partition",[r]:[{[s]:"Region"}],assign:a}],type:b,rules:[{conditions:[{[q]:"isSet",[r]:m},{[q]:"parseURL",[r]:m,assign:"url"}],type:b,rules:[{conditions:n,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:c},{type:b,rules:[{conditions:o,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:c},{endpoint:{url:g,properties:j,headers:j},type:d}]}]},{conditions:[h,i],type:b,rules:[{conditions:[k,l],type:b,rules:[{endpoint:{url:"https://datapipeline-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:c}]},{conditions:n,type:b,rules:[{conditions:[k],type:b,rules:[{type:b,rules:[{endpoint:{url:"https://datapipeline-fips.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:c}]},{conditions:o,type:b,rules:[{conditions:[l],type:b,rules:[{endpoint:{url:"https://datapipeline.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"DualStack is enabled but this partition does not support DualStack",type:c}]},{endpoint:{url:"https://datapipeline.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-database-migration-service/src/endpoint/ruleset.ts b/clients/client-database-migration-service/src/endpoint/ruleset.ts index b7b544dd4cdf..2dc20922b21e 100644 --- a/clients/client-database-migration-service/src/endpoint/ruleset.ts +++ b/clients/client-database-migration-service/src/endpoint/ruleset.ts @@ -6,31 +6,29 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; 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":{}}, +const u="required", +v="fn", +w="argv", +x="ref"; +const a="PartitionResult", +b="tree", +c="error", +d="endpoint", +e="stringEquals", +f={[u]:false,"type":"String"}, +g={[u]:true,"default":false,"type":"Boolean"}, +h={[x]:"Region"}, +i={[x]:"Endpoint"}, +j={[v]:"booleanEquals",[w]:[{[x]:"UseFIPS"},true]}, +k={[v]:"booleanEquals",[w]:[{[x]:"UseDualStack"},true]}, +l={}, +m={[v]:"booleanEquals",[w]:[true,{[v]:"getAttr",[w]:[{[x]:a},"supportsFIPS"]}]}, +n={[v]:"booleanEquals",[w]:[true,{[v]:"getAttr",[w]:[{[x]:a},"supportsDualStack"]}]}, +o={[v]:"getAttr",[w]:[{[x]:a},"name"]}, +p={"url":"https://dms.{Region}.{PartitionResult#dnsSuffix}","properties":{},"headers":{}}, +q=[i], +r=[j], 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}]}]}; +t=[{[v]:e,[w]:[h,"dms"]}]; +const _data={version:"1.0",parameters:{Region:f,UseDualStack:g,UseFIPS:g,Endpoint:f},rules:[{conditions:[{[v]:"aws.partition",[w]:[h],assign:a}],type:b,rules:[{conditions:[{[v]:"isSet",[w]:q},{[v]:"parseURL",[w]:q,assign:"url"}],type:b,rules:[{conditions:r,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:c},{type:b,rules:[{conditions:s,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:c},{endpoint:{url:i,properties:l,headers:l},type:d}]}]},{conditions:[j,k],type:b,rules:[{conditions:[m,n],type:b,rules:[{endpoint:{url:"https://dms-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:d}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:c}]},{conditions:r,type:b,rules:[{conditions:[m],type:b,rules:[{type:b,rules:[{conditions:t,endpoint:{url:"https://dms-fips.us-west-1.amazonaws.com",properties:l,headers:l},type:d},{conditions:t,endpoint:{url:"https://dms.us-gov-west-1.amazonaws.com",properties:l,headers:l},type:d},{conditions:[{[v]:e,[w]:["aws-us-gov",o]}],endpoint:p,type:d},{conditions:t,endpoint:{url:"https://dms.us-iso-east-1.c2s.ic.gov",properties:l,headers:l},type:d},{conditions:[{[v]:e,[w]:["aws-iso",o]}],endpoint:p,type:d},{conditions:t,endpoint:{url:"https://dms.us-isob-east-1.sc2s.sgov.gov",properties:l,headers:l},type:d},{conditions:[{[v]:e,[w]:["aws-iso-b",o]}],endpoint:p,type:d},{endpoint:{url:"https://dms-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:d}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:c}]},{conditions:s,type:b,rules:[{conditions:[n],type:b,rules:[{endpoint:{url:"https://dms.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:d}]},{error:"DualStack is enabled but this partition does not support DualStack",type:c}]},{endpoint:p,type:d}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-databrew/src/endpoint/ruleset.ts b/clients/client-databrew/src/endpoint/ruleset.ts index 55bfba37063f..54914bf01fb8 100644 --- a/clients/client-databrew/src/endpoint/ruleset.ts +++ b/clients/client-databrew/src/endpoint/ruleset.ts @@ -6,26 +6,24 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; 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}]}]}; +const p="required", +q="fn", +r="argv", +s="ref"; +const a="PartitionResult", +b="tree", +c="error", +d="endpoint", +e={[p]:false,"type":"String"}, +f={[p]:true,"default":false,"type":"Boolean"}, +g={[s]:"Endpoint"}, +h={[q]:"booleanEquals",[r]:[{[s]:"UseFIPS"},true]}, +i={[q]:"booleanEquals",[r]:[{[s]:"UseDualStack"},true]}, +j={}, +k={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsFIPS"]}]}, +l={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsDualStack"]}]}, +m=[g], +n=[h], +o=[i]; +const _data={version:"1.0",parameters:{Region:e,UseDualStack:f,UseFIPS:f,Endpoint:e},rules:[{conditions:[{[q]:"aws.partition",[r]:[{[s]:"Region"}],assign:a}],type:b,rules:[{conditions:[{[q]:"isSet",[r]:m},{[q]:"parseURL",[r]:m,assign:"url"}],type:b,rules:[{conditions:n,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:c},{type:b,rules:[{conditions:o,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:c},{endpoint:{url:g,properties:j,headers:j},type:d}]}]},{conditions:[h,i],type:b,rules:[{conditions:[k,l],type:b,rules:[{endpoint:{url:"https://databrew-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:c}]},{conditions:n,type:b,rules:[{conditions:[k],type:b,rules:[{type:b,rules:[{endpoint:{url:"https://databrew-fips.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:c}]},{conditions:o,type:b,rules:[{conditions:[l],type:b,rules:[{endpoint:{url:"https://databrew.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"DualStack is enabled but this partition does not support DualStack",type:c}]},{endpoint:{url:"https://databrew.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-dataexchange/src/endpoint/ruleset.ts b/clients/client-dataexchange/src/endpoint/ruleset.ts index 5ee527241506..655090fa9263 100644 --- a/clients/client-dataexchange/src/endpoint/ruleset.ts +++ b/clients/client-dataexchange/src/endpoint/ruleset.ts @@ -6,26 +6,25 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; or see "smithy.rules#endpointRuleSet" in codegen/sdk-codegen/aws-models/dataexchange.json */ -const s="fn", -t="argv", -u="ref"; +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={[u]:"Endpoint"}, -j={[s]:"booleanEquals",[t]:[{[u]:"UseFIPS"},true]}, -k={[s]:"booleanEquals",[t]:[{[u]:"UseDualStack"},true]}, +d="PartitionResult", +e="tree", +f="error", +g="endpoint", +h={"required":true,"default":false,"type":"Boolean"}, +i={[t]:"Endpoint"}, +j={[r]:"booleanEquals",[s]:[{[t]:"UseFIPS"},true]}, +k={[r]:"booleanEquals",[s]:[{[t]:"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"]}]}, +m={[r]:"booleanEquals",[s]:[true,{[r]:"getAttr",[s]:[{[t]:d},"supportsFIPS"]}]}, +n={[r]:"booleanEquals",[s]:[true,{[r]:"getAttr",[s]:[{[t]:d},"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}]}]}; +q=[k]; +const _data={version:"1.0",parameters:{Region:{required:a,type:c},UseDualStack:h,UseFIPS:h,Endpoint:{required:b,type:c}},rules:[{conditions:[{[r]:"aws.partition",[s]:[{[t]:"Region"}],assign:d}],type:e,rules:[{conditions:[{[r]:"isSet",[s]:o},{[r]:"parseURL",[s]:o,assign:"url"}],type:e,rules:[{conditions:p,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:f},{type:e,rules:[{conditions:q,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:f},{endpoint:{url:i,properties:l,headers:l},type:g}]}]},{conditions:[j,k],type:e,rules:[{conditions:[m,n],type:e,rules:[{endpoint:{url:"https://dataexchange-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:g}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:f}]},{conditions:p,type:e,rules:[{conditions:[m],type:e,rules:[{type:e,rules:[{endpoint:{url:"https://dataexchange-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:g}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:f}]},{conditions:q,type:e,rules:[{conditions:[n],type:e,rules:[{endpoint:{url:"https://dataexchange.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:g}]},{error:"DualStack is enabled but this partition does not support DualStack",type:f}]},{endpoint:{url:"https://dataexchange.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:g}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-datasync/src/endpoint/ruleset.ts b/clients/client-datasync/src/endpoint/ruleset.ts index 67b831847804..4759cc65038a 100644 --- a/clients/client-datasync/src/endpoint/ruleset.ts +++ b/clients/client-datasync/src/endpoint/ruleset.ts @@ -6,25 +6,24 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; or see "smithy.rules#endpointRuleSet" in codegen/sdk-codegen/aws-models/datasync.json */ -const r="fn", -s="argv", -t="ref"; +const q="fn", +r="argv", +s="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]}, +d="PartitionResult", +e="tree", +f="error", +g="endpoint", +h={"required":true,"default":false,"type":"Boolean"}, +i={[s]:"Endpoint"}, +j={[q]:"booleanEquals",[r]:[{[s]:"UseFIPS"},true]}, +k={[q]:"booleanEquals",[r]:[{[s]:"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"]}]}, +m={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:d},"supportsFIPS"]}]}, +n={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:d},"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}]}]}; +p=[k]; +const _data={version:"1.0",parameters:{Region:{required:a,type:c},UseDualStack:h,UseFIPS:h,Endpoint:{required:b,type:c}},rules:[{conditions:[{[q]:"aws.partition",[r]:[{[s]:"Region"}],assign:d}],type:e,rules:[{conditions:[{[q]:"isSet",[r]:[i]}],type:e,rules:[{conditions:o,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:f},{type:e,rules:[{conditions:p,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:f},{endpoint:{url:i,properties:l,headers:l},type:g}]}]},{conditions:[j,k],type:e,rules:[{conditions:[m,n],type:e,rules:[{endpoint:{url:"https://datasync-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:g}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:f}]},{conditions:o,type:e,rules:[{conditions:[m],type:e,rules:[{type:e,rules:[{endpoint:{url:"https://datasync-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:g}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:f}]},{conditions:p,type:e,rules:[{conditions:[n],type:e,rules:[{endpoint:{url:"https://datasync.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:g}]},{error:"DualStack is enabled but this partition does not support DualStack",type:f}]},{endpoint:{url:"https://datasync.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:g}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-dax/src/endpoint/ruleset.ts b/clients/client-dax/src/endpoint/ruleset.ts index 6e277867bf84..1791ac42f562 100644 --- a/clients/client-dax/src/endpoint/ruleset.ts +++ b/clients/client-dax/src/endpoint/ruleset.ts @@ -6,26 +6,24 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; 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}]}]}; +const p="required", +q="fn", +r="argv", +s="ref"; +const a="PartitionResult", +b="tree", +c="error", +d="endpoint", +e={[p]:false,"type":"String"}, +f={[p]:true,"default":false,"type":"Boolean"}, +g={[s]:"Endpoint"}, +h={[q]:"booleanEquals",[r]:[{[s]:"UseFIPS"},true]}, +i={[q]:"booleanEquals",[r]:[{[s]:"UseDualStack"},true]}, +j={}, +k={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsFIPS"]}]}, +l={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsDualStack"]}]}, +m=[g], +n=[h], +o=[i]; +const _data={version:"1.0",parameters:{Region:e,UseDualStack:f,UseFIPS:f,Endpoint:e},rules:[{conditions:[{[q]:"aws.partition",[r]:[{[s]:"Region"}],assign:a}],type:b,rules:[{conditions:[{[q]:"isSet",[r]:m},{[q]:"parseURL",[r]:m,assign:"url"}],type:b,rules:[{conditions:n,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:c},{type:b,rules:[{conditions:o,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:c},{endpoint:{url:g,properties:j,headers:j},type:d}]}]},{conditions:[h,i],type:b,rules:[{conditions:[k,l],type:b,rules:[{endpoint:{url:"https://dax-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:c}]},{conditions:n,type:b,rules:[{conditions:[k],type:b,rules:[{type:b,rules:[{endpoint:{url:"https://dax-fips.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:c}]},{conditions:o,type:b,rules:[{conditions:[l],type:b,rules:[{endpoint:{url:"https://dax.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"DualStack is enabled but this partition does not support DualStack",type:c}]},{endpoint:{url:"https://dax.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-detective/src/endpoint/ruleset.ts b/clients/client-detective/src/endpoint/ruleset.ts index 3a97735fa5ae..02327841b4cd 100644 --- a/clients/client-detective/src/endpoint/ruleset.ts +++ b/clients/client-detective/src/endpoint/ruleset.ts @@ -6,26 +6,24 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; 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}]}]}; +const p="required", +q="fn", +r="argv", +s="ref"; +const a="PartitionResult", +b="tree", +c="error", +d="endpoint", +e={[p]:false,"type":"String"}, +f={[p]:true,"default":false,"type":"Boolean"}, +g={[s]:"Endpoint"}, +h={[q]:"booleanEquals",[r]:[{[s]:"UseFIPS"},true]}, +i={[q]:"booleanEquals",[r]:[{[s]:"UseDualStack"},true]}, +j={}, +k={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsFIPS"]}]}, +l={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsDualStack"]}]}, +m=[g], +n=[h], +o=[i]; +const _data={version:"1.0",parameters:{Region:e,UseDualStack:f,UseFIPS:f,Endpoint:e},rules:[{conditions:[{[q]:"aws.partition",[r]:[{[s]:"Region"}],assign:a}],type:b,rules:[{conditions:[{[q]:"isSet",[r]:m},{[q]:"parseURL",[r]:m,assign:"url"}],type:b,rules:[{conditions:n,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:c},{type:b,rules:[{conditions:o,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:c},{endpoint:{url:g,properties:j,headers:j},type:d}]}]},{conditions:[h,i],type:b,rules:[{conditions:[k,l],type:b,rules:[{endpoint:{url:"https://api.detective-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:c}]},{conditions:n,type:b,rules:[{conditions:[k],type:b,rules:[{type:b,rules:[{endpoint:{url:"https://api.detective-fips.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:c}]},{conditions:o,type:b,rules:[{conditions:[l],type:b,rules:[{endpoint:{url:"https://api.detective.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"DualStack is enabled but this partition does not support DualStack",type:c}]},{endpoint:{url:"https://api.detective.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-device-farm/src/endpoint/ruleset.ts b/clients/client-device-farm/src/endpoint/ruleset.ts index 0fd9f8bd5be8..3a3ab36dfa3b 100644 --- a/clients/client-device-farm/src/endpoint/ruleset.ts +++ b/clients/client-device-farm/src/endpoint/ruleset.ts @@ -6,26 +6,24 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; 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}]}]}; +const p="required", +q="fn", +r="argv", +s="ref"; +const a="PartitionResult", +b="tree", +c="error", +d="endpoint", +e={[p]:false,"type":"String"}, +f={[p]:true,"default":false,"type":"Boolean"}, +g={[s]:"Endpoint"}, +h={[q]:"booleanEquals",[r]:[{[s]:"UseFIPS"},true]}, +i={[q]:"booleanEquals",[r]:[{[s]:"UseDualStack"},true]}, +j={}, +k={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsFIPS"]}]}, +l={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsDualStack"]}]}, +m=[g], +n=[h], +o=[i]; +const _data={version:"1.0",parameters:{Region:e,UseDualStack:f,UseFIPS:f,Endpoint:e},rules:[{conditions:[{[q]:"aws.partition",[r]:[{[s]:"Region"}],assign:a}],type:b,rules:[{conditions:[{[q]:"isSet",[r]:m},{[q]:"parseURL",[r]:m,assign:"url"}],type:b,rules:[{conditions:n,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:c},{type:b,rules:[{conditions:o,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:c},{endpoint:{url:g,properties:j,headers:j},type:d}]}]},{conditions:[h,i],type:b,rules:[{conditions:[k,l],type:b,rules:[{endpoint:{url:"https://devicefarm-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:c}]},{conditions:n,type:b,rules:[{conditions:[k],type:b,rules:[{type:b,rules:[{endpoint:{url:"https://devicefarm-fips.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:c}]},{conditions:o,type:b,rules:[{conditions:[l],type:b,rules:[{endpoint:{url:"https://devicefarm.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"DualStack is enabled but this partition does not support DualStack",type:c}]},{endpoint:{url:"https://devicefarm.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-devops-guru/src/endpoint/ruleset.ts b/clients/client-devops-guru/src/endpoint/ruleset.ts index 0328d4083fdc..ba085cb26a51 100644 --- a/clients/client-devops-guru/src/endpoint/ruleset.ts +++ b/clients/client-devops-guru/src/endpoint/ruleset.ts @@ -6,26 +6,24 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; 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}]}]}; +const p="required", +q="fn", +r="argv", +s="ref"; +const a="PartitionResult", +b="tree", +c="error", +d="endpoint", +e={[p]:false,"type":"String"}, +f={[p]:true,"default":false,"type":"Boolean"}, +g={[s]:"Endpoint"}, +h={[q]:"booleanEquals",[r]:[{[s]:"UseFIPS"},true]}, +i={[q]:"booleanEquals",[r]:[{[s]:"UseDualStack"},true]}, +j={}, +k={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsFIPS"]}]}, +l={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsDualStack"]}]}, +m=[g], +n=[h], +o=[i]; +const _data={version:"1.0",parameters:{Region:e,UseDualStack:f,UseFIPS:f,Endpoint:e},rules:[{conditions:[{[q]:"aws.partition",[r]:[{[s]:"Region"}],assign:a}],type:b,rules:[{conditions:[{[q]:"isSet",[r]:m},{[q]:"parseURL",[r]:m,assign:"url"}],type:b,rules:[{conditions:n,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:c},{type:b,rules:[{conditions:o,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:c},{endpoint:{url:g,properties:j,headers:j},type:d}]}]},{conditions:[h,i],type:b,rules:[{conditions:[k,l],type:b,rules:[{endpoint:{url:"https://devops-guru-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:c}]},{conditions:n,type:b,rules:[{conditions:[k],type:b,rules:[{type:b,rules:[{endpoint:{url:"https://devops-guru-fips.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:c}]},{conditions:o,type:b,rules:[{conditions:[l],type:b,rules:[{endpoint:{url:"https://devops-guru.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"DualStack is enabled but this partition does not support DualStack",type:c}]},{endpoint:{url:"https://devops-guru.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-direct-connect/src/endpoint/ruleset.ts b/clients/client-direct-connect/src/endpoint/ruleset.ts index f30c84afa193..7173b19b3650 100644 --- a/clients/client-direct-connect/src/endpoint/ruleset.ts +++ b/clients/client-direct-connect/src/endpoint/ruleset.ts @@ -6,26 +6,24 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; 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}]}]}; +const p="required", +q="fn", +r="argv", +s="ref"; +const a="PartitionResult", +b="tree", +c="error", +d="endpoint", +e={[p]:false,"type":"String"}, +f={[p]:true,"default":false,"type":"Boolean"}, +g={[s]:"Endpoint"}, +h={[q]:"booleanEquals",[r]:[{[s]:"UseFIPS"},true]}, +i={[q]:"booleanEquals",[r]:[{[s]:"UseDualStack"},true]}, +j={}, +k={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsFIPS"]}]}, +l={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsDualStack"]}]}, +m=[g], +n=[h], +o=[i]; +const _data={version:"1.0",parameters:{Region:e,UseDualStack:f,UseFIPS:f,Endpoint:e},rules:[{conditions:[{[q]:"aws.partition",[r]:[{[s]:"Region"}],assign:a}],type:b,rules:[{conditions:[{[q]:"isSet",[r]:m},{[q]:"parseURL",[r]:m,assign:"url"}],type:b,rules:[{conditions:n,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:c},{type:b,rules:[{conditions:o,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:c},{endpoint:{url:g,properties:j,headers:j},type:d}]}]},{conditions:[h,i],type:b,rules:[{conditions:[k,l],type:b,rules:[{endpoint:{url:"https://directconnect-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:c}]},{conditions:n,type:b,rules:[{conditions:[k],type:b,rules:[{type:b,rules:[{endpoint:{url:"https://directconnect-fips.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:c}]},{conditions:o,type:b,rules:[{conditions:[l],type:b,rules:[{endpoint:{url:"https://directconnect.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"DualStack is enabled but this partition does not support DualStack",type:c}]},{endpoint:{url:"https://directconnect.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-directory-service/src/endpoint/ruleset.ts b/clients/client-directory-service/src/endpoint/ruleset.ts index 564949c3857a..5fa1857ddda4 100644 --- a/clients/client-directory-service/src/endpoint/ruleset.ts +++ b/clients/client-directory-service/src/endpoint/ruleset.ts @@ -6,26 +6,24 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; 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}]}]}; +const p="required", +q="fn", +r="argv", +s="ref"; +const a="PartitionResult", +b="tree", +c="error", +d="endpoint", +e={[p]:false,"type":"String"}, +f={[p]:true,"default":false,"type":"Boolean"}, +g={[s]:"Endpoint"}, +h={[q]:"booleanEquals",[r]:[{[s]:"UseFIPS"},true]}, +i={[q]:"booleanEquals",[r]:[{[s]:"UseDualStack"},true]}, +j={}, +k={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsFIPS"]}]}, +l={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsDualStack"]}]}, +m=[g], +n=[h], +o=[i]; +const _data={version:"1.0",parameters:{Region:e,UseDualStack:f,UseFIPS:f,Endpoint:e},rules:[{conditions:[{[q]:"aws.partition",[r]:[{[s]:"Region"}],assign:a}],type:b,rules:[{conditions:[{[q]:"isSet",[r]:m},{[q]:"parseURL",[r]:m,assign:"url"}],type:b,rules:[{conditions:n,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:c},{type:b,rules:[{conditions:o,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:c},{endpoint:{url:g,properties:j,headers:j},type:d}]}]},{conditions:[h,i],type:b,rules:[{conditions:[k,l],type:b,rules:[{endpoint:{url:"https://ds-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:c}]},{conditions:n,type:b,rules:[{conditions:[k],type:b,rules:[{type:b,rules:[{endpoint:{url:"https://ds-fips.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:c}]},{conditions:o,type:b,rules:[{conditions:[l],type:b,rules:[{endpoint:{url:"https://ds.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"DualStack is enabled but this partition does not support DualStack",type:c}]},{endpoint:{url:"https://ds.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-dlm/src/endpoint/ruleset.ts b/clients/client-dlm/src/endpoint/ruleset.ts index 939ed8dc622b..0812a117652d 100644 --- a/clients/client-dlm/src/endpoint/ruleset.ts +++ b/clients/client-dlm/src/endpoint/ruleset.ts @@ -6,26 +6,24 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; 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}]}]}; +const p="required", +q="fn", +r="argv", +s="ref"; +const a="PartitionResult", +b="tree", +c="error", +d="endpoint", +e={[p]:false,"type":"String"}, +f={[p]:true,"default":false,"type":"Boolean"}, +g={[s]:"Endpoint"}, +h={[q]:"booleanEquals",[r]:[{[s]:"UseFIPS"},true]}, +i={[q]:"booleanEquals",[r]:[{[s]:"UseDualStack"},true]}, +j={}, +k={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsFIPS"]}]}, +l={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsDualStack"]}]}, +m=[g], +n=[h], +o=[i]; +const _data={version:"1.0",parameters:{Region:e,UseDualStack:f,UseFIPS:f,Endpoint:e},rules:[{conditions:[{[q]:"aws.partition",[r]:[{[s]:"Region"}],assign:a}],type:b,rules:[{conditions:[{[q]:"isSet",[r]:m},{[q]:"parseURL",[r]:m,assign:"url"}],type:b,rules:[{conditions:n,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:c},{type:b,rules:[{conditions:o,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:c},{endpoint:{url:g,properties:j,headers:j},type:d}]}]},{conditions:[h,i],type:b,rules:[{conditions:[k,l],type:b,rules:[{endpoint:{url:"https://dlm-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:c}]},{conditions:n,type:b,rules:[{conditions:[k],type:b,rules:[{type:b,rules:[{endpoint:{url:"https://dlm-fips.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:c}]},{conditions:o,type:b,rules:[{conditions:[l],type:b,rules:[{endpoint:{url:"https://dlm.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"DualStack is enabled but this partition does not support DualStack",type:c}]},{endpoint:{url:"https://dlm.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-docdb-elastic/src/endpoint/ruleset.ts b/clients/client-docdb-elastic/src/endpoint/ruleset.ts index 03e8a7f23095..a7d723dd9fcc 100644 --- a/clients/client-docdb-elastic/src/endpoint/ruleset.ts +++ b/clients/client-docdb-elastic/src/endpoint/ruleset.ts @@ -6,26 +6,25 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; or see "smithy.rules#endpointRuleSet" in codegen/sdk-codegen/aws-models/docdb-elastic.json */ -const s="fn", -t="argv", -u="ref"; +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={[u]:"Endpoint"}, -j={[s]:"booleanEquals",[t]:[{[u]:"UseFIPS"},true]}, -k={[s]:"booleanEquals",[t]:[{[u]:"UseDualStack"},true]}, +d="PartitionResult", +e="tree", +f="error", +g="endpoint", +h={"required":true,"default":false,"type":"Boolean"}, +i={[t]:"Endpoint"}, +j={[r]:"booleanEquals",[s]:[{[t]:"UseFIPS"},true]}, +k={[r]:"booleanEquals",[s]:[{[t]:"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"]}]}, +m={[r]:"booleanEquals",[s]:[true,{[r]:"getAttr",[s]:[{[t]:d},"supportsFIPS"]}]}, +n={[r]:"booleanEquals",[s]:[true,{[r]:"getAttr",[s]:[{[t]:d},"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}]}]}; +q=[k]; +const _data={version:"1.0",parameters:{Region:{required:a,type:c},UseDualStack:h,UseFIPS:h,Endpoint:{required:b,type:c}},rules:[{conditions:[{[r]:"aws.partition",[s]:[{[t]:"Region"}],assign:d}],type:e,rules:[{conditions:[{[r]:"isSet",[s]:o},{[r]:"parseURL",[s]:o,assign:"url"}],type:e,rules:[{conditions:p,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:f},{type:e,rules:[{conditions:q,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:f},{endpoint:{url:i,properties:l,headers:l},type:g}]}]},{conditions:[j,k],type:e,rules:[{conditions:[m,n],type:e,rules:[{endpoint:{url:"https://docdb-elastic-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:g}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:f}]},{conditions:p,type:e,rules:[{conditions:[m],type:e,rules:[{endpoint:{url:"https://docdb-elastic-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:g}]},{error:"FIPS is enabled but this partition does not support FIPS",type:f}]},{conditions:q,type:e,rules:[{conditions:[n],type:e,rules:[{endpoint:{url:"https://docdb-elastic.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:g}]},{error:"DualStack is enabled but this partition does not support DualStack",type:f}]},{endpoint:{url:"https://docdb-elastic.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:g}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-docdb/src/endpoint/ruleset.ts b/clients/client-docdb/src/endpoint/ruleset.ts index 0c5d264f43e5..65787762130b 100644 --- a/clients/client-docdb/src/endpoint/ruleset.ts +++ b/clients/client-docdb/src/endpoint/ruleset.ts @@ -6,31 +6,29 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; 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}]}]}; +const u="required", +v="fn", +w="argv", +x="ref"; +const a="PartitionResult", +b="tree", +c="error", +d="endpoint", +e="getAttr", +f="stringEquals", +g={[u]:false,"type":"String"}, +h={[u]:true,"default":false,"type":"Boolean"}, +i={[x]:"Region"}, +j={[x]:"Endpoint"}, +k={[v]:"booleanEquals",[w]:[{[x]:"UseFIPS"},true]}, +l={[v]:"booleanEquals",[w]:[{[x]:"UseDualStack"},true]}, +m={}, +n={[v]:"booleanEquals",[w]:[true,{[v]:e,[w]:[{[x]:a},"supportsFIPS"]}]}, +o={[x]:a}, +p={[v]:"booleanEquals",[w]:[true,{[v]:e,[w]:[o,"supportsDualStack"]}]}, +q={"url":"https://rds.{Region}.{PartitionResult#dnsSuffix}","properties":{},"headers":{}}, +r=[j], +s=[k], +t=[l]; +const _data={version:"1.0",parameters:{Region:g,UseDualStack:h,UseFIPS:h,Endpoint:g},rules:[{conditions:[{[v]:"aws.partition",[w]:[i],assign:a}],type:b,rules:[{conditions:[{[v]:"isSet",[w]:r},{[v]:"parseURL",[w]:r,assign:"url"}],type:b,rules:[{conditions:s,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:c},{type:b,rules:[{conditions:t,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:c},{endpoint:{url:j,properties:m,headers:m},type:d}]}]},{conditions:[k,l],type:b,rules:[{conditions:[n,p],type:b,rules:[{endpoint:{url:"https://rds-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:m,headers:m},type:d}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:c}]},{conditions:s,type:b,rules:[{conditions:[n],type:b,rules:[{type:b,rules:[{conditions:[{[v]:f,[w]:[i,"rds.ca-central-1"]}],endpoint:{url:"https://rds-fips.ca-central-1.amazonaws.com",properties:m,headers:m},type:d},{conditions:[{[v]:f,[w]:[i,"rds.us-east-1"]}],endpoint:{url:"https://rds-fips.us-east-1.amazonaws.com",properties:m,headers:m},type:d},{conditions:[{[v]:f,[w]:[i,"rds.us-east-2"]}],endpoint:{url:"https://rds-fips.us-east-2.amazonaws.com",properties:m,headers:m},type:d},{conditions:[{[v]:f,[w]:[i,"rds.us-west-1"]}],endpoint:{url:"https://rds-fips.us-west-1.amazonaws.com",properties:m,headers:m},type:d},{conditions:[{[v]:f,[w]:[i,"rds.us-west-2"]}],endpoint:{url:"https://rds-fips.us-west-2.amazonaws.com",properties:m,headers:m},type:d},{conditions:[{[v]:f,[w]:["aws-us-gov",{[v]:e,[w]:[o,"name"]}]}],endpoint:q,type:d},{endpoint:{url:"https://rds-fips.{Region}.{PartitionResult#dnsSuffix}",properties:m,headers:m},type:d}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:c}]},{conditions:t,type:b,rules:[{conditions:[p],type:b,rules:[{endpoint:{url:"https://rds.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:m,headers:m},type:d}]},{error:"DualStack is enabled but this partition does not support DualStack",type:c}]},{endpoint:q,type:d}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-drs/src/endpoint/ruleset.ts b/clients/client-drs/src/endpoint/ruleset.ts index 15634e829223..d748caf0e1b6 100644 --- a/clients/client-drs/src/endpoint/ruleset.ts +++ b/clients/client-drs/src/endpoint/ruleset.ts @@ -6,26 +6,24 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; 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}]}]}; +const p="required", +q="fn", +r="argv", +s="ref"; +const a="PartitionResult", +b="tree", +c="error", +d="endpoint", +e={[p]:false,"type":"String"}, +f={[p]:true,"default":false,"type":"Boolean"}, +g={[s]:"Endpoint"}, +h={[q]:"booleanEquals",[r]:[{[s]:"UseFIPS"},true]}, +i={[q]:"booleanEquals",[r]:[{[s]:"UseDualStack"},true]}, +j={}, +k={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsFIPS"]}]}, +l={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsDualStack"]}]}, +m=[g], +n=[h], +o=[i]; +const _data={version:"1.0",parameters:{Region:e,UseDualStack:f,UseFIPS:f,Endpoint:e},rules:[{conditions:[{[q]:"aws.partition",[r]:[{[s]:"Region"}],assign:a}],type:b,rules:[{conditions:[{[q]:"isSet",[r]:m},{[q]:"parseURL",[r]:m,assign:"url"}],type:b,rules:[{conditions:n,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:c},{type:b,rules:[{conditions:o,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:c},{endpoint:{url:g,properties:j,headers:j},type:d}]}]},{conditions:[h,i],type:b,rules:[{conditions:[k,l],type:b,rules:[{endpoint:{url:"https://drs-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:c}]},{conditions:n,type:b,rules:[{conditions:[k],type:b,rules:[{type:b,rules:[{endpoint:{url:"https://drs-fips.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:c}]},{conditions:o,type:b,rules:[{conditions:[l],type:b,rules:[{endpoint:{url:"https://drs.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"DualStack is enabled but this partition does not support DualStack",type:c}]},{endpoint:{url:"https://drs.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-dynamodb-streams/src/endpoint/ruleset.ts b/clients/client-dynamodb-streams/src/endpoint/ruleset.ts index 1cbfa2bf2ca8..d65b32b255ae 100644 --- a/clients/client-dynamodb-streams/src/endpoint/ruleset.ts +++ b/clients/client-dynamodb-streams/src/endpoint/ruleset.ts @@ -6,30 +6,29 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; or see "smithy.rules#endpointRuleSet" in codegen/sdk-codegen/aws-models/dynamodb-streams.json */ -const w="fn", -x="argv", -y="ref"; +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="stringEquals", -k={[y]:"Region"}, -l={[y]:"Endpoint"}, -m={[w]:"booleanEquals",[x]:[{[y]:"UseFIPS"},true]}, -n={[w]:"booleanEquals",[x]:[{[y]:"UseDualStack"},true]}, +d="PartitionResult", +e="tree", +f="error", +g="endpoint", +h="getAttr", +i="stringEquals", +j={"required":true,"default":false,"type":"Boolean"}, +k={[x]:"Region"}, +l={[x]:"Endpoint"}, +m={[v]:"booleanEquals",[w]:[{[x]:"UseFIPS"},true]}, +n={[v]:"booleanEquals",[w]:[{[x]:"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"]}]}, +p={[v]:"booleanEquals",[w]:[true,{[v]:h,[w]:[{[x]:d},"supportsFIPS"]}]}, +q={[x]:d}, +r={[v]:"booleanEquals",[w]:[true,{[v]:h,[w]:[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}]}]}]}; +u=[n]; +const _data={version:"1.0",parameters:{Region:{required:a,type:c},UseDualStack:j,UseFIPS:j,Endpoint:{required:b,type:c}},rules:[{conditions:[{[v]:"aws.partition",[w]:[k],assign:d}],type:e,rules:[{conditions:[{[v]:"isSet",[w]:[l]}],type:e,rules:[{conditions:t,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:f},{type:e,rules:[{conditions:u,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:f},{endpoint:{url:l,properties:o,headers:o},type:g}]}]},{conditions:[m,n],type:e,rules:[{conditions:[p,r],type:e,rules:[{endpoint:{url:"https://streams.dynamodb-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:o,headers:o},type:g}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:f}]},{conditions:t,type:e,rules:[{conditions:[p],type:e,rules:[{type:e,rules:[{conditions:[{[v]:i,[w]:["aws-us-gov",{[v]:h,[w]:[q,"name"]}]}],endpoint:s,type:g},{endpoint:{url:"https://streams.dynamodb-fips.{Region}.{PartitionResult#dnsSuffix}",properties:o,headers:o},type:g}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:f}]},{conditions:u,type:e,rules:[{conditions:[r],type:e,rules:[{endpoint:{url:"https://streams.dynamodb.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:o,headers:o},type:g}]},{error:"DualStack is enabled but this partition does not support DualStack",type:f}]},{type:e,rules:[{conditions:[{[v]:i,[w]:[k,"local"]}],endpoint:{url:"http://localhost:8000",properties:{authSchemes:[{name:"sigv4",signingRegion:"us-east-1",signingName:"dynamodb"}]},headers:o},type:g},{endpoint:s,type:g}]}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-dynamodb/src/endpoint/ruleset.ts b/clients/client-dynamodb/src/endpoint/ruleset.ts index ddefbbb27b46..dd099e9f5b4a 100644 --- a/clients/client-dynamodb/src/endpoint/ruleset.ts +++ b/clients/client-dynamodb/src/endpoint/ruleset.ts @@ -6,30 +6,29 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; or see "smithy.rules#endpointRuleSet" in codegen/sdk-codegen/aws-models/dynamodb.json */ -const w="fn", -x="argv", -y="ref"; +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="stringEquals", -k={[y]:"Region"}, -l={[y]:"Endpoint"}, -m={[w]:"booleanEquals",[x]:[{[y]:"UseFIPS"},true]}, -n={[w]:"booleanEquals",[x]:[{[y]:"UseDualStack"},true]}, +d="PartitionResult", +e="tree", +f="error", +g="endpoint", +h="getAttr", +i="stringEquals", +j={"required":true,"default":false,"type":"Boolean"}, +k={[x]:"Region"}, +l={[x]:"Endpoint"}, +m={[v]:"booleanEquals",[w]:[{[x]:"UseFIPS"},true]}, +n={[v]:"booleanEquals",[w]:[{[x]:"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"]}]}, +p={[v]:"booleanEquals",[w]:[true,{[v]:h,[w]:[{[x]:d},"supportsFIPS"]}]}, +q={[x]:d}, +r={[v]:"booleanEquals",[w]:[true,{[v]:h,[w]:[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}]}]}]}; +u=[n]; +const _data={version:"1.0",parameters:{Region:{required:a,type:c},UseDualStack:j,UseFIPS:j,Endpoint:{required:b,type:c}},rules:[{conditions:[{[v]:"aws.partition",[w]:[k],assign:d}],type:e,rules:[{conditions:[{[v]:"isSet",[w]:[l]}],type:e,rules:[{conditions:t,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:f},{type:e,rules:[{conditions:u,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:f},{endpoint:{url:l,properties:o,headers:o},type:g}]}]},{conditions:[m,n],type:e,rules:[{conditions:[p,r],type:e,rules:[{endpoint:{url:"https://dynamodb-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:o,headers:o},type:g}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:f}]},{conditions:t,type:e,rules:[{conditions:[p],type:e,rules:[{type:e,rules:[{conditions:[{[v]:i,[w]:["aws-us-gov",{[v]:h,[w]:[q,"name"]}]}],endpoint:s,type:g},{endpoint:{url:"https://dynamodb-fips.{Region}.{PartitionResult#dnsSuffix}",properties:o,headers:o},type:g}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:f}]},{conditions:u,type:e,rules:[{conditions:[r],type:e,rules:[{endpoint:{url:"https://dynamodb.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:o,headers:o},type:g}]},{error:"DualStack is enabled but this partition does not support DualStack",type:f}]},{type:e,rules:[{conditions:[{[v]:i,[w]:[k,"local"]}],endpoint:{url:"http://localhost:8000",properties:{authSchemes:[{name:"sigv4",signingRegion:"us-east-1",signingName:"dynamodb"}]},headers:o},type:g},{endpoint:s,type:g}]}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-ebs/src/endpoint/ruleset.ts b/clients/client-ebs/src/endpoint/ruleset.ts index d6ff0ab049f8..8127cfcb530c 100644 --- a/clients/client-ebs/src/endpoint/ruleset.ts +++ b/clients/client-ebs/src/endpoint/ruleset.ts @@ -6,26 +6,24 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; 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}]}]}; +const p="required", +q="fn", +r="argv", +s="ref"; +const a="PartitionResult", +b="tree", +c="error", +d="endpoint", +e={[p]:false,"type":"String"}, +f={[p]:true,"default":false,"type":"Boolean"}, +g={[s]:"Endpoint"}, +h={[q]:"booleanEquals",[r]:[{[s]:"UseFIPS"},true]}, +i={[q]:"booleanEquals",[r]:[{[s]:"UseDualStack"},true]}, +j={}, +k={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsFIPS"]}]}, +l={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsDualStack"]}]}, +m=[g], +n=[h], +o=[i]; +const _data={version:"1.0",parameters:{Region:e,UseDualStack:f,UseFIPS:f,Endpoint:e},rules:[{conditions:[{[q]:"aws.partition",[r]:[{[s]:"Region"}],assign:a}],type:b,rules:[{conditions:[{[q]:"isSet",[r]:m},{[q]:"parseURL",[r]:m,assign:"url"}],type:b,rules:[{conditions:n,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:c},{type:b,rules:[{conditions:o,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:c},{endpoint:{url:g,properties:j,headers:j},type:d}]}]},{conditions:[h,i],type:b,rules:[{conditions:[k,l],type:b,rules:[{endpoint:{url:"https://ebs-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:c}]},{conditions:n,type:b,rules:[{conditions:[k],type:b,rules:[{type:b,rules:[{endpoint:{url:"https://ebs-fips.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:c}]},{conditions:o,type:b,rules:[{conditions:[l],type:b,rules:[{endpoint:{url:"https://ebs.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"DualStack is enabled but this partition does not support DualStack",type:c}]},{endpoint:{url:"https://ebs.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-ec2-instance-connect/src/endpoint/ruleset.ts b/clients/client-ec2-instance-connect/src/endpoint/ruleset.ts index 7b3f5c06ab95..02438581a3c3 100644 --- a/clients/client-ec2-instance-connect/src/endpoint/ruleset.ts +++ b/clients/client-ec2-instance-connect/src/endpoint/ruleset.ts @@ -6,26 +6,24 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; 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}]}]}; +const p="required", +q="fn", +r="argv", +s="ref"; +const a="PartitionResult", +b="tree", +c="error", +d="endpoint", +e={[p]:false,"type":"String"}, +f={[p]:true,"default":false,"type":"Boolean"}, +g={[s]:"Endpoint"}, +h={[q]:"booleanEquals",[r]:[{[s]:"UseFIPS"},true]}, +i={[q]:"booleanEquals",[r]:[{[s]:"UseDualStack"},true]}, +j={}, +k={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsFIPS"]}]}, +l={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsDualStack"]}]}, +m=[g], +n=[h], +o=[i]; +const _data={version:"1.0",parameters:{Region:e,UseDualStack:f,UseFIPS:f,Endpoint:e},rules:[{conditions:[{[q]:"aws.partition",[r]:[{[s]:"Region"}],assign:a}],type:b,rules:[{conditions:[{[q]:"isSet",[r]:m},{[q]:"parseURL",[r]:m,assign:"url"}],type:b,rules:[{conditions:n,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:c},{type:b,rules:[{conditions:o,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:c},{endpoint:{url:g,properties:j,headers:j},type:d}]}]},{conditions:[h,i],type:b,rules:[{conditions:[k,l],type:b,rules:[{endpoint:{url:"https://ec2-instance-connect-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:c}]},{conditions:n,type:b,rules:[{conditions:[k],type:b,rules:[{endpoint:{url:"https://ec2-instance-connect-fips.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]},{error:"FIPS is enabled but this partition does not support FIPS",type:c}]},{conditions:o,type:b,rules:[{conditions:[l],type:b,rules:[{endpoint:{url:"https://ec2-instance-connect.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"DualStack is enabled but this partition does not support DualStack",type:c}]},{endpoint:{url:"https://ec2-instance-connect.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-ec2/src/endpoint/ruleset.ts b/clients/client-ec2/src/endpoint/ruleset.ts index ca71a8e5b1d7..9f8d74f3ee83 100644 --- a/clients/client-ec2/src/endpoint/ruleset.ts +++ b/clients/client-ec2/src/endpoint/ruleset.ts @@ -6,28 +6,27 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; or see "smithy.rules#endpointRuleSet" in codegen/sdk-codegen/aws-models/ec2.json */ -const u="fn", -v="argv", -w="ref"; +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="getAttr", -j={[w]:"Endpoint"}, -k={[u]:"booleanEquals",[v]:[{[w]:"UseFIPS"},true]}, -l={[u]:"booleanEquals",[v]:[{[w]:"UseDualStack"},true]}, +d="PartitionResult", +e="tree", +f="error", +g="endpoint", +h="getAttr", +i={"required":true,"default":false,"type":"Boolean"}, +j={[v]:"Endpoint"}, +k={[t]:"booleanEquals",[u]:[{[v]:"UseFIPS"},true]}, +l={[t]:"booleanEquals",[u]:[{[v]:"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"]}]}, +n={[t]:"booleanEquals",[u]:[true,{[t]:h,[u]:[{[v]:d},"supportsFIPS"]}]}, +o={[v]:d}, +p={[t]:"booleanEquals",[u]:[true,{[t]:h,[u]:[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}]}]}; +s=[l]; +const _data={version:"1.0",parameters:{Region:{required:a,type:c},UseDualStack:i,UseFIPS:i,Endpoint:{required:b,type:c}},rules:[{conditions:[{[t]:"aws.partition",[u]:[{[v]:"Region"}],assign:d}],type:e,rules:[{conditions:[{[t]:"isSet",[u]:[j]}],type:e,rules:[{conditions:r,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:f},{type:e,rules:[{conditions:s,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:f},{endpoint:{url:j,properties:m,headers:m},type:g}]}]},{conditions:[k,l],type:e,rules:[{conditions:[n,p],type:e,rules:[{endpoint:{url:"https://ec2-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:m,headers:m},type:g}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:f}]},{conditions:r,type:e,rules:[{conditions:[n],type:e,rules:[{type:e,rules:[{conditions:[{[t]:"stringEquals",[u]:["aws-us-gov",{[t]:h,[u]:[o,"name"]}]}],endpoint:q,type:g},{endpoint:{url:"https://ec2-fips.{Region}.{PartitionResult#dnsSuffix}",properties:m,headers:m},type:g}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:f}]},{conditions:s,type:e,rules:[{conditions:[p],type:e,rules:[{endpoint:{url:"https://ec2.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:m,headers:m},type:g}]},{error:"DualStack is enabled but this partition does not support DualStack",type:f}]},{endpoint:q,type:g}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-ecr-public/src/endpoint/ruleset.ts b/clients/client-ecr-public/src/endpoint/ruleset.ts index 93c3df1a3d8d..eb3123bd0f2b 100644 --- a/clients/client-ecr-public/src/endpoint/ruleset.ts +++ b/clients/client-ecr-public/src/endpoint/ruleset.ts @@ -6,26 +6,24 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; 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}]}]}; +const p="required", +q="fn", +r="argv", +s="ref"; +const a="PartitionResult", +b="tree", +c="error", +d="endpoint", +e={[p]:false,"type":"String"}, +f={[p]:true,"default":false,"type":"Boolean"}, +g={[s]:"Endpoint"}, +h={[q]:"booleanEquals",[r]:[{[s]:"UseFIPS"},true]}, +i={[q]:"booleanEquals",[r]:[{[s]:"UseDualStack"},true]}, +j={}, +k={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsFIPS"]}]}, +l={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsDualStack"]}]}, +m=[g], +n=[h], +o=[i]; +const _data={version:"1.0",parameters:{Region:e,UseDualStack:f,UseFIPS:f,Endpoint:e},rules:[{conditions:[{[q]:"aws.partition",[r]:[{[s]:"Region"}],assign:a}],type:b,rules:[{conditions:[{[q]:"isSet",[r]:m},{[q]:"parseURL",[r]:m,assign:"url"}],type:b,rules:[{conditions:n,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:c},{type:b,rules:[{conditions:o,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:c},{endpoint:{url:g,properties:j,headers:j},type:d}]}]},{conditions:[h,i],type:b,rules:[{conditions:[k,l],type:b,rules:[{endpoint:{url:"https://api.ecr-public-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:c}]},{conditions:n,type:b,rules:[{conditions:[k],type:b,rules:[{endpoint:{url:"https://api.ecr-public-fips.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]},{error:"FIPS is enabled but this partition does not support FIPS",type:c}]},{conditions:o,type:b,rules:[{conditions:[l],type:b,rules:[{endpoint:{url:"https://api.ecr-public.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"DualStack is enabled but this partition does not support DualStack",type:c}]},{endpoint:{url:"https://api.ecr-public.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-ecr/src/endpoint/ruleset.ts b/clients/client-ecr/src/endpoint/ruleset.ts index 4f8f7ad77a13..eda7e733125d 100644 --- a/clients/client-ecr/src/endpoint/ruleset.ts +++ b/clients/client-ecr/src/endpoint/ruleset.ts @@ -6,30 +6,28 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; 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}]}]}; +const t="required", +u="fn", +v="argv", +w="ref"; +const a="PartitionResult", +b="tree", +c="error", +d="endpoint", +e="stringEquals", +f={[t]:false,"type":"String"}, +g={[t]:true,"default":false,"type":"Boolean"}, +h={[w]:"Region"}, +i={[w]:"Endpoint"}, +j={[u]:"booleanEquals",[v]:[{[w]:"UseFIPS"},true]}, +k={[u]:"booleanEquals",[v]:[{[w]:"UseDualStack"},true]}, +l={}, +m={[u]:"booleanEquals",[v]:[true,{[u]:"getAttr",[v]:[{[w]:a},"supportsFIPS"]}]}, +n={[u]:"booleanEquals",[v]:[true,{[u]:"getAttr",[v]:[{[w]:a},"supportsDualStack"]}]}, +o={[u]:"getAttr",[v]:[{[w]:a},"name"]}, +p={"url":"https://ecr-fips.{Region}.{PartitionResult#dnsSuffix}","properties":{},"headers":{}}, +q=[i], +r=[j], +s=[k]; +const _data={version:"1.0",parameters:{Region:f,UseDualStack:g,UseFIPS:g,Endpoint:f},rules:[{conditions:[{[u]:"aws.partition",[v]:[h],assign:a}],type:b,rules:[{conditions:[{[u]:"isSet",[v]:q},{[u]:"parseURL",[v]:q,assign:"url"}],type:b,rules:[{conditions:r,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:c},{type:b,rules:[{conditions:s,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:c},{endpoint:{url:i,properties:l,headers:l},type:d}]}]},{conditions:[j,k],type:b,rules:[{conditions:[m,n],type:b,rules:[{endpoint:{url:"https://api.ecr-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:d}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:c}]},{conditions:r,type:b,rules:[{conditions:[m],type:b,rules:[{type:b,rules:[{conditions:[{[u]:e,[v]:[h,"dkr-us-east-2"]}],endpoint:{url:"https://ecr-fips.us-east-2.amazonaws.com",properties:l,headers:l},type:d},{conditions:[{[u]:e,[v]:[h,"dkr-us-east-1"]}],endpoint:{url:"https://ecr-fips.us-east-1.amazonaws.com",properties:l,headers:l},type:d},{conditions:[{[u]:e,[v]:[h,"dkr-us-west-2"]}],endpoint:{url:"https://ecr-fips.us-west-2.amazonaws.com",properties:l,headers:l},type:d},{conditions:[{[u]:e,[v]:[h,"dkr-us-west-1"]}],endpoint:{url:"https://ecr-fips.us-west-1.amazonaws.com",properties:l,headers:l},type:d},{conditions:[{[u]:e,[v]:["aws",o]}],endpoint:p,type:d},{conditions:[{[u]:e,[v]:[h,"dkr-us-gov-east-1"]}],endpoint:{url:"https://ecr-fips.us-gov-east-1.amazonaws.com",properties:l,headers:l},type:d},{conditions:[{[u]:e,[v]:[h,"dkr-us-gov-west-1"]}],endpoint:{url:"https://ecr-fips.us-gov-west-1.amazonaws.com",properties:l,headers:l},type:d},{conditions:[{[u]:e,[v]:["aws-us-gov",o]}],endpoint:p,type:d},{endpoint:{url:"https://api.ecr-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:d}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:c}]},{conditions:s,type:b,rules:[{conditions:[n],type:b,rules:[{endpoint:{url:"https://api.ecr.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:d}]},{error:"DualStack is enabled but this partition does not support DualStack",type:c}]},{endpoint:{url:"https://api.ecr.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:d}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-ecs/src/endpoint/ruleset.ts b/clients/client-ecs/src/endpoint/ruleset.ts index 4125502359a7..0e5840c5780f 100644 --- a/clients/client-ecs/src/endpoint/ruleset.ts +++ b/clients/client-ecs/src/endpoint/ruleset.ts @@ -6,25 +6,24 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; or see "smithy.rules#endpointRuleSet" in codegen/sdk-codegen/aws-models/ecs.json */ -const r="fn", -s="argv", -t="ref"; +const q="fn", +r="argv", +s="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]}, +d="PartitionResult", +e="tree", +f="error", +g="endpoint", +h={"required":true,"default":false,"type":"Boolean"}, +i={[s]:"Endpoint"}, +j={[q]:"booleanEquals",[r]:[{[s]:"UseFIPS"},true]}, +k={[q]:"booleanEquals",[r]:[{[s]:"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"]}]}, +m={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:d},"supportsFIPS"]}]}, +n={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:d},"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}]}]}; +p=[k]; +const _data={version:"1.0",parameters:{Region:{required:a,type:c},UseDualStack:h,UseFIPS:h,Endpoint:{required:b,type:c}},rules:[{conditions:[{[q]:"aws.partition",[r]:[{[s]:"Region"}],assign:d}],type:e,rules:[{conditions:[{[q]:"isSet",[r]:[i]}],type:e,rules:[{conditions:o,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:f},{type:e,rules:[{conditions:p,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:f},{endpoint:{url:i,properties:l,headers:l},type:g}]}]},{conditions:[j,k],type:e,rules:[{conditions:[m,n],type:e,rules:[{endpoint:{url:"https://ecs-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:g}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:f}]},{conditions:o,type:e,rules:[{conditions:[m],type:e,rules:[{type:e,rules:[{endpoint:{url:"https://ecs-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:g}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:f}]},{conditions:p,type:e,rules:[{conditions:[n],type:e,rules:[{endpoint:{url:"https://ecs.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:g}]},{error:"DualStack is enabled but this partition does not support DualStack",type:f}]},{endpoint:{url:"https://ecs.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:g}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-efs/src/endpoint/ruleset.ts b/clients/client-efs/src/endpoint/ruleset.ts index 95c7c4c500a5..bdce9635c310 100644 --- a/clients/client-efs/src/endpoint/ruleset.ts +++ b/clients/client-efs/src/endpoint/ruleset.ts @@ -6,25 +6,24 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; or see "smithy.rules#endpointRuleSet" in codegen/sdk-codegen/aws-models/efs.json */ -const r="fn", -s="argv", -t="ref"; +const q="fn", +r="argv", +s="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]}, +d="PartitionResult", +e="tree", +f="error", +g="endpoint", +h={"required":true,"default":false,"type":"Boolean"}, +i={[s]:"Endpoint"}, +j={[q]:"booleanEquals",[r]:[{[s]:"UseFIPS"},true]}, +k={[q]:"booleanEquals",[r]:[{[s]:"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"]}]}, +m={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:d},"supportsFIPS"]}]}, +n={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:d},"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}]}]}; +p=[k]; +const _data={version:"1.0",parameters:{Region:{required:a,type:c},UseDualStack:h,UseFIPS:h,Endpoint:{required:b,type:c}},rules:[{conditions:[{[q]:"aws.partition",[r]:[{[s]:"Region"}],assign:d}],type:e,rules:[{conditions:[{[q]:"isSet",[r]:[i]}],type:e,rules:[{conditions:o,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:f},{type:e,rules:[{conditions:p,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:f},{endpoint:{url:i,properties:l,headers:l},type:g}]}]},{conditions:[j,k],type:e,rules:[{conditions:[m,n],type:e,rules:[{endpoint:{url:"https://elasticfilesystem-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:g}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:f}]},{conditions:o,type:e,rules:[{conditions:[m],type:e,rules:[{type:e,rules:[{endpoint:{url:"https://elasticfilesystem-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:g}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:f}]},{conditions:p,type:e,rules:[{conditions:[n],type:e,rules:[{endpoint:{url:"https://elasticfilesystem.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:g}]},{error:"DualStack is enabled but this partition does not support DualStack",type:f}]},{endpoint:{url:"https://elasticfilesystem.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:g}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-eks/src/endpoint/ruleset.ts b/clients/client-eks/src/endpoint/ruleset.ts index 52bde98249f7..0d02e7680e4c 100644 --- a/clients/client-eks/src/endpoint/ruleset.ts +++ b/clients/client-eks/src/endpoint/ruleset.ts @@ -6,28 +6,27 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; or see "smithy.rules#endpointRuleSet" in codegen/sdk-codegen/aws-models/eks.json */ -const u="fn", -v="argv", -w="ref"; +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={[w]:"Endpoint"}, -k={[u]:"booleanEquals",[v]:[{[w]:"UseFIPS"},true]}, -l={[u]:"booleanEquals",[v]:[{[w]:"UseDualStack"},true]}, +d="PartitionResult", +e="tree", +f="error", +g="endpoint", +h="stringEquals", +i={"required":true,"default":false,"type":"Boolean"}, +j={[v]:"Endpoint"}, +k={[t]:"booleanEquals",[u]:[{[v]:"UseFIPS"},true]}, +l={[t]:"booleanEquals",[u]:[{[v]:"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"]}, +n={[t]:"booleanEquals",[u]:[true,{[t]:"getAttr",[u]:[{[v]:d},"supportsFIPS"]}]}, +o={[t]:"booleanEquals",[u]:[true,{[t]:"getAttr",[u]:[{[v]:d},"supportsDualStack"]}]}, +p={[t]:"getAttr",[u]:[{[v]:d},"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}]}]}; +s=[l]; +const _data={version:"1.0",parameters:{Region:{required:a,type:c},UseDualStack:i,UseFIPS:i,Endpoint:{required:b,type:c}},rules:[{conditions:[{[t]:"aws.partition",[u]:[{[v]:"Region"}],assign:d}],type:e,rules:[{conditions:[{[t]:"isSet",[u]:[j]}],type:e,rules:[{conditions:r,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:f},{type:e,rules:[{conditions:s,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:f},{endpoint:{url:j,properties:m,headers:m},type:g}]}]},{conditions:[k,l],type:e,rules:[{conditions:[n,o],type:e,rules:[{endpoint:{url:"https://eks-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:m,headers:m},type:g}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:f}]},{conditions:r,type:e,rules:[{conditions:[n],type:e,rules:[{type:e,rules:[{conditions:[{[t]:h,[u]:["aws",p]}],endpoint:{url:"https://fips.eks.{Region}.{PartitionResult#dnsSuffix}",properties:m,headers:m},type:g},{conditions:[{[t]:h,[u]:["aws-us-gov",p]}],endpoint:q,type:g},{endpoint:{url:"https://eks-fips.{Region}.{PartitionResult#dnsSuffix}",properties:m,headers:m},type:g}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:f}]},{conditions:s,type:e,rules:[{conditions:[o],type:e,rules:[{endpoint:{url:"https://eks.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:m,headers:m},type:g}]},{error:"DualStack is enabled but this partition does not support DualStack",type:f}]},{endpoint:q,type:g}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-elastic-beanstalk/src/endpoint/ruleset.ts b/clients/client-elastic-beanstalk/src/endpoint/ruleset.ts index 2cf42586c1ab..edfad443485f 100644 --- a/clients/client-elastic-beanstalk/src/endpoint/ruleset.ts +++ b/clients/client-elastic-beanstalk/src/endpoint/ruleset.ts @@ -6,26 +6,24 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; 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}]}]}; +const p="required", +q="fn", +r="argv", +s="ref"; +const a="PartitionResult", +b="tree", +c="error", +d="endpoint", +e={[p]:false,"type":"String"}, +f={[p]:true,"default":false,"type":"Boolean"}, +g={[s]:"Endpoint"}, +h={[q]:"booleanEquals",[r]:[{[s]:"UseFIPS"},true]}, +i={[q]:"booleanEquals",[r]:[{[s]:"UseDualStack"},true]}, +j={}, +k={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsFIPS"]}]}, +l={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsDualStack"]}]}, +m=[g], +n=[h], +o=[i]; +const _data={version:"1.0",parameters:{Region:e,UseDualStack:f,UseFIPS:f,Endpoint:e},rules:[{conditions:[{[q]:"aws.partition",[r]:[{[s]:"Region"}],assign:a}],type:b,rules:[{conditions:[{[q]:"isSet",[r]:m},{[q]:"parseURL",[r]:m,assign:"url"}],type:b,rules:[{conditions:n,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:c},{type:b,rules:[{conditions:o,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:c},{endpoint:{url:g,properties:j,headers:j},type:d}]}]},{conditions:[h,i],type:b,rules:[{conditions:[k,l],type:b,rules:[{endpoint:{url:"https://elasticbeanstalk-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:c}]},{conditions:n,type:b,rules:[{conditions:[k],type:b,rules:[{type:b,rules:[{endpoint:{url:"https://elasticbeanstalk-fips.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:c}]},{conditions:o,type:b,rules:[{conditions:[l],type:b,rules:[{endpoint:{url:"https://elasticbeanstalk.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"DualStack is enabled but this partition does not support DualStack",type:c}]},{endpoint:{url:"https://elasticbeanstalk.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-elastic-inference/src/endpoint/ruleset.ts b/clients/client-elastic-inference/src/endpoint/ruleset.ts index 185bdfb28576..1fca0f7c8052 100644 --- a/clients/client-elastic-inference/src/endpoint/ruleset.ts +++ b/clients/client-elastic-inference/src/endpoint/ruleset.ts @@ -6,26 +6,24 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; 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}]}]}; +const p="required", +q="fn", +r="argv", +s="ref"; +const a="PartitionResult", +b="tree", +c="error", +d="endpoint", +e={[p]:false,"type":"String"}, +f={[p]:true,"default":false,"type":"Boolean"}, +g={[s]:"Endpoint"}, +h={[q]:"booleanEquals",[r]:[{[s]:"UseFIPS"},true]}, +i={[q]:"booleanEquals",[r]:[{[s]:"UseDualStack"},true]}, +j={}, +k={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsFIPS"]}]}, +l={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsDualStack"]}]}, +m=[g], +n=[h], +o=[i]; +const _data={version:"1.0",parameters:{Region:e,UseDualStack:f,UseFIPS:f,Endpoint:e},rules:[{conditions:[{[q]:"aws.partition",[r]:[{[s]:"Region"}],assign:a}],type:b,rules:[{conditions:[{[q]:"isSet",[r]:m},{[q]:"parseURL",[r]:m,assign:"url"}],type:b,rules:[{conditions:n,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:c},{type:b,rules:[{conditions:o,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:c},{endpoint:{url:g,properties:j,headers:j},type:d}]}]},{conditions:[h,i],type:b,rules:[{conditions:[k,l],type:b,rules:[{endpoint:{url:"https://api.elastic-inference-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:c}]},{conditions:n,type:b,rules:[{conditions:[k],type:b,rules:[{type:b,rules:[{endpoint:{url:"https://api.elastic-inference-fips.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:c}]},{conditions:o,type:b,rules:[{conditions:[l],type:b,rules:[{endpoint:{url:"https://api.elastic-inference.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"DualStack is enabled but this partition does not support DualStack",type:c}]},{endpoint:{url:"https://api.elastic-inference.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]}; export const ruleSet: RuleSetObject = _data; 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 f7c27faac195..8be57fda6a1b 100644 --- a/clients/client-elastic-load-balancing-v2/src/endpoint/ruleset.ts +++ b/clients/client-elastic-load-balancing-v2/src/endpoint/ruleset.ts @@ -6,29 +6,27 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; 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}]}]}; +const s="required", +t="fn", +u="argv", +v="ref"; +const a="PartitionResult", +b="tree", +c="error", +d="endpoint", +e="getAttr", +f={[s]:false,"type":"String"}, +g={[s]:true,"default":false,"type":"Boolean"}, +h={[v]:"Endpoint"}, +i={[t]:"booleanEquals",[u]:[{[v]:"UseFIPS"},true]}, +j={[t]:"booleanEquals",[u]:[{[v]:"UseDualStack"},true]}, +k={}, +l={[t]:"booleanEquals",[u]:[true,{[t]:e,[u]:[{[v]:a},"supportsFIPS"]}]}, +m={[v]:a}, +n={[t]:"booleanEquals",[u]:[true,{[t]:e,[u]:[m,"supportsDualStack"]}]}, +o={"url":"https://elasticloadbalancing.{Region}.{PartitionResult#dnsSuffix}","properties":{},"headers":{}}, +p=[h], +q=[i], +r=[j]; +const _data={version:"1.0",parameters:{Region:f,UseDualStack:g,UseFIPS:g,Endpoint:f},rules:[{conditions:[{[t]:"aws.partition",[u]:[{[v]:"Region"}],assign:a}],type:b,rules:[{conditions:[{[t]:"isSet",[u]:p},{[t]:"parseURL",[u]:p,assign:"url"}],type:b,rules:[{conditions:q,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:c},{type:b,rules:[{conditions:r,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:c},{endpoint:{url:h,properties:k,headers:k},type:d}]}]},{conditions:[i,j],type:b,rules:[{conditions:[l,n],type:b,rules:[{endpoint:{url:"https://elasticloadbalancing-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:k,headers:k},type:d}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:c}]},{conditions:q,type:b,rules:[{conditions:[l],type:b,rules:[{type:b,rules:[{conditions:[{[t]:"stringEquals",[u]:["aws-us-gov",{[t]:e,[u]:[m,"name"]}]}],endpoint:o,type:d},{endpoint:{url:"https://elasticloadbalancing-fips.{Region}.{PartitionResult#dnsSuffix}",properties:k,headers:k},type:d}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:c}]},{conditions:r,type:b,rules:[{conditions:[n],type:b,rules:[{endpoint:{url:"https://elasticloadbalancing.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:k,headers:k},type:d}]},{error:"DualStack is enabled but this partition does not support DualStack",type:c}]},{endpoint:o,type:d}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-elastic-load-balancing/src/endpoint/ruleset.ts b/clients/client-elastic-load-balancing/src/endpoint/ruleset.ts index 89ff54286ec2..4d5b9f51a517 100644 --- a/clients/client-elastic-load-balancing/src/endpoint/ruleset.ts +++ b/clients/client-elastic-load-balancing/src/endpoint/ruleset.ts @@ -6,29 +6,27 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; 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}]}]}; +const s="required", +t="fn", +u="argv", +v="ref"; +const a="PartitionResult", +b="tree", +c="error", +d="endpoint", +e="getAttr", +f={[s]:false,"type":"String"}, +g={[s]:true,"default":false,"type":"Boolean"}, +h={[v]:"Endpoint"}, +i={[t]:"booleanEquals",[u]:[{[v]:"UseFIPS"},true]}, +j={[t]:"booleanEquals",[u]:[{[v]:"UseDualStack"},true]}, +k={}, +l={[t]:"booleanEquals",[u]:[true,{[t]:e,[u]:[{[v]:a},"supportsFIPS"]}]}, +m={[v]:a}, +n={[t]:"booleanEquals",[u]:[true,{[t]:e,[u]:[m,"supportsDualStack"]}]}, +o={"url":"https://elasticloadbalancing.{Region}.{PartitionResult#dnsSuffix}","properties":{},"headers":{}}, +p=[h], +q=[i], +r=[j]; +const _data={version:"1.0",parameters:{Region:f,UseDualStack:g,UseFIPS:g,Endpoint:f},rules:[{conditions:[{[t]:"aws.partition",[u]:[{[v]:"Region"}],assign:a}],type:b,rules:[{conditions:[{[t]:"isSet",[u]:p},{[t]:"parseURL",[u]:p,assign:"url"}],type:b,rules:[{conditions:q,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:c},{type:b,rules:[{conditions:r,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:c},{endpoint:{url:h,properties:k,headers:k},type:d}]}]},{conditions:[i,j],type:b,rules:[{conditions:[l,n],type:b,rules:[{endpoint:{url:"https://elasticloadbalancing-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:k,headers:k},type:d}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:c}]},{conditions:q,type:b,rules:[{conditions:[l],type:b,rules:[{type:b,rules:[{conditions:[{[t]:"stringEquals",[u]:["aws-us-gov",{[t]:e,[u]:[m,"name"]}]}],endpoint:o,type:d},{endpoint:{url:"https://elasticloadbalancing-fips.{Region}.{PartitionResult#dnsSuffix}",properties:k,headers:k},type:d}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:c}]},{conditions:r,type:b,rules:[{conditions:[n],type:b,rules:[{endpoint:{url:"https://elasticloadbalancing.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:k,headers:k},type:d}]},{error:"DualStack is enabled but this partition does not support DualStack",type:c}]},{endpoint:o,type:d}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-elastic-transcoder/src/endpoint/ruleset.ts b/clients/client-elastic-transcoder/src/endpoint/ruleset.ts index 577d69e129a8..6fa66e78e2c1 100644 --- a/clients/client-elastic-transcoder/src/endpoint/ruleset.ts +++ b/clients/client-elastic-transcoder/src/endpoint/ruleset.ts @@ -6,26 +6,24 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; 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}]}]}; +const p="required", +q="fn", +r="argv", +s="ref"; +const a="PartitionResult", +b="tree", +c="error", +d="endpoint", +e={[p]:false,"type":"String"}, +f={[p]:true,"default":false,"type":"Boolean"}, +g={[s]:"Endpoint"}, +h={[q]:"booleanEquals",[r]:[{[s]:"UseFIPS"},true]}, +i={[q]:"booleanEquals",[r]:[{[s]:"UseDualStack"},true]}, +j={}, +k={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsFIPS"]}]}, +l={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsDualStack"]}]}, +m=[g], +n=[h], +o=[i]; +const _data={version:"1.0",parameters:{Region:e,UseDualStack:f,UseFIPS:f,Endpoint:e},rules:[{conditions:[{[q]:"aws.partition",[r]:[{[s]:"Region"}],assign:a}],type:b,rules:[{conditions:[{[q]:"isSet",[r]:m},{[q]:"parseURL",[r]:m,assign:"url"}],type:b,rules:[{conditions:n,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:c},{type:b,rules:[{conditions:o,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:c},{endpoint:{url:g,properties:j,headers:j},type:d}]}]},{conditions:[h,i],type:b,rules:[{conditions:[k,l],type:b,rules:[{endpoint:{url:"https://elastictranscoder-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:c}]},{conditions:n,type:b,rules:[{conditions:[k],type:b,rules:[{type:b,rules:[{endpoint:{url:"https://elastictranscoder-fips.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:c}]},{conditions:o,type:b,rules:[{conditions:[l],type:b,rules:[{endpoint:{url:"https://elastictranscoder.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"DualStack is enabled but this partition does not support DualStack",type:c}]},{endpoint:{url:"https://elastictranscoder.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-elasticache/src/endpoint/ruleset.ts b/clients/client-elasticache/src/endpoint/ruleset.ts index 0ae25717f8d5..6b836d5a33eb 100644 --- a/clients/client-elasticache/src/endpoint/ruleset.ts +++ b/clients/client-elasticache/src/endpoint/ruleset.ts @@ -6,29 +6,27 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; 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}]}]}; +const s="required", +t="fn", +u="argv", +v="ref"; +const a="PartitionResult", +b="tree", +c="error", +d="endpoint", +e="getAttr", +f={[s]:false,"type":"String"}, +g={[s]:true,"default":false,"type":"Boolean"}, +h={[v]:"Endpoint"}, +i={[t]:"booleanEquals",[u]:[{[v]:"UseFIPS"},true]}, +j={[t]:"booleanEquals",[u]:[{[v]:"UseDualStack"},true]}, +k={}, +l={[t]:"booleanEquals",[u]:[true,{[t]:e,[u]:[{[v]:a},"supportsFIPS"]}]}, +m={[v]:a}, +n={[t]:"booleanEquals",[u]:[true,{[t]:e,[u]:[m,"supportsDualStack"]}]}, +o={"url":"https://elasticache.{Region}.{PartitionResult#dnsSuffix}","properties":{},"headers":{}}, +p=[h], +q=[i], +r=[j]; +const _data={version:"1.0",parameters:{Region:f,UseDualStack:g,UseFIPS:g,Endpoint:f},rules:[{conditions:[{[t]:"aws.partition",[u]:[{[v]:"Region"}],assign:a}],type:b,rules:[{conditions:[{[t]:"isSet",[u]:p},{[t]:"parseURL",[u]:p,assign:"url"}],type:b,rules:[{conditions:q,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:c},{type:b,rules:[{conditions:r,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:c},{endpoint:{url:h,properties:k,headers:k},type:d}]}]},{conditions:[i,j],type:b,rules:[{conditions:[l,n],type:b,rules:[{endpoint:{url:"https://elasticache-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:k,headers:k},type:d}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:c}]},{conditions:q,type:b,rules:[{conditions:[l],type:b,rules:[{type:b,rules:[{conditions:[{[t]:"stringEquals",[u]:["aws-us-gov",{[t]:e,[u]:[m,"name"]}]}],endpoint:o,type:d},{endpoint:{url:"https://elasticache-fips.{Region}.{PartitionResult#dnsSuffix}",properties:k,headers:k},type:d}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:c}]},{conditions:r,type:b,rules:[{conditions:[n],type:b,rules:[{endpoint:{url:"https://elasticache.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:k,headers:k},type:d}]},{error:"DualStack is enabled but this partition does not support DualStack",type:c}]},{endpoint:o,type:d}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-elasticsearch-service/src/endpoint/ruleset.ts b/clients/client-elasticsearch-service/src/endpoint/ruleset.ts index 146d02630f6f..5f5060c2e780 100644 --- a/clients/client-elasticsearch-service/src/endpoint/ruleset.ts +++ b/clients/client-elasticsearch-service/src/endpoint/ruleset.ts @@ -6,26 +6,24 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; 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}]}]}; +const p="required", +q="fn", +r="argv", +s="ref"; +const a="PartitionResult", +b="tree", +c="error", +d="endpoint", +e={[p]:false,"type":"String"}, +f={[p]:true,"default":false,"type":"Boolean"}, +g={[s]:"Endpoint"}, +h={[q]:"booleanEquals",[r]:[{[s]:"UseFIPS"},true]}, +i={[q]:"booleanEquals",[r]:[{[s]:"UseDualStack"},true]}, +j={}, +k={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsFIPS"]}]}, +l={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsDualStack"]}]}, +m=[g], +n=[h], +o=[i]; +const _data={version:"1.0",parameters:{Region:e,UseDualStack:f,UseFIPS:f,Endpoint:e},rules:[{conditions:[{[q]:"aws.partition",[r]:[{[s]:"Region"}],assign:a}],type:b,rules:[{conditions:[{[q]:"isSet",[r]:m},{[q]:"parseURL",[r]:m,assign:"url"}],type:b,rules:[{conditions:n,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:c},{type:b,rules:[{conditions:o,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:c},{endpoint:{url:g,properties:j,headers:j},type:d}]}]},{conditions:[h,i],type:b,rules:[{conditions:[k,l],type:b,rules:[{endpoint:{url:"https://es-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:c}]},{conditions:n,type:b,rules:[{conditions:[k],type:b,rules:[{type:b,rules:[{endpoint:{url:"https://es-fips.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:c}]},{conditions:o,type:b,rules:[{conditions:[l],type:b,rules:[{endpoint:{url:"https://es.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"DualStack is enabled but this partition does not support DualStack",type:c}]},{endpoint:{url:"https://es.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-emr-containers/src/endpoint/ruleset.ts b/clients/client-emr-containers/src/endpoint/ruleset.ts index ca488f605af2..19bc7939b6c1 100644 --- a/clients/client-emr-containers/src/endpoint/ruleset.ts +++ b/clients/client-emr-containers/src/endpoint/ruleset.ts @@ -6,26 +6,24 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; 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}]}]}; +const p="required", +q="fn", +r="argv", +s="ref"; +const a="PartitionResult", +b="tree", +c="error", +d="endpoint", +e={[p]:false,"type":"String"}, +f={[p]:true,"default":false,"type":"Boolean"}, +g={[s]:"Endpoint"}, +h={[q]:"booleanEquals",[r]:[{[s]:"UseFIPS"},true]}, +i={[q]:"booleanEquals",[r]:[{[s]:"UseDualStack"},true]}, +j={}, +k={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsFIPS"]}]}, +l={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsDualStack"]}]}, +m=[g], +n=[h], +o=[i]; +const _data={version:"1.0",parameters:{Region:e,UseDualStack:f,UseFIPS:f,Endpoint:e},rules:[{conditions:[{[q]:"aws.partition",[r]:[{[s]:"Region"}],assign:a}],type:b,rules:[{conditions:[{[q]:"isSet",[r]:m},{[q]:"parseURL",[r]:m,assign:"url"}],type:b,rules:[{conditions:n,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:c},{type:b,rules:[{conditions:o,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:c},{endpoint:{url:g,properties:j,headers:j},type:d}]}]},{conditions:[h,i],type:b,rules:[{conditions:[k,l],type:b,rules:[{endpoint:{url:"https://emr-containers-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:c}]},{conditions:n,type:b,rules:[{conditions:[k],type:b,rules:[{type:b,rules:[{endpoint:{url:"https://emr-containers-fips.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:c}]},{conditions:o,type:b,rules:[{conditions:[l],type:b,rules:[{endpoint:{url:"https://emr-containers.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"DualStack is enabled but this partition does not support DualStack",type:c}]},{endpoint:{url:"https://emr-containers.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-emr-serverless/src/endpoint/ruleset.ts b/clients/client-emr-serverless/src/endpoint/ruleset.ts index 4aee022f86e2..68f9d5541276 100644 --- a/clients/client-emr-serverless/src/endpoint/ruleset.ts +++ b/clients/client-emr-serverless/src/endpoint/ruleset.ts @@ -6,26 +6,24 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; 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}]}]}; +const p="required", +q="fn", +r="argv", +s="ref"; +const a="PartitionResult", +b="tree", +c="error", +d="endpoint", +e={[p]:false,"type":"String"}, +f={[p]:true,"default":false,"type":"Boolean"}, +g={[s]:"Endpoint"}, +h={[q]:"booleanEquals",[r]:[{[s]:"UseFIPS"},true]}, +i={[q]:"booleanEquals",[r]:[{[s]:"UseDualStack"},true]}, +j={}, +k={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsFIPS"]}]}, +l={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsDualStack"]}]}, +m=[g], +n=[h], +o=[i]; +const _data={version:"1.0",parameters:{Region:e,UseDualStack:f,UseFIPS:f,Endpoint:e},rules:[{conditions:[{[q]:"aws.partition",[r]:[{[s]:"Region"}],assign:a}],type:b,rules:[{conditions:[{[q]:"isSet",[r]:m},{[q]:"parseURL",[r]:m,assign:"url"}],type:b,rules:[{conditions:n,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:c},{type:b,rules:[{conditions:o,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:c},{endpoint:{url:g,properties:j,headers:j},type:d}]}]},{conditions:[h,i],type:b,rules:[{conditions:[k,l],type:b,rules:[{endpoint:{url:"https://emr-serverless-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:c}]},{conditions:n,type:b,rules:[{conditions:[k],type:b,rules:[{type:b,rules:[{endpoint:{url:"https://emr-serverless-fips.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:c}]},{conditions:o,type:b,rules:[{conditions:[l],type:b,rules:[{endpoint:{url:"https://emr-serverless.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"DualStack is enabled but this partition does not support DualStack",type:c}]},{endpoint:{url:"https://emr-serverless.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-emr/src/endpoint/ruleset.ts b/clients/client-emr/src/endpoint/ruleset.ts index e5c049da1f88..908066149255 100644 --- a/clients/client-emr/src/endpoint/ruleset.ts +++ b/clients/client-emr/src/endpoint/ruleset.ts @@ -6,29 +6,27 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; 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}]}]}; +const s="required", +t="fn", +u="argv", +v="ref"; +const a="PartitionResult", +b="tree", +c="error", +d="endpoint", +e="getAttr", +f={[s]:false,"type":"String"}, +g={[s]:true,"default":false,"type":"Boolean"}, +h={[v]:"Endpoint"}, +i={[t]:"booleanEquals",[u]:[{[v]:"UseFIPS"},true]}, +j={[t]:"booleanEquals",[u]:[{[v]:"UseDualStack"},true]}, +k={}, +l={[t]:"booleanEquals",[u]:[true,{[t]:e,[u]:[{[v]:a},"supportsFIPS"]}]}, +m={[v]:a}, +n={[t]:"booleanEquals",[u]:[true,{[t]:e,[u]:[m,"supportsDualStack"]}]}, +o={"url":"https://elasticmapreduce.{Region}.{PartitionResult#dnsSuffix}","properties":{},"headers":{}}, +p=[h], +q=[i], +r=[j]; +const _data={version:"1.0",parameters:{Region:f,UseDualStack:g,UseFIPS:g,Endpoint:f},rules:[{conditions:[{[t]:"aws.partition",[u]:[{[v]:"Region"}],assign:a}],type:b,rules:[{conditions:[{[t]:"isSet",[u]:p},{[t]:"parseURL",[u]:p,assign:"url"}],type:b,rules:[{conditions:q,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:c},{type:b,rules:[{conditions:r,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:c},{endpoint:{url:h,properties:k,headers:k},type:d}]}]},{conditions:[i,j],type:b,rules:[{conditions:[l,n],type:b,rules:[{endpoint:{url:"https://elasticmapreduce-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:k,headers:k},type:d}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:c}]},{conditions:q,type:b,rules:[{conditions:[l],type:b,rules:[{type:b,rules:[{conditions:[{[t]:"stringEquals",[u]:["aws-us-gov",{[t]:e,[u]:[m,"name"]}]}],endpoint:o,type:d},{endpoint:{url:"https://elasticmapreduce-fips.{Region}.{PartitionResult#dnsSuffix}",properties:k,headers:k},type:d}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:c}]},{conditions:r,type:b,rules:[{conditions:[n],type:b,rules:[{endpoint:{url:"https://elasticmapreduce.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:k,headers:k},type:d}]},{error:"DualStack is enabled but this partition does not support DualStack",type:c}]},{endpoint:o,type:d}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-eventbridge/src/endpoint/ruleset.ts b/clients/client-eventbridge/src/endpoint/ruleset.ts index 40414b834e80..1e02acd38e53 100644 --- a/clients/client-eventbridge/src/endpoint/ruleset.ts +++ b/clients/client-eventbridge/src/endpoint/ruleset.ts @@ -6,36 +6,37 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; or see "smithy.rules#endpointRuleSet" in codegen/sdk-codegen/aws-models/eventbridge.json */ -const C="fn", -D="argv", -E="ref"; +const B="required", +C="type", +D="fn", +E="argv", +F="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"}, +c="PartitionResult", +d="tree", +e="isSet", +f="booleanEquals", +g="endpoint", +h="error", +i="stringEquals", +j={[B]:false,[C]:"String"}, +k={[B]:true,"default":false,[C]:"Boolean"}, +l={[F]:"Region"}, +m={[F]:"EndpointId"}, +n={[F]:"UseFIPS"}, +o={[D]:e,[E]:[{[F]:"Endpoint"}]}, +p={[F]:"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}]}]}; +s={[D]:f,[E]:[{[F]:"UseDualStack"},true]}, +t={[D]:f,[E]:[true,{[D]:"getAttr",[E]:[{[F]:c},"supportsDualStack"]}]}, +u={[h]:"DualStack is enabled but this partition does not support DualStack",[C]:h}, +v={[D]:f,[E]:[n,true]}, +w={[D]:f,[E]:[true,{[D]:"getAttr",[E]:[{[F]:c},"supportsFIPS"]}]}, +x=[p], +y=[s], +z=[t], +A=[v]; +const _data={version:"1.0",parameters:{Region:j,UseDualStack:k,UseFIPS:k,Endpoint:j,EndpointId:j},rules:[{conditions:[{[D]:"aws.partition",[E]:[l],assign:c}],[C]:d,rules:[{conditions:[{[D]:e,[E]:[m]}],[C]:d,rules:[{conditions:[{[D]:"isValidHostLabel",[E]:[m,b]}],[C]:d,rules:[{[C]:d,rules:[{conditions:[{[D]:f,[E]:[n,a]}],[C]:d,rules:[{[C]:d,rules:[{conditions:[o],endpoint:{url:p,properties:q,headers:r},[C]:g},{conditions:y,[C]:d,rules:[{conditions:z,[C]:d,rules:[{endpoint:{url:"https://{EndpointId}.endpoint.events.{PartitionResult#dualStackDnsSuffix}",properties:q,headers:r},[C]:g}]},u]},{endpoint:{url:"https://{EndpointId}.endpoint.events.{PartitionResult#dnsSuffix}",properties:q,headers:r},[C]:g}]}]},{error:"Invalid Configuration: FIPS is not supported with EventBridge multi-region endpoints.",[C]:h}]}]},{error:"EndpointId must be a valid host label.",[C]:h}]},{conditions:[o,{[D]:"parseURL",[E]:x,assign:"url"}],[C]:d,rules:[{conditions:A,error:"Invalid Configuration: FIPS and custom endpoint are not supported",[C]:h},{[C]:d,rules:[{conditions:y,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",[C]:h},{endpoint:{url:p,properties:r,headers:r},[C]:g}]}]},{conditions:[v,s],[C]:d,rules:[{conditions:[w,t],[C]:d,rules:[{endpoint:{url:"https://events-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:r,headers:r},[C]:g}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",[C]:h}]},{conditions:A,[C]:d,rules:[{conditions:[w],[C]:d,rules:[{[C]:d,rules:[{conditions:[{[D]:i,[E]:[l,"us-gov-west-1"]}],endpoint:{url:"https://events.us-gov-west-1.amazonaws.com",properties:r,headers:r},[C]:g},{conditions:[{[D]:i,[E]:[l,"us-gov-east-1"]}],endpoint:{url:"https://events.us-gov-east-1.amazonaws.com",properties:r,headers:r},[C]:g},{endpoint:{url:"https://events-fips.{Region}.{PartitionResult#dnsSuffix}",properties:r,headers:r},[C]:g}]}]},{error:"FIPS is enabled but this partition does not support FIPS",[C]:h}]},{conditions:y,[C]:d,rules:[{conditions:z,[C]:d,rules:[{endpoint:{url:"https://events.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:r,headers:r},[C]:g}]},u]},{endpoint:{url:"https://events.{Region}.{PartitionResult#dnsSuffix}",properties:r,headers:r},[C]:g}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-evidently/src/endpoint/ruleset.ts b/clients/client-evidently/src/endpoint/ruleset.ts index f15adb7c9e2c..6ab293362a40 100644 --- a/clients/client-evidently/src/endpoint/ruleset.ts +++ b/clients/client-evidently/src/endpoint/ruleset.ts @@ -6,26 +6,24 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; 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}]}]}; +const p="required", +q="fn", +r="argv", +s="ref"; +const a="PartitionResult", +b="tree", +c="error", +d="endpoint", +e={[p]:false,"type":"String"}, +f={[p]:true,"default":false,"type":"Boolean"}, +g={[s]:"Endpoint"}, +h={[q]:"booleanEquals",[r]:[{[s]:"UseFIPS"},true]}, +i={[q]:"booleanEquals",[r]:[{[s]:"UseDualStack"},true]}, +j={}, +k={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsFIPS"]}]}, +l={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsDualStack"]}]}, +m=[g], +n=[h], +o=[i]; +const _data={version:"1.0",parameters:{Region:e,UseDualStack:f,UseFIPS:f,Endpoint:e},rules:[{conditions:[{[q]:"aws.partition",[r]:[{[s]:"Region"}],assign:a}],type:b,rules:[{conditions:[{[q]:"isSet",[r]:m},{[q]:"parseURL",[r]:m,assign:"url"}],type:b,rules:[{conditions:n,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:c},{type:b,rules:[{conditions:o,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:c},{endpoint:{url:g,properties:j,headers:j},type:d}]}]},{conditions:[h,i],type:b,rules:[{conditions:[k,l],type:b,rules:[{endpoint:{url:"https://evidently-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:c}]},{conditions:n,type:b,rules:[{conditions:[k],type:b,rules:[{type:b,rules:[{endpoint:{url:"https://evidently-fips.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:c}]},{conditions:o,type:b,rules:[{conditions:[l],type:b,rules:[{endpoint:{url:"https://evidently.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"DualStack is enabled but this partition does not support DualStack",type:c}]},{endpoint:{url:"https://evidently.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-finspace-data/src/endpoint/ruleset.ts b/clients/client-finspace-data/src/endpoint/ruleset.ts index 2b3826c8514e..79f993887806 100644 --- a/clients/client-finspace-data/src/endpoint/ruleset.ts +++ b/clients/client-finspace-data/src/endpoint/ruleset.ts @@ -6,26 +6,24 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; 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}]}]}; +const p="required", +q="fn", +r="argv", +s="ref"; +const a="PartitionResult", +b="tree", +c="error", +d="endpoint", +e={[p]:false,"type":"String"}, +f={[p]:true,"default":false,"type":"Boolean"}, +g={[s]:"Endpoint"}, +h={[q]:"booleanEquals",[r]:[{[s]:"UseFIPS"},true]}, +i={[q]:"booleanEquals",[r]:[{[s]:"UseDualStack"},true]}, +j={}, +k={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsFIPS"]}]}, +l={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsDualStack"]}]}, +m=[g], +n=[h], +o=[i]; +const _data={version:"1.0",parameters:{Region:e,UseDualStack:f,UseFIPS:f,Endpoint:e},rules:[{conditions:[{[q]:"aws.partition",[r]:[{[s]:"Region"}],assign:a}],type:b,rules:[{conditions:[{[q]:"isSet",[r]:m},{[q]:"parseURL",[r]:m,assign:"url"}],type:b,rules:[{conditions:n,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:c},{type:b,rules:[{conditions:o,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:c},{endpoint:{url:g,properties:j,headers:j},type:d}]}]},{conditions:[h,i],type:b,rules:[{conditions:[k,l],type:b,rules:[{endpoint:{url:"https://finspace-api-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:c}]},{conditions:n,type:b,rules:[{conditions:[k],type:b,rules:[{type:b,rules:[{endpoint:{url:"https://finspace-api-fips.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:c}]},{conditions:o,type:b,rules:[{conditions:[l],type:b,rules:[{endpoint:{url:"https://finspace-api.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"DualStack is enabled but this partition does not support DualStack",type:c}]},{endpoint:{url:"https://finspace-api.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-finspace/src/endpoint/ruleset.ts b/clients/client-finspace/src/endpoint/ruleset.ts index cc1531e3baf4..c62e60bd4ffe 100644 --- a/clients/client-finspace/src/endpoint/ruleset.ts +++ b/clients/client-finspace/src/endpoint/ruleset.ts @@ -6,26 +6,24 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; 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}]}]}; +const p="required", +q="fn", +r="argv", +s="ref"; +const a="PartitionResult", +b="tree", +c="error", +d="endpoint", +e={[p]:false,"type":"String"}, +f={[p]:true,"default":false,"type":"Boolean"}, +g={[s]:"Endpoint"}, +h={[q]:"booleanEquals",[r]:[{[s]:"UseFIPS"},true]}, +i={[q]:"booleanEquals",[r]:[{[s]:"UseDualStack"},true]}, +j={}, +k={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsFIPS"]}]}, +l={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsDualStack"]}]}, +m=[g], +n=[h], +o=[i]; +const _data={version:"1.0",parameters:{Region:e,UseDualStack:f,UseFIPS:f,Endpoint:e},rules:[{conditions:[{[q]:"aws.partition",[r]:[{[s]:"Region"}],assign:a}],type:b,rules:[{conditions:[{[q]:"isSet",[r]:m},{[q]:"parseURL",[r]:m,assign:"url"}],type:b,rules:[{conditions:n,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:c},{type:b,rules:[{conditions:o,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:c},{endpoint:{url:g,properties:j,headers:j},type:d}]}]},{conditions:[h,i],type:b,rules:[{conditions:[k,l],type:b,rules:[{endpoint:{url:"https://finspace-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:c}]},{conditions:n,type:b,rules:[{conditions:[k],type:b,rules:[{type:b,rules:[{endpoint:{url:"https://finspace-fips.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:c}]},{conditions:o,type:b,rules:[{conditions:[l],type:b,rules:[{endpoint:{url:"https://finspace.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"DualStack is enabled but this partition does not support DualStack",type:c}]},{endpoint:{url:"https://finspace.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-firehose/src/endpoint/ruleset.ts b/clients/client-firehose/src/endpoint/ruleset.ts index ad18cf929777..59c0d1a5cdac 100644 --- a/clients/client-firehose/src/endpoint/ruleset.ts +++ b/clients/client-firehose/src/endpoint/ruleset.ts @@ -6,26 +6,24 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; 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}]}]}; +const p="required", +q="fn", +r="argv", +s="ref"; +const a="PartitionResult", +b="tree", +c="error", +d="endpoint", +e={[p]:false,"type":"String"}, +f={[p]:true,"default":false,"type":"Boolean"}, +g={[s]:"Endpoint"}, +h={[q]:"booleanEquals",[r]:[{[s]:"UseFIPS"},true]}, +i={[q]:"booleanEquals",[r]:[{[s]:"UseDualStack"},true]}, +j={}, +k={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsFIPS"]}]}, +l={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsDualStack"]}]}, +m=[g], +n=[h], +o=[i]; +const _data={version:"1.0",parameters:{Region:e,UseDualStack:f,UseFIPS:f,Endpoint:e},rules:[{conditions:[{[q]:"aws.partition",[r]:[{[s]:"Region"}],assign:a}],type:b,rules:[{conditions:[{[q]:"isSet",[r]:m},{[q]:"parseURL",[r]:m,assign:"url"}],type:b,rules:[{conditions:n,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:c},{type:b,rules:[{conditions:o,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:c},{endpoint:{url:g,properties:j,headers:j},type:d}]}]},{conditions:[h,i],type:b,rules:[{conditions:[k,l],type:b,rules:[{endpoint:{url:"https://firehose-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:c}]},{conditions:n,type:b,rules:[{conditions:[k],type:b,rules:[{type:b,rules:[{endpoint:{url:"https://firehose-fips.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:c}]},{conditions:o,type:b,rules:[{conditions:[l],type:b,rules:[{endpoint:{url:"https://firehose.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"DualStack is enabled but this partition does not support DualStack",type:c}]},{endpoint:{url:"https://firehose.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-fis/src/endpoint/ruleset.ts b/clients/client-fis/src/endpoint/ruleset.ts index b46aa1d44517..9f28bdfbe156 100644 --- a/clients/client-fis/src/endpoint/ruleset.ts +++ b/clients/client-fis/src/endpoint/ruleset.ts @@ -6,26 +6,24 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; 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}]}]}; +const p="required", +q="fn", +r="argv", +s="ref"; +const a="PartitionResult", +b="tree", +c="error", +d="endpoint", +e={[p]:false,"type":"String"}, +f={[p]:true,"default":false,"type":"Boolean"}, +g={[s]:"Endpoint"}, +h={[q]:"booleanEquals",[r]:[{[s]:"UseFIPS"},true]}, +i={[q]:"booleanEquals",[r]:[{[s]:"UseDualStack"},true]}, +j={}, +k={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsFIPS"]}]}, +l={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsDualStack"]}]}, +m=[g], +n=[h], +o=[i]; +const _data={version:"1.0",parameters:{Region:e,UseDualStack:f,UseFIPS:f,Endpoint:e},rules:[{conditions:[{[q]:"aws.partition",[r]:[{[s]:"Region"}],assign:a}],type:b,rules:[{conditions:[{[q]:"isSet",[r]:m},{[q]:"parseURL",[r]:m,assign:"url"}],type:b,rules:[{conditions:n,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:c},{type:b,rules:[{conditions:o,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:c},{endpoint:{url:g,properties:j,headers:j},type:d}]}]},{conditions:[h,i],type:b,rules:[{conditions:[k,l],type:b,rules:[{endpoint:{url:"https://fis-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:c}]},{conditions:n,type:b,rules:[{conditions:[k],type:b,rules:[{endpoint:{url:"https://fis-fips.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]},{error:"FIPS is enabled but this partition does not support FIPS",type:c}]},{conditions:o,type:b,rules:[{conditions:[l],type:b,rules:[{endpoint:{url:"https://fis.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"DualStack is enabled but this partition does not support DualStack",type:c}]},{endpoint:{url:"https://fis.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-fms/src/endpoint/ruleset.ts b/clients/client-fms/src/endpoint/ruleset.ts index 0713a0ac5ac6..b84d803fc26d 100644 --- a/clients/client-fms/src/endpoint/ruleset.ts +++ b/clients/client-fms/src/endpoint/ruleset.ts @@ -6,25 +6,24 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; or see "smithy.rules#endpointRuleSet" in codegen/sdk-codegen/aws-models/fms.json */ -const r="fn", -s="argv", -t="ref"; +const q="fn", +r="argv", +s="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]}, +d="PartitionResult", +e="tree", +f="error", +g="endpoint", +h={"required":true,"default":false,"type":"Boolean"}, +i={[s]:"Endpoint"}, +j={[q]:"booleanEquals",[r]:[{[s]:"UseFIPS"},true]}, +k={[q]:"booleanEquals",[r]:[{[s]:"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"]}]}, +m={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:d},"supportsFIPS"]}]}, +n={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:d},"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}]}]}; +p=[k]; +const _data={version:"1.0",parameters:{Region:{required:a,type:c},UseDualStack:h,UseFIPS:h,Endpoint:{required:b,type:c}},rules:[{conditions:[{[q]:"aws.partition",[r]:[{[s]:"Region"}],assign:d}],type:e,rules:[{conditions:[{[q]:"isSet",[r]:[i]}],type:e,rules:[{conditions:o,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:f},{type:e,rules:[{conditions:p,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:f},{endpoint:{url:i,properties:l,headers:l},type:g}]}]},{conditions:[j,k],type:e,rules:[{conditions:[m,n],type:e,rules:[{endpoint:{url:"https://fms-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:g}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:f}]},{conditions:o,type:e,rules:[{conditions:[m],type:e,rules:[{type:e,rules:[{endpoint:{url:"https://fms-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:g}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:f}]},{conditions:p,type:e,rules:[{conditions:[n],type:e,rules:[{endpoint:{url:"https://fms.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:g}]},{error:"DualStack is enabled but this partition does not support DualStack",type:f}]},{endpoint:{url:"https://fms.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:g}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-forecast/src/endpoint/ruleset.ts b/clients/client-forecast/src/endpoint/ruleset.ts index bf45956c4887..6f7e7fb45ec4 100644 --- a/clients/client-forecast/src/endpoint/ruleset.ts +++ b/clients/client-forecast/src/endpoint/ruleset.ts @@ -6,26 +6,24 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; 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}]}]}; +const p="required", +q="fn", +r="argv", +s="ref"; +const a="PartitionResult", +b="tree", +c="error", +d="endpoint", +e={[p]:false,"type":"String"}, +f={[p]:true,"default":false,"type":"Boolean"}, +g={[s]:"Endpoint"}, +h={[q]:"booleanEquals",[r]:[{[s]:"UseFIPS"},true]}, +i={[q]:"booleanEquals",[r]:[{[s]:"UseDualStack"},true]}, +j={}, +k={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsFIPS"]}]}, +l={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsDualStack"]}]}, +m=[g], +n=[h], +o=[i]; +const _data={version:"1.0",parameters:{Region:e,UseDualStack:f,UseFIPS:f,Endpoint:e},rules:[{conditions:[{[q]:"aws.partition",[r]:[{[s]:"Region"}],assign:a}],type:b,rules:[{conditions:[{[q]:"isSet",[r]:m},{[q]:"parseURL",[r]:m,assign:"url"}],type:b,rules:[{conditions:n,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:c},{type:b,rules:[{conditions:o,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:c},{endpoint:{url:g,properties:j,headers:j},type:d}]}]},{conditions:[h,i],type:b,rules:[{conditions:[k,l],type:b,rules:[{endpoint:{url:"https://forecast-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:c}]},{conditions:n,type:b,rules:[{conditions:[k],type:b,rules:[{type:b,rules:[{endpoint:{url:"https://forecast-fips.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:c}]},{conditions:o,type:b,rules:[{conditions:[l],type:b,rules:[{endpoint:{url:"https://forecast.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"DualStack is enabled but this partition does not support DualStack",type:c}]},{endpoint:{url:"https://forecast.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-forecastquery/src/endpoint/ruleset.ts b/clients/client-forecastquery/src/endpoint/ruleset.ts index 1487d13e408c..0b77372762c6 100644 --- a/clients/client-forecastquery/src/endpoint/ruleset.ts +++ b/clients/client-forecastquery/src/endpoint/ruleset.ts @@ -6,26 +6,24 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; 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}]}]}; +const p="required", +q="fn", +r="argv", +s="ref"; +const a="PartitionResult", +b="tree", +c="error", +d="endpoint", +e={[p]:false,"type":"String"}, +f={[p]:true,"default":false,"type":"Boolean"}, +g={[s]:"Endpoint"}, +h={[q]:"booleanEquals",[r]:[{[s]:"UseFIPS"},true]}, +i={[q]:"booleanEquals",[r]:[{[s]:"UseDualStack"},true]}, +j={}, +k={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsFIPS"]}]}, +l={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsDualStack"]}]}, +m=[g], +n=[h], +o=[i]; +const _data={version:"1.0",parameters:{Region:e,UseDualStack:f,UseFIPS:f,Endpoint:e},rules:[{conditions:[{[q]:"aws.partition",[r]:[{[s]:"Region"}],assign:a}],type:b,rules:[{conditions:[{[q]:"isSet",[r]:m},{[q]:"parseURL",[r]:m,assign:"url"}],type:b,rules:[{conditions:n,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:c},{type:b,rules:[{conditions:o,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:c},{endpoint:{url:g,properties:j,headers:j},type:d}]}]},{conditions:[h,i],type:b,rules:[{conditions:[k,l],type:b,rules:[{endpoint:{url:"https://forecastquery-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:c}]},{conditions:n,type:b,rules:[{conditions:[k],type:b,rules:[{type:b,rules:[{endpoint:{url:"https://forecastquery-fips.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:c}]},{conditions:o,type:b,rules:[{conditions:[l],type:b,rules:[{endpoint:{url:"https://forecastquery.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"DualStack is enabled but this partition does not support DualStack",type:c}]},{endpoint:{url:"https://forecastquery.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-frauddetector/src/endpoint/ruleset.ts b/clients/client-frauddetector/src/endpoint/ruleset.ts index e02678203447..0d69915a87c6 100644 --- a/clients/client-frauddetector/src/endpoint/ruleset.ts +++ b/clients/client-frauddetector/src/endpoint/ruleset.ts @@ -6,26 +6,25 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; or see "smithy.rules#endpointRuleSet" in codegen/sdk-codegen/aws-models/frauddetector.json */ -const s="fn", -t="argv", -u="ref"; +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={[u]:"Endpoint"}, -j={[s]:"booleanEquals",[t]:[{[u]:"UseFIPS"},true]}, -k={[s]:"booleanEquals",[t]:[{[u]:"UseDualStack"},true]}, +d="PartitionResult", +e="tree", +f="error", +g="endpoint", +h={"required":true,"default":false,"type":"Boolean"}, +i={[t]:"Endpoint"}, +j={[r]:"booleanEquals",[s]:[{[t]:"UseFIPS"},true]}, +k={[r]:"booleanEquals",[s]:[{[t]:"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"]}]}, +m={[r]:"booleanEquals",[s]:[true,{[r]:"getAttr",[s]:[{[t]:d},"supportsFIPS"]}]}, +n={[r]:"booleanEquals",[s]:[true,{[r]:"getAttr",[s]:[{[t]:d},"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}]}]}; +q=[k]; +const _data={version:"1.0",parameters:{Region:{required:a,type:c},UseDualStack:h,UseFIPS:h,Endpoint:{required:b,type:c}},rules:[{conditions:[{[r]:"aws.partition",[s]:[{[t]:"Region"}],assign:d}],type:e,rules:[{conditions:[{[r]:"isSet",[s]:o},{[r]:"parseURL",[s]:o,assign:"url"}],type:e,rules:[{conditions:p,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:f},{type:e,rules:[{conditions:q,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:f},{endpoint:{url:i,properties:l,headers:l},type:g}]}]},{conditions:[j,k],type:e,rules:[{conditions:[m,n],type:e,rules:[{endpoint:{url:"https://frauddetector-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:g}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:f}]},{conditions:p,type:e,rules:[{conditions:[m],type:e,rules:[{type:e,rules:[{endpoint:{url:"https://frauddetector-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:g}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:f}]},{conditions:q,type:e,rules:[{conditions:[n],type:e,rules:[{endpoint:{url:"https://frauddetector.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:g}]},{error:"DualStack is enabled but this partition does not support DualStack",type:f}]},{endpoint:{url:"https://frauddetector.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:g}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-fsx/src/endpoint/ruleset.ts b/clients/client-fsx/src/endpoint/ruleset.ts index a02eae933385..35258175e263 100644 --- a/clients/client-fsx/src/endpoint/ruleset.ts +++ b/clients/client-fsx/src/endpoint/ruleset.ts @@ -6,28 +6,27 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; or see "smithy.rules#endpointRuleSet" in codegen/sdk-codegen/aws-models/fsx.json */ -const u="fn", -v="argv", -w="ref"; +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={[w]:"Region"}, -k={[w]:"Endpoint"}, -l={[u]:"booleanEquals",[v]:[{[w]:"UseFIPS"},true]}, -m={[u]:"booleanEquals",[v]:[{[w]:"UseDualStack"},true]}, +d="PartitionResult", +e="tree", +f="error", +g="endpoint", +h="stringEquals", +i={"required":true,"default":false,"type":"Boolean"}, +j={[v]:"Region"}, +k={[v]:"Endpoint"}, +l={[t]:"booleanEquals",[u]:[{[v]:"UseFIPS"},true]}, +m={[t]:"booleanEquals",[u]:[{[v]:"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"]}]}, +o={[t]:"booleanEquals",[u]:[true,{[t]:"getAttr",[u]:[{[v]:d},"supportsFIPS"]}]}, +p={[t]:"booleanEquals",[u]:[true,{[t]:"getAttr",[u]:[{[v]:d},"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}]}]}; +s=[m]; +const _data={version:"1.0",parameters:{Region:{required:a,type:c},UseDualStack:i,UseFIPS:i,Endpoint:{required:b,type:c}},rules:[{conditions:[{[t]:"aws.partition",[u]:[j],assign:d}],type:e,rules:[{conditions:[{[t]:"isSet",[u]:q},{[t]:"parseURL",[u]:q,assign:"url"}],type:e,rules:[{conditions:r,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:f},{type:e,rules:[{conditions:s,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:f},{endpoint:{url:k,properties:n,headers:n},type:g}]}]},{conditions:[l,m],type:e,rules:[{conditions:[o,p],type:e,rules:[{endpoint:{url:"https://fsx-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:n,headers:n},type:g}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:f}]},{conditions:r,type:e,rules:[{conditions:[o],type:e,rules:[{type:e,rules:[{conditions:[{[t]:h,[u]:[j,"prod-ca-central-1"]}],endpoint:{url:"https://fsx-fips.ca-central-1.amazonaws.com",properties:n,headers:n},type:g},{conditions:[{[t]:h,[u]:[j,"prod-us-east-1"]}],endpoint:{url:"https://fsx-fips.us-east-1.amazonaws.com",properties:n,headers:n},type:g},{conditions:[{[t]:h,[u]:[j,"prod-us-east-2"]}],endpoint:{url:"https://fsx-fips.us-east-2.amazonaws.com",properties:n,headers:n},type:g},{conditions:[{[t]:h,[u]:[j,"prod-us-west-1"]}],endpoint:{url:"https://fsx-fips.us-west-1.amazonaws.com",properties:n,headers:n},type:g},{conditions:[{[t]:h,[u]:[j,"prod-us-west-2"]}],endpoint:{url:"https://fsx-fips.us-west-2.amazonaws.com",properties:n,headers:n},type:g},{conditions:[{[t]:h,[u]:[j,"prod-us-gov-east-1"]}],endpoint:{url:"https://fsx-fips.us-gov-east-1.amazonaws.com",properties:n,headers:n},type:g},{conditions:[{[t]:h,[u]:[j,"prod-us-gov-west-1"]}],endpoint:{url:"https://fsx-fips.us-gov-west-1.amazonaws.com",properties:n,headers:n},type:g},{endpoint:{url:"https://fsx-fips.{Region}.{PartitionResult#dnsSuffix}",properties:n,headers:n},type:g}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:f}]},{conditions:s,type:e,rules:[{conditions:[p],type:e,rules:[{endpoint:{url:"https://fsx.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:n,headers:n},type:g}]},{error:"DualStack is enabled but this partition does not support DualStack",type:f}]},{endpoint:{url:"https://fsx.{Region}.{PartitionResult#dnsSuffix}",properties:n,headers:n},type:g}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-gamelift/src/endpoint/ruleset.ts b/clients/client-gamelift/src/endpoint/ruleset.ts index f87e41e7a644..4c9931b8fad8 100644 --- a/clients/client-gamelift/src/endpoint/ruleset.ts +++ b/clients/client-gamelift/src/endpoint/ruleset.ts @@ -6,26 +6,25 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; or see "smithy.rules#endpointRuleSet" in codegen/sdk-codegen/aws-models/gamelift.json */ -const s="fn", -t="argv", -u="ref"; +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={[u]:"Endpoint"}, -j={[s]:"booleanEquals",[t]:[{[u]:"UseFIPS"},true]}, -k={[s]:"booleanEquals",[t]:[{[u]:"UseDualStack"},true]}, +d="PartitionResult", +e="tree", +f="error", +g="endpoint", +h={"required":true,"default":false,"type":"Boolean"}, +i={[t]:"Endpoint"}, +j={[r]:"booleanEquals",[s]:[{[t]:"UseFIPS"},true]}, +k={[r]:"booleanEquals",[s]:[{[t]:"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"]}]}, +m={[r]:"booleanEquals",[s]:[true,{[r]:"getAttr",[s]:[{[t]:d},"supportsFIPS"]}]}, +n={[r]:"booleanEquals",[s]:[true,{[r]:"getAttr",[s]:[{[t]:d},"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}]}]}; +q=[k]; +const _data={version:"1.0",parameters:{Region:{required:a,type:c},UseDualStack:h,UseFIPS:h,Endpoint:{required:b,type:c}},rules:[{conditions:[{[r]:"aws.partition",[s]:[{[t]:"Region"}],assign:d}],type:e,rules:[{conditions:[{[r]:"isSet",[s]:o},{[r]:"parseURL",[s]:o,assign:"url"}],type:e,rules:[{conditions:p,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:f},{type:e,rules:[{conditions:q,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:f},{endpoint:{url:i,properties:l,headers:l},type:g}]}]},{conditions:[j,k],type:e,rules:[{conditions:[m,n],type:e,rules:[{endpoint:{url:"https://gamelift-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:g}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:f}]},{conditions:p,type:e,rules:[{conditions:[m],type:e,rules:[{type:e,rules:[{endpoint:{url:"https://gamelift-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:g}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:f}]},{conditions:q,type:e,rules:[{conditions:[n],type:e,rules:[{endpoint:{url:"https://gamelift.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:g}]},{error:"DualStack is enabled but this partition does not support DualStack",type:f}]},{endpoint:{url:"https://gamelift.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:g}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-gamesparks/src/endpoint/ruleset.ts b/clients/client-gamesparks/src/endpoint/ruleset.ts index 17e3562ac55f..787db3eb0346 100644 --- a/clients/client-gamesparks/src/endpoint/ruleset.ts +++ b/clients/client-gamesparks/src/endpoint/ruleset.ts @@ -6,26 +6,24 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; 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}]}]}; +const p="required", +q="fn", +r="argv", +s="ref"; +const a="PartitionResult", +b="tree", +c="error", +d="endpoint", +e={[p]:false,"type":"String"}, +f={[p]:true,"default":false,"type":"Boolean"}, +g={[s]:"Endpoint"}, +h={[q]:"booleanEquals",[r]:[{[s]:"UseFIPS"},true]}, +i={[q]:"booleanEquals",[r]:[{[s]:"UseDualStack"},true]}, +j={}, +k={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsFIPS"]}]}, +l={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsDualStack"]}]}, +m=[g], +n=[h], +o=[i]; +const _data={version:"1.0",parameters:{Region:e,UseDualStack:f,UseFIPS:f,Endpoint:e},rules:[{conditions:[{[q]:"aws.partition",[r]:[{[s]:"Region"}],assign:a}],type:b,rules:[{conditions:[{[q]:"isSet",[r]:m},{[q]:"parseURL",[r]:m,assign:"url"}],type:b,rules:[{conditions:n,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:c},{type:b,rules:[{conditions:o,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:c},{endpoint:{url:g,properties:j,headers:j},type:d}]}]},{conditions:[h,i],type:b,rules:[{conditions:[k,l],type:b,rules:[{endpoint:{url:"https://gamesparks-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:c}]},{conditions:n,type:b,rules:[{conditions:[k],type:b,rules:[{type:b,rules:[{endpoint:{url:"https://gamesparks-fips.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:c}]},{conditions:o,type:b,rules:[{conditions:[l],type:b,rules:[{endpoint:{url:"https://gamesparks.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"DualStack is enabled but this partition does not support DualStack",type:c}]},{endpoint:{url:"https://gamesparks.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-glacier/src/endpoint/ruleset.ts b/clients/client-glacier/src/endpoint/ruleset.ts index 561de5f3a5dc..483ba82c5fb6 100644 --- a/clients/client-glacier/src/endpoint/ruleset.ts +++ b/clients/client-glacier/src/endpoint/ruleset.ts @@ -6,26 +6,24 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; 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}]}]}; +const p="required", +q="fn", +r="argv", +s="ref"; +const a="PartitionResult", +b="tree", +c="error", +d="endpoint", +e={[p]:false,"type":"String"}, +f={[p]:true,"default":false,"type":"Boolean"}, +g={[s]:"Endpoint"}, +h={[q]:"booleanEquals",[r]:[{[s]:"UseFIPS"},true]}, +i={[q]:"booleanEquals",[r]:[{[s]:"UseDualStack"},true]}, +j={}, +k={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsFIPS"]}]}, +l={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsDualStack"]}]}, +m=[g], +n=[h], +o=[i]; +const _data={version:"1.0",parameters:{Region:e,UseDualStack:f,UseFIPS:f,Endpoint:e},rules:[{conditions:[{[q]:"aws.partition",[r]:[{[s]:"Region"}],assign:a}],type:b,rules:[{conditions:[{[q]:"isSet",[r]:m},{[q]:"parseURL",[r]:m,assign:"url"}],type:b,rules:[{conditions:n,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:c},{type:b,rules:[{conditions:o,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:c},{endpoint:{url:g,properties:j,headers:j},type:d}]}]},{conditions:[h,i],type:b,rules:[{conditions:[k,l],type:b,rules:[{endpoint:{url:"https://glacier-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:c}]},{conditions:n,type:b,rules:[{conditions:[k],type:b,rules:[{type:b,rules:[{endpoint:{url:"https://glacier-fips.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:c}]},{conditions:o,type:b,rules:[{conditions:[l],type:b,rules:[{endpoint:{url:"https://glacier.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"DualStack is enabled but this partition does not support DualStack",type:c}]},{endpoint:{url:"https://glacier.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-global-accelerator/src/endpoint/ruleset.ts b/clients/client-global-accelerator/src/endpoint/ruleset.ts index 1c311296273f..71e8bef62857 100644 --- a/clients/client-global-accelerator/src/endpoint/ruleset.ts +++ b/clients/client-global-accelerator/src/endpoint/ruleset.ts @@ -6,26 +6,24 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; 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}]}]}; +const p="required", +q="fn", +r="argv", +s="ref"; +const a="PartitionResult", +b="tree", +c="error", +d="endpoint", +e={[p]:false,"type":"String"}, +f={[p]:true,"default":false,"type":"Boolean"}, +g={[s]:"Endpoint"}, +h={[q]:"booleanEquals",[r]:[{[s]:"UseFIPS"},true]}, +i={[q]:"booleanEquals",[r]:[{[s]:"UseDualStack"},true]}, +j={}, +k={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsFIPS"]}]}, +l={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsDualStack"]}]}, +m=[g], +n=[h], +o=[i]; +const _data={version:"1.0",parameters:{Region:e,UseDualStack:f,UseFIPS:f,Endpoint:e},rules:[{conditions:[{[q]:"aws.partition",[r]:[{[s]:"Region"}],assign:a}],type:b,rules:[{conditions:[{[q]:"isSet",[r]:m},{[q]:"parseURL",[r]:m,assign:"url"}],type:b,rules:[{conditions:n,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:c},{type:b,rules:[{conditions:o,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:c},{endpoint:{url:g,properties:j,headers:j},type:d}]}]},{conditions:[h,i],type:b,rules:[{conditions:[k,l],type:b,rules:[{endpoint:{url:"https://globalaccelerator-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:c}]},{conditions:n,type:b,rules:[{conditions:[k],type:b,rules:[{endpoint:{url:"https://globalaccelerator-fips.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]},{error:"FIPS is enabled but this partition does not support FIPS",type:c}]},{conditions:o,type:b,rules:[{conditions:[l],type:b,rules:[{endpoint:{url:"https://globalaccelerator.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"DualStack is enabled but this partition does not support DualStack",type:c}]},{endpoint:{url:"https://globalaccelerator.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-glue/src/endpoint/ruleset.ts b/clients/client-glue/src/endpoint/ruleset.ts index 3e634b3c96ce..354ec133116b 100644 --- a/clients/client-glue/src/endpoint/ruleset.ts +++ b/clients/client-glue/src/endpoint/ruleset.ts @@ -6,25 +6,24 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; or see "smithy.rules#endpointRuleSet" in codegen/sdk-codegen/aws-models/glue.json */ -const r="fn", -s="argv", -t="ref"; +const q="fn", +r="argv", +s="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]}, +d="PartitionResult", +e="tree", +f="error", +g="endpoint", +h={"required":true,"default":false,"type":"Boolean"}, +i={[s]:"Endpoint"}, +j={[q]:"booleanEquals",[r]:[{[s]:"UseFIPS"},true]}, +k={[q]:"booleanEquals",[r]:[{[s]:"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"]}]}, +m={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:d},"supportsFIPS"]}]}, +n={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:d},"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}]}]}; +p=[k]; +const _data={version:"1.0",parameters:{Region:{required:a,type:c},UseDualStack:h,UseFIPS:h,Endpoint:{required:b,type:c}},rules:[{conditions:[{[q]:"aws.partition",[r]:[{[s]:"Region"}],assign:d}],type:e,rules:[{conditions:[{[q]:"isSet",[r]:[i]}],type:e,rules:[{conditions:o,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:f},{type:e,rules:[{conditions:p,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:f},{endpoint:{url:i,properties:l,headers:l},type:g}]}]},{conditions:[j,k],type:e,rules:[{conditions:[m,n],type:e,rules:[{endpoint:{url:"https://glue-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:g}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:f}]},{conditions:o,type:e,rules:[{conditions:[m],type:e,rules:[{type:e,rules:[{endpoint:{url:"https://glue-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:g}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:f}]},{conditions:p,type:e,rules:[{conditions:[n],type:e,rules:[{endpoint:{url:"https://glue.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:g}]},{error:"DualStack is enabled but this partition does not support DualStack",type:f}]},{endpoint:{url:"https://glue.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:g}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-grafana/src/endpoint/ruleset.ts b/clients/client-grafana/src/endpoint/ruleset.ts index a9c380b32193..d05e929eb8a8 100644 --- a/clients/client-grafana/src/endpoint/ruleset.ts +++ b/clients/client-grafana/src/endpoint/ruleset.ts @@ -6,26 +6,24 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; 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}]}]}; +const p="required", +q="fn", +r="argv", +s="ref"; +const a="PartitionResult", +b="tree", +c="error", +d="endpoint", +e={[p]:false,"type":"String"}, +f={[p]:true,"default":false,"type":"Boolean"}, +g={[s]:"Endpoint"}, +h={[q]:"booleanEquals",[r]:[{[s]:"UseFIPS"},true]}, +i={[q]:"booleanEquals",[r]:[{[s]:"UseDualStack"},true]}, +j={}, +k={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsFIPS"]}]}, +l={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsDualStack"]}]}, +m=[g], +n=[h], +o=[i]; +const _data={version:"1.0",parameters:{Region:e,UseDualStack:f,UseFIPS:f,Endpoint:e},rules:[{conditions:[{[q]:"aws.partition",[r]:[{[s]:"Region"}],assign:a}],type:b,rules:[{conditions:[{[q]:"isSet",[r]:m},{[q]:"parseURL",[r]:m,assign:"url"}],type:b,rules:[{conditions:n,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:c},{type:b,rules:[{conditions:o,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:c},{endpoint:{url:g,properties:j,headers:j},type:d}]}]},{conditions:[h,i],type:b,rules:[{conditions:[k,l],type:b,rules:[{endpoint:{url:"https://grafana-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:c}]},{conditions:n,type:b,rules:[{conditions:[k],type:b,rules:[{type:b,rules:[{endpoint:{url:"https://grafana-fips.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:c}]},{conditions:o,type:b,rules:[{conditions:[l],type:b,rules:[{endpoint:{url:"https://grafana.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"DualStack is enabled but this partition does not support DualStack",type:c}]},{endpoint:{url:"https://grafana.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-greengrass/src/endpoint/ruleset.ts b/clients/client-greengrass/src/endpoint/ruleset.ts index 4fd5015fd76b..a0f33cd922be 100644 --- a/clients/client-greengrass/src/endpoint/ruleset.ts +++ b/clients/client-greengrass/src/endpoint/ruleset.ts @@ -6,28 +6,27 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; or see "smithy.rules#endpointRuleSet" in codegen/sdk-codegen/aws-models/greengrass.json */ -const u="fn", -v="argv", -w="ref"; +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={[w]:"Region"}, -k={[w]:"Endpoint"}, -l={[u]:"booleanEquals",[v]:[{[w]:"UseFIPS"},true]}, -m={[u]:"booleanEquals",[v]:[{[w]:"UseDualStack"},true]}, +d="PartitionResult", +e="tree", +f="error", +g="endpoint", +h="stringEquals", +i={"required":true,"default":false,"type":"Boolean"}, +j={[v]:"Region"}, +k={[v]:"Endpoint"}, +l={[t]:"booleanEquals",[u]:[{[v]:"UseFIPS"},true]}, +m={[t]:"booleanEquals",[u]:[{[v]:"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"]}]}, +o={[t]:"booleanEquals",[u]:[true,{[t]:"getAttr",[u]:[{[v]:d},"supportsFIPS"]}]}, +p={[t]:"booleanEquals",[u]:[true,{[t]:"getAttr",[u]:[{[v]:d},"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}]}]}]}; +s=[m]; +const _data={version:"1.0",parameters:{Region:{required:a,type:c},UseDualStack:i,UseFIPS:i,Endpoint:{required:b,type:c}},rules:[{conditions:[{[t]:"aws.partition",[u]:[j],assign:d}],type:e,rules:[{conditions:[{[t]:"isSet",[u]:q},{[t]:"parseURL",[u]:q,assign:"url"}],type:e,rules:[{conditions:r,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:f},{type:e,rules:[{conditions:s,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:f},{endpoint:{url:k,properties:n,headers:n},type:g}]}]},{conditions:[l,m],type:e,rules:[{conditions:[o,p],type:e,rules:[{endpoint:{url:"https://greengrass-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:n,headers:n},type:g}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:f}]},{conditions:r,type:e,rules:[{conditions:[o],type:e,rules:[{type:e,rules:[{endpoint:{url:"https://greengrass-fips.{Region}.{PartitionResult#dnsSuffix}",properties:n,headers:n},type:g}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:f}]},{conditions:s,type:e,rules:[{conditions:[p],type:e,rules:[{endpoint:{url:"https://greengrass.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:n,headers:n},type:g}]},{error:"DualStack is enabled but this partition does not support DualStack",type:f}]},{type:e,rules:[{conditions:[{[t]:h,[u]:[j,"dataplane-us-gov-west-1"]}],endpoint:{url:"https://greengrass-ats.iot.us-gov-west-1.amazonaws.com",properties:n,headers:n},type:g},{conditions:[{[t]:h,[u]:[j,"dataplane-us-gov-east-1"]}],endpoint:{url:"https://greengrass-ats.iot.us-gov-east-1.amazonaws.com",properties:n,headers:n},type:g},{endpoint:{url:"https://greengrass.{Region}.{PartitionResult#dnsSuffix}",properties:n,headers:n},type:g}]}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-greengrassv2/src/endpoint/ruleset.ts b/clients/client-greengrassv2/src/endpoint/ruleset.ts index a1401eae20d6..aa5364d2ed1d 100644 --- a/clients/client-greengrassv2/src/endpoint/ruleset.ts +++ b/clients/client-greengrassv2/src/endpoint/ruleset.ts @@ -6,28 +6,26 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; 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}]}]}]}; +const r="required", +s="fn", +t="argv", +u="ref"; +const a="PartitionResult", +b="tree", +c="error", +d="endpoint", +e="stringEquals", +f={[r]:false,"type":"String"}, +g={[r]:true,"default":false,"type":"Boolean"}, +h={[u]:"Region"}, +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]:a},"supportsFIPS"]}]}, +n={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:a},"supportsDualStack"]}]}, +o=[i], +p=[j], +q=[k]; +const _data={version:"1.0",parameters:{Region:f,UseDualStack:g,UseFIPS:g,Endpoint:f},rules:[{conditions:[{[s]:"aws.partition",[t]:[h],assign:a}],type:b,rules:[{conditions:[{[s]:"isSet",[t]:o},{[s]:"parseURL",[t]:o,assign:"url"}],type:b,rules:[{conditions:p,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:c},{type:b,rules:[{conditions:q,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:c},{endpoint:{url:i,properties:l,headers:l},type:d}]}]},{conditions:[j,k],type:b,rules:[{conditions:[m,n],type:b,rules:[{endpoint:{url:"https://greengrass-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:d}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:c}]},{conditions:p,type:b,rules:[{conditions:[m],type:b,rules:[{type:b,rules:[{endpoint:{url:"https://greengrass-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:d}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:c}]},{conditions:q,type:b,rules:[{conditions:[n],type:b,rules:[{endpoint:{url:"https://greengrass.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:d}]},{error:"DualStack is enabled but this partition does not support DualStack",type:c}]},{type:b,rules:[{conditions:[{[s]:e,[t]:[h,"dataplane-us-gov-east-1"]}],endpoint:{url:"https://greengrass-ats.iot.us-gov-east-1.amazonaws.com",properties:l,headers:l},type:d},{conditions:[{[s]:e,[t]:[h,"dataplane-us-gov-west-1"]}],endpoint:{url:"https://greengrass-ats.iot.us-gov-west-1.amazonaws.com",properties:l,headers:l},type:d},{endpoint:{url:"https://greengrass.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:d}]}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-groundstation/src/endpoint/ruleset.ts b/clients/client-groundstation/src/endpoint/ruleset.ts index f25583d21ef6..a1c23226df0d 100644 --- a/clients/client-groundstation/src/endpoint/ruleset.ts +++ b/clients/client-groundstation/src/endpoint/ruleset.ts @@ -6,26 +6,24 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; 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}]}]}; +const p="required", +q="fn", +r="argv", +s="ref"; +const a="PartitionResult", +b="tree", +c="error", +d="endpoint", +e={[p]:false,"type":"String"}, +f={[p]:true,"default":false,"type":"Boolean"}, +g={[s]:"Endpoint"}, +h={[q]:"booleanEquals",[r]:[{[s]:"UseFIPS"},true]}, +i={[q]:"booleanEquals",[r]:[{[s]:"UseDualStack"},true]}, +j={}, +k={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsFIPS"]}]}, +l={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsDualStack"]}]}, +m=[g], +n=[h], +o=[i]; +const _data={version:"1.0",parameters:{Region:e,UseDualStack:f,UseFIPS:f,Endpoint:e},rules:[{conditions:[{[q]:"aws.partition",[r]:[{[s]:"Region"}],assign:a}],type:b,rules:[{conditions:[{[q]:"isSet",[r]:m},{[q]:"parseURL",[r]:m,assign:"url"}],type:b,rules:[{conditions:n,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:c},{type:b,rules:[{conditions:o,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:c},{endpoint:{url:g,properties:j,headers:j},type:d}]}]},{conditions:[h,i],type:b,rules:[{conditions:[k,l],type:b,rules:[{endpoint:{url:"https://groundstation-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:c}]},{conditions:n,type:b,rules:[{conditions:[k],type:b,rules:[{type:b,rules:[{endpoint:{url:"https://groundstation-fips.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:c}]},{conditions:o,type:b,rules:[{conditions:[l],type:b,rules:[{endpoint:{url:"https://groundstation.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"DualStack is enabled but this partition does not support DualStack",type:c}]},{endpoint:{url:"https://groundstation.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-guardduty/src/endpoint/ruleset.ts b/clients/client-guardduty/src/endpoint/ruleset.ts index 685c80d97803..054778517794 100644 --- a/clients/client-guardduty/src/endpoint/ruleset.ts +++ b/clients/client-guardduty/src/endpoint/ruleset.ts @@ -6,28 +6,27 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; or see "smithy.rules#endpointRuleSet" in codegen/sdk-codegen/aws-models/guardduty.json */ -const u="fn", -v="argv", -w="ref"; +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="getAttr", -j={[w]:"Endpoint"}, -k={[u]:"booleanEquals",[v]:[{[w]:"UseFIPS"},true]}, -l={[u]:"booleanEquals",[v]:[{[w]:"UseDualStack"},true]}, +d="PartitionResult", +e="tree", +f="error", +g="endpoint", +h="getAttr", +i={"required":true,"default":false,"type":"Boolean"}, +j={[v]:"Endpoint"}, +k={[t]:"booleanEquals",[u]:[{[v]:"UseFIPS"},true]}, +l={[t]:"booleanEquals",[u]:[{[v]:"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"]}]}, +n={[t]:"booleanEquals",[u]:[true,{[t]:h,[u]:[{[v]:d},"supportsFIPS"]}]}, +o={[v]:d}, +p={[t]:"booleanEquals",[u]:[true,{[t]:h,[u]:[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}]}]}; +s=[l]; +const _data={version:"1.0",parameters:{Region:{required:a,type:c},UseDualStack:i,UseFIPS:i,Endpoint:{required:b,type:c}},rules:[{conditions:[{[t]:"aws.partition",[u]:[{[v]:"Region"}],assign:d}],type:e,rules:[{conditions:[{[t]:"isSet",[u]:[j]}],type:e,rules:[{conditions:r,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:f},{type:e,rules:[{conditions:s,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:f},{endpoint:{url:j,properties:m,headers:m},type:g}]}]},{conditions:[k,l],type:e,rules:[{conditions:[n,p],type:e,rules:[{endpoint:{url:"https://guardduty-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:m,headers:m},type:g}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:f}]},{conditions:r,type:e,rules:[{conditions:[n],type:e,rules:[{type:e,rules:[{conditions:[{[t]:"stringEquals",[u]:["aws-us-gov",{[t]:h,[u]:[o,"name"]}]}],endpoint:q,type:g},{endpoint:{url:"https://guardduty-fips.{Region}.{PartitionResult#dnsSuffix}",properties:m,headers:m},type:g}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:f}]},{conditions:s,type:e,rules:[{conditions:[p],type:e,rules:[{endpoint:{url:"https://guardduty.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:m,headers:m},type:g}]},{error:"DualStack is enabled but this partition does not support DualStack",type:f}]},{endpoint:q,type:g}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-health/src/endpoint/ruleset.ts b/clients/client-health/src/endpoint/ruleset.ts index 231af1facd0b..fe9a5a3a7f17 100644 --- a/clients/client-health/src/endpoint/ruleset.ts +++ b/clients/client-health/src/endpoint/ruleset.ts @@ -6,43 +6,40 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; 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}]}]}]}; +const z="required", +A="type", +B="fn", +C="argv", +D="ref", +E="properties", +F="headers", +G="authSchemes", +H="signingName", +I="signingRegion"; +const a="PartitionResult", +b="tree", +c="error", +d="endpoint", +e="stringEquals", +f={[z]:false,[A]:"String"}, +g={[z]:true,"default":false,[A]:"Boolean"}, +h={[D]:"Region"}, +i={[D]:"Endpoint"}, +j={}, +k={[B]:"getAttr",[C]:[{[D]:a},"name"]}, +l={[G]:[{"name":"sigv4",[H]:"health",[I]:"us-east-1"}]}, +m={[c]:"FIPS and DualStack are enabled, but this partition does not support one or both",[A]:c}, +n={[c]:"FIPS is enabled but this partition does not support FIPS",[A]:c}, +o={[c]:"DualStack is enabled but this partition does not support DualStack",[A]:c}, +p={"url":"https://global.health.amazonaws.com",[E]:l,[F]:{}}, +q={[G]:[{"name":"sigv4",[H]:"health",[I]:"cn-northwest-1"}]}, +r={"url":"https://global.health.amazonaws.com.cn",[E]:q,[F]:{}}, +s=[i], +t=[{[B]:"booleanEquals",[C]:[{[D]:"UseFIPS"},true]}], +u=[{[B]:"booleanEquals",[C]:[{[D]:"UseDualStack"},true]}], +v=[{[B]:"booleanEquals",[C]:[{[D]:"UseFIPS"},true]},{[B]:"booleanEquals",[C]:[{[D]:"UseDualStack"},true]}], +w=[{[B]:"booleanEquals",[C]:[true,{[B]:"getAttr",[C]:[{[D]:a},"supportsFIPS"]}]},{[B]:"booleanEquals",[C]:[true,{[B]:"getAttr",[C]:[{[D]:a},"supportsDualStack"]}]}], +x=[{[B]:"booleanEquals",[C]:[true,{[B]:"getAttr",[C]:[{[D]:a},"supportsFIPS"]}]}], +y=[{[B]:"booleanEquals",[C]:[true,{[B]:"getAttr",[C]:[{[D]:a},"supportsDualStack"]}]}]; +const _data={version:"1.0",parameters:{Region:f,UseDualStack:g,UseFIPS:g,Endpoint:f},rules:[{conditions:[{[B]:"aws.partition",[C]:[h],assign:a}],[A]:b,rules:[{conditions:[{[B]:"isSet",[C]:s},{[B]:"parseURL",[C]:s,assign:"url"}],[A]:b,rules:[{conditions:t,error:"Invalid Configuration: FIPS and custom endpoint are not supported",[A]:c},{[A]:b,rules:[{conditions:u,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",[A]:c},{endpoint:{url:i,[E]:j,[F]:j},[A]:d}]}]},{conditions:[{[B]:e,[C]:[k,"aws"]}],[A]:b,rules:[{conditions:v,[A]:b,rules:[{conditions:w,[A]:b,rules:[{endpoint:{url:"https://health-fips.{Region}.api.aws",[E]:l,[F]:j},[A]:d}]},m]},{conditions:t,[A]:b,rules:[{conditions:x,[A]:b,rules:[{endpoint:{url:"https://health-fips.{Region}.amazonaws.com",[E]:l,[F]:j},[A]:d}]},n]},{conditions:u,[A]:b,rules:[{conditions:y,[A]:b,rules:[{endpoint:{url:"https://health.{Region}.api.aws",[E]:l,[F]:j},[A]:d}]},o]},{endpoint:p,[A]:d}]},{conditions:[{[B]:e,[C]:[k,"aws-cn"]}],[A]:b,rules:[{conditions:v,[A]:b,rules:[{conditions:w,[A]:b,rules:[{endpoint:{url:"https://health-fips.{Region}.api.amazonwebservices.com.cn",[E]:q,[F]:j},[A]:d}]},m]},{conditions:t,[A]:b,rules:[{conditions:x,[A]:b,rules:[{endpoint:{url:"https://health-fips.{Region}.amazonaws.com.cn",[E]:q,[F]:j},[A]:d}]},n]},{conditions:u,[A]:b,rules:[{conditions:y,[A]:b,rules:[{endpoint:{url:"https://health.{Region}.api.amazonwebservices.com.cn",[E]:q,[F]:j},[A]:d}]},o]},{endpoint:r,[A]:d}]},{conditions:v,[A]:b,rules:[{conditions:w,[A]:b,rules:[{endpoint:{url:"https://health-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",[E]:j,[F]:j},[A]:d}]},m]},{conditions:t,[A]:b,rules:[{conditions:x,[A]:b,rules:[{[A]:b,rules:[{endpoint:{url:"https://health-fips.{Region}.{PartitionResult#dnsSuffix}",[E]:j,[F]:j},[A]:d}]}]},n]},{conditions:u,[A]:b,rules:[{conditions:y,[A]:b,rules:[{endpoint:{url:"https://health.{Region}.{PartitionResult#dualStackDnsSuffix}",[E]:j,[F]:j},[A]:d}]},o]},{[A]:b,rules:[{conditions:[{[B]:e,[C]:[h,"aws-global"]}],endpoint:p,[A]:d},{conditions:[{[B]:e,[C]:[h,"aws-cn-global"]}],endpoint:r,[A]:d},{endpoint:{url:"https://health.{Region}.{PartitionResult#dnsSuffix}",[E]:j,[F]:j},[A]:d}]}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-healthlake/src/endpoint/ruleset.ts b/clients/client-healthlake/src/endpoint/ruleset.ts index 3e4ca64612ea..15f36bd51369 100644 --- a/clients/client-healthlake/src/endpoint/ruleset.ts +++ b/clients/client-healthlake/src/endpoint/ruleset.ts @@ -6,26 +6,24 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; 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}]}]}; +const p="required", +q="fn", +r="argv", +s="ref"; +const a="PartitionResult", +b="tree", +c="error", +d="endpoint", +e={[p]:false,"type":"String"}, +f={[p]:true,"default":false,"type":"Boolean"}, +g={[s]:"Endpoint"}, +h={[q]:"booleanEquals",[r]:[{[s]:"UseFIPS"},true]}, +i={[q]:"booleanEquals",[r]:[{[s]:"UseDualStack"},true]}, +j={}, +k={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsFIPS"]}]}, +l={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsDualStack"]}]}, +m=[g], +n=[h], +o=[i]; +const _data={version:"1.0",parameters:{Region:e,UseDualStack:f,UseFIPS:f,Endpoint:e},rules:[{conditions:[{[q]:"aws.partition",[r]:[{[s]:"Region"}],assign:a}],type:b,rules:[{conditions:[{[q]:"isSet",[r]:m},{[q]:"parseURL",[r]:m,assign:"url"}],type:b,rules:[{conditions:n,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:c},{type:b,rules:[{conditions:o,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:c},{endpoint:{url:g,properties:j,headers:j},type:d}]}]},{conditions:[h,i],type:b,rules:[{conditions:[k,l],type:b,rules:[{endpoint:{url:"https://healthlake-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:c}]},{conditions:n,type:b,rules:[{conditions:[k],type:b,rules:[{type:b,rules:[{endpoint:{url:"https://healthlake-fips.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:c}]},{conditions:o,type:b,rules:[{conditions:[l],type:b,rules:[{endpoint:{url:"https://healthlake.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"DualStack is enabled but this partition does not support DualStack",type:c}]},{endpoint:{url:"https://healthlake.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-honeycode/src/endpoint/ruleset.ts b/clients/client-honeycode/src/endpoint/ruleset.ts index 466b7e6538ee..e72ebea745f0 100644 --- a/clients/client-honeycode/src/endpoint/ruleset.ts +++ b/clients/client-honeycode/src/endpoint/ruleset.ts @@ -6,26 +6,24 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; 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}]}]}; +const p="required", +q="fn", +r="argv", +s="ref"; +const a="PartitionResult", +b="tree", +c="error", +d="endpoint", +e={[p]:false,"type":"String"}, +f={[p]:true,"default":false,"type":"Boolean"}, +g={[s]:"Endpoint"}, +h={[q]:"booleanEquals",[r]:[{[s]:"UseFIPS"},true]}, +i={[q]:"booleanEquals",[r]:[{[s]:"UseDualStack"},true]}, +j={}, +k={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsFIPS"]}]}, +l={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsDualStack"]}]}, +m=[g], +n=[h], +o=[i]; +const _data={version:"1.0",parameters:{Region:e,UseDualStack:f,UseFIPS:f,Endpoint:e},rules:[{conditions:[{[q]:"aws.partition",[r]:[{[s]:"Region"}],assign:a}],type:b,rules:[{conditions:[{[q]:"isSet",[r]:m},{[q]:"parseURL",[r]:m,assign:"url"}],type:b,rules:[{conditions:n,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:c},{type:b,rules:[{conditions:o,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:c},{endpoint:{url:g,properties:j,headers:j},type:d}]}]},{conditions:[h,i],type:b,rules:[{conditions:[k,l],type:b,rules:[{endpoint:{url:"https://honeycode-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:c}]},{conditions:n,type:b,rules:[{conditions:[k],type:b,rules:[{type:b,rules:[{endpoint:{url:"https://honeycode-fips.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:c}]},{conditions:o,type:b,rules:[{conditions:[l],type:b,rules:[{endpoint:{url:"https://honeycode.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"DualStack is enabled but this partition does not support DualStack",type:c}]},{endpoint:{url:"https://honeycode.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-iam/src/endpoint/ruleset.ts b/clients/client-iam/src/endpoint/ruleset.ts index 81a80e45b476..8965861d5a87 100644 --- a/clients/client-iam/src/endpoint/ruleset.ts +++ b/clients/client-iam/src/endpoint/ruleset.ts @@ -6,58 +6,55 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; 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}]}]}]}; +const M="required", +N="type", +O="fn", +P="argv", +Q="ref", +R="url", +S="properties", +T="headers", +U="authSchemes", +V="name", +W="signingRegion", +X="signingName"; +const a="PartitionResult", +b="tree", +c="error", +d="endpoint", +e="stringEquals", +f="https://iam-fips.{Region}.api.aws", +g="iam", +h="https://iam.{Region}.api.aws", +i={[M]:false,[N]:"String"}, +j={[M]:true,"default":false,[N]:"Boolean"}, +k={[Q]:"Region"}, +l={[Q]:"Endpoint"}, +m={}, +n={[O]:"getAttr",[P]:[{[Q]:a},"name"]}, +o={[U]:[{[V]:"sigv4",[W]:"us-east-1",[X]:g}]}, +p={[c]:"FIPS and DualStack are enabled, but this partition does not support one or both",[N]:c}, +q={[R]:"https://iam-fips.amazonaws.com",[S]:o,[T]:{}}, +r={[c]:"FIPS is enabled but this partition does not support FIPS",[N]:c}, +s={[c]:"DualStack is enabled but this partition does not support DualStack",[N]:c}, +t={[R]:"https://iam.amazonaws.com",[S]:o,[T]:{}}, +u={[U]:[{[V]:"sigv4",[W]:"cn-north-1",[X]:g}]}, +v={[R]:"https://iam.cn-north-1.amazonaws.com.cn",[S]:u,[T]:{}}, +w={[U]:[{[V]:"sigv4",[W]:"us-gov-west-1",[X]:g}]}, +x={[d]:{[R]:"https://iam.us-gov.amazonaws.com",[S]:w,[T]:{}},[N]:d}, +y={[R]:"https://iam.us-gov.amazonaws.com",[S]:w,[T]:{}}, +z={[U]:[{[V]:"sigv4",[W]:"us-iso-east-1",[X]:g}]}, +A={[R]:"https://iam.us-iso-east-1.c2s.ic.gov",[S]:z,[T]:{}}, +B={[U]:[{[V]:"sigv4",[W]:"us-isob-east-1",[X]:g}]}, +C={[R]:"https://iam.us-isob-east-1.sc2s.sgov.gov",[S]:B,[T]:{}}, +D={"conditions":[{[O]:e,[P]:[k,"aws-us-gov-global"]}],[d]:y,[N]:d}, +E=[l], +F=[{[O]:"booleanEquals",[P]:[{[Q]:"UseFIPS"},true]}], +G=[{[O]:"booleanEquals",[P]:[{[Q]:"UseDualStack"},true]}], +H=[{[O]:"booleanEquals",[P]:[{[Q]:"UseFIPS"},true]},{[O]:"booleanEquals",[P]:[{[Q]:"UseDualStack"},true]}], +I=[{[O]:"booleanEquals",[P]:[true,{[O]:"getAttr",[P]:[{[Q]:a},"supportsFIPS"]}]},{[O]:"booleanEquals",[P]:[true,{[O]:"getAttr",[P]:[{[Q]:a},"supportsDualStack"]}]}], +J=[{[O]:"booleanEquals",[P]:[true,{[O]:"getAttr",[P]:[{[Q]:a},"supportsFIPS"]}]}], +K=[{[O]:"booleanEquals",[P]:[true,{[O]:"getAttr",[P]:[{[Q]:a},"supportsDualStack"]}]}], +L=[{[O]:e,[P]:[k,"aws-global"]}]; +const _data={version:"1.0",parameters:{Region:i,UseDualStack:j,UseFIPS:j,Endpoint:i},rules:[{conditions:[{[O]:"aws.partition",[P]:[k],assign:a}],[N]:b,rules:[{conditions:[{[O]:"isSet",[P]:E},{[O]:"parseURL",[P]:E,assign:"url"}],[N]:b,rules:[{conditions:F,error:"Invalid Configuration: FIPS and custom endpoint are not supported",[N]:c},{[N]:b,rules:[{conditions:G,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",[N]:c},{endpoint:{[R]:l,[S]:m,[T]:m},[N]:d}]}]},{conditions:[{[O]:e,[P]:[n,"aws"]}],[N]:b,rules:[{conditions:H,[N]:b,rules:[{conditions:I,[N]:b,rules:[{endpoint:{[R]:f,[S]:o,[T]:m},[N]:d}]},p]},{conditions:F,[N]:b,rules:[{conditions:J,[N]:b,rules:[{endpoint:q,[N]:d}]},r]},{conditions:G,[N]:b,rules:[{conditions:K,[N]:b,rules:[{endpoint:{[R]:h,[S]:o,[T]:m},[N]:d}]},s]},{endpoint:t,[N]:d}]},{conditions:[{[O]:e,[P]:[n,"aws-cn"]}],[N]:b,rules:[{conditions:H,[N]:b,rules:[{conditions:I,[N]:b,rules:[{endpoint:{[R]:"https://iam-fips.{Region}.api.amazonwebservices.com.cn",[S]:u,[T]:m},[N]:d}]},p]},{conditions:F,[N]:b,rules:[{conditions:J,[N]:b,rules:[{endpoint:{[R]:"https://iam-fips.{Region}.amazonaws.com.cn",[S]:u,[T]:m},[N]:d}]},r]},{conditions:G,[N]:b,rules:[{conditions:K,[N]:b,rules:[{endpoint:{[R]:"https://iam.{Region}.api.amazonwebservices.com.cn",[S]:u,[T]:m},[N]:d}]},s]},{endpoint:v,[N]:d}]},{conditions:[{[O]:e,[P]:[n,"aws-us-gov"]}],[N]:b,rules:[{conditions:H,[N]:b,rules:[{conditions:I,[N]:b,rules:[{endpoint:{[R]:f,[S]:w,[T]:m},[N]:d}]},p]},{conditions:F,[N]:b,rules:[{conditions:J,[N]:b,rules:[x]},r]},{conditions:G,[N]:b,rules:[{conditions:K,[N]:b,rules:[{endpoint:{[R]:h,[S]:w,[T]:m},[N]:d}]},s]},x]},{conditions:[{[O]:e,[P]:[n,"aws-iso"]}],[N]:b,rules:[{conditions:F,[N]:b,rules:[{conditions:J,[N]:b,rules:[{endpoint:{[R]:"https://iam-fips.{Region}.c2s.ic.gov",[S]:z,[T]:m},[N]:d}]},r]},{endpoint:A,[N]:d}]},{conditions:[{[O]:e,[P]:[n,"aws-iso-b"]}],[N]:b,rules:[{conditions:F,[N]:b,rules:[{conditions:J,[N]:b,rules:[{endpoint:{[R]:"https://iam-fips.{Region}.sc2s.sgov.gov",[S]:B,[T]:m},[N]:d}]},r]},{endpoint:C,[N]:d}]},{conditions:H,[N]:b,rules:[{conditions:I,[N]:b,rules:[{endpoint:{[R]:"https://iam-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",[S]:m,[T]:m},[N]:d}]},p]},{conditions:F,[N]:b,rules:[{conditions:J,[N]:b,rules:[{[N]:b,rules:[{conditions:[{[O]:e,[P]:[k,g]}],endpoint:q,[N]:d},{conditions:L,endpoint:q,[N]:d},{conditions:[{[O]:e,[P]:[k,"iam-govcloud"]}],endpoint:y,[N]:d},D,{endpoint:{[R]:"https://iam-fips.{Region}.{PartitionResult#dnsSuffix}",[S]:m,[T]:m},[N]:d}]}]},r]},{conditions:G,[N]:b,rules:[{conditions:K,[N]:b,rules:[{endpoint:{[R]:"https://iam.{Region}.{PartitionResult#dualStackDnsSuffix}",[S]:m,[T]:m},[N]:d}]},s]},{[N]:b,rules:[{conditions:L,endpoint:t,[N]:d},{conditions:[{[O]:e,[P]:[k,"aws-cn-global"]}],endpoint:v,[N]:d},D,{conditions:[{[O]:e,[P]:[k,"aws-iso-global"]}],endpoint:A,[N]:d},{conditions:[{[O]:e,[P]:[k,"aws-iso-b-global"]}],endpoint:C,[N]:d},{endpoint:{[R]:"https://iam.{Region}.{PartitionResult#dnsSuffix}",[S]:m,[T]:m},[N]:d}]}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-identitystore/src/endpoint/ruleset.ts b/clients/client-identitystore/src/endpoint/ruleset.ts index a1919cf0f8b7..32de8fe21eab 100644 --- a/clients/client-identitystore/src/endpoint/ruleset.ts +++ b/clients/client-identitystore/src/endpoint/ruleset.ts @@ -6,29 +6,27 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; 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}]}]}; +const s="required", +t="fn", +u="argv", +v="ref"; +const a="PartitionResult", +b="tree", +c="error", +d="endpoint", +e="getAttr", +f={[s]:false,"type":"String"}, +g={[s]:true,"default":false,"type":"Boolean"}, +h={[v]:"Endpoint"}, +i={[t]:"booleanEquals",[u]:[{[v]:"UseFIPS"},true]}, +j={[t]:"booleanEquals",[u]:[{[v]:"UseDualStack"},true]}, +k={}, +l={[t]:"booleanEquals",[u]:[true,{[t]:e,[u]:[{[v]:a},"supportsFIPS"]}]}, +m={[v]:a}, +n={[t]:"booleanEquals",[u]:[true,{[t]:e,[u]:[m,"supportsDualStack"]}]}, +o={"url":"https://identitystore.{Region}.{PartitionResult#dnsSuffix}","properties":{},"headers":{}}, +p=[h], +q=[i], +r=[j]; +const _data={version:"1.0",parameters:{Region:f,UseDualStack:g,UseFIPS:g,Endpoint:f},rules:[{conditions:[{[t]:"aws.partition",[u]:[{[v]:"Region"}],assign:a}],type:b,rules:[{conditions:[{[t]:"isSet",[u]:p},{[t]:"parseURL",[u]:p,assign:"url"}],type:b,rules:[{conditions:q,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:c},{type:b,rules:[{conditions:r,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:c},{endpoint:{url:h,properties:k,headers:k},type:d}]}]},{conditions:[i,j],type:b,rules:[{conditions:[l,n],type:b,rules:[{endpoint:{url:"https://identitystore-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:k,headers:k},type:d}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:c}]},{conditions:q,type:b,rules:[{conditions:[l],type:b,rules:[{type:b,rules:[{conditions:[{[t]:"stringEquals",[u]:["aws-us-gov",{[t]:e,[u]:[m,"name"]}]}],endpoint:o,type:d},{endpoint:{url:"https://identitystore-fips.{Region}.{PartitionResult#dnsSuffix}",properties:k,headers:k},type:d}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:c}]},{conditions:r,type:b,rules:[{conditions:[n],type:b,rules:[{endpoint:{url:"https://identitystore.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:k,headers:k},type:d}]},{error:"DualStack is enabled but this partition does not support DualStack",type:c}]},{endpoint:o,type:d}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-imagebuilder/src/endpoint/ruleset.ts b/clients/client-imagebuilder/src/endpoint/ruleset.ts index dccab5dca39d..7fcb67bf5abf 100644 --- a/clients/client-imagebuilder/src/endpoint/ruleset.ts +++ b/clients/client-imagebuilder/src/endpoint/ruleset.ts @@ -6,26 +6,24 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; 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}]}]}; +const p="required", +q="fn", +r="argv", +s="ref"; +const a="PartitionResult", +b="tree", +c="error", +d="endpoint", +e={[p]:false,"type":"String"}, +f={[p]:true,"default":false,"type":"Boolean"}, +g={[s]:"Endpoint"}, +h={[q]:"booleanEquals",[r]:[{[s]:"UseFIPS"},true]}, +i={[q]:"booleanEquals",[r]:[{[s]:"UseDualStack"},true]}, +j={}, +k={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsFIPS"]}]}, +l={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsDualStack"]}]}, +m=[g], +n=[h], +o=[i]; +const _data={version:"1.0",parameters:{Region:e,UseDualStack:f,UseFIPS:f,Endpoint:e},rules:[{conditions:[{[q]:"aws.partition",[r]:[{[s]:"Region"}],assign:a}],type:b,rules:[{conditions:[{[q]:"isSet",[r]:m},{[q]:"parseURL",[r]:m,assign:"url"}],type:b,rules:[{conditions:n,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:c},{type:b,rules:[{conditions:o,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:c},{endpoint:{url:g,properties:j,headers:j},type:d}]}]},{conditions:[h,i],type:b,rules:[{conditions:[k,l],type:b,rules:[{endpoint:{url:"https://imagebuilder-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:c}]},{conditions:n,type:b,rules:[{conditions:[k],type:b,rules:[{endpoint:{url:"https://imagebuilder-fips.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]},{error:"FIPS is enabled but this partition does not support FIPS",type:c}]},{conditions:o,type:b,rules:[{conditions:[l],type:b,rules:[{endpoint:{url:"https://imagebuilder.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"DualStack is enabled but this partition does not support DualStack",type:c}]},{endpoint:{url:"https://imagebuilder.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-inspector/src/endpoint/ruleset.ts b/clients/client-inspector/src/endpoint/ruleset.ts index eb3563ebde24..125bdeb858f2 100644 --- a/clients/client-inspector/src/endpoint/ruleset.ts +++ b/clients/client-inspector/src/endpoint/ruleset.ts @@ -6,26 +6,24 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; 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}]}]}; +const p="required", +q="fn", +r="argv", +s="ref"; +const a="PartitionResult", +b="tree", +c="error", +d="endpoint", +e={[p]:false,"type":"String"}, +f={[p]:true,"default":false,"type":"Boolean"}, +g={[s]:"Endpoint"}, +h={[q]:"booleanEquals",[r]:[{[s]:"UseFIPS"},true]}, +i={[q]:"booleanEquals",[r]:[{[s]:"UseDualStack"},true]}, +j={}, +k={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsFIPS"]}]}, +l={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsDualStack"]}]}, +m=[g], +n=[h], +o=[i]; +const _data={version:"1.0",parameters:{Region:e,UseDualStack:f,UseFIPS:f,Endpoint:e},rules:[{conditions:[{[q]:"aws.partition",[r]:[{[s]:"Region"}],assign:a}],type:b,rules:[{conditions:[{[q]:"isSet",[r]:m},{[q]:"parseURL",[r]:m,assign:"url"}],type:b,rules:[{conditions:n,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:c},{type:b,rules:[{conditions:o,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:c},{endpoint:{url:g,properties:j,headers:j},type:d}]}]},{conditions:[h,i],type:b,rules:[{conditions:[k,l],type:b,rules:[{endpoint:{url:"https://inspector-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:c}]},{conditions:n,type:b,rules:[{conditions:[k],type:b,rules:[{type:b,rules:[{endpoint:{url:"https://inspector-fips.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:c}]},{conditions:o,type:b,rules:[{conditions:[l],type:b,rules:[{endpoint:{url:"https://inspector.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"DualStack is enabled but this partition does not support DualStack",type:c}]},{endpoint:{url:"https://inspector.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-inspector2/src/endpoint/ruleset.ts b/clients/client-inspector2/src/endpoint/ruleset.ts index 9e5e64ec6e0b..a5016dcb3289 100644 --- a/clients/client-inspector2/src/endpoint/ruleset.ts +++ b/clients/client-inspector2/src/endpoint/ruleset.ts @@ -6,26 +6,24 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; 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}]}]}; +const p="required", +q="fn", +r="argv", +s="ref"; +const a="PartitionResult", +b="tree", +c="error", +d="endpoint", +e={[p]:false,"type":"String"}, +f={[p]:true,"default":false,"type":"Boolean"}, +g={[s]:"Endpoint"}, +h={[q]:"booleanEquals",[r]:[{[s]:"UseFIPS"},true]}, +i={[q]:"booleanEquals",[r]:[{[s]:"UseDualStack"},true]}, +j={}, +k={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsFIPS"]}]}, +l={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsDualStack"]}]}, +m=[g], +n=[h], +o=[i]; +const _data={version:"1.0",parameters:{Region:e,UseDualStack:f,UseFIPS:f,Endpoint:e},rules:[{conditions:[{[q]:"aws.partition",[r]:[{[s]:"Region"}],assign:a}],type:b,rules:[{conditions:[{[q]:"isSet",[r]:m},{[q]:"parseURL",[r]:m,assign:"url"}],type:b,rules:[{conditions:n,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:c},{type:b,rules:[{conditions:o,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:c},{endpoint:{url:g,properties:j,headers:j},type:d}]}]},{conditions:[h,i],type:b,rules:[{conditions:[k,l],type:b,rules:[{endpoint:{url:"https://inspector2-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:c}]},{conditions:n,type:b,rules:[{conditions:[k],type:b,rules:[{type:b,rules:[{endpoint:{url:"https://inspector2-fips.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:c}]},{conditions:o,type:b,rules:[{conditions:[l],type:b,rules:[{endpoint:{url:"https://inspector2.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"DualStack is enabled but this partition does not support DualStack",type:c}]},{endpoint:{url:"https://inspector2.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]}; export const ruleSet: RuleSetObject = _data; 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 56660a106f50..c4ab9e4649d3 100644 --- a/clients/client-iot-1click-devices-service/src/endpoint/ruleset.ts +++ b/clients/client-iot-1click-devices-service/src/endpoint/ruleset.ts @@ -6,26 +6,24 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; 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}]}]}; +const p="required", +q="fn", +r="argv", +s="ref"; +const a="PartitionResult", +b="tree", +c="error", +d="endpoint", +e={[p]:false,"type":"String"}, +f={[p]:true,"default":false,"type":"Boolean"}, +g={[s]:"Endpoint"}, +h={[q]:"booleanEquals",[r]:[{[s]:"UseFIPS"},true]}, +i={[q]:"booleanEquals",[r]:[{[s]:"UseDualStack"},true]}, +j={}, +k={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsFIPS"]}]}, +l={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsDualStack"]}]}, +m=[g], +n=[h], +o=[i]; +const _data={version:"1.0",parameters:{Region:e,UseDualStack:f,UseFIPS:f,Endpoint:e},rules:[{conditions:[{[q]:"aws.partition",[r]:[{[s]:"Region"}],assign:a}],type:b,rules:[{conditions:[{[q]:"isSet",[r]:m},{[q]:"parseURL",[r]:m,assign:"url"}],type:b,rules:[{conditions:n,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:c},{type:b,rules:[{conditions:o,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:c},{endpoint:{url:g,properties:j,headers:j},type:d}]}]},{conditions:[h,i],type:b,rules:[{conditions:[k,l],type:b,rules:[{endpoint:{url:"https://devices.iot1click-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:c}]},{conditions:n,type:b,rules:[{conditions:[k],type:b,rules:[{endpoint:{url:"https://devices.iot1click-fips.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]},{error:"FIPS is enabled but this partition does not support FIPS",type:c}]},{conditions:o,type:b,rules:[{conditions:[l],type:b,rules:[{endpoint:{url:"https://devices.iot1click.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"DualStack is enabled but this partition does not support DualStack",type:c}]},{endpoint:{url:"https://devices.iot1click.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-iot-1click-projects/src/endpoint/ruleset.ts b/clients/client-iot-1click-projects/src/endpoint/ruleset.ts index 66e7c429869d..dac15dc61afc 100644 --- a/clients/client-iot-1click-projects/src/endpoint/ruleset.ts +++ b/clients/client-iot-1click-projects/src/endpoint/ruleset.ts @@ -6,26 +6,24 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; 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}]}]}; +const p="required", +q="fn", +r="argv", +s="ref"; +const a="PartitionResult", +b="tree", +c="error", +d="endpoint", +e={[p]:false,"type":"String"}, +f={[p]:true,"default":false,"type":"Boolean"}, +g={[s]:"Endpoint"}, +h={[q]:"booleanEquals",[r]:[{[s]:"UseFIPS"},true]}, +i={[q]:"booleanEquals",[r]:[{[s]:"UseDualStack"},true]}, +j={}, +k={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsFIPS"]}]}, +l={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsDualStack"]}]}, +m=[g], +n=[h], +o=[i]; +const _data={version:"1.0",parameters:{Region:e,UseDualStack:f,UseFIPS:f,Endpoint:e},rules:[{conditions:[{[q]:"aws.partition",[r]:[{[s]:"Region"}],assign:a}],type:b,rules:[{conditions:[{[q]:"isSet",[r]:m},{[q]:"parseURL",[r]:m,assign:"url"}],type:b,rules:[{conditions:n,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:c},{type:b,rules:[{conditions:o,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:c},{endpoint:{url:g,properties:j,headers:j},type:d}]}]},{conditions:[h,i],type:b,rules:[{conditions:[k,l],type:b,rules:[{endpoint:{url:"https://projects.iot1click-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:c}]},{conditions:n,type:b,rules:[{conditions:[k],type:b,rules:[{type:b,rules:[{endpoint:{url:"https://projects.iot1click-fips.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:c}]},{conditions:o,type:b,rules:[{conditions:[l],type:b,rules:[{endpoint:{url:"https://projects.iot1click.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"DualStack is enabled but this partition does not support DualStack",type:c}]},{endpoint:{url:"https://projects.iot1click.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-iot-data-plane/src/endpoint/ruleset.ts b/clients/client-iot-data-plane/src/endpoint/ruleset.ts index 1009d6a731b3..86044b238908 100644 --- a/clients/client-iot-data-plane/src/endpoint/ruleset.ts +++ b/clients/client-iot-data-plane/src/endpoint/ruleset.ts @@ -6,28 +6,26 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; 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}]}]}; +const r="required", +s="fn", +t="argv", +u="ref"; +const a="PartitionResult", +b="tree", +c="error", +d="endpoint", +e="stringEquals", +f={[r]:false,"type":"String"}, +g={[r]:true,"default":false,"type":"Boolean"}, +h={[u]:"Region"}, +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]:a},"supportsFIPS"]}]}, +n={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:a},"supportsDualStack"]}]}, +o=[i], +p=[j], +q=[k]; +const _data={version:"1.0",parameters:{Region:f,UseDualStack:g,UseFIPS:g,Endpoint:f},rules:[{conditions:[{[s]:"aws.partition",[t]:[h],assign:a}],type:b,rules:[{conditions:[{[s]:"isSet",[t]:o},{[s]:"parseURL",[t]:o,assign:"url"}],type:b,rules:[{conditions:p,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:c},{type:b,rules:[{conditions:q,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:c},{endpoint:{url:i,properties:l,headers:l},type:d}]}]},{conditions:[j,k],type:b,rules:[{conditions:[m,n],type:b,rules:[{endpoint:{url:"https://data-ats.iot-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:d}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:c}]},{conditions:p,type:b,rules:[{conditions:[m],type:b,rules:[{type:b,rules:[{conditions:[{[s]:e,[t]:[h,"us-east-1"]}],endpoint:{url:"https://data.iot-fips.us-east-1.amazonaws.com",properties:l,headers:l},type:d},{conditions:[{[s]:e,[t]:[h,"us-east-2"]}],endpoint:{url:"https://data.iot-fips.us-east-2.amazonaws.com",properties:l,headers:l},type:d},{conditions:[{[s]:e,[t]:[h,"ca-central-1"]}],endpoint:{url:"https://data.iot-fips.ca-central-1.amazonaws.com",properties:l,headers:l},type:d},{conditions:[{[s]:e,[t]:[h,"us-west-1"]}],endpoint:{url:"https://data.iot-fips.us-west-1.amazonaws.com",properties:l,headers:l},type:d},{conditions:[{[s]:e,[t]:[h,"us-west-2"]}],endpoint:{url:"https://data.iot-fips.us-west-2.amazonaws.com",properties:l,headers:l},type:d},{conditions:[{[s]:e,[t]:[h,"us-gov-west-1"]}],endpoint:{url:"https://data.iot-fips.us-gov-west-1.amazonaws.com",properties:l,headers:l},type:d},{conditions:[{[s]:e,[t]:[h,"us-gov-east-1"]}],endpoint:{url:"https://data.iot-fips.us-gov-east-1.amazonaws.com",properties:l,headers:l},type:d},{endpoint:{url:"https://data-ats.iot-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:d}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:c}]},{conditions:q,type:b,rules:[{conditions:[n],type:b,rules:[{endpoint:{url:"https://data-ats.iot.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:d}]},{error:"DualStack is enabled but this partition does not support DualStack",type:c}]},{endpoint:{url:"https://data-ats.iot.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:d}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-iot-events-data/src/endpoint/ruleset.ts b/clients/client-iot-events-data/src/endpoint/ruleset.ts index cb962db41c73..b677b27faf1a 100644 --- a/clients/client-iot-events-data/src/endpoint/ruleset.ts +++ b/clients/client-iot-events-data/src/endpoint/ruleset.ts @@ -6,26 +6,24 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; 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}]}]}; +const p="required", +q="fn", +r="argv", +s="ref"; +const a="PartitionResult", +b="tree", +c="error", +d="endpoint", +e={[p]:false,"type":"String"}, +f={[p]:true,"default":false,"type":"Boolean"}, +g={[s]:"Endpoint"}, +h={[q]:"booleanEquals",[r]:[{[s]:"UseFIPS"},true]}, +i={[q]:"booleanEquals",[r]:[{[s]:"UseDualStack"},true]}, +j={}, +k={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsFIPS"]}]}, +l={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsDualStack"]}]}, +m=[g], +n=[h], +o=[i]; +const _data={version:"1.0",parameters:{Region:e,UseDualStack:f,UseFIPS:f,Endpoint:e},rules:[{conditions:[{[q]:"aws.partition",[r]:[{[s]:"Region"}],assign:a}],type:b,rules:[{conditions:[{[q]:"isSet",[r]:m},{[q]:"parseURL",[r]:m,assign:"url"}],type:b,rules:[{conditions:n,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:c},{type:b,rules:[{conditions:o,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:c},{endpoint:{url:g,properties:j,headers:j},type:d}]}]},{conditions:[h,i],type:b,rules:[{conditions:[k,l],type:b,rules:[{endpoint:{url:"https://data.iotevents-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:c}]},{conditions:n,type:b,rules:[{conditions:[k],type:b,rules:[{endpoint:{url:"https://data.iotevents-fips.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]},{error:"FIPS is enabled but this partition does not support FIPS",type:c}]},{conditions:o,type:b,rules:[{conditions:[l],type:b,rules:[{endpoint:{url:"https://data.iotevents.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"DualStack is enabled but this partition does not support DualStack",type:c}]},{endpoint:{url:"https://data.iotevents.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-iot-events/src/endpoint/ruleset.ts b/clients/client-iot-events/src/endpoint/ruleset.ts index 4dcbe7f50192..5af5449b2b90 100644 --- a/clients/client-iot-events/src/endpoint/ruleset.ts +++ b/clients/client-iot-events/src/endpoint/ruleset.ts @@ -6,26 +6,24 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; 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}]}]}; +const p="required", +q="fn", +r="argv", +s="ref"; +const a="PartitionResult", +b="tree", +c="error", +d="endpoint", +e={[p]:false,"type":"String"}, +f={[p]:true,"default":false,"type":"Boolean"}, +g={[s]:"Endpoint"}, +h={[q]:"booleanEquals",[r]:[{[s]:"UseFIPS"},true]}, +i={[q]:"booleanEquals",[r]:[{[s]:"UseDualStack"},true]}, +j={}, +k={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsFIPS"]}]}, +l={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsDualStack"]}]}, +m=[g], +n=[h], +o=[i]; +const _data={version:"1.0",parameters:{Region:e,UseDualStack:f,UseFIPS:f,Endpoint:e},rules:[{conditions:[{[q]:"aws.partition",[r]:[{[s]:"Region"}],assign:a}],type:b,rules:[{conditions:[{[q]:"isSet",[r]:m},{[q]:"parseURL",[r]:m,assign:"url"}],type:b,rules:[{conditions:n,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:c},{type:b,rules:[{conditions:o,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:c},{endpoint:{url:g,properties:j,headers:j},type:d}]}]},{conditions:[h,i],type:b,rules:[{conditions:[k,l],type:b,rules:[{endpoint:{url:"https://iotevents-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:c}]},{conditions:n,type:b,rules:[{conditions:[k],type:b,rules:[{type:b,rules:[{endpoint:{url:"https://iotevents-fips.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:c}]},{conditions:o,type:b,rules:[{conditions:[l],type:b,rules:[{endpoint:{url:"https://iotevents.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"DualStack is enabled but this partition does not support DualStack",type:c}]},{endpoint:{url:"https://iotevents.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]}; export const ruleSet: RuleSetObject = _data; 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 bebe71a72a1f..53653f179813 100644 --- a/clients/client-iot-jobs-data-plane/src/endpoint/ruleset.ts +++ b/clients/client-iot-jobs-data-plane/src/endpoint/ruleset.ts @@ -6,26 +6,24 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; 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}]}]}; +const p="required", +q="fn", +r="argv", +s="ref"; +const a="PartitionResult", +b="tree", +c="error", +d="endpoint", +e={[p]:false,"type":"String"}, +f={[p]:true,"default":false,"type":"Boolean"}, +g={[s]:"Endpoint"}, +h={[q]:"booleanEquals",[r]:[{[s]:"UseFIPS"},true]}, +i={[q]:"booleanEquals",[r]:[{[s]:"UseDualStack"},true]}, +j={}, +k={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsFIPS"]}]}, +l={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsDualStack"]}]}, +m=[g], +n=[h], +o=[i]; +const _data={version:"1.0",parameters:{Region:e,UseDualStack:f,UseFIPS:f,Endpoint:e},rules:[{conditions:[{[q]:"aws.partition",[r]:[{[s]:"Region"}],assign:a}],type:b,rules:[{conditions:[{[q]:"isSet",[r]:m},{[q]:"parseURL",[r]:m,assign:"url"}],type:b,rules:[{conditions:n,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:c},{type:b,rules:[{conditions:o,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:c},{endpoint:{url:g,properties:j,headers:j},type:d}]}]},{conditions:[h,i],type:b,rules:[{conditions:[k,l],type:b,rules:[{endpoint:{url:"https://data.jobs.iot-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:c}]},{conditions:n,type:b,rules:[{conditions:[k],type:b,rules:[{type:b,rules:[{endpoint:{url:"https://data.jobs.iot-fips.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:c}]},{conditions:o,type:b,rules:[{conditions:[l],type:b,rules:[{endpoint:{url:"https://data.jobs.iot.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"DualStack is enabled but this partition does not support DualStack",type:c}]},{endpoint:{url:"https://data.jobs.iot.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-iot-roborunner/src/endpoint/ruleset.ts b/clients/client-iot-roborunner/src/endpoint/ruleset.ts index 1a5da492e581..50e2e170c188 100644 --- a/clients/client-iot-roborunner/src/endpoint/ruleset.ts +++ b/clients/client-iot-roborunner/src/endpoint/ruleset.ts @@ -6,26 +6,24 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; 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}]}]}; +const p="required", +q="fn", +r="argv", +s="ref"; +const a="PartitionResult", +b="tree", +c="error", +d="endpoint", +e={[p]:false,"type":"String"}, +f={[p]:true,"default":false,"type":"Boolean"}, +g={[s]:"Endpoint"}, +h={[q]:"booleanEquals",[r]:[{[s]:"UseFIPS"},true]}, +i={[q]:"booleanEquals",[r]:[{[s]:"UseDualStack"},true]}, +j={}, +k={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsFIPS"]}]}, +l={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsDualStack"]}]}, +m=[g], +n=[h], +o=[i]; +const _data={version:"1.0",parameters:{Region:e,UseDualStack:f,UseFIPS:f,Endpoint:e},rules:[{conditions:[{[q]:"aws.partition",[r]:[{[s]:"Region"}],assign:a}],type:b,rules:[{conditions:[{[q]:"isSet",[r]:m},{[q]:"parseURL",[r]:m,assign:"url"}],type:b,rules:[{conditions:n,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:c},{type:b,rules:[{conditions:o,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:c},{endpoint:{url:g,properties:j,headers:j},type:d}]}]},{conditions:[h,i],type:b,rules:[{conditions:[k,l],type:b,rules:[{endpoint:{url:"https://iotroborunner-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:c}]},{conditions:n,type:b,rules:[{conditions:[k],type:b,rules:[{endpoint:{url:"https://iotroborunner-fips.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]},{error:"FIPS is enabled but this partition does not support FIPS",type:c}]},{conditions:o,type:b,rules:[{conditions:[l],type:b,rules:[{endpoint:{url:"https://iotroborunner.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"DualStack is enabled but this partition does not support DualStack",type:c}]},{endpoint:{url:"https://iotroborunner.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-iot-wireless/src/endpoint/ruleset.ts b/clients/client-iot-wireless/src/endpoint/ruleset.ts index 18007a184447..a123bc06ce76 100644 --- a/clients/client-iot-wireless/src/endpoint/ruleset.ts +++ b/clients/client-iot-wireless/src/endpoint/ruleset.ts @@ -6,26 +6,25 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; or see "smithy.rules#endpointRuleSet" in codegen/sdk-codegen/aws-models/iot-wireless.json */ -const s="fn", -t="argv", -u="ref"; +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={[u]:"Endpoint"}, -j={[s]:"booleanEquals",[t]:[{[u]:"UseFIPS"},true]}, -k={[s]:"booleanEquals",[t]:[{[u]:"UseDualStack"},true]}, +d="PartitionResult", +e="tree", +f="error", +g="endpoint", +h={"required":true,"default":false,"type":"Boolean"}, +i={[t]:"Endpoint"}, +j={[r]:"booleanEquals",[s]:[{[t]:"UseFIPS"},true]}, +k={[r]:"booleanEquals",[s]:[{[t]:"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"]}]}, +m={[r]:"booleanEquals",[s]:[true,{[r]:"getAttr",[s]:[{[t]:d},"supportsFIPS"]}]}, +n={[r]:"booleanEquals",[s]:[true,{[r]:"getAttr",[s]:[{[t]:d},"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}]}]}; +q=[k]; +const _data={version:"1.0",parameters:{Region:{required:a,type:c},UseDualStack:h,UseFIPS:h,Endpoint:{required:b,type:c}},rules:[{conditions:[{[r]:"aws.partition",[s]:[{[t]:"Region"}],assign:d}],type:e,rules:[{conditions:[{[r]:"isSet",[s]:o},{[r]:"parseURL",[s]:o,assign:"url"}],type:e,rules:[{conditions:p,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:f},{type:e,rules:[{conditions:q,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:f},{endpoint:{url:i,properties:l,headers:l},type:g}]}]},{conditions:[j,k],type:e,rules:[{conditions:[m,n],type:e,rules:[{endpoint:{url:"https://api.iotwireless-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:g}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:f}]},{conditions:p,type:e,rules:[{conditions:[m],type:e,rules:[{type:e,rules:[{endpoint:{url:"https://api.iotwireless-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:g}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:f}]},{conditions:q,type:e,rules:[{conditions:[n],type:e,rules:[{endpoint:{url:"https://api.iotwireless.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:g}]},{error:"DualStack is enabled but this partition does not support DualStack",type:f}]},{endpoint:{url:"https://api.iotwireless.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:g}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-iot/src/endpoint/ruleset.ts b/clients/client-iot/src/endpoint/ruleset.ts index b03ea462c2f7..74d006482e6b 100644 --- a/clients/client-iot/src/endpoint/ruleset.ts +++ b/clients/client-iot/src/endpoint/ruleset.ts @@ -6,26 +6,25 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; or see "smithy.rules#endpointRuleSet" in codegen/sdk-codegen/aws-models/iot.json */ -const s="fn", -t="argv", -u="ref"; +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={[u]:"Endpoint"}, -j={[s]:"booleanEquals",[t]:[{[u]:"UseFIPS"},true]}, -k={[s]:"booleanEquals",[t]:[{[u]:"UseDualStack"},true]}, +d="PartitionResult", +e="tree", +f="error", +g="endpoint", +h={"required":true,"default":false,"type":"Boolean"}, +i={[t]:"Endpoint"}, +j={[r]:"booleanEquals",[s]:[{[t]:"UseFIPS"},true]}, +k={[r]:"booleanEquals",[s]:[{[t]:"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"]}]}, +m={[r]:"booleanEquals",[s]:[true,{[r]:"getAttr",[s]:[{[t]:d},"supportsFIPS"]}]}, +n={[r]:"booleanEquals",[s]:[true,{[r]:"getAttr",[s]:[{[t]:d},"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}]}]}; +q=[k]; +const _data={version:"1.0",parameters:{Region:{required:a,type:c},UseDualStack:h,UseFIPS:h,Endpoint:{required:b,type:c}},rules:[{conditions:[{[r]:"aws.partition",[s]:[{[t]:"Region"}],assign:d}],type:e,rules:[{conditions:[{[r]:"isSet",[s]:o},{[r]:"parseURL",[s]:o,assign:"url"}],type:e,rules:[{conditions:p,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:f},{type:e,rules:[{conditions:q,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:f},{endpoint:{url:i,properties:l,headers:l},type:g}]}]},{conditions:[j,k],type:e,rules:[{conditions:[m,n],type:e,rules:[{endpoint:{url:"https://iot-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:g}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:f}]},{conditions:p,type:e,rules:[{conditions:[m],type:e,rules:[{type:e,rules:[{endpoint:{url:"https://iot-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:g}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:f}]},{conditions:q,type:e,rules:[{conditions:[n],type:e,rules:[{endpoint:{url:"https://iot.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:g}]},{error:"DualStack is enabled but this partition does not support DualStack",type:f}]},{endpoint:{url:"https://iot.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:g}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-iotanalytics/src/endpoint/ruleset.ts b/clients/client-iotanalytics/src/endpoint/ruleset.ts index 7831aab9746f..e97cb0c0f95b 100644 --- a/clients/client-iotanalytics/src/endpoint/ruleset.ts +++ b/clients/client-iotanalytics/src/endpoint/ruleset.ts @@ -6,26 +6,24 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; 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}]}]}; +const p="required", +q="fn", +r="argv", +s="ref"; +const a="PartitionResult", +b="tree", +c="error", +d="endpoint", +e={[p]:false,"type":"String"}, +f={[p]:true,"default":false,"type":"Boolean"}, +g={[s]:"Endpoint"}, +h={[q]:"booleanEquals",[r]:[{[s]:"UseFIPS"},true]}, +i={[q]:"booleanEquals",[r]:[{[s]:"UseDualStack"},true]}, +j={}, +k={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsFIPS"]}]}, +l={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsDualStack"]}]}, +m=[g], +n=[h], +o=[i]; +const _data={version:"1.0",parameters:{Region:e,UseDualStack:f,UseFIPS:f,Endpoint:e},rules:[{conditions:[{[q]:"aws.partition",[r]:[{[s]:"Region"}],assign:a}],type:b,rules:[{conditions:[{[q]:"isSet",[r]:m},{[q]:"parseURL",[r]:m,assign:"url"}],type:b,rules:[{conditions:n,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:c},{type:b,rules:[{conditions:o,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:c},{endpoint:{url:g,properties:j,headers:j},type:d}]}]},{conditions:[h,i],type:b,rules:[{conditions:[k,l],type:b,rules:[{endpoint:{url:"https://iotanalytics-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:c}]},{conditions:n,type:b,rules:[{conditions:[k],type:b,rules:[{type:b,rules:[{endpoint:{url:"https://iotanalytics-fips.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:c}]},{conditions:o,type:b,rules:[{conditions:[l],type:b,rules:[{endpoint:{url:"https://iotanalytics.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"DualStack is enabled but this partition does not support DualStack",type:c}]},{endpoint:{url:"https://iotanalytics.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-iotdeviceadvisor/src/endpoint/ruleset.ts b/clients/client-iotdeviceadvisor/src/endpoint/ruleset.ts index bc5baaa24134..6a65613cff3d 100644 --- a/clients/client-iotdeviceadvisor/src/endpoint/ruleset.ts +++ b/clients/client-iotdeviceadvisor/src/endpoint/ruleset.ts @@ -6,26 +6,24 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; 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}]}]}; +const p="required", +q="fn", +r="argv", +s="ref"; +const a="PartitionResult", +b="tree", +c="error", +d="endpoint", +e={[p]:false,"type":"String"}, +f={[p]:true,"default":false,"type":"Boolean"}, +g={[s]:"Endpoint"}, +h={[q]:"booleanEquals",[r]:[{[s]:"UseFIPS"},true]}, +i={[q]:"booleanEquals",[r]:[{[s]:"UseDualStack"},true]}, +j={}, +k={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsFIPS"]}]}, +l={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsDualStack"]}]}, +m=[g], +n=[h], +o=[i]; +const _data={version:"1.0",parameters:{Region:e,UseDualStack:f,UseFIPS:f,Endpoint:e},rules:[{conditions:[{[q]:"aws.partition",[r]:[{[s]:"Region"}],assign:a}],type:b,rules:[{conditions:[{[q]:"isSet",[r]:m},{[q]:"parseURL",[r]:m,assign:"url"}],type:b,rules:[{conditions:n,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:c},{type:b,rules:[{conditions:o,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:c},{endpoint:{url:g,properties:j,headers:j},type:d}]}]},{conditions:[h,i],type:b,rules:[{conditions:[k,l],type:b,rules:[{endpoint:{url:"https://api.iotdeviceadvisor-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:c}]},{conditions:n,type:b,rules:[{conditions:[k],type:b,rules:[{type:b,rules:[{endpoint:{url:"https://api.iotdeviceadvisor-fips.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:c}]},{conditions:o,type:b,rules:[{conditions:[l],type:b,rules:[{endpoint:{url:"https://api.iotdeviceadvisor.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"DualStack is enabled but this partition does not support DualStack",type:c}]},{endpoint:{url:"https://api.iotdeviceadvisor.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-iotfleethub/src/endpoint/ruleset.ts b/clients/client-iotfleethub/src/endpoint/ruleset.ts index fa1b39992086..bba2c17b11d2 100644 --- a/clients/client-iotfleethub/src/endpoint/ruleset.ts +++ b/clients/client-iotfleethub/src/endpoint/ruleset.ts @@ -6,26 +6,24 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; 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}]}]}; +const p="required", +q="fn", +r="argv", +s="ref"; +const a="PartitionResult", +b="tree", +c="error", +d="endpoint", +e={[p]:false,"type":"String"}, +f={[p]:true,"default":false,"type":"Boolean"}, +g={[s]:"Endpoint"}, +h={[q]:"booleanEquals",[r]:[{[s]:"UseFIPS"},true]}, +i={[q]:"booleanEquals",[r]:[{[s]:"UseDualStack"},true]}, +j={}, +k={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsFIPS"]}]}, +l={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsDualStack"]}]}, +m=[g], +n=[h], +o=[i]; +const _data={version:"1.0",parameters:{Region:e,UseDualStack:f,UseFIPS:f,Endpoint:e},rules:[{conditions:[{[q]:"aws.partition",[r]:[{[s]:"Region"}],assign:a}],type:b,rules:[{conditions:[{[q]:"isSet",[r]:m},{[q]:"parseURL",[r]:m,assign:"url"}],type:b,rules:[{conditions:n,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:c},{type:b,rules:[{conditions:o,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:c},{endpoint:{url:g,properties:j,headers:j},type:d}]}]},{conditions:[h,i],type:b,rules:[{conditions:[k,l],type:b,rules:[{endpoint:{url:"https://api.fleethub.iot-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:c}]},{conditions:n,type:b,rules:[{conditions:[k],type:b,rules:[{type:b,rules:[{endpoint:{url:"https://api.fleethub.iot-fips.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:c}]},{conditions:o,type:b,rules:[{conditions:[l],type:b,rules:[{endpoint:{url:"https://api.fleethub.iot.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"DualStack is enabled but this partition does not support DualStack",type:c}]},{endpoint:{url:"https://api.fleethub.iot.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-iotfleetwise/src/endpoint/ruleset.ts b/clients/client-iotfleetwise/src/endpoint/ruleset.ts index 4c1b410087ac..50ca1d157c59 100644 --- a/clients/client-iotfleetwise/src/endpoint/ruleset.ts +++ b/clients/client-iotfleetwise/src/endpoint/ruleset.ts @@ -6,25 +6,24 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; or see "smithy.rules#endpointRuleSet" in codegen/sdk-codegen/aws-models/iotfleetwise.json */ -const r="fn", -s="argv", -t="ref"; +const q="fn", +r="argv", +s="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]}, +d="PartitionResult", +e="tree", +f="error", +g="endpoint", +h={"required":true,"default":false,"type":"Boolean"}, +i={[s]:"Endpoint"}, +j={[q]:"booleanEquals",[r]:[{[s]:"UseFIPS"},true]}, +k={[q]:"booleanEquals",[r]:[{[s]:"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"]}]}, +m={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:d},"supportsFIPS"]}]}, +n={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:d},"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}]}]}; +p=[k]; +const _data={version:"1.0",parameters:{Region:{required:a,type:c},UseDualStack:h,UseFIPS:h,Endpoint:{required:b,type:c}},rules:[{conditions:[{[q]:"aws.partition",[r]:[{[s]:"Region"}],assign:d}],type:e,rules:[{conditions:[{[q]:"isSet",[r]:[i]}],type:e,rules:[{conditions:o,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:f},{type:e,rules:[{conditions:p,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:f},{endpoint:{url:i,properties:l,headers:l},type:g}]}]},{conditions:[j,k],type:e,rules:[{conditions:[m,n],type:e,rules:[{endpoint:{url:"https://iotfleetwise-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:g}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:f}]},{conditions:o,type:e,rules:[{conditions:[m],type:e,rules:[{type:e,rules:[{endpoint:{url:"https://iotfleetwise-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:g}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:f}]},{conditions:p,type:e,rules:[{conditions:[n],type:e,rules:[{endpoint:{url:"https://iotfleetwise.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:g}]},{error:"DualStack is enabled but this partition does not support DualStack",type:f}]},{endpoint:{url:"https://iotfleetwise.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:g}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-iotsecuretunneling/src/endpoint/ruleset.ts b/clients/client-iotsecuretunneling/src/endpoint/ruleset.ts index 0f86a0a0ca12..9fd221ee2230 100644 --- a/clients/client-iotsecuretunneling/src/endpoint/ruleset.ts +++ b/clients/client-iotsecuretunneling/src/endpoint/ruleset.ts @@ -6,29 +6,27 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; 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}]}]}; +const s="required", +t="fn", +u="argv", +v="ref"; +const a="PartitionResult", +b="tree", +c="error", +d="endpoint", +e="stringEquals", +f={[s]:false,"type":"String"}, +g={[s]:true,"default":false,"type":"Boolean"}, +h={[v]:"Endpoint"}, +i={[t]:"booleanEquals",[u]:[{[v]:"UseFIPS"},true]}, +j={[t]:"booleanEquals",[u]:[{[v]:"UseDualStack"},true]}, +k={}, +l={[t]:"booleanEquals",[u]:[true,{[t]:"getAttr",[u]:[{[v]:a},"supportsFIPS"]}]}, +m={[t]:"booleanEquals",[u]:[true,{[t]:"getAttr",[u]:[{[v]:a},"supportsDualStack"]}]}, +n={[t]:"getAttr",[u]:[{[v]:a},"name"]}, +o={"url":"https://api.tunneling.iot-fips.{Region}.{PartitionResult#dnsSuffix}","properties":{},"headers":{}}, +p=[h], +q=[i], +r=[j]; +const _data={version:"1.0",parameters:{Region:f,UseDualStack:g,UseFIPS:g,Endpoint:f},rules:[{conditions:[{[t]:"aws.partition",[u]:[{[v]:"Region"}],assign:a}],type:b,rules:[{conditions:[{[t]:"isSet",[u]:p},{[t]:"parseURL",[u]:p,assign:"url"}],type:b,rules:[{conditions:q,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:c},{type:b,rules:[{conditions:r,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:c},{endpoint:{url:h,properties:k,headers:k},type:d}]}]},{conditions:[i,j],type:b,rules:[{conditions:[l,m],type:b,rules:[{endpoint:{url:"https://api.tunneling.iot-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:k,headers:k},type:d}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:c}]},{conditions:q,type:b,rules:[{conditions:[l],type:b,rules:[{type:b,rules:[{conditions:[{[t]:e,[u]:["aws",n]}],endpoint:o,type:d},{conditions:[{[t]:e,[u]:["aws-us-gov",n]}],endpoint:o,type:d},{endpoint:o,type:d}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:c}]},{conditions:r,type:b,rules:[{conditions:[m],type:b,rules:[{endpoint:{url:"https://api.tunneling.iot.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:k,headers:k},type:d}]},{error:"DualStack is enabled but this partition does not support DualStack",type:c}]},{endpoint:{url:"https://api.tunneling.iot.{Region}.{PartitionResult#dnsSuffix}",properties:k,headers:k},type:d}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-iotsitewise/src/endpoint/ruleset.ts b/clients/client-iotsitewise/src/endpoint/ruleset.ts index 4995255af19c..6ad488ca1614 100644 --- a/clients/client-iotsitewise/src/endpoint/ruleset.ts +++ b/clients/client-iotsitewise/src/endpoint/ruleset.ts @@ -6,26 +6,24 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; 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}]}]}; +const p="required", +q="fn", +r="argv", +s="ref"; +const a="PartitionResult", +b="tree", +c="error", +d="endpoint", +e={[p]:false,"type":"String"}, +f={[p]:true,"default":false,"type":"Boolean"}, +g={[s]:"Endpoint"}, +h={[q]:"booleanEquals",[r]:[{[s]:"UseFIPS"},true]}, +i={[q]:"booleanEquals",[r]:[{[s]:"UseDualStack"},true]}, +j={}, +k={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsFIPS"]}]}, +l={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsDualStack"]}]}, +m=[g], +n=[h], +o=[i]; +const _data={version:"1.0",parameters:{Region:e,UseDualStack:f,UseFIPS:f,Endpoint:e},rules:[{conditions:[{[q]:"aws.partition",[r]:[{[s]:"Region"}],assign:a}],type:b,rules:[{conditions:[{[q]:"isSet",[r]:m},{[q]:"parseURL",[r]:m,assign:"url"}],type:b,rules:[{conditions:n,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:c},{type:b,rules:[{conditions:o,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:c},{endpoint:{url:g,properties:j,headers:j},type:d}]}]},{conditions:[h,i],type:b,rules:[{conditions:[k,l],type:b,rules:[{endpoint:{url:"https://iotsitewise-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:c}]},{conditions:n,type:b,rules:[{conditions:[k],type:b,rules:[{type:b,rules:[{endpoint:{url:"https://iotsitewise-fips.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:c}]},{conditions:o,type:b,rules:[{conditions:[l],type:b,rules:[{endpoint:{url:"https://iotsitewise.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"DualStack is enabled but this partition does not support DualStack",type:c}]},{endpoint:{url:"https://iotsitewise.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-iotthingsgraph/src/endpoint/ruleset.ts b/clients/client-iotthingsgraph/src/endpoint/ruleset.ts index 59b07e2d3b9e..28f9011a3331 100644 --- a/clients/client-iotthingsgraph/src/endpoint/ruleset.ts +++ b/clients/client-iotthingsgraph/src/endpoint/ruleset.ts @@ -6,26 +6,24 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; 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}]}]}; +const p="required", +q="fn", +r="argv", +s="ref"; +const a="PartitionResult", +b="tree", +c="error", +d="endpoint", +e={[p]:false,"type":"String"}, +f={[p]:true,"default":false,"type":"Boolean"}, +g={[s]:"Endpoint"}, +h={[q]:"booleanEquals",[r]:[{[s]:"UseFIPS"},true]}, +i={[q]:"booleanEquals",[r]:[{[s]:"UseDualStack"},true]}, +j={}, +k={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsFIPS"]}]}, +l={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsDualStack"]}]}, +m=[g], +n=[h], +o=[i]; +const _data={version:"1.0",parameters:{Region:e,UseDualStack:f,UseFIPS:f,Endpoint:e},rules:[{conditions:[{[q]:"aws.partition",[r]:[{[s]:"Region"}],assign:a}],type:b,rules:[{conditions:[{[q]:"isSet",[r]:m},{[q]:"parseURL",[r]:m,assign:"url"}],type:b,rules:[{conditions:n,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:c},{type:b,rules:[{conditions:o,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:c},{endpoint:{url:g,properties:j,headers:j},type:d}]}]},{conditions:[h,i],type:b,rules:[{conditions:[k,l],type:b,rules:[{endpoint:{url:"https://iotthingsgraph-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:c}]},{conditions:n,type:b,rules:[{conditions:[k],type:b,rules:[{type:b,rules:[{endpoint:{url:"https://iotthingsgraph-fips.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:c}]},{conditions:o,type:b,rules:[{conditions:[l],type:b,rules:[{endpoint:{url:"https://iotthingsgraph.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"DualStack is enabled but this partition does not support DualStack",type:c}]},{endpoint:{url:"https://iotthingsgraph.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-iottwinmaker/src/endpoint/ruleset.ts b/clients/client-iottwinmaker/src/endpoint/ruleset.ts index f97c702c7420..21782915d112 100644 --- a/clients/client-iottwinmaker/src/endpoint/ruleset.ts +++ b/clients/client-iottwinmaker/src/endpoint/ruleset.ts @@ -6,25 +6,24 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; or see "smithy.rules#endpointRuleSet" in codegen/sdk-codegen/aws-models/iottwinmaker.json */ -const r="fn", -s="argv", -t="ref"; +const q="fn", +r="argv", +s="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]}, +d="PartitionResult", +e="tree", +f="error", +g="endpoint", +h={"required":true,"default":false,"type":"Boolean"}, +i={[s]:"Endpoint"}, +j={[q]:"booleanEquals",[r]:[{[s]:"UseFIPS"},true]}, +k={[q]:"booleanEquals",[r]:[{[s]:"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"]}]}, +m={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:d},"supportsFIPS"]}]}, +n={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:d},"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}]}]}; +p=[k]; +const _data={version:"1.0",parameters:{Region:{required:a,type:c},UseDualStack:h,UseFIPS:h,Endpoint:{required:b,type:c}},rules:[{conditions:[{[q]:"aws.partition",[r]:[{[s]:"Region"}],assign:d}],type:e,rules:[{conditions:[{[q]:"isSet",[r]:[i]}],type:e,rules:[{conditions:o,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:f},{type:e,rules:[{conditions:p,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:f},{endpoint:{url:i,properties:l,headers:l},type:g}]}]},{conditions:[j,k],type:e,rules:[{conditions:[m,n],type:e,rules:[{endpoint:{url:"https://iottwinmaker-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:g}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:f}]},{conditions:o,type:e,rules:[{conditions:[m],type:e,rules:[{type:e,rules:[{endpoint:{url:"https://iottwinmaker-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:g}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:f}]},{conditions:p,type:e,rules:[{conditions:[n],type:e,rules:[{endpoint:{url:"https://iottwinmaker.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:g}]},{error:"DualStack is enabled but this partition does not support DualStack",type:f}]},{endpoint:{url:"https://iottwinmaker.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:g}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-ivs/src/endpoint/ruleset.ts b/clients/client-ivs/src/endpoint/ruleset.ts index deb3fe3f4084..1db90365a34c 100644 --- a/clients/client-ivs/src/endpoint/ruleset.ts +++ b/clients/client-ivs/src/endpoint/ruleset.ts @@ -6,26 +6,24 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; 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}]}]}; +const p="required", +q="fn", +r="argv", +s="ref"; +const a="PartitionResult", +b="tree", +c="error", +d="endpoint", +e={[p]:false,"type":"String"}, +f={[p]:true,"default":false,"type":"Boolean"}, +g={[s]:"Endpoint"}, +h={[q]:"booleanEquals",[r]:[{[s]:"UseFIPS"},true]}, +i={[q]:"booleanEquals",[r]:[{[s]:"UseDualStack"},true]}, +j={}, +k={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsFIPS"]}]}, +l={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsDualStack"]}]}, +m=[g], +n=[h], +o=[i]; +const _data={version:"1.0",parameters:{Region:e,UseDualStack:f,UseFIPS:f,Endpoint:e},rules:[{conditions:[{[q]:"aws.partition",[r]:[{[s]:"Region"}],assign:a}],type:b,rules:[{conditions:[{[q]:"isSet",[r]:m},{[q]:"parseURL",[r]:m,assign:"url"}],type:b,rules:[{conditions:n,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:c},{type:b,rules:[{conditions:o,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:c},{endpoint:{url:g,properties:j,headers:j},type:d}]}]},{conditions:[h,i],type:b,rules:[{conditions:[k,l],type:b,rules:[{endpoint:{url:"https://ivs-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:c}]},{conditions:n,type:b,rules:[{conditions:[k],type:b,rules:[{type:b,rules:[{endpoint:{url:"https://ivs-fips.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:c}]},{conditions:o,type:b,rules:[{conditions:[l],type:b,rules:[{endpoint:{url:"https://ivs.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"DualStack is enabled but this partition does not support DualStack",type:c}]},{endpoint:{url:"https://ivs.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-ivschat/src/endpoint/ruleset.ts b/clients/client-ivschat/src/endpoint/ruleset.ts index ccb3652c4007..671eacf42ed5 100644 --- a/clients/client-ivschat/src/endpoint/ruleset.ts +++ b/clients/client-ivschat/src/endpoint/ruleset.ts @@ -6,26 +6,25 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; or see "smithy.rules#endpointRuleSet" in codegen/sdk-codegen/aws-models/ivschat.json */ -const s="fn", -t="argv", -u="ref"; +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={[u]:"Endpoint"}, -j={[s]:"booleanEquals",[t]:[{[u]:"UseFIPS"},true]}, -k={[s]:"booleanEquals",[t]:[{[u]:"UseDualStack"},true]}, +d="PartitionResult", +e="tree", +f="error", +g="endpoint", +h={"required":true,"default":false,"type":"Boolean"}, +i={[t]:"Endpoint"}, +j={[r]:"booleanEquals",[s]:[{[t]:"UseFIPS"},true]}, +k={[r]:"booleanEquals",[s]:[{[t]:"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"]}]}, +m={[r]:"booleanEquals",[s]:[true,{[r]:"getAttr",[s]:[{[t]:d},"supportsFIPS"]}]}, +n={[r]:"booleanEquals",[s]:[true,{[r]:"getAttr",[s]:[{[t]:d},"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}]}]}; +q=[k]; +const _data={version:"1.0",parameters:{Region:{required:a,type:c},UseDualStack:h,UseFIPS:h,Endpoint:{required:b,type:c}},rules:[{conditions:[{[r]:"aws.partition",[s]:[{[t]:"Region"}],assign:d}],type:e,rules:[{conditions:[{[r]:"isSet",[s]:o},{[r]:"parseURL",[s]:o,assign:"url"}],type:e,rules:[{conditions:p,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:f},{type:e,rules:[{conditions:q,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:f},{endpoint:{url:i,properties:l,headers:l},type:g}]}]},{conditions:[j,k],type:e,rules:[{conditions:[m,n],type:e,rules:[{endpoint:{url:"https://ivschat-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:g}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:f}]},{conditions:p,type:e,rules:[{conditions:[m],type:e,rules:[{type:e,rules:[{endpoint:{url:"https://ivschat-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:g}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:f}]},{conditions:q,type:e,rules:[{conditions:[n],type:e,rules:[{endpoint:{url:"https://ivschat.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:g}]},{error:"DualStack is enabled but this partition does not support DualStack",type:f}]},{endpoint:{url:"https://ivschat.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:g}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-kafka/src/endpoint/ruleset.ts b/clients/client-kafka/src/endpoint/ruleset.ts index 5be9e40cfb0e..a54e731dda21 100644 --- a/clients/client-kafka/src/endpoint/ruleset.ts +++ b/clients/client-kafka/src/endpoint/ruleset.ts @@ -6,26 +6,24 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; 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}]}]}; +const p="required", +q="fn", +r="argv", +s="ref"; +const a="PartitionResult", +b="tree", +c="error", +d="endpoint", +e={[p]:false,"type":"String"}, +f={[p]:true,"default":false,"type":"Boolean"}, +g={[s]:"Endpoint"}, +h={[q]:"booleanEquals",[r]:[{[s]:"UseFIPS"},true]}, +i={[q]:"booleanEquals",[r]:[{[s]:"UseDualStack"},true]}, +j={}, +k={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsFIPS"]}]}, +l={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsDualStack"]}]}, +m=[g], +n=[h], +o=[i]; +const _data={version:"1.0",parameters:{Region:e,UseDualStack:f,UseFIPS:f,Endpoint:e},rules:[{conditions:[{[q]:"aws.partition",[r]:[{[s]:"Region"}],assign:a}],type:b,rules:[{conditions:[{[q]:"isSet",[r]:m},{[q]:"parseURL",[r]:m,assign:"url"}],type:b,rules:[{conditions:n,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:c},{type:b,rules:[{conditions:o,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:c},{endpoint:{url:g,properties:j,headers:j},type:d}]}]},{conditions:[h,i],type:b,rules:[{conditions:[k,l],type:b,rules:[{endpoint:{url:"https://kafka-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:c}]},{conditions:n,type:b,rules:[{conditions:[k],type:b,rules:[{type:b,rules:[{endpoint:{url:"https://kafka-fips.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:c}]},{conditions:o,type:b,rules:[{conditions:[l],type:b,rules:[{endpoint:{url:"https://kafka.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"DualStack is enabled but this partition does not support DualStack",type:c}]},{endpoint:{url:"https://kafka.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-kafkaconnect/src/endpoint/ruleset.ts b/clients/client-kafkaconnect/src/endpoint/ruleset.ts index 53f10483d90a..93bf903d28ae 100644 --- a/clients/client-kafkaconnect/src/endpoint/ruleset.ts +++ b/clients/client-kafkaconnect/src/endpoint/ruleset.ts @@ -6,26 +6,24 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; 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}]}]}; +const p="required", +q="fn", +r="argv", +s="ref"; +const a="PartitionResult", +b="tree", +c="error", +d="endpoint", +e={[p]:false,"type":"String"}, +f={[p]:true,"default":false,"type":"Boolean"}, +g={[s]:"Endpoint"}, +h={[q]:"booleanEquals",[r]:[{[s]:"UseFIPS"},true]}, +i={[q]:"booleanEquals",[r]:[{[s]:"UseDualStack"},true]}, +j={}, +k={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsFIPS"]}]}, +l={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsDualStack"]}]}, +m=[g], +n=[h], +o=[i]; +const _data={version:"1.0",parameters:{Region:e,UseDualStack:f,UseFIPS:f,Endpoint:e},rules:[{conditions:[{[q]:"aws.partition",[r]:[{[s]:"Region"}],assign:a}],type:b,rules:[{conditions:[{[q]:"isSet",[r]:m},{[q]:"parseURL",[r]:m,assign:"url"}],type:b,rules:[{conditions:n,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:c},{type:b,rules:[{conditions:o,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:c},{endpoint:{url:g,properties:j,headers:j},type:d}]}]},{conditions:[h,i],type:b,rules:[{conditions:[k,l],type:b,rules:[{endpoint:{url:"https://kafkaconnect-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:c}]},{conditions:n,type:b,rules:[{conditions:[k],type:b,rules:[{type:b,rules:[{endpoint:{url:"https://kafkaconnect-fips.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:c}]},{conditions:o,type:b,rules:[{conditions:[l],type:b,rules:[{endpoint:{url:"https://kafkaconnect.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"DualStack is enabled but this partition does not support DualStack",type:c}]},{endpoint:{url:"https://kafkaconnect.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-kendra/src/endpoint/ruleset.ts b/clients/client-kendra/src/endpoint/ruleset.ts index 0db6bee7c3e9..6f7d25740466 100644 --- a/clients/client-kendra/src/endpoint/ruleset.ts +++ b/clients/client-kendra/src/endpoint/ruleset.ts @@ -6,26 +6,25 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; or see "smithy.rules#endpointRuleSet" in codegen/sdk-codegen/aws-models/kendra.json */ -const s="fn", -t="argv", -u="ref"; +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={[u]:"Endpoint"}, -j={[s]:"booleanEquals",[t]:[{[u]:"UseFIPS"},true]}, -k={[s]:"booleanEquals",[t]:[{[u]:"UseDualStack"},true]}, +d="PartitionResult", +e="tree", +f="error", +g="endpoint", +h={"required":true,"default":false,"type":"Boolean"}, +i={[t]:"Endpoint"}, +j={[r]:"booleanEquals",[s]:[{[t]:"UseFIPS"},true]}, +k={[r]:"booleanEquals",[s]:[{[t]:"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"]}]}, +m={[r]:"booleanEquals",[s]:[true,{[r]:"getAttr",[s]:[{[t]:d},"supportsFIPS"]}]}, +n={[r]:"booleanEquals",[s]:[true,{[r]:"getAttr",[s]:[{[t]:d},"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}]}]}; +q=[k]; +const _data={version:"1.0",parameters:{Region:{required:a,type:c},UseDualStack:h,UseFIPS:h,Endpoint:{required:b,type:c}},rules:[{conditions:[{[r]:"aws.partition",[s]:[{[t]:"Region"}],assign:d}],type:e,rules:[{conditions:[{[r]:"isSet",[s]:o},{[r]:"parseURL",[s]:o,assign:"url"}],type:e,rules:[{conditions:p,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:f},{type:e,rules:[{conditions:q,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:f},{endpoint:{url:i,properties:l,headers:l},type:g}]}]},{conditions:[j,k],type:e,rules:[{conditions:[m,n],type:e,rules:[{endpoint:{url:"https://kendra-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:g}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:f}]},{conditions:p,type:e,rules:[{conditions:[m],type:e,rules:[{type:e,rules:[{endpoint:{url:"https://kendra-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:g}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:f}]},{conditions:q,type:e,rules:[{conditions:[n],type:e,rules:[{endpoint:{url:"https://kendra.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:g}]},{error:"DualStack is enabled but this partition does not support DualStack",type:f}]},{endpoint:{url:"https://kendra.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:g}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-keyspaces/src/endpoint/ruleset.ts b/clients/client-keyspaces/src/endpoint/ruleset.ts index 1f8729858601..77887d306cb1 100644 --- a/clients/client-keyspaces/src/endpoint/ruleset.ts +++ b/clients/client-keyspaces/src/endpoint/ruleset.ts @@ -6,26 +6,24 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; 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}]}]}; +const p="required", +q="fn", +r="argv", +s="ref"; +const a="PartitionResult", +b="tree", +c="error", +d="endpoint", +e={[p]:false,"type":"String"}, +f={[p]:true,"default":false,"type":"Boolean"}, +g={[s]:"Endpoint"}, +h={[q]:"booleanEquals",[r]:[{[s]:"UseFIPS"},true]}, +i={[q]:"booleanEquals",[r]:[{[s]:"UseDualStack"},true]}, +j={}, +k={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsFIPS"]}]}, +l={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsDualStack"]}]}, +m=[g], +n=[h], +o=[i]; +const _data={version:"1.0",parameters:{Region:e,UseDualStack:f,UseFIPS:f,Endpoint:e},rules:[{conditions:[{[q]:"aws.partition",[r]:[{[s]:"Region"}],assign:a}],type:b,rules:[{conditions:[{[q]:"isSet",[r]:m},{[q]:"parseURL",[r]:m,assign:"url"}],type:b,rules:[{conditions:n,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:c},{type:b,rules:[{conditions:o,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:c},{endpoint:{url:g,properties:j,headers:j},type:d}]}]},{conditions:[h,i],type:b,rules:[{conditions:[k,l],type:b,rules:[{endpoint:{url:"https://cassandra-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:c}]},{conditions:n,type:b,rules:[{conditions:[k],type:b,rules:[{endpoint:{url:"https://cassandra-fips.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]},{error:"FIPS is enabled but this partition does not support FIPS",type:c}]},{conditions:o,type:b,rules:[{conditions:[l],type:b,rules:[{endpoint:{url:"https://cassandra.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"DualStack is enabled but this partition does not support DualStack",type:c}]},{endpoint:{url:"https://cassandra.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-kinesis-analytics-v2/src/endpoint/ruleset.ts b/clients/client-kinesis-analytics-v2/src/endpoint/ruleset.ts index a6239c03062e..cc5b9b1a13b9 100644 --- a/clients/client-kinesis-analytics-v2/src/endpoint/ruleset.ts +++ b/clients/client-kinesis-analytics-v2/src/endpoint/ruleset.ts @@ -6,26 +6,24 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; 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}]}]}; +const p="required", +q="fn", +r="argv", +s="ref"; +const a="PartitionResult", +b="tree", +c="error", +d="endpoint", +e={[p]:false,"type":"String"}, +f={[p]:true,"default":false,"type":"Boolean"}, +g={[s]:"Endpoint"}, +h={[q]:"booleanEquals",[r]:[{[s]:"UseFIPS"},true]}, +i={[q]:"booleanEquals",[r]:[{[s]:"UseDualStack"},true]}, +j={}, +k={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsFIPS"]}]}, +l={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsDualStack"]}]}, +m=[g], +n=[h], +o=[i]; +const _data={version:"1.0",parameters:{Region:e,UseDualStack:f,UseFIPS:f,Endpoint:e},rules:[{conditions:[{[q]:"aws.partition",[r]:[{[s]:"Region"}],assign:a}],type:b,rules:[{conditions:[{[q]:"isSet",[r]:m},{[q]:"parseURL",[r]:m,assign:"url"}],type:b,rules:[{conditions:n,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:c},{type:b,rules:[{conditions:o,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:c},{endpoint:{url:g,properties:j,headers:j},type:d}]}]},{conditions:[h,i],type:b,rules:[{conditions:[k,l],type:b,rules:[{endpoint:{url:"https://kinesisanalytics-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:c}]},{conditions:n,type:b,rules:[{conditions:[k],type:b,rules:[{type:b,rules:[{endpoint:{url:"https://kinesisanalytics-fips.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:c}]},{conditions:o,type:b,rules:[{conditions:[l],type:b,rules:[{endpoint:{url:"https://kinesisanalytics.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"DualStack is enabled but this partition does not support DualStack",type:c}]},{endpoint:{url:"https://kinesisanalytics.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-kinesis-analytics/src/endpoint/ruleset.ts b/clients/client-kinesis-analytics/src/endpoint/ruleset.ts index e40cb22e5d62..8d8030a298c1 100644 --- a/clients/client-kinesis-analytics/src/endpoint/ruleset.ts +++ b/clients/client-kinesis-analytics/src/endpoint/ruleset.ts @@ -6,26 +6,24 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; 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}]}]}; +const p="required", +q="fn", +r="argv", +s="ref"; +const a="PartitionResult", +b="tree", +c="error", +d="endpoint", +e={[p]:false,"type":"String"}, +f={[p]:true,"default":false,"type":"Boolean"}, +g={[s]:"Endpoint"}, +h={[q]:"booleanEquals",[r]:[{[s]:"UseFIPS"},true]}, +i={[q]:"booleanEquals",[r]:[{[s]:"UseDualStack"},true]}, +j={}, +k={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsFIPS"]}]}, +l={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsDualStack"]}]}, +m=[g], +n=[h], +o=[i]; +const _data={version:"1.0",parameters:{Region:e,UseDualStack:f,UseFIPS:f,Endpoint:e},rules:[{conditions:[{[q]:"aws.partition",[r]:[{[s]:"Region"}],assign:a}],type:b,rules:[{conditions:[{[q]:"isSet",[r]:m},{[q]:"parseURL",[r]:m,assign:"url"}],type:b,rules:[{conditions:n,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:c},{type:b,rules:[{conditions:o,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:c},{endpoint:{url:g,properties:j,headers:j},type:d}]}]},{conditions:[h,i],type:b,rules:[{conditions:[k,l],type:b,rules:[{endpoint:{url:"https://kinesisanalytics-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:c}]},{conditions:n,type:b,rules:[{conditions:[k],type:b,rules:[{type:b,rules:[{endpoint:{url:"https://kinesisanalytics-fips.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:c}]},{conditions:o,type:b,rules:[{conditions:[l],type:b,rules:[{endpoint:{url:"https://kinesisanalytics.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"DualStack is enabled but this partition does not support DualStack",type:c}]},{endpoint:{url:"https://kinesisanalytics.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]}; export const ruleSet: RuleSetObject = _data; 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 c41483e59b1b..a69ba2aa0a3b 100644 --- a/clients/client-kinesis-video-archived-media/src/endpoint/ruleset.ts +++ b/clients/client-kinesis-video-archived-media/src/endpoint/ruleset.ts @@ -6,26 +6,24 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; 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}]}]}; +const p="required", +q="fn", +r="argv", +s="ref"; +const a="PartitionResult", +b="tree", +c="error", +d="endpoint", +e={[p]:false,"type":"String"}, +f={[p]:true,"default":false,"type":"Boolean"}, +g={[s]:"Endpoint"}, +h={[q]:"booleanEquals",[r]:[{[s]:"UseFIPS"},true]}, +i={[q]:"booleanEquals",[r]:[{[s]:"UseDualStack"},true]}, +j={}, +k={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsFIPS"]}]}, +l={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsDualStack"]}]}, +m=[g], +n=[h], +o=[i]; +const _data={version:"1.0",parameters:{Region:e,UseDualStack:f,UseFIPS:f,Endpoint:e},rules:[{conditions:[{[q]:"aws.partition",[r]:[{[s]:"Region"}],assign:a}],type:b,rules:[{conditions:[{[q]:"isSet",[r]:m},{[q]:"parseURL",[r]:m,assign:"url"}],type:b,rules:[{conditions:n,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:c},{type:b,rules:[{conditions:o,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:c},{endpoint:{url:g,properties:j,headers:j},type:d}]}]},{conditions:[h,i],type:b,rules:[{conditions:[k,l],type:b,rules:[{endpoint:{url:"https://kinesisvideo-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:c}]},{conditions:n,type:b,rules:[{conditions:[k],type:b,rules:[{type:b,rules:[{endpoint:{url:"https://kinesisvideo-fips.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:c}]},{conditions:o,type:b,rules:[{conditions:[l],type:b,rules:[{endpoint:{url:"https://kinesisvideo.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"DualStack is enabled but this partition does not support DualStack",type:c}]},{endpoint:{url:"https://kinesisvideo.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-kinesis-video-media/src/endpoint/ruleset.ts b/clients/client-kinesis-video-media/src/endpoint/ruleset.ts index 33345d67bbc5..0629cfc97c28 100644 --- a/clients/client-kinesis-video-media/src/endpoint/ruleset.ts +++ b/clients/client-kinesis-video-media/src/endpoint/ruleset.ts @@ -6,26 +6,24 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; 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}]}]}; +const p="required", +q="fn", +r="argv", +s="ref"; +const a="PartitionResult", +b="tree", +c="error", +d="endpoint", +e={[p]:false,"type":"String"}, +f={[p]:true,"default":false,"type":"Boolean"}, +g={[s]:"Endpoint"}, +h={[q]:"booleanEquals",[r]:[{[s]:"UseFIPS"},true]}, +i={[q]:"booleanEquals",[r]:[{[s]:"UseDualStack"},true]}, +j={}, +k={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsFIPS"]}]}, +l={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsDualStack"]}]}, +m=[g], +n=[h], +o=[i]; +const _data={version:"1.0",parameters:{Region:e,UseDualStack:f,UseFIPS:f,Endpoint:e},rules:[{conditions:[{[q]:"aws.partition",[r]:[{[s]:"Region"}],assign:a}],type:b,rules:[{conditions:[{[q]:"isSet",[r]:m},{[q]:"parseURL",[r]:m,assign:"url"}],type:b,rules:[{conditions:n,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:c},{type:b,rules:[{conditions:o,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:c},{endpoint:{url:g,properties:j,headers:j},type:d}]}]},{conditions:[h,i],type:b,rules:[{conditions:[k,l],type:b,rules:[{endpoint:{url:"https://kinesisvideo-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:c}]},{conditions:n,type:b,rules:[{conditions:[k],type:b,rules:[{type:b,rules:[{endpoint:{url:"https://kinesisvideo-fips.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:c}]},{conditions:o,type:b,rules:[{conditions:[l],type:b,rules:[{endpoint:{url:"https://kinesisvideo.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"DualStack is enabled but this partition does not support DualStack",type:c}]},{endpoint:{url:"https://kinesisvideo.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-kinesis-video-signaling/src/endpoint/ruleset.ts b/clients/client-kinesis-video-signaling/src/endpoint/ruleset.ts index c9a67a5d1fe6..0452c390a77c 100644 --- a/clients/client-kinesis-video-signaling/src/endpoint/ruleset.ts +++ b/clients/client-kinesis-video-signaling/src/endpoint/ruleset.ts @@ -6,26 +6,24 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; 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}]}]}; +const p="required", +q="fn", +r="argv", +s="ref"; +const a="PartitionResult", +b="tree", +c="error", +d="endpoint", +e={[p]:false,"type":"String"}, +f={[p]:true,"default":false,"type":"Boolean"}, +g={[s]:"Endpoint"}, +h={[q]:"booleanEquals",[r]:[{[s]:"UseFIPS"},true]}, +i={[q]:"booleanEquals",[r]:[{[s]:"UseDualStack"},true]}, +j={}, +k={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsFIPS"]}]}, +l={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsDualStack"]}]}, +m=[g], +n=[h], +o=[i]; +const _data={version:"1.0",parameters:{Region:e,UseDualStack:f,UseFIPS:f,Endpoint:e},rules:[{conditions:[{[q]:"aws.partition",[r]:[{[s]:"Region"}],assign:a}],type:b,rules:[{conditions:[{[q]:"isSet",[r]:m},{[q]:"parseURL",[r]:m,assign:"url"}],type:b,rules:[{conditions:n,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:c},{type:b,rules:[{conditions:o,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:c},{endpoint:{url:g,properties:j,headers:j},type:d}]}]},{conditions:[h,i],type:b,rules:[{conditions:[k,l],type:b,rules:[{endpoint:{url:"https://kinesisvideo-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:c}]},{conditions:n,type:b,rules:[{conditions:[k],type:b,rules:[{type:b,rules:[{endpoint:{url:"https://kinesisvideo-fips.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:c}]},{conditions:o,type:b,rules:[{conditions:[l],type:b,rules:[{endpoint:{url:"https://kinesisvideo.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"DualStack is enabled but this partition does not support DualStack",type:c}]},{endpoint:{url:"https://kinesisvideo.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]}; export const ruleSet: RuleSetObject = _data; 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 11ea73bfc29e..2a77a863cb7b 100644 --- a/clients/client-kinesis-video-webrtc-storage/src/endpoint/ruleset.ts +++ b/clients/client-kinesis-video-webrtc-storage/src/endpoint/ruleset.ts @@ -6,25 +6,24 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; or see "smithy.rules#endpointRuleSet" in codegen/sdk-codegen/aws-models/kinesis-video-webrtc-storage.json */ -const r="fn", -s="argv", -t="ref"; +const q="fn", +r="argv", +s="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]}, +d="PartitionResult", +e="tree", +f="error", +g="endpoint", +h={"required":true,"default":false,"type":"Boolean"}, +i={[s]:"Endpoint"}, +j={[q]:"booleanEquals",[r]:[{[s]:"UseFIPS"},true]}, +k={[q]:"booleanEquals",[r]:[{[s]:"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"]}]}, +m={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:d},"supportsFIPS"]}]}, +n={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:d},"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}]}]}; +p=[k]; +const _data={version:"1.0",parameters:{Region:{required:a,type:c},UseDualStack:h,UseFIPS:h,Endpoint:{required:b,type:c}},rules:[{conditions:[{[q]:"aws.partition",[r]:[{[s]:"Region"}],assign:d}],type:e,rules:[{conditions:[{[q]:"isSet",[r]:[i]}],type:e,rules:[{conditions:o,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:f},{type:e,rules:[{conditions:p,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:f},{endpoint:{url:i,properties:l,headers:l},type:g}]}]},{conditions:[j,k],type:e,rules:[{conditions:[m,n],type:e,rules:[{endpoint:{url:"https://kinesisvideo-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:g}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:f}]},{conditions:o,type:e,rules:[{conditions:[m],type:e,rules:[{endpoint:{url:"https://kinesisvideo-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:g}]},{error:"FIPS is enabled but this partition does not support FIPS",type:f}]},{conditions:p,type:e,rules:[{conditions:[n],type:e,rules:[{endpoint:{url:"https://kinesisvideo.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:g}]},{error:"DualStack is enabled but this partition does not support DualStack",type:f}]},{endpoint:{url:"https://kinesisvideo.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:g}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-kinesis-video/src/endpoint/ruleset.ts b/clients/client-kinesis-video/src/endpoint/ruleset.ts index 3628e364423e..480b52742eca 100644 --- a/clients/client-kinesis-video/src/endpoint/ruleset.ts +++ b/clients/client-kinesis-video/src/endpoint/ruleset.ts @@ -6,25 +6,24 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; or see "smithy.rules#endpointRuleSet" in codegen/sdk-codegen/aws-models/kinesis-video.json */ -const r="fn", -s="argv", -t="ref"; +const q="fn", +r="argv", +s="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]}, +d="PartitionResult", +e="tree", +f="error", +g="endpoint", +h={"required":true,"default":false,"type":"Boolean"}, +i={[s]:"Endpoint"}, +j={[q]:"booleanEquals",[r]:[{[s]:"UseFIPS"},true]}, +k={[q]:"booleanEquals",[r]:[{[s]:"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"]}]}, +m={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:d},"supportsFIPS"]}]}, +n={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:d},"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}]}]}; +p=[k]; +const _data={version:"1.0",parameters:{Region:{required:a,type:c},UseDualStack:h,UseFIPS:h,Endpoint:{required:b,type:c}},rules:[{conditions:[{[q]:"aws.partition",[r]:[{[s]:"Region"}],assign:d}],type:e,rules:[{conditions:[{[q]:"isSet",[r]:[i]}],type:e,rules:[{conditions:o,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:f},{type:e,rules:[{conditions:p,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:f},{endpoint:{url:i,properties:l,headers:l},type:g}]}]},{conditions:[j,k],type:e,rules:[{conditions:[m,n],type:e,rules:[{endpoint:{url:"https://kinesisvideo-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:g}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:f}]},{conditions:o,type:e,rules:[{conditions:[m],type:e,rules:[{type:e,rules:[{endpoint:{url:"https://kinesisvideo-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:g}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:f}]},{conditions:p,type:e,rules:[{conditions:[n],type:e,rules:[{endpoint:{url:"https://kinesisvideo.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:g}]},{error:"DualStack is enabled but this partition does not support DualStack",type:f}]},{endpoint:{url:"https://kinesisvideo.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:g}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-kinesis/src/endpoint/ruleset.ts b/clients/client-kinesis/src/endpoint/ruleset.ts index 5ce83456207e..ee21620a72e9 100644 --- a/clients/client-kinesis/src/endpoint/ruleset.ts +++ b/clients/client-kinesis/src/endpoint/ruleset.ts @@ -6,7 +6,8 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; or see "smithy.rules#endpointRuleSet" in codegen/sdk-codegen/aws-models/kinesis.json */ -const D="type", +const C="required", +D="type", E="rules", F="conditions", G="fn", @@ -16,33 +17,32 @@ 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"}]}]}, +b="String", +c="PartitionResult", +d="tree", +e="isSet", +f="aws.parseArn", +g="arn", +h="endpoint", +i="error", +j={[C]:true,"default":false,[D]:"Boolean"}, +k={[C]:false,[D]:b}, +l={[G]:"not",[H]:[{[G]:e,[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"]}]}, +n={[G]:"not",[H]:[{[G]:"stringEquals",[H]:[{[G]:"getAttr",[H]:[{[I]:c},"name"]},"aws-iso"]}]}, +o={[G]:"not",[H]:[{[G]:"stringEquals",[H]:[{[G]:"getAttr",[H]:[{[I]:c},"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"]}]}, +q={[i]:"FIPS is enabled but this partition does not support FIPS",[D]:i}, +r={[i]:"DualStack is enabled but this partition does not support DualStack",[D]:i}, +s={[i]:"Invalid ARN: Failed to parse ARN.",[D]:i}, +t={[G]:"booleanEquals",[H]:[true,{[G]:"getAttr",[H]:[{[I]:c},"supportsFIPS"]}]}, +u={[G]:"booleanEquals",[H]:[true,{[G]:"getAttr",[H]:[{[I]:c},"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}]}]}; +w=[{[G]:e,[H]:[m]}], +x=[{[D]:d,[E]:[{[F]:[{[G]:"isValidHostLabel",[H]:[{[G]:"getAttr",[H]:[{[I]:g},"accountId"]},false]}],[D]:d,[E]:[{[D]:d,[E]:[{[F]:[{[G]:"isValidHostLabel",[H]:[{[G]:"getAttr",[H]:[{[I]:g},"region"]},false]}],[D]:d,[E]:[{[D]:d,[E]:[{[F]:[{[G]:"stringEquals",[H]:[{[G]:"getAttr",[H]:[{[I]:g},"service"]},"kinesis"]}],[D]:d,[E]:[{[D]:d,[E]:[{[F]:[{[G]:"getAttr",[H]:[{[I]:g},"resourceId[0]"],"assign":"arnType"},{[G]:"not",[H]:[{[G]:"stringEquals",[H]:[{[I]:"arnType"},""]}]}],[D]:d,[E]:[{[D]:d,[E]:[{[F]:[{[G]:"stringEquals",[H]:[{[I]:"arnType"},"stream"]}],[D]:d,[E]:[{[D]:d,[E]:[{[F]:[{[G]:"stringEquals",[H]:[{[G]:"getAttr",[H]:[{[I]:c},"name"]},"{arn#partition}"]}],[D]:d,[E]:[{[D]:d,[E]:[{[F]:[{[G]:e,[H]:[{[I]:"OperationType"}]}],[D]:d,[E]:[{[D]:d,[E]:[{[F]:[{[G]:"booleanEquals",[H]:[{[I]:"UseFIPS"},true]},{[G]:"booleanEquals",[H]:[{[I]:"UseDualStack"},true]}],[D]:d,[E]:[{[F]:[{[G]:"booleanEquals",[H]:[{[G]:"getAttr",[H]:[{[I]:c},"supportsFIPS"]},true]}],[D]:d,[E]:[{[D]:d,[E]:[{[F]:[{[G]:"booleanEquals",[H]:[{[G]:"getAttr",[H]:[{[I]:c},"supportsDualStack"]},true]}],[D]:d,[E]:[{[h]:{[J]:"https://{arn#accountId}.{OperationType}-kinesis-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",[K]:{},[L]:{}},[D]:h}]},{[i]:"DualStack is enabled, but this partition does not support DualStack.",[D]:i}]}]},{[i]:"FIPS is enabled, but this partition does not support FIPS.",[D]:i}]},{[F]:[{[G]:"booleanEquals",[H]:[{[I]:"UseFIPS"},true]}],[D]:d,[E]:[{[F]:[{[G]:"booleanEquals",[H]:[{[G]:"getAttr",[H]:[{[I]:c},"supportsFIPS"]},true]}],[D]:d,[E]:[{[h]:{[J]:"https://{arn#accountId}.{OperationType}-kinesis-fips.{Region}.{PartitionResult#dnsSuffix}",[K]:{},[L]:{}},[D]:h}]},q]},{[F]:[{[G]:"booleanEquals",[H]:[{[I]:"UseDualStack"},true]}],[D]:d,[E]:[{[F]:[{[G]:"booleanEquals",[H]:[{[G]:"getAttr",[H]:[{[I]:c},"supportsDualStack"]},true]}],[D]:d,[E]:[{[h]:{[J]:"https://{arn#accountId}.{OperationType}-kinesis.{Region}.{PartitionResult#dualStackDnsSuffix}",[K]:{},[L]:{}},[D]:h}]},r]},{[h]:{[J]:"https://{arn#accountId}.{OperationType}-kinesis.{Region}.{PartitionResult#dnsSuffix}",[K]:{},[L]:{}},[D]:h}]}]},{[i]:"Operation Type is not set. Please contact service team for resolution.",[D]:i}]}]},{[i]:"Partition: {arn#partition} from ARN doesn't match with partition name: {PartitionResult#name}.",[D]:i}]}]},{[i]:"Invalid ARN: Kinesis ARNs don't support `{arnType}` arn types.",[D]:i}]}]},{[i]:"Invalid ARN: No ARN type specified",[D]:i}]}]},{[i]:"Invalid ARN: The ARN was not for the Kinesis service, found: {arn#service}.",[D]:i}]}]},{[i]:"Invalid ARN: Invalid region.",[D]:i}]}]},{[i]:"Invalid ARN: Invalid account id.",[D]:i}]}], +y=[{[G]:"booleanEquals",[H]:[{[I]:"UseFIPS"},true]},{[G]:"booleanEquals",[H]:[{[I]:"UseDualStack"},true]}], +z=[{[G]:"booleanEquals",[H]:[{[I]:"UseFIPS"},true]}], +A=[{[G]:"booleanEquals",[H]:[{[I]:"UseDualStack"},true]}], +B=[{[I]:"ConsumerARN"}]; +const _data={version:"1.3",parameters:{Region:{[C]:a,[D]:b},UseDualStack:j,UseFIPS:j,Endpoint:k,StreamARN:k,OperationType:k,ConsumerARN:k},[E]:[{[F]:[{[G]:"aws.partition",[H]:[{[I]:"Region"}],assign:c}],[D]:d,[E]:[{[F]:[{[G]:e,[H]:v},l,n,o],[D]:d,[E]:[{[F]:[{[G]:f,[H]:v,assign:g}],[D]:d,[E]:x},s]},{[F]:[{[G]:e,[H]:B},l,n,o],[D]:d,[E]:[{[F]:[{[G]:f,[H]:B,assign:g}],[D]:d,[E]:x},s]},{[F]:w,[D]:d,[E]:[{[F]:z,error:"Invalid Configuration: FIPS and custom endpoint are not supported",[D]:i},{[D]:d,[E]:[{[F]:A,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",[D]:i},{endpoint:{[J]:m,[K]:p,[L]:p},[D]:h}]}]},{[F]:y,[D]:d,[E]:[{[F]:[t,u],[D]:d,[E]:[{endpoint:{[J]:"https://kinesis-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",[K]:p,[L]:p},[D]:h}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",[D]:i}]},{[F]:z,[D]:d,[E]:[{[F]:[t],[D]:d,[E]:[{[D]:d,[E]:[{endpoint:{[J]:"https://kinesis-fips.{Region}.{PartitionResult#dnsSuffix}",[K]:p,[L]:p},[D]:h}]}]},q]},{[F]:A,[D]:d,[E]:[{[F]:[u],[D]:d,[E]:[{endpoint:{[J]:"https://kinesis.{Region}.{PartitionResult#dualStackDnsSuffix}",[K]:p,[L]:p},[D]:h}]},r]},{endpoint:{[J]:"https://kinesis.{Region}.{PartitionResult#dnsSuffix}",[K]:p,[L]:p},[D]:h}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-kms/src/endpoint/ruleset.ts b/clients/client-kms/src/endpoint/ruleset.ts index dc3cc3510cac..1f3aebba6761 100644 --- a/clients/client-kms/src/endpoint/ruleset.ts +++ b/clients/client-kms/src/endpoint/ruleset.ts @@ -6,25 +6,24 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; or see "smithy.rules#endpointRuleSet" in codegen/sdk-codegen/aws-models/kms.json */ -const r="fn", -s="argv", -t="ref"; +const q="fn", +r="argv", +s="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]}, +d="PartitionResult", +e="tree", +f="error", +g="endpoint", +h={"required":true,"default":false,"type":"Boolean"}, +i={[s]:"Endpoint"}, +j={[q]:"booleanEquals",[r]:[{[s]:"UseFIPS"},true]}, +k={[q]:"booleanEquals",[r]:[{[s]:"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"]}]}, +m={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:d},"supportsFIPS"]}]}, +n={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:d},"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}]}]}; +p=[k]; +const _data={version:"1.0",parameters:{Region:{required:a,type:c},UseDualStack:h,UseFIPS:h,Endpoint:{required:b,type:c}},rules:[{conditions:[{[q]:"aws.partition",[r]:[{[s]:"Region"}],assign:d}],type:e,rules:[{conditions:[{[q]:"isSet",[r]:[i]}],type:e,rules:[{conditions:o,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:f},{type:e,rules:[{conditions:p,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:f},{endpoint:{url:i,properties:l,headers:l},type:g}]}]},{conditions:[j,k],type:e,rules:[{conditions:[m,n],type:e,rules:[{endpoint:{url:"https://kms-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:g}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:f}]},{conditions:o,type:e,rules:[{conditions:[m],type:e,rules:[{type:e,rules:[{endpoint:{url:"https://kms-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:g}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:f}]},{conditions:p,type:e,rules:[{conditions:[n],type:e,rules:[{endpoint:{url:"https://kms.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:g}]},{error:"DualStack is enabled but this partition does not support DualStack",type:f}]},{endpoint:{url:"https://kms.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:g}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-lakeformation/src/endpoint/ruleset.ts b/clients/client-lakeformation/src/endpoint/ruleset.ts index ffc171b50f69..cf2c87cb6dde 100644 --- a/clients/client-lakeformation/src/endpoint/ruleset.ts +++ b/clients/client-lakeformation/src/endpoint/ruleset.ts @@ -6,26 +6,24 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; 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}]}]}; +const p="required", +q="fn", +r="argv", +s="ref"; +const a="PartitionResult", +b="tree", +c="error", +d="endpoint", +e={[p]:false,"type":"String"}, +f={[p]:true,"default":false,"type":"Boolean"}, +g={[s]:"Endpoint"}, +h={[q]:"booleanEquals",[r]:[{[s]:"UseFIPS"},true]}, +i={[q]:"booleanEquals",[r]:[{[s]:"UseDualStack"},true]}, +j={}, +k={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsFIPS"]}]}, +l={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsDualStack"]}]}, +m=[g], +n=[h], +o=[i]; +const _data={version:"1.0",parameters:{Region:e,UseDualStack:f,UseFIPS:f,Endpoint:e},rules:[{conditions:[{[q]:"aws.partition",[r]:[{[s]:"Region"}],assign:a}],type:b,rules:[{conditions:[{[q]:"isSet",[r]:m},{[q]:"parseURL",[r]:m,assign:"url"}],type:b,rules:[{conditions:n,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:c},{type:b,rules:[{conditions:o,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:c},{endpoint:{url:g,properties:j,headers:j},type:d}]}]},{conditions:[h,i],type:b,rules:[{conditions:[k,l],type:b,rules:[{endpoint:{url:"https://lakeformation-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:c}]},{conditions:n,type:b,rules:[{conditions:[k],type:b,rules:[{type:b,rules:[{endpoint:{url:"https://lakeformation-fips.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:c}]},{conditions:o,type:b,rules:[{conditions:[l],type:b,rules:[{endpoint:{url:"https://lakeformation.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"DualStack is enabled but this partition does not support DualStack",type:c}]},{endpoint:{url:"https://lakeformation.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-lambda/src/endpoint/ruleset.ts b/clients/client-lambda/src/endpoint/ruleset.ts index bb062c18bc79..b140af03675d 100644 --- a/clients/client-lambda/src/endpoint/ruleset.ts +++ b/clients/client-lambda/src/endpoint/ruleset.ts @@ -6,26 +6,25 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; or see "smithy.rules#endpointRuleSet" in codegen/sdk-codegen/aws-models/lambda.json */ -const s="fn", -t="argv", -u="ref"; +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={[u]:"Endpoint"}, -j={[s]:"booleanEquals",[t]:[{[u]:"UseFIPS"},true]}, -k={[s]:"booleanEquals",[t]:[{[u]:"UseDualStack"},true]}, +d="PartitionResult", +e="tree", +f="error", +g="endpoint", +h={"required":true,"default":false,"type":"Boolean"}, +i={[t]:"Endpoint"}, +j={[r]:"booleanEquals",[s]:[{[t]:"UseFIPS"},true]}, +k={[r]:"booleanEquals",[s]:[{[t]:"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"]}]}, +m={[r]:"booleanEquals",[s]:[true,{[r]:"getAttr",[s]:[{[t]:d},"supportsFIPS"]}]}, +n={[r]:"booleanEquals",[s]:[true,{[r]:"getAttr",[s]:[{[t]:d},"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}]}]}; +q=[k]; +const _data={version:"1.0",parameters:{Region:{required:a,type:c},UseDualStack:h,UseFIPS:h,Endpoint:{required:b,type:c}},rules:[{conditions:[{[r]:"aws.partition",[s]:[{[t]:"Region"}],assign:d}],type:e,rules:[{conditions:[{[r]:"isSet",[s]:o},{[r]:"parseURL",[s]:o,assign:"url"}],type:e,rules:[{conditions:p,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:f},{type:e,rules:[{conditions:q,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:f},{endpoint:{url:i,properties:l,headers:l},type:g}]}]},{conditions:[j,k],type:e,rules:[{conditions:[m,n],type:e,rules:[{endpoint:{url:"https://lambda-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:g}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:f}]},{conditions:p,type:e,rules:[{conditions:[m],type:e,rules:[{type:e,rules:[{endpoint:{url:"https://lambda-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:g}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:f}]},{conditions:q,type:e,rules:[{conditions:[n],type:e,rules:[{endpoint:{url:"https://lambda.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:g}]},{error:"DualStack is enabled but this partition does not support DualStack",type:f}]},{endpoint:{url:"https://lambda.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:g}]}]}; export const ruleSet: RuleSetObject = _data; 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 897dcec65a69..8bc204d016cb 100644 --- a/clients/client-lex-model-building-service/src/endpoint/ruleset.ts +++ b/clients/client-lex-model-building-service/src/endpoint/ruleset.ts @@ -6,29 +6,27 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; 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}]}]}; +const s="required", +t="fn", +u="argv", +v="ref"; +const a="PartitionResult", +b="tree", +c="error", +d="endpoint", +e="stringEquals", +f={[s]:false,"type":"String"}, +g={[s]:true,"default":false,"type":"Boolean"}, +h={[v]:"Endpoint"}, +i={[t]:"booleanEquals",[u]:[{[v]:"UseFIPS"},true]}, +j={[t]:"booleanEquals",[u]:[{[v]:"UseDualStack"},true]}, +k={}, +l={[t]:"booleanEquals",[u]:[true,{[t]:"getAttr",[u]:[{[v]:a},"supportsFIPS"]}]}, +m={[t]:"booleanEquals",[u]:[true,{[t]:"getAttr",[u]:[{[v]:a},"supportsDualStack"]}]}, +n={[t]:"getAttr",[u]:[{[v]:a},"name"]}, +o={"url":"https://models-fips.lex.{Region}.{PartitionResult#dnsSuffix}","properties":{},"headers":{}}, +p=[h], +q=[i], +r=[j]; +const _data={version:"1.0",parameters:{Region:f,UseDualStack:g,UseFIPS:g,Endpoint:f},rules:[{conditions:[{[t]:"aws.partition",[u]:[{[v]:"Region"}],assign:a}],type:b,rules:[{conditions:[{[t]:"isSet",[u]:p},{[t]:"parseURL",[u]:p,assign:"url"}],type:b,rules:[{conditions:q,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:c},{type:b,rules:[{conditions:r,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:c},{endpoint:{url:h,properties:k,headers:k},type:d}]}]},{conditions:[i,j],type:b,rules:[{conditions:[l,m],type:b,rules:[{endpoint:{url:"https://models.lex-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:k,headers:k},type:d}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:c}]},{conditions:q,type:b,rules:[{conditions:[l],type:b,rules:[{type:b,rules:[{conditions:[{[t]:e,[u]:["aws",n]}],endpoint:o,type:d},{conditions:[{[t]:e,[u]:["aws-us-gov",n]}],endpoint:o,type:d},{endpoint:{url:"https://models.lex-fips.{Region}.{PartitionResult#dnsSuffix}",properties:k,headers:k},type:d}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:c}]},{conditions:r,type:b,rules:[{conditions:[m],type:b,rules:[{endpoint:{url:"https://models.lex.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:k,headers:k},type:d}]},{error:"DualStack is enabled but this partition does not support DualStack",type:c}]},{endpoint:{url:"https://models.lex.{Region}.{PartitionResult#dnsSuffix}",properties:k,headers:k},type:d}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-lex-models-v2/src/endpoint/ruleset.ts b/clients/client-lex-models-v2/src/endpoint/ruleset.ts index f6a2f1c3b9f4..7834545def27 100644 --- a/clients/client-lex-models-v2/src/endpoint/ruleset.ts +++ b/clients/client-lex-models-v2/src/endpoint/ruleset.ts @@ -6,26 +6,24 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; 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}]}]}; +const p="required", +q="fn", +r="argv", +s="ref"; +const a="PartitionResult", +b="tree", +c="error", +d="endpoint", +e={[p]:false,"type":"String"}, +f={[p]:true,"default":false,"type":"Boolean"}, +g={[s]:"Endpoint"}, +h={[q]:"booleanEquals",[r]:[{[s]:"UseFIPS"},true]}, +i={[q]:"booleanEquals",[r]:[{[s]:"UseDualStack"},true]}, +j={}, +k={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsFIPS"]}]}, +l={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsDualStack"]}]}, +m=[g], +n=[h], +o=[i]; +const _data={version:"1.0",parameters:{Region:e,UseDualStack:f,UseFIPS:f,Endpoint:e},rules:[{conditions:[{[q]:"aws.partition",[r]:[{[s]:"Region"}],assign:a}],type:b,rules:[{conditions:[{[q]:"isSet",[r]:m},{[q]:"parseURL",[r]:m,assign:"url"}],type:b,rules:[{conditions:n,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:c},{type:b,rules:[{conditions:o,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:c},{endpoint:{url:g,properties:j,headers:j},type:d}]}]},{conditions:[h,i],type:b,rules:[{conditions:[k,l],type:b,rules:[{endpoint:{url:"https://models-v2-lex-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:c}]},{conditions:n,type:b,rules:[{conditions:[k],type:b,rules:[{type:b,rules:[{endpoint:{url:"https://models-v2-lex-fips.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:c}]},{conditions:o,type:b,rules:[{conditions:[l],type:b,rules:[{endpoint:{url:"https://models-v2-lex.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"DualStack is enabled but this partition does not support DualStack",type:c}]},{endpoint:{url:"https://models-v2-lex.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-lex-runtime-service/src/endpoint/ruleset.ts b/clients/client-lex-runtime-service/src/endpoint/ruleset.ts index f887417cdf79..432275c93467 100644 --- a/clients/client-lex-runtime-service/src/endpoint/ruleset.ts +++ b/clients/client-lex-runtime-service/src/endpoint/ruleset.ts @@ -6,29 +6,27 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; 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}]}]}; +const s="required", +t="fn", +u="argv", +v="ref"; +const a="PartitionResult", +b="tree", +c="error", +d="endpoint", +e="stringEquals", +f={[s]:false,"type":"String"}, +g={[s]:true,"default":false,"type":"Boolean"}, +h={[v]:"Endpoint"}, +i={[t]:"booleanEquals",[u]:[{[v]:"UseFIPS"},true]}, +j={[t]:"booleanEquals",[u]:[{[v]:"UseDualStack"},true]}, +k={}, +l={[t]:"booleanEquals",[u]:[true,{[t]:"getAttr",[u]:[{[v]:a},"supportsFIPS"]}]}, +m={[t]:"booleanEquals",[u]:[true,{[t]:"getAttr",[u]:[{[v]:a},"supportsDualStack"]}]}, +n={[t]:"getAttr",[u]:[{[v]:a},"name"]}, +o={"url":"https://runtime-fips.lex.{Region}.{PartitionResult#dnsSuffix}","properties":{},"headers":{}}, +p=[h], +q=[i], +r=[j]; +const _data={version:"1.0",parameters:{Region:f,UseDualStack:g,UseFIPS:g,Endpoint:f},rules:[{conditions:[{[t]:"aws.partition",[u]:[{[v]:"Region"}],assign:a}],type:b,rules:[{conditions:[{[t]:"isSet",[u]:p},{[t]:"parseURL",[u]:p,assign:"url"}],type:b,rules:[{conditions:q,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:c},{type:b,rules:[{conditions:r,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:c},{endpoint:{url:h,properties:k,headers:k},type:d}]}]},{conditions:[i,j],type:b,rules:[{conditions:[l,m],type:b,rules:[{endpoint:{url:"https://runtime.lex-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:k,headers:k},type:d}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:c}]},{conditions:q,type:b,rules:[{conditions:[l],type:b,rules:[{type:b,rules:[{conditions:[{[t]:e,[u]:["aws",n]}],endpoint:o,type:d},{conditions:[{[t]:e,[u]:["aws-us-gov",n]}],endpoint:o,type:d},{endpoint:{url:"https://runtime.lex-fips.{Region}.{PartitionResult#dnsSuffix}",properties:k,headers:k},type:d}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:c}]},{conditions:r,type:b,rules:[{conditions:[m],type:b,rules:[{endpoint:{url:"https://runtime.lex.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:k,headers:k},type:d}]},{error:"DualStack is enabled but this partition does not support DualStack",type:c}]},{endpoint:{url:"https://runtime.lex.{Region}.{PartitionResult#dnsSuffix}",properties:k,headers:k},type:d}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-lex-runtime-v2/src/endpoint/ruleset.ts b/clients/client-lex-runtime-v2/src/endpoint/ruleset.ts index c36f2335b5e5..f6fe84d52f09 100644 --- a/clients/client-lex-runtime-v2/src/endpoint/ruleset.ts +++ b/clients/client-lex-runtime-v2/src/endpoint/ruleset.ts @@ -6,26 +6,24 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; 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}]}]}; +const p="required", +q="fn", +r="argv", +s="ref"; +const a="PartitionResult", +b="tree", +c="error", +d="endpoint", +e={[p]:false,"type":"String"}, +f={[p]:true,"default":false,"type":"Boolean"}, +g={[s]:"Endpoint"}, +h={[q]:"booleanEquals",[r]:[{[s]:"UseFIPS"},true]}, +i={[q]:"booleanEquals",[r]:[{[s]:"UseDualStack"},true]}, +j={}, +k={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsFIPS"]}]}, +l={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsDualStack"]}]}, +m=[g], +n=[h], +o=[i]; +const _data={version:"1.0",parameters:{Region:e,UseDualStack:f,UseFIPS:f,Endpoint:e},rules:[{conditions:[{[q]:"aws.partition",[r]:[{[s]:"Region"}],assign:a}],type:b,rules:[{conditions:[{[q]:"isSet",[r]:m},{[q]:"parseURL",[r]:m,assign:"url"}],type:b,rules:[{conditions:n,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:c},{type:b,rules:[{conditions:o,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:c},{endpoint:{url:g,properties:j,headers:j},type:d}]}]},{conditions:[h,i],type:b,rules:[{conditions:[k,l],type:b,rules:[{endpoint:{url:"https://runtime-v2-lex-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:c}]},{conditions:n,type:b,rules:[{conditions:[k],type:b,rules:[{type:b,rules:[{endpoint:{url:"https://runtime-v2-lex-fips.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:c}]},{conditions:o,type:b,rules:[{conditions:[l],type:b,rules:[{endpoint:{url:"https://runtime-v2-lex.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"DualStack is enabled but this partition does not support DualStack",type:c}]},{endpoint:{url:"https://runtime-v2-lex.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]}; export const ruleSet: RuleSetObject = _data; 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 5827b852d9c0..d56f669a73b8 100644 --- a/clients/client-license-manager-user-subscriptions/src/endpoint/ruleset.ts +++ b/clients/client-license-manager-user-subscriptions/src/endpoint/ruleset.ts @@ -6,26 +6,24 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; 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}]}]}; +const p="required", +q="fn", +r="argv", +s="ref"; +const a="PartitionResult", +b="tree", +c="error", +d="endpoint", +e={[p]:false,"type":"String"}, +f={[p]:true,"default":false,"type":"Boolean"}, +g={[s]:"Endpoint"}, +h={[q]:"booleanEquals",[r]:[{[s]:"UseFIPS"},true]}, +i={[q]:"booleanEquals",[r]:[{[s]:"UseDualStack"},true]}, +j={}, +k={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsFIPS"]}]}, +l={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsDualStack"]}]}, +m=[g], +n=[h], +o=[i]; +const _data={version:"1.0",parameters:{Region:e,UseDualStack:f,UseFIPS:f,Endpoint:e},rules:[{conditions:[{[q]:"aws.partition",[r]:[{[s]:"Region"}],assign:a}],type:b,rules:[{conditions:[{[q]:"isSet",[r]:m},{[q]:"parseURL",[r]:m,assign:"url"}],type:b,rules:[{conditions:n,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:c},{type:b,rules:[{conditions:o,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:c},{endpoint:{url:g,properties:j,headers:j},type:d}]}]},{conditions:[h,i],type:b,rules:[{conditions:[k,l],type:b,rules:[{endpoint:{url:"https://license-manager-user-subscriptions-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:c}]},{conditions:n,type:b,rules:[{conditions:[k],type:b,rules:[{endpoint:{url:"https://license-manager-user-subscriptions-fips.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]},{error:"FIPS is enabled but this partition does not support FIPS",type:c}]},{conditions:o,type:b,rules:[{conditions:[l],type:b,rules:[{endpoint:{url:"https://license-manager-user-subscriptions.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"DualStack is enabled but this partition does not support DualStack",type:c}]},{endpoint:{url:"https://license-manager-user-subscriptions.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-license-manager/src/endpoint/ruleset.ts b/clients/client-license-manager/src/endpoint/ruleset.ts index 2027c299f4da..af7fa869bbec 100644 --- a/clients/client-license-manager/src/endpoint/ruleset.ts +++ b/clients/client-license-manager/src/endpoint/ruleset.ts @@ -6,26 +6,24 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; 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}]}]}; +const p="required", +q="fn", +r="argv", +s="ref"; +const a="PartitionResult", +b="tree", +c="error", +d="endpoint", +e={[p]:false,"type":"String"}, +f={[p]:true,"default":false,"type":"Boolean"}, +g={[s]:"Endpoint"}, +h={[q]:"booleanEquals",[r]:[{[s]:"UseFIPS"},true]}, +i={[q]:"booleanEquals",[r]:[{[s]:"UseDualStack"},true]}, +j={}, +k={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsFIPS"]}]}, +l={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsDualStack"]}]}, +m=[g], +n=[h], +o=[i]; +const _data={version:"1.0",parameters:{Region:e,UseDualStack:f,UseFIPS:f,Endpoint:e},rules:[{conditions:[{[q]:"aws.partition",[r]:[{[s]:"Region"}],assign:a}],type:b,rules:[{conditions:[{[q]:"isSet",[r]:m},{[q]:"parseURL",[r]:m,assign:"url"}],type:b,rules:[{conditions:n,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:c},{type:b,rules:[{conditions:o,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:c},{endpoint:{url:g,properties:j,headers:j},type:d}]}]},{conditions:[h,i],type:b,rules:[{conditions:[k,l],type:b,rules:[{endpoint:{url:"https://license-manager-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:c}]},{conditions:n,type:b,rules:[{conditions:[k],type:b,rules:[{type:b,rules:[{endpoint:{url:"https://license-manager-fips.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:c}]},{conditions:o,type:b,rules:[{conditions:[l],type:b,rules:[{endpoint:{url:"https://license-manager.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"DualStack is enabled but this partition does not support DualStack",type:c}]},{endpoint:{url:"https://license-manager.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-lightsail/src/endpoint/ruleset.ts b/clients/client-lightsail/src/endpoint/ruleset.ts index 8357e7b63d02..b78a50b5ffa9 100644 --- a/clients/client-lightsail/src/endpoint/ruleset.ts +++ b/clients/client-lightsail/src/endpoint/ruleset.ts @@ -6,26 +6,24 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; 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}]}]}; +const p="required", +q="fn", +r="argv", +s="ref"; +const a="PartitionResult", +b="tree", +c="error", +d="endpoint", +e={[p]:false,"type":"String"}, +f={[p]:true,"default":false,"type":"Boolean"}, +g={[s]:"Endpoint"}, +h={[q]:"booleanEquals",[r]:[{[s]:"UseFIPS"},true]}, +i={[q]:"booleanEquals",[r]:[{[s]:"UseDualStack"},true]}, +j={}, +k={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsFIPS"]}]}, +l={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsDualStack"]}]}, +m=[g], +n=[h], +o=[i]; +const _data={version:"1.0",parameters:{Region:e,UseDualStack:f,UseFIPS:f,Endpoint:e},rules:[{conditions:[{[q]:"aws.partition",[r]:[{[s]:"Region"}],assign:a}],type:b,rules:[{conditions:[{[q]:"isSet",[r]:m},{[q]:"parseURL",[r]:m,assign:"url"}],type:b,rules:[{conditions:n,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:c},{type:b,rules:[{conditions:o,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:c},{endpoint:{url:g,properties:j,headers:j},type:d}]}]},{conditions:[h,i],type:b,rules:[{conditions:[k,l],type:b,rules:[{endpoint:{url:"https://lightsail-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:c}]},{conditions:n,type:b,rules:[{conditions:[k],type:b,rules:[{type:b,rules:[{endpoint:{url:"https://lightsail-fips.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:c}]},{conditions:o,type:b,rules:[{conditions:[l],type:b,rules:[{endpoint:{url:"https://lightsail.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"DualStack is enabled but this partition does not support DualStack",type:c}]},{endpoint:{url:"https://lightsail.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-location/src/endpoint/ruleset.ts b/clients/client-location/src/endpoint/ruleset.ts index 7a0444692ee6..3bd22bcb03f0 100644 --- a/clients/client-location/src/endpoint/ruleset.ts +++ b/clients/client-location/src/endpoint/ruleset.ts @@ -6,26 +6,24 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; 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}]}]}; +const p="required", +q="fn", +r="argv", +s="ref"; +const a="PartitionResult", +b="tree", +c="error", +d="endpoint", +e={[p]:false,"type":"String"}, +f={[p]:true,"default":false,"type":"Boolean"}, +g={[s]:"Endpoint"}, +h={[q]:"booleanEquals",[r]:[{[s]:"UseFIPS"},true]}, +i={[q]:"booleanEquals",[r]:[{[s]:"UseDualStack"},true]}, +j={}, +k={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsFIPS"]}]}, +l={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsDualStack"]}]}, +m=[g], +n=[h], +o=[i]; +const _data={version:"1.0",parameters:{Region:e,UseDualStack:f,UseFIPS:f,Endpoint:e},rules:[{conditions:[{[q]:"aws.partition",[r]:[{[s]:"Region"}],assign:a}],type:b,rules:[{conditions:[{[q]:"isSet",[r]:m},{[q]:"parseURL",[r]:m,assign:"url"}],type:b,rules:[{conditions:n,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:c},{type:b,rules:[{conditions:o,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:c},{endpoint:{url:g,properties:j,headers:j},type:d}]}]},{conditions:[h,i],type:b,rules:[{conditions:[k,l],type:b,rules:[{endpoint:{url:"https://geo-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:c}]},{conditions:n,type:b,rules:[{conditions:[k],type:b,rules:[{endpoint:{url:"https://geo-fips.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]},{error:"FIPS is enabled but this partition does not support FIPS",type:c}]},{conditions:o,type:b,rules:[{conditions:[l],type:b,rules:[{endpoint:{url:"https://geo.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"DualStack is enabled but this partition does not support DualStack",type:c}]},{endpoint:{url:"https://geo.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-lookoutequipment/src/endpoint/ruleset.ts b/clients/client-lookoutequipment/src/endpoint/ruleset.ts index 6c738ade451b..4b09401907a4 100644 --- a/clients/client-lookoutequipment/src/endpoint/ruleset.ts +++ b/clients/client-lookoutequipment/src/endpoint/ruleset.ts @@ -6,25 +6,24 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; or see "smithy.rules#endpointRuleSet" in codegen/sdk-codegen/aws-models/lookoutequipment.json */ -const r="fn", -s="argv", -t="ref"; +const q="fn", +r="argv", +s="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]}, +d="PartitionResult", +e="tree", +f="error", +g="endpoint", +h={"required":true,"default":false,"type":"Boolean"}, +i={[s]:"Endpoint"}, +j={[q]:"booleanEquals",[r]:[{[s]:"UseFIPS"},true]}, +k={[q]:"booleanEquals",[r]:[{[s]:"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"]}]}, +m={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:d},"supportsFIPS"]}]}, +n={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:d},"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://lookoutequipment-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://lookoutequipment-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://lookoutequipment.{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://lookoutequipment.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]}; +p=[k]; +const _data={version:"1.0",parameters:{Region:{required:a,type:c},UseDualStack:h,UseFIPS:h,Endpoint:{required:b,type:c}},rules:[{conditions:[{[q]:"aws.partition",[r]:[{[s]:"Region"}],assign:d}],type:e,rules:[{conditions:[{[q]:"isSet",[r]:[i]}],type:e,rules:[{conditions:o,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:f},{type:e,rules:[{conditions:p,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:f},{endpoint:{url:i,properties:l,headers:l},type:g}]}]},{conditions:[j,k],type:e,rules:[{conditions:[m,n],type:e,rules:[{endpoint:{url:"https://lookoutequipment-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:g}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:f}]},{conditions:o,type:e,rules:[{conditions:[m],type:e,rules:[{type:e,rules:[{endpoint:{url:"https://lookoutequipment-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:g}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:f}]},{conditions:p,type:e,rules:[{conditions:[n],type:e,rules:[{endpoint:{url:"https://lookoutequipment.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:g}]},{error:"DualStack is enabled but this partition does not support DualStack",type:f}]},{endpoint:{url:"https://lookoutequipment.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:g}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-lookoutmetrics/src/endpoint/ruleset.ts b/clients/client-lookoutmetrics/src/endpoint/ruleset.ts index 3756fc967579..37ceb340e4de 100644 --- a/clients/client-lookoutmetrics/src/endpoint/ruleset.ts +++ b/clients/client-lookoutmetrics/src/endpoint/ruleset.ts @@ -6,26 +6,24 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; 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}]}]}; +const p="required", +q="fn", +r="argv", +s="ref"; +const a="PartitionResult", +b="tree", +c="error", +d="endpoint", +e={[p]:false,"type":"String"}, +f={[p]:true,"default":false,"type":"Boolean"}, +g={[s]:"Endpoint"}, +h={[q]:"booleanEquals",[r]:[{[s]:"UseFIPS"},true]}, +i={[q]:"booleanEquals",[r]:[{[s]:"UseDualStack"},true]}, +j={}, +k={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsFIPS"]}]}, +l={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsDualStack"]}]}, +m=[g], +n=[h], +o=[i]; +const _data={version:"1.0",parameters:{Region:e,UseDualStack:f,UseFIPS:f,Endpoint:e},rules:[{conditions:[{[q]:"aws.partition",[r]:[{[s]:"Region"}],assign:a}],type:b,rules:[{conditions:[{[q]:"isSet",[r]:m},{[q]:"parseURL",[r]:m,assign:"url"}],type:b,rules:[{conditions:n,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:c},{type:b,rules:[{conditions:o,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:c},{endpoint:{url:g,properties:j,headers:j},type:d}]}]},{conditions:[h,i],type:b,rules:[{conditions:[k,l],type:b,rules:[{endpoint:{url:"https://lookoutmetrics-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:c}]},{conditions:n,type:b,rules:[{conditions:[k],type:b,rules:[{type:b,rules:[{endpoint:{url:"https://lookoutmetrics-fips.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:c}]},{conditions:o,type:b,rules:[{conditions:[l],type:b,rules:[{endpoint:{url:"https://lookoutmetrics.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"DualStack is enabled but this partition does not support DualStack",type:c}]},{endpoint:{url:"https://lookoutmetrics.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-lookoutvision/src/endpoint/ruleset.ts b/clients/client-lookoutvision/src/endpoint/ruleset.ts index 270f4d4e5350..e048f31835f4 100644 --- a/clients/client-lookoutvision/src/endpoint/ruleset.ts +++ b/clients/client-lookoutvision/src/endpoint/ruleset.ts @@ -6,25 +6,24 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; or see "smithy.rules#endpointRuleSet" in codegen/sdk-codegen/aws-models/lookoutvision.json */ -const r="fn", -s="argv", -t="ref"; +const q="fn", +r="argv", +s="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]}, +d="PartitionResult", +e="tree", +f="error", +g="endpoint", +h={"required":true,"default":false,"type":"Boolean"}, +i={[s]:"Endpoint"}, +j={[q]:"booleanEquals",[r]:[{[s]:"UseFIPS"},true]}, +k={[q]:"booleanEquals",[r]:[{[s]:"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"]}]}, +m={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:d},"supportsFIPS"]}]}, +n={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:d},"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}]}]}; +p=[k]; +const _data={version:"1.0",parameters:{Region:{required:a,type:c},UseDualStack:h,UseFIPS:h,Endpoint:{required:b,type:c}},rules:[{conditions:[{[q]:"aws.partition",[r]:[{[s]:"Region"}],assign:d}],type:e,rules:[{conditions:[{[q]:"isSet",[r]:[i]}],type:e,rules:[{conditions:o,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:f},{type:e,rules:[{conditions:p,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:f},{endpoint:{url:i,properties:l,headers:l},type:g}]}]},{conditions:[j,k],type:e,rules:[{conditions:[m,n],type:e,rules:[{endpoint:{url:"https://lookoutvision-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:g}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:f}]},{conditions:o,type:e,rules:[{conditions:[m],type:e,rules:[{type:e,rules:[{endpoint:{url:"https://lookoutvision-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:g}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:f}]},{conditions:p,type:e,rules:[{conditions:[n],type:e,rules:[{endpoint:{url:"https://lookoutvision.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:g}]},{error:"DualStack is enabled but this partition does not support DualStack",type:f}]},{endpoint:{url:"https://lookoutvision.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:g}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-m2/src/endpoint/ruleset.ts b/clients/client-m2/src/endpoint/ruleset.ts index 3fa55dc0f154..728f539e78d0 100644 --- a/clients/client-m2/src/endpoint/ruleset.ts +++ b/clients/client-m2/src/endpoint/ruleset.ts @@ -6,25 +6,24 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; or see "smithy.rules#endpointRuleSet" in codegen/sdk-codegen/aws-models/m2.json */ -const r="fn", -s="argv", -t="ref"; +const q="fn", +r="argv", +s="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]}, +d="PartitionResult", +e="tree", +f="error", +g="endpoint", +h={"required":true,"default":false,"type":"Boolean"}, +i={[s]:"Endpoint"}, +j={[q]:"booleanEquals",[r]:[{[s]:"UseFIPS"},true]}, +k={[q]:"booleanEquals",[r]:[{[s]:"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"]}]}, +m={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:d},"supportsFIPS"]}]}, +n={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:d},"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}]}]}; +p=[k]; +const _data={version:"1.0",parameters:{Region:{required:a,type:c},UseDualStack:h,UseFIPS:h,Endpoint:{required:b,type:c}},rules:[{conditions:[{[q]:"aws.partition",[r]:[{[s]:"Region"}],assign:d}],type:e,rules:[{conditions:[{[q]:"isSet",[r]:[i]}],type:e,rules:[{conditions:o,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:f},{type:e,rules:[{conditions:p,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:f},{endpoint:{url:i,properties:l,headers:l},type:g}]}]},{conditions:[j,k],type:e,rules:[{conditions:[m,n],type:e,rules:[{endpoint:{url:"https://m2-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:g}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:f}]},{conditions:o,type:e,rules:[{conditions:[m],type:e,rules:[{type:e,rules:[{endpoint:{url:"https://m2-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:g}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:f}]},{conditions:p,type:e,rules:[{conditions:[n],type:e,rules:[{endpoint:{url:"https://m2.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:g}]},{error:"DualStack is enabled but this partition does not support DualStack",type:f}]},{endpoint:{url:"https://m2.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:g}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-machine-learning/src/endpoint/ruleset.ts b/clients/client-machine-learning/src/endpoint/ruleset.ts index 3765e4d7a751..87ad0da165f9 100644 --- a/clients/client-machine-learning/src/endpoint/ruleset.ts +++ b/clients/client-machine-learning/src/endpoint/ruleset.ts @@ -6,26 +6,24 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; 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}]}]}; +const p="required", +q="fn", +r="argv", +s="ref"; +const a="PartitionResult", +b="tree", +c="error", +d="endpoint", +e={[p]:false,"type":"String"}, +f={[p]:true,"default":false,"type":"Boolean"}, +g={[s]:"Endpoint"}, +h={[q]:"booleanEquals",[r]:[{[s]:"UseFIPS"},true]}, +i={[q]:"booleanEquals",[r]:[{[s]:"UseDualStack"},true]}, +j={}, +k={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsFIPS"]}]}, +l={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsDualStack"]}]}, +m=[g], +n=[h], +o=[i]; +const _data={version:"1.0",parameters:{Region:e,UseDualStack:f,UseFIPS:f,Endpoint:e},rules:[{conditions:[{[q]:"aws.partition",[r]:[{[s]:"Region"}],assign:a}],type:b,rules:[{conditions:[{[q]:"isSet",[r]:m},{[q]:"parseURL",[r]:m,assign:"url"}],type:b,rules:[{conditions:n,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:c},{type:b,rules:[{conditions:o,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:c},{endpoint:{url:g,properties:j,headers:j},type:d}]}]},{conditions:[h,i],type:b,rules:[{conditions:[k,l],type:b,rules:[{endpoint:{url:"https://machinelearning-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:c}]},{conditions:n,type:b,rules:[{conditions:[k],type:b,rules:[{type:b,rules:[{endpoint:{url:"https://machinelearning-fips.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:c}]},{conditions:o,type:b,rules:[{conditions:[l],type:b,rules:[{endpoint:{url:"https://machinelearning.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"DualStack is enabled but this partition does not support DualStack",type:c}]},{endpoint:{url:"https://machinelearning.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-macie/src/endpoint/ruleset.ts b/clients/client-macie/src/endpoint/ruleset.ts index aaa7c3403cce..b9c4f03cb202 100644 --- a/clients/client-macie/src/endpoint/ruleset.ts +++ b/clients/client-macie/src/endpoint/ruleset.ts @@ -6,26 +6,24 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; 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}]}]}; +const p="required", +q="fn", +r="argv", +s="ref"; +const a="PartitionResult", +b="tree", +c="error", +d="endpoint", +e={[p]:false,"type":"String"}, +f={[p]:true,"default":false,"type":"Boolean"}, +g={[s]:"Endpoint"}, +h={[q]:"booleanEquals",[r]:[{[s]:"UseFIPS"},true]}, +i={[q]:"booleanEquals",[r]:[{[s]:"UseDualStack"},true]}, +j={}, +k={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsFIPS"]}]}, +l={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsDualStack"]}]}, +m=[g], +n=[h], +o=[i]; +const _data={version:"1.0",parameters:{Region:e,UseDualStack:f,UseFIPS:f,Endpoint:e},rules:[{conditions:[{[q]:"aws.partition",[r]:[{[s]:"Region"}],assign:a}],type:b,rules:[{conditions:[{[q]:"isSet",[r]:m},{[q]:"parseURL",[r]:m,assign:"url"}],type:b,rules:[{conditions:n,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:c},{type:b,rules:[{conditions:o,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:c},{endpoint:{url:g,properties:j,headers:j},type:d}]}]},{conditions:[h,i],type:b,rules:[{conditions:[k,l],type:b,rules:[{endpoint:{url:"https://macie-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:c}]},{conditions:n,type:b,rules:[{conditions:[k],type:b,rules:[{type:b,rules:[{endpoint:{url:"https://macie-fips.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:c}]},{conditions:o,type:b,rules:[{conditions:[l],type:b,rules:[{endpoint:{url:"https://macie.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"DualStack is enabled but this partition does not support DualStack",type:c}]},{endpoint:{url:"https://macie.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-macie2/src/endpoint/ruleset.ts b/clients/client-macie2/src/endpoint/ruleset.ts index 85dad9c36c78..c4e957430190 100644 --- a/clients/client-macie2/src/endpoint/ruleset.ts +++ b/clients/client-macie2/src/endpoint/ruleset.ts @@ -6,26 +6,25 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; or see "smithy.rules#endpointRuleSet" in codegen/sdk-codegen/aws-models/macie2.json */ -const s="fn", -t="argv", -u="ref"; +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={[u]:"Endpoint"}, -j={[s]:"booleanEquals",[t]:[{[u]:"UseFIPS"},true]}, -k={[s]:"booleanEquals",[t]:[{[u]:"UseDualStack"},true]}, +d="PartitionResult", +e="tree", +f="error", +g="endpoint", +h={"required":true,"default":false,"type":"Boolean"}, +i={[t]:"Endpoint"}, +j={[r]:"booleanEquals",[s]:[{[t]:"UseFIPS"},true]}, +k={[r]:"booleanEquals",[s]:[{[t]:"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"]}]}, +m={[r]:"booleanEquals",[s]:[true,{[r]:"getAttr",[s]:[{[t]:d},"supportsFIPS"]}]}, +n={[r]:"booleanEquals",[s]:[true,{[r]:"getAttr",[s]:[{[t]:d},"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}]}]}; +q=[k]; +const _data={version:"1.0",parameters:{Region:{required:a,type:c},UseDualStack:h,UseFIPS:h,Endpoint:{required:b,type:c}},rules:[{conditions:[{[r]:"aws.partition",[s]:[{[t]:"Region"}],assign:d}],type:e,rules:[{conditions:[{[r]:"isSet",[s]:o},{[r]:"parseURL",[s]:o,assign:"url"}],type:e,rules:[{conditions:p,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:f},{type:e,rules:[{conditions:q,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:f},{endpoint:{url:i,properties:l,headers:l},type:g}]}]},{conditions:[j,k],type:e,rules:[{conditions:[m,n],type:e,rules:[{endpoint:{url:"https://macie2-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:g}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:f}]},{conditions:p,type:e,rules:[{conditions:[m],type:e,rules:[{type:e,rules:[{endpoint:{url:"https://macie2-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:g}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:f}]},{conditions:q,type:e,rules:[{conditions:[n],type:e,rules:[{endpoint:{url:"https://macie2.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:g}]},{error:"DualStack is enabled but this partition does not support DualStack",type:f}]},{endpoint:{url:"https://macie2.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:g}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-managedblockchain/src/endpoint/ruleset.ts b/clients/client-managedblockchain/src/endpoint/ruleset.ts index a6cb70836641..c322e9e1780b 100644 --- a/clients/client-managedblockchain/src/endpoint/ruleset.ts +++ b/clients/client-managedblockchain/src/endpoint/ruleset.ts @@ -6,26 +6,24 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; 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}]}]}; +const p="required", +q="fn", +r="argv", +s="ref"; +const a="PartitionResult", +b="tree", +c="error", +d="endpoint", +e={[p]:false,"type":"String"}, +f={[p]:true,"default":false,"type":"Boolean"}, +g={[s]:"Endpoint"}, +h={[q]:"booleanEquals",[r]:[{[s]:"UseFIPS"},true]}, +i={[q]:"booleanEquals",[r]:[{[s]:"UseDualStack"},true]}, +j={}, +k={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsFIPS"]}]}, +l={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsDualStack"]}]}, +m=[g], +n=[h], +o=[i]; +const _data={version:"1.0",parameters:{Region:e,UseDualStack:f,UseFIPS:f,Endpoint:e},rules:[{conditions:[{[q]:"aws.partition",[r]:[{[s]:"Region"}],assign:a}],type:b,rules:[{conditions:[{[q]:"isSet",[r]:m},{[q]:"parseURL",[r]:m,assign:"url"}],type:b,rules:[{conditions:n,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:c},{type:b,rules:[{conditions:o,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:c},{endpoint:{url:g,properties:j,headers:j},type:d}]}]},{conditions:[h,i],type:b,rules:[{conditions:[k,l],type:b,rules:[{endpoint:{url:"https://managedblockchain-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:c}]},{conditions:n,type:b,rules:[{conditions:[k],type:b,rules:[{type:b,rules:[{endpoint:{url:"https://managedblockchain-fips.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:c}]},{conditions:o,type:b,rules:[{conditions:[l],type:b,rules:[{endpoint:{url:"https://managedblockchain.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"DualStack is enabled but this partition does not support DualStack",type:c}]},{endpoint:{url:"https://managedblockchain.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-marketplace-catalog/src/endpoint/ruleset.ts b/clients/client-marketplace-catalog/src/endpoint/ruleset.ts index 59f287ecce7f..2ad95a3ba888 100644 --- a/clients/client-marketplace-catalog/src/endpoint/ruleset.ts +++ b/clients/client-marketplace-catalog/src/endpoint/ruleset.ts @@ -6,26 +6,24 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; 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}]}]}; +const p="required", +q="fn", +r="argv", +s="ref"; +const a="PartitionResult", +b="tree", +c="error", +d="endpoint", +e={[p]:false,"type":"String"}, +f={[p]:true,"default":false,"type":"Boolean"}, +g={[s]:"Endpoint"}, +h={[q]:"booleanEquals",[r]:[{[s]:"UseFIPS"},true]}, +i={[q]:"booleanEquals",[r]:[{[s]:"UseDualStack"},true]}, +j={}, +k={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsFIPS"]}]}, +l={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsDualStack"]}]}, +m=[g], +n=[h], +o=[i]; +const _data={version:"1.0",parameters:{Region:e,UseDualStack:f,UseFIPS:f,Endpoint:e},rules:[{conditions:[{[q]:"aws.partition",[r]:[{[s]:"Region"}],assign:a}],type:b,rules:[{conditions:[{[q]:"isSet",[r]:m},{[q]:"parseURL",[r]:m,assign:"url"}],type:b,rules:[{conditions:n,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:c},{type:b,rules:[{conditions:o,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:c},{endpoint:{url:g,properties:j,headers:j},type:d}]}]},{conditions:[h,i],type:b,rules:[{conditions:[k,l],type:b,rules:[{endpoint:{url:"https://catalog.marketplace-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:c}]},{conditions:n,type:b,rules:[{conditions:[k],type:b,rules:[{type:b,rules:[{endpoint:{url:"https://catalog.marketplace-fips.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:c}]},{conditions:o,type:b,rules:[{conditions:[l],type:b,rules:[{endpoint:{url:"https://catalog.marketplace.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"DualStack is enabled but this partition does not support DualStack",type:c}]},{endpoint:{url:"https://catalog.marketplace.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-marketplace-commerce-analytics/src/endpoint/ruleset.ts b/clients/client-marketplace-commerce-analytics/src/endpoint/ruleset.ts index b3bc4358ee4e..3a7e5dedfa25 100644 --- a/clients/client-marketplace-commerce-analytics/src/endpoint/ruleset.ts +++ b/clients/client-marketplace-commerce-analytics/src/endpoint/ruleset.ts @@ -6,26 +6,24 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; 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}]}]}; +const p="required", +q="fn", +r="argv", +s="ref"; +const a="PartitionResult", +b="tree", +c="error", +d="endpoint", +e={[p]:false,"type":"String"}, +f={[p]:true,"default":false,"type":"Boolean"}, +g={[s]:"Endpoint"}, +h={[q]:"booleanEquals",[r]:[{[s]:"UseFIPS"},true]}, +i={[q]:"booleanEquals",[r]:[{[s]:"UseDualStack"},true]}, +j={}, +k={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsFIPS"]}]}, +l={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsDualStack"]}]}, +m=[g], +n=[h], +o=[i]; +const _data={version:"1.0",parameters:{Region:e,UseDualStack:f,UseFIPS:f,Endpoint:e},rules:[{conditions:[{[q]:"aws.partition",[r]:[{[s]:"Region"}],assign:a}],type:b,rules:[{conditions:[{[q]:"isSet",[r]:m},{[q]:"parseURL",[r]:m,assign:"url"}],type:b,rules:[{conditions:n,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:c},{type:b,rules:[{conditions:o,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:c},{endpoint:{url:g,properties:j,headers:j},type:d}]}]},{conditions:[h,i],type:b,rules:[{conditions:[k,l],type:b,rules:[{endpoint:{url:"https://marketplacecommerceanalytics-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:c}]},{conditions:n,type:b,rules:[{conditions:[k],type:b,rules:[{type:b,rules:[{endpoint:{url:"https://marketplacecommerceanalytics-fips.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:c}]},{conditions:o,type:b,rules:[{conditions:[l],type:b,rules:[{endpoint:{url:"https://marketplacecommerceanalytics.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"DualStack is enabled but this partition does not support DualStack",type:c}]},{endpoint:{url:"https://marketplacecommerceanalytics.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-marketplace-entitlement-service/src/endpoint/ruleset.ts b/clients/client-marketplace-entitlement-service/src/endpoint/ruleset.ts index a904ee8a0f2e..5bb1a4864f1c 100644 --- a/clients/client-marketplace-entitlement-service/src/endpoint/ruleset.ts +++ b/clients/client-marketplace-entitlement-service/src/endpoint/ruleset.ts @@ -6,26 +6,24 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; 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}]}]}; +const p="required", +q="fn", +r="argv", +s="ref"; +const a="PartitionResult", +b="tree", +c="error", +d="endpoint", +e={[p]:false,"type":"String"}, +f={[p]:true,"default":false,"type":"Boolean"}, +g={[s]:"Endpoint"}, +h={[q]:"booleanEquals",[r]:[{[s]:"UseFIPS"},true]}, +i={[q]:"booleanEquals",[r]:[{[s]:"UseDualStack"},true]}, +j={}, +k={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsFIPS"]}]}, +l={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsDualStack"]}]}, +m=[g], +n=[h], +o=[i]; +const _data={version:"1.0",parameters:{Region:e,UseDualStack:f,UseFIPS:f,Endpoint:e},rules:[{conditions:[{[q]:"aws.partition",[r]:[{[s]:"Region"}],assign:a}],type:b,rules:[{conditions:[{[q]:"isSet",[r]:m},{[q]:"parseURL",[r]:m,assign:"url"}],type:b,rules:[{conditions:n,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:c},{type:b,rules:[{conditions:o,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:c},{endpoint:{url:g,properties:j,headers:j},type:d}]}]},{conditions:[h,i],type:b,rules:[{conditions:[k,l],type:b,rules:[{endpoint:{url:"https://entitlement.marketplace-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:c}]},{conditions:n,type:b,rules:[{conditions:[k],type:b,rules:[{type:b,rules:[{endpoint:{url:"https://entitlement.marketplace-fips.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:c}]},{conditions:o,type:b,rules:[{conditions:[l],type:b,rules:[{endpoint:{url:"https://entitlement.marketplace.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"DualStack is enabled but this partition does not support DualStack",type:c}]},{endpoint:{url:"https://entitlement.marketplace.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-marketplace-metering/src/endpoint/ruleset.ts b/clients/client-marketplace-metering/src/endpoint/ruleset.ts index df9bfe85265a..0c3f6020771c 100644 --- a/clients/client-marketplace-metering/src/endpoint/ruleset.ts +++ b/clients/client-marketplace-metering/src/endpoint/ruleset.ts @@ -6,26 +6,24 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; 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}]}]}; +const p="required", +q="fn", +r="argv", +s="ref"; +const a="PartitionResult", +b="tree", +c="error", +d="endpoint", +e={[p]:false,"type":"String"}, +f={[p]:true,"default":false,"type":"Boolean"}, +g={[s]:"Endpoint"}, +h={[q]:"booleanEquals",[r]:[{[s]:"UseFIPS"},true]}, +i={[q]:"booleanEquals",[r]:[{[s]:"UseDualStack"},true]}, +j={}, +k={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsFIPS"]}]}, +l={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsDualStack"]}]}, +m=[g], +n=[h], +o=[i]; +const _data={version:"1.0",parameters:{Region:e,UseDualStack:f,UseFIPS:f,Endpoint:e},rules:[{conditions:[{[q]:"aws.partition",[r]:[{[s]:"Region"}],assign:a}],type:b,rules:[{conditions:[{[q]:"isSet",[r]:m},{[q]:"parseURL",[r]:m,assign:"url"}],type:b,rules:[{conditions:n,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:c},{type:b,rules:[{conditions:o,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:c},{endpoint:{url:g,properties:j,headers:j},type:d}]}]},{conditions:[h,i],type:b,rules:[{conditions:[k,l],type:b,rules:[{endpoint:{url:"https://metering.marketplace-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:c}]},{conditions:n,type:b,rules:[{conditions:[k],type:b,rules:[{type:b,rules:[{endpoint:{url:"https://metering.marketplace-fips.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:c}]},{conditions:o,type:b,rules:[{conditions:[l],type:b,rules:[{endpoint:{url:"https://metering.marketplace.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"DualStack is enabled but this partition does not support DualStack",type:c}]},{endpoint:{url:"https://metering.marketplace.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-mediaconnect/src/endpoint/ruleset.ts b/clients/client-mediaconnect/src/endpoint/ruleset.ts index 3ab0967697a0..4ae92bcdcf63 100644 --- a/clients/client-mediaconnect/src/endpoint/ruleset.ts +++ b/clients/client-mediaconnect/src/endpoint/ruleset.ts @@ -6,26 +6,24 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; 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}]}]}; +const p="required", +q="fn", +r="argv", +s="ref"; +const a="PartitionResult", +b="tree", +c="error", +d="endpoint", +e={[p]:false,"type":"String"}, +f={[p]:true,"default":false,"type":"Boolean"}, +g={[s]:"Endpoint"}, +h={[q]:"booleanEquals",[r]:[{[s]:"UseFIPS"},true]}, +i={[q]:"booleanEquals",[r]:[{[s]:"UseDualStack"},true]}, +j={}, +k={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsFIPS"]}]}, +l={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsDualStack"]}]}, +m=[g], +n=[h], +o=[i]; +const _data={version:"1.0",parameters:{Region:e,UseDualStack:f,UseFIPS:f,Endpoint:e},rules:[{conditions:[{[q]:"aws.partition",[r]:[{[s]:"Region"}],assign:a}],type:b,rules:[{conditions:[{[q]:"isSet",[r]:m},{[q]:"parseURL",[r]:m,assign:"url"}],type:b,rules:[{conditions:n,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:c},{type:b,rules:[{conditions:o,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:c},{endpoint:{url:g,properties:j,headers:j},type:d}]}]},{conditions:[h,i],type:b,rules:[{conditions:[k,l],type:b,rules:[{endpoint:{url:"https://mediaconnect-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:c}]},{conditions:n,type:b,rules:[{conditions:[k],type:b,rules:[{type:b,rules:[{endpoint:{url:"https://mediaconnect-fips.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:c}]},{conditions:o,type:b,rules:[{conditions:[l],type:b,rules:[{endpoint:{url:"https://mediaconnect.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"DualStack is enabled but this partition does not support DualStack",type:c}]},{endpoint:{url:"https://mediaconnect.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-mediaconvert/src/endpoint/ruleset.ts b/clients/client-mediaconvert/src/endpoint/ruleset.ts index a78abeee95cd..f6e269e409a5 100644 --- a/clients/client-mediaconvert/src/endpoint/ruleset.ts +++ b/clients/client-mediaconvert/src/endpoint/ruleset.ts @@ -6,27 +6,25 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; 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}]}]}]}; +const q="required", +r="fn", +s="argv", +t="ref"; +const a="PartitionResult", +b="tree", +c="error", +d="endpoint", +e={[q]:false,"type":"String"}, +f={[q]:true,"default":false,"type":"Boolean"}, +g={[t]:"Region"}, +h={[t]:"Endpoint"}, +i={[r]:"booleanEquals",[s]:[{[t]:"UseFIPS"},true]}, +j={[r]:"booleanEquals",[s]:[{[t]:"UseDualStack"},true]}, +k={}, +l={[r]:"booleanEquals",[s]:[true,{[r]:"getAttr",[s]:[{[t]:a},"supportsFIPS"]}]}, +m={[r]:"booleanEquals",[s]:[true,{[r]:"getAttr",[s]:[{[t]:a},"supportsDualStack"]}]}, +n=[h], +o=[i], +p=[j]; +const _data={version:"1.0",parameters:{Region:e,UseDualStack:f,UseFIPS:f,Endpoint:e},rules:[{conditions:[{[r]:"aws.partition",[s]:[g],assign:a}],type:b,rules:[{conditions:[{[r]:"isSet",[s]:n},{[r]:"parseURL",[s]:n,assign:"url"}],type:b,rules:[{conditions:o,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:c},{type:b,rules:[{conditions:p,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:c},{endpoint:{url:h,properties:k,headers:k},type:d}]}]},{conditions:[i,j],type:b,rules:[{conditions:[l,m],type:b,rules:[{endpoint:{url:"https://mediaconvert-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:k,headers:k},type:d}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:c}]},{conditions:o,type:b,rules:[{conditions:[l],type:b,rules:[{type:b,rules:[{endpoint:{url:"https://mediaconvert-fips.{Region}.{PartitionResult#dnsSuffix}",properties:k,headers:k},type:d}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:c}]},{conditions:p,type:b,rules:[{conditions:[m],type:b,rules:[{endpoint:{url:"https://mediaconvert.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:k,headers:k},type:d}]},{error:"DualStack is enabled but this partition does not support DualStack",type:c}]},{type:b,rules:[{conditions:[{[r]:"stringEquals",[s]:[g,"cn-northwest-1"]}],endpoint:{url:"https://subscribe.mediaconvert.cn-northwest-1.amazonaws.com.cn",properties:k,headers:k},type:d},{endpoint:{url:"https://mediaconvert.{Region}.{PartitionResult#dnsSuffix}",properties:k,headers:k},type:d}]}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-medialive/src/endpoint/ruleset.ts b/clients/client-medialive/src/endpoint/ruleset.ts index 053006b84865..4e747f88d567 100644 --- a/clients/client-medialive/src/endpoint/ruleset.ts +++ b/clients/client-medialive/src/endpoint/ruleset.ts @@ -6,25 +6,24 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; or see "smithy.rules#endpointRuleSet" in codegen/sdk-codegen/aws-models/medialive.json */ -const r="fn", -s="argv", -t="ref"; +const q="fn", +r="argv", +s="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]}, +d="PartitionResult", +e="tree", +f="error", +g="endpoint", +h={"required":true,"default":false,"type":"Boolean"}, +i={[s]:"Endpoint"}, +j={[q]:"booleanEquals",[r]:[{[s]:"UseFIPS"},true]}, +k={[q]:"booleanEquals",[r]:[{[s]:"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"]}]}, +m={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:d},"supportsFIPS"]}]}, +n={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:d},"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}]}]}; +p=[k]; +const _data={version:"1.0",parameters:{Region:{required:a,type:c},UseDualStack:h,UseFIPS:h,Endpoint:{required:b,type:c}},rules:[{conditions:[{[q]:"aws.partition",[r]:[{[s]:"Region"}],assign:d}],type:e,rules:[{conditions:[{[q]:"isSet",[r]:[i]}],type:e,rules:[{conditions:o,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:f},{type:e,rules:[{conditions:p,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:f},{endpoint:{url:i,properties:l,headers:l},type:g}]}]},{conditions:[j,k],type:e,rules:[{conditions:[m,n],type:e,rules:[{endpoint:{url:"https://medialive-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:g}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:f}]},{conditions:o,type:e,rules:[{conditions:[m],type:e,rules:[{type:e,rules:[{endpoint:{url:"https://medialive-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:g}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:f}]},{conditions:p,type:e,rules:[{conditions:[n],type:e,rules:[{endpoint:{url:"https://medialive.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:g}]},{error:"DualStack is enabled but this partition does not support DualStack",type:f}]},{endpoint:{url:"https://medialive.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:g}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-mediapackage-vod/src/endpoint/ruleset.ts b/clients/client-mediapackage-vod/src/endpoint/ruleset.ts index 91fe0b8cafac..c64836b94301 100644 --- a/clients/client-mediapackage-vod/src/endpoint/ruleset.ts +++ b/clients/client-mediapackage-vod/src/endpoint/ruleset.ts @@ -6,26 +6,24 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; 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}]}]}; +const p="required", +q="fn", +r="argv", +s="ref"; +const a="PartitionResult", +b="tree", +c="error", +d="endpoint", +e={[p]:false,"type":"String"}, +f={[p]:true,"default":false,"type":"Boolean"}, +g={[s]:"Endpoint"}, +h={[q]:"booleanEquals",[r]:[{[s]:"UseFIPS"},true]}, +i={[q]:"booleanEquals",[r]:[{[s]:"UseDualStack"},true]}, +j={}, +k={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsFIPS"]}]}, +l={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsDualStack"]}]}, +m=[g], +n=[h], +o=[i]; +const _data={version:"1.0",parameters:{Region:e,UseDualStack:f,UseFIPS:f,Endpoint:e},rules:[{conditions:[{[q]:"aws.partition",[r]:[{[s]:"Region"}],assign:a}],type:b,rules:[{conditions:[{[q]:"isSet",[r]:m},{[q]:"parseURL",[r]:m,assign:"url"}],type:b,rules:[{conditions:n,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:c},{type:b,rules:[{conditions:o,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:c},{endpoint:{url:g,properties:j,headers:j},type:d}]}]},{conditions:[h,i],type:b,rules:[{conditions:[k,l],type:b,rules:[{endpoint:{url:"https://mediapackage-vod-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:c}]},{conditions:n,type:b,rules:[{conditions:[k],type:b,rules:[{type:b,rules:[{endpoint:{url:"https://mediapackage-vod-fips.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:c}]},{conditions:o,type:b,rules:[{conditions:[l],type:b,rules:[{endpoint:{url:"https://mediapackage-vod.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"DualStack is enabled but this partition does not support DualStack",type:c}]},{endpoint:{url:"https://mediapackage-vod.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-mediapackage/src/endpoint/ruleset.ts b/clients/client-mediapackage/src/endpoint/ruleset.ts index 97fe59fd3b6c..8b51a0549422 100644 --- a/clients/client-mediapackage/src/endpoint/ruleset.ts +++ b/clients/client-mediapackage/src/endpoint/ruleset.ts @@ -6,26 +6,24 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; 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}]}]}; +const p="required", +q="fn", +r="argv", +s="ref"; +const a="PartitionResult", +b="tree", +c="error", +d="endpoint", +e={[p]:false,"type":"String"}, +f={[p]:true,"default":false,"type":"Boolean"}, +g={[s]:"Endpoint"}, +h={[q]:"booleanEquals",[r]:[{[s]:"UseFIPS"},true]}, +i={[q]:"booleanEquals",[r]:[{[s]:"UseDualStack"},true]}, +j={}, +k={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsFIPS"]}]}, +l={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsDualStack"]}]}, +m=[g], +n=[h], +o=[i]; +const _data={version:"1.0",parameters:{Region:e,UseDualStack:f,UseFIPS:f,Endpoint:e},rules:[{conditions:[{[q]:"aws.partition",[r]:[{[s]:"Region"}],assign:a}],type:b,rules:[{conditions:[{[q]:"isSet",[r]:m},{[q]:"parseURL",[r]:m,assign:"url"}],type:b,rules:[{conditions:n,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:c},{type:b,rules:[{conditions:o,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:c},{endpoint:{url:g,properties:j,headers:j},type:d}]}]},{conditions:[h,i],type:b,rules:[{conditions:[k,l],type:b,rules:[{endpoint:{url:"https://mediapackage-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:c}]},{conditions:n,type:b,rules:[{conditions:[k],type:b,rules:[{type:b,rules:[{endpoint:{url:"https://mediapackage-fips.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:c}]},{conditions:o,type:b,rules:[{conditions:[l],type:b,rules:[{endpoint:{url:"https://mediapackage.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"DualStack is enabled but this partition does not support DualStack",type:c}]},{endpoint:{url:"https://mediapackage.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-mediastore-data/src/endpoint/ruleset.ts b/clients/client-mediastore-data/src/endpoint/ruleset.ts index 66c7bee72fe1..9db412cf1086 100644 --- a/clients/client-mediastore-data/src/endpoint/ruleset.ts +++ b/clients/client-mediastore-data/src/endpoint/ruleset.ts @@ -6,26 +6,24 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; 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}]}]}; +const p="required", +q="fn", +r="argv", +s="ref"; +const a="PartitionResult", +b="tree", +c="error", +d="endpoint", +e={[p]:false,"type":"String"}, +f={[p]:true,"default":false,"type":"Boolean"}, +g={[s]:"Endpoint"}, +h={[q]:"booleanEquals",[r]:[{[s]:"UseFIPS"},true]}, +i={[q]:"booleanEquals",[r]:[{[s]:"UseDualStack"},true]}, +j={}, +k={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsFIPS"]}]}, +l={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsDualStack"]}]}, +m=[g], +n=[h], +o=[i]; +const _data={version:"1.0",parameters:{Region:e,UseDualStack:f,UseFIPS:f,Endpoint:e},rules:[{conditions:[{[q]:"aws.partition",[r]:[{[s]:"Region"}],assign:a}],type:b,rules:[{conditions:[{[q]:"isSet",[r]:m},{[q]:"parseURL",[r]:m,assign:"url"}],type:b,rules:[{conditions:n,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:c},{type:b,rules:[{conditions:o,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:c},{endpoint:{url:g,properties:j,headers:j},type:d}]}]},{conditions:[h,i],type:b,rules:[{conditions:[k,l],type:b,rules:[{endpoint:{url:"https://data.mediastore-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:c}]},{conditions:n,type:b,rules:[{conditions:[k],type:b,rules:[{type:b,rules:[{endpoint:{url:"https://data.mediastore-fips.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:c}]},{conditions:o,type:b,rules:[{conditions:[l],type:b,rules:[{endpoint:{url:"https://data.mediastore.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"DualStack is enabled but this partition does not support DualStack",type:c}]},{endpoint:{url:"https://data.mediastore.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-mediastore/src/endpoint/ruleset.ts b/clients/client-mediastore/src/endpoint/ruleset.ts index 3634fbd16cbc..07db1d5682e5 100644 --- a/clients/client-mediastore/src/endpoint/ruleset.ts +++ b/clients/client-mediastore/src/endpoint/ruleset.ts @@ -6,26 +6,24 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; 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}]}]}; +const p="required", +q="fn", +r="argv", +s="ref"; +const a="PartitionResult", +b="tree", +c="error", +d="endpoint", +e={[p]:false,"type":"String"}, +f={[p]:true,"default":false,"type":"Boolean"}, +g={[s]:"Endpoint"}, +h={[q]:"booleanEquals",[r]:[{[s]:"UseFIPS"},true]}, +i={[q]:"booleanEquals",[r]:[{[s]:"UseDualStack"},true]}, +j={}, +k={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsFIPS"]}]}, +l={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsDualStack"]}]}, +m=[g], +n=[h], +o=[i]; +const _data={version:"1.0",parameters:{Region:e,UseDualStack:f,UseFIPS:f,Endpoint:e},rules:[{conditions:[{[q]:"aws.partition",[r]:[{[s]:"Region"}],assign:a}],type:b,rules:[{conditions:[{[q]:"isSet",[r]:m},{[q]:"parseURL",[r]:m,assign:"url"}],type:b,rules:[{conditions:n,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:c},{type:b,rules:[{conditions:o,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:c},{endpoint:{url:g,properties:j,headers:j},type:d}]}]},{conditions:[h,i],type:b,rules:[{conditions:[k,l],type:b,rules:[{endpoint:{url:"https://mediastore-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:c}]},{conditions:n,type:b,rules:[{conditions:[k],type:b,rules:[{type:b,rules:[{endpoint:{url:"https://mediastore-fips.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:c}]},{conditions:o,type:b,rules:[{conditions:[l],type:b,rules:[{endpoint:{url:"https://mediastore.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"DualStack is enabled but this partition does not support DualStack",type:c}]},{endpoint:{url:"https://mediastore.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-mediatailor/src/endpoint/ruleset.ts b/clients/client-mediatailor/src/endpoint/ruleset.ts index e8639bab712b..6d9cf2b2e396 100644 --- a/clients/client-mediatailor/src/endpoint/ruleset.ts +++ b/clients/client-mediatailor/src/endpoint/ruleset.ts @@ -6,26 +6,24 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; 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}]}]}; +const p="required", +q="fn", +r="argv", +s="ref"; +const a="PartitionResult", +b="tree", +c="error", +d="endpoint", +e={[p]:false,"type":"String"}, +f={[p]:true,"default":false,"type":"Boolean"}, +g={[s]:"Endpoint"}, +h={[q]:"booleanEquals",[r]:[{[s]:"UseFIPS"},true]}, +i={[q]:"booleanEquals",[r]:[{[s]:"UseDualStack"},true]}, +j={}, +k={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsFIPS"]}]}, +l={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsDualStack"]}]}, +m=[g], +n=[h], +o=[i]; +const _data={version:"1.0",parameters:{Region:e,UseDualStack:f,UseFIPS:f,Endpoint:e},rules:[{conditions:[{[q]:"aws.partition",[r]:[{[s]:"Region"}],assign:a}],type:b,rules:[{conditions:[{[q]:"isSet",[r]:m},{[q]:"parseURL",[r]:m,assign:"url"}],type:b,rules:[{conditions:n,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:c},{type:b,rules:[{conditions:o,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:c},{endpoint:{url:g,properties:j,headers:j},type:d}]}]},{conditions:[h,i],type:b,rules:[{conditions:[k,l],type:b,rules:[{endpoint:{url:"https://api.mediatailor-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:c}]},{conditions:n,type:b,rules:[{conditions:[k],type:b,rules:[{type:b,rules:[{endpoint:{url:"https://api.mediatailor-fips.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:c}]},{conditions:o,type:b,rules:[{conditions:[l],type:b,rules:[{endpoint:{url:"https://api.mediatailor.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"DualStack is enabled but this partition does not support DualStack",type:c}]},{endpoint:{url:"https://api.mediatailor.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-memorydb/src/endpoint/ruleset.ts b/clients/client-memorydb/src/endpoint/ruleset.ts index 1684b616dc69..873452260999 100644 --- a/clients/client-memorydb/src/endpoint/ruleset.ts +++ b/clients/client-memorydb/src/endpoint/ruleset.ts @@ -6,27 +6,25 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; 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}]}]}]}; +const q="required", +r="fn", +s="argv", +t="ref"; +const a="PartitionResult", +b="tree", +c="error", +d="endpoint", +e={[q]:false,"type":"String"}, +f={[q]:true,"default":false,"type":"Boolean"}, +g={[t]:"Region"}, +h={[t]:"Endpoint"}, +i={[r]:"booleanEquals",[s]:[{[t]:"UseFIPS"},true]}, +j={[r]:"booleanEquals",[s]:[{[t]:"UseDualStack"},true]}, +k={}, +l={[r]:"booleanEquals",[s]:[true,{[r]:"getAttr",[s]:[{[t]:a},"supportsFIPS"]}]}, +m={[r]:"booleanEquals",[s]:[true,{[r]:"getAttr",[s]:[{[t]:a},"supportsDualStack"]}]}, +n=[h], +o=[i], +p=[j]; +const _data={version:"1.0",parameters:{Region:e,UseDualStack:f,UseFIPS:f,Endpoint:e},rules:[{conditions:[{[r]:"aws.partition",[s]:[g],assign:a}],type:b,rules:[{conditions:[{[r]:"isSet",[s]:n},{[r]:"parseURL",[s]:n,assign:"url"}],type:b,rules:[{conditions:o,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:c},{type:b,rules:[{conditions:p,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:c},{endpoint:{url:h,properties:k,headers:k},type:d}]}]},{conditions:[i,j],type:b,rules:[{conditions:[l,m],type:b,rules:[{endpoint:{url:"https://memory-db-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:k,headers:k},type:d}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:c}]},{conditions:o,type:b,rules:[{conditions:[l],type:b,rules:[{type:b,rules:[{endpoint:{url:"https://memory-db-fips.{Region}.{PartitionResult#dnsSuffix}",properties:k,headers:k},type:d}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:c}]},{conditions:p,type:b,rules:[{conditions:[m],type:b,rules:[{endpoint:{url:"https://memory-db.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:k,headers:k},type:d}]},{error:"DualStack is enabled but this partition does not support DualStack",type:c}]},{type:b,rules:[{conditions:[{[r]:"stringEquals",[s]:[g,"fips"]}],endpoint:{url:"https://memory-db-fips.us-west-1.amazonaws.com",properties:k,headers:k},type:d},{endpoint:{url:"https://memory-db.{Region}.{PartitionResult#dnsSuffix}",properties:k,headers:k},type:d}]}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-mgn/src/endpoint/ruleset.ts b/clients/client-mgn/src/endpoint/ruleset.ts index 38afa19bcbca..c44dc8f9d972 100644 --- a/clients/client-mgn/src/endpoint/ruleset.ts +++ b/clients/client-mgn/src/endpoint/ruleset.ts @@ -6,26 +6,24 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; 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}]}]}; +const p="required", +q="fn", +r="argv", +s="ref"; +const a="PartitionResult", +b="tree", +c="error", +d="endpoint", +e={[p]:false,"type":"String"}, +f={[p]:true,"default":false,"type":"Boolean"}, +g={[s]:"Endpoint"}, +h={[q]:"booleanEquals",[r]:[{[s]:"UseFIPS"},true]}, +i={[q]:"booleanEquals",[r]:[{[s]:"UseDualStack"},true]}, +j={}, +k={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsFIPS"]}]}, +l={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsDualStack"]}]}, +m=[g], +n=[h], +o=[i]; +const _data={version:"1.0",parameters:{Region:e,UseDualStack:f,UseFIPS:f,Endpoint:e},rules:[{conditions:[{[q]:"aws.partition",[r]:[{[s]:"Region"}],assign:a}],type:b,rules:[{conditions:[{[q]:"isSet",[r]:m},{[q]:"parseURL",[r]:m,assign:"url"}],type:b,rules:[{conditions:n,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:c},{type:b,rules:[{conditions:o,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:c},{endpoint:{url:g,properties:j,headers:j},type:d}]}]},{conditions:[h,i],type:b,rules:[{conditions:[k,l],type:b,rules:[{endpoint:{url:"https://mgn-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:c}]},{conditions:n,type:b,rules:[{conditions:[k],type:b,rules:[{type:b,rules:[{endpoint:{url:"https://mgn-fips.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:c}]},{conditions:o,type:b,rules:[{conditions:[l],type:b,rules:[{endpoint:{url:"https://mgn.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"DualStack is enabled but this partition does not support DualStack",type:c}]},{endpoint:{url:"https://mgn.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]}; export const ruleSet: RuleSetObject = _data; 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 e47b902a2832..3d82e04d8c2f 100644 --- a/clients/client-migration-hub-refactor-spaces/src/endpoint/ruleset.ts +++ b/clients/client-migration-hub-refactor-spaces/src/endpoint/ruleset.ts @@ -6,26 +6,24 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; 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}]}]}; +const p="required", +q="fn", +r="argv", +s="ref"; +const a="PartitionResult", +b="tree", +c="error", +d="endpoint", +e={[p]:false,"type":"String"}, +f={[p]:true,"default":false,"type":"Boolean"}, +g={[s]:"Endpoint"}, +h={[q]:"booleanEquals",[r]:[{[s]:"UseFIPS"},true]}, +i={[q]:"booleanEquals",[r]:[{[s]:"UseDualStack"},true]}, +j={}, +k={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsFIPS"]}]}, +l={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsDualStack"]}]}, +m=[g], +n=[h], +o=[i]; +const _data={version:"1.0",parameters:{Region:e,UseDualStack:f,UseFIPS:f,Endpoint:e},rules:[{conditions:[{[q]:"aws.partition",[r]:[{[s]:"Region"}],assign:a}],type:b,rules:[{conditions:[{[q]:"isSet",[r]:m},{[q]:"parseURL",[r]:m,assign:"url"}],type:b,rules:[{conditions:n,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:c},{type:b,rules:[{conditions:o,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:c},{endpoint:{url:g,properties:j,headers:j},type:d}]}]},{conditions:[h,i],type:b,rules:[{conditions:[k,l],type:b,rules:[{endpoint:{url:"https://refactor-spaces-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:c}]},{conditions:n,type:b,rules:[{conditions:[k],type:b,rules:[{endpoint:{url:"https://refactor-spaces-fips.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]},{error:"FIPS is enabled but this partition does not support FIPS",type:c}]},{conditions:o,type:b,rules:[{conditions:[l],type:b,rules:[{endpoint:{url:"https://refactor-spaces.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"DualStack is enabled but this partition does not support DualStack",type:c}]},{endpoint:{url:"https://refactor-spaces.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-migration-hub/src/endpoint/ruleset.ts b/clients/client-migration-hub/src/endpoint/ruleset.ts index 2fc5575bb3e0..c31118656829 100644 --- a/clients/client-migration-hub/src/endpoint/ruleset.ts +++ b/clients/client-migration-hub/src/endpoint/ruleset.ts @@ -6,26 +6,24 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; 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}]}]}; +const p="required", +q="fn", +r="argv", +s="ref"; +const a="PartitionResult", +b="tree", +c="error", +d="endpoint", +e={[p]:false,"type":"String"}, +f={[p]:true,"default":false,"type":"Boolean"}, +g={[s]:"Endpoint"}, +h={[q]:"booleanEquals",[r]:[{[s]:"UseFIPS"},true]}, +i={[q]:"booleanEquals",[r]:[{[s]:"UseDualStack"},true]}, +j={}, +k={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsFIPS"]}]}, +l={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsDualStack"]}]}, +m=[g], +n=[h], +o=[i]; +const _data={version:"1.0",parameters:{Region:e,UseDualStack:f,UseFIPS:f,Endpoint:e},rules:[{conditions:[{[q]:"aws.partition",[r]:[{[s]:"Region"}],assign:a}],type:b,rules:[{conditions:[{[q]:"isSet",[r]:m},{[q]:"parseURL",[r]:m,assign:"url"}],type:b,rules:[{conditions:n,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:c},{type:b,rules:[{conditions:o,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:c},{endpoint:{url:g,properties:j,headers:j},type:d}]}]},{conditions:[h,i],type:b,rules:[{conditions:[k,l],type:b,rules:[{endpoint:{url:"https://mgh-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:c}]},{conditions:n,type:b,rules:[{conditions:[k],type:b,rules:[{type:b,rules:[{endpoint:{url:"https://mgh-fips.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:c}]},{conditions:o,type:b,rules:[{conditions:[l],type:b,rules:[{endpoint:{url:"https://mgh.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"DualStack is enabled but this partition does not support DualStack",type:c}]},{endpoint:{url:"https://mgh.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-migrationhub-config/src/endpoint/ruleset.ts b/clients/client-migrationhub-config/src/endpoint/ruleset.ts index e17165eb28b8..3ca7e512d138 100644 --- a/clients/client-migrationhub-config/src/endpoint/ruleset.ts +++ b/clients/client-migrationhub-config/src/endpoint/ruleset.ts @@ -6,26 +6,24 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; 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}]}]}; +const p="required", +q="fn", +r="argv", +s="ref"; +const a="PartitionResult", +b="tree", +c="error", +d="endpoint", +e={[p]:false,"type":"String"}, +f={[p]:true,"default":false,"type":"Boolean"}, +g={[s]:"Endpoint"}, +h={[q]:"booleanEquals",[r]:[{[s]:"UseFIPS"},true]}, +i={[q]:"booleanEquals",[r]:[{[s]:"UseDualStack"},true]}, +j={}, +k={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsFIPS"]}]}, +l={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsDualStack"]}]}, +m=[g], +n=[h], +o=[i]; +const _data={version:"1.0",parameters:{Region:e,UseDualStack:f,UseFIPS:f,Endpoint:e},rules:[{conditions:[{[q]:"aws.partition",[r]:[{[s]:"Region"}],assign:a}],type:b,rules:[{conditions:[{[q]:"isSet",[r]:m},{[q]:"parseURL",[r]:m,assign:"url"}],type:b,rules:[{conditions:n,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:c},{type:b,rules:[{conditions:o,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:c},{endpoint:{url:g,properties:j,headers:j},type:d}]}]},{conditions:[h,i],type:b,rules:[{conditions:[k,l],type:b,rules:[{endpoint:{url:"https://migrationhub-config-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:c}]},{conditions:n,type:b,rules:[{conditions:[k],type:b,rules:[{endpoint:{url:"https://migrationhub-config-fips.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]},{error:"FIPS is enabled but this partition does not support FIPS",type:c}]},{conditions:o,type:b,rules:[{conditions:[l],type:b,rules:[{endpoint:{url:"https://migrationhub-config.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"DualStack is enabled but this partition does not support DualStack",type:c}]},{endpoint:{url:"https://migrationhub-config.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-migrationhuborchestrator/src/endpoint/ruleset.ts b/clients/client-migrationhuborchestrator/src/endpoint/ruleset.ts index e19683476200..46680965d0da 100644 --- a/clients/client-migrationhuborchestrator/src/endpoint/ruleset.ts +++ b/clients/client-migrationhuborchestrator/src/endpoint/ruleset.ts @@ -6,26 +6,24 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; 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}]}]}; +const p="required", +q="fn", +r="argv", +s="ref"; +const a="PartitionResult", +b="tree", +c="error", +d="endpoint", +e={[p]:false,"type":"String"}, +f={[p]:true,"default":false,"type":"Boolean"}, +g={[s]:"Endpoint"}, +h={[q]:"booleanEquals",[r]:[{[s]:"UseFIPS"},true]}, +i={[q]:"booleanEquals",[r]:[{[s]:"UseDualStack"},true]}, +j={}, +k={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsFIPS"]}]}, +l={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsDualStack"]}]}, +m=[g], +n=[h], +o=[i]; +const _data={version:"1.0",parameters:{Region:e,UseDualStack:f,UseFIPS:f,Endpoint:e},rules:[{conditions:[{[q]:"aws.partition",[r]:[{[s]:"Region"}],assign:a}],type:b,rules:[{conditions:[{[q]:"isSet",[r]:m},{[q]:"parseURL",[r]:m,assign:"url"}],type:b,rules:[{conditions:n,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:c},{type:b,rules:[{conditions:o,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:c},{endpoint:{url:g,properties:j,headers:j},type:d}]}]},{conditions:[h,i],type:b,rules:[{conditions:[k,l],type:b,rules:[{endpoint:{url:"https://migrationhub-orchestrator-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:c}]},{conditions:n,type:b,rules:[{conditions:[k],type:b,rules:[{endpoint:{url:"https://migrationhub-orchestrator-fips.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]},{error:"FIPS is enabled but this partition does not support FIPS",type:c}]},{conditions:o,type:b,rules:[{conditions:[l],type:b,rules:[{endpoint:{url:"https://migrationhub-orchestrator.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"DualStack is enabled but this partition does not support DualStack",type:c}]},{endpoint:{url:"https://migrationhub-orchestrator.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-migrationhubstrategy/src/endpoint/ruleset.ts b/clients/client-migrationhubstrategy/src/endpoint/ruleset.ts index 00b6a42eaa3a..f2f5e6a4ed29 100644 --- a/clients/client-migrationhubstrategy/src/endpoint/ruleset.ts +++ b/clients/client-migrationhubstrategy/src/endpoint/ruleset.ts @@ -6,25 +6,24 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; or see "smithy.rules#endpointRuleSet" in codegen/sdk-codegen/aws-models/migrationhubstrategy.json */ -const r="fn", -s="argv", -t="ref"; +const q="fn", +r="argv", +s="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]}, +d="PartitionResult", +e="tree", +f="error", +g="endpoint", +h={"required":true,"default":false,"type":"Boolean"}, +i={[s]:"Endpoint"}, +j={[q]:"booleanEquals",[r]:[{[s]:"UseFIPS"},true]}, +k={[q]:"booleanEquals",[r]:[{[s]:"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"]}]}, +m={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:d},"supportsFIPS"]}]}, +n={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:d},"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}]}]}; +p=[k]; +const _data={version:"1.0",parameters:{Region:{required:a,type:c},UseDualStack:h,UseFIPS:h,Endpoint:{required:b,type:c}},rules:[{conditions:[{[q]:"aws.partition",[r]:[{[s]:"Region"}],assign:d}],type:e,rules:[{conditions:[{[q]:"isSet",[r]:[i]}],type:e,rules:[{conditions:o,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:f},{type:e,rules:[{conditions:p,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:f},{endpoint:{url:i,properties:l,headers:l},type:g}]}]},{conditions:[j,k],type:e,rules:[{conditions:[m,n],type:e,rules:[{endpoint:{url:"https://migrationhub-strategy-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:g}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:f}]},{conditions:o,type:e,rules:[{conditions:[m],type:e,rules:[{type:e,rules:[{endpoint:{url:"https://migrationhub-strategy-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:g}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:f}]},{conditions:p,type:e,rules:[{conditions:[n],type:e,rules:[{endpoint:{url:"https://migrationhub-strategy.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:g}]},{error:"DualStack is enabled but this partition does not support DualStack",type:f}]},{endpoint:{url:"https://migrationhub-strategy.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:g}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-mobile/src/endpoint/ruleset.ts b/clients/client-mobile/src/endpoint/ruleset.ts index ff89eb7e7682..776b280d64db 100644 --- a/clients/client-mobile/src/endpoint/ruleset.ts +++ b/clients/client-mobile/src/endpoint/ruleset.ts @@ -6,26 +6,24 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; 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}]}]}; +const p="required", +q="fn", +r="argv", +s="ref"; +const a="PartitionResult", +b="tree", +c="error", +d="endpoint", +e={[p]:false,"type":"String"}, +f={[p]:true,"default":false,"type":"Boolean"}, +g={[s]:"Endpoint"}, +h={[q]:"booleanEquals",[r]:[{[s]:"UseFIPS"},true]}, +i={[q]:"booleanEquals",[r]:[{[s]:"UseDualStack"},true]}, +j={}, +k={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsFIPS"]}]}, +l={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsDualStack"]}]}, +m=[g], +n=[h], +o=[i]; +const _data={version:"1.0",parameters:{Region:e,UseDualStack:f,UseFIPS:f,Endpoint:e},rules:[{conditions:[{[q]:"aws.partition",[r]:[{[s]:"Region"}],assign:a}],type:b,rules:[{conditions:[{[q]:"isSet",[r]:m},{[q]:"parseURL",[r]:m,assign:"url"}],type:b,rules:[{conditions:n,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:c},{type:b,rules:[{conditions:o,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:c},{endpoint:{url:g,properties:j,headers:j},type:d}]}]},{conditions:[h,i],type:b,rules:[{conditions:[k,l],type:b,rules:[{endpoint:{url:"https://mobile-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:c}]},{conditions:n,type:b,rules:[{conditions:[k],type:b,rules:[{endpoint:{url:"https://mobile-fips.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]},{error:"FIPS is enabled but this partition does not support FIPS",type:c}]},{conditions:o,type:b,rules:[{conditions:[l],type:b,rules:[{endpoint:{url:"https://mobile.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"DualStack is enabled but this partition does not support DualStack",type:c}]},{endpoint:{url:"https://mobile.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-mq/src/endpoint/ruleset.ts b/clients/client-mq/src/endpoint/ruleset.ts index 646e70fcd5d4..8f305d1d04fa 100644 --- a/clients/client-mq/src/endpoint/ruleset.ts +++ b/clients/client-mq/src/endpoint/ruleset.ts @@ -6,26 +6,24 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; 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}]}]}; +const p="required", +q="fn", +r="argv", +s="ref"; +const a="PartitionResult", +b="tree", +c="error", +d="endpoint", +e={[p]:false,"type":"String"}, +f={[p]:true,"default":false,"type":"Boolean"}, +g={[s]:"Endpoint"}, +h={[q]:"booleanEquals",[r]:[{[s]:"UseFIPS"},true]}, +i={[q]:"booleanEquals",[r]:[{[s]:"UseDualStack"},true]}, +j={}, +k={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsFIPS"]}]}, +l={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsDualStack"]}]}, +m=[g], +n=[h], +o=[i]; +const _data={version:"1.0",parameters:{Region:e,UseDualStack:f,UseFIPS:f,Endpoint:e},rules:[{conditions:[{[q]:"aws.partition",[r]:[{[s]:"Region"}],assign:a}],type:b,rules:[{conditions:[{[q]:"isSet",[r]:m},{[q]:"parseURL",[r]:m,assign:"url"}],type:b,rules:[{conditions:n,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:c},{type:b,rules:[{conditions:o,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:c},{endpoint:{url:g,properties:j,headers:j},type:d}]}]},{conditions:[h,i],type:b,rules:[{conditions:[k,l],type:b,rules:[{endpoint:{url:"https://mq-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:c}]},{conditions:n,type:b,rules:[{conditions:[k],type:b,rules:[{type:b,rules:[{endpoint:{url:"https://mq-fips.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:c}]},{conditions:o,type:b,rules:[{conditions:[l],type:b,rules:[{endpoint:{url:"https://mq.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"DualStack is enabled but this partition does not support DualStack",type:c}]},{endpoint:{url:"https://mq.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-mturk/src/endpoint/ruleset.ts b/clients/client-mturk/src/endpoint/ruleset.ts index 0baf7b4eb75a..62e96832a436 100644 --- a/clients/client-mturk/src/endpoint/ruleset.ts +++ b/clients/client-mturk/src/endpoint/ruleset.ts @@ -6,27 +6,25 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; 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}]}]}]}; +const q="required", +r="fn", +s="argv", +t="ref"; +const a="PartitionResult", +b="tree", +c="error", +d="endpoint", +e={[q]:false,"type":"String"}, +f={[q]:true,"default":false,"type":"Boolean"}, +g={[t]:"Region"}, +h={[t]:"Endpoint"}, +i={[r]:"booleanEquals",[s]:[{[t]:"UseFIPS"},true]}, +j={[r]:"booleanEquals",[s]:[{[t]:"UseDualStack"},true]}, +k={}, +l={[r]:"booleanEquals",[s]:[true,{[r]:"getAttr",[s]:[{[t]:a},"supportsFIPS"]}]}, +m={[r]:"booleanEquals",[s]:[true,{[r]:"getAttr",[s]:[{[t]:a},"supportsDualStack"]}]}, +n=[h], +o=[i], +p=[j]; +const _data={version:"1.0",parameters:{Region:e,UseDualStack:f,UseFIPS:f,Endpoint:e},rules:[{conditions:[{[r]:"aws.partition",[s]:[g],assign:a}],type:b,rules:[{conditions:[{[r]:"isSet",[s]:n},{[r]:"parseURL",[s]:n,assign:"url"}],type:b,rules:[{conditions:o,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:c},{type:b,rules:[{conditions:p,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:c},{endpoint:{url:h,properties:k,headers:k},type:d}]}]},{conditions:[i,j],type:b,rules:[{conditions:[l,m],type:b,rules:[{endpoint:{url:"https://mturk-requester-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:k,headers:k},type:d}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:c}]},{conditions:o,type:b,rules:[{conditions:[l],type:b,rules:[{type:b,rules:[{endpoint:{url:"https://mturk-requester-fips.{Region}.{PartitionResult#dnsSuffix}",properties:k,headers:k},type:d}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:c}]},{conditions:p,type:b,rules:[{conditions:[m],type:b,rules:[{endpoint:{url:"https://mturk-requester.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:k,headers:k},type:d}]},{error:"DualStack is enabled but this partition does not support DualStack",type:c}]},{type:b,rules:[{conditions:[{[r]:"stringEquals",[s]:[g,"sandbox"]}],endpoint:{url:"https://mturk-requester-sandbox.us-east-1.amazonaws.com",properties:k,headers:k},type:d},{endpoint:{url:"https://mturk-requester.{Region}.{PartitionResult#dnsSuffix}",properties:k,headers:k},type:d}]}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-mwaa/src/endpoint/ruleset.ts b/clients/client-mwaa/src/endpoint/ruleset.ts index 7fa3566d3d26..842120ef3c27 100644 --- a/clients/client-mwaa/src/endpoint/ruleset.ts +++ b/clients/client-mwaa/src/endpoint/ruleset.ts @@ -6,26 +6,24 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; 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}]}]}; +const p="required", +q="fn", +r="argv", +s="ref"; +const a="PartitionResult", +b="tree", +c="error", +d="endpoint", +e={[p]:false,"type":"String"}, +f={[p]:true,"default":false,"type":"Boolean"}, +g={[s]:"Endpoint"}, +h={[q]:"booleanEquals",[r]:[{[s]:"UseFIPS"},true]}, +i={[q]:"booleanEquals",[r]:[{[s]:"UseDualStack"},true]}, +j={}, +k={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsFIPS"]}]}, +l={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsDualStack"]}]}, +m=[g], +n=[h], +o=[i]; +const _data={version:"1.0",parameters:{Region:e,UseDualStack:f,UseFIPS:f,Endpoint:e},rules:[{conditions:[{[q]:"aws.partition",[r]:[{[s]:"Region"}],assign:a}],type:b,rules:[{conditions:[{[q]:"isSet",[r]:m},{[q]:"parseURL",[r]:m,assign:"url"}],type:b,rules:[{conditions:n,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:c},{type:b,rules:[{conditions:o,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:c},{endpoint:{url:g,properties:j,headers:j},type:d}]}]},{conditions:[h,i],type:b,rules:[{conditions:[k,l],type:b,rules:[{endpoint:{url:"https://airflow-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:c}]},{conditions:n,type:b,rules:[{conditions:[k],type:b,rules:[{type:b,rules:[{endpoint:{url:"https://airflow-fips.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:c}]},{conditions:o,type:b,rules:[{conditions:[l],type:b,rules:[{endpoint:{url:"https://airflow.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"DualStack is enabled but this partition does not support DualStack",type:c}]},{endpoint:{url:"https://airflow.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-neptune/src/endpoint/ruleset.ts b/clients/client-neptune/src/endpoint/ruleset.ts index bf912cb2b03d..f586b11efa63 100644 --- a/clients/client-neptune/src/endpoint/ruleset.ts +++ b/clients/client-neptune/src/endpoint/ruleset.ts @@ -6,31 +6,29 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; 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}]}]}; +const u="required", +v="fn", +w="argv", +x="ref"; +const a="PartitionResult", +b="tree", +c="error", +d="endpoint", +e="getAttr", +f="stringEquals", +g={[u]:false,"type":"String"}, +h={[u]:true,"default":false,"type":"Boolean"}, +i={[x]:"Region"}, +j={[x]:"Endpoint"}, +k={[v]:"booleanEquals",[w]:[{[x]:"UseFIPS"},true]}, +l={[v]:"booleanEquals",[w]:[{[x]:"UseDualStack"},true]}, +m={}, +n={[v]:"booleanEquals",[w]:[true,{[v]:e,[w]:[{[x]:a},"supportsFIPS"]}]}, +o={[x]:a}, +p={[v]:"booleanEquals",[w]:[true,{[v]:e,[w]:[o,"supportsDualStack"]}]}, +q={"url":"https://rds.{Region}.{PartitionResult#dnsSuffix}","properties":{},"headers":{}}, +r=[j], +s=[k], +t=[l]; +const _data={version:"1.0",parameters:{Region:g,UseDualStack:h,UseFIPS:h,Endpoint:g},rules:[{conditions:[{[v]:"aws.partition",[w]:[i],assign:a}],type:b,rules:[{conditions:[{[v]:"isSet",[w]:r},{[v]:"parseURL",[w]:r,assign:"url"}],type:b,rules:[{conditions:s,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:c},{type:b,rules:[{conditions:t,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:c},{endpoint:{url:j,properties:m,headers:m},type:d}]}]},{conditions:[k,l],type:b,rules:[{conditions:[n,p],type:b,rules:[{endpoint:{url:"https://rds-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:m,headers:m},type:d}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:c}]},{conditions:s,type:b,rules:[{conditions:[n],type:b,rules:[{type:b,rules:[{conditions:[{[v]:f,[w]:[i,"rds.ca-central-1"]}],endpoint:{url:"https://rds-fips.ca-central-1.amazonaws.com",properties:m,headers:m},type:d},{conditions:[{[v]:f,[w]:[i,"rds.us-east-1"]}],endpoint:{url:"https://rds-fips.us-east-1.amazonaws.com",properties:m,headers:m},type:d},{conditions:[{[v]:f,[w]:[i,"rds.us-east-2"]}],endpoint:{url:"https://rds-fips.us-east-2.amazonaws.com",properties:m,headers:m},type:d},{conditions:[{[v]:f,[w]:[i,"rds.us-west-1"]}],endpoint:{url:"https://rds-fips.us-west-1.amazonaws.com",properties:m,headers:m},type:d},{conditions:[{[v]:f,[w]:[i,"rds.us-west-2"]}],endpoint:{url:"https://rds-fips.us-west-2.amazonaws.com",properties:m,headers:m},type:d},{conditions:[{[v]:f,[w]:["aws-us-gov",{[v]:e,[w]:[o,"name"]}]}],endpoint:q,type:d},{endpoint:{url:"https://rds-fips.{Region}.{PartitionResult#dnsSuffix}",properties:m,headers:m},type:d}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:c}]},{conditions:t,type:b,rules:[{conditions:[p],type:b,rules:[{endpoint:{url:"https://rds.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:m,headers:m},type:d}]},{error:"DualStack is enabled but this partition does not support DualStack",type:c}]},{endpoint:q,type:d}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-network-firewall/src/endpoint/ruleset.ts b/clients/client-network-firewall/src/endpoint/ruleset.ts index 09501d1ac05c..9b739be59f59 100644 --- a/clients/client-network-firewall/src/endpoint/ruleset.ts +++ b/clients/client-network-firewall/src/endpoint/ruleset.ts @@ -6,26 +6,24 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; 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}]}]}; +const p="required", +q="fn", +r="argv", +s="ref"; +const a="PartitionResult", +b="tree", +c="error", +d="endpoint", +e={[p]:false,"type":"String"}, +f={[p]:true,"default":false,"type":"Boolean"}, +g={[s]:"Endpoint"}, +h={[q]:"booleanEquals",[r]:[{[s]:"UseFIPS"},true]}, +i={[q]:"booleanEquals",[r]:[{[s]:"UseDualStack"},true]}, +j={}, +k={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsFIPS"]}]}, +l={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsDualStack"]}]}, +m=[g], +n=[h], +o=[i]; +const _data={version:"1.0",parameters:{Region:e,UseDualStack:f,UseFIPS:f,Endpoint:e},rules:[{conditions:[{[q]:"aws.partition",[r]:[{[s]:"Region"}],assign:a}],type:b,rules:[{conditions:[{[q]:"isSet",[r]:m},{[q]:"parseURL",[r]:m,assign:"url"}],type:b,rules:[{conditions:n,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:c},{type:b,rules:[{conditions:o,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:c},{endpoint:{url:g,properties:j,headers:j},type:d}]}]},{conditions:[h,i],type:b,rules:[{conditions:[k,l],type:b,rules:[{endpoint:{url:"https://network-firewall-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:c}]},{conditions:n,type:b,rules:[{conditions:[k],type:b,rules:[{type:b,rules:[{endpoint:{url:"https://network-firewall-fips.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:c}]},{conditions:o,type:b,rules:[{conditions:[l],type:b,rules:[{endpoint:{url:"https://network-firewall.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"DualStack is enabled but this partition does not support DualStack",type:c}]},{endpoint:{url:"https://network-firewall.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-networkmanager/src/endpoint/ruleset.ts b/clients/client-networkmanager/src/endpoint/ruleset.ts index 109b4b79137e..37c4e59affb0 100644 --- a/clients/client-networkmanager/src/endpoint/ruleset.ts +++ b/clients/client-networkmanager/src/endpoint/ruleset.ts @@ -6,46 +6,43 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; 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}]}]}]}; +const C="required", +D="type", +E="fn", +F="argv", +G="ref", +H="properties", +I="headers", +J="authSchemes", +K="signingRegion", +L="signingName"; +const a="PartitionResult", +b="tree", +c="error", +d="endpoint", +e="stringEquals", +f="https://networkmanager-fips.{Region}.api.aws", +g="https://networkmanager-fips.{Region}.amazonaws.com", +h="https://networkmanager.{Region}.api.aws", +i={[C]:false,[D]:"String"}, +j={[C]:true,"default":false,[D]:"Boolean"}, +k={[G]:"Region"}, +l={[G]:"Endpoint"}, +m={}, +n={[E]:"getAttr",[F]:[{[G]:a},"name"]}, +o={[J]:[{"name":"sigv4",[K]:"us-west-2",[L]:"networkmanager"}]}, +p={[c]:"FIPS and DualStack are enabled, but this partition does not support one or both",[D]:c}, +q={[c]:"FIPS is enabled but this partition does not support FIPS",[D]:c}, +r={[c]:"DualStack is enabled but this partition does not support DualStack",[D]:c}, +s={"url":"https://networkmanager.us-west-2.amazonaws.com",[H]:o,[I]:{}}, +t={[J]:[{"name":"sigv4",[K]:"us-gov-west-1",[L]:"networkmanager"}]}, +u={"url":"https://networkmanager.us-gov-west-1.amazonaws.com",[H]:t,[I]:{}}, +v=[l], +w=[{[E]:"booleanEquals",[F]:[{[G]:"UseFIPS"},true]}], +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]:a},"supportsFIPS"]}]},{[E]:"booleanEquals",[F]:[true,{[E]:"getAttr",[F]:[{[G]:a},"supportsDualStack"]}]}], +A=[{[E]:"booleanEquals",[F]:[true,{[E]:"getAttr",[F]:[{[G]:a},"supportsFIPS"]}]}], +B=[{[E]:"booleanEquals",[F]:[true,{[E]:"getAttr",[F]:[{[G]:a},"supportsDualStack"]}]}]; +const _data={version:"1.0",parameters:{Region:i,UseDualStack:j,UseFIPS:j,Endpoint:i},rules:[{conditions:[{[E]:"aws.partition",[F]:[k],assign:a}],[D]:b,rules:[{conditions:[{[E]:"isSet",[F]:v},{[E]:"parseURL",[F]:v,assign:"url"}],[D]:b,rules:[{conditions:w,error:"Invalid Configuration: FIPS and custom endpoint are not supported",[D]:c},{[D]:b,rules:[{conditions:x,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",[D]:c},{endpoint:{url:l,[H]:m,[I]:m},[D]:d}]}]},{conditions:[{[E]:e,[F]:[n,"aws"]}],[D]:b,rules:[{conditions:y,[D]:b,rules:[{conditions:z,[D]:b,rules:[{endpoint:{url:f,[H]:o,[I]:m},[D]:d}]},p]},{conditions:w,[D]:b,rules:[{conditions:A,[D]:b,rules:[{endpoint:{url:g,[H]:o,[I]:m},[D]:d}]},q]},{conditions:x,[D]:b,rules:[{conditions:B,[D]:b,rules:[{endpoint:{url:h,[H]:o,[I]:m},[D]:d}]},r]},{endpoint:s,[D]:d}]},{conditions:[{[E]:e,[F]:[n,"aws-us-gov"]}],[D]:b,rules:[{conditions:y,[D]:b,rules:[{conditions:z,[D]:b,rules:[{endpoint:{url:f,[H]:t,[I]:m},[D]:d}]},p]},{conditions:w,[D]:b,rules:[{conditions:A,[D]:b,rules:[{endpoint:{url:g,[H]:t,[I]:m},[D]:d}]},q]},{conditions:x,[D]:b,rules:[{conditions:B,[D]:b,rules:[{endpoint:{url:h,[H]:t,[I]:m},[D]:d}]},r]},{endpoint:u,[D]:d}]},{conditions:y,[D]:b,rules:[{conditions:z,[D]:b,rules:[{endpoint:{url:"https://networkmanager-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",[H]:m,[I]:m},[D]:d}]},p]},{conditions:w,[D]:b,rules:[{conditions:A,[D]:b,rules:[{[D]:b,rules:[{endpoint:{url:"https://networkmanager-fips.{Region}.{PartitionResult#dnsSuffix}",[H]:m,[I]:m},[D]:d}]}]},q]},{conditions:x,[D]:b,rules:[{conditions:B,[D]:b,rules:[{endpoint:{url:"https://networkmanager.{Region}.{PartitionResult#dualStackDnsSuffix}",[H]:m,[I]:m},[D]:d}]},r]},{[D]:b,rules:[{conditions:[{[E]:e,[F]:[k,"aws-global"]}],endpoint:s,[D]:d},{conditions:[{[E]:e,[F]:[k,"aws-us-gov-global"]}],endpoint:u,[D]:d},{endpoint:{url:"https://networkmanager.{Region}.{PartitionResult#dnsSuffix}",[H]:m,[I]:m},[D]:d}]}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-nimble/src/endpoint/ruleset.ts b/clients/client-nimble/src/endpoint/ruleset.ts index 4842375302c1..1ce2ed10c96c 100644 --- a/clients/client-nimble/src/endpoint/ruleset.ts +++ b/clients/client-nimble/src/endpoint/ruleset.ts @@ -6,25 +6,24 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; or see "smithy.rules#endpointRuleSet" in codegen/sdk-codegen/aws-models/nimble.json */ -const r="fn", -s="argv", -t="ref"; +const q="fn", +r="argv", +s="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]}, +d="PartitionResult", +e="tree", +f="error", +g="endpoint", +h={"required":true,"default":false,"type":"Boolean"}, +i={[s]:"Endpoint"}, +j={[q]:"booleanEquals",[r]:[{[s]:"UseFIPS"},true]}, +k={[q]:"booleanEquals",[r]:[{[s]:"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"]}]}, +m={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:d},"supportsFIPS"]}]}, +n={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:d},"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://nimble-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://nimble-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://nimble.{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://nimble.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]}; +p=[k]; +const _data={version:"1.0",parameters:{Region:{required:a,type:c},UseDualStack:h,UseFIPS:h,Endpoint:{required:b,type:c}},rules:[{conditions:[{[q]:"aws.partition",[r]:[{[s]:"Region"}],assign:d}],type:e,rules:[{conditions:[{[q]:"isSet",[r]:[i]}],type:e,rules:[{conditions:o,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:f},{type:e,rules:[{conditions:p,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:f},{endpoint:{url:i,properties:l,headers:l},type:g}]}]},{conditions:[j,k],type:e,rules:[{conditions:[m,n],type:e,rules:[{endpoint:{url:"https://nimble-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:g}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:f}]},{conditions:o,type:e,rules:[{conditions:[m],type:e,rules:[{type:e,rules:[{endpoint:{url:"https://nimble-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:g}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:f}]},{conditions:p,type:e,rules:[{conditions:[n],type:e,rules:[{endpoint:{url:"https://nimble.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:g}]},{error:"DualStack is enabled but this partition does not support DualStack",type:f}]},{endpoint:{url:"https://nimble.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:g}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-oam/src/endpoint/ruleset.ts b/clients/client-oam/src/endpoint/ruleset.ts index f003796d49fa..dc248ea1ab3d 100644 --- a/clients/client-oam/src/endpoint/ruleset.ts +++ b/clients/client-oam/src/endpoint/ruleset.ts @@ -6,26 +6,25 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; or see "smithy.rules#endpointRuleSet" in codegen/sdk-codegen/aws-models/oam.json */ -const s="fn", -t="argv", -u="ref"; +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={[u]:"Endpoint"}, -j={[s]:"booleanEquals",[t]:[{[u]:"UseFIPS"},true]}, -k={[s]:"booleanEquals",[t]:[{[u]:"UseDualStack"},true]}, +d="PartitionResult", +e="tree", +f="error", +g="endpoint", +h={"required":true,"default":false,"type":"Boolean"}, +i={[t]:"Endpoint"}, +j={[r]:"booleanEquals",[s]:[{[t]:"UseFIPS"},true]}, +k={[r]:"booleanEquals",[s]:[{[t]:"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"]}]}, +m={[r]:"booleanEquals",[s]:[true,{[r]:"getAttr",[s]:[{[t]:d},"supportsFIPS"]}]}, +n={[r]:"booleanEquals",[s]:[true,{[r]:"getAttr",[s]:[{[t]:d},"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}]}]}; +q=[k]; +const _data={version:"1.0",parameters:{Region:{required:a,type:c},UseDualStack:h,UseFIPS:h,Endpoint:{required:b,type:c}},rules:[{conditions:[{[r]:"aws.partition",[s]:[{[t]:"Region"}],assign:d}],type:e,rules:[{conditions:[{[r]:"isSet",[s]:o},{[r]:"parseURL",[s]:o,assign:"url"}],type:e,rules:[{conditions:p,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:f},{type:e,rules:[{conditions:q,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:f},{endpoint:{url:i,properties:l,headers:l},type:g}]}]},{conditions:[j,k],type:e,rules:[{conditions:[m,n],type:e,rules:[{endpoint:{url:"https://oam-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:g}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:f}]},{conditions:p,type:e,rules:[{conditions:[m],type:e,rules:[{endpoint:{url:"https://oam-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:g}]},{error:"FIPS is enabled but this partition does not support FIPS",type:f}]},{conditions:q,type:e,rules:[{conditions:[n],type:e,rules:[{endpoint:{url:"https://oam.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:g}]},{error:"DualStack is enabled but this partition does not support DualStack",type:f}]},{endpoint:{url:"https://oam.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:g}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-omics/src/endpoint/ruleset.ts b/clients/client-omics/src/endpoint/ruleset.ts index 21dcbc9df94f..46d3efd73cbb 100644 --- a/clients/client-omics/src/endpoint/ruleset.ts +++ b/clients/client-omics/src/endpoint/ruleset.ts @@ -6,26 +6,25 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; or see "smithy.rules#endpointRuleSet" in codegen/sdk-codegen/aws-models/omics.json */ -const s="fn", -t="argv", -u="ref"; +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={[u]:"Endpoint"}, -j={[s]:"booleanEquals",[t]:[{[u]:"UseFIPS"},true]}, -k={[s]:"booleanEquals",[t]:[{[u]:"UseDualStack"},true]}, +d="PartitionResult", +e="tree", +f="error", +g="endpoint", +h={"required":true,"default":false,"type":"Boolean"}, +i={[t]:"Endpoint"}, +j={[r]:"booleanEquals",[s]:[{[t]:"UseFIPS"},true]}, +k={[r]:"booleanEquals",[s]:[{[t]:"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"]}]}, +m={[r]:"booleanEquals",[s]:[true,{[r]:"getAttr",[s]:[{[t]:d},"supportsFIPS"]}]}, +n={[r]:"booleanEquals",[s]:[true,{[r]:"getAttr",[s]:[{[t]:d},"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}]}]}; +q=[k]; +const _data={version:"1.0",parameters:{Region:{required:a,type:c},UseDualStack:h,UseFIPS:h,Endpoint:{required:b,type:c}},rules:[{conditions:[{[r]:"aws.partition",[s]:[{[t]:"Region"}],assign:d}],type:e,rules:[{conditions:[{[r]:"isSet",[s]:o},{[r]:"parseURL",[s]:o,assign:"url"}],type:e,rules:[{conditions:p,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:f},{type:e,rules:[{conditions:q,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:f},{endpoint:{url:i,properties:l,headers:l},type:g}]}]},{conditions:[j,k],type:e,rules:[{conditions:[m,n],type:e,rules:[{endpoint:{url:"https://omics-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:g}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:f}]},{conditions:p,type:e,rules:[{conditions:[m],type:e,rules:[{endpoint:{url:"https://omics-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:g}]},{error:"FIPS is enabled but this partition does not support FIPS",type:f}]},{conditions:q,type:e,rules:[{conditions:[n],type:e,rules:[{endpoint:{url:"https://omics.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:g}]},{error:"DualStack is enabled but this partition does not support DualStack",type:f}]},{endpoint:{url:"https://omics.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:g}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-opensearch/src/endpoint/ruleset.ts b/clients/client-opensearch/src/endpoint/ruleset.ts index 4d23f53d87d7..190fce3f41a9 100644 --- a/clients/client-opensearch/src/endpoint/ruleset.ts +++ b/clients/client-opensearch/src/endpoint/ruleset.ts @@ -6,26 +6,24 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; 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}]}]}; +const p="required", +q="fn", +r="argv", +s="ref"; +const a="PartitionResult", +b="tree", +c="error", +d="endpoint", +e={[p]:false,"type":"String"}, +f={[p]:true,"default":false,"type":"Boolean"}, +g={[s]:"Endpoint"}, +h={[q]:"booleanEquals",[r]:[{[s]:"UseFIPS"},true]}, +i={[q]:"booleanEquals",[r]:[{[s]:"UseDualStack"},true]}, +j={}, +k={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsFIPS"]}]}, +l={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsDualStack"]}]}, +m=[g], +n=[h], +o=[i]; +const _data={version:"1.0",parameters:{Region:e,UseDualStack:f,UseFIPS:f,Endpoint:e},rules:[{conditions:[{[q]:"aws.partition",[r]:[{[s]:"Region"}],assign:a}],type:b,rules:[{conditions:[{[q]:"isSet",[r]:m},{[q]:"parseURL",[r]:m,assign:"url"}],type:b,rules:[{conditions:n,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:c},{type:b,rules:[{conditions:o,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:c},{endpoint:{url:g,properties:j,headers:j},type:d}]}]},{conditions:[h,i],type:b,rules:[{conditions:[k,l],type:b,rules:[{endpoint:{url:"https://es-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:c}]},{conditions:n,type:b,rules:[{conditions:[k],type:b,rules:[{type:b,rules:[{endpoint:{url:"https://es-fips.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:c}]},{conditions:o,type:b,rules:[{conditions:[l],type:b,rules:[{endpoint:{url:"https://es.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"DualStack is enabled but this partition does not support DualStack",type:c}]},{endpoint:{url:"https://es.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-opensearchserverless/src/endpoint/ruleset.ts b/clients/client-opensearchserverless/src/endpoint/ruleset.ts index 515cf328b3ad..c6ba412c43e6 100644 --- a/clients/client-opensearchserverless/src/endpoint/ruleset.ts +++ b/clients/client-opensearchserverless/src/endpoint/ruleset.ts @@ -6,26 +6,25 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; or see "smithy.rules#endpointRuleSet" in codegen/sdk-codegen/aws-models/opensearchserverless.json */ -const s="fn", -t="argv", -u="ref"; +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={[u]:"Endpoint"}, -j={[s]:"booleanEquals",[t]:[{[u]:"UseFIPS"},true]}, -k={[s]:"booleanEquals",[t]:[{[u]:"UseDualStack"},true]}, +d="PartitionResult", +e="tree", +f="error", +g="endpoint", +h={"required":true,"default":false,"type":"Boolean"}, +i={[t]:"Endpoint"}, +j={[r]:"booleanEquals",[s]:[{[t]:"UseFIPS"},true]}, +k={[r]:"booleanEquals",[s]:[{[t]:"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"]}]}, +m={[r]:"booleanEquals",[s]:[true,{[r]:"getAttr",[s]:[{[t]:d},"supportsFIPS"]}]}, +n={[r]:"booleanEquals",[s]:[true,{[r]:"getAttr",[s]:[{[t]:d},"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}]}]}; +q=[k]; +const _data={version:"1.0",parameters:{Region:{required:a,type:c},UseDualStack:h,UseFIPS:h,Endpoint:{required:b,type:c}},rules:[{conditions:[{[r]:"aws.partition",[s]:[{[t]:"Region"}],assign:d}],type:e,rules:[{conditions:[{[r]:"isSet",[s]:o},{[r]:"parseURL",[s]:o,assign:"url"}],type:e,rules:[{conditions:p,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:f},{type:e,rules:[{conditions:q,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:f},{endpoint:{url:i,properties:l,headers:l},type:g}]}]},{conditions:[j,k],type:e,rules:[{conditions:[m,n],type:e,rules:[{endpoint:{url:"https://aoss-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:g}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:f}]},{conditions:p,type:e,rules:[{conditions:[m],type:e,rules:[{endpoint:{url:"https://aoss-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:g}]},{error:"FIPS is enabled but this partition does not support FIPS",type:f}]},{conditions:q,type:e,rules:[{conditions:[n],type:e,rules:[{endpoint:{url:"https://aoss.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:g}]},{error:"DualStack is enabled but this partition does not support DualStack",type:f}]},{endpoint:{url:"https://aoss.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:g}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-opsworks/src/endpoint/ruleset.ts b/clients/client-opsworks/src/endpoint/ruleset.ts index f3b3295d0e25..7d0b9c660a2e 100644 --- a/clients/client-opsworks/src/endpoint/ruleset.ts +++ b/clients/client-opsworks/src/endpoint/ruleset.ts @@ -6,26 +6,24 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; 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}]}]}; +const p="required", +q="fn", +r="argv", +s="ref"; +const a="PartitionResult", +b="tree", +c="error", +d="endpoint", +e={[p]:false,"type":"String"}, +f={[p]:true,"default":false,"type":"Boolean"}, +g={[s]:"Endpoint"}, +h={[q]:"booleanEquals",[r]:[{[s]:"UseFIPS"},true]}, +i={[q]:"booleanEquals",[r]:[{[s]:"UseDualStack"},true]}, +j={}, +k={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsFIPS"]}]}, +l={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsDualStack"]}]}, +m=[g], +n=[h], +o=[i]; +const _data={version:"1.0",parameters:{Region:e,UseDualStack:f,UseFIPS:f,Endpoint:e},rules:[{conditions:[{[q]:"aws.partition",[r]:[{[s]:"Region"}],assign:a}],type:b,rules:[{conditions:[{[q]:"isSet",[r]:m},{[q]:"parseURL",[r]:m,assign:"url"}],type:b,rules:[{conditions:n,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:c},{type:b,rules:[{conditions:o,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:c},{endpoint:{url:g,properties:j,headers:j},type:d}]}]},{conditions:[h,i],type:b,rules:[{conditions:[k,l],type:b,rules:[{endpoint:{url:"https://opsworks-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:c}]},{conditions:n,type:b,rules:[{conditions:[k],type:b,rules:[{type:b,rules:[{endpoint:{url:"https://opsworks-fips.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:c}]},{conditions:o,type:b,rules:[{conditions:[l],type:b,rules:[{endpoint:{url:"https://opsworks.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"DualStack is enabled but this partition does not support DualStack",type:c}]},{endpoint:{url:"https://opsworks.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-opsworkscm/src/endpoint/ruleset.ts b/clients/client-opsworkscm/src/endpoint/ruleset.ts index 8ed3e592753c..6c77c3b9e8b1 100644 --- a/clients/client-opsworkscm/src/endpoint/ruleset.ts +++ b/clients/client-opsworkscm/src/endpoint/ruleset.ts @@ -6,26 +6,24 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; 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}]}]}; +const p="required", +q="fn", +r="argv", +s="ref"; +const a="PartitionResult", +b="tree", +c="error", +d="endpoint", +e={[p]:false,"type":"String"}, +f={[p]:true,"default":false,"type":"Boolean"}, +g={[s]:"Endpoint"}, +h={[q]:"booleanEquals",[r]:[{[s]:"UseFIPS"},true]}, +i={[q]:"booleanEquals",[r]:[{[s]:"UseDualStack"},true]}, +j={}, +k={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsFIPS"]}]}, +l={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsDualStack"]}]}, +m=[g], +n=[h], +o=[i]; +const _data={version:"1.0",parameters:{Region:e,UseDualStack:f,UseFIPS:f,Endpoint:e},rules:[{conditions:[{[q]:"aws.partition",[r]:[{[s]:"Region"}],assign:a}],type:b,rules:[{conditions:[{[q]:"isSet",[r]:m},{[q]:"parseURL",[r]:m,assign:"url"}],type:b,rules:[{conditions:n,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:c},{type:b,rules:[{conditions:o,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:c},{endpoint:{url:g,properties:j,headers:j},type:d}]}]},{conditions:[h,i],type:b,rules:[{conditions:[k,l],type:b,rules:[{endpoint:{url:"https://opsworks-cm-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:c}]},{conditions:n,type:b,rules:[{conditions:[k],type:b,rules:[{type:b,rules:[{endpoint:{url:"https://opsworks-cm-fips.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:c}]},{conditions:o,type:b,rules:[{conditions:[l],type:b,rules:[{endpoint:{url:"https://opsworks-cm.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"DualStack is enabled but this partition does not support DualStack",type:c}]},{endpoint:{url:"https://opsworks-cm.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-organizations/src/endpoint/ruleset.ts b/clients/client-organizations/src/endpoint/ruleset.ts index b922e009dc52..99c85879bc1d 100644 --- a/clients/client-organizations/src/endpoint/ruleset.ts +++ b/clients/client-organizations/src/endpoint/ruleset.ts @@ -6,54 +6,52 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; 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 K="type", +L="fn", +M="argv", +N="ref", +O="url", +P="properties", +Q="headers", +R="authSchemes", +S="name", +T="signingRegion", +U="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"}, +d="PartitionResult", +e="tree", +f="error", +g="endpoint", +h="stringEquals", +i="https://organizations-fips.{Region}.api.aws", +j="https://organizations-fips.us-east-1.amazonaws.com", +k="https://organizations.{Region}.api.aws", +l="https://organizations.us-gov-west-1.amazonaws.com", +m={"required":true,"default":false,[K]:"Boolean"}, +n={[N]:"Region"}, +o={[N]:"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]:{}}, +q={[L]:"getAttr",[M]:[{[N]:d},"name"]}, +r={[R]:[{[S]:"sigv4",[T]:"us-east-1",[U]:"organizations"}]}, +s={[f]:"FIPS and DualStack are enabled, but this partition does not support one or both",[K]:f}, +t={[f]:"FIPS is enabled but this partition does not support FIPS",[K]:f}, +u={[f]:"DualStack is enabled but this partition does not support DualStack",[K]:f}, +v={[O]:"https://organizations.us-east-1.amazonaws.com",[P]:r,[Q]:{}}, +w={[R]:[{[S]:"sigv4",[T]:"cn-northwest-1",[U]:"organizations"}]}, +x={[O]:"https://organizations.cn-northwest-1.amazonaws.com.cn",[P]:w,[Q]:{}}, +y={[R]:[{[S]:"sigv4",[T]:"us-gov-west-1",[U]:"organizations"}]}, +z={[g]:{[O]:l,[P]:y,[Q]:{}},[K]:g}, +A={[O]:l,[P]:y,[Q]:{}}, 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}]}]}]}; +C=[{[L]:"booleanEquals",[M]:[{[N]:"UseFIPS"},true]}], +D=[{[L]:"booleanEquals",[M]:[{[N]:"UseDualStack"},true]}], +E=[{[L]:"booleanEquals",[M]:[{[N]:"UseFIPS"},true]},{[L]:"booleanEquals",[M]:[{[N]:"UseDualStack"},true]}], +F=[{[L]:"booleanEquals",[M]:[true,{[L]:"getAttr",[M]:[{[N]:d},"supportsFIPS"]}]},{[L]:"booleanEquals",[M]:[true,{[L]:"getAttr",[M]:[{[N]:d},"supportsDualStack"]}]}], +G=[{[L]:"booleanEquals",[M]:[true,{[L]:"getAttr",[M]:[{[N]:d},"supportsFIPS"]}]}], +H=[{[L]:"booleanEquals",[M]:[true,{[L]:"getAttr",[M]:[{[N]:d},"supportsDualStack"]}]}], +I=[{[L]:h,[M]:[n,"aws-global"]}], +J=[{[L]:h,[M]:[n,"aws-us-gov-global"]}]; +const _data={version:"1.0",parameters:{Region:{required:a,[K]:c},UseDualStack:m,UseFIPS:m,Endpoint:{required:b,[K]:c}},rules:[{conditions:[{[L]:"aws.partition",[M]:[n],assign:d}],[K]:e,rules:[{conditions:[{[L]:"isSet",[M]:B},{[L]:"parseURL",[M]:B,assign:"url"}],[K]:e,rules:[{conditions:C,error:"Invalid Configuration: FIPS and custom endpoint are not supported",[K]:f},{[K]:e,rules:[{conditions:D,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",[K]:f},{endpoint:{[O]:o,[P]:p,[Q]:p},[K]:g}]}]},{conditions:[{[L]:h,[M]:[q,"aws"]}],[K]:e,rules:[{conditions:E,[K]:e,rules:[{conditions:F,[K]:e,rules:[{endpoint:{[O]:i,[P]:r,[Q]:p},[K]:g}]},s]},{conditions:C,[K]:e,rules:[{conditions:G,[K]:e,rules:[{endpoint:{[O]:j,[P]:r,[Q]:p},[K]:g}]},t]},{conditions:D,[K]:e,rules:[{conditions:H,[K]:e,rules:[{endpoint:{[O]:k,[P]:r,[Q]:p},[K]:g}]},u]},{endpoint:v,[K]:g}]},{conditions:[{[L]:h,[M]:[q,"aws-cn"]}],[K]:e,rules:[{conditions:E,[K]:e,rules:[{conditions:F,[K]:e,rules:[{endpoint:{[O]:"https://organizations-fips.{Region}.api.amazonwebservices.com.cn",[P]:w,[Q]:p},[K]:g}]},s]},{conditions:C,[K]:e,rules:[{conditions:G,[K]:e,rules:[{endpoint:{[O]:"https://organizations-fips.{Region}.amazonaws.com.cn",[P]:w,[Q]:p},[K]:g}]},t]},{conditions:D,[K]:e,rules:[{conditions:H,[K]:e,rules:[{endpoint:{[O]:"https://organizations.{Region}.api.amazonwebservices.com.cn",[P]:w,[Q]:p},[K]:g}]},u]},{endpoint:x,[K]:g}]},{conditions:[{[L]:h,[M]:[q,"aws-us-gov"]}],[K]:e,rules:[{conditions:E,[K]:e,rules:[{conditions:F,[K]:e,rules:[{endpoint:{[O]:i,[P]:y,[Q]:p},[K]:g}]},s]},{conditions:C,[K]:e,rules:[{conditions:G,[K]:e,rules:[z]},t]},{conditions:D,[K]:e,rules:[{conditions:H,[K]:e,rules:[{endpoint:{[O]:k,[P]:y,[Q]:p},[K]:g}]},u]},z]},{conditions:E,[K]:e,rules:[{conditions:F,[K]:e,rules:[{endpoint:{[O]:"https://organizations-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",[P]:p,[Q]:p},[K]:g}]},s]},{conditions:C,[K]:e,rules:[{conditions:G,[K]:e,rules:[{[K]:e,rules:[{conditions:I,endpoint:{[O]:j,[P]:p,[Q]:p},[K]:g},{conditions:J,endpoint:{[O]:l,[P]:p,[Q]:p},[K]:g},{endpoint:{[O]:"https://organizations-fips.{Region}.{PartitionResult#dnsSuffix}",[P]:p,[Q]:p},[K]:g}]}]},t]},{conditions:D,[K]:e,rules:[{conditions:H,[K]:e,rules:[{endpoint:{[O]:"https://organizations.{Region}.{PartitionResult#dualStackDnsSuffix}",[P]:p,[Q]:p},[K]:g}]},u]},{[K]:e,rules:[{conditions:I,endpoint:v,[K]:g},{conditions:[{[L]:h,[M]:[n,"aws-cn-global"]}],endpoint:x,[K]:g},{conditions:J,endpoint:A,[K]:g},{endpoint:{[O]:"https://organizations.{Region}.{PartitionResult#dnsSuffix}",[P]:p,[Q]:p},[K]:g}]}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-outposts/src/endpoint/ruleset.ts b/clients/client-outposts/src/endpoint/ruleset.ts index 948fcc968a0d..d965c7c868d5 100644 --- a/clients/client-outposts/src/endpoint/ruleset.ts +++ b/clients/client-outposts/src/endpoint/ruleset.ts @@ -6,26 +6,24 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; 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}]}]}; +const p="required", +q="fn", +r="argv", +s="ref"; +const a="PartitionResult", +b="tree", +c="error", +d="endpoint", +e={[p]:false,"type":"String"}, +f={[p]:true,"default":false,"type":"Boolean"}, +g={[s]:"Endpoint"}, +h={[q]:"booleanEquals",[r]:[{[s]:"UseFIPS"},true]}, +i={[q]:"booleanEquals",[r]:[{[s]:"UseDualStack"},true]}, +j={}, +k={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsFIPS"]}]}, +l={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsDualStack"]}]}, +m=[g], +n=[h], +o=[i]; +const _data={version:"1.0",parameters:{Region:e,UseDualStack:f,UseFIPS:f,Endpoint:e},rules:[{conditions:[{[q]:"aws.partition",[r]:[{[s]:"Region"}],assign:a}],type:b,rules:[{conditions:[{[q]:"isSet",[r]:m},{[q]:"parseURL",[r]:m,assign:"url"}],type:b,rules:[{conditions:n,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:c},{type:b,rules:[{conditions:o,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:c},{endpoint:{url:g,properties:j,headers:j},type:d}]}]},{conditions:[h,i],type:b,rules:[{conditions:[k,l],type:b,rules:[{endpoint:{url:"https://outposts-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:c}]},{conditions:n,type:b,rules:[{conditions:[k],type:b,rules:[{type:b,rules:[{endpoint:{url:"https://outposts-fips.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:c}]},{conditions:o,type:b,rules:[{conditions:[l],type:b,rules:[{endpoint:{url:"https://outposts.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"DualStack is enabled but this partition does not support DualStack",type:c}]},{endpoint:{url:"https://outposts.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-panorama/src/endpoint/ruleset.ts b/clients/client-panorama/src/endpoint/ruleset.ts index 9a2f01669a8a..45b095d6d780 100644 --- a/clients/client-panorama/src/endpoint/ruleset.ts +++ b/clients/client-panorama/src/endpoint/ruleset.ts @@ -6,26 +6,24 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; 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}]}]}; +const p="required", +q="fn", +r="argv", +s="ref"; +const a="PartitionResult", +b="tree", +c="error", +d="endpoint", +e={[p]:false,"type":"String"}, +f={[p]:true,"default":false,"type":"Boolean"}, +g={[s]:"Endpoint"}, +h={[q]:"booleanEquals",[r]:[{[s]:"UseFIPS"},true]}, +i={[q]:"booleanEquals",[r]:[{[s]:"UseDualStack"},true]}, +j={}, +k={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsFIPS"]}]}, +l={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsDualStack"]}]}, +m=[g], +n=[h], +o=[i]; +const _data={version:"1.0",parameters:{Region:e,UseDualStack:f,UseFIPS:f,Endpoint:e},rules:[{conditions:[{[q]:"aws.partition",[r]:[{[s]:"Region"}],assign:a}],type:b,rules:[{conditions:[{[q]:"isSet",[r]:m},{[q]:"parseURL",[r]:m,assign:"url"}],type:b,rules:[{conditions:n,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:c},{type:b,rules:[{conditions:o,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:c},{endpoint:{url:g,properties:j,headers:j},type:d}]}]},{conditions:[h,i],type:b,rules:[{conditions:[k,l],type:b,rules:[{endpoint:{url:"https://panorama-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:c}]},{conditions:n,type:b,rules:[{conditions:[k],type:b,rules:[{endpoint:{url:"https://panorama-fips.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]},{error:"FIPS is enabled but this partition does not support FIPS",type:c}]},{conditions:o,type:b,rules:[{conditions:[l],type:b,rules:[{endpoint:{url:"https://panorama.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"DualStack is enabled but this partition does not support DualStack",type:c}]},{endpoint:{url:"https://panorama.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-personalize-events/src/endpoint/ruleset.ts b/clients/client-personalize-events/src/endpoint/ruleset.ts index 94400f65fc40..cacb11829524 100644 --- a/clients/client-personalize-events/src/endpoint/ruleset.ts +++ b/clients/client-personalize-events/src/endpoint/ruleset.ts @@ -6,26 +6,24 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; 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}]}]}; +const p="required", +q="fn", +r="argv", +s="ref"; +const a="PartitionResult", +b="tree", +c="error", +d="endpoint", +e={[p]:false,"type":"String"}, +f={[p]:true,"default":false,"type":"Boolean"}, +g={[s]:"Endpoint"}, +h={[q]:"booleanEquals",[r]:[{[s]:"UseFIPS"},true]}, +i={[q]:"booleanEquals",[r]:[{[s]:"UseDualStack"},true]}, +j={}, +k={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsFIPS"]}]}, +l={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsDualStack"]}]}, +m=[g], +n=[h], +o=[i]; +const _data={version:"1.0",parameters:{Region:e,UseDualStack:f,UseFIPS:f,Endpoint:e},rules:[{conditions:[{[q]:"aws.partition",[r]:[{[s]:"Region"}],assign:a}],type:b,rules:[{conditions:[{[q]:"isSet",[r]:m},{[q]:"parseURL",[r]:m,assign:"url"}],type:b,rules:[{conditions:n,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:c},{type:b,rules:[{conditions:o,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:c},{endpoint:{url:g,properties:j,headers:j},type:d}]}]},{conditions:[h,i],type:b,rules:[{conditions:[k,l],type:b,rules:[{endpoint:{url:"https://personalize-events-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:c}]},{conditions:n,type:b,rules:[{conditions:[k],type:b,rules:[{endpoint:{url:"https://personalize-events-fips.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]},{error:"FIPS is enabled but this partition does not support FIPS",type:c}]},{conditions:o,type:b,rules:[{conditions:[l],type:b,rules:[{endpoint:{url:"https://personalize-events.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"DualStack is enabled but this partition does not support DualStack",type:c}]},{endpoint:{url:"https://personalize-events.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-personalize-runtime/src/endpoint/ruleset.ts b/clients/client-personalize-runtime/src/endpoint/ruleset.ts index 059d08fb24bd..3e434dc6b16d 100644 --- a/clients/client-personalize-runtime/src/endpoint/ruleset.ts +++ b/clients/client-personalize-runtime/src/endpoint/ruleset.ts @@ -6,26 +6,24 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; 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}]}]}; +const p="required", +q="fn", +r="argv", +s="ref"; +const a="PartitionResult", +b="tree", +c="error", +d="endpoint", +e={[p]:false,"type":"String"}, +f={[p]:true,"default":false,"type":"Boolean"}, +g={[s]:"Endpoint"}, +h={[q]:"booleanEquals",[r]:[{[s]:"UseFIPS"},true]}, +i={[q]:"booleanEquals",[r]:[{[s]:"UseDualStack"},true]}, +j={}, +k={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsFIPS"]}]}, +l={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsDualStack"]}]}, +m=[g], +n=[h], +o=[i]; +const _data={version:"1.0",parameters:{Region:e,UseDualStack:f,UseFIPS:f,Endpoint:e},rules:[{conditions:[{[q]:"aws.partition",[r]:[{[s]:"Region"}],assign:a}],type:b,rules:[{conditions:[{[q]:"isSet",[r]:m},{[q]:"parseURL",[r]:m,assign:"url"}],type:b,rules:[{conditions:n,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:c},{type:b,rules:[{conditions:o,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:c},{endpoint:{url:g,properties:j,headers:j},type:d}]}]},{conditions:[h,i],type:b,rules:[{conditions:[k,l],type:b,rules:[{endpoint:{url:"https://personalize-runtime-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:c}]},{conditions:n,type:b,rules:[{conditions:[k],type:b,rules:[{endpoint:{url:"https://personalize-runtime-fips.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]},{error:"FIPS is enabled but this partition does not support FIPS",type:c}]},{conditions:o,type:b,rules:[{conditions:[l],type:b,rules:[{endpoint:{url:"https://personalize-runtime.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"DualStack is enabled but this partition does not support DualStack",type:c}]},{endpoint:{url:"https://personalize-runtime.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-personalize/src/endpoint/ruleset.ts b/clients/client-personalize/src/endpoint/ruleset.ts index fb170bd08255..888b71003e59 100644 --- a/clients/client-personalize/src/endpoint/ruleset.ts +++ b/clients/client-personalize/src/endpoint/ruleset.ts @@ -6,26 +6,24 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; 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}]}]}; +const p="required", +q="fn", +r="argv", +s="ref"; +const a="PartitionResult", +b="tree", +c="error", +d="endpoint", +e={[p]:false,"type":"String"}, +f={[p]:true,"default":false,"type":"Boolean"}, +g={[s]:"Endpoint"}, +h={[q]:"booleanEquals",[r]:[{[s]:"UseFIPS"},true]}, +i={[q]:"booleanEquals",[r]:[{[s]:"UseDualStack"},true]}, +j={}, +k={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsFIPS"]}]}, +l={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsDualStack"]}]}, +m=[g], +n=[h], +o=[i]; +const _data={version:"1.0",parameters:{Region:e,UseDualStack:f,UseFIPS:f,Endpoint:e},rules:[{conditions:[{[q]:"aws.partition",[r]:[{[s]:"Region"}],assign:a}],type:b,rules:[{conditions:[{[q]:"isSet",[r]:m},{[q]:"parseURL",[r]:m,assign:"url"}],type:b,rules:[{conditions:n,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:c},{type:b,rules:[{conditions:o,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:c},{endpoint:{url:g,properties:j,headers:j},type:d}]}]},{conditions:[h,i],type:b,rules:[{conditions:[k,l],type:b,rules:[{endpoint:{url:"https://personalize-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:c}]},{conditions:n,type:b,rules:[{conditions:[k],type:b,rules:[{type:b,rules:[{endpoint:{url:"https://personalize-fips.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:c}]},{conditions:o,type:b,rules:[{conditions:[l],type:b,rules:[{endpoint:{url:"https://personalize.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"DualStack is enabled but this partition does not support DualStack",type:c}]},{endpoint:{url:"https://personalize.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-pi/src/endpoint/ruleset.ts b/clients/client-pi/src/endpoint/ruleset.ts index 09e3c366ec95..63b3ebb54530 100644 --- a/clients/client-pi/src/endpoint/ruleset.ts +++ b/clients/client-pi/src/endpoint/ruleset.ts @@ -6,26 +6,24 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; 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}]}]}; +const p="required", +q="fn", +r="argv", +s="ref"; +const a="PartitionResult", +b="tree", +c="error", +d="endpoint", +e={[p]:false,"type":"String"}, +f={[p]:true,"default":false,"type":"Boolean"}, +g={[s]:"Endpoint"}, +h={[q]:"booleanEquals",[r]:[{[s]:"UseFIPS"},true]}, +i={[q]:"booleanEquals",[r]:[{[s]:"UseDualStack"},true]}, +j={}, +k={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsFIPS"]}]}, +l={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsDualStack"]}]}, +m=[g], +n=[h], +o=[i]; +const _data={version:"1.0",parameters:{Region:e,UseDualStack:f,UseFIPS:f,Endpoint:e},rules:[{conditions:[{[q]:"aws.partition",[r]:[{[s]:"Region"}],assign:a}],type:b,rules:[{conditions:[{[q]:"isSet",[r]:m},{[q]:"parseURL",[r]:m,assign:"url"}],type:b,rules:[{conditions:n,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:c},{type:b,rules:[{conditions:o,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:c},{endpoint:{url:g,properties:j,headers:j},type:d}]}]},{conditions:[h,i],type:b,rules:[{conditions:[k,l],type:b,rules:[{endpoint:{url:"https://pi-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:c}]},{conditions:n,type:b,rules:[{conditions:[k],type:b,rules:[{type:b,rules:[{endpoint:{url:"https://pi-fips.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:c}]},{conditions:o,type:b,rules:[{conditions:[l],type:b,rules:[{endpoint:{url:"https://pi.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"DualStack is enabled but this partition does not support DualStack",type:c}]},{endpoint:{url:"https://pi.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-pinpoint-email/src/endpoint/ruleset.ts b/clients/client-pinpoint-email/src/endpoint/ruleset.ts index b3732809c537..650ce6e28f8a 100644 --- a/clients/client-pinpoint-email/src/endpoint/ruleset.ts +++ b/clients/client-pinpoint-email/src/endpoint/ruleset.ts @@ -6,26 +6,24 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; 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}]}]}; +const p="required", +q="fn", +r="argv", +s="ref"; +const a="PartitionResult", +b="tree", +c="error", +d="endpoint", +e={[p]:false,"type":"String"}, +f={[p]:true,"default":false,"type":"Boolean"}, +g={[s]:"Endpoint"}, +h={[q]:"booleanEquals",[r]:[{[s]:"UseFIPS"},true]}, +i={[q]:"booleanEquals",[r]:[{[s]:"UseDualStack"},true]}, +j={}, +k={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsFIPS"]}]}, +l={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsDualStack"]}]}, +m=[g], +n=[h], +o=[i]; +const _data={version:"1.0",parameters:{Region:e,UseDualStack:f,UseFIPS:f,Endpoint:e},rules:[{conditions:[{[q]:"aws.partition",[r]:[{[s]:"Region"}],assign:a}],type:b,rules:[{conditions:[{[q]:"isSet",[r]:m},{[q]:"parseURL",[r]:m,assign:"url"}],type:b,rules:[{conditions:n,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:c},{type:b,rules:[{conditions:o,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:c},{endpoint:{url:g,properties:j,headers:j},type:d}]}]},{conditions:[h,i],type:b,rules:[{conditions:[k,l],type:b,rules:[{endpoint:{url:"https://email-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:c}]},{conditions:n,type:b,rules:[{conditions:[k],type:b,rules:[{type:b,rules:[{endpoint:{url:"https://email-fips.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:c}]},{conditions:o,type:b,rules:[{conditions:[l],type:b,rules:[{endpoint:{url:"https://email.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"DualStack is enabled but this partition does not support DualStack",type:c}]},{endpoint:{url:"https://email.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]}; export const ruleSet: RuleSetObject = _data; 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 45aab50da563..ebe6a8163296 100644 --- a/clients/client-pinpoint-sms-voice-v2/src/endpoint/ruleset.ts +++ b/clients/client-pinpoint-sms-voice-v2/src/endpoint/ruleset.ts @@ -6,26 +6,24 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; 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}]}]}; +const p="required", +q="fn", +r="argv", +s="ref"; +const a="PartitionResult", +b="tree", +c="error", +d="endpoint", +e={[p]:false,"type":"String"}, +f={[p]:true,"default":false,"type":"Boolean"}, +g={[s]:"Endpoint"}, +h={[q]:"booleanEquals",[r]:[{[s]:"UseFIPS"},true]}, +i={[q]:"booleanEquals",[r]:[{[s]:"UseDualStack"},true]}, +j={}, +k={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsFIPS"]}]}, +l={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsDualStack"]}]}, +m=[g], +n=[h], +o=[i]; +const _data={version:"1.0",parameters:{Region:e,UseDualStack:f,UseFIPS:f,Endpoint:e},rules:[{conditions:[{[q]:"aws.partition",[r]:[{[s]:"Region"}],assign:a}],type:b,rules:[{conditions:[{[q]:"isSet",[r]:m},{[q]:"parseURL",[r]:m,assign:"url"}],type:b,rules:[{conditions:n,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:c},{type:b,rules:[{conditions:o,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:c},{endpoint:{url:g,properties:j,headers:j},type:d}]}]},{conditions:[h,i],type:b,rules:[{conditions:[k,l],type:b,rules:[{endpoint:{url:"https://sms-voice-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:c}]},{conditions:n,type:b,rules:[{conditions:[k],type:b,rules:[{type:b,rules:[{endpoint:{url:"https://sms-voice-fips.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:c}]},{conditions:o,type:b,rules:[{conditions:[l],type:b,rules:[{endpoint:{url:"https://sms-voice.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"DualStack is enabled but this partition does not support DualStack",type:c}]},{endpoint:{url:"https://sms-voice.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-pinpoint-sms-voice/src/endpoint/ruleset.ts b/clients/client-pinpoint-sms-voice/src/endpoint/ruleset.ts index 1a43cdd8e531..0602fb7860a1 100644 --- a/clients/client-pinpoint-sms-voice/src/endpoint/ruleset.ts +++ b/clients/client-pinpoint-sms-voice/src/endpoint/ruleset.ts @@ -6,26 +6,24 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; 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}]}]}; +const p="required", +q="fn", +r="argv", +s="ref"; +const a="PartitionResult", +b="tree", +c="error", +d="endpoint", +e={[p]:false,"type":"String"}, +f={[p]:true,"default":false,"type":"Boolean"}, +g={[s]:"Endpoint"}, +h={[q]:"booleanEquals",[r]:[{[s]:"UseFIPS"},true]}, +i={[q]:"booleanEquals",[r]:[{[s]:"UseDualStack"},true]}, +j={}, +k={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsFIPS"]}]}, +l={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsDualStack"]}]}, +m=[g], +n=[h], +o=[i]; +const _data={version:"1.0",parameters:{Region:e,UseDualStack:f,UseFIPS:f,Endpoint:e},rules:[{conditions:[{[q]:"aws.partition",[r]:[{[s]:"Region"}],assign:a}],type:b,rules:[{conditions:[{[q]:"isSet",[r]:m},{[q]:"parseURL",[r]:m,assign:"url"}],type:b,rules:[{conditions:n,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:c},{type:b,rules:[{conditions:o,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:c},{endpoint:{url:g,properties:j,headers:j},type:d}]}]},{conditions:[h,i],type:b,rules:[{conditions:[k,l],type:b,rules:[{endpoint:{url:"https://sms-voice.pinpoint-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:c}]},{conditions:n,type:b,rules:[{conditions:[k],type:b,rules:[{endpoint:{url:"https://sms-voice.pinpoint-fips.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]},{error:"FIPS is enabled but this partition does not support FIPS",type:c}]},{conditions:o,type:b,rules:[{conditions:[l],type:b,rules:[{endpoint:{url:"https://sms-voice.pinpoint.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"DualStack is enabled but this partition does not support DualStack",type:c}]},{endpoint:{url:"https://sms-voice.pinpoint.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-pinpoint/src/endpoint/ruleset.ts b/clients/client-pinpoint/src/endpoint/ruleset.ts index c894bd9aed73..08e20a9252b5 100644 --- a/clients/client-pinpoint/src/endpoint/ruleset.ts +++ b/clients/client-pinpoint/src/endpoint/ruleset.ts @@ -6,26 +6,24 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; 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}]}]}; +const p="required", +q="fn", +r="argv", +s="ref"; +const a="PartitionResult", +b="tree", +c="error", +d="endpoint", +e={[p]:false,"type":"String"}, +f={[p]:true,"default":false,"type":"Boolean"}, +g={[s]:"Endpoint"}, +h={[q]:"booleanEquals",[r]:[{[s]:"UseFIPS"},true]}, +i={[q]:"booleanEquals",[r]:[{[s]:"UseDualStack"},true]}, +j={}, +k={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsFIPS"]}]}, +l={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsDualStack"]}]}, +m=[g], +n=[h], +o=[i]; +const _data={version:"1.0",parameters:{Region:e,UseDualStack:f,UseFIPS:f,Endpoint:e},rules:[{conditions:[{[q]:"aws.partition",[r]:[{[s]:"Region"}],assign:a}],type:b,rules:[{conditions:[{[q]:"isSet",[r]:m},{[q]:"parseURL",[r]:m,assign:"url"}],type:b,rules:[{conditions:n,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:c},{type:b,rules:[{conditions:o,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:c},{endpoint:{url:g,properties:j,headers:j},type:d}]}]},{conditions:[h,i],type:b,rules:[{conditions:[k,l],type:b,rules:[{endpoint:{url:"https://pinpoint-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:c}]},{conditions:n,type:b,rules:[{conditions:[k],type:b,rules:[{type:b,rules:[{endpoint:{url:"https://pinpoint-fips.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:c}]},{conditions:o,type:b,rules:[{conditions:[l],type:b,rules:[{endpoint:{url:"https://pinpoint.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"DualStack is enabled but this partition does not support DualStack",type:c}]},{endpoint:{url:"https://pinpoint.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-pipes/src/endpoint/ruleset.ts b/clients/client-pipes/src/endpoint/ruleset.ts index b4dc37e2a5da..c1170614b7b3 100644 --- a/clients/client-pipes/src/endpoint/ruleset.ts +++ b/clients/client-pipes/src/endpoint/ruleset.ts @@ -6,26 +6,25 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; or see "smithy.rules#endpointRuleSet" in codegen/sdk-codegen/aws-models/pipes.json */ -const s="fn", -t="argv", -u="ref"; +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={[u]:"Endpoint"}, -j={[s]:"booleanEquals",[t]:[{[u]:"UseFIPS"},true]}, -k={[s]:"booleanEquals",[t]:[{[u]:"UseDualStack"},true]}, +d="PartitionResult", +e="tree", +f="error", +g="endpoint", +h={"required":true,"default":false,"type":"Boolean"}, +i={[t]:"Endpoint"}, +j={[r]:"booleanEquals",[s]:[{[t]:"UseFIPS"},true]}, +k={[r]:"booleanEquals",[s]:[{[t]:"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"]}]}, +m={[r]:"booleanEquals",[s]:[true,{[r]:"getAttr",[s]:[{[t]:d},"supportsFIPS"]}]}, +n={[r]:"booleanEquals",[s]:[true,{[r]:"getAttr",[s]:[{[t]:d},"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}]}]}; +q=[k]; +const _data={version:"1.0",parameters:{Region:{required:a,type:c},UseDualStack:h,UseFIPS:h,Endpoint:{required:b,type:c}},rules:[{conditions:[{[r]:"aws.partition",[s]:[{[t]:"Region"}],assign:d}],type:e,rules:[{conditions:[{[r]:"isSet",[s]:o},{[r]:"parseURL",[s]:o,assign:"url"}],type:e,rules:[{conditions:p,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:f},{type:e,rules:[{conditions:q,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:f},{endpoint:{url:i,properties:l,headers:l},type:g}]}]},{conditions:[j,k],type:e,rules:[{conditions:[m,n],type:e,rules:[{endpoint:{url:"https://pipes-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:g}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:f}]},{conditions:p,type:e,rules:[{conditions:[m],type:e,rules:[{endpoint:{url:"https://pipes-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:g}]},{error:"FIPS is enabled but this partition does not support FIPS",type:f}]},{conditions:q,type:e,rules:[{conditions:[n],type:e,rules:[{endpoint:{url:"https://pipes.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:g}]},{error:"DualStack is enabled but this partition does not support DualStack",type:f}]},{endpoint:{url:"https://pipes.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:g}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-polly/src/endpoint/ruleset.ts b/clients/client-polly/src/endpoint/ruleset.ts index 94c4e29eb321..c2357d4ee23b 100644 --- a/clients/client-polly/src/endpoint/ruleset.ts +++ b/clients/client-polly/src/endpoint/ruleset.ts @@ -6,26 +6,25 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; or see "smithy.rules#endpointRuleSet" in codegen/sdk-codegen/aws-models/polly.json */ -const s="fn", -t="argv", -u="ref"; +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={[u]:"Endpoint"}, -j={[s]:"booleanEquals",[t]:[{[u]:"UseFIPS"},true]}, -k={[s]:"booleanEquals",[t]:[{[u]:"UseDualStack"},true]}, +d="PartitionResult", +e="tree", +f="error", +g="endpoint", +h={"required":true,"default":false,"type":"Boolean"}, +i={[t]:"Endpoint"}, +j={[r]:"booleanEquals",[s]:[{[t]:"UseFIPS"},true]}, +k={[r]:"booleanEquals",[s]:[{[t]:"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"]}]}, +m={[r]:"booleanEquals",[s]:[true,{[r]:"getAttr",[s]:[{[t]:d},"supportsFIPS"]}]}, +n={[r]:"booleanEquals",[s]:[true,{[r]:"getAttr",[s]:[{[t]:d},"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}]}]}; +q=[k]; +const _data={version:"1.0",parameters:{Region:{required:a,type:c},UseDualStack:h,UseFIPS:h,Endpoint:{required:b,type:c}},rules:[{conditions:[{[r]:"aws.partition",[s]:[{[t]:"Region"}],assign:d}],type:e,rules:[{conditions:[{[r]:"isSet",[s]:o},{[r]:"parseURL",[s]:o,assign:"url"}],type:e,rules:[{conditions:p,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:f},{type:e,rules:[{conditions:q,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:f},{endpoint:{url:i,properties:l,headers:l},type:g}]}]},{conditions:[j,k],type:e,rules:[{conditions:[m,n],type:e,rules:[{endpoint:{url:"https://polly-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:g}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:f}]},{conditions:p,type:e,rules:[{conditions:[m],type:e,rules:[{type:e,rules:[{endpoint:{url:"https://polly-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:g}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:f}]},{conditions:q,type:e,rules:[{conditions:[n],type:e,rules:[{endpoint:{url:"https://polly.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:g}]},{error:"DualStack is enabled but this partition does not support DualStack",type:f}]},{endpoint:{url:"https://polly.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:g}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-pricing/src/endpoint/ruleset.ts b/clients/client-pricing/src/endpoint/ruleset.ts index 12c21db359a2..29774f3150a9 100644 --- a/clients/client-pricing/src/endpoint/ruleset.ts +++ b/clients/client-pricing/src/endpoint/ruleset.ts @@ -6,26 +6,24 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; 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}]}]}; +const p="required", +q="fn", +r="argv", +s="ref"; +const a="PartitionResult", +b="tree", +c="error", +d="endpoint", +e={[p]:false,"type":"String"}, +f={[p]:true,"default":false,"type":"Boolean"}, +g={[s]:"Endpoint"}, +h={[q]:"booleanEquals",[r]:[{[s]:"UseFIPS"},true]}, +i={[q]:"booleanEquals",[r]:[{[s]:"UseDualStack"},true]}, +j={}, +k={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsFIPS"]}]}, +l={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsDualStack"]}]}, +m=[g], +n=[h], +o=[i]; +const _data={version:"1.0",parameters:{Region:e,UseDualStack:f,UseFIPS:f,Endpoint:e},rules:[{conditions:[{[q]:"aws.partition",[r]:[{[s]:"Region"}],assign:a}],type:b,rules:[{conditions:[{[q]:"isSet",[r]:m},{[q]:"parseURL",[r]:m,assign:"url"}],type:b,rules:[{conditions:n,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:c},{type:b,rules:[{conditions:o,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:c},{endpoint:{url:g,properties:j,headers:j},type:d}]}]},{conditions:[h,i],type:b,rules:[{conditions:[k,l],type:b,rules:[{endpoint:{url:"https://api.pricing-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:c}]},{conditions:n,type:b,rules:[{conditions:[k],type:b,rules:[{type:b,rules:[{endpoint:{url:"https://api.pricing-fips.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:c}]},{conditions:o,type:b,rules:[{conditions:[l],type:b,rules:[{endpoint:{url:"https://api.pricing.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"DualStack is enabled but this partition does not support DualStack",type:c}]},{endpoint:{url:"https://api.pricing.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-privatenetworks/src/endpoint/ruleset.ts b/clients/client-privatenetworks/src/endpoint/ruleset.ts index 510493cb7f4a..fe2f0c46bf9c 100644 --- a/clients/client-privatenetworks/src/endpoint/ruleset.ts +++ b/clients/client-privatenetworks/src/endpoint/ruleset.ts @@ -6,26 +6,24 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; 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}]}]}; +const p="required", +q="fn", +r="argv", +s="ref"; +const a="PartitionResult", +b="tree", +c="error", +d="endpoint", +e={[p]:false,"type":"String"}, +f={[p]:true,"default":false,"type":"Boolean"}, +g={[s]:"Endpoint"}, +h={[q]:"booleanEquals",[r]:[{[s]:"UseFIPS"},true]}, +i={[q]:"booleanEquals",[r]:[{[s]:"UseDualStack"},true]}, +j={}, +k={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsFIPS"]}]}, +l={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsDualStack"]}]}, +m=[g], +n=[h], +o=[i]; +const _data={version:"1.0",parameters:{Region:e,UseDualStack:f,UseFIPS:f,Endpoint:e},rules:[{conditions:[{[q]:"aws.partition",[r]:[{[s]:"Region"}],assign:a}],type:b,rules:[{conditions:[{[q]:"isSet",[r]:m},{[q]:"parseURL",[r]:m,assign:"url"}],type:b,rules:[{conditions:n,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:c},{type:b,rules:[{conditions:o,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:c},{endpoint:{url:g,properties:j,headers:j},type:d}]}]},{conditions:[h,i],type:b,rules:[{conditions:[k,l],type:b,rules:[{endpoint:{url:"https://private-networks-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:c}]},{conditions:n,type:b,rules:[{conditions:[k],type:b,rules:[{endpoint:{url:"https://private-networks-fips.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]},{error:"FIPS is enabled but this partition does not support FIPS",type:c}]},{conditions:o,type:b,rules:[{conditions:[l],type:b,rules:[{endpoint:{url:"https://private-networks.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"DualStack is enabled but this partition does not support DualStack",type:c}]},{endpoint:{url:"https://private-networks.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-proton/src/endpoint/ruleset.ts b/clients/client-proton/src/endpoint/ruleset.ts index 4b534ec8de4b..52f65f8fb73c 100644 --- a/clients/client-proton/src/endpoint/ruleset.ts +++ b/clients/client-proton/src/endpoint/ruleset.ts @@ -6,26 +6,25 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; or see "smithy.rules#endpointRuleSet" in codegen/sdk-codegen/aws-models/proton.json */ -const s="fn", -t="argv", -u="ref"; +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={[u]:"Endpoint"}, -j={[s]:"booleanEquals",[t]:[{[u]:"UseFIPS"},true]}, -k={[s]:"booleanEquals",[t]:[{[u]:"UseDualStack"},true]}, +d="PartitionResult", +e="tree", +f="error", +g="endpoint", +h={"required":true,"default":false,"type":"Boolean"}, +i={[t]:"Endpoint"}, +j={[r]:"booleanEquals",[s]:[{[t]:"UseFIPS"},true]}, +k={[r]:"booleanEquals",[s]:[{[t]:"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"]}]}, +m={[r]:"booleanEquals",[s]:[true,{[r]:"getAttr",[s]:[{[t]:d},"supportsFIPS"]}]}, +n={[r]:"booleanEquals",[s]:[true,{[r]:"getAttr",[s]:[{[t]:d},"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}]}]}; +q=[k]; +const _data={version:"1.0",parameters:{Region:{required:a,type:c},UseDualStack:h,UseFIPS:h,Endpoint:{required:b,type:c}},rules:[{conditions:[{[r]:"aws.partition",[s]:[{[t]:"Region"}],assign:d}],type:e,rules:[{conditions:[{[r]:"isSet",[s]:o},{[r]:"parseURL",[s]:o,assign:"url"}],type:e,rules:[{conditions:p,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:f},{type:e,rules:[{conditions:q,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:f},{endpoint:{url:i,properties:l,headers:l},type:g}]}]},{conditions:[j,k],type:e,rules:[{conditions:[m,n],type:e,rules:[{endpoint:{url:"https://proton-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:g}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:f}]},{conditions:p,type:e,rules:[{conditions:[m],type:e,rules:[{type:e,rules:[{endpoint:{url:"https://proton-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:g}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:f}]},{conditions:q,type:e,rules:[{conditions:[n],type:e,rules:[{endpoint:{url:"https://proton.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:g}]},{error:"DualStack is enabled but this partition does not support DualStack",type:f}]},{endpoint:{url:"https://proton.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:g}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-qldb-session/src/endpoint/ruleset.ts b/clients/client-qldb-session/src/endpoint/ruleset.ts index 8c41588e795e..41a5f90ba455 100644 --- a/clients/client-qldb-session/src/endpoint/ruleset.ts +++ b/clients/client-qldb-session/src/endpoint/ruleset.ts @@ -6,26 +6,24 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; 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}]}]}; +const p="required", +q="fn", +r="argv", +s="ref"; +const a="PartitionResult", +b="tree", +c="error", +d="endpoint", +e={[p]:false,"type":"String"}, +f={[p]:true,"default":false,"type":"Boolean"}, +g={[s]:"Endpoint"}, +h={[q]:"booleanEquals",[r]:[{[s]:"UseFIPS"},true]}, +i={[q]:"booleanEquals",[r]:[{[s]:"UseDualStack"},true]}, +j={}, +k={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsFIPS"]}]}, +l={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsDualStack"]}]}, +m=[g], +n=[h], +o=[i]; +const _data={version:"1.0",parameters:{Region:e,UseDualStack:f,UseFIPS:f,Endpoint:e},rules:[{conditions:[{[q]:"aws.partition",[r]:[{[s]:"Region"}],assign:a}],type:b,rules:[{conditions:[{[q]:"isSet",[r]:m},{[q]:"parseURL",[r]:m,assign:"url"}],type:b,rules:[{conditions:n,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:c},{type:b,rules:[{conditions:o,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:c},{endpoint:{url:g,properties:j,headers:j},type:d}]}]},{conditions:[h,i],type:b,rules:[{conditions:[k,l],type:b,rules:[{endpoint:{url:"https://session.qldb-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:c}]},{conditions:n,type:b,rules:[{conditions:[k],type:b,rules:[{type:b,rules:[{endpoint:{url:"https://session.qldb-fips.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:c}]},{conditions:o,type:b,rules:[{conditions:[l],type:b,rules:[{endpoint:{url:"https://session.qldb.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"DualStack is enabled but this partition does not support DualStack",type:c}]},{endpoint:{url:"https://session.qldb.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-qldb/src/endpoint/ruleset.ts b/clients/client-qldb/src/endpoint/ruleset.ts index 81f02c831b30..97f599edd96a 100644 --- a/clients/client-qldb/src/endpoint/ruleset.ts +++ b/clients/client-qldb/src/endpoint/ruleset.ts @@ -6,26 +6,24 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; 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}]}]}; +const p="required", +q="fn", +r="argv", +s="ref"; +const a="PartitionResult", +b="tree", +c="error", +d="endpoint", +e={[p]:false,"type":"String"}, +f={[p]:true,"default":false,"type":"Boolean"}, +g={[s]:"Endpoint"}, +h={[q]:"booleanEquals",[r]:[{[s]:"UseFIPS"},true]}, +i={[q]:"booleanEquals",[r]:[{[s]:"UseDualStack"},true]}, +j={}, +k={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsFIPS"]}]}, +l={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsDualStack"]}]}, +m=[g], +n=[h], +o=[i]; +const _data={version:"1.0",parameters:{Region:e,UseDualStack:f,UseFIPS:f,Endpoint:e},rules:[{conditions:[{[q]:"aws.partition",[r]:[{[s]:"Region"}],assign:a}],type:b,rules:[{conditions:[{[q]:"isSet",[r]:m},{[q]:"parseURL",[r]:m,assign:"url"}],type:b,rules:[{conditions:n,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:c},{type:b,rules:[{conditions:o,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:c},{endpoint:{url:g,properties:j,headers:j},type:d}]}]},{conditions:[h,i],type:b,rules:[{conditions:[k,l],type:b,rules:[{endpoint:{url:"https://qldb-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:c}]},{conditions:n,type:b,rules:[{conditions:[k],type:b,rules:[{type:b,rules:[{endpoint:{url:"https://qldb-fips.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:c}]},{conditions:o,type:b,rules:[{conditions:[l],type:b,rules:[{endpoint:{url:"https://qldb.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"DualStack is enabled but this partition does not support DualStack",type:c}]},{endpoint:{url:"https://qldb.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-quicksight/src/endpoint/ruleset.ts b/clients/client-quicksight/src/endpoint/ruleset.ts index 464edd7cd6d6..7425a0baddc5 100644 --- a/clients/client-quicksight/src/endpoint/ruleset.ts +++ b/clients/client-quicksight/src/endpoint/ruleset.ts @@ -6,26 +6,25 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; or see "smithy.rules#endpointRuleSet" in codegen/sdk-codegen/aws-models/quicksight.json */ -const s="fn", -t="argv", -u="ref"; +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={[u]:"Endpoint"}, -j={[s]:"booleanEquals",[t]:[{[u]:"UseFIPS"},true]}, -k={[s]:"booleanEquals",[t]:[{[u]:"UseDualStack"},true]}, +d="PartitionResult", +e="tree", +f="error", +g="endpoint", +h={"required":true,"default":false,"type":"Boolean"}, +i={[t]:"Endpoint"}, +j={[r]:"booleanEquals",[s]:[{[t]:"UseFIPS"},true]}, +k={[r]:"booleanEquals",[s]:[{[t]:"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"]}]}, +m={[r]:"booleanEquals",[s]:[true,{[r]:"getAttr",[s]:[{[t]:d},"supportsFIPS"]}]}, +n={[r]:"booleanEquals",[s]:[true,{[r]:"getAttr",[s]:[{[t]:d},"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}]}]}; +q=[k]; +const _data={version:"1.0",parameters:{Region:{required:a,type:c},UseDualStack:h,UseFIPS:h,Endpoint:{required:b,type:c}},rules:[{conditions:[{[r]:"aws.partition",[s]:[{[t]:"Region"}],assign:d}],type:e,rules:[{conditions:[{[r]:"isSet",[s]:o},{[r]:"parseURL",[s]:o,assign:"url"}],type:e,rules:[{conditions:p,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:f},{type:e,rules:[{conditions:q,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:f},{endpoint:{url:i,properties:l,headers:l},type:g}]}]},{conditions:[j,k],type:e,rules:[{conditions:[m,n],type:e,rules:[{endpoint:{url:"https://quicksight-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:g}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:f}]},{conditions:p,type:e,rules:[{conditions:[m],type:e,rules:[{type:e,rules:[{endpoint:{url:"https://quicksight-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:g}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:f}]},{conditions:q,type:e,rules:[{conditions:[n],type:e,rules:[{endpoint:{url:"https://quicksight.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:g}]},{error:"DualStack is enabled but this partition does not support DualStack",type:f}]},{endpoint:{url:"https://quicksight.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:g}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-ram/src/endpoint/ruleset.ts b/clients/client-ram/src/endpoint/ruleset.ts index 73ec9172b1db..45e094d76246 100644 --- a/clients/client-ram/src/endpoint/ruleset.ts +++ b/clients/client-ram/src/endpoint/ruleset.ts @@ -6,26 +6,24 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; 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}]}]}; +const p="required", +q="fn", +r="argv", +s="ref"; +const a="PartitionResult", +b="tree", +c="error", +d="endpoint", +e={[p]:false,"type":"String"}, +f={[p]:true,"default":false,"type":"Boolean"}, +g={[s]:"Endpoint"}, +h={[q]:"booleanEquals",[r]:[{[s]:"UseFIPS"},true]}, +i={[q]:"booleanEquals",[r]:[{[s]:"UseDualStack"},true]}, +j={}, +k={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsFIPS"]}]}, +l={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsDualStack"]}]}, +m=[g], +n=[h], +o=[i]; +const _data={version:"1.0",parameters:{Region:e,UseDualStack:f,UseFIPS:f,Endpoint:e},rules:[{conditions:[{[q]:"aws.partition",[r]:[{[s]:"Region"}],assign:a}],type:b,rules:[{conditions:[{[q]:"isSet",[r]:m},{[q]:"parseURL",[r]:m,assign:"url"}],type:b,rules:[{conditions:n,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:c},{type:b,rules:[{conditions:o,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:c},{endpoint:{url:g,properties:j,headers:j},type:d}]}]},{conditions:[h,i],type:b,rules:[{conditions:[k,l],type:b,rules:[{endpoint:{url:"https://ram-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:c}]},{conditions:n,type:b,rules:[{conditions:[k],type:b,rules:[{type:b,rules:[{endpoint:{url:"https://ram-fips.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:c}]},{conditions:o,type:b,rules:[{conditions:[l],type:b,rules:[{endpoint:{url:"https://ram.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"DualStack is enabled but this partition does not support DualStack",type:c}]},{endpoint:{url:"https://ram.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-rbin/src/endpoint/ruleset.ts b/clients/client-rbin/src/endpoint/ruleset.ts index 178809e781da..63aaa3e433d4 100644 --- a/clients/client-rbin/src/endpoint/ruleset.ts +++ b/clients/client-rbin/src/endpoint/ruleset.ts @@ -6,26 +6,25 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; or see "smithy.rules#endpointRuleSet" in codegen/sdk-codegen/aws-models/rbin.json */ -const s="fn", -t="argv", -u="ref"; +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={[u]:"Endpoint"}, -j={[s]:"booleanEquals",[t]:[{[u]:"UseFIPS"},true]}, -k={[s]:"booleanEquals",[t]:[{[u]:"UseDualStack"},true]}, +d="PartitionResult", +e="tree", +f="error", +g="endpoint", +h={"required":true,"default":false,"type":"Boolean"}, +i={[t]:"Endpoint"}, +j={[r]:"booleanEquals",[s]:[{[t]:"UseFIPS"},true]}, +k={[r]:"booleanEquals",[s]:[{[t]:"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"]}]}, +m={[r]:"booleanEquals",[s]:[true,{[r]:"getAttr",[s]:[{[t]:d},"supportsFIPS"]}]}, +n={[r]:"booleanEquals",[s]:[true,{[r]:"getAttr",[s]:[{[t]:d},"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}]}]}; +q=[k]; +const _data={version:"1.0",parameters:{Region:{required:a,type:c},UseDualStack:h,UseFIPS:h,Endpoint:{required:b,type:c}},rules:[{conditions:[{[r]:"aws.partition",[s]:[{[t]:"Region"}],assign:d}],type:e,rules:[{conditions:[{[r]:"isSet",[s]:o},{[r]:"parseURL",[s]:o,assign:"url"}],type:e,rules:[{conditions:p,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:f},{type:e,rules:[{conditions:q,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:f},{endpoint:{url:i,properties:l,headers:l},type:g}]}]},{conditions:[j,k],type:e,rules:[{conditions:[m,n],type:e,rules:[{endpoint:{url:"https://rbin-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:g}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:f}]},{conditions:p,type:e,rules:[{conditions:[m],type:e,rules:[{type:e,rules:[{endpoint:{url:"https://rbin-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:g}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:f}]},{conditions:q,type:e,rules:[{conditions:[n],type:e,rules:[{endpoint:{url:"https://rbin.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:g}]},{error:"DualStack is enabled but this partition does not support DualStack",type:f}]},{endpoint:{url:"https://rbin.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:g}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-rds-data/src/endpoint/ruleset.ts b/clients/client-rds-data/src/endpoint/ruleset.ts index 409738600338..773fc0a87618 100644 --- a/clients/client-rds-data/src/endpoint/ruleset.ts +++ b/clients/client-rds-data/src/endpoint/ruleset.ts @@ -6,26 +6,24 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; 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}]}]}; +const p="required", +q="fn", +r="argv", +s="ref"; +const a="PartitionResult", +b="tree", +c="error", +d="endpoint", +e={[p]:false,"type":"String"}, +f={[p]:true,"default":false,"type":"Boolean"}, +g={[s]:"Endpoint"}, +h={[q]:"booleanEquals",[r]:[{[s]:"UseFIPS"},true]}, +i={[q]:"booleanEquals",[r]:[{[s]:"UseDualStack"},true]}, +j={}, +k={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsFIPS"]}]}, +l={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsDualStack"]}]}, +m=[g], +n=[h], +o=[i]; +const _data={version:"1.0",parameters:{Region:e,UseDualStack:f,UseFIPS:f,Endpoint:e},rules:[{conditions:[{[q]:"aws.partition",[r]:[{[s]:"Region"}],assign:a}],type:b,rules:[{conditions:[{[q]:"isSet",[r]:m},{[q]:"parseURL",[r]:m,assign:"url"}],type:b,rules:[{conditions:n,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:c},{type:b,rules:[{conditions:o,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:c},{endpoint:{url:g,properties:j,headers:j},type:d}]}]},{conditions:[h,i],type:b,rules:[{conditions:[k,l],type:b,rules:[{endpoint:{url:"https://rds-data-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:c}]},{conditions:n,type:b,rules:[{conditions:[k],type:b,rules:[{endpoint:{url:"https://rds-data-fips.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]},{error:"FIPS is enabled but this partition does not support FIPS",type:c}]},{conditions:o,type:b,rules:[{conditions:[l],type:b,rules:[{endpoint:{url:"https://rds-data.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"DualStack is enabled but this partition does not support DualStack",type:c}]},{endpoint:{url:"https://rds-data.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-rds/src/endpoint/ruleset.ts b/clients/client-rds/src/endpoint/ruleset.ts index 8c1087e04ac6..cb7f2f0a296d 100644 --- a/clients/client-rds/src/endpoint/ruleset.ts +++ b/clients/client-rds/src/endpoint/ruleset.ts @@ -6,30 +6,29 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; or see "smithy.rules#endpointRuleSet" in codegen/sdk-codegen/aws-models/rds.json */ -const w="fn", -x="argv", -y="ref"; +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="stringEquals", -k={[y]:"Region"}, -l={[y]:"Endpoint"}, -m={[w]:"booleanEquals",[x]:[{[y]:"UseFIPS"},true]}, -n={[w]:"booleanEquals",[x]:[{[y]:"UseDualStack"},true]}, +d="PartitionResult", +e="tree", +f="error", +g="endpoint", +h="getAttr", +i="stringEquals", +j={"required":true,"default":false,"type":"Boolean"}, +k={[x]:"Region"}, +l={[x]:"Endpoint"}, +m={[v]:"booleanEquals",[w]:[{[x]:"UseFIPS"},true]}, +n={[v]:"booleanEquals",[w]:[{[x]:"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"]}]}, +p={[v]:"booleanEquals",[w]:[true,{[v]:h,[w]:[{[x]:d},"supportsFIPS"]}]}, +q={[x]:d}, +r={[v]:"booleanEquals",[w]:[true,{[v]:h,[w]:[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}]}]}; +u=[n]; +const _data={version:"1.0",parameters:{Region:{required:a,type:c},UseDualStack:j,UseFIPS:j,Endpoint:{required:b,type:c}},rules:[{conditions:[{[v]:"aws.partition",[w]:[k],assign:d}],type:e,rules:[{conditions:[{[v]:"isSet",[w]:[l]}],type:e,rules:[{conditions:t,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:f},{type:e,rules:[{conditions:u,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:f},{endpoint:{url:l,properties:o,headers:o},type:g}]}]},{conditions:[m,n],type:e,rules:[{conditions:[p,r],type:e,rules:[{endpoint:{url:"https://rds-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:o,headers:o},type:g}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:f}]},{conditions:t,type:e,rules:[{conditions:[p],type:e,rules:[{type:e,rules:[{conditions:[{[v]:i,[w]:[k,"rds.ca-central-1"]}],endpoint:{url:"https://rds-fips.ca-central-1.amazonaws.com",properties:o,headers:o},type:g},{conditions:[{[v]:i,[w]:[k,"rds.us-east-1"]}],endpoint:{url:"https://rds-fips.us-east-1.amazonaws.com",properties:o,headers:o},type:g},{conditions:[{[v]:i,[w]:[k,"rds.us-east-2"]}],endpoint:{url:"https://rds-fips.us-east-2.amazonaws.com",properties:o,headers:o},type:g},{conditions:[{[v]:i,[w]:[k,"rds.us-west-1"]}],endpoint:{url:"https://rds-fips.us-west-1.amazonaws.com",properties:o,headers:o},type:g},{conditions:[{[v]:i,[w]:[k,"rds.us-west-2"]}],endpoint:{url:"https://rds-fips.us-west-2.amazonaws.com",properties:o,headers:o},type:g},{conditions:[{[v]:i,[w]:["aws-us-gov",{[v]:h,[w]:[q,"name"]}]}],endpoint:s,type:g},{endpoint:{url:"https://rds-fips.{Region}.{PartitionResult#dnsSuffix}",properties:o,headers:o},type:g}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:f}]},{conditions:u,type:e,rules:[{conditions:[r],type:e,rules:[{endpoint:{url:"https://rds.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:o,headers:o},type:g}]},{error:"DualStack is enabled but this partition does not support DualStack",type:f}]},{endpoint:s,type:g}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-redshift-data/src/endpoint/ruleset.ts b/clients/client-redshift-data/src/endpoint/ruleset.ts index d169594e08e3..8b7e8f114d24 100644 --- a/clients/client-redshift-data/src/endpoint/ruleset.ts +++ b/clients/client-redshift-data/src/endpoint/ruleset.ts @@ -6,26 +6,24 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; 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}]}]}; +const p="required", +q="fn", +r="argv", +s="ref"; +const a="PartitionResult", +b="tree", +c="error", +d="endpoint", +e={[p]:false,"type":"String"}, +f={[p]:true,"default":false,"type":"Boolean"}, +g={[s]:"Endpoint"}, +h={[q]:"booleanEquals",[r]:[{[s]:"UseFIPS"},true]}, +i={[q]:"booleanEquals",[r]:[{[s]:"UseDualStack"},true]}, +j={}, +k={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsFIPS"]}]}, +l={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsDualStack"]}]}, +m=[g], +n=[h], +o=[i]; +const _data={version:"1.0",parameters:{Region:e,UseDualStack:f,UseFIPS:f,Endpoint:e},rules:[{conditions:[{[q]:"aws.partition",[r]:[{[s]:"Region"}],assign:a}],type:b,rules:[{conditions:[{[q]:"isSet",[r]:m},{[q]:"parseURL",[r]:m,assign:"url"}],type:b,rules:[{conditions:n,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:c},{type:b,rules:[{conditions:o,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:c},{endpoint:{url:g,properties:j,headers:j},type:d}]}]},{conditions:[h,i],type:b,rules:[{conditions:[k,l],type:b,rules:[{endpoint:{url:"https://redshift-data-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:c}]},{conditions:n,type:b,rules:[{conditions:[k],type:b,rules:[{endpoint:{url:"https://redshift-data-fips.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]},{error:"FIPS is enabled but this partition does not support FIPS",type:c}]},{conditions:o,type:b,rules:[{conditions:[l],type:b,rules:[{endpoint:{url:"https://redshift-data.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"DualStack is enabled but this partition does not support DualStack",type:c}]},{endpoint:{url:"https://redshift-data.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-redshift-serverless/src/endpoint/ruleset.ts b/clients/client-redshift-serverless/src/endpoint/ruleset.ts index 24af806c34f3..8956e05d9494 100644 --- a/clients/client-redshift-serverless/src/endpoint/ruleset.ts +++ b/clients/client-redshift-serverless/src/endpoint/ruleset.ts @@ -6,26 +6,24 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; 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}]}]}; +const p="required", +q="fn", +r="argv", +s="ref"; +const a="PartitionResult", +b="tree", +c="error", +d="endpoint", +e={[p]:false,"type":"String"}, +f={[p]:true,"default":false,"type":"Boolean"}, +g={[s]:"Endpoint"}, +h={[q]:"booleanEquals",[r]:[{[s]:"UseFIPS"},true]}, +i={[q]:"booleanEquals",[r]:[{[s]:"UseDualStack"},true]}, +j={}, +k={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsFIPS"]}]}, +l={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsDualStack"]}]}, +m=[g], +n=[h], +o=[i]; +const _data={version:"1.0",parameters:{Region:e,UseDualStack:f,UseFIPS:f,Endpoint:e},rules:[{conditions:[{[q]:"aws.partition",[r]:[{[s]:"Region"}],assign:a}],type:b,rules:[{conditions:[{[q]:"isSet",[r]:m},{[q]:"parseURL",[r]:m,assign:"url"}],type:b,rules:[{conditions:n,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:c},{type:b,rules:[{conditions:o,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:c},{endpoint:{url:g,properties:j,headers:j},type:d}]}]},{conditions:[h,i],type:b,rules:[{conditions:[k,l],type:b,rules:[{endpoint:{url:"https://redshift-serverless-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:c}]},{conditions:n,type:b,rules:[{conditions:[k],type:b,rules:[{type:b,rules:[{endpoint:{url:"https://redshift-serverless-fips.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:c}]},{conditions:o,type:b,rules:[{conditions:[l],type:b,rules:[{endpoint:{url:"https://redshift-serverless.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"DualStack is enabled but this partition does not support DualStack",type:c}]},{endpoint:{url:"https://redshift-serverless.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-redshift/src/endpoint/ruleset.ts b/clients/client-redshift/src/endpoint/ruleset.ts index 10a37f4fb5b8..c1c2abb54282 100644 --- a/clients/client-redshift/src/endpoint/ruleset.ts +++ b/clients/client-redshift/src/endpoint/ruleset.ts @@ -6,26 +6,24 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; 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}]}]}; +const p="required", +q="fn", +r="argv", +s="ref"; +const a="PartitionResult", +b="tree", +c="error", +d="endpoint", +e={[p]:false,"type":"String"}, +f={[p]:true,"default":false,"type":"Boolean"}, +g={[s]:"Endpoint"}, +h={[q]:"booleanEquals",[r]:[{[s]:"UseFIPS"},true]}, +i={[q]:"booleanEquals",[r]:[{[s]:"UseDualStack"},true]}, +j={}, +k={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsFIPS"]}]}, +l={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsDualStack"]}]}, +m=[g], +n=[h], +o=[i]; +const _data={version:"1.0",parameters:{Region:e,UseDualStack:f,UseFIPS:f,Endpoint:e},rules:[{conditions:[{[q]:"aws.partition",[r]:[{[s]:"Region"}],assign:a}],type:b,rules:[{conditions:[{[q]:"isSet",[r]:m},{[q]:"parseURL",[r]:m,assign:"url"}],type:b,rules:[{conditions:n,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:c},{type:b,rules:[{conditions:o,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:c},{endpoint:{url:g,properties:j,headers:j},type:d}]}]},{conditions:[h,i],type:b,rules:[{conditions:[k,l],type:b,rules:[{endpoint:{url:"https://redshift-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:c}]},{conditions:n,type:b,rules:[{conditions:[k],type:b,rules:[{type:b,rules:[{endpoint:{url:"https://redshift-fips.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:c}]},{conditions:o,type:b,rules:[{conditions:[l],type:b,rules:[{endpoint:{url:"https://redshift.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"DualStack is enabled but this partition does not support DualStack",type:c}]},{endpoint:{url:"https://redshift.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-rekognition/src/endpoint/ruleset.ts b/clients/client-rekognition/src/endpoint/ruleset.ts index 7324e8512a5a..f4ecb110d104 100644 --- a/clients/client-rekognition/src/endpoint/ruleset.ts +++ b/clients/client-rekognition/src/endpoint/ruleset.ts @@ -6,27 +6,26 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; or see "smithy.rules#endpointRuleSet" in codegen/sdk-codegen/aws-models/rekognition.json */ -const t="fn", -u="argv", -v="ref"; +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="stringEquals", -j={[v]:"Region"}, -k={[v]:"Endpoint"}, -l={[t]:"booleanEquals",[u]:[{[v]:"UseFIPS"},true]}, -m={[t]:"booleanEquals",[u]:[{[v]:"UseDualStack"},true]}, +d="PartitionResult", +e="tree", +f="error", +g="endpoint", +h="stringEquals", +i={"required":true,"default":false,"type":"Boolean"}, +j={[u]:"Region"}, +k={[u]:"Endpoint"}, +l={[s]:"booleanEquals",[t]:[{[u]:"UseFIPS"},true]}, +m={[s]:"booleanEquals",[t]:[{[u]:"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"]}]}, +o={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:d},"supportsFIPS"]}]}, +p={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:d},"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}]}]}; +r=[m]; +const _data={version:"1.0",parameters:{Region:{required:a,type:c},UseDualStack:i,UseFIPS:i,Endpoint:{required:b,type:c}},rules:[{conditions:[{[s]:"aws.partition",[t]:[j],assign:d}],type:e,rules:[{conditions:[{[s]:"isSet",[t]:[k]}],type:e,rules:[{conditions:q,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:f},{type:e,rules:[{conditions:r,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:f},{endpoint:{url:k,properties:n,headers:n},type:g}]}]},{conditions:[l,m],type:e,rules:[{conditions:[o,p],type:e,rules:[{endpoint:{url:"https://rekognition-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:n,headers:n},type:g}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:f}]},{conditions:q,type:e,rules:[{conditions:[o],type:e,rules:[{type:e,rules:[{conditions:[{[s]:h,[t]:[j,"rekognition.ca-central-1"]}],endpoint:{url:"https://rekognition-fips.ca-central-1.amazonaws.com",properties:n,headers:n},type:g},{conditions:[{[s]:h,[t]:[j,"rekognition.us-east-1"]}],endpoint:{url:"https://rekognition-fips.us-east-1.amazonaws.com",properties:n,headers:n},type:g},{conditions:[{[s]:h,[t]:[j,"rekognition.us-east-2"]}],endpoint:{url:"https://rekognition-fips.us-east-2.amazonaws.com",properties:n,headers:n},type:g},{conditions:[{[s]:h,[t]:[j,"rekognition.us-west-1"]}],endpoint:{url:"https://rekognition-fips.us-west-1.amazonaws.com",properties:n,headers:n},type:g},{conditions:[{[s]:h,[t]:[j,"rekognition.us-west-2"]}],endpoint:{url:"https://rekognition-fips.us-west-2.amazonaws.com",properties:n,headers:n},type:g},{conditions:[{[s]:h,[t]:[j,"rekognition.us-gov-west-1"]}],endpoint:{url:"https://rekognition-fips.us-gov-west-1.amazonaws.com",properties:n,headers:n},type:g},{endpoint:{url:"https://rekognition-fips.{Region}.{PartitionResult#dnsSuffix}",properties:n,headers:n},type:g}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:f}]},{conditions:r,type:e,rules:[{conditions:[p],type:e,rules:[{endpoint:{url:"https://rekognition.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:n,headers:n},type:g}]},{error:"DualStack is enabled but this partition does not support DualStack",type:f}]},{endpoint:{url:"https://rekognition.{Region}.{PartitionResult#dnsSuffix}",properties:n,headers:n},type:g}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-resiliencehub/src/endpoint/ruleset.ts b/clients/client-resiliencehub/src/endpoint/ruleset.ts index cf038c234c65..7bc5b5e77666 100644 --- a/clients/client-resiliencehub/src/endpoint/ruleset.ts +++ b/clients/client-resiliencehub/src/endpoint/ruleset.ts @@ -6,26 +6,24 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; 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}]}]}; +const p="required", +q="fn", +r="argv", +s="ref"; +const a="PartitionResult", +b="tree", +c="error", +d="endpoint", +e={[p]:false,"type":"String"}, +f={[p]:true,"default":false,"type":"Boolean"}, +g={[s]:"Endpoint"}, +h={[q]:"booleanEquals",[r]:[{[s]:"UseFIPS"},true]}, +i={[q]:"booleanEquals",[r]:[{[s]:"UseDualStack"},true]}, +j={}, +k={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsFIPS"]}]}, +l={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsDualStack"]}]}, +m=[g], +n=[h], +o=[i]; +const _data={version:"1.0",parameters:{Region:e,UseDualStack:f,UseFIPS:f,Endpoint:e},rules:[{conditions:[{[q]:"aws.partition",[r]:[{[s]:"Region"}],assign:a}],type:b,rules:[{conditions:[{[q]:"isSet",[r]:m},{[q]:"parseURL",[r]:m,assign:"url"}],type:b,rules:[{conditions:n,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:c},{type:b,rules:[{conditions:o,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:c},{endpoint:{url:g,properties:j,headers:j},type:d}]}]},{conditions:[h,i],type:b,rules:[{conditions:[k,l],type:b,rules:[{endpoint:{url:"https://resiliencehub-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:c}]},{conditions:n,type:b,rules:[{conditions:[k],type:b,rules:[{type:b,rules:[{endpoint:{url:"https://resiliencehub-fips.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:c}]},{conditions:o,type:b,rules:[{conditions:[l],type:b,rules:[{endpoint:{url:"https://resiliencehub.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"DualStack is enabled but this partition does not support DualStack",type:c}]},{endpoint:{url:"https://resiliencehub.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-resource-explorer-2/src/endpoint/ruleset.ts b/clients/client-resource-explorer-2/src/endpoint/ruleset.ts index 06dcef27987c..0633e59efaee 100644 --- a/clients/client-resource-explorer-2/src/endpoint/ruleset.ts +++ b/clients/client-resource-explorer-2/src/endpoint/ruleset.ts @@ -6,8 +6,8 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; or see "smithy.rules#endpointRuleSet" in codegen/sdk-codegen/aws-models/resource-explorer-2.json */ -const q="argv", -r="ref"; +const p="argv", +q="ref"; const a=true, b=false, c="String", @@ -17,12 +17,11 @@ f="booleanEquals", g="error", h="endpoint", i="getAttr", -j={[r]:"Endpoint"}, +j={[q]:"Endpoint"}, k={}, -l={[r]:d}, -m={"conditions":[],[g]:"FIPS is enabled but this partition does not support FIPS","type":g}, -n=[{"fn":f,[q]:[{[r]:"UseFIPS"},true]}], -o=[], -p=[{"fn":f,[q]:[true,{"fn":i,[q]:[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: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:"Boolean"},Endpoint:{builtIn:"SDK::Endpoint",required:b,documentation:"Override the endpoint used to send this request",type:c}},rules:[{conditions:[{fn:"aws.partition",[q]:[{[r]:"Region"}],assign:d}],type:e,rules:[{conditions:[{fn:"isSet",[q]:[j]}],type:e,rules:[{conditions:n,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{conditions:o,endpoint:{url:j,properties:k,headers:k},type:h}]},{conditions:o,type:e,rules:[{conditions:[{fn:f,[q]:[a,{fn:i,[q]:[l,"supportsDualStack"]}]}],type:e,rules:[{conditions:n,type:e,rules:[{conditions:p,type:e,rules:[{conditions:o,endpoint:{url:"https://resource-explorer-2-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:k,headers:k},type:h}]},m]},{conditions:o,endpoint:{url:"https://resource-explorer-2.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:k,headers:k},type:h}]},{conditions:o,type:e,rules:[{conditions:n,type:e,rules:[{conditions:p,type:e,rules:[{conditions:o,endpoint:{url:"https://resource-explorer-2-fips.{Region}.{PartitionResult#dnsSuffix}",properties:k,headers:k},type:h}]},m]},{conditions:o,endpoint:{url:"https://resource-explorer-2.{Region}.{PartitionResult#dnsSuffix}",properties:k,headers:k},type:h}]}]}]}]}; +l={[q]:d}, +m={[g]:"FIPS is enabled but this partition does not support FIPS","type":g}, +n=[{"fn":f,[p]:[{[q]:"UseFIPS"},true]}], +o=[{"fn":f,[p]:[true,{"fn":i,[p]:[l,"supportsFIPS"]}]}]; +const _data={version:"1.0",parameters:{Region:{required:a,type:c},UseFIPS:{required:a,default:b,type:"Boolean"},Endpoint:{required:b,type:c}},rules:[{conditions:[{fn:"aws.partition",[p]:[{[q]:"Region"}],assign:d}],type:e,rules:[{conditions:[{fn:"isSet",[p]:[j]}],type:e,rules:[{conditions:n,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{endpoint:{url:j,properties:k,headers:k},type:h}]},{type:e,rules:[{conditions:[{fn:f,[p]:[a,{fn:i,[p]:[l,"supportsDualStack"]}]}],type:e,rules:[{conditions:n,type:e,rules:[{conditions:o,type:e,rules:[{endpoint:{url:"https://resource-explorer-2-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:k,headers:k},type:h}]},m]},{endpoint:{url:"https://resource-explorer-2.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:k,headers:k},type:h}]},{type:e,rules:[{conditions:n,type:e,rules:[{conditions:o,type:e,rules:[{endpoint:{url:"https://resource-explorer-2-fips.{Region}.{PartitionResult#dnsSuffix}",properties:k,headers:k},type:h}]},m]},{endpoint:{url:"https://resource-explorer-2.{Region}.{PartitionResult#dnsSuffix}",properties:k,headers:k},type:h}]}]}]}]}; export const ruleSet: RuleSetObject = _data; 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 1b97edbec0cd..0eeba8004dd1 100644 --- a/clients/client-resource-groups-tagging-api/src/endpoint/ruleset.ts +++ b/clients/client-resource-groups-tagging-api/src/endpoint/ruleset.ts @@ -6,26 +6,24 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; 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}]}]}; +const p="required", +q="fn", +r="argv", +s="ref"; +const a="PartitionResult", +b="tree", +c="error", +d="endpoint", +e={[p]:false,"type":"String"}, +f={[p]:true,"default":false,"type":"Boolean"}, +g={[s]:"Endpoint"}, +h={[q]:"booleanEquals",[r]:[{[s]:"UseFIPS"},true]}, +i={[q]:"booleanEquals",[r]:[{[s]:"UseDualStack"},true]}, +j={}, +k={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsFIPS"]}]}, +l={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsDualStack"]}]}, +m=[g], +n=[h], +o=[i]; +const _data={version:"1.0",parameters:{Region:e,UseDualStack:f,UseFIPS:f,Endpoint:e},rules:[{conditions:[{[q]:"aws.partition",[r]:[{[s]:"Region"}],assign:a}],type:b,rules:[{conditions:[{[q]:"isSet",[r]:m},{[q]:"parseURL",[r]:m,assign:"url"}],type:b,rules:[{conditions:n,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:c},{type:b,rules:[{conditions:o,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:c},{endpoint:{url:g,properties:j,headers:j},type:d}]}]},{conditions:[h,i],type:b,rules:[{conditions:[k,l],type:b,rules:[{endpoint:{url:"https://tagging-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:c}]},{conditions:n,type:b,rules:[{conditions:[k],type:b,rules:[{type:b,rules:[{endpoint:{url:"https://tagging-fips.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:c}]},{conditions:o,type:b,rules:[{conditions:[l],type:b,rules:[{endpoint:{url:"https://tagging.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"DualStack is enabled but this partition does not support DualStack",type:c}]},{endpoint:{url:"https://tagging.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-resource-groups/src/endpoint/ruleset.ts b/clients/client-resource-groups/src/endpoint/ruleset.ts index 5e3b14b5db3f..87716f5dba39 100644 --- a/clients/client-resource-groups/src/endpoint/ruleset.ts +++ b/clients/client-resource-groups/src/endpoint/ruleset.ts @@ -6,29 +6,27 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; 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}]}]}; +const s="required", +t="fn", +u="argv", +v="ref"; +const a="PartitionResult", +b="tree", +c="error", +d="endpoint", +e="getAttr", +f={[s]:false,"type":"String"}, +g={[s]:true,"default":false,"type":"Boolean"}, +h={[v]:"Endpoint"}, +i={[t]:"booleanEquals",[u]:[{[v]:"UseFIPS"},true]}, +j={[t]:"booleanEquals",[u]:[{[v]:"UseDualStack"},true]}, +k={}, +l={[t]:"booleanEquals",[u]:[true,{[t]:e,[u]:[{[v]:a},"supportsFIPS"]}]}, +m={[v]:a}, +n={[t]:"booleanEquals",[u]:[true,{[t]:e,[u]:[m,"supportsDualStack"]}]}, +o={"url":"https://resource-groups.{Region}.{PartitionResult#dnsSuffix}","properties":{},"headers":{}}, +p=[h], +q=[i], +r=[j]; +const _data={version:"1.0",parameters:{Region:f,UseDualStack:g,UseFIPS:g,Endpoint:f},rules:[{conditions:[{[t]:"aws.partition",[u]:[{[v]:"Region"}],assign:a}],type:b,rules:[{conditions:[{[t]:"isSet",[u]:p},{[t]:"parseURL",[u]:p,assign:"url"}],type:b,rules:[{conditions:q,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:c},{type:b,rules:[{conditions:r,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:c},{endpoint:{url:h,properties:k,headers:k},type:d}]}]},{conditions:[i,j],type:b,rules:[{conditions:[l,n],type:b,rules:[{endpoint:{url:"https://resource-groups-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:k,headers:k},type:d}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:c}]},{conditions:q,type:b,rules:[{conditions:[l],type:b,rules:[{type:b,rules:[{conditions:[{[t]:"stringEquals",[u]:["aws-us-gov",{[t]:e,[u]:[m,"name"]}]}],endpoint:o,type:d},{endpoint:{url:"https://resource-groups-fips.{Region}.{PartitionResult#dnsSuffix}",properties:k,headers:k},type:d}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:c}]},{conditions:r,type:b,rules:[{conditions:[n],type:b,rules:[{endpoint:{url:"https://resource-groups.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:k,headers:k},type:d}]},{error:"DualStack is enabled but this partition does not support DualStack",type:c}]},{endpoint:o,type:d}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-robomaker/src/endpoint/ruleset.ts b/clients/client-robomaker/src/endpoint/ruleset.ts index 742321a77a9e..75b6f3d28d30 100644 --- a/clients/client-robomaker/src/endpoint/ruleset.ts +++ b/clients/client-robomaker/src/endpoint/ruleset.ts @@ -6,26 +6,24 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; 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}]}]}; +const p="required", +q="fn", +r="argv", +s="ref"; +const a="PartitionResult", +b="tree", +c="error", +d="endpoint", +e={[p]:false,"type":"String"}, +f={[p]:true,"default":false,"type":"Boolean"}, +g={[s]:"Endpoint"}, +h={[q]:"booleanEquals",[r]:[{[s]:"UseFIPS"},true]}, +i={[q]:"booleanEquals",[r]:[{[s]:"UseDualStack"},true]}, +j={}, +k={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsFIPS"]}]}, +l={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsDualStack"]}]}, +m=[g], +n=[h], +o=[i]; +const _data={version:"1.0",parameters:{Region:e,UseDualStack:f,UseFIPS:f,Endpoint:e},rules:[{conditions:[{[q]:"aws.partition",[r]:[{[s]:"Region"}],assign:a}],type:b,rules:[{conditions:[{[q]:"isSet",[r]:m},{[q]:"parseURL",[r]:m,assign:"url"}],type:b,rules:[{conditions:n,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:c},{type:b,rules:[{conditions:o,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:c},{endpoint:{url:g,properties:j,headers:j},type:d}]}]},{conditions:[h,i],type:b,rules:[{conditions:[k,l],type:b,rules:[{endpoint:{url:"https://robomaker-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:c}]},{conditions:n,type:b,rules:[{conditions:[k],type:b,rules:[{type:b,rules:[{endpoint:{url:"https://robomaker-fips.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:c}]},{conditions:o,type:b,rules:[{conditions:[l],type:b,rules:[{endpoint:{url:"https://robomaker.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"DualStack is enabled but this partition does not support DualStack",type:c}]},{endpoint:{url:"https://robomaker.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-rolesanywhere/src/endpoint/ruleset.ts b/clients/client-rolesanywhere/src/endpoint/ruleset.ts index 88b073bf1f1c..bf7760248cf1 100644 --- a/clients/client-rolesanywhere/src/endpoint/ruleset.ts +++ b/clients/client-rolesanywhere/src/endpoint/ruleset.ts @@ -6,26 +6,24 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; 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}]}]}; +const p="required", +q="fn", +r="argv", +s="ref"; +const a="PartitionResult", +b="tree", +c="error", +d="endpoint", +e={[p]:false,"type":"String"}, +f={[p]:true,"default":false,"type":"Boolean"}, +g={[s]:"Endpoint"}, +h={[q]:"booleanEquals",[r]:[{[s]:"UseFIPS"},true]}, +i={[q]:"booleanEquals",[r]:[{[s]:"UseDualStack"},true]}, +j={}, +k={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsFIPS"]}]}, +l={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsDualStack"]}]}, +m=[g], +n=[h], +o=[i]; +const _data={version:"1.0",parameters:{Region:e,UseDualStack:f,UseFIPS:f,Endpoint:e},rules:[{conditions:[{[q]:"aws.partition",[r]:[{[s]:"Region"}],assign:a}],type:b,rules:[{conditions:[{[q]:"isSet",[r]:m},{[q]:"parseURL",[r]:m,assign:"url"}],type:b,rules:[{conditions:n,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:c},{type:b,rules:[{conditions:o,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:c},{endpoint:{url:g,properties:j,headers:j},type:d}]}]},{conditions:[h,i],type:b,rules:[{conditions:[k,l],type:b,rules:[{endpoint:{url:"https://rolesanywhere-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:c}]},{conditions:n,type:b,rules:[{conditions:[k],type:b,rules:[{type:b,rules:[{endpoint:{url:"https://rolesanywhere-fips.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:c}]},{conditions:o,type:b,rules:[{conditions:[l],type:b,rules:[{endpoint:{url:"https://rolesanywhere.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"DualStack is enabled but this partition does not support DualStack",type:c}]},{endpoint:{url:"https://rolesanywhere.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-route-53-domains/src/endpoint/ruleset.ts b/clients/client-route-53-domains/src/endpoint/ruleset.ts index 1709d612ad15..da5bc57e5e7f 100644 --- a/clients/client-route-53-domains/src/endpoint/ruleset.ts +++ b/clients/client-route-53-domains/src/endpoint/ruleset.ts @@ -6,25 +6,24 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; or see "smithy.rules#endpointRuleSet" in codegen/sdk-codegen/aws-models/route-53-domains.json */ -const r="fn", -s="argv", -t="ref"; +const q="fn", +r="argv", +s="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]}, +d="PartitionResult", +e="tree", +f="error", +g="endpoint", +h={"required":true,"default":false,"type":"Boolean"}, +i={[s]:"Endpoint"}, +j={[q]:"booleanEquals",[r]:[{[s]:"UseFIPS"},true]}, +k={[q]:"booleanEquals",[r]:[{[s]:"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"]}]}, +m={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:d},"supportsFIPS"]}]}, +n={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:d},"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://route53domains-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://route53domains-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://route53domains.{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://route53domains.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:h}]}]}; +p=[k]; +const _data={version:"1.0",parameters:{Region:{required:a,type:c},UseDualStack:h,UseFIPS:h,Endpoint:{required:b,type:c}},rules:[{conditions:[{[q]:"aws.partition",[r]:[{[s]:"Region"}],assign:d}],type:e,rules:[{conditions:[{[q]:"isSet",[r]:[i]}],type:e,rules:[{conditions:o,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:f},{type:e,rules:[{conditions:p,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:f},{endpoint:{url:i,properties:l,headers:l},type:g}]}]},{conditions:[j,k],type:e,rules:[{conditions:[m,n],type:e,rules:[{endpoint:{url:"https://route53domains-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:g}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:f}]},{conditions:o,type:e,rules:[{conditions:[m],type:e,rules:[{type:e,rules:[{endpoint:{url:"https://route53domains-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:g}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:f}]},{conditions:p,type:e,rules:[{conditions:[n],type:e,rules:[{endpoint:{url:"https://route53domains.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:g}]},{error:"DualStack is enabled but this partition does not support DualStack",type:f}]},{endpoint:{url:"https://route53domains.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:g}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-route-53/src/endpoint/ruleset.ts b/clients/client-route-53/src/endpoint/ruleset.ts index 3c013b0efdee..2b59fc8b1298 100644 --- a/clients/client-route-53/src/endpoint/ruleset.ts +++ b/clients/client-route-53/src/endpoint/ruleset.ts @@ -6,56 +6,54 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; 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 M="type", +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://route-53-fips.{Region}.api.aws", -k="https://route-53.{Region}.api.aws", -l={[R]:"Region"}, -m={[R]:"Endpoint"}, +d="PartitionResult", +e="tree", +f="error", +g="endpoint", +h="stringEquals", +i="https://route-53-fips.{Region}.api.aws", +j="https://route-53.{Region}.api.aws", +k={"required":true,"default":false,[M]:"Boolean"}, +l={[P]:"Region"}, +m={[P]:"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}, +o={[N]:"getAttr",[O]:[{[P]:d},"name"]}, +p={[T]:[{[U]:"sigv4",[V]:"us-east-1",[W]:"route53"}]}, +q={[f]:"FIPS and DualStack are enabled, but this partition does not support one or both",[M]:f}, +r={[Q]:"https://route53-fips.amazonaws.com",[R]:p,[S]:{}}, +s={[f]:"FIPS is enabled but this partition does not support FIPS",[M]:f}, +t={[f]:"DualStack is enabled but this partition does not support DualStack",[M]:f}, +u={[Q]:"https://route53.amazonaws.com",[R]:p,[S]:{}}, +v={[T]:[{[U]:"sigv4",[V]:"cn-northwest-1",[W]:"route53"}]}, +w={[Q]:"https://route53.amazonaws.com.cn",[R]:v,[S]:{}}, +x={[T]:[{[U]:"sigv4",[V]:"us-gov-west-1",[W]:"route53"}]}, +y={[g]:{[Q]:"https://route53.us-gov.amazonaws.com",[R]:x,[S]:{}},[M]:g}, +z={[T]:[{[U]:"sigv4",[V]:"us-iso-east-1",[W]:"route53"}]}, +A={[Q]:"https://route53.c2s.ic.gov",[R]:z,[S]:{}}, +B={[T]:[{[U]:"sigv4",[V]:"us-isob-east-1",[W]:"route53"}]}, +C={[Q]:"https://route53.sc2s.sgov.gov",[R]:B,[S]:{}}, +D={"conditions":[{[N]:h,[O]:[l,"aws-us-gov-global"]}],[g]:{[Q]:"https://route53.us-gov.amazonaws.com",[R]:x,[S]:{}},[M]:g}, 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}]}]}]}; +F=[{[N]:"booleanEquals",[O]:[{[P]:"UseFIPS"},true]}], +G=[{[N]:"booleanEquals",[O]:[{[P]:"UseDualStack"},true]}], +H=[{[N]:"booleanEquals",[O]:[{[P]:"UseFIPS"},true]},{[N]:"booleanEquals",[O]:[{[P]:"UseDualStack"},true]}], +I=[{[N]:"booleanEquals",[O]:[true,{[N]:"getAttr",[O]:[{[P]:d},"supportsFIPS"]}]},{[N]:"booleanEquals",[O]:[true,{[N]:"getAttr",[O]:[{[P]:d},"supportsDualStack"]}]}], +J=[{[N]:"booleanEquals",[O]:[true,{[N]:"getAttr",[O]:[{[P]:d},"supportsFIPS"]}]}], +K=[{[N]:"booleanEquals",[O]:[true,{[N]:"getAttr",[O]:[{[P]:d},"supportsDualStack"]}]}], +L=[{[N]:h,[O]:[l,"aws-global"]}]; +const _data={version:"1.0",parameters:{Region:{required:a,[M]:c},UseDualStack:k,UseFIPS:k,Endpoint:{required:b,[M]:c}},rules:[{conditions:[{[N]:"aws.partition",[O]:[l],assign:d}],[M]:e,rules:[{conditions:[{[N]:"isSet",[O]:E},{[N]:"parseURL",[O]:E,assign:"url"}],[M]:e,rules:[{conditions:F,error:"Invalid Configuration: FIPS and custom endpoint are not supported",[M]:f},{[M]:e,rules:[{conditions:G,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",[M]:f},{endpoint:{[Q]:m,[R]:n,[S]:n},[M]:g}]}]},{conditions:[{[N]:h,[O]:[o,"aws"]}],[M]:e,rules:[{conditions:H,[M]:e,rules:[{conditions:I,[M]:e,rules:[{endpoint:{[Q]:i,[R]:p,[S]:n},[M]:g}]},q]},{conditions:F,[M]:e,rules:[{conditions:J,[M]:e,rules:[{endpoint:r,[M]:g}]},s]},{conditions:G,[M]:e,rules:[{conditions:K,[M]:e,rules:[{endpoint:{[Q]:j,[R]:p,[S]:n},[M]:g}]},t]},{endpoint:u,[M]:g}]},{conditions:[{[N]:h,[O]:[o,"aws-cn"]}],[M]:e,rules:[{conditions:H,[M]:e,rules:[{conditions:I,[M]:e,rules:[{endpoint:{[Q]:"https://route-53-fips.{Region}.api.amazonwebservices.com.cn",[R]:v,[S]:n},[M]:g}]},q]},{conditions:F,[M]:e,rules:[{conditions:J,[M]:e,rules:[{endpoint:{[Q]:"https://route-53-fips.{Region}.amazonaws.com.cn",[R]:v,[S]:n},[M]:g}]},s]},{conditions:G,[M]:e,rules:[{conditions:K,[M]:e,rules:[{endpoint:{[Q]:"https://route-53.{Region}.api.amazonwebservices.com.cn",[R]:v,[S]:n},[M]:g}]},t]},{endpoint:w,[M]:g}]},{conditions:[{[N]:h,[O]:[o,"aws-us-gov"]}],[M]:e,rules:[{conditions:H,[M]:e,rules:[{conditions:I,[M]:e,rules:[{endpoint:{[Q]:i,[R]:x,[S]:n},[M]:g}]},q]},{conditions:F,[M]:e,rules:[{conditions:J,[M]:e,rules:[y]},s]},{conditions:G,[M]:e,rules:[{conditions:K,[M]:e,rules:[{endpoint:{[Q]:j,[R]:x,[S]:n},[M]:g}]},t]},y]},{conditions:[{[N]:h,[O]:[o,"aws-iso"]}],[M]:e,rules:[{conditions:F,[M]:e,rules:[{conditions:J,[M]:e,rules:[{endpoint:{[Q]:"https://route-53-fips.{Region}.c2s.ic.gov",[R]:z,[S]:n},[M]:g}]},s]},{endpoint:A,[M]:g}]},{conditions:[{[N]:h,[O]:[o,"aws-iso-b"]}],[M]:e,rules:[{conditions:F,[M]:e,rules:[{conditions:J,[M]:e,rules:[{endpoint:{[Q]:"https://route-53-fips.{Region}.sc2s.sgov.gov",[R]:B,[S]:n},[M]:g}]},s]},{endpoint:C,[M]:g}]},{conditions:H,[M]:e,rules:[{conditions:I,[M]:e,rules:[{endpoint:{[Q]:"https://route53-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",[R]:n,[S]:n},[M]:g}]},q]},{conditions:F,[M]:e,rules:[{conditions:J,[M]:e,rules:[{[M]:e,rules:[{conditions:L,endpoint:r,[M]:g},D,{endpoint:{[Q]:"https://route53-fips.{Region}.{PartitionResult#dnsSuffix}",[R]:n,[S]:n},[M]:g}]}]},s]},{conditions:G,[M]:e,rules:[{conditions:K,[M]:e,rules:[{endpoint:{[Q]:"https://route53.{Region}.{PartitionResult#dualStackDnsSuffix}",[R]:n,[S]:n},[M]:g}]},t]},{[M]:e,rules:[{conditions:L,endpoint:u,[M]:g},{conditions:[{[N]:h,[O]:[l,"aws-cn-global"]}],endpoint:w,[M]:g},D,{conditions:[{[N]:h,[O]:[l,"aws-iso-global"]}],endpoint:A,[M]:g},{conditions:[{[N]:h,[O]:[l,"aws-iso-b-global"]}],endpoint:C,[M]:g},{endpoint:{[Q]:"https://route53.{Region}.{PartitionResult#dnsSuffix}",[R]:n,[S]:n},[M]:g}]}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-route53-recovery-cluster/src/endpoint/ruleset.ts b/clients/client-route53-recovery-cluster/src/endpoint/ruleset.ts index 328a1a27d972..a60f99ea607b 100644 --- a/clients/client-route53-recovery-cluster/src/endpoint/ruleset.ts +++ b/clients/client-route53-recovery-cluster/src/endpoint/ruleset.ts @@ -6,26 +6,24 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; 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}]}]}; +const p="required", +q="fn", +r="argv", +s="ref"; +const a="PartitionResult", +b="tree", +c="error", +d="endpoint", +e={[p]:false,"type":"String"}, +f={[p]:true,"default":false,"type":"Boolean"}, +g={[s]:"Endpoint"}, +h={[q]:"booleanEquals",[r]:[{[s]:"UseFIPS"},true]}, +i={[q]:"booleanEquals",[r]:[{[s]:"UseDualStack"},true]}, +j={}, +k={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsFIPS"]}]}, +l={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsDualStack"]}]}, +m=[g], +n=[h], +o=[i]; +const _data={version:"1.0",parameters:{Region:e,UseDualStack:f,UseFIPS:f,Endpoint:e},rules:[{conditions:[{[q]:"aws.partition",[r]:[{[s]:"Region"}],assign:a}],type:b,rules:[{conditions:[{[q]:"isSet",[r]:m},{[q]:"parseURL",[r]:m,assign:"url"}],type:b,rules:[{conditions:n,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:c},{type:b,rules:[{conditions:o,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:c},{endpoint:{url:g,properties:j,headers:j},type:d}]}]},{conditions:[h,i],type:b,rules:[{conditions:[k,l],type:b,rules:[{endpoint:{url:"https://route53-recovery-cluster-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:c}]},{conditions:n,type:b,rules:[{conditions:[k],type:b,rules:[{endpoint:{url:"https://route53-recovery-cluster-fips.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]},{error:"FIPS is enabled but this partition does not support FIPS",type:c}]},{conditions:o,type:b,rules:[{conditions:[l],type:b,rules:[{endpoint:{url:"https://route53-recovery-cluster.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"DualStack is enabled but this partition does not support DualStack",type:c}]},{endpoint:{url:"https://route53-recovery-cluster.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]}; export const ruleSet: RuleSetObject = _data; 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 04823bbed9f5..bb14dd4f0ae8 100644 --- a/clients/client-route53-recovery-control-config/src/endpoint/ruleset.ts +++ b/clients/client-route53-recovery-control-config/src/endpoint/ruleset.ts @@ -6,27 +6,25 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; 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}]}]}]}; +const q="required", +r="fn", +s="argv", +t="ref"; +const a="PartitionResult", +b="tree", +c="error", +d="endpoint", +e={[q]:false,"type":"String"}, +f={[q]:true,"default":false,"type":"Boolean"}, +g={[t]:"Region"}, +h={[t]:"Endpoint"}, +i={[r]:"booleanEquals",[s]:[{[t]:"UseFIPS"},true]}, +j={[r]:"booleanEquals",[s]:[{[t]:"UseDualStack"},true]}, +k={}, +l={[r]:"booleanEquals",[s]:[true,{[r]:"getAttr",[s]:[{[t]:a},"supportsFIPS"]}]}, +m={[r]:"booleanEquals",[s]:[true,{[r]:"getAttr",[s]:[{[t]:a},"supportsDualStack"]}]}, +n=[h], +o=[i], +p=[j]; +const _data={version:"1.0",parameters:{Region:e,UseDualStack:f,UseFIPS:f,Endpoint:e},rules:[{conditions:[{[r]:"aws.partition",[s]:[g],assign:a}],type:b,rules:[{conditions:[{[r]:"isSet",[s]:n},{[r]:"parseURL",[s]:n,assign:"url"}],type:b,rules:[{conditions:o,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:c},{type:b,rules:[{conditions:p,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:c},{endpoint:{url:h,properties:k,headers:k},type:d}]}]},{conditions:[i,j],type:b,rules:[{conditions:[l,m],type:b,rules:[{endpoint:{url:"https://route53-recovery-control-config-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:k,headers:k},type:d}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:c}]},{conditions:o,type:b,rules:[{conditions:[l],type:b,rules:[{type:b,rules:[{endpoint:{url:"https://route53-recovery-control-config-fips.{Region}.{PartitionResult#dnsSuffix}",properties:k,headers:k},type:d}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:c}]},{conditions:p,type:b,rules:[{conditions:[m],type:b,rules:[{endpoint:{url:"https://route53-recovery-control-config.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:k,headers:k},type:d}]},{error:"DualStack is enabled but this partition does not support DualStack",type:c}]},{type:b,rules:[{conditions:[{[r]:"stringEquals",[s]:[g,"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:k},type:d},{endpoint:{url:"https://route53-recovery-control-config.{Region}.{PartitionResult#dnsSuffix}",properties:k,headers:k},type:d}]}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-route53-recovery-readiness/src/endpoint/ruleset.ts b/clients/client-route53-recovery-readiness/src/endpoint/ruleset.ts index e43497ad1313..6b3cecfd14bb 100644 --- a/clients/client-route53-recovery-readiness/src/endpoint/ruleset.ts +++ b/clients/client-route53-recovery-readiness/src/endpoint/ruleset.ts @@ -6,26 +6,24 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; 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}]}]}; +const p="required", +q="fn", +r="argv", +s="ref"; +const a="PartitionResult", +b="tree", +c="error", +d="endpoint", +e={[p]:false,"type":"String"}, +f={[p]:true,"default":false,"type":"Boolean"}, +g={[s]:"Endpoint"}, +h={[q]:"booleanEquals",[r]:[{[s]:"UseFIPS"},true]}, +i={[q]:"booleanEquals",[r]:[{[s]:"UseDualStack"},true]}, +j={}, +k={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsFIPS"]}]}, +l={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsDualStack"]}]}, +m=[g], +n=[h], +o=[i]; +const _data={version:"1.0",parameters:{Region:e,UseDualStack:f,UseFIPS:f,Endpoint:e},rules:[{conditions:[{[q]:"aws.partition",[r]:[{[s]:"Region"}],assign:a}],type:b,rules:[{conditions:[{[q]:"isSet",[r]:m},{[q]:"parseURL",[r]:m,assign:"url"}],type:b,rules:[{conditions:n,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:c},{type:b,rules:[{conditions:o,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:c},{endpoint:{url:g,properties:j,headers:j},type:d}]}]},{conditions:[h,i],type:b,rules:[{conditions:[k,l],type:b,rules:[{endpoint:{url:"https://route53-recovery-readiness-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:c}]},{conditions:n,type:b,rules:[{conditions:[k],type:b,rules:[{endpoint:{url:"https://route53-recovery-readiness-fips.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]},{error:"FIPS is enabled but this partition does not support FIPS",type:c}]},{conditions:o,type:b,rules:[{conditions:[l],type:b,rules:[{endpoint:{url:"https://route53-recovery-readiness.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"DualStack is enabled but this partition does not support DualStack",type:c}]},{endpoint:{url:"https://route53-recovery-readiness.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-route53resolver/src/endpoint/ruleset.ts b/clients/client-route53resolver/src/endpoint/ruleset.ts index 1096f50b0da4..95ddaa1b5328 100644 --- a/clients/client-route53resolver/src/endpoint/ruleset.ts +++ b/clients/client-route53resolver/src/endpoint/ruleset.ts @@ -6,26 +6,24 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; 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}]}]}; +const p="required", +q="fn", +r="argv", +s="ref"; +const a="PartitionResult", +b="tree", +c="error", +d="endpoint", +e={[p]:false,"type":"String"}, +f={[p]:true,"default":false,"type":"Boolean"}, +g={[s]:"Endpoint"}, +h={[q]:"booleanEquals",[r]:[{[s]:"UseFIPS"},true]}, +i={[q]:"booleanEquals",[r]:[{[s]:"UseDualStack"},true]}, +j={}, +k={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsFIPS"]}]}, +l={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsDualStack"]}]}, +m=[g], +n=[h], +o=[i]; +const _data={version:"1.0",parameters:{Region:e,UseDualStack:f,UseFIPS:f,Endpoint:e},rules:[{conditions:[{[q]:"aws.partition",[r]:[{[s]:"Region"}],assign:a}],type:b,rules:[{conditions:[{[q]:"isSet",[r]:m},{[q]:"parseURL",[r]:m,assign:"url"}],type:b,rules:[{conditions:n,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:c},{type:b,rules:[{conditions:o,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:c},{endpoint:{url:g,properties:j,headers:j},type:d}]}]},{conditions:[h,i],type:b,rules:[{conditions:[k,l],type:b,rules:[{endpoint:{url:"https://route53resolver-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:c}]},{conditions:n,type:b,rules:[{conditions:[k],type:b,rules:[{type:b,rules:[{endpoint:{url:"https://route53resolver-fips.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:c}]},{conditions:o,type:b,rules:[{conditions:[l],type:b,rules:[{endpoint:{url:"https://route53resolver.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"DualStack is enabled but this partition does not support DualStack",type:c}]},{endpoint:{url:"https://route53resolver.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-rum/src/endpoint/ruleset.ts b/clients/client-rum/src/endpoint/ruleset.ts index 0fefcf55ac5d..cca2ea1f3870 100644 --- a/clients/client-rum/src/endpoint/ruleset.ts +++ b/clients/client-rum/src/endpoint/ruleset.ts @@ -6,26 +6,24 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; 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}]}]}; +const p="required", +q="fn", +r="argv", +s="ref"; +const a="PartitionResult", +b="tree", +c="error", +d="endpoint", +e={[p]:false,"type":"String"}, +f={[p]:true,"default":false,"type":"Boolean"}, +g={[s]:"Endpoint"}, +h={[q]:"booleanEquals",[r]:[{[s]:"UseFIPS"},true]}, +i={[q]:"booleanEquals",[r]:[{[s]:"UseDualStack"},true]}, +j={}, +k={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsFIPS"]}]}, +l={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsDualStack"]}]}, +m=[g], +n=[h], +o=[i]; +const _data={version:"1.0",parameters:{Region:e,UseDualStack:f,UseFIPS:f,Endpoint:e},rules:[{conditions:[{[q]:"aws.partition",[r]:[{[s]:"Region"}],assign:a}],type:b,rules:[{conditions:[{[q]:"isSet",[r]:m},{[q]:"parseURL",[r]:m,assign:"url"}],type:b,rules:[{conditions:n,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:c},{type:b,rules:[{conditions:o,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:c},{endpoint:{url:g,properties:j,headers:j},type:d}]}]},{conditions:[h,i],type:b,rules:[{conditions:[k,l],type:b,rules:[{endpoint:{url:"https://rum-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:c}]},{conditions:n,type:b,rules:[{conditions:[k],type:b,rules:[{type:b,rules:[{endpoint:{url:"https://rum-fips.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:c}]},{conditions:o,type:b,rules:[{conditions:[l],type:b,rules:[{endpoint:{url:"https://rum.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"DualStack is enabled but this partition does not support DualStack",type:c}]},{endpoint:{url:"https://rum.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-s3-control/src/endpoint/ruleset.ts b/clients/client-s3-control/src/endpoint/ruleset.ts index 917c6aa0fe95..eb35763e62d5 100644 --- a/clients/client-s3-control/src/endpoint/ruleset.ts +++ b/clients/client-s3-control/src/endpoint/ruleset.ts @@ -6,96 +6,97 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; 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 aA="required", +aB="type", +aC="conditions", +aD="fn", +aE="argv", +aF="ref", +aG="assign", +aH="authSchemes", +aI="name", +aJ="signingRegion", +aK="disableDoubleEncoding", +aL="signingName", +aM="x-amz-account-id", +aN="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}]}]}; +c="tree", +d="isSet", +e="aws.partition", +f="stringEquals", +g="getAttr", +h="error", +i="not", +j="isValidHostLabel", +k="{url#scheme}://{url#authority}{url#path}", +l="{Region}", +m="s3-outposts", +n="endpoint", +o="aws.parseArn", +p="accessPointArn", +q="resourceId[0]", +r="arnType", +s="service", +t="resourceId[1]", +u="outpostId", +v="arnPartition", +w="{accessPointArn#accountId}", +x="resourceId[2]", +y="outpostType", +z="resourceId[3]", +A="bucketArn", +B="{bucketArn#accountId}", +C={[aA]:false,[aB]:"String"}, +D={[aA]:true,"default":false,[aB]:"Boolean"}, +E={[aA]:false,[aB]:"Boolean"}, +F={[aF]:"OutpostId"}, +G={[aC]:[{[aD]:"booleanEquals",[aE]:[{[aF]:"UseFIPS"},true]},{[aD]:f,[aE]:[{[aD]:g,[aE]:[{[aF]:"partitionResult"},"name"]},"aws-cn"]}],[h]:"Partition does not support FIPS",[aB]:h}, +H={[aD]:"booleanEquals",[aE]:[{[aF]:"UseFIPS"},true]}, +I={[aC]:[{[aD]:d,[aE]:[{[aF]:"RequiresAccountId"}]},{[aD]:"booleanEquals",[aE]:[{[aF]:"RequiresAccountId"},true]},{[aD]:i,[aE]:[{[aD]:d,[aE]:[{[aF]:"AccountId"}]}]}],[h]:"AccountId is required but not set",[aB]:h}, +J={[aD]:d,[aE]:[{[aF]:"RequiresAccountId"}]}, +K={[aD]:"booleanEquals",[aE]:[{[aF]:"RequiresAccountId"},true]}, +L={[aD]:d,[aE]:[{[aF]:"AccountId"}]}, +M={[aF]:"AccountId"}, +N={[aC]:[L,{[aD]:i,[aE]:[{[aD]:j,[aE]:[M,false]}]}],[h]:"AccountId must only contain a-z, A-Z, 0-9 and `-`.",[aB]:h}, +O={[aD]:"booleanEquals",[aE]:[{[aF]:"UseDualStack"},true]}, +P={[aH]:[{[aI]:"sigv4",[aJ]:l,[aK]:true,[aL]:m}]}, +Q={}, +R={[h]:"Invalid region: region was not a valid DNS name.",[aB]:h}, +S={[h]:"A valid partition could not be determined",[aB]:h}, +T={[aF]:p}, +U={[aD]:i,[aE]:[{[aD]:f,[aE]:[{[aF]:r},""]}]}, +V={[aD]:d,[aE]:[{[aF]:"UseArnRegion"}]}, +W={[aD]:"booleanEquals",[aE]:[{[aF]:"UseArnRegion"},false]}, +X={[aD]:g,[aE]:[T,"region"]}, +Y={[aD]:g,[aE]:[T,"accountId"]}, +Z={[aF]:y}, +aa={[aH]:[{[aI]:"sigv4",[aJ]:"{accessPointArn#region}",[aK]:true,[aL]:m}]}, +ab={[aM]:[w],[aN]:["{outpostId}"]}, +ac={[h]:"Invalid ARN: Expected a 4-component resource",[aB]:h}, +ad={[h]:"Invalid ARN: missing account ID",[aB]:h}, +ae={[h]:"Client was configured for partition `{partitionResult#name}` but ARN has `{arnPartition#name}`",[aB]:h}, +af={[h]:"Invalid ARN: The outpost Id must only contain a-z, A-Z, 0-9 and `-`., found: `{outpostId}`",[aB]:h}, +ag={[h]:"Invalid ARN: The Outpost Id was not set",[aB]:h}, +ah={[h]:"Invalid ARN: No ARN type specified",[aB]:h}, +ai={[aF]:A}, +aj={[aD]:g,[aE]:[ai,"region"]}, +ak={[aD]:g,[aE]:[ai,"accountId"]}, +al={[aH]:[{[aI]:"sigv4",[aJ]:"{bucketArn#region}",[aK]:true,[aL]:m}]}, +am={[aM]:[B],[aN]:["{outpostId}"]}, +an={[aH]:[{[aI]:"sigv4",[aJ]:l,[aK]:true,[aL]:"s3"}]}, +ao={[aD]:"booleanEquals",[aE]:[{[aF]:"UseDualStack"},false]}, +ap={[aD]:"booleanEquals",[aE]:[{[aF]:"UseFIPS"},false]}, +aq=[{[aF]:"Region"}], +ar=[{[aD]:e,[aE]:aq,[aG]:"partitionResult"}], +as=[{[aD]:j,[aE]:[{[aF]:"Region"},true]}], +at=[O], +au=[{[aD]:d,[aE]:[{[aF]:"Endpoint"}]},{[aD]:"parseURL",[aE]:[{[aF]:"Endpoint"}],[aG]:"url"}], +av=[H], +aw=[{[aF]:"AccessPointName"}], +ax=[{[aD]:j,[aE]:[{[aF]:u},false]}], +ay=[{[aD]:f,[aE]:[{[aD]:g,[aE]:[{[aF]:v},"name"]},{[aD]:g,[aE]:[{[aF]:"partitionResult"},"name"]}]}], +az=[{[aF]:"Bucket"}]; +const _data={version:"1.0",parameters:{Region:C,UseFIPS:D,UseDualStack:D,Endpoint:C,AccountId:C,RequiresAccountId:E,OutpostId:C,Bucket:C,AccessPointName:C,UseArnRegion:E},rules:[{[aB]:c,rules:[{[aC]:[{[aD]:d,[aE]:aq}],[aB]:c,rules:[{[aB]:c,rules:[{[aC]:[{[aD]:d,[aE]:[F]}],[aB]:c,rules:[{[aC]:ar,[aB]:c,rules:[{[aB]:c,rules:[G,{[aB]:c,rules:[I,{[aB]:c,rules:[N,{[aB]:c,rules:[{[aC]:[{[aD]:i,[aE]:[{[aD]:j,[aE]:[F,a]}]}],error:"OutpostId must only contain a-z, A-Z, 0-9 and `-`.",[aB]:h},{[aB]:c,rules:[{[aC]:as,[aB]:c,rules:[{[aB]:c,rules:[{[aC]:at,error:"Invalid configuration: Outposts do not support dual-stack",[aB]:h},{[aB]:c,rules:[{[aC]:au,endpoint:{url:k,properties:P,headers:Q},[aB]:n},{[aC]:av,endpoint:{url:"https://s3-outposts-fips.{Region}.{partitionResult#dnsSuffix}",properties:P,headers:Q},[aB]:n},{endpoint:{url:"https://s3-outposts.{Region}.{partitionResult#dnsSuffix}",properties:P,headers:Q},[aB]:n}]}]}]},R]}]}]}]}]}]},S]},{[aC]:[{[aD]:d,[aE]:aw},{[aD]:o,[aE]:aw,[aG]:p}],[aB]:c,rules:[{[aC]:[{[aD]:g,[aE]:[T,q],[aG]:r},U],[aB]:c,rules:[{[aC]:[{[aD]:f,[aE]:[{[aD]:g,[aE]:[T,s]},m]}],[aB]:c,rules:[{[aC]:at,error:"Invalid configuration: Outpost Access Points do not support dual-stack",[aB]:h},{[aB]:c,rules:[{[aC]:[{[aD]:g,[aE]:[T,t],[aG]:u}],[aB]:c,rules:[{[aB]:c,rules:[{[aC]:ax,[aB]:c,rules:[{[aB]:c,rules:[{[aC]:[V,W,{[aD]:i,[aE]:[{[aD]:f,[aE]:[X,l]}]}],error:"Invalid configuration: region from ARN `{accessPointArn#region}` does not match client region `{Region}` and UseArnRegion is `false`",[aB]:h},{[aB]:c,rules:[{[aC]:ar,[aB]:c,rules:[{[aB]:c,rules:[{[aC]:[{[aD]:e,[aE]:[X],[aG]:v}],[aB]:c,rules:[{[aB]:c,rules:[{[aC]:ay,[aB]:c,rules:[{[aB]:c,rules:[{[aC]:[{[aD]:j,[aE]:[X,b]}],[aB]:c,rules:[{[aB]:c,rules:[{[aC]:[{[aD]:i,[aE]:[{[aD]:f,[aE]:[Y,""]}]}],[aB]:c,rules:[{[aB]:c,rules:[{[aC]:[{[aD]:j,[aE]:[Y,a]}],[aB]:c,rules:[{[aB]:c,rules:[{[aC]:[L,{[aD]:i,[aE]:[{[aD]:f,[aE]:[M,w]}]}],error:"Invalid ARN: the accountId specified in the ARN (`{accessPointArn#accountId}`) does not match the parameter (`{AccountId}`)",[aB]:h},{[aB]:c,rules:[{[aC]:[{[aD]:g,[aE]:[T,x],[aG]:y}],[aB]:c,rules:[{[aB]:c,rules:[{[aC]:[{[aD]:g,[aE]:[T,z],[aG]:"accessPointName"}],[aB]:c,rules:[{[aB]:c,rules:[{[aC]:[{[aD]:f,[aE]:[Z,"accesspoint"]}],[aB]:c,rules:[{[aB]:c,rules:[{[aC]:av,endpoint:{url:"https://s3-outposts-fips.{accessPointArn#region}.{arnPartition#dnsSuffix}",properties:aa,headers:ab},[aB]:n},{[aC]:au,endpoint:{url:k,properties:aa,headers:ab},[aB]:n},{endpoint:{url:"https://s3-outposts.{accessPointArn#region}.{arnPartition#dnsSuffix}",properties:aa,headers:ab},[aB]:n}]}]},{error:"Expected an outpost type `accesspoint`, found `{outpostType}`",[aB]:h}]}]},{error:"Invalid ARN: expected an access point name",[aB]:h}]}]},ac]}]}]},{error:"Invalid ARN: The account id may only contain a-z, A-Z, 0-9 and `-`. Found: `{accessPointArn#accountId}`",[aB]:h}]}]},ad]}]},{error:"Invalid region in ARN: `{accessPointArn#region}` (invalid DNS name)",[aB]:h}]}]},ae]}]},{error:"Could not load partition for ARN region `{accessPointArn#region}`",[aB]:h}]}]},S]}]}]},af]}]},ag]}]}]},ah]},{[aC]:[{[aD]:d,[aE]:az},{[aD]:o,[aE]:az,[aG]:A}],[aB]:c,rules:[{[aC]:[{[aD]:g,[aE]:[ai,q],[aG]:r},U],[aB]:c,rules:[{[aC]:[{[aD]:f,[aE]:[{[aD]:g,[aE]:[ai,s]},m]}],[aB]:c,rules:[{[aC]:at,error:"Invalid configuration: Outpost buckets do not support dual-stack",[aB]:h},{[aB]:c,rules:[{[aC]:[{[aD]:g,[aE]:[ai,t],[aG]:u}],[aB]:c,rules:[{[aB]:c,rules:[{[aC]:ax,[aB]:c,rules:[{[aB]:c,rules:[{[aC]:[V,W,{[aD]:i,[aE]:[{[aD]:f,[aE]:[aj,l]}]}],error:"Invalid configuration: region from ARN `{bucketArn#region}` does not match client region `{Region}` and UseArnRegion is `false`",[aB]:h},{[aB]:c,rules:[{[aC]:[{[aD]:e,[aE]:[aj],[aG]:v}],[aB]:c,rules:[{[aB]:c,rules:[{[aC]:ar,[aB]:c,rules:[{[aB]:c,rules:[{[aC]:ay,[aB]:c,rules:[{[aB]:c,rules:[{[aC]:[{[aD]:j,[aE]:[aj,b]}],[aB]:c,rules:[{[aB]:c,rules:[{[aC]:[{[aD]:i,[aE]:[{[aD]:f,[aE]:[ak,""]}]}],[aB]:c,rules:[{[aB]:c,rules:[{[aC]:[{[aD]:j,[aE]:[ak,a]}],[aB]:c,rules:[{[aB]:c,rules:[{[aC]:[L,{[aD]:i,[aE]:[{[aD]:f,[aE]:[M,B]}]}],error:"Invalid ARN: the accountId specified in the ARN (`{bucketArn#accountId}`) does not match the parameter (`{AccountId}`)",[aB]:h},{[aB]:c,rules:[{[aC]:[{[aD]:g,[aE]:[ai,x],[aG]:y}],[aB]:c,rules:[{[aB]:c,rules:[{[aC]:[{[aD]:g,[aE]:[ai,z],[aG]:"bucketName"}],[aB]:c,rules:[{[aB]:c,rules:[{[aC]:[{[aD]:f,[aE]:[Z,"bucket"]}],[aB]:c,rules:[{[aB]:c,rules:[{[aC]:av,endpoint:{url:"https://s3-outposts-fips.{bucketArn#region}.{arnPartition#dnsSuffix}",properties:al,headers:am},[aB]:n},{[aC]:au,endpoint:{url:k,properties:al,headers:am},[aB]:n},{endpoint:{url:"https://s3-outposts.{bucketArn#region}.{arnPartition#dnsSuffix}",properties:al,headers:am},[aB]:n}]}]},{error:"Invalid ARN: Expected an outpost type `bucket`, found `{outpostType}`",[aB]:h}]}]},{error:"Invalid ARN: expected a bucket name",[aB]:h}]}]},ac]}]}]},{error:"Invalid ARN: The account id may only contain a-z, A-Z, 0-9 and `-`. Found: `{bucketArn#accountId}`",[aB]:h}]}]},ad]}]},{error:"Invalid region in ARN: `{bucketArn#region}` (invalid DNS name)",[aB]:h}]}]},ae]}]},S]}]},{error:"Could not load partition for ARN region `{bucketArn#region}`",[aB]:h}]}]}]},af]}]},ag]}]}]},ah]},{[aB]:c,rules:[{[aC]:ar,[aB]:c,rules:[{[aB]:c,rules:[{[aC]:as,[aB]:c,rules:[{[aB]:c,rules:[G,{[aB]:c,rules:[I,{[aB]:c,rules:[N,{[aB]:c,rules:[{[aC]:au,[aB]:c,rules:[{[aC]:at,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",[aB]:h},{[aB]:c,rules:[{[aC]:[J,K,L],endpoint:{url:"{url#scheme}://{AccountId}.{url#authority}{url#path}",properties:an,headers:Q},[aB]:n},{endpoint:{url:k,properties:an,headers:Q},[aB]:n}]}]},{[aB]:c,rules:[{[aC]:[H,O,J,K,L],endpoint:{url:"https://{AccountId}.s3-control-fips.dualstack.{Region}.{partitionResult#dnsSuffix}",properties:an,headers:Q},[aB]:n},{[aC]:[H,O],endpoint:{url:"https://s3-control-fips.dualstack.{Region}.{partitionResult#dnsSuffix}",properties:an,headers:Q},[aB]:n},{[aC]:[H,ao,J,K,L],endpoint:{url:"https://{AccountId}.s3-control-fips.{Region}.{partitionResult#dnsSuffix}",properties:an,headers:Q},[aB]:n},{[aC]:[H,ao],endpoint:{url:"https://s3-control-fips.{Region}.{partitionResult#dnsSuffix}",properties:an,headers:Q},[aB]:n},{[aC]:[ap,O,J,K,L],endpoint:{url:"https://{AccountId}.s3-control.dualstack.{Region}.{partitionResult#dnsSuffix}",properties:an,headers:Q},[aB]:n},{[aC]:[ap,O],endpoint:{url:"https://s3-control.dualstack.{Region}.{partitionResult#dnsSuffix}",properties:an,headers:Q},[aB]:n},{[aC]:[ap,ao,J,K,L],endpoint:{url:"https://{AccountId}.s3-control.{Region}.{partitionResult#dnsSuffix}",properties:an,headers:Q},[aB]:n},{[aC]:[ap,ao],endpoint:{url:"https://s3-control.{Region}.{partitionResult#dnsSuffix}",properties:an,headers:Q},[aB]:n}]}]}]}]}]}]},R]}]},S]}]}]},{error:"Region must be set",[aB]:h}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-s3/src/endpoint/ruleset.ts b/clients/client-s3/src/endpoint/ruleset.ts index 644e583f58d6..ea38eb1c5e71 100644 --- a/clients/client-s3/src/endpoint/ruleset.ts +++ b/clients/client-s3/src/endpoint/ruleset.ts @@ -6,170 +6,171 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; 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 bV="required", +bW="type", +bX="rules", +bY="conditions", +bZ="fn", +ca="argv", +cb="ref", +cc="assign", +cd="url", +ce="properties", +cf="authSchemes", +cg="signingName", +ch="disableDoubleEncoding", +ci="signingRegion", +cj="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}]}]}; +c="tree", +d="isSet", +e="substring", +f="hardwareType", +g="regionPrefix", +h="abbaSuffix", +i="outpostId", +j="aws.partition", +k="stringEquals", +l="isValidHostLabel", +m="not", +n="error", +o="parseURL", +p="s3-outposts", +q="endpoint", +r="booleanEquals", +s="aws.parseArn", +t="s3", +u="aws.isVirtualHostableS3Bucket", +v="getAttr", +w="name", +x="Host override cannot be combined with Dualstack, FIPS, or S3 Accelerate", +y="https://{Bucket}.s3.{partitionResult#dnsSuffix}", +z="bucketArn", +A="arnType", +B="", +C="s3-object-lambda", +D="accesspoint", +E="accessPointName", +F="{url#scheme}://{accessPointName}-{bucketArn#accountId}.{url#authority}{url#path}", +G="mrapPartition", +H="outpostType", +I="arnPrefix", +J="{url#scheme}://{url#authority}{url#path}", +K="https://s3.{partitionResult#dnsSuffix}", +L={[bV]:false,[bW]:"String"}, +M={[bV]:true,"default":false,[bW]:"Boolean"}, +N={[bV]:false,[bW]:"Boolean"}, +O={[bZ]:d,[ca]:[{[cb]:"Bucket"}]}, +P={[cb]:"Bucket"}, +Q={[cb]:f}, +R={[bY]:[{[bZ]:m,[ca]:[{[bZ]:d,[ca]:[{[cb]:"Endpoint"}]}]}],[n]:"Expected a endpoint to be specified but no endpoint was found",[bW]:n}, +S={[bZ]:m,[ca]:[{[bZ]:d,[ca]:[{[cb]:"Endpoint"}]}]}, +T={[bZ]:d,[ca]:[{[cb]:"Endpoint"}]}, +U={[bZ]:o,[ca]:[{[cb]:"Endpoint"}],[cc]:"url"}, +V={[cf]:[{[w]:"sigv4",[cg]:p,[ch]:true,[ci]:"{Region}"}]}, +W={}, +X={[cb]:"ForcePathStyle"}, +Y={[bY]:[{[bZ]:"uriEncode",[ca]:[P],[cc]:"uri_encoded_bucket"}],[bW]:c,[bX]:[{[bY]:[{[bZ]:r,[ca]:[{[cb]:"UseDualStack"},true]},T],[n]:"Cannot set dual-stack in combination with a custom endpoint.",[bW]:n},{[bW]:c,[bX]:[{[bY]:[{[bZ]:j,[ca]:[{[cb]:"Region"}],[cc]:"partitionResult"}],[bW]:c,[bX]:[{[bW]:c,[bX]:[{[bY]:[{[bZ]:r,[ca]:[{[cb]:"Accelerate"},false]}],[bW]:c,[bX]:[{[bW]:c,[bX]:[{[bY]:[{[bZ]:r,[ca]:[{[cb]:"UseFIPS"},false]}],[bW]:c,[bX]:[{[bW]:c,[bX]:[{[bY]:[{[bZ]:r,[ca]:[{[cb]:"UseDualStack"},true]},S,{[bZ]:k,[ca]:[{[cb]:"Region"},"aws-global"]}],[q]:{[cd]:"https://s3.dualstack.us-east-1.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[ce]:{[cf]:[{[w]:"sigv4",[cg]:t,[ch]:true,[ci]:"us-east-1"}]},[cj]:{}},[bW]:q},{[bY]:[{[bZ]:r,[ca]:[{[cb]:"UseDualStack"},true]},S,{[bZ]:k,[ca]:[{[cb]:"Region"},"aws-global"]}],[q]:{[cd]:"https://s3.dualstack.us-east-1.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[ce]:{[cf]:[{[w]:"sigv4",[cg]:t,[ch]:true,[ci]:"us-east-1"}]},[cj]:{}},[bW]:q},{[bY]:[{[bZ]:r,[ca]:[{[cb]:"UseDualStack"},true]},S,{[bZ]:m,[ca]:[{[bZ]:k,[ca]:[{[cb]:"Region"},"aws-global"]}]},{[bZ]:r,[ca]:[{[cb]:"UseGlobalEndpoint"},true]}],[bW]:c,[bX]:[{[q]:{[cd]:"https://s3.dualstack.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[ce]:{[cf]:[{[w]:"sigv4",[cg]:t,[ch]:true,[ci]:"{Region}"}]},[cj]:{}},[bW]:q}]},{[bY]:[{[bZ]:r,[ca]:[{[cb]:"UseDualStack"},true]},S,{[bZ]:m,[ca]:[{[bZ]:k,[ca]:[{[cb]:"Region"},"aws-global"]}]},{[bZ]:r,[ca]:[{[cb]:"UseGlobalEndpoint"},false]}],[q]:{[cd]:"https://s3.dualstack.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[ce]:{[cf]:[{[w]:"sigv4",[cg]:t,[ch]:true,[ci]:"{Region}"}]},[cj]:{}},[bW]:q},{[bY]:[{[bZ]:r,[ca]:[{[cb]:"UseDualStack"},false]},T,U,{[bZ]:k,[ca]:[{[cb]:"Region"},"aws-global"]}],[q]:{[cd]:"{url#scheme}://{url#authority}{url#normalizedPath}{uri_encoded_bucket}",[ce]:{[cf]:[{[w]:"sigv4",[cg]:t,[ch]:true,[ci]:"us-east-1"}]},[cj]:{}},[bW]:q},{[bY]:[{[bZ]:r,[ca]:[{[cb]:"UseDualStack"},false]},T,U,{[bZ]:k,[ca]:[{[cb]:"Region"},"aws-global"]}],[q]:{[cd]:"{url#scheme}://{url#authority}{url#normalizedPath}{uri_encoded_bucket}",[ce]:{[cf]:[{[w]:"sigv4",[cg]:t,[ch]:true,[ci]:"us-east-1"}]},[cj]:{}},[bW]:q},{[bY]:[{[bZ]:r,[ca]:[{[cb]:"UseDualStack"},false]},T,U,{[bZ]:m,[ca]:[{[bZ]:k,[ca]:[{[cb]:"Region"},"aws-global"]}]},{[bZ]:r,[ca]:[{[cb]:"UseGlobalEndpoint"},true]}],[bW]:c,[bX]:[{[bY]:[{[bZ]:k,[ca]:[{[cb]:"Region"},"us-east-1"]}],[q]:{[cd]:"{url#scheme}://{url#authority}{url#normalizedPath}{uri_encoded_bucket}",[ce]:{[cf]:[{[w]:"sigv4",[cg]:t,[ch]:true,[ci]:"{Region}"}]},[cj]:{}},[bW]:q},{[q]:{[cd]:"{url#scheme}://{url#authority}{url#normalizedPath}{uri_encoded_bucket}",[ce]:{[cf]:[{[w]:"sigv4",[cg]:t,[ch]:true,[ci]:"{Region}"}]},[cj]:{}},[bW]:q}]},{[bY]:[{[bZ]:r,[ca]:[{[cb]:"UseDualStack"},false]},T,U,{[bZ]:m,[ca]:[{[bZ]:k,[ca]:[{[cb]:"Region"},"aws-global"]}]},{[bZ]:r,[ca]:[{[cb]:"UseGlobalEndpoint"},false]}],[q]:{[cd]:"{url#scheme}://{url#authority}{url#normalizedPath}{uri_encoded_bucket}",[ce]:{[cf]:[{[w]:"sigv4",[cg]:t,[ch]:true,[ci]:"{Region}"}]},[cj]:{}},[bW]:q},{[bY]:[{[bZ]:r,[ca]:[{[cb]:"UseDualStack"},false]},S,{[bZ]:k,[ca]:[{[cb]:"Region"},"aws-global"]}],[q]:{[cd]:"https://s3.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[ce]:{[cf]:[{[w]:"sigv4",[cg]:t,[ch]:true,[ci]:"us-east-1"}]},[cj]:{}},[bW]:q},{[bY]:[{[bZ]:r,[ca]:[{[cb]:"UseDualStack"},false]},S,{[bZ]:k,[ca]:[{[cb]:"Region"},"aws-global"]}],[q]:{[cd]:"https://s3.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[ce]:{[cf]:[{[w]:"sigv4",[cg]:t,[ch]:true,[ci]:"us-east-1"}]},[cj]:{}},[bW]:q},{[bY]:[{[bZ]:r,[ca]:[{[cb]:"UseDualStack"},false]},S,{[bZ]:m,[ca]:[{[bZ]:k,[ca]:[{[cb]:"Region"},"aws-global"]}]},{[bZ]:r,[ca]:[{[cb]:"UseGlobalEndpoint"},true]}],[bW]:c,[bX]:[{[bY]:[{[bZ]:k,[ca]:[{[cb]:"Region"},"us-east-1"]}],[q]:{[cd]:"https://s3.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[ce]:{[cf]:[{[w]:"sigv4",[cg]:t,[ch]:true,[ci]:"{Region}"}]},[cj]:{}},[bW]:q},{[q]:{[cd]:"https://s3.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[ce]:{[cf]:[{[w]:"sigv4",[cg]:t,[ch]:true,[ci]:"{Region}"}]},[cj]:{}},[bW]:q}]},{[bY]:[{[bZ]:r,[ca]:[{[cb]:"UseDualStack"},false]},S,{[bZ]:m,[ca]:[{[bZ]:k,[ca]:[{[cb]:"Region"},"aws-global"]}]},{[bZ]:r,[ca]:[{[cb]:"UseGlobalEndpoint"},false]}],[q]:{[cd]:"https://s3.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[ce]:{[cf]:[{[w]:"sigv4",[cg]:t,[ch]:true,[ci]:"{Region}"}]},[cj]:{}},[bW]:q}]}]},{[n]:"Path-style addressing cannot be used with FIPS",[bW]:n}]}]},{[n]:"Path-style addressing cannot be used with S3 Accelerate",[bW]:n}]}]},{[n]:"A valid partition could not be determined",[bW]:n}]}]}, +Z={[bZ]:r,[ca]:[{[cb]:"UseDualStack"},true]}, +aa={[bZ]:r,[ca]:[{[cb]:"Accelerate"},false]}, +ab={[bZ]:r,[ca]:[{[cb]:"UseFIPS"},false]}, +ac={[bZ]:m,[ca]:[{[bZ]:k,[ca]:[{[cb]:"Region"},"aws-global"]}]}, +ad={[bZ]:r,[ca]:[{[cb]:"UseGlobalEndpoint"},true]}, +ae={[cf]:[{[w]:"sigv4",[cg]:t,[ch]:true,[ci]:"{Region}"}]}, +af={[bZ]:r,[ca]:[{[cb]:"UseGlobalEndpoint"},false]}, +ag={[bZ]:r,[ca]:[{[cb]:"UseDualStack"},false]}, +ah={[n]:"A valid partition could not be determined",[bW]:n}, +ai={[bY]:[{[bZ]:r,[ca]:[{[cb]:"UseFIPS"},true]},{[bZ]:k,[ca]:[{[bZ]:v,[ca]:[{[cb]:"partitionResult"},w]},"aws-cn"]}],[n]:"Partition does not support FIPS",[bW]:n}, +aj={[bZ]:r,[ca]:[{[cb]:"UseFIPS"},true]}, +ak={[bZ]:k,[ca]:[{[bZ]:v,[ca]:[{[cb]:"partitionResult"},w]},"aws-cn"]}, +al={[bZ]:r,[ca]:[{[cb]:"Accelerate"},true]}, +am={[bY]:[Z,aj,aa,S,{[bZ]:k,[ca]:[{[cb]:"Region"},"aws-global"]}],[q]:{[cd]:"https://{Bucket}.s3-fips.dualstack.us-east-1.{partitionResult#dnsSuffix}",[ce]:{[cf]:[{[w]:"sigv4",[cg]:t,[ch]:true,[ci]:"us-east-1"}]},[cj]:{}},[bW]:q}, +an={[cd]:"https://{Bucket}.s3-fips.dualstack.{Region}.{partitionResult#dnsSuffix}",[ce]:ae,[cj]:{}}, +ao={[bY]:[ag,aj,aa,S,{[bZ]:k,[ca]:[{[cb]:"Region"},"aws-global"]}],[q]:{[cd]:"https://{Bucket}.s3-fips.us-east-1.{partitionResult#dnsSuffix}",[ce]:{[cf]:[{[w]:"sigv4",[cg]:t,[ch]:true,[ci]:"us-east-1"}]},[cj]:{}},[bW]:q}, +ap={[cd]:"https://{Bucket}.s3-fips.{Region}.{partitionResult#dnsSuffix}",[ce]:ae,[cj]:{}}, +aq={[bY]:[Z,ab,al,S,{[bZ]:k,[ca]:[{[cb]:"Region"},"aws-global"]}],[q]:{[cd]:"https://{Bucket}.s3-accelerate.dualstack.us-east-1.{partitionResult#dnsSuffix}",[ce]:{[cf]:[{[w]:"sigv4",[cg]:t,[ch]:true,[ci]:"us-east-1"}]},[cj]:{}},[bW]:q}, +ar={[cd]:"https://{Bucket}.s3-accelerate.dualstack.{partitionResult#dnsSuffix}",[ce]:ae,[cj]:{}}, +as={[bY]:[Z,ab,aa,S,{[bZ]:k,[ca]:[{[cb]:"Region"},"aws-global"]}],[q]:{[cd]:"https://{Bucket}.s3.dualstack.us-east-1.{partitionResult#dnsSuffix}",[ce]:{[cf]:[{[w]:"sigv4",[cg]:t,[ch]:true,[ci]:"us-east-1"}]},[cj]:{}},[bW]:q}, +at={[cd]:"https://{Bucket}.s3.dualstack.{Region}.{partitionResult#dnsSuffix}",[ce]:ae,[cj]:{}}, +au={[bY]:[ag,ab,aa,T,U,{[bZ]:r,[ca]:[{[bZ]:v,[ca]:[{[cb]:"url"},"isIp"]},true]},{[bZ]:k,[ca]:[{[cb]:"Region"},"aws-global"]}],[q]:{[cd]:"{url#scheme}://{url#authority}{url#normalizedPath}{Bucket}",[ce]:{[cf]:[{[w]:"sigv4",[cg]:t,[ch]:true,[ci]:"us-east-1"}]},[cj]:{}},[bW]:q}, +av={[bZ]:r,[ca]:[{[bZ]:v,[ca]:[{[cb]:"url"},"isIp"]},true]}, +aw={[cb]:"url"}, +ax={[bY]:[ag,ab,aa,T,U,{[bZ]:r,[ca]:[{[bZ]:v,[ca]:[aw,"isIp"]},false]},{[bZ]:k,[ca]:[{[cb]:"Region"},"aws-global"]}],[q]:{[cd]:"{url#scheme}://{Bucket}.{url#authority}{url#path}",[ce]:{[cf]:[{[w]:"sigv4",[cg]:t,[ch]:true,[ci]:"us-east-1"}]},[cj]:{}},[bW]:q}, +ay={[bZ]:r,[ca]:[{[bZ]:v,[ca]:[aw,"isIp"]},false]}, +az={[cd]:"{url#scheme}://{url#authority}{url#normalizedPath}{Bucket}",[ce]:ae,[cj]:{}}, +aA={[cd]:"{url#scheme}://{Bucket}.{url#authority}{url#path}",[ce]:ae,[cj]:{}}, +aB={[q]:aA,[bW]:q}, +aC={[bY]:[ag,ab,al,S,{[bZ]:k,[ca]:[{[cb]:"Region"},"aws-global"]}],[q]:{[cd]:"https://{Bucket}.s3-accelerate.{partitionResult#dnsSuffix}",[ce]:{[cf]:[{[w]:"sigv4",[cg]:t,[ch]:true,[ci]:"us-east-1"}]},[cj]:{}},[bW]:q}, +aD={[cd]:"https://{Bucket}.s3-accelerate.{partitionResult#dnsSuffix}",[ce]:ae,[cj]:{}}, +aE={[bY]:[ag,ab,aa,S,{[bZ]:k,[ca]:[{[cb]:"Region"},"aws-global"]}],[q]:{[cd]:y,[ce]:{[cf]:[{[w]:"sigv4",[cg]:t,[ch]:true,[ci]:"us-east-1"}]},[cj]:{}},[bW]:q}, +aF={[cd]:"https://{Bucket}.s3.{Region}.{partitionResult#dnsSuffix}",[ce]:ae,[cj]:{}}, +aG={[n]:"Invalid region: region was not a valid DNS name.",[bW]:n}, +aH={[cb]:z}, +aI={[cb]:A}, +aJ={[bZ]:v,[ca]:[aH,"service"]}, +aK={[cb]:E}, +aL={[bY]:[Z],[n]:"S3 Object Lambda does not support Dual-stack",[bW]:n}, +aM={[bY]:[al],[n]:"S3 Object Lambda does not support S3 Accelerate",[bW]:n}, +aN={[bY]:[{[bZ]:d,[ca]:[{[cb]:"DisableAccessPoints"}]},{[bZ]:r,[ca]:[{[cb]:"DisableAccessPoints"},true]}],[n]:"Access points are not supported for this operation",[bW]:n}, +aO={[bY]:[{[bZ]:d,[ca]:[{[cb]:"UseArnRegion"}]},{[bZ]:r,[ca]:[{[cb]:"UseArnRegion"},false]},{[bZ]:m,[ca]:[{[bZ]:k,[ca]:[{[bZ]:v,[ca]:[aH,"region"]},"{Region}"]}]}],[n]:"Invalid configuration: region from ARN `{bucketArn#region}` does not match client region `{Region}` and UseArnRegion is `false`",[bW]:n}, +aP={[bZ]:v,[ca]:[{[cb]:"bucketPartition"},w]}, +aQ={[bZ]:v,[ca]:[aH,"accountId"]}, +aR={[bY]:[aj,{[bZ]:k,[ca]:[aP,"aws-cn"]}],[n]:"Partition does not support FIPS",[bW]:n}, +aS={[cf]:[{[w]:"sigv4",[cg]:C,[ch]:true,[ci]:"{bucketArn#region}"}]}, +aT={[n]:"Invalid ARN: The access point name may only contain a-z, A-Z, 0-9 and `-`. Found: `{accessPointName}`",[bW]:n}, +aU={[n]:"Invalid ARN: The account id may only contain a-z, A-Z, 0-9 and `-`. Found: `{bucketArn#accountId}`",[bW]:n}, +aV={[n]:"Invalid region in ARN: `{bucketArn#region}` (invalid DNS name)",[bW]:n}, +aW={[n]:"Client was configured for partition `{partitionResult#name}` but ARN (`{Bucket}`) has `{bucketPartition#name}`",[bW]:n}, +aX={[n]:"Could not load partition for ARN region `{bucketArn#region}`",[bW]:n}, +aY={[n]:"Invalid ARN: The ARN may only contain a single resource component after `accesspoint`.",[bW]:n}, +aZ={[n]:"Invalid ARN: bucket ARN is missing a region",[bW]:n}, +ba={[n]:"Invalid ARN: Expected a resource of the format `accesspoint:` but no name was provided",[bW]:n}, +bb={[cf]:[{[w]:"sigv4",[cg]:t,[ch]:true,[ci]:"{bucketArn#region}"}]}, +bc={[cf]:[{[w]:"sigv4",[cg]:p,[ch]:true,[ci]:"{bucketArn#region}"}]}, +bd={[cb]:"UseObjectLambdaEndpoint"}, +be={[cf]:[{[w]:"sigv4",[cg]:C,[ch]:true,[ci]:"{Region}"}]}, +bf={[bY]:[aj,Z,T,U,{[bZ]:k,[ca]:[{[cb]:"Region"},"aws-global"]}],[q]:{[cd]:J,[ce]:{[cf]:[{[w]:"sigv4",[cg]:t,[ch]:true,[ci]:"us-east-1"}]},[cj]:{}},[bW]:q}, +bg={[q]:{[cd]:J,[ce]:ae,[cj]:{}},[bW]:q}, +bh={[cd]:J,[ce]:ae,[cj]:{}}, +bi={[bY]:[aj,Z,S,{[bZ]:k,[ca]:[{[cb]:"Region"},"aws-global"]}],[q]:{[cd]:"https://s3-fips.dualstack.us-east-1.{partitionResult#dnsSuffix}",[ce]:{[cf]:[{[w]:"sigv4",[cg]:t,[ch]:true,[ci]:"us-east-1"}]},[cj]:{}},[bW]:q}, +bj={[cd]:"https://s3-fips.dualstack.{Region}.{partitionResult#dnsSuffix}",[ce]:ae,[cj]:{}}, +bk={[bY]:[aj,ag,T,U,{[bZ]:k,[ca]:[{[cb]:"Region"},"aws-global"]}],[q]:{[cd]:J,[ce]:{[cf]:[{[w]:"sigv4",[cg]:t,[ch]:true,[ci]:"us-east-1"}]},[cj]:{}},[bW]:q}, +bl={[bY]:[aj,ag,S,{[bZ]:k,[ca]:[{[cb]:"Region"},"aws-global"]}],[q]:{[cd]:"https://s3-fips.us-east-1.{partitionResult#dnsSuffix}",[ce]:{[cf]:[{[w]:"sigv4",[cg]:t,[ch]:true,[ci]:"us-east-1"}]},[cj]:{}},[bW]:q}, +bm={[cd]:"https://s3-fips.{Region}.{partitionResult#dnsSuffix}",[ce]:ae,[cj]:{}}, +bn={[bY]:[ab,Z,T,U,{[bZ]:k,[ca]:[{[cb]:"Region"},"aws-global"]}],[q]:{[cd]:J,[ce]:{[cf]:[{[w]:"sigv4",[cg]:t,[ch]:true,[ci]:"us-east-1"}]},[cj]:{}},[bW]:q}, +bo={[bY]:[ab,Z,S,{[bZ]:k,[ca]:[{[cb]:"Region"},"aws-global"]}],[q]:{[cd]:"https://s3.dualstack.us-east-1.{partitionResult#dnsSuffix}",[ce]:{[cf]:[{[w]:"sigv4",[cg]:t,[ch]:true,[ci]:"us-east-1"}]},[cj]:{}},[bW]:q}, +bp={[cd]:"https://s3.dualstack.{Region}.{partitionResult#dnsSuffix}",[ce]:ae,[cj]:{}}, +bq={[bY]:[ab,ag,T,U,{[bZ]:k,[ca]:[{[cb]:"Region"},"aws-global"]}],[q]:{[cd]:J,[ce]:{[cf]:[{[w]:"sigv4",[cg]:t,[ch]:true,[ci]:"us-east-1"}]},[cj]:{}},[bW]:q}, +br={[bY]:[ab,ag,S,{[bZ]:k,[ca]:[{[cb]:"Region"},"aws-global"]}],[q]:{[cd]:K,[ce]:{[cf]:[{[w]:"sigv4",[cg]:t,[ch]:true,[ci]:"us-east-1"}]},[cj]:{}},[bW]:q}, +bs={[cd]:"https://s3.{Region}.{partitionResult#dnsSuffix}",[ce]:ae,[cj]:{}}, +bt=[{[cb]:"Region"}], +bu=[P], +bv=[{[bZ]:l,[ca]:[{[cb]:i},false]}], +bw=[{[bZ]:k,[ca]:[{[cb]:g},"beta"]}], +bx=[{[cb]:"Endpoint"}], +by=[T,U], +bz=[O], +bA=[{[bZ]:s,[ca]:[P]}], +bB=[Z,T], +bC=[{[bZ]:j,[ca]:bt,[cc]:"partitionResult"}], +bD=[{[bZ]:k,[ca]:[{[cb]:"Region"},"us-east-1"]}], +bE=[{[bZ]:l,[ca]:[{[cb]:"Region"},false]}], +bF=[{[bZ]:k,[ca]:[aI,D]}], +bG=[{[bZ]:v,[ca]:[aH,"resourceId[1]"],[cc]:E},{[bZ]:m,[ca]:[{[bZ]:k,[ca]:[aK,B]}]}], +bH=[aH,"resourceId[1]"], +bI=[Z], +bJ=[al], +bK=[{[bZ]:m,[ca]:[{[bZ]:k,[ca]:[{[bZ]:v,[ca]:[aH,"region"]},B]}]}], +bL=[{[bZ]:m,[ca]:[{[bZ]:d,[ca]:[{[bZ]:v,[ca]:[aH,"resourceId[2]"]}]}]}], +bM=[aH,"resourceId[2]"], +bN=[{[bZ]:j,[ca]:[{[bZ]:v,[ca]:[aH,"region"]}],[cc]:"bucketPartition"}], +bO=[{[bZ]:k,[ca]:[aP,{[bZ]:v,[ca]:[{[cb]:"partitionResult"},w]}]}], +bP=[{[bZ]:l,[ca]:[{[bZ]:v,[ca]:[aH,"region"]},true]}], +bQ=[{[bZ]:l,[ca]:[aQ,false]}], +bR=[{[bZ]:l,[ca]:[aK,false]}], +bS=[aj], +bT=[{[bZ]:l,[ca]:[{[cb]:"Region"},true]}], +bU=[bg]; +const _data={version:"1.0",parameters:{Bucket:L,Region:L,UseFIPS:M,UseDualStack:M,Endpoint:L,ForcePathStyle:N,Accelerate:M,UseGlobalEndpoint:M,UseObjectLambdaEndpoint:N,DisableAccessPoints:N,DisableMultiRegionAccessPoints:M,UseArnRegion:N},[bX]:[{[bW]:c,[bX]:[{[bY]:[{[bZ]:d,[ca]:bt}],[bW]:c,[bX]:[{[bW]:c,[bX]:[{[bY]:[O,{[bZ]:e,[ca]:[P,49,50,b],[cc]:f},{[bZ]:e,[ca]:[P,8,12,b],[cc]:g},{[bZ]:e,[ca]:[P,0,7,b],[cc]:h},{[bZ]:e,[ca]:[P,32,49,b],[cc]:i},{[bZ]:j,[ca]:bt,[cc]:"regionPartition"},{[bZ]:k,[ca]:[{[cb]:h},"--op-s3"]}],[bW]:c,[bX]:[{[bY]:bv,[bW]:c,[bX]:[{[bW]:c,[bX]:[{[bY]:[{[bZ]:k,[ca]:[Q,"e"]}],[bW]:c,[bX]:[{[bY]:bw,[bW]:c,[bX]:[R,{[bY]:by,endpoint:{[cd]:"https://{Bucket}.ec2.{url#authority}",[ce]:V,[cj]:W},[bW]:q}]},{endpoint:{[cd]:"https://{Bucket}.ec2.s3-outposts.{Region}.{regionPartition#dnsSuffix}",[ce]:V,[cj]:W},[bW]:q}]},{[bY]:[{[bZ]:k,[ca]:[Q,"o"]}],[bW]:c,[bX]:[{[bY]:bw,[bW]:c,[bX]:[R,{[bY]:by,endpoint:{[cd]:"https://{Bucket}.op-{outpostId}.{url#authority}",[ce]:V,[cj]:W},[bW]:q}]},{endpoint:{[cd]:"https://{Bucket}.op-{outpostId}.s3-outposts.{Region}.{regionPartition#dnsSuffix}",[ce]:V,[cj]:W},[bW]:q}]},{error:"Unrecognized hardware type: \"Expected hardware type o or e but got {hardwareType}\"",[bW]:n}]}]},{error:"Invalid ARN: The outpost Id must only contain a-z, A-Z, 0-9 and `-`.",[bW]:n}]},{[bY]:bz,[bW]:c,[bX]:[{[bY]:[T,{[bZ]:m,[ca]:[{[bZ]:d,[ca]:[{[bZ]:o,[ca]:bx}]}]}],error:"Custom endpoint `{Endpoint}` was not a valid URI",[bW]:n},{[bW]:c,[bX]:[{[bY]:[{[bZ]:d,[ca]:[X]},{[bZ]:r,[ca]:[X,b]}],[bW]:c,[bX]:[{[bW]:c,[bX]:[{[bY]:bA,error:"Path-style addressing cannot be used with ARN buckets",[bW]:n},Y]}]},{[bY]:[{[bZ]:u,[ca]:[P,a]}],[bW]:c,[bX]:[{[bY]:bC,[bW]:c,[bX]:[{[bW]:c,[bX]:[{[bY]:bE,[bW]:c,[bX]:[{[bW]:c,[bX]:[ai,{[bW]:c,[bX]:[{[bY]:[al,aj],error:"Accelerate cannot be used with FIPS",[bW]:n},{[bW]:c,[bX]:[{[bY]:[al,ak],error:"S3 Accelerate cannot be used in this region",[bW]:n},{[bW]:c,[bX]:[{[bY]:[T,Z],error:x,[bW]:n},{[bW]:c,[bX]:[{[bY]:[T,aj],error:x,[bW]:n},{[bW]:c,[bX]:[{[bY]:[T,al],error:x,[bW]:n},{[bW]:c,[bX]:[am,am,{[bY]:[Z,aj,aa,S,ac,ad],[bW]:c,[bX]:[{endpoint:an,[bW]:q}]},{[bY]:[Z,aj,aa,S,ac,af],endpoint:an,[bW]:q},ao,ao,{[bY]:[ag,aj,aa,S,ac,ad],[bW]:c,[bX]:[{endpoint:ap,[bW]:q}]},{[bY]:[ag,aj,aa,S,ac,af],endpoint:ap,[bW]:q},aq,aq,{[bY]:[Z,ab,al,S,ac,ad],[bW]:c,[bX]:[{endpoint:ar,[bW]:q}]},{[bY]:[Z,ab,al,S,ac,af],endpoint:ar,[bW]:q},as,as,{[bY]:[Z,ab,aa,S,ac,ad],[bW]:c,[bX]:[{endpoint:at,[bW]:q}]},{[bY]:[Z,ab,aa,S,ac,af],endpoint:at,[bW]:q},au,ax,au,ax,{[bY]:[ag,ab,aa,T,U,av,ac,ad],[bW]:c,[bX]:[{[bY]:bD,endpoint:az,[bW]:q},{endpoint:az,[bW]:q}]},{[bY]:[ag,ab,aa,T,U,ay,ac,ad],[bW]:c,[bX]:[{[bY]:bD,endpoint:aA,[bW]:q},aB]},{[bY]:[ag,ab,aa,T,U,av,ac,af],endpoint:az,[bW]:q},{[bY]:[ag,ab,aa,T,U,ay,ac,af],endpoint:aA,[bW]:q},aC,aC,{[bY]:[ag,ab,al,S,ac,ad],[bW]:c,[bX]:[{[bY]:bD,endpoint:aD,[bW]:q},{endpoint:aD,[bW]:q}]},{[bY]:[ag,ab,al,S,ac,af],endpoint:aD,[bW]:q},aE,aE,{[bY]:[ag,ab,aa,S,ac,ad],[bW]:c,[bX]:[{[bY]:bD,endpoint:{[cd]:y,[ce]:ae,[cj]:W},[bW]:q},{endpoint:aF,[bW]:q}]},{[bY]:[ag,ab,aa,S,ac,af],endpoint:aF,[bW]:q}]}]}]}]}]}]}]}]},aG]}]},ah]},{[bY]:[T,U,{[bZ]:k,[ca]:[{[bZ]:v,[ca]:[aw,"scheme"]},"http"]},{[bZ]:u,[ca]:[P,b]},ab,ag,aa],[bW]:c,[bX]:[{[bY]:bC,[bW]:c,[bX]:[{[bW]:c,[bX]:[{[bY]:bE,[bW]:c,[bX]:[aB]},aG]}]},ah]},{[bY]:[{[bZ]:s,[ca]:bu,[cc]:z}],[bW]:c,[bX]:[{[bY]:[{[bZ]:v,[ca]:[aH,"resourceId[0]"],[cc]:A},{[bZ]:m,[ca]:[{[bZ]:k,[ca]:[aI,B]}]}],[bW]:c,[bX]:[{[bW]:c,[bX]:[{[bY]:[{[bZ]:k,[ca]:[aJ,C]}],[bW]:c,[bX]:[{[bY]:bF,[bW]:c,[bX]:[{[bW]:c,[bX]:[{[bY]:bG,[bW]:c,[bX]:[{[bW]:c,[bX]:[aL,{[bW]:c,[bX]:[aM,{[bW]:c,[bX]:[{[bY]:bK,[bW]:c,[bX]:[{[bW]:c,[bX]:[aN,{[bW]:c,[bX]:[{[bY]:bL,[bW]:c,[bX]:[{[bW]:c,[bX]:[aO,{[bW]:c,[bX]:[{[bY]:bN,[bW]:c,[bX]:[{[bW]:c,[bX]:[{[bY]:bC,[bW]:c,[bX]:[{[bW]:c,[bX]:[{[bY]:bO,[bW]:c,[bX]:[{[bW]:c,[bX]:[{[bY]:bP,[bW]:c,[bX]:[{[bW]:c,[bX]:[{[bY]:[{[bZ]:k,[ca]:[aQ,B]}],error:"Invalid ARN: Missing account id",[bW]:n},{[bW]:c,[bX]:[{[bY]:bQ,[bW]:c,[bX]:[{[bW]:c,[bX]:[{[bY]:bR,[bW]:c,[bX]:[{[bW]:c,[bX]:[aR,{[bW]:c,[bX]:[{[bY]:by,endpoint:{[cd]:F,[ce]:aS,[cj]:W},[bW]:q},{[bY]:bS,endpoint:{[cd]:"https://{accessPointName}-{bucketArn#accountId}.s3-object-lambda-fips.{bucketArn#region}.{bucketPartition#dnsSuffix}",[ce]:aS,[cj]:W},[bW]:q},{endpoint:{[cd]:"https://{accessPointName}-{bucketArn#accountId}.s3-object-lambda.{bucketArn#region}.{bucketPartition#dnsSuffix}",[ce]:aS,[cj]:W},[bW]:q}]}]}]},aT]}]},aU]}]}]},aV]}]},aW]}]},ah]}]},aX]}]}]},aY]}]}]},aZ]}]}]}]},ba]}]},{error:"Invalid ARN: Object Lambda ARNs only support `accesspoint` arn types, but found: `{arnType}`",[bW]:n}]},{[bY]:bF,[bW]:c,[bX]:[{[bY]:bG,[bW]:c,[bX]:[{[bW]:c,[bX]:[{[bY]:bK,[bW]:c,[bX]:[{[bY]:bF,[bW]:c,[bX]:[{[bY]:bK,[bW]:c,[bX]:[{[bW]:c,[bX]:[aN,{[bW]:c,[bX]:[{[bY]:bL,[bW]:c,[bX]:[{[bW]:c,[bX]:[aO,{[bW]:c,[bX]:[{[bY]:bN,[bW]:c,[bX]:[{[bW]:c,[bX]:[{[bY]:bC,[bW]:c,[bX]:[{[bW]:c,[bX]:[{[bY]:[{[bZ]:k,[ca]:[aP,"{partitionResult#name}"]}],[bW]:c,[bX]:[{[bW]:c,[bX]:[{[bY]:bP,[bW]:c,[bX]:[{[bW]:c,[bX]:[{[bY]:[{[bZ]:k,[ca]:[aJ,t]}],[bW]:c,[bX]:[{[bW]:c,[bX]:[{[bY]:bQ,[bW]:c,[bX]:[{[bW]:c,[bX]:[{[bY]:bR,[bW]:c,[bX]:[{[bW]:c,[bX]:[{[bY]:bJ,error:"Access Points do not support S3 Accelerate",[bW]:n},{[bW]:c,[bX]:[aR,{[bW]:c,[bX]:[{[bY]:bB,error:"DualStack cannot be combined with a Host override (PrivateLink)",[bW]:n},{[bW]:c,[bX]:[{[bY]:[aj,Z],endpoint:{[cd]:"https://{accessPointName}-{bucketArn#accountId}.s3-accesspoint-fips.dualstack.{bucketArn#region}.{bucketPartition#dnsSuffix}",[ce]:bb,[cj]:W},[bW]:q},{[bY]:[aj,ag],endpoint:{[cd]:"https://{accessPointName}-{bucketArn#accountId}.s3-accesspoint-fips.{bucketArn#region}.{bucketPartition#dnsSuffix}",[ce]:bb,[cj]:W},[bW]:q},{[bY]:[ab,Z],endpoint:{[cd]:"https://{accessPointName}-{bucketArn#accountId}.s3-accesspoint.dualstack.{bucketArn#region}.{bucketPartition#dnsSuffix}",[ce]:bb,[cj]:W},[bW]:q},{[bY]:[ab,ag,T,U],endpoint:{[cd]:F,[ce]:bb,[cj]:W},[bW]:q},{[bY]:[ab,ag],endpoint:{[cd]:"https://{accessPointName}-{bucketArn#accountId}.s3-accesspoint.{bucketArn#region}.{bucketPartition#dnsSuffix}",[ce]:bb,[cj]:W},[bW]:q}]}]}]}]}]},aT]}]},aU]}]},{error:"Invalid ARN: The ARN was not for the S3 service, found: {bucketArn#service}",[bW]:n}]}]},aV]}]},aW]}]},ah]}]},aX]}]}]},aY]}]}]},aZ]}]},{[bW]:c,[bX]:[{[bY]:[{[bZ]:l,[ca]:[aK,b]}],[bW]:c,[bX]:[{[bW]:c,[bX]:[{[bY]:bI,error:"S3 MRAP does not support dual-stack",[bW]:n},{[bW]:c,[bX]:[{[bY]:bS,error:"S3 MRAP does not support FIPS",[bW]:n},{[bW]:c,[bX]:[{[bY]:bJ,error:"S3 MRAP does not support S3 Accelerate",[bW]:n},{[bW]:c,[bX]:[{[bY]:[{[bZ]:r,[ca]:[{[cb]:"DisableMultiRegionAccessPoints"},b]}],error:"Invalid configuration: Multi-Region Access Point ARNs are disabled.",[bW]:n},{[bW]:c,[bX]:[{[bY]:[{[bZ]:j,[ca]:bt,[cc]:G}],[bW]:c,[bX]:[{[bW]:c,[bX]:[{[bY]:[{[bZ]:k,[ca]:[{[bZ]:v,[ca]:[{[cb]:G},w]},{[bZ]:v,[ca]:[aH,"partition"]}]}],[bW]:c,[bX]:[{endpoint:{[cd]:"https://{accessPointName}.accesspoint.s3-global.{mrapPartition#dnsSuffix}",[ce]:{[cf]:[{name:"sigv4a",[cg]:t,[ch]:b,signingRegionSet:["*"]}]},[cj]:W},[bW]:q}]},{error:"Client was configured for partition `{mrapPartition#name}` but bucket referred to partition `{bucketArn#partition}`",[bW]:n}]}]},{error:"{Region} was not a valid region",[bW]:n}]}]}]}]}]}]},{error:"Invalid Access Point Name",[bW]:n}]}]}]},ba]},{[bY]:[{[bZ]:k,[ca]:[aJ,p]}],[bW]:c,[bX]:[{[bY]:bI,error:"S3 Outposts does not support Dual-stack",[bW]:n},{[bW]:c,[bX]:[{[bY]:bS,error:"S3 Outposts does not support FIPS",[bW]:n},{[bW]:c,[bX]:[{[bY]:bJ,error:"S3 Outposts does not support S3 Accelerate",[bW]:n},{[bW]:c,[bX]:[{[bY]:[{[bZ]:d,[ca]:[{[bZ]:v,[ca]:[aH,"resourceId[4]"]}]}],error:"Invalid Arn: Outpost Access Point ARN contains sub resources",[bW]:n},{[bW]:c,[bX]:[{[bY]:[{[bZ]:v,[ca]:bH,[cc]:i}],[bW]:c,[bX]:[{[bW]:c,[bX]:[{[bY]:bv,[bW]:c,[bX]:[{[bW]:c,[bX]:[aO,{[bW]:c,[bX]:[{[bY]:bN,[bW]:c,[bX]:[{[bW]:c,[bX]:[{[bY]:bC,[bW]:c,[bX]:[{[bW]:c,[bX]:[{[bY]:bO,[bW]:c,[bX]:[{[bW]:c,[bX]:[{[bY]:bP,[bW]:c,[bX]:[{[bW]:c,[bX]:[{[bY]:bQ,[bW]:c,[bX]:[{[bW]:c,[bX]:[{[bY]:[{[bZ]:v,[ca]:bM,[cc]:H}],[bW]:c,[bX]:[{[bW]:c,[bX]:[{[bY]:[{[bZ]:v,[ca]:[aH,"resourceId[3]"],[cc]:E}],[bW]:c,[bX]:[{[bW]:c,[bX]:[{[bY]:[{[bZ]:k,[ca]:[{[cb]:H},D]}],[bW]:c,[bX]:[{[bW]:c,[bX]:[{[bY]:by,endpoint:{[cd]:"https://{accessPointName}-{bucketArn#accountId}.{outpostId}.{url#authority}",[ce]:bc,[cj]:W},[bW]:q},{endpoint:{[cd]:"https://{accessPointName}-{bucketArn#accountId}.{outpostId}.s3-outposts.{bucketArn#region}.{bucketPartition#dnsSuffix}",[ce]:bc,[cj]:W},[bW]:q}]}]},{error:"Expected an outpost type `accesspoint`, found {outpostType}",[bW]:n}]}]},{error:"Invalid ARN: expected an access point name",[bW]:n}]}]},{error:"Invalid ARN: Expected a 4-component resource",[bW]:n}]}]},aU]}]},aV]}]},aW]}]},ah]}]},{error:"Could not load partition for ARN region {bucketArn#region}",[bW]:n}]}]}]},{error:"Invalid ARN: The outpost Id may only contain a-z, A-Z, 0-9 and `-`. Found: `{outpostId}`",[bW]:n}]}]},{error:"Invalid ARN: The Outpost Id was not set",[bW]:n}]}]}]}]}]},{error:"Invalid ARN: Unrecognized format: {Bucket} (type: {arnType})",[bW]:n}]}]},{error:"Invalid ARN: No ARN type specified",[bW]:n}]},{[bY]:[{[bZ]:e,[ca]:[P,0,4,a],[cc]:I},{[bZ]:k,[ca]:[{[cb]:I},"arn:"]},{[bZ]:m,[ca]:[{[bZ]:d,[ca]:bA}]}],error:"Invalid ARN: `{Bucket}` was not a valid ARN",[bW]:n},Y]}]},{[bY]:[{[bZ]:d,[ca]:[bd]},{[bZ]:r,[ca]:[bd,b]}],[bW]:c,[bX]:[{[bY]:bC,[bW]:c,[bX]:[{[bW]:c,[bX]:[{[bY]:bT,[bW]:c,[bX]:[{[bW]:c,[bX]:[aL,{[bW]:c,[bX]:[aM,{[bW]:c,[bX]:[ai,{[bW]:c,[bX]:[{[bY]:by,endpoint:{[cd]:J,[ce]:be,[cj]:W},[bW]:q},{[bY]:bS,endpoint:{[cd]:"https://s3-object-lambda-fips.{Region}.{partitionResult#dnsSuffix}",[ce]:be,[cj]:W},[bW]:q},{endpoint:{[cd]:"https://s3-object-lambda.{Region}.{partitionResult#dnsSuffix}",[ce]:be,[cj]:W},[bW]:q}]}]}]}]}]},aG]}]},ah]},{[bY]:[{[bZ]:m,[ca]:bz}],[bW]:c,[bX]:[{[bY]:bC,[bW]:c,[bX]:[{[bW]:c,[bX]:[{[bY]:bT,[bW]:c,[bX]:[{[bW]:c,[bX]:[ai,{[bW]:c,[bX]:[bf,bf,{[bY]:[aj,Z,T,U,ac,ad],[bW]:c,[bX]:bU},{[bY]:[aj,Z,T,U,ac,af],endpoint:bh,[bW]:q},bi,bi,{[bY]:[aj,Z,S,ac,ad],[bW]:c,[bX]:[{endpoint:bj,[bW]:q}]},{[bY]:[aj,Z,S,ac,af],endpoint:bj,[bW]:q},bk,bk,{[bY]:[aj,ag,T,U,ac,ad],[bW]:c,[bX]:bU},{[bY]:[aj,ag,T,U,ac,af],endpoint:bh,[bW]:q},bl,bl,{[bY]:[aj,ag,S,ac,ad],[bW]:c,[bX]:[{endpoint:bm,[bW]:q}]},{[bY]:[aj,ag,S,ac,af],endpoint:bm,[bW]:q},bn,bn,{[bY]:[ab,Z,T,U,ac,ad],[bW]:c,[bX]:bU},{[bY]:[ab,Z,T,U,ac,af],endpoint:bh,[bW]:q},bo,bo,{[bY]:[ab,Z,S,ac,ad],[bW]:c,[bX]:[{endpoint:bp,[bW]:q}]},{[bY]:[ab,Z,S,ac,af],endpoint:bp,[bW]:q},bq,bq,{[bY]:[ab,ag,T,U,ac,ad],[bW]:c,[bX]:[{[bY]:bD,endpoint:bh,[bW]:q},bg]},{[bY]:[ab,ag,T,U,ac,af],endpoint:bh,[bW]:q},br,br,{[bY]:[ab,ag,S,ac,ad],[bW]:c,[bX]:[{[bY]:bD,endpoint:{[cd]:K,[ce]:ae,[cj]:W},[bW]:q},{endpoint:bs,[bW]:q}]},{[bY]:[ab,ag,S,ac,af],endpoint:bs,[bW]:q}]}]}]},aG]}]},ah]}]}]},{error:"A region must be set when sending requests to S3.",[bW]:n}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-s3outposts/src/endpoint/ruleset.ts b/clients/client-s3outposts/src/endpoint/ruleset.ts index 73b4d62930e5..98281dd5f6e4 100644 --- a/clients/client-s3outposts/src/endpoint/ruleset.ts +++ b/clients/client-s3outposts/src/endpoint/ruleset.ts @@ -6,26 +6,24 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; 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}]}]}; +const p="required", +q="fn", +r="argv", +s="ref"; +const a="PartitionResult", +b="tree", +c="error", +d="endpoint", +e={[p]:false,"type":"String"}, +f={[p]:true,"default":false,"type":"Boolean"}, +g={[s]:"Endpoint"}, +h={[q]:"booleanEquals",[r]:[{[s]:"UseFIPS"},true]}, +i={[q]:"booleanEquals",[r]:[{[s]:"UseDualStack"},true]}, +j={}, +k={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsFIPS"]}]}, +l={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsDualStack"]}]}, +m=[g], +n=[h], +o=[i]; +const _data={version:"1.0",parameters:{Region:e,UseDualStack:f,UseFIPS:f,Endpoint:e},rules:[{conditions:[{[q]:"aws.partition",[r]:[{[s]:"Region"}],assign:a}],type:b,rules:[{conditions:[{[q]:"isSet",[r]:m},{[q]:"parseURL",[r]:m,assign:"url"}],type:b,rules:[{conditions:n,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:c},{type:b,rules:[{conditions:o,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:c},{endpoint:{url:g,properties:j,headers:j},type:d}]}]},{conditions:[h,i],type:b,rules:[{conditions:[k,l],type:b,rules:[{endpoint:{url:"https://s3-outposts-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:c}]},{conditions:n,type:b,rules:[{conditions:[k],type:b,rules:[{type:b,rules:[{endpoint:{url:"https://s3-outposts-fips.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:c}]},{conditions:o,type:b,rules:[{conditions:[l],type:b,rules:[{endpoint:{url:"https://s3-outposts.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"DualStack is enabled but this partition does not support DualStack",type:c}]},{endpoint:{url:"https://s3-outposts.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-sagemaker-a2i-runtime/src/endpoint/ruleset.ts b/clients/client-sagemaker-a2i-runtime/src/endpoint/ruleset.ts index 5c74cbfce39d..1f968e51aaea 100644 --- a/clients/client-sagemaker-a2i-runtime/src/endpoint/ruleset.ts +++ b/clients/client-sagemaker-a2i-runtime/src/endpoint/ruleset.ts @@ -6,26 +6,24 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; 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}]}]}; +const p="required", +q="fn", +r="argv", +s="ref"; +const a="PartitionResult", +b="tree", +c="error", +d="endpoint", +e={[p]:false,"type":"String"}, +f={[p]:true,"default":false,"type":"Boolean"}, +g={[s]:"Endpoint"}, +h={[q]:"booleanEquals",[r]:[{[s]:"UseFIPS"},true]}, +i={[q]:"booleanEquals",[r]:[{[s]:"UseDualStack"},true]}, +j={}, +k={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsFIPS"]}]}, +l={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsDualStack"]}]}, +m=[g], +n=[h], +o=[i]; +const _data={version:"1.0",parameters:{Region:e,UseDualStack:f,UseFIPS:f,Endpoint:e},rules:[{conditions:[{[q]:"aws.partition",[r]:[{[s]:"Region"}],assign:a}],type:b,rules:[{conditions:[{[q]:"isSet",[r]:m},{[q]:"parseURL",[r]:m,assign:"url"}],type:b,rules:[{conditions:n,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:c},{type:b,rules:[{conditions:o,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:c},{endpoint:{url:g,properties:j,headers:j},type:d}]}]},{conditions:[h,i],type:b,rules:[{conditions:[k,l],type:b,rules:[{endpoint:{url:"https://a2i-runtime.sagemaker-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:c}]},{conditions:n,type:b,rules:[{conditions:[k],type:b,rules:[{endpoint:{url:"https://a2i-runtime.sagemaker-fips.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]},{error:"FIPS is enabled but this partition does not support FIPS",type:c}]},{conditions:o,type:b,rules:[{conditions:[l],type:b,rules:[{endpoint:{url:"https://a2i-runtime.sagemaker.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"DualStack is enabled but this partition does not support DualStack",type:c}]},{endpoint:{url:"https://a2i-runtime.sagemaker.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-sagemaker-edge/src/endpoint/ruleset.ts b/clients/client-sagemaker-edge/src/endpoint/ruleset.ts index 7206b3efe393..5863a6d556da 100644 --- a/clients/client-sagemaker-edge/src/endpoint/ruleset.ts +++ b/clients/client-sagemaker-edge/src/endpoint/ruleset.ts @@ -6,26 +6,24 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; 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}]}]}; +const p="required", +q="fn", +r="argv", +s="ref"; +const a="PartitionResult", +b="tree", +c="error", +d="endpoint", +e={[p]:false,"type":"String"}, +f={[p]:true,"default":false,"type":"Boolean"}, +g={[s]:"Endpoint"}, +h={[q]:"booleanEquals",[r]:[{[s]:"UseFIPS"},true]}, +i={[q]:"booleanEquals",[r]:[{[s]:"UseDualStack"},true]}, +j={}, +k={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsFIPS"]}]}, +l={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsDualStack"]}]}, +m=[g], +n=[h], +o=[i]; +const _data={version:"1.0",parameters:{Region:e,UseDualStack:f,UseFIPS:f,Endpoint:e},rules:[{conditions:[{[q]:"aws.partition",[r]:[{[s]:"Region"}],assign:a}],type:b,rules:[{conditions:[{[q]:"isSet",[r]:m},{[q]:"parseURL",[r]:m,assign:"url"}],type:b,rules:[{conditions:n,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:c},{type:b,rules:[{conditions:o,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:c},{endpoint:{url:g,properties:j,headers:j},type:d}]}]},{conditions:[h,i],type:b,rules:[{conditions:[k,l],type:b,rules:[{endpoint:{url:"https://edge.sagemaker-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:c}]},{conditions:n,type:b,rules:[{conditions:[k],type:b,rules:[{type:b,rules:[{endpoint:{url:"https://edge.sagemaker-fips.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:c}]},{conditions:o,type:b,rules:[{conditions:[l],type:b,rules:[{endpoint:{url:"https://edge.sagemaker.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"DualStack is enabled but this partition does not support DualStack",type:c}]},{endpoint:{url:"https://edge.sagemaker.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-sagemaker-featurestore-runtime/src/endpoint/ruleset.ts b/clients/client-sagemaker-featurestore-runtime/src/endpoint/ruleset.ts index 11c48e2e759c..3b75e2aa9e53 100644 --- a/clients/client-sagemaker-featurestore-runtime/src/endpoint/ruleset.ts +++ b/clients/client-sagemaker-featurestore-runtime/src/endpoint/ruleset.ts @@ -6,26 +6,25 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; or see "smithy.rules#endpointRuleSet" in codegen/sdk-codegen/aws-models/sagemaker-featurestore-runtime.json */ -const s="fn", -t="argv", -u="ref"; +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={[u]:"Endpoint"}, -j={[s]:"booleanEquals",[t]:[{[u]:"UseFIPS"},true]}, -k={[s]:"booleanEquals",[t]:[{[u]:"UseDualStack"},true]}, +d="PartitionResult", +e="tree", +f="error", +g="endpoint", +h={"required":true,"default":false,"type":"Boolean"}, +i={[t]:"Endpoint"}, +j={[r]:"booleanEquals",[s]:[{[t]:"UseFIPS"},true]}, +k={[r]:"booleanEquals",[s]:[{[t]:"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"]}]}, +m={[r]:"booleanEquals",[s]:[true,{[r]:"getAttr",[s]:[{[t]:d},"supportsFIPS"]}]}, +n={[r]:"booleanEquals",[s]:[true,{[r]:"getAttr",[s]:[{[t]:d},"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}]}]}; +q=[k]; +const _data={version:"1.0",parameters:{Region:{required:a,type:c},UseDualStack:h,UseFIPS:h,Endpoint:{required:b,type:c}},rules:[{conditions:[{[r]:"aws.partition",[s]:[{[t]:"Region"}],assign:d}],type:e,rules:[{conditions:[{[r]:"isSet",[s]:o},{[r]:"parseURL",[s]:o,assign:"url"}],type:e,rules:[{conditions:p,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:f},{type:e,rules:[{conditions:q,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:f},{endpoint:{url:i,properties:l,headers:l},type:g}]}]},{conditions:[j,k],type:e,rules:[{conditions:[m,n],type:e,rules:[{endpoint:{url:"https://featurestore-runtime.sagemaker-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:g}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:f}]},{conditions:p,type:e,rules:[{conditions:[m],type:e,rules:[{endpoint:{url:"https://featurestore-runtime.sagemaker-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:g}]},{error:"FIPS is enabled but this partition does not support FIPS",type:f}]},{conditions:q,type:e,rules:[{conditions:[n],type:e,rules:[{endpoint:{url:"https://featurestore-runtime.sagemaker.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:g}]},{error:"DualStack is enabled but this partition does not support DualStack",type:f}]},{endpoint:{url:"https://featurestore-runtime.sagemaker.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:g}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-sagemaker-geospatial/src/endpoint/ruleset.ts b/clients/client-sagemaker-geospatial/src/endpoint/ruleset.ts index 05d2a6694bb3..4328a56c0d0f 100644 --- a/clients/client-sagemaker-geospatial/src/endpoint/ruleset.ts +++ b/clients/client-sagemaker-geospatial/src/endpoint/ruleset.ts @@ -6,26 +6,25 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; or see "smithy.rules#endpointRuleSet" in codegen/sdk-codegen/aws-models/sagemaker-geospatial.json */ -const s="fn", -t="argv", -u="ref"; +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={[u]:"Endpoint"}, -j={[s]:"booleanEquals",[t]:[{[u]:"UseFIPS"},true]}, -k={[s]:"booleanEquals",[t]:[{[u]:"UseDualStack"},true]}, +d="PartitionResult", +e="tree", +f="error", +g="endpoint", +h={"required":true,"default":false,"type":"Boolean"}, +i={[t]:"Endpoint"}, +j={[r]:"booleanEquals",[s]:[{[t]:"UseFIPS"},true]}, +k={[r]:"booleanEquals",[s]:[{[t]:"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"]}]}, +m={[r]:"booleanEquals",[s]:[true,{[r]:"getAttr",[s]:[{[t]:d},"supportsFIPS"]}]}, +n={[r]:"booleanEquals",[s]:[true,{[r]:"getAttr",[s]:[{[t]:d},"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}]}]}; +q=[k]; +const _data={version:"1.0",parameters:{Region:{required:a,type:c},UseDualStack:h,UseFIPS:h,Endpoint:{required:b,type:c}},rules:[{conditions:[{[r]:"aws.partition",[s]:[{[t]:"Region"}],assign:d}],type:e,rules:[{conditions:[{[r]:"isSet",[s]:o},{[r]:"parseURL",[s]:o,assign:"url"}],type:e,rules:[{conditions:p,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:f},{type:e,rules:[{conditions:q,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:f},{endpoint:{url:i,properties:l,headers:l},type:g}]}]},{conditions:[j,k],type:e,rules:[{conditions:[m,n],type:e,rules:[{endpoint:{url:"https://sagemaker-geospatial-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:g}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:f}]},{conditions:p,type:e,rules:[{conditions:[m],type:e,rules:[{endpoint:{url:"https://sagemaker-geospatial-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:g}]},{error:"FIPS is enabled but this partition does not support FIPS",type:f}]},{conditions:q,type:e,rules:[{conditions:[n],type:e,rules:[{endpoint:{url:"https://sagemaker-geospatial.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:g}]},{error:"DualStack is enabled but this partition does not support DualStack",type:f}]},{endpoint:{url:"https://sagemaker-geospatial.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:g}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-sagemaker-metrics/src/endpoint/ruleset.ts b/clients/client-sagemaker-metrics/src/endpoint/ruleset.ts index bcb29e6f2ed8..9843ef103454 100644 --- a/clients/client-sagemaker-metrics/src/endpoint/ruleset.ts +++ b/clients/client-sagemaker-metrics/src/endpoint/ruleset.ts @@ -6,25 +6,24 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; or see "smithy.rules#endpointRuleSet" in codegen/sdk-codegen/aws-models/sagemaker-metrics.json */ -const r="fn", -s="argv", -t="ref"; +const q="fn", +r="argv", +s="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]}, +d="PartitionResult", +e="tree", +f="error", +g="endpoint", +h={"required":true,"default":false,"type":"Boolean"}, +i={[s]:"Endpoint"}, +j={[q]:"booleanEquals",[r]:[{[s]:"UseFIPS"},true]}, +k={[q]:"booleanEquals",[r]:[{[s]:"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"]}]}, +m={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:d},"supportsFIPS"]}]}, +n={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:d},"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}]}]}; +p=[k]; +const _data={version:"1.0",parameters:{Region:{required:a,type:c},UseDualStack:h,UseFIPS:h,Endpoint:{required:b,type:c}},rules:[{conditions:[{[q]:"aws.partition",[r]:[{[s]:"Region"}],assign:d}],type:e,rules:[{conditions:[{[q]:"isSet",[r]:[i]}],type:e,rules:[{conditions:o,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:f},{type:e,rules:[{conditions:p,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:f},{endpoint:{url:i,properties:l,headers:l},type:g}]}]},{conditions:[j,k],type:e,rules:[{conditions:[m,n],type:e,rules:[{endpoint:{url:"https://metrics.sagemaker-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:g}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:f}]},{conditions:o,type:e,rules:[{conditions:[m],type:e,rules:[{endpoint:{url:"https://metrics.sagemaker-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:g}]},{error:"FIPS is enabled but this partition does not support FIPS",type:f}]},{conditions:p,type:e,rules:[{conditions:[n],type:e,rules:[{endpoint:{url:"https://metrics.sagemaker.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:g}]},{error:"DualStack is enabled but this partition does not support DualStack",type:f}]},{endpoint:{url:"https://metrics.sagemaker.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:g}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-sagemaker-runtime/src/endpoint/ruleset.ts b/clients/client-sagemaker-runtime/src/endpoint/ruleset.ts index 0669c27d67e3..7e47a087274c 100644 --- a/clients/client-sagemaker-runtime/src/endpoint/ruleset.ts +++ b/clients/client-sagemaker-runtime/src/endpoint/ruleset.ts @@ -6,29 +6,27 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; 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}]}]}; +const s="required", +t="fn", +u="argv", +v="ref"; +const a="PartitionResult", +b="tree", +c="error", +d="endpoint", +e="stringEquals", +f={[s]:false,"type":"String"}, +g={[s]:true,"default":false,"type":"Boolean"}, +h={[v]:"Endpoint"}, +i={[t]:"booleanEquals",[u]:[{[v]:"UseFIPS"},true]}, +j={[t]:"booleanEquals",[u]:[{[v]:"UseDualStack"},true]}, +k={}, +l={[t]:"booleanEquals",[u]:[true,{[t]:"getAttr",[u]:[{[v]:a},"supportsFIPS"]}]}, +m={[t]:"booleanEquals",[u]:[true,{[t]:"getAttr",[u]:[{[v]:a},"supportsDualStack"]}]}, +n={[t]:"getAttr",[u]:[{[v]:a},"name"]}, +o={"url":"https://runtime.sagemaker.{Region}.{PartitionResult#dnsSuffix}","properties":{},"headers":{}}, +p=[h], +q=[i], +r=[j]; +const _data={version:"1.0",parameters:{Region:f,UseDualStack:g,UseFIPS:g,Endpoint:f},rules:[{conditions:[{[t]:"aws.partition",[u]:[{[v]:"Region"}],assign:a}],type:b,rules:[{conditions:[{[t]:"isSet",[u]:p},{[t]:"parseURL",[u]:p,assign:"url"}],type:b,rules:[{conditions:q,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:c},{type:b,rules:[{conditions:r,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:c},{endpoint:{url:h,properties:k,headers:k},type:d}]}]},{conditions:[i,j],type:b,rules:[{conditions:[l,m],type:b,rules:[{endpoint:{url:"https://runtime.sagemaker-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:k,headers:k},type:d}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:c}]},{conditions:q,type:b,rules:[{conditions:[l],type:b,rules:[{type:b,rules:[{conditions:[{[t]:e,[u]:["aws",n]}],endpoint:{url:"https://runtime-fips.sagemaker.{Region}.{PartitionResult#dnsSuffix}",properties:k,headers:k},type:d},{conditions:[{[t]:e,[u]:["aws-us-gov",n]}],endpoint:o,type:d},{endpoint:{url:"https://runtime.sagemaker-fips.{Region}.{PartitionResult#dnsSuffix}",properties:k,headers:k},type:d}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:c}]},{conditions:r,type:b,rules:[{conditions:[m],type:b,rules:[{endpoint:{url:"https://runtime.sagemaker.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:k,headers:k},type:d}]},{error:"DualStack is enabled but this partition does not support DualStack",type:c}]},{endpoint:o,type:d}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-sagemaker/src/endpoint/ruleset.ts b/clients/client-sagemaker/src/endpoint/ruleset.ts index 39fc485b80da..3a6b5d808bd1 100644 --- a/clients/client-sagemaker/src/endpoint/ruleset.ts +++ b/clients/client-sagemaker/src/endpoint/ruleset.ts @@ -6,29 +6,28 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; or see "smithy.rules#endpointRuleSet" in codegen/sdk-codegen/aws-models/sagemaker.json */ -const v="fn", -w="argv", -x="ref"; +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={[x]:"Region"}, -k={[x]:"Endpoint"}, -l={[v]:"booleanEquals",[w]:[{[x]:"UseFIPS"},true]}, -m={[v]:"booleanEquals",[w]:[{[x]:"UseDualStack"},true]}, +d="PartitionResult", +e="tree", +f="error", +g="endpoint", +h="stringEquals", +i={"required":true,"default":false,"type":"Boolean"}, +j={[w]:"Region"}, +k={[w]:"Endpoint"}, +l={[u]:"booleanEquals",[v]:[{[w]:"UseFIPS"},true]}, +m={[u]:"booleanEquals",[v]:[{[w]:"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"]}, +o={[u]:"booleanEquals",[v]:[true,{[u]:"getAttr",[v]:[{[w]:d},"supportsFIPS"]}]}, +p={[u]:"booleanEquals",[v]:[true,{[u]:"getAttr",[v]:[{[w]:d},"supportsDualStack"]}]}, +q={[u]:"getAttr",[v]:[{[w]:d},"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}]}]}; +t=[m]; +const _data={version:"1.0",parameters:{Region:{required:a,type:c},UseDualStack:i,UseFIPS:i,Endpoint:{required:b,type:c}},rules:[{conditions:[{[u]:"aws.partition",[v]:[j],assign:d}],type:e,rules:[{conditions:[{[u]:"isSet",[v]:[k]}],type:e,rules:[{conditions:s,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:f},{type:e,rules:[{conditions:t,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:f},{endpoint:{url:k,properties:n,headers:n},type:g}]}]},{conditions:[l,m],type:e,rules:[{conditions:[o,p],type:e,rules:[{endpoint:{url:"https://api.sagemaker-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:n,headers:n},type:g}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:f}]},{conditions:s,type:e,rules:[{conditions:[o],type:e,rules:[{type:e,rules:[{conditions:[{[u]:h,[v]:["aws",q]}],endpoint:r,type:g},{conditions:[{[u]:h,[v]:[j,"us-gov-west-1-secondary"]}],endpoint:{url:"https://api.sagemaker.us-gov-west-1.amazonaws.com",properties:n,headers:n},type:g},{conditions:[{[u]:h,[v]:["aws-us-gov",q]}],endpoint:r,type:g},{endpoint:{url:"https://api.sagemaker-fips.{Region}.{PartitionResult#dnsSuffix}",properties:n,headers:n},type:g}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:f}]},{conditions:t,type:e,rules:[{conditions:[p],type:e,rules:[{endpoint:{url:"https://api.sagemaker.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:n,headers:n},type:g}]},{error:"DualStack is enabled but this partition does not support DualStack",type:f}]},{endpoint:{url:"https://api.sagemaker.{Region}.{PartitionResult#dnsSuffix}",properties:n,headers:n},type:g}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-savingsplans/src/endpoint/ruleset.ts b/clients/client-savingsplans/src/endpoint/ruleset.ts index 2e0e7a8f57dd..f36dfd36e6b3 100644 --- a/clients/client-savingsplans/src/endpoint/ruleset.ts +++ b/clients/client-savingsplans/src/endpoint/ruleset.ts @@ -6,37 +6,34 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; 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}]}]}]}; +const y="required", +z="type", +A="fn", +B="argv", +C="ref"; +const a="PartitionResult", +b="tree", +c="error", +d="endpoint", +e="stringEquals", +f="getAttr", +g={[y]:false,[z]:"String"}, +h={[y]:true,"default":false,[z]:"Boolean"}, +i={[C]:"Region"}, +j={[C]:"Endpoint"}, +k={}, +l={[C]:a}, +m={"authSchemes":[{"name":"sigv4","signingName":"savingsplans","signingRegion":"us-east-1"}]}, +n={[c]:"FIPS and DualStack are enabled, but this partition does not support one or both",[z]:c}, +o={[c]:"FIPS is enabled but this partition does not support FIPS",[z]:c}, +p={[c]:"DualStack is enabled but this partition does not support DualStack",[z]:c}, +q={"url":"https://savingsplans.amazonaws.com","properties":m,"headers":{}}, +r=[j], +s=[{[A]:"booleanEquals",[B]:[{[C]:"UseFIPS"},true]}], +t=[{[A]:"booleanEquals",[B]:[{[C]:"UseDualStack"},true]}], +u=[{[A]:"booleanEquals",[B]:[{[C]:"UseFIPS"},true]},{[A]:"booleanEquals",[B]:[{[C]:"UseDualStack"},true]}], +v=[{[A]:"booleanEquals",[B]:[true,{[A]:f,[B]:[l,"supportsFIPS"]}]},{[A]:"booleanEquals",[B]:[true,{[A]:f,[B]:[l,"supportsDualStack"]}]}], +w=[{[A]:"booleanEquals",[B]:[true,{[A]:f,[B]:[l,"supportsFIPS"]}]}], +x=[{[A]:"booleanEquals",[B]:[true,{[A]:f,[B]:[l,"supportsDualStack"]}]}]; +const _data={version:"1.0",parameters:{Region:g,UseDualStack:h,UseFIPS:h,Endpoint:g},rules:[{conditions:[{[A]:"aws.partition",[B]:[i],assign:a}],[z]:b,rules:[{conditions:[{[A]:"isSet",[B]:r},{[A]:"parseURL",[B]:r,assign:"url"}],[z]:b,rules:[{conditions:s,error:"Invalid Configuration: FIPS and custom endpoint are not supported",[z]:c},{[z]:b,rules:[{conditions:t,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",[z]:c},{endpoint:{url:j,properties:k,headers:k},[z]:d}]}]},{conditions:[{[A]:e,[B]:[{[A]:f,[B]:[l,"name"]},"aws"]}],[z]:b,rules:[{conditions:u,[z]:b,rules:[{conditions:v,[z]:b,rules:[{endpoint:{url:"https://savingsplans-fips.{Region}.api.aws",properties:m,headers:k},[z]:d}]},n]},{conditions:s,[z]:b,rules:[{conditions:w,[z]:b,rules:[{endpoint:{url:"https://savingsplans-fips.{Region}.amazonaws.com",properties:m,headers:k},[z]:d}]},o]},{conditions:t,[z]:b,rules:[{conditions:x,[z]:b,rules:[{endpoint:{url:"https://savingsplans.{Region}.api.aws",properties:m,headers:k},[z]:d}]},p]},{endpoint:q,[z]:d}]},{conditions:u,[z]:b,rules:[{conditions:v,[z]:b,rules:[{endpoint:{url:"https://savingsplans-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:k,headers:k},[z]:d}]},n]},{conditions:s,[z]:b,rules:[{conditions:w,[z]:b,rules:[{[z]:b,rules:[{endpoint:{url:"https://savingsplans-fips.{Region}.{PartitionResult#dnsSuffix}",properties:k,headers:k},[z]:d}]}]},o]},{conditions:t,[z]:b,rules:[{conditions:x,[z]:b,rules:[{endpoint:{url:"https://savingsplans.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:k,headers:k},[z]:d}]},p]},{[z]:b,rules:[{conditions:[{[A]:e,[B]:[i,"aws-global"]}],endpoint:q,[z]:d},{endpoint:{url:"https://savingsplans.{Region}.{PartitionResult#dnsSuffix}",properties:k,headers:k},[z]:d}]}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-scheduler/src/endpoint/ruleset.ts b/clients/client-scheduler/src/endpoint/ruleset.ts index d15815634083..6e059eedad3b 100644 --- a/clients/client-scheduler/src/endpoint/ruleset.ts +++ b/clients/client-scheduler/src/endpoint/ruleset.ts @@ -6,26 +6,24 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; 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}]}]}; +const p="required", +q="fn", +r="argv", +s="ref"; +const a="PartitionResult", +b="tree", +c="error", +d="endpoint", +e={[p]:false,"type":"String"}, +f={[p]:true,"default":false,"type":"Boolean"}, +g={[s]:"Endpoint"}, +h={[q]:"booleanEquals",[r]:[{[s]:"UseFIPS"},true]}, +i={[q]:"booleanEquals",[r]:[{[s]:"UseDualStack"},true]}, +j={}, +k={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsFIPS"]}]}, +l={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsDualStack"]}]}, +m=[g], +n=[h], +o=[i]; +const _data={version:"1.0",parameters:{Region:e,UseDualStack:f,UseFIPS:f,Endpoint:e},rules:[{conditions:[{[q]:"aws.partition",[r]:[{[s]:"Region"}],assign:a}],type:b,rules:[{conditions:[{[q]:"isSet",[r]:m},{[q]:"parseURL",[r]:m,assign:"url"}],type:b,rules:[{conditions:n,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:c},{type:b,rules:[{conditions:o,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:c},{endpoint:{url:g,properties:j,headers:j},type:d}]}]},{conditions:[h,i],type:b,rules:[{conditions:[k,l],type:b,rules:[{endpoint:{url:"https://scheduler-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:c}]},{conditions:n,type:b,rules:[{conditions:[k],type:b,rules:[{endpoint:{url:"https://scheduler-fips.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]},{error:"FIPS is enabled but this partition does not support FIPS",type:c}]},{conditions:o,type:b,rules:[{conditions:[l],type:b,rules:[{endpoint:{url:"https://scheduler.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"DualStack is enabled but this partition does not support DualStack",type:c}]},{endpoint:{url:"https://scheduler.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-schemas/src/endpoint/ruleset.ts b/clients/client-schemas/src/endpoint/ruleset.ts index a94de0e97b5b..70b0a7c5ac90 100644 --- a/clients/client-schemas/src/endpoint/ruleset.ts +++ b/clients/client-schemas/src/endpoint/ruleset.ts @@ -6,26 +6,24 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; 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}]}]}; +const p="required", +q="fn", +r="argv", +s="ref"; +const a="PartitionResult", +b="tree", +c="error", +d="endpoint", +e={[p]:false,"type":"String"}, +f={[p]:true,"default":false,"type":"Boolean"}, +g={[s]:"Endpoint"}, +h={[q]:"booleanEquals",[r]:[{[s]:"UseFIPS"},true]}, +i={[q]:"booleanEquals",[r]:[{[s]:"UseDualStack"},true]}, +j={}, +k={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsFIPS"]}]}, +l={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsDualStack"]}]}, +m=[g], +n=[h], +o=[i]; +const _data={version:"1.0",parameters:{Region:e,UseDualStack:f,UseFIPS:f,Endpoint:e},rules:[{conditions:[{[q]:"aws.partition",[r]:[{[s]:"Region"}],assign:a}],type:b,rules:[{conditions:[{[q]:"isSet",[r]:m},{[q]:"parseURL",[r]:m,assign:"url"}],type:b,rules:[{conditions:n,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:c},{type:b,rules:[{conditions:o,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:c},{endpoint:{url:g,properties:j,headers:j},type:d}]}]},{conditions:[h,i],type:b,rules:[{conditions:[k,l],type:b,rules:[{endpoint:{url:"https://schemas-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:c}]},{conditions:n,type:b,rules:[{conditions:[k],type:b,rules:[{type:b,rules:[{endpoint:{url:"https://schemas-fips.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:c}]},{conditions:o,type:b,rules:[{conditions:[l],type:b,rules:[{endpoint:{url:"https://schemas.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"DualStack is enabled but this partition does not support DualStack",type:c}]},{endpoint:{url:"https://schemas.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-secrets-manager/src/endpoint/ruleset.ts b/clients/client-secrets-manager/src/endpoint/ruleset.ts index 549e2fb775e0..e26b8d1b3064 100644 --- a/clients/client-secrets-manager/src/endpoint/ruleset.ts +++ b/clients/client-secrets-manager/src/endpoint/ruleset.ts @@ -6,26 +6,24 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; 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}]}]}; +const p="required", +q="fn", +r="argv", +s="ref"; +const a="PartitionResult", +b="tree", +c="error", +d="endpoint", +e={[p]:false,"type":"String"}, +f={[p]:true,"default":false,"type":"Boolean"}, +g={[s]:"Endpoint"}, +h={[q]:"booleanEquals",[r]:[{[s]:"UseFIPS"},true]}, +i={[q]:"booleanEquals",[r]:[{[s]:"UseDualStack"},true]}, +j={}, +k={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsFIPS"]}]}, +l={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsDualStack"]}]}, +m=[g], +n=[h], +o=[i]; +const _data={version:"1.0",parameters:{Region:e,UseDualStack:f,UseFIPS:f,Endpoint:e},rules:[{conditions:[{[q]:"aws.partition",[r]:[{[s]:"Region"}],assign:a}],type:b,rules:[{conditions:[{[q]:"isSet",[r]:m},{[q]:"parseURL",[r]:m,assign:"url"}],type:b,rules:[{conditions:n,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:c},{type:b,rules:[{conditions:o,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:c},{endpoint:{url:g,properties:j,headers:j},type:d}]}]},{conditions:[h,i],type:b,rules:[{conditions:[k,l],type:b,rules:[{endpoint:{url:"https://secretsmanager-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:c}]},{conditions:n,type:b,rules:[{conditions:[k],type:b,rules:[{type:b,rules:[{endpoint:{url:"https://secretsmanager-fips.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:c}]},{conditions:o,type:b,rules:[{conditions:[l],type:b,rules:[{endpoint:{url:"https://secretsmanager.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"DualStack is enabled but this partition does not support DualStack",type:c}]},{endpoint:{url:"https://secretsmanager.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-securityhub/src/endpoint/ruleset.ts b/clients/client-securityhub/src/endpoint/ruleset.ts index 6864c13cbed9..163f192756be 100644 --- a/clients/client-securityhub/src/endpoint/ruleset.ts +++ b/clients/client-securityhub/src/endpoint/ruleset.ts @@ -6,25 +6,24 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; or see "smithy.rules#endpointRuleSet" in codegen/sdk-codegen/aws-models/securityhub.json */ -const r="fn", -s="argv", -t="ref"; +const q="fn", +r="argv", +s="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]}, +d="PartitionResult", +e="tree", +f="error", +g="endpoint", +h={"required":true,"default":false,"type":"Boolean"}, +i={[s]:"Endpoint"}, +j={[q]:"booleanEquals",[r]:[{[s]:"UseFIPS"},true]}, +k={[q]:"booleanEquals",[r]:[{[s]:"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"]}]}, +m={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:d},"supportsFIPS"]}]}, +n={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:d},"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}]}]}; +p=[k]; +const _data={version:"1.0",parameters:{Region:{required:a,type:c},UseDualStack:h,UseFIPS:h,Endpoint:{required:b,type:c}},rules:[{conditions:[{[q]:"aws.partition",[r]:[{[s]:"Region"}],assign:d}],type:e,rules:[{conditions:[{[q]:"isSet",[r]:[i]}],type:e,rules:[{conditions:o,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:f},{type:e,rules:[{conditions:p,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:f},{endpoint:{url:i,properties:l,headers:l},type:g}]}]},{conditions:[j,k],type:e,rules:[{conditions:[m,n],type:e,rules:[{endpoint:{url:"https://securityhub-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:g}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:f}]},{conditions:o,type:e,rules:[{conditions:[m],type:e,rules:[{type:e,rules:[{endpoint:{url:"https://securityhub-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:g}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:f}]},{conditions:p,type:e,rules:[{conditions:[n],type:e,rules:[{endpoint:{url:"https://securityhub.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:g}]},{error:"DualStack is enabled but this partition does not support DualStack",type:f}]},{endpoint:{url:"https://securityhub.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:g}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-securitylake/src/endpoint/ruleset.ts b/clients/client-securitylake/src/endpoint/ruleset.ts index 15d08b9f1a90..e88a97432282 100644 --- a/clients/client-securitylake/src/endpoint/ruleset.ts +++ b/clients/client-securitylake/src/endpoint/ruleset.ts @@ -6,26 +6,25 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; or see "smithy.rules#endpointRuleSet" in codegen/sdk-codegen/aws-models/securitylake.json */ -const s="fn", -t="argv", -u="ref"; +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={[u]:"Endpoint"}, -j={[s]:"booleanEquals",[t]:[{[u]:"UseFIPS"},true]}, -k={[s]:"booleanEquals",[t]:[{[u]:"UseDualStack"},true]}, +d="PartitionResult", +e="tree", +f="error", +g="endpoint", +h={"required":true,"default":false,"type":"Boolean"}, +i={[t]:"Endpoint"}, +j={[r]:"booleanEquals",[s]:[{[t]:"UseFIPS"},true]}, +k={[r]:"booleanEquals",[s]:[{[t]:"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"]}]}, +m={[r]:"booleanEquals",[s]:[true,{[r]:"getAttr",[s]:[{[t]:d},"supportsFIPS"]}]}, +n={[r]:"booleanEquals",[s]:[true,{[r]:"getAttr",[s]:[{[t]:d},"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}]}]}; +q=[k]; +const _data={version:"1.0",parameters:{Region:{required:a,type:c},UseDualStack:h,UseFIPS:h,Endpoint:{required:b,type:c}},rules:[{conditions:[{[r]:"aws.partition",[s]:[{[t]:"Region"}],assign:d}],type:e,rules:[{conditions:[{[r]:"isSet",[s]:o},{[r]:"parseURL",[s]:o,assign:"url"}],type:e,rules:[{conditions:p,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:f},{type:e,rules:[{conditions:q,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:f},{endpoint:{url:i,properties:l,headers:l},type:g}]}]},{conditions:[j,k],type:e,rules:[{conditions:[m,n],type:e,rules:[{endpoint:{url:"https://securitylake-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:g}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:f}]},{conditions:p,type:e,rules:[{conditions:[m],type:e,rules:[{endpoint:{url:"https://securitylake-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:g}]},{error:"FIPS is enabled but this partition does not support FIPS",type:f}]},{conditions:q,type:e,rules:[{conditions:[n],type:e,rules:[{endpoint:{url:"https://securitylake.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:g}]},{error:"DualStack is enabled but this partition does not support DualStack",type:f}]},{endpoint:{url:"https://securitylake.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:g}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-serverlessapplicationrepository/src/endpoint/ruleset.ts b/clients/client-serverlessapplicationrepository/src/endpoint/ruleset.ts index 8b800ac3b486..218468e00448 100644 --- a/clients/client-serverlessapplicationrepository/src/endpoint/ruleset.ts +++ b/clients/client-serverlessapplicationrepository/src/endpoint/ruleset.ts @@ -6,26 +6,24 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; 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}]}]}; +const p="required", +q="fn", +r="argv", +s="ref"; +const a="PartitionResult", +b="tree", +c="error", +d="endpoint", +e={[p]:false,"type":"String"}, +f={[p]:true,"default":false,"type":"Boolean"}, +g={[s]:"Endpoint"}, +h={[q]:"booleanEquals",[r]:[{[s]:"UseFIPS"},true]}, +i={[q]:"booleanEquals",[r]:[{[s]:"UseDualStack"},true]}, +j={}, +k={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsFIPS"]}]}, +l={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsDualStack"]}]}, +m=[g], +n=[h], +o=[i]; +const _data={version:"1.0",parameters:{Region:e,UseDualStack:f,UseFIPS:f,Endpoint:e},rules:[{conditions:[{[q]:"aws.partition",[r]:[{[s]:"Region"}],assign:a}],type:b,rules:[{conditions:[{[q]:"isSet",[r]:m},{[q]:"parseURL",[r]:m,assign:"url"}],type:b,rules:[{conditions:n,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:c},{type:b,rules:[{conditions:o,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:c},{endpoint:{url:g,properties:j,headers:j},type:d}]}]},{conditions:[h,i],type:b,rules:[{conditions:[k,l],type:b,rules:[{endpoint:{url:"https://serverlessrepo-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:c}]},{conditions:n,type:b,rules:[{conditions:[k],type:b,rules:[{type:b,rules:[{endpoint:{url:"https://serverlessrepo-fips.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:c}]},{conditions:o,type:b,rules:[{conditions:[l],type:b,rules:[{endpoint:{url:"https://serverlessrepo.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"DualStack is enabled but this partition does not support DualStack",type:c}]},{endpoint:{url:"https://serverlessrepo.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-service-catalog-appregistry/src/endpoint/ruleset.ts b/clients/client-service-catalog-appregistry/src/endpoint/ruleset.ts index dc2bfbab0276..0f92bad73ba5 100644 --- a/clients/client-service-catalog-appregistry/src/endpoint/ruleset.ts +++ b/clients/client-service-catalog-appregistry/src/endpoint/ruleset.ts @@ -6,29 +6,27 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; 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}]}]}; +const s="required", +t="fn", +u="argv", +v="ref"; +const a="PartitionResult", +b="tree", +c="error", +d="endpoint", +e="getAttr", +f={[s]:false,"type":"String"}, +g={[s]:true,"default":false,"type":"Boolean"}, +h={[v]:"Endpoint"}, +i={[t]:"booleanEquals",[u]:[{[v]:"UseFIPS"},true]}, +j={[t]:"booleanEquals",[u]:[{[v]:"UseDualStack"},true]}, +k={}, +l={[t]:"booleanEquals",[u]:[true,{[t]:e,[u]:[{[v]:a},"supportsFIPS"]}]}, +m={[v]:a}, +n={[t]:"booleanEquals",[u]:[true,{[t]:e,[u]:[m,"supportsDualStack"]}]}, +o={"url":"https://servicecatalog-appregistry.{Region}.{PartitionResult#dnsSuffix}","properties":{},"headers":{}}, +p=[h], +q=[i], +r=[j]; +const _data={version:"1.0",parameters:{Region:f,UseDualStack:g,UseFIPS:g,Endpoint:f},rules:[{conditions:[{[t]:"aws.partition",[u]:[{[v]:"Region"}],assign:a}],type:b,rules:[{conditions:[{[t]:"isSet",[u]:p},{[t]:"parseURL",[u]:p,assign:"url"}],type:b,rules:[{conditions:q,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:c},{type:b,rules:[{conditions:r,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:c},{endpoint:{url:h,properties:k,headers:k},type:d}]}]},{conditions:[i,j],type:b,rules:[{conditions:[l,n],type:b,rules:[{endpoint:{url:"https://servicecatalog-appregistry-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:k,headers:k},type:d}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:c}]},{conditions:q,type:b,rules:[{conditions:[l],type:b,rules:[{type:b,rules:[{conditions:[{[t]:"stringEquals",[u]:["aws-us-gov",{[t]:e,[u]:[m,"name"]}]}],endpoint:o,type:d},{endpoint:{url:"https://servicecatalog-appregistry-fips.{Region}.{PartitionResult#dnsSuffix}",properties:k,headers:k},type:d}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:c}]},{conditions:r,type:b,rules:[{conditions:[n],type:b,rules:[{endpoint:{url:"https://servicecatalog-appregistry.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:k,headers:k},type:d}]},{error:"DualStack is enabled but this partition does not support DualStack",type:c}]},{endpoint:o,type:d}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-service-catalog/src/endpoint/ruleset.ts b/clients/client-service-catalog/src/endpoint/ruleset.ts index 09bf87c02955..0f957f391b88 100644 --- a/clients/client-service-catalog/src/endpoint/ruleset.ts +++ b/clients/client-service-catalog/src/endpoint/ruleset.ts @@ -6,26 +6,24 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; 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}]}]}; +const p="required", +q="fn", +r="argv", +s="ref"; +const a="PartitionResult", +b="tree", +c="error", +d="endpoint", +e={[p]:false,"type":"String"}, +f={[p]:true,"default":false,"type":"Boolean"}, +g={[s]:"Endpoint"}, +h={[q]:"booleanEquals",[r]:[{[s]:"UseFIPS"},true]}, +i={[q]:"booleanEquals",[r]:[{[s]:"UseDualStack"},true]}, +j={}, +k={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsFIPS"]}]}, +l={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsDualStack"]}]}, +m=[g], +n=[h], +o=[i]; +const _data={version:"1.0",parameters:{Region:e,UseDualStack:f,UseFIPS:f,Endpoint:e},rules:[{conditions:[{[q]:"aws.partition",[r]:[{[s]:"Region"}],assign:a}],type:b,rules:[{conditions:[{[q]:"isSet",[r]:m},{[q]:"parseURL",[r]:m,assign:"url"}],type:b,rules:[{conditions:n,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:c},{type:b,rules:[{conditions:o,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:c},{endpoint:{url:g,properties:j,headers:j},type:d}]}]},{conditions:[h,i],type:b,rules:[{conditions:[k,l],type:b,rules:[{endpoint:{url:"https://servicecatalog-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:c}]},{conditions:n,type:b,rules:[{conditions:[k],type:b,rules:[{type:b,rules:[{endpoint:{url:"https://servicecatalog-fips.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:c}]},{conditions:o,type:b,rules:[{conditions:[l],type:b,rules:[{endpoint:{url:"https://servicecatalog.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"DualStack is enabled but this partition does not support DualStack",type:c}]},{endpoint:{url:"https://servicecatalog.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-service-quotas/src/endpoint/ruleset.ts b/clients/client-service-quotas/src/endpoint/ruleset.ts index b24c03867765..2bf94d040bb0 100644 --- a/clients/client-service-quotas/src/endpoint/ruleset.ts +++ b/clients/client-service-quotas/src/endpoint/ruleset.ts @@ -6,29 +6,27 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; 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}]}]}; +const s="required", +t="fn", +u="argv", +v="ref"; +const a="PartitionResult", +b="tree", +c="error", +d="endpoint", +e="getAttr", +f={[s]:false,"type":"String"}, +g={[s]:true,"default":false,"type":"Boolean"}, +h={[v]:"Endpoint"}, +i={[t]:"booleanEquals",[u]:[{[v]:"UseFIPS"},true]}, +j={[t]:"booleanEquals",[u]:[{[v]:"UseDualStack"},true]}, +k={}, +l={[t]:"booleanEquals",[u]:[true,{[t]:e,[u]:[{[v]:a},"supportsFIPS"]}]}, +m={[v]:a}, +n={[t]:"booleanEquals",[u]:[true,{[t]:e,[u]:[m,"supportsDualStack"]}]}, +o={"url":"https://servicequotas.{Region}.{PartitionResult#dnsSuffix}","properties":{},"headers":{}}, +p=[h], +q=[i], +r=[j]; +const _data={version:"1.0",parameters:{Region:f,UseDualStack:g,UseFIPS:g,Endpoint:f},rules:[{conditions:[{[t]:"aws.partition",[u]:[{[v]:"Region"}],assign:a}],type:b,rules:[{conditions:[{[t]:"isSet",[u]:p},{[t]:"parseURL",[u]:p,assign:"url"}],type:b,rules:[{conditions:q,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:c},{type:b,rules:[{conditions:r,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:c},{endpoint:{url:h,properties:k,headers:k},type:d}]}]},{conditions:[i,j],type:b,rules:[{conditions:[l,n],type:b,rules:[{endpoint:{url:"https://servicequotas-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:k,headers:k},type:d}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:c}]},{conditions:q,type:b,rules:[{conditions:[l],type:b,rules:[{type:b,rules:[{conditions:[{[t]:"stringEquals",[u]:["aws-us-gov",{[t]:e,[u]:[m,"name"]}]}],endpoint:o,type:d},{endpoint:{url:"https://servicequotas-fips.{Region}.{PartitionResult#dnsSuffix}",properties:k,headers:k},type:d}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:c}]},{conditions:r,type:b,rules:[{conditions:[n],type:b,rules:[{endpoint:{url:"https://servicequotas.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:k,headers:k},type:d}]},{error:"DualStack is enabled but this partition does not support DualStack",type:c}]},{endpoint:o,type:d}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-servicediscovery/src/endpoint/ruleset.ts b/clients/client-servicediscovery/src/endpoint/ruleset.ts index 8b2c1bcd420a..c5a0bfe4ca8e 100644 --- a/clients/client-servicediscovery/src/endpoint/ruleset.ts +++ b/clients/client-servicediscovery/src/endpoint/ruleset.ts @@ -6,28 +6,27 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; or see "smithy.rules#endpointRuleSet" in codegen/sdk-codegen/aws-models/servicediscovery.json */ -const u="fn", -v="argv", -w="ref"; +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={[w]:"Region"}, -j={[w]:"Endpoint"}, -k={[u]:"booleanEquals",[v]:[{[w]:"UseFIPS"},true]}, -l={[u]:"booleanEquals",[v]:[{[w]:"UseDualStack"},true]}, +d="PartitionResult", +e="tree", +f="error", +g="endpoint", +h={"required":true,"default":false,"type":"Boolean"}, +i={[v]:"Region"}, +j={[v]:"Endpoint"}, +k={[t]:"booleanEquals",[u]:[{[v]:"UseFIPS"},true]}, +l={[t]:"booleanEquals",[u]:[{[v]:"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"]}]}, +n={[t]:"booleanEquals",[u]:[true,{[t]:"getAttr",[u]:[{[v]:d},"supportsFIPS"]}]}, +o={[t]:"booleanEquals",[u]:[true,{[t]:"getAttr",[u]:[{[v]:d},"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}]}]}; +r=[l], +s=[{[t]:"stringEquals",[u]:[i,"servicediscovery"]}]; +const _data={version:"1.0",parameters:{Region:{required:a,type:c},UseDualStack:h,UseFIPS:h,Endpoint:{required:b,type:c}},rules:[{conditions:[{[t]:"aws.partition",[u]:[i],assign:d}],type:e,rules:[{conditions:[{[t]:"isSet",[u]:p},{[t]:"parseURL",[u]:p,assign:"url"}],type:e,rules:[{conditions:q,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:f},{type:e,rules:[{conditions:r,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:f},{endpoint:{url:j,properties:m,headers:m},type:g}]}]},{conditions:[k,l],type:e,rules:[{conditions:[n,o],type:e,rules:[{endpoint:{url:"https://servicediscovery-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:m,headers:m},type:g}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:f}]},{conditions:q,type:e,rules:[{conditions:[n],type:e,rules:[{type:e,rules:[{conditions:s,endpoint:{url:"https://servicediscovery-fips.ca-central-1.amazonaws.com",properties:m,headers:m},type:g},{conditions:s,endpoint:{url:"https://servicediscovery-fips.us-gov-west-1.amazonaws.com",properties:m,headers:m},type:g},{endpoint:{url:"https://servicediscovery-fips.{Region}.{PartitionResult#dnsSuffix}",properties:m,headers:m},type:g}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:f}]},{conditions:r,type:e,rules:[{conditions:[o],type:e,rules:[{endpoint:{url:"https://servicediscovery.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:m,headers:m},type:g}]},{error:"DualStack is enabled but this partition does not support DualStack",type:f}]},{endpoint:{url:"https://servicediscovery.{Region}.{PartitionResult#dnsSuffix}",properties:m,headers:m},type:g}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-ses/src/endpoint/ruleset.ts b/clients/client-ses/src/endpoint/ruleset.ts index b014f5d7c120..8bca490d7197 100644 --- a/clients/client-ses/src/endpoint/ruleset.ts +++ b/clients/client-ses/src/endpoint/ruleset.ts @@ -6,26 +6,24 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; 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}]}]}; +const p="required", +q="fn", +r="argv", +s="ref"; +const a="PartitionResult", +b="tree", +c="error", +d="endpoint", +e={[p]:false,"type":"String"}, +f={[p]:true,"default":false,"type":"Boolean"}, +g={[s]:"Endpoint"}, +h={[q]:"booleanEquals",[r]:[{[s]:"UseFIPS"},true]}, +i={[q]:"booleanEquals",[r]:[{[s]:"UseDualStack"},true]}, +j={}, +k={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsFIPS"]}]}, +l={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsDualStack"]}]}, +m=[g], +n=[h], +o=[i]; +const _data={version:"1.0",parameters:{Region:e,UseDualStack:f,UseFIPS:f,Endpoint:e},rules:[{conditions:[{[q]:"aws.partition",[r]:[{[s]:"Region"}],assign:a}],type:b,rules:[{conditions:[{[q]:"isSet",[r]:m},{[q]:"parseURL",[r]:m,assign:"url"}],type:b,rules:[{conditions:n,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:c},{type:b,rules:[{conditions:o,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:c},{endpoint:{url:g,properties:j,headers:j},type:d}]}]},{conditions:[h,i],type:b,rules:[{conditions:[k,l],type:b,rules:[{endpoint:{url:"https://email-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:c}]},{conditions:n,type:b,rules:[{conditions:[k],type:b,rules:[{type:b,rules:[{endpoint:{url:"https://email-fips.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:c}]},{conditions:o,type:b,rules:[{conditions:[l],type:b,rules:[{endpoint:{url:"https://email.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"DualStack is enabled but this partition does not support DualStack",type:c}]},{endpoint:{url:"https://email.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-sesv2/src/endpoint/ruleset.ts b/clients/client-sesv2/src/endpoint/ruleset.ts index 5169750e9a44..abf071e3ed7f 100644 --- a/clients/client-sesv2/src/endpoint/ruleset.ts +++ b/clients/client-sesv2/src/endpoint/ruleset.ts @@ -6,26 +6,24 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; 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}]}]}; +const p="required", +q="fn", +r="argv", +s="ref"; +const a="PartitionResult", +b="tree", +c="error", +d="endpoint", +e={[p]:false,"type":"String"}, +f={[p]:true,"default":false,"type":"Boolean"}, +g={[s]:"Endpoint"}, +h={[q]:"booleanEquals",[r]:[{[s]:"UseFIPS"},true]}, +i={[q]:"booleanEquals",[r]:[{[s]:"UseDualStack"},true]}, +j={}, +k={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsFIPS"]}]}, +l={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsDualStack"]}]}, +m=[g], +n=[h], +o=[i]; +const _data={version:"1.0",parameters:{Region:e,UseDualStack:f,UseFIPS:f,Endpoint:e},rules:[{conditions:[{[q]:"aws.partition",[r]:[{[s]:"Region"}],assign:a}],type:b,rules:[{conditions:[{[q]:"isSet",[r]:m},{[q]:"parseURL",[r]:m,assign:"url"}],type:b,rules:[{conditions:n,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:c},{type:b,rules:[{conditions:o,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:c},{endpoint:{url:g,properties:j,headers:j},type:d}]}]},{conditions:[h,i],type:b,rules:[{conditions:[k,l],type:b,rules:[{endpoint:{url:"https://email-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:c}]},{conditions:n,type:b,rules:[{conditions:[k],type:b,rules:[{type:b,rules:[{endpoint:{url:"https://email-fips.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:c}]},{conditions:o,type:b,rules:[{conditions:[l],type:b,rules:[{endpoint:{url:"https://email.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"DualStack is enabled but this partition does not support DualStack",type:c}]},{endpoint:{url:"https://email.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-sfn/src/endpoint/ruleset.ts b/clients/client-sfn/src/endpoint/ruleset.ts index 70c14d6d5dfe..3ff65c3da6d7 100644 --- a/clients/client-sfn/src/endpoint/ruleset.ts +++ b/clients/client-sfn/src/endpoint/ruleset.ts @@ -6,27 +6,26 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; or see "smithy.rules#endpointRuleSet" in codegen/sdk-codegen/aws-models/sfn.json */ -const t="fn", -u="argv", -v="ref"; +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={[v]:"Region"}, -j={[v]:"Endpoint"}, -k={[t]:"booleanEquals",[u]:[{[v]:"UseFIPS"},true]}, -l={[t]:"booleanEquals",[u]:[{[v]:"UseDualStack"},true]}, +d="PartitionResult", +e="tree", +f="error", +g="endpoint", +h={"required":true,"default":false,"type":"Boolean"}, +i={[u]:"Region"}, +j={[u]:"Endpoint"}, +k={[s]:"booleanEquals",[t]:[{[u]:"UseFIPS"},true]}, +l={[s]:"booleanEquals",[t]:[{[u]:"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"]}]}, +n={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:d},"supportsFIPS"]}]}, +o={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:d},"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}]}]}; +r=[l]; +const _data={version:"1.0",parameters:{Region:{required:a,type:c},UseDualStack:h,UseFIPS:h,Endpoint:{required:b,type:c}},rules:[{conditions:[{[s]:"aws.partition",[t]:[i],assign:d}],type:e,rules:[{conditions:[{[s]:"isSet",[t]:p},{[s]:"parseURL",[t]:p,assign:"url"}],type:e,rules:[{conditions:q,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:f},{type:e,rules:[{conditions:r,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:f},{endpoint:{url:j,properties:m,headers:m},type:g}]}]},{conditions:[k,l],type:e,rules:[{conditions:[n,o],type:e,rules:[{endpoint:{url:"https://states-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:m,headers:m},type:g}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:f}]},{conditions:q,type:e,rules:[{conditions:[n],type:e,rules:[{type:e,rules:[{conditions:[{[s]:"stringEquals",[t]:[i,"us-gov-west-1"]}],endpoint:{url:"https://states.us-gov-west-1.amazonaws.com",properties:m,headers:m},type:g},{endpoint:{url:"https://states-fips.{Region}.{PartitionResult#dnsSuffix}",properties:m,headers:m},type:g}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:f}]},{conditions:r,type:e,rules:[{conditions:[o],type:e,rules:[{endpoint:{url:"https://states.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:m,headers:m},type:g}]},{error:"DualStack is enabled but this partition does not support DualStack",type:f}]},{endpoint:{url:"https://states.{Region}.{PartitionResult#dnsSuffix}",properties:m,headers:m},type:g}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-shield/src/endpoint/ruleset.ts b/clients/client-shield/src/endpoint/ruleset.ts index b2082fe7194c..1beab77f9718 100644 --- a/clients/client-shield/src/endpoint/ruleset.ts +++ b/clients/client-shield/src/endpoint/ruleset.ts @@ -6,39 +6,36 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; 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}]}]}]}; +const A="required", +B="type", +C="fn", +D="argv", +E="ref"; +const a="PartitionResult", +b="tree", +c="error", +d="endpoint", +e="stringEquals", +f="getAttr", +g="https://shield-fips.us-east-1.amazonaws.com", +h={[A]:false,[B]:"String"}, +i={[A]:true,"default":false,[B]:"Boolean"}, +j={[E]:"Region"}, +k={[E]:"Endpoint"}, +l={}, +m={[E]:a}, +n={"authSchemes":[{"name":"sigv4","signingName":"shield","signingRegion":"us-east-1"}]}, +o={[c]:"FIPS and DualStack are enabled, but this partition does not support one or both",[B]:c}, +p={[c]:"FIPS is enabled but this partition does not support FIPS",[B]:c}, +q={[c]:"DualStack is enabled but this partition does not support DualStack",[B]:c}, +r={"url":"https://shield.us-east-1.amazonaws.com","properties":n,"headers":{}}, +s=[k], +t=[{[C]:"booleanEquals",[D]:[{[E]:"UseFIPS"},true]}], +u=[{[C]:"booleanEquals",[D]:[{[E]:"UseDualStack"},true]}], +v=[{[C]:"booleanEquals",[D]:[{[E]:"UseFIPS"},true]},{[C]:"booleanEquals",[D]:[{[E]:"UseDualStack"},true]}], +w=[{[C]:"booleanEquals",[D]:[true,{[C]:f,[D]:[m,"supportsFIPS"]}]},{[C]:"booleanEquals",[D]:[true,{[C]:f,[D]:[m,"supportsDualStack"]}]}], +x=[{[C]:"booleanEquals",[D]:[true,{[C]:f,[D]:[m,"supportsFIPS"]}]}], +y=[{[C]:"booleanEquals",[D]:[true,{[C]:f,[D]:[m,"supportsDualStack"]}]}], +z=[{[C]:e,[D]:[j,"aws-global"]}]; +const _data={version:"1.0",parameters:{Region:h,UseDualStack:i,UseFIPS:i,Endpoint:h},rules:[{conditions:[{[C]:"aws.partition",[D]:[j],assign:a}],[B]:b,rules:[{conditions:[{[C]:"isSet",[D]:s},{[C]:"parseURL",[D]:s,assign:"url"}],[B]:b,rules:[{conditions:t,error:"Invalid Configuration: FIPS and custom endpoint are not supported",[B]:c},{[B]:b,rules:[{conditions:u,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",[B]:c},{endpoint:{url:k,properties:l,headers:l},[B]:d}]}]},{conditions:[{[C]:e,[D]:[{[C]:f,[D]:[m,"name"]},"aws"]}],[B]:b,rules:[{conditions:v,[B]:b,rules:[{conditions:w,[B]:b,rules:[{endpoint:{url:"https://shield-fips.{Region}.api.aws",properties:n,headers:l},[B]:d}]},o]},{conditions:t,[B]:b,rules:[{conditions:x,[B]:b,rules:[{endpoint:{url:g,properties:n,headers:l},[B]:d}]},p]},{conditions:u,[B]:b,rules:[{conditions:y,[B]:b,rules:[{endpoint:{url:"https://shield.{Region}.api.aws",properties:n,headers:l},[B]:d}]},q]},{endpoint:r,[B]:d}]},{conditions:v,[B]:b,rules:[{conditions:w,[B]:b,rules:[{endpoint:{url:"https://shield-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},[B]:d}]},o]},{conditions:t,[B]:b,rules:[{conditions:x,[B]:b,rules:[{[B]:b,rules:[{conditions:z,endpoint:{url:g,properties:l,headers:l},[B]:d},{endpoint:{url:"https://shield-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},[B]:d}]}]},p]},{conditions:u,[B]:b,rules:[{conditions:y,[B]:b,rules:[{endpoint:{url:"https://shield.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},[B]:d}]},q]},{[B]:b,rules:[{conditions:z,endpoint:r,[B]:d},{endpoint:{url:"https://shield.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},[B]:d}]}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-signer/src/endpoint/ruleset.ts b/clients/client-signer/src/endpoint/ruleset.ts index 3b8e660ca4ec..9b6601954001 100644 --- a/clients/client-signer/src/endpoint/ruleset.ts +++ b/clients/client-signer/src/endpoint/ruleset.ts @@ -6,26 +6,24 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; 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}]}]}; +const p="required", +q="fn", +r="argv", +s="ref"; +const a="PartitionResult", +b="tree", +c="error", +d="endpoint", +e={[p]:false,"type":"String"}, +f={[p]:true,"default":false,"type":"Boolean"}, +g={[s]:"Endpoint"}, +h={[q]:"booleanEquals",[r]:[{[s]:"UseFIPS"},true]}, +i={[q]:"booleanEquals",[r]:[{[s]:"UseDualStack"},true]}, +j={}, +k={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsFIPS"]}]}, +l={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsDualStack"]}]}, +m=[g], +n=[h], +o=[i]; +const _data={version:"1.0",parameters:{Region:e,UseDualStack:f,UseFIPS:f,Endpoint:e},rules:[{conditions:[{[q]:"aws.partition",[r]:[{[s]:"Region"}],assign:a}],type:b,rules:[{conditions:[{[q]:"isSet",[r]:m},{[q]:"parseURL",[r]:m,assign:"url"}],type:b,rules:[{conditions:n,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:c},{type:b,rules:[{conditions:o,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:c},{endpoint:{url:g,properties:j,headers:j},type:d}]}]},{conditions:[h,i],type:b,rules:[{conditions:[k,l],type:b,rules:[{endpoint:{url:"https://signer-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:c}]},{conditions:n,type:b,rules:[{conditions:[k],type:b,rules:[{endpoint:{url:"https://signer-fips.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]},{error:"FIPS is enabled but this partition does not support FIPS",type:c}]},{conditions:o,type:b,rules:[{conditions:[l],type:b,rules:[{endpoint:{url:"https://signer.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"DualStack is enabled but this partition does not support DualStack",type:c}]},{endpoint:{url:"https://signer.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-simspaceweaver/src/endpoint/ruleset.ts b/clients/client-simspaceweaver/src/endpoint/ruleset.ts index aa185c8a2114..a981c3f1cbd6 100644 --- a/clients/client-simspaceweaver/src/endpoint/ruleset.ts +++ b/clients/client-simspaceweaver/src/endpoint/ruleset.ts @@ -6,26 +6,24 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; 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}]}]}; +const p="required", +q="fn", +r="argv", +s="ref"; +const a="PartitionResult", +b="tree", +c="error", +d="endpoint", +e={[p]:false,"type":"String"}, +f={[p]:true,"default":false,"type":"Boolean"}, +g={[s]:"Endpoint"}, +h={[q]:"booleanEquals",[r]:[{[s]:"UseFIPS"},true]}, +i={[q]:"booleanEquals",[r]:[{[s]:"UseDualStack"},true]}, +j={}, +k={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsFIPS"]}]}, +l={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsDualStack"]}]}, +m=[g], +n=[h], +o=[i]; +const _data={version:"1.0",parameters:{Region:e,UseDualStack:f,UseFIPS:f,Endpoint:e},rules:[{conditions:[{[q]:"aws.partition",[r]:[{[s]:"Region"}],assign:a}],type:b,rules:[{conditions:[{[q]:"isSet",[r]:m},{[q]:"parseURL",[r]:m,assign:"url"}],type:b,rules:[{conditions:n,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:c},{type:b,rules:[{conditions:o,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:c},{endpoint:{url:g,properties:j,headers:j},type:d}]}]},{conditions:[h,i],type:b,rules:[{conditions:[k,l],type:b,rules:[{endpoint:{url:"https://simspaceweaver-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:c}]},{conditions:n,type:b,rules:[{conditions:[k],type:b,rules:[{endpoint:{url:"https://simspaceweaver-fips.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]},{error:"FIPS is enabled but this partition does not support FIPS",type:c}]},{conditions:o,type:b,rules:[{conditions:[l],type:b,rules:[{endpoint:{url:"https://simspaceweaver.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"DualStack is enabled but this partition does not support DualStack",type:c}]},{endpoint:{url:"https://simspaceweaver.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-sms/src/endpoint/ruleset.ts b/clients/client-sms/src/endpoint/ruleset.ts index 6842b1c68346..9f310c92b712 100644 --- a/clients/client-sms/src/endpoint/ruleset.ts +++ b/clients/client-sms/src/endpoint/ruleset.ts @@ -6,26 +6,24 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; 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}]}]}; +const p="required", +q="fn", +r="argv", +s="ref"; +const a="PartitionResult", +b="tree", +c="error", +d="endpoint", +e={[p]:false,"type":"String"}, +f={[p]:true,"default":false,"type":"Boolean"}, +g={[s]:"Endpoint"}, +h={[q]:"booleanEquals",[r]:[{[s]:"UseFIPS"},true]}, +i={[q]:"booleanEquals",[r]:[{[s]:"UseDualStack"},true]}, +j={}, +k={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsFIPS"]}]}, +l={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsDualStack"]}]}, +m=[g], +n=[h], +o=[i]; +const _data={version:"1.0",parameters:{Region:e,UseDualStack:f,UseFIPS:f,Endpoint:e},rules:[{conditions:[{[q]:"aws.partition",[r]:[{[s]:"Region"}],assign:a}],type:b,rules:[{conditions:[{[q]:"isSet",[r]:m},{[q]:"parseURL",[r]:m,assign:"url"}],type:b,rules:[{conditions:n,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:c},{type:b,rules:[{conditions:o,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:c},{endpoint:{url:g,properties:j,headers:j},type:d}]}]},{conditions:[h,i],type:b,rules:[{conditions:[k,l],type:b,rules:[{endpoint:{url:"https://sms-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:c}]},{conditions:n,type:b,rules:[{conditions:[k],type:b,rules:[{type:b,rules:[{endpoint:{url:"https://sms-fips.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:c}]},{conditions:o,type:b,rules:[{conditions:[l],type:b,rules:[{endpoint:{url:"https://sms.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"DualStack is enabled but this partition does not support DualStack",type:c}]},{endpoint:{url:"https://sms.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-snow-device-management/src/endpoint/ruleset.ts b/clients/client-snow-device-management/src/endpoint/ruleset.ts index f6f480e52399..e98c8322acd9 100644 --- a/clients/client-snow-device-management/src/endpoint/ruleset.ts +++ b/clients/client-snow-device-management/src/endpoint/ruleset.ts @@ -6,26 +6,24 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; 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}]}]}; +const p="required", +q="fn", +r="argv", +s="ref"; +const a="PartitionResult", +b="tree", +c="error", +d="endpoint", +e={[p]:false,"type":"String"}, +f={[p]:true,"default":false,"type":"Boolean"}, +g={[s]:"Endpoint"}, +h={[q]:"booleanEquals",[r]:[{[s]:"UseFIPS"},true]}, +i={[q]:"booleanEquals",[r]:[{[s]:"UseDualStack"},true]}, +j={}, +k={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsFIPS"]}]}, +l={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsDualStack"]}]}, +m=[g], +n=[h], +o=[i]; +const _data={version:"1.0",parameters:{Region:e,UseDualStack:f,UseFIPS:f,Endpoint:e},rules:[{conditions:[{[q]:"aws.partition",[r]:[{[s]:"Region"}],assign:a}],type:b,rules:[{conditions:[{[q]:"isSet",[r]:m},{[q]:"parseURL",[r]:m,assign:"url"}],type:b,rules:[{conditions:n,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:c},{type:b,rules:[{conditions:o,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:c},{endpoint:{url:g,properties:j,headers:j},type:d}]}]},{conditions:[h,i],type:b,rules:[{conditions:[k,l],type:b,rules:[{endpoint:{url:"https://snow-device-management-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:c}]},{conditions:n,type:b,rules:[{conditions:[k],type:b,rules:[{endpoint:{url:"https://snow-device-management-fips.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]},{error:"FIPS is enabled but this partition does not support FIPS",type:c}]},{conditions:o,type:b,rules:[{conditions:[l],type:b,rules:[{endpoint:{url:"https://snow-device-management.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"DualStack is enabled but this partition does not support DualStack",type:c}]},{endpoint:{url:"https://snow-device-management.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-snowball/src/endpoint/ruleset.ts b/clients/client-snowball/src/endpoint/ruleset.ts index 8e97eb268f1e..f95671b85f19 100644 --- a/clients/client-snowball/src/endpoint/ruleset.ts +++ b/clients/client-snowball/src/endpoint/ruleset.ts @@ -6,26 +6,24 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; 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}]}]}; +const p="required", +q="fn", +r="argv", +s="ref"; +const a="PartitionResult", +b="tree", +c="error", +d="endpoint", +e={[p]:false,"type":"String"}, +f={[p]:true,"default":false,"type":"Boolean"}, +g={[s]:"Endpoint"}, +h={[q]:"booleanEquals",[r]:[{[s]:"UseFIPS"},true]}, +i={[q]:"booleanEquals",[r]:[{[s]:"UseDualStack"},true]}, +j={}, +k={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsFIPS"]}]}, +l={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsDualStack"]}]}, +m=[g], +n=[h], +o=[i]; +const _data={version:"1.0",parameters:{Region:e,UseDualStack:f,UseFIPS:f,Endpoint:e},rules:[{conditions:[{[q]:"aws.partition",[r]:[{[s]:"Region"}],assign:a}],type:b,rules:[{conditions:[{[q]:"isSet",[r]:m},{[q]:"parseURL",[r]:m,assign:"url"}],type:b,rules:[{conditions:n,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:c},{type:b,rules:[{conditions:o,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:c},{endpoint:{url:g,properties:j,headers:j},type:d}]}]},{conditions:[h,i],type:b,rules:[{conditions:[k,l],type:b,rules:[{endpoint:{url:"https://snowball-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:c}]},{conditions:n,type:b,rules:[{conditions:[k],type:b,rules:[{type:b,rules:[{endpoint:{url:"https://snowball-fips.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:c}]},{conditions:o,type:b,rules:[{conditions:[l],type:b,rules:[{endpoint:{url:"https://snowball.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"DualStack is enabled but this partition does not support DualStack",type:c}]},{endpoint:{url:"https://snowball.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-sns/src/endpoint/ruleset.ts b/clients/client-sns/src/endpoint/ruleset.ts index 846e804be3f5..89903d122886 100644 --- a/clients/client-sns/src/endpoint/ruleset.ts +++ b/clients/client-sns/src/endpoint/ruleset.ts @@ -6,28 +6,26 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; 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}]}]}; +const r="required", +s="fn", +t="argv", +u="ref"; +const a="PartitionResult", +b="tree", +c="error", +d="endpoint", +e="stringEquals", +f={[r]:false,"type":"String"}, +g={[r]:true,"default":false,"type":"Boolean"}, +h={[u]:"Region"}, +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]:a},"supportsFIPS"]}]}, +n={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:a},"supportsDualStack"]}]}, +o=[i], +p=[j], +q=[k]; +const _data={version:"1.0",parameters:{Region:f,UseDualStack:g,UseFIPS:g,Endpoint:f},rules:[{conditions:[{[s]:"aws.partition",[t]:[h],assign:a}],type:b,rules:[{conditions:[{[s]:"isSet",[t]:o},{[s]:"parseURL",[t]:o,assign:"url"}],type:b,rules:[{conditions:p,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:c},{type:b,rules:[{conditions:q,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:c},{endpoint:{url:i,properties:l,headers:l},type:d}]}]},{conditions:[j,k],type:b,rules:[{conditions:[m,n],type:b,rules:[{endpoint:{url:"https://sns-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:d}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:c}]},{conditions:p,type:b,rules:[{conditions:[m],type:b,rules:[{type:b,rules:[{conditions:[{[s]:e,[t]:[h,"us-gov-east-1"]}],endpoint:{url:"https://sns.us-gov-east-1.amazonaws.com",properties:l,headers:l},type:d},{conditions:[{[s]:e,[t]:[h,"us-gov-west-1"]}],endpoint:{url:"https://sns.us-gov-west-1.amazonaws.com",properties:l,headers:l},type:d},{endpoint:{url:"https://sns-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:d}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:c}]},{conditions:q,type:b,rules:[{conditions:[n],type:b,rules:[{endpoint:{url:"https://sns.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:d}]},{error:"DualStack is enabled but this partition does not support DualStack",type:c}]},{endpoint:{url:"https://sns.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:d}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-sqs/src/endpoint/ruleset.ts b/clients/client-sqs/src/endpoint/ruleset.ts index 3ef118f755c3..f539c08406de 100644 --- a/clients/client-sqs/src/endpoint/ruleset.ts +++ b/clients/client-sqs/src/endpoint/ruleset.ts @@ -6,29 +6,27 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; 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}]}]}; +const s="required", +t="fn", +u="argv", +v="ref"; +const a="PartitionResult", +b="tree", +c="error", +d="endpoint", +e="getAttr", +f={[s]:false,"type":"String"}, +g={[s]:true,"default":false,"type":"Boolean"}, +h={[v]:"Endpoint"}, +i={[t]:"booleanEquals",[u]:[{[v]:"UseFIPS"},true]}, +j={[t]:"booleanEquals",[u]:[{[v]:"UseDualStack"},true]}, +k={}, +l={[t]:"booleanEquals",[u]:[true,{[t]:e,[u]:[{[v]:a},"supportsFIPS"]}]}, +m={[v]:a}, +n={[t]:"booleanEquals",[u]:[true,{[t]:e,[u]:[m,"supportsDualStack"]}]}, +o={"url":"https://sqs.{Region}.{PartitionResult#dnsSuffix}","properties":{},"headers":{}}, +p=[h], +q=[i], +r=[j]; +const _data={version:"1.0",parameters:{Region:f,UseDualStack:g,UseFIPS:g,Endpoint:f},rules:[{conditions:[{[t]:"aws.partition",[u]:[{[v]:"Region"}],assign:a}],type:b,rules:[{conditions:[{[t]:"isSet",[u]:p},{[t]:"parseURL",[u]:p,assign:"url"}],type:b,rules:[{conditions:q,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:c},{type:b,rules:[{conditions:r,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:c},{endpoint:{url:h,properties:k,headers:k},type:d}]}]},{conditions:[i,j],type:b,rules:[{conditions:[l,n],type:b,rules:[{endpoint:{url:"https://sqs-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:k,headers:k},type:d}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:c}]},{conditions:q,type:b,rules:[{conditions:[l],type:b,rules:[{type:b,rules:[{conditions:[{[t]:"stringEquals",[u]:["aws-us-gov",{[t]:e,[u]:[m,"name"]}]}],endpoint:o,type:d},{endpoint:{url:"https://sqs-fips.{Region}.{PartitionResult#dnsSuffix}",properties:k,headers:k},type:d}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:c}]},{conditions:r,type:b,rules:[{conditions:[n],type:b,rules:[{endpoint:{url:"https://sqs.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:k,headers:k},type:d}]},{error:"DualStack is enabled but this partition does not support DualStack",type:c}]},{endpoint:o,type:d}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-ssm-contacts/src/endpoint/ruleset.ts b/clients/client-ssm-contacts/src/endpoint/ruleset.ts index 5a5a64aa2bf8..f5212d6a7a07 100644 --- a/clients/client-ssm-contacts/src/endpoint/ruleset.ts +++ b/clients/client-ssm-contacts/src/endpoint/ruleset.ts @@ -6,26 +6,24 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; 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}]}]}; +const p="required", +q="fn", +r="argv", +s="ref"; +const a="PartitionResult", +b="tree", +c="error", +d="endpoint", +e={[p]:false,"type":"String"}, +f={[p]:true,"default":false,"type":"Boolean"}, +g={[s]:"Endpoint"}, +h={[q]:"booleanEquals",[r]:[{[s]:"UseFIPS"},true]}, +i={[q]:"booleanEquals",[r]:[{[s]:"UseDualStack"},true]}, +j={}, +k={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsFIPS"]}]}, +l={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsDualStack"]}]}, +m=[g], +n=[h], +o=[i]; +const _data={version:"1.0",parameters:{Region:e,UseDualStack:f,UseFIPS:f,Endpoint:e},rules:[{conditions:[{[q]:"aws.partition",[r]:[{[s]:"Region"}],assign:a}],type:b,rules:[{conditions:[{[q]:"isSet",[r]:m},{[q]:"parseURL",[r]:m,assign:"url"}],type:b,rules:[{conditions:n,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:c},{type:b,rules:[{conditions:o,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:c},{endpoint:{url:g,properties:j,headers:j},type:d}]}]},{conditions:[h,i],type:b,rules:[{conditions:[k,l],type:b,rules:[{endpoint:{url:"https://ssm-contacts-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:c}]},{conditions:n,type:b,rules:[{conditions:[k],type:b,rules:[{endpoint:{url:"https://ssm-contacts-fips.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]},{error:"FIPS is enabled but this partition does not support FIPS",type:c}]},{conditions:o,type:b,rules:[{conditions:[l],type:b,rules:[{endpoint:{url:"https://ssm-contacts.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"DualStack is enabled but this partition does not support DualStack",type:c}]},{endpoint:{url:"https://ssm-contacts.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-ssm-incidents/src/endpoint/ruleset.ts b/clients/client-ssm-incidents/src/endpoint/ruleset.ts index 8c48e95ec441..d91458abc25e 100644 --- a/clients/client-ssm-incidents/src/endpoint/ruleset.ts +++ b/clients/client-ssm-incidents/src/endpoint/ruleset.ts @@ -6,26 +6,24 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; 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}]}]}; +const p="required", +q="fn", +r="argv", +s="ref"; +const a="PartitionResult", +b="tree", +c="error", +d="endpoint", +e={[p]:false,"type":"String"}, +f={[p]:true,"default":false,"type":"Boolean"}, +g={[s]:"Endpoint"}, +h={[q]:"booleanEquals",[r]:[{[s]:"UseFIPS"},true]}, +i={[q]:"booleanEquals",[r]:[{[s]:"UseDualStack"},true]}, +j={}, +k={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsFIPS"]}]}, +l={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsDualStack"]}]}, +m=[g], +n=[h], +o=[i]; +const _data={version:"1.0",parameters:{Region:e,UseDualStack:f,UseFIPS:f,Endpoint:e},rules:[{conditions:[{[q]:"aws.partition",[r]:[{[s]:"Region"}],assign:a}],type:b,rules:[{conditions:[{[q]:"isSet",[r]:m},{[q]:"parseURL",[r]:m,assign:"url"}],type:b,rules:[{conditions:n,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:c},{type:b,rules:[{conditions:o,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:c},{endpoint:{url:g,properties:j,headers:j},type:d}]}]},{conditions:[h,i],type:b,rules:[{conditions:[k,l],type:b,rules:[{endpoint:{url:"https://ssm-incidents-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:c}]},{conditions:n,type:b,rules:[{conditions:[k],type:b,rules:[{type:b,rules:[{endpoint:{url:"https://ssm-incidents-fips.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:c}]},{conditions:o,type:b,rules:[{conditions:[l],type:b,rules:[{endpoint:{url:"https://ssm-incidents.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"DualStack is enabled but this partition does not support DualStack",type:c}]},{endpoint:{url:"https://ssm-incidents.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-ssm-sap/src/endpoint/ruleset.ts b/clients/client-ssm-sap/src/endpoint/ruleset.ts index 10d85f53fbdb..a669b84e72d2 100644 --- a/clients/client-ssm-sap/src/endpoint/ruleset.ts +++ b/clients/client-ssm-sap/src/endpoint/ruleset.ts @@ -6,26 +6,25 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; or see "smithy.rules#endpointRuleSet" in codegen/sdk-codegen/aws-models/ssm-sap.json */ -const s="fn", -t="argv", -u="ref"; +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={[u]:"Endpoint"}, -j={[s]:"booleanEquals",[t]:[{[u]:"UseFIPS"},true]}, -k={[s]:"booleanEquals",[t]:[{[u]:"UseDualStack"},true]}, +d="PartitionResult", +e="tree", +f="error", +g="endpoint", +h={"required":true,"default":false,"type":"Boolean"}, +i={[t]:"Endpoint"}, +j={[r]:"booleanEquals",[s]:[{[t]:"UseFIPS"},true]}, +k={[r]:"booleanEquals",[s]:[{[t]:"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"]}]}, +m={[r]:"booleanEquals",[s]:[true,{[r]:"getAttr",[s]:[{[t]:d},"supportsFIPS"]}]}, +n={[r]:"booleanEquals",[s]:[true,{[r]:"getAttr",[s]:[{[t]:d},"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}]}]}; +q=[k]; +const _data={version:"1.0",parameters:{Region:{required:a,type:c},UseDualStack:h,UseFIPS:h,Endpoint:{required:b,type:c}},rules:[{conditions:[{[r]:"aws.partition",[s]:[{[t]:"Region"}],assign:d}],type:e,rules:[{conditions:[{[r]:"isSet",[s]:o},{[r]:"parseURL",[s]:o,assign:"url"}],type:e,rules:[{conditions:p,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:f},{type:e,rules:[{conditions:q,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:f},{endpoint:{url:i,properties:l,headers:l},type:g}]}]},{conditions:[j,k],type:e,rules:[{conditions:[m,n],type:e,rules:[{endpoint:{url:"https://ssm-sap-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:g}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:f}]},{conditions:p,type:e,rules:[{conditions:[m],type:e,rules:[{endpoint:{url:"https://ssm-sap-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:g}]},{error:"FIPS is enabled but this partition does not support FIPS",type:f}]},{conditions:q,type:e,rules:[{conditions:[n],type:e,rules:[{endpoint:{url:"https://ssm-sap.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:g}]},{error:"DualStack is enabled but this partition does not support DualStack",type:f}]},{endpoint:{url:"https://ssm-sap.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:g}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-ssm/src/endpoint/ruleset.ts b/clients/client-ssm/src/endpoint/ruleset.ts index 4d3d20f6d2c5..6449ef3c809d 100644 --- a/clients/client-ssm/src/endpoint/ruleset.ts +++ b/clients/client-ssm/src/endpoint/ruleset.ts @@ -6,29 +6,27 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; 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}]}]}; +const s="required", +t="fn", +u="argv", +v="ref"; +const a="PartitionResult", +b="tree", +c="error", +d="endpoint", +e="getAttr", +f={[s]:false,"type":"String"}, +g={[s]:true,"default":false,"type":"Boolean"}, +h={[v]:"Endpoint"}, +i={[t]:"booleanEquals",[u]:[{[v]:"UseFIPS"},true]}, +j={[t]:"booleanEquals",[u]:[{[v]:"UseDualStack"},true]}, +k={}, +l={[t]:"booleanEquals",[u]:[true,{[t]:e,[u]:[{[v]:a},"supportsFIPS"]}]}, +m={[v]:a}, +n={[t]:"booleanEquals",[u]:[true,{[t]:e,[u]:[m,"supportsDualStack"]}]}, +o={"url":"https://ssm.{Region}.{PartitionResult#dnsSuffix}","properties":{},"headers":{}}, +p=[h], +q=[i], +r=[j]; +const _data={version:"1.0",parameters:{Region:f,UseDualStack:g,UseFIPS:g,Endpoint:f},rules:[{conditions:[{[t]:"aws.partition",[u]:[{[v]:"Region"}],assign:a}],type:b,rules:[{conditions:[{[t]:"isSet",[u]:p},{[t]:"parseURL",[u]:p,assign:"url"}],type:b,rules:[{conditions:q,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:c},{type:b,rules:[{conditions:r,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:c},{endpoint:{url:h,properties:k,headers:k},type:d}]}]},{conditions:[i,j],type:b,rules:[{conditions:[l,n],type:b,rules:[{endpoint:{url:"https://ssm-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:k,headers:k},type:d}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:c}]},{conditions:q,type:b,rules:[{conditions:[l],type:b,rules:[{type:b,rules:[{conditions:[{[t]:"stringEquals",[u]:["aws-us-gov",{[t]:e,[u]:[m,"name"]}]}],endpoint:o,type:d},{endpoint:{url:"https://ssm-fips.{Region}.{PartitionResult#dnsSuffix}",properties:k,headers:k},type:d}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:c}]},{conditions:r,type:b,rules:[{conditions:[n],type:b,rules:[{endpoint:{url:"https://ssm.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:k,headers:k},type:d}]},{error:"DualStack is enabled but this partition does not support DualStack",type:c}]},{endpoint:o,type:d}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-sso-admin/src/endpoint/ruleset.ts b/clients/client-sso-admin/src/endpoint/ruleset.ts index 7e0b5dc19f67..b9edc6c077b5 100644 --- a/clients/client-sso-admin/src/endpoint/ruleset.ts +++ b/clients/client-sso-admin/src/endpoint/ruleset.ts @@ -6,26 +6,24 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; 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}]}]}; +const p="required", +q="fn", +r="argv", +s="ref"; +const a="PartitionResult", +b="tree", +c="error", +d="endpoint", +e={[p]:false,"type":"String"}, +f={[p]:true,"default":false,"type":"Boolean"}, +g={[s]:"Endpoint"}, +h={[q]:"booleanEquals",[r]:[{[s]:"UseFIPS"},true]}, +i={[q]:"booleanEquals",[r]:[{[s]:"UseDualStack"},true]}, +j={}, +k={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsFIPS"]}]}, +l={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsDualStack"]}]}, +m=[g], +n=[h], +o=[i]; +const _data={version:"1.0",parameters:{Region:e,UseDualStack:f,UseFIPS:f,Endpoint:e},rules:[{conditions:[{[q]:"aws.partition",[r]:[{[s]:"Region"}],assign:a}],type:b,rules:[{conditions:[{[q]:"isSet",[r]:m},{[q]:"parseURL",[r]:m,assign:"url"}],type:b,rules:[{conditions:n,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:c},{type:b,rules:[{conditions:o,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:c},{endpoint:{url:g,properties:j,headers:j},type:d}]}]},{conditions:[h,i],type:b,rules:[{conditions:[k,l],type:b,rules:[{endpoint:{url:"https://sso-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:c}]},{conditions:n,type:b,rules:[{conditions:[k],type:b,rules:[{type:b,rules:[{endpoint:{url:"https://sso-fips.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:c}]},{conditions:o,type:b,rules:[{conditions:[l],type:b,rules:[{endpoint:{url:"https://sso.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"DualStack is enabled but this partition does not support DualStack",type:c}]},{endpoint:{url:"https://sso.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-sso-oidc/src/endpoint/ruleset.ts b/clients/client-sso-oidc/src/endpoint/ruleset.ts index 79edf7fee516..76cc79b44e84 100644 --- a/clients/client-sso-oidc/src/endpoint/ruleset.ts +++ b/clients/client-sso-oidc/src/endpoint/ruleset.ts @@ -6,26 +6,24 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; 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}]}]}; +const p="required", +q="fn", +r="argv", +s="ref"; +const a="PartitionResult", +b="tree", +c="error", +d="endpoint", +e={[p]:false,"type":"String"}, +f={[p]:true,"default":false,"type":"Boolean"}, +g={[s]:"Endpoint"}, +h={[q]:"booleanEquals",[r]:[{[s]:"UseFIPS"},true]}, +i={[q]:"booleanEquals",[r]:[{[s]:"UseDualStack"},true]}, +j={}, +k={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsFIPS"]}]}, +l={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsDualStack"]}]}, +m=[g], +n=[h], +o=[i]; +const _data={version:"1.0",parameters:{Region:e,UseDualStack:f,UseFIPS:f,Endpoint:e},rules:[{conditions:[{[q]:"aws.partition",[r]:[{[s]:"Region"}],assign:a}],type:b,rules:[{conditions:[{[q]:"isSet",[r]:m},{[q]:"parseURL",[r]:m,assign:"url"}],type:b,rules:[{conditions:n,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:c},{type:b,rules:[{conditions:o,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:c},{endpoint:{url:g,properties:j,headers:j},type:d}]}]},{conditions:[h,i],type:b,rules:[{conditions:[k,l],type:b,rules:[{endpoint:{url:"https://oidc-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:c}]},{conditions:n,type:b,rules:[{conditions:[k],type:b,rules:[{type:b,rules:[{endpoint:{url:"https://oidc-fips.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:c}]},{conditions:o,type:b,rules:[{conditions:[l],type:b,rules:[{endpoint:{url:"https://oidc.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"DualStack is enabled but this partition does not support DualStack",type:c}]},{endpoint:{url:"https://oidc.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-sso/src/endpoint/ruleset.ts b/clients/client-sso/src/endpoint/ruleset.ts index b961e575e11b..77bd0e5f3e9a 100644 --- a/clients/client-sso/src/endpoint/ruleset.ts +++ b/clients/client-sso/src/endpoint/ruleset.ts @@ -6,26 +6,24 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; 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}]}]}; +const p="required", +q="fn", +r="argv", +s="ref"; +const a="PartitionResult", +b="tree", +c="error", +d="endpoint", +e={[p]:false,"type":"String"}, +f={[p]:true,"default":false,"type":"Boolean"}, +g={[s]:"Endpoint"}, +h={[q]:"booleanEquals",[r]:[{[s]:"UseFIPS"},true]}, +i={[q]:"booleanEquals",[r]:[{[s]:"UseDualStack"},true]}, +j={}, +k={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsFIPS"]}]}, +l={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsDualStack"]}]}, +m=[g], +n=[h], +o=[i]; +const _data={version:"1.0",parameters:{Region:e,UseDualStack:f,UseFIPS:f,Endpoint:e},rules:[{conditions:[{[q]:"aws.partition",[r]:[{[s]:"Region"}],assign:a}],type:b,rules:[{conditions:[{[q]:"isSet",[r]:m},{[q]:"parseURL",[r]:m,assign:"url"}],type:b,rules:[{conditions:n,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:c},{type:b,rules:[{conditions:o,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:c},{endpoint:{url:g,properties:j,headers:j},type:d}]}]},{conditions:[h,i],type:b,rules:[{conditions:[k,l],type:b,rules:[{endpoint:{url:"https://portal.sso-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:c}]},{conditions:n,type:b,rules:[{conditions:[k],type:b,rules:[{type:b,rules:[{endpoint:{url:"https://portal.sso-fips.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:c}]},{conditions:o,type:b,rules:[{conditions:[l],type:b,rules:[{endpoint:{url:"https://portal.sso.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"DualStack is enabled but this partition does not support DualStack",type:c}]},{endpoint:{url:"https://portal.sso.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-storage-gateway/src/endpoint/ruleset.ts b/clients/client-storage-gateway/src/endpoint/ruleset.ts index 74c4418f8ae4..ec86c27ea789 100644 --- a/clients/client-storage-gateway/src/endpoint/ruleset.ts +++ b/clients/client-storage-gateway/src/endpoint/ruleset.ts @@ -6,26 +6,24 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; 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}]}]}; +const p="required", +q="fn", +r="argv", +s="ref"; +const a="PartitionResult", +b="tree", +c="error", +d="endpoint", +e={[p]:false,"type":"String"}, +f={[p]:true,"default":false,"type":"Boolean"}, +g={[s]:"Endpoint"}, +h={[q]:"booleanEquals",[r]:[{[s]:"UseFIPS"},true]}, +i={[q]:"booleanEquals",[r]:[{[s]:"UseDualStack"},true]}, +j={}, +k={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsFIPS"]}]}, +l={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsDualStack"]}]}, +m=[g], +n=[h], +o=[i]; +const _data={version:"1.0",parameters:{Region:e,UseDualStack:f,UseFIPS:f,Endpoint:e},rules:[{conditions:[{[q]:"aws.partition",[r]:[{[s]:"Region"}],assign:a}],type:b,rules:[{conditions:[{[q]:"isSet",[r]:m},{[q]:"parseURL",[r]:m,assign:"url"}],type:b,rules:[{conditions:n,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:c},{type:b,rules:[{conditions:o,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:c},{endpoint:{url:g,properties:j,headers:j},type:d}]}]},{conditions:[h,i],type:b,rules:[{conditions:[k,l],type:b,rules:[{endpoint:{url:"https://storagegateway-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:c}]},{conditions:n,type:b,rules:[{conditions:[k],type:b,rules:[{type:b,rules:[{endpoint:{url:"https://storagegateway-fips.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:c}]},{conditions:o,type:b,rules:[{conditions:[l],type:b,rules:[{endpoint:{url:"https://storagegateway.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"DualStack is enabled but this partition does not support DualStack",type:c}]},{endpoint:{url:"https://storagegateway.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-sts/src/endpoint/ruleset.ts b/clients/client-sts/src/endpoint/ruleset.ts index e009a41b9496..8c8d4c605147 100644 --- a/clients/client-sts/src/endpoint/ruleset.ts +++ b/clients/client-sts/src/endpoint/ruleset.ts @@ -6,44 +6,44 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; or see "smithy.rules#endpointRuleSet" in codegen/sdk-codegen/aws-models/sts.json */ -const I="fn", +const H="required", +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", +c="PartitionResult", +d="tree", +e="booleanEquals", +f="stringEquals", +g="https://sts.amazonaws.com", +h="sigv4", +i="sts", +j="us-east-1", +k="endpoint", +l="https://sts.{Region}.{PartitionResult#dnsSuffix}", +m="error", +n="getAttr", +o={[H]:false,"type":"String"}, +p={[H]:true,"default":false,"type":"Boolean"}, 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]:{}}, +v={"url":g,[L]:{"authSchemes":[{"name":h,"signingName":i,"signingRegion":j}]},[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]:{}}, +x={[I]:e,[J]:[r,true]}, +y={[I]:e,[J]:[s,true]}, +z={[I]:e,[J]:[true,{[I]:n,[J]:[{[K]:c},"supportsFIPS"]}]}, +A={[K]:c}, +B={[I]:e,[J]:[true,{[I]:n,[J]:[A,"supportsDualStack"]}]}, +C={"url":l,[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}]}]}]}; +E=[{[I]:f,[J]:[q,"aws-global"]}], +F=[x], +G=[y]; +const _data={version:"1.0",parameters:{Region:o,UseDualStack:p,UseFIPS:p,Endpoint:o,UseGlobalEndpoint:p},rules:[{conditions:[{[I]:"aws.partition",[J]:[q],assign:c}],type:d,rules:[{conditions:[{[I]:e,[J]:[{[K]:"UseGlobalEndpoint"},b]},{[I]:e,[J]:[r,a]},{[I]:e,[J]:[s,a]},{[I]:"not",[J]:[t]}],type:d,rules:[{conditions:[{[I]:f,[J]:[q,"ap-northeast-1"]}],endpoint:v,type:k},{conditions:[{[I]:f,[J]:[q,"ap-south-1"]}],endpoint:v,type:k},{conditions:[{[I]:f,[J]:[q,"ap-southeast-1"]}],endpoint:v,type:k},{conditions:[{[I]:f,[J]:[q,"ap-southeast-2"]}],endpoint:v,type:k},{conditions:E,endpoint:v,type:k},{conditions:[{[I]:f,[J]:[q,"ca-central-1"]}],endpoint:v,type:k},{conditions:[{[I]:f,[J]:[q,"eu-central-1"]}],endpoint:v,type:k},{conditions:[{[I]:f,[J]:[q,"eu-north-1"]}],endpoint:v,type:k},{conditions:[{[I]:f,[J]:[q,"eu-west-1"]}],endpoint:v,type:k},{conditions:[{[I]:f,[J]:[q,"eu-west-2"]}],endpoint:v,type:k},{conditions:[{[I]:f,[J]:[q,"eu-west-3"]}],endpoint:v,type:k},{conditions:[{[I]:f,[J]:[q,"sa-east-1"]}],endpoint:v,type:k},{conditions:[{[I]:f,[J]:[q,j]}],endpoint:v,type:k},{conditions:[{[I]:f,[J]:[q,"us-east-2"]}],endpoint:v,type:k},{conditions:[{[I]:f,[J]:[q,"us-west-1"]}],endpoint:v,type:k},{conditions:[{[I]:f,[J]:[q,"us-west-2"]}],endpoint:v,type:k},{endpoint:{url:l,[L]:{authSchemes:[{name:h,signingName:i,signingRegion:"{Region}"}]},[M]:w},type:k}]},{conditions:[t,{[I]:"parseURL",[J]:D,assign:"url"}],type:d,rules:[{conditions:F,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:m},{type:d,rules:[{conditions:G,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:m},{endpoint:{url:u,[L]:w,[M]:w},type:k}]}]},{conditions:[x,y],type:d,rules:[{conditions:[z,B],type:d,rules:[{endpoint:{url:"https://sts-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",[L]:w,[M]:w},type:k}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:m}]},{conditions:F,type:d,rules:[{conditions:[z],type:d,rules:[{type:d,rules:[{conditions:[{[I]:f,[J]:["aws-us-gov",{[I]:n,[J]:[A,"name"]}]}],endpoint:C,type:k},{endpoint:{url:"https://sts-fips.{Region}.{PartitionResult#dnsSuffix}",[L]:w,[M]:w},type:k}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:m}]},{conditions:G,type:d,rules:[{conditions:[B],type:d,rules:[{endpoint:{url:"https://sts.{Region}.{PartitionResult#dualStackDnsSuffix}",[L]:w,[M]:w},type:k}]},{error:"DualStack is enabled but this partition does not support DualStack",type:m}]},{type:d,rules:[{conditions:E,endpoint:{url:g,[L]:{authSchemes:[{name:h,signingRegion:j,signingName:i}]},[M]:w},type:k},{endpoint:C,type:k}]}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-support-app/src/endpoint/ruleset.ts b/clients/client-support-app/src/endpoint/ruleset.ts index cac51c27e4a0..55397d0df86a 100644 --- a/clients/client-support-app/src/endpoint/ruleset.ts +++ b/clients/client-support-app/src/endpoint/ruleset.ts @@ -6,26 +6,24 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; 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}]}]}; +const p="required", +q="fn", +r="argv", +s="ref"; +const a="PartitionResult", +b="tree", +c="error", +d="endpoint", +e={[p]:false,"type":"String"}, +f={[p]:true,"default":false,"type":"Boolean"}, +g={[s]:"Endpoint"}, +h={[q]:"booleanEquals",[r]:[{[s]:"UseFIPS"},true]}, +i={[q]:"booleanEquals",[r]:[{[s]:"UseDualStack"},true]}, +j={}, +k={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsFIPS"]}]}, +l={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsDualStack"]}]}, +m=[g], +n=[h], +o=[i]; +const _data={version:"1.0",parameters:{Region:e,UseDualStack:f,UseFIPS:f,Endpoint:e},rules:[{conditions:[{[q]:"aws.partition",[r]:[{[s]:"Region"}],assign:a}],type:b,rules:[{conditions:[{[q]:"isSet",[r]:m},{[q]:"parseURL",[r]:m,assign:"url"}],type:b,rules:[{conditions:n,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:c},{type:b,rules:[{conditions:o,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:c},{endpoint:{url:g,properties:j,headers:j},type:d}]}]},{conditions:[h,i],type:b,rules:[{conditions:[k,l],type:b,rules:[{endpoint:{url:"https://supportapp-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:c}]},{conditions:n,type:b,rules:[{conditions:[k],type:b,rules:[{endpoint:{url:"https://supportapp-fips.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]},{error:"FIPS is enabled but this partition does not support FIPS",type:c}]},{conditions:o,type:b,rules:[{conditions:[l],type:b,rules:[{endpoint:{url:"https://supportapp.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"DualStack is enabled but this partition does not support DualStack",type:c}]},{endpoint:{url:"https://supportapp.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-support/src/endpoint/ruleset.ts b/clients/client-support/src/endpoint/ruleset.ts index 0cc45e406707..9e3ec4c72b73 100644 --- a/clients/client-support/src/endpoint/ruleset.ts +++ b/clients/client-support/src/endpoint/ruleset.ts @@ -6,32 +6,30 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; 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}]}]}]}; +const v="required", +w="fn", +x="argv", +y="ref"; +const a="PartitionResult", +b="tree", +c="error", +d="endpoint", +e="stringEquals", +f="us-gov-west-1", +g="https://support.us-gov-west-1.amazonaws.com", +h="sigv4", +i="support", +j={[v]:false,"type":"String"}, +k={[v]:true,"default":false,"type":"Boolean"}, +l={[y]:"Region"}, +m={[y]:"Endpoint"}, +n={[w]:"booleanEquals",[x]:[{[y]:"UseFIPS"},true]}, +o={[w]:"booleanEquals",[x]:[{[y]:"UseDualStack"},true]}, +p={}, +q={[w]:"booleanEquals",[x]:[true,{[w]:"getAttr",[x]:[{[y]:a},"supportsFIPS"]}]}, +r={[w]:"booleanEquals",[x]:[true,{[w]:"getAttr",[x]:[{[y]:a},"supportsDualStack"]}]}, +s=[m], +t=[n], +u=[o]; +const _data={version:"1.0",parameters:{Region:j,UseDualStack:k,UseFIPS:k,Endpoint:j},rules:[{conditions:[{[w]:"aws.partition",[x]:[l],assign:a}],type:b,rules:[{conditions:[{[w]:"isSet",[x]:s},{[w]:"parseURL",[x]:s,assign:"url"}],type:b,rules:[{conditions:t,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:c},{type:b,rules:[{conditions:u,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:c},{endpoint:{url:m,properties:p,headers:p},type:d}]}]},{conditions:[n,o],type:b,rules:[{conditions:[q,r],type:b,rules:[{endpoint:{url:"https://support-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:p,headers:p},type:d}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:c}]},{conditions:t,type:b,rules:[{conditions:[q],type:b,rules:[{type:b,rules:[{conditions:[{[w]:e,[x]:[l,f]}],endpoint:{url:g,properties:p,headers:p},type:d},{endpoint:{url:"https://support-fips.{Region}.{PartitionResult#dnsSuffix}",properties:p,headers:p},type:d}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:c}]},{conditions:u,type:b,rules:[{conditions:[r],type:b,rules:[{endpoint:{url:"https://support.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:p,headers:p},type:d}]},{error:"DualStack is enabled but this partition does not support DualStack",type:c}]},{type:b,rules:[{conditions:[{[w]:e,[x]:[l,"aws-global"]}],endpoint:{url:"https://support.us-east-1.amazonaws.com",properties:{authSchemes:[{name:h,signingName:i,signingRegion:"us-east-1"}]},headers:p},type:d},{conditions:[{[w]:e,[x]:[l,"aws-cn-global"]}],endpoint:{url:"https://support.cn-north-1.amazonaws.com.cn",properties:{authSchemes:[{name:h,signingName:i,signingRegion:"cn-north-1"}]},headers:p},type:d},{conditions:[{[w]:e,[x]:[l,"aws-us-gov-global"]}],endpoint:{url:g,properties:{authSchemes:[{name:h,signingName:i,signingRegion:f}]},headers:p},type:d},{conditions:[{[w]:e,[x]:[l,"aws-iso-global"]}],endpoint:{url:"https://support.us-iso-east-1.c2s.ic.gov",properties:{authSchemes:[{name:h,signingName:i,signingRegion:"us-iso-east-1"}]},headers:p},type:d},{conditions:[{[w]:e,[x]:[l,"aws-iso-b-global"]}],endpoint:{url:"https://support.us-isob-east-1.sc2s.sgov.gov",properties:{authSchemes:[{name:h,signingName:i,signingRegion:"us-isob-east-1"}]},headers:p},type:d},{endpoint:{url:"https://support.{Region}.{PartitionResult#dnsSuffix}",properties:p,headers:p},type:d}]}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-swf/src/endpoint/ruleset.ts b/clients/client-swf/src/endpoint/ruleset.ts index 6a37e8565f74..7cf1e0cbb95d 100644 --- a/clients/client-swf/src/endpoint/ruleset.ts +++ b/clients/client-swf/src/endpoint/ruleset.ts @@ -6,26 +6,24 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; 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}]}]}; +const p="required", +q="fn", +r="argv", +s="ref"; +const a="PartitionResult", +b="tree", +c="error", +d="endpoint", +e={[p]:false,"type":"String"}, +f={[p]:true,"default":false,"type":"Boolean"}, +g={[s]:"Endpoint"}, +h={[q]:"booleanEquals",[r]:[{[s]:"UseFIPS"},true]}, +i={[q]:"booleanEquals",[r]:[{[s]:"UseDualStack"},true]}, +j={}, +k={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsFIPS"]}]}, +l={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsDualStack"]}]}, +m=[g], +n=[h], +o=[i]; +const _data={version:"1.0",parameters:{Region:e,UseDualStack:f,UseFIPS:f,Endpoint:e},rules:[{conditions:[{[q]:"aws.partition",[r]:[{[s]:"Region"}],assign:a}],type:b,rules:[{conditions:[{[q]:"isSet",[r]:m},{[q]:"parseURL",[r]:m,assign:"url"}],type:b,rules:[{conditions:n,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:c},{type:b,rules:[{conditions:o,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:c},{endpoint:{url:g,properties:j,headers:j},type:d}]}]},{conditions:[h,i],type:b,rules:[{conditions:[k,l],type:b,rules:[{endpoint:{url:"https://swf-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:c}]},{conditions:n,type:b,rules:[{conditions:[k],type:b,rules:[{type:b,rules:[{endpoint:{url:"https://swf-fips.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:c}]},{conditions:o,type:b,rules:[{conditions:[l],type:b,rules:[{endpoint:{url:"https://swf.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"DualStack is enabled but this partition does not support DualStack",type:c}]},{endpoint:{url:"https://swf.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-synthetics/src/endpoint/ruleset.ts b/clients/client-synthetics/src/endpoint/ruleset.ts index 2ba8655540e1..fa208804b7fd 100644 --- a/clients/client-synthetics/src/endpoint/ruleset.ts +++ b/clients/client-synthetics/src/endpoint/ruleset.ts @@ -6,26 +6,24 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; 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}]}]}; +const p="required", +q="fn", +r="argv", +s="ref"; +const a="PartitionResult", +b="tree", +c="error", +d="endpoint", +e={[p]:false,"type":"String"}, +f={[p]:true,"default":false,"type":"Boolean"}, +g={[s]:"Endpoint"}, +h={[q]:"booleanEquals",[r]:[{[s]:"UseFIPS"},true]}, +i={[q]:"booleanEquals",[r]:[{[s]:"UseDualStack"},true]}, +j={}, +k={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsFIPS"]}]}, +l={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsDualStack"]}]}, +m=[g], +n=[h], +o=[i]; +const _data={version:"1.0",parameters:{Region:e,UseDualStack:f,UseFIPS:f,Endpoint:e},rules:[{conditions:[{[q]:"aws.partition",[r]:[{[s]:"Region"}],assign:a}],type:b,rules:[{conditions:[{[q]:"isSet",[r]:m},{[q]:"parseURL",[r]:m,assign:"url"}],type:b,rules:[{conditions:n,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:c},{type:b,rules:[{conditions:o,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:c},{endpoint:{url:g,properties:j,headers:j},type:d}]}]},{conditions:[h,i],type:b,rules:[{conditions:[k,l],type:b,rules:[{endpoint:{url:"https://synthetics-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:c}]},{conditions:n,type:b,rules:[{conditions:[k],type:b,rules:[{type:b,rules:[{endpoint:{url:"https://synthetics-fips.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:c}]},{conditions:o,type:b,rules:[{conditions:[l],type:b,rules:[{endpoint:{url:"https://synthetics.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"DualStack is enabled but this partition does not support DualStack",type:c}]},{endpoint:{url:"https://synthetics.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-textract/src/endpoint/ruleset.ts b/clients/client-textract/src/endpoint/ruleset.ts index 338cc77c4d39..9f0f9fe782c2 100644 --- a/clients/client-textract/src/endpoint/ruleset.ts +++ b/clients/client-textract/src/endpoint/ruleset.ts @@ -6,26 +6,25 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; or see "smithy.rules#endpointRuleSet" in codegen/sdk-codegen/aws-models/textract.json */ -const s="fn", -t="argv", -u="ref"; +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={[u]:"Endpoint"}, -j={[s]:"booleanEquals",[t]:[{[u]:"UseFIPS"},true]}, -k={[s]:"booleanEquals",[t]:[{[u]:"UseDualStack"},true]}, +d="PartitionResult", +e="tree", +f="error", +g="endpoint", +h={"required":true,"default":false,"type":"Boolean"}, +i={[t]:"Endpoint"}, +j={[r]:"booleanEquals",[s]:[{[t]:"UseFIPS"},true]}, +k={[r]:"booleanEquals",[s]:[{[t]:"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"]}]}, +m={[r]:"booleanEquals",[s]:[true,{[r]:"getAttr",[s]:[{[t]:d},"supportsFIPS"]}]}, +n={[r]:"booleanEquals",[s]:[true,{[r]:"getAttr",[s]:[{[t]:d},"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}]}]}; +q=[k]; +const _data={version:"1.0",parameters:{Region:{required:a,type:c},UseDualStack:h,UseFIPS:h,Endpoint:{required:b,type:c}},rules:[{conditions:[{[r]:"aws.partition",[s]:[{[t]:"Region"}],assign:d}],type:e,rules:[{conditions:[{[r]:"isSet",[s]:o},{[r]:"parseURL",[s]:o,assign:"url"}],type:e,rules:[{conditions:p,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:f},{type:e,rules:[{conditions:q,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:f},{endpoint:{url:i,properties:l,headers:l},type:g}]}]},{conditions:[j,k],type:e,rules:[{conditions:[m,n],type:e,rules:[{endpoint:{url:"https://textract-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:g}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:f}]},{conditions:p,type:e,rules:[{conditions:[m],type:e,rules:[{type:e,rules:[{endpoint:{url:"https://textract-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:g}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:f}]},{conditions:q,type:e,rules:[{conditions:[n],type:e,rules:[{endpoint:{url:"https://textract.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:g}]},{error:"DualStack is enabled but this partition does not support DualStack",type:f}]},{endpoint:{url:"https://textract.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:g}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-timestream-query/src/endpoint/ruleset.ts b/clients/client-timestream-query/src/endpoint/ruleset.ts index 195a7aa0e396..5b2d3a01c084 100644 --- a/clients/client-timestream-query/src/endpoint/ruleset.ts +++ b/clients/client-timestream-query/src/endpoint/ruleset.ts @@ -6,26 +6,24 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; 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}]}]}; +const p="required", +q="fn", +r="argv", +s="ref"; +const a="PartitionResult", +b="tree", +c="error", +d="endpoint", +e={[p]:false,"type":"String"}, +f={[p]:true,"default":false,"type":"Boolean"}, +g={[s]:"Endpoint"}, +h={[q]:"booleanEquals",[r]:[{[s]:"UseFIPS"},true]}, +i={[q]:"booleanEquals",[r]:[{[s]:"UseDualStack"},true]}, +j={}, +k={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsFIPS"]}]}, +l={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsDualStack"]}]}, +m=[g], +n=[h], +o=[i]; +const _data={version:"1.0",parameters:{Region:e,UseDualStack:f,UseFIPS:f,Endpoint:e},rules:[{conditions:[{[q]:"aws.partition",[r]:[{[s]:"Region"}],assign:a}],type:b,rules:[{conditions:[{[q]:"isSet",[r]:m},{[q]:"parseURL",[r]:m,assign:"url"}],type:b,rules:[{conditions:n,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:c},{type:b,rules:[{conditions:o,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:c},{endpoint:{url:g,properties:j,headers:j},type:d}]}]},{conditions:[h,i],type:b,rules:[{conditions:[k,l],type:b,rules:[{endpoint:{url:"https://query.timestream-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:c}]},{conditions:n,type:b,rules:[{conditions:[k],type:b,rules:[{endpoint:{url:"https://query.timestream-fips.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]},{error:"FIPS is enabled but this partition does not support FIPS",type:c}]},{conditions:o,type:b,rules:[{conditions:[l],type:b,rules:[{endpoint:{url:"https://query.timestream.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"DualStack is enabled but this partition does not support DualStack",type:c}]},{endpoint:{url:"https://query.timestream.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-timestream-write/src/endpoint/ruleset.ts b/clients/client-timestream-write/src/endpoint/ruleset.ts index e6dbae4c99e0..3132b986d79f 100644 --- a/clients/client-timestream-write/src/endpoint/ruleset.ts +++ b/clients/client-timestream-write/src/endpoint/ruleset.ts @@ -6,26 +6,24 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; 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}]}]}; +const p="required", +q="fn", +r="argv", +s="ref"; +const a="PartitionResult", +b="tree", +c="error", +d="endpoint", +e={[p]:false,"type":"String"}, +f={[p]:true,"default":false,"type":"Boolean"}, +g={[s]:"Endpoint"}, +h={[q]:"booleanEquals",[r]:[{[s]:"UseFIPS"},true]}, +i={[q]:"booleanEquals",[r]:[{[s]:"UseDualStack"},true]}, +j={}, +k={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsFIPS"]}]}, +l={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsDualStack"]}]}, +m=[g], +n=[h], +o=[i]; +const _data={version:"1.0",parameters:{Region:e,UseDualStack:f,UseFIPS:f,Endpoint:e},rules:[{conditions:[{[q]:"aws.partition",[r]:[{[s]:"Region"}],assign:a}],type:b,rules:[{conditions:[{[q]:"isSet",[r]:m},{[q]:"parseURL",[r]:m,assign:"url"}],type:b,rules:[{conditions:n,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:c},{type:b,rules:[{conditions:o,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:c},{endpoint:{url:g,properties:j,headers:j},type:d}]}]},{conditions:[h,i],type:b,rules:[{conditions:[k,l],type:b,rules:[{endpoint:{url:"https://ingest.timestream-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:c}]},{conditions:n,type:b,rules:[{conditions:[k],type:b,rules:[{endpoint:{url:"https://ingest.timestream-fips.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]},{error:"FIPS is enabled but this partition does not support FIPS",type:c}]},{conditions:o,type:b,rules:[{conditions:[l],type:b,rules:[{endpoint:{url:"https://ingest.timestream.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"DualStack is enabled but this partition does not support DualStack",type:c}]},{endpoint:{url:"https://ingest.timestream.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-transcribe-streaming/src/endpoint/ruleset.ts b/clients/client-transcribe-streaming/src/endpoint/ruleset.ts index 83c3d22284de..648486c83b4e 100644 --- a/clients/client-transcribe-streaming/src/endpoint/ruleset.ts +++ b/clients/client-transcribe-streaming/src/endpoint/ruleset.ts @@ -6,28 +6,26 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; 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}]}]}; +const r="required", +s="fn", +t="argv", +u="ref"; +const a="PartitionResult", +b="tree", +c="error", +d="endpoint", +e="stringEquals", +f={[r]:false,"type":"String"}, +g={[r]:true,"default":false,"type":"Boolean"}, +h={[u]:"Region"}, +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]:a},"supportsFIPS"]}]}, +n={[s]:"booleanEquals",[t]:[true,{[s]:"getAttr",[t]:[{[u]:a},"supportsDualStack"]}]}, +o=[i], +p=[j], +q=[k]; +const _data={version:"1.0",parameters:{Region:f,UseDualStack:g,UseFIPS:g,Endpoint:f},rules:[{conditions:[{[s]:"aws.partition",[t]:[h],assign:a}],type:b,rules:[{conditions:[{[s]:"isSet",[t]:o},{[s]:"parseURL",[t]:o,assign:"url"}],type:b,rules:[{conditions:p,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:c},{type:b,rules:[{conditions:q,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:c},{endpoint:{url:i,properties:l,headers:l},type:d}]}]},{conditions:[j,k],type:b,rules:[{conditions:[m,n],type:b,rules:[{endpoint:{url:"https://transcribestreaming-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:d}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:c}]},{conditions:p,type:b,rules:[{conditions:[m],type:b,rules:[{type:b,rules:[{conditions:[{[s]:e,[t]:[h,"transcribestreaming-ca-central-1"]}],endpoint:{url:"https://transcribestreaming-fips.ca-central-1.amazonaws.com",properties:l,headers:l},type:d},{conditions:[{[s]:e,[t]:[h,"transcribestreaming-us-east-1"]}],endpoint:{url:"https://transcribestreaming-fips.us-east-1.amazonaws.com",properties:l,headers:l},type:d},{conditions:[{[s]:e,[t]:[h,"transcribestreaming-us-east-2"]}],endpoint:{url:"https://transcribestreaming-fips.us-east-2.amazonaws.com",properties:l,headers:l},type:d},{conditions:[{[s]:e,[t]:[h,"transcribestreaming-us-west-2"]}],endpoint:{url:"https://transcribestreaming-fips.us-west-2.amazonaws.com",properties:l,headers:l},type:d},{endpoint:{url:"https://transcribestreaming-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:d}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:c}]},{conditions:q,type:b,rules:[{conditions:[n],type:b,rules:[{endpoint:{url:"https://transcribestreaming.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:d}]},{error:"DualStack is enabled but this partition does not support DualStack",type:c}]},{endpoint:{url:"https://transcribestreaming.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:d}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-transcribe/src/endpoint/ruleset.ts b/clients/client-transcribe/src/endpoint/ruleset.ts index bb8f8a1990c4..d03d76ec261f 100644 --- a/clients/client-transcribe/src/endpoint/ruleset.ts +++ b/clients/client-transcribe/src/endpoint/ruleset.ts @@ -6,29 +6,28 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; or see "smithy.rules#endpointRuleSet" in codegen/sdk-codegen/aws-models/transcribe.json */ -const v="fn", -w="argv", -x="ref"; +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={[x]:"Region"}, -k={[x]:"Endpoint"}, -l={[v]:"booleanEquals",[w]:[{[x]:"UseFIPS"},true]}, -m={[v]:"booleanEquals",[w]:[{[x]:"UseDualStack"},true]}, +d="PartitionResult", +e="tree", +f="error", +g="endpoint", +h="stringEquals", +i={"required":true,"default":false,"type":"Boolean"}, +j={[w]:"Region"}, +k={[w]:"Endpoint"}, +l={[u]:"booleanEquals",[v]:[{[w]:"UseFIPS"},true]}, +m={[u]:"booleanEquals",[v]:[{[w]:"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"]}, +o={[u]:"booleanEquals",[v]:[true,{[u]:"getAttr",[v]:[{[w]:d},"supportsFIPS"]}]}, +p={[u]:"booleanEquals",[v]:[true,{[u]:"getAttr",[v]:[{[w]:d},"supportsDualStack"]}]}, +q={[u]:"getAttr",[v]:[{[w]:d},"name"]}, r={"url":"https://fips.transcribe.{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://transcribe-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]:["aws-us-gov",q]}],endpoint:r,type:h},{conditions:t,endpoint:{url:"https://transcribe-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://transcribe.{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,type:f,rules:[{conditions:[{[v]:i,[w]:[j,"cn-north-1"]}],endpoint:{url:"https://cn.transcribe.cn-north-1.amazonaws.com.cn",properties:n,headers:n},type:h},{conditions:[{[v]:i,[w]:[j,"cn-northwest-1"]}],endpoint:{url:"https://cn.transcribe.cn-northwest-1.amazonaws.com.cn",properties:n,headers:n},type:h},{conditions:t,endpoint:{url:"https://transcribe.{Region}.{PartitionResult#dnsSuffix}",properties:n,headers:n},type:h}]}]}]}; +t=[m]; +const _data={version:"1.0",parameters:{Region:{required:a,type:c},UseDualStack:i,UseFIPS:i,Endpoint:{required:b,type:c}},rules:[{conditions:[{[u]:"aws.partition",[v]:[j],assign:d}],type:e,rules:[{conditions:[{[u]:"isSet",[v]:[k]}],type:e,rules:[{conditions:s,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:f},{type:e,rules:[{conditions:t,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:f},{endpoint:{url:k,properties:n,headers:n},type:g}]}]},{conditions:[l,m],type:e,rules:[{conditions:[o,p],type:e,rules:[{endpoint:{url:"https://transcribe-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:n,headers:n},type:g}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:f}]},{conditions:s,type:e,rules:[{conditions:[o],type:e,rules:[{type:e,rules:[{conditions:[{[u]:h,[v]:["aws",q]}],endpoint:r,type:g},{conditions:[{[u]:h,[v]:["aws-us-gov",q]}],endpoint:r,type:g},{endpoint:{url:"https://transcribe-fips.{Region}.{PartitionResult#dnsSuffix}",properties:n,headers:n},type:g}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:f}]},{conditions:t,type:e,rules:[{conditions:[p],type:e,rules:[{endpoint:{url:"https://transcribe.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:n,headers:n},type:g}]},{error:"DualStack is enabled but this partition does not support DualStack",type:f}]},{type:e,rules:[{conditions:[{[u]:h,[v]:[j,"cn-north-1"]}],endpoint:{url:"https://cn.transcribe.cn-north-1.amazonaws.com.cn",properties:n,headers:n},type:g},{conditions:[{[u]:h,[v]:[j,"cn-northwest-1"]}],endpoint:{url:"https://cn.transcribe.cn-northwest-1.amazonaws.com.cn",properties:n,headers:n},type:g},{endpoint:{url:"https://transcribe.{Region}.{PartitionResult#dnsSuffix}",properties:n,headers:n},type:g}]}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-transfer/src/endpoint/ruleset.ts b/clients/client-transfer/src/endpoint/ruleset.ts index 7c96e01a5262..125fda86759a 100644 --- a/clients/client-transfer/src/endpoint/ruleset.ts +++ b/clients/client-transfer/src/endpoint/ruleset.ts @@ -6,26 +6,24 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; 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}]}]}; +const p="required", +q="fn", +r="argv", +s="ref"; +const a="PartitionResult", +b="tree", +c="error", +d="endpoint", +e={[p]:false,"type":"String"}, +f={[p]:true,"default":false,"type":"Boolean"}, +g={[s]:"Endpoint"}, +h={[q]:"booleanEquals",[r]:[{[s]:"UseFIPS"},true]}, +i={[q]:"booleanEquals",[r]:[{[s]:"UseDualStack"},true]}, +j={}, +k={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsFIPS"]}]}, +l={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsDualStack"]}]}, +m=[g], +n=[h], +o=[i]; +const _data={version:"1.0",parameters:{Region:e,UseDualStack:f,UseFIPS:f,Endpoint:e},rules:[{conditions:[{[q]:"aws.partition",[r]:[{[s]:"Region"}],assign:a}],type:b,rules:[{conditions:[{[q]:"isSet",[r]:m},{[q]:"parseURL",[r]:m,assign:"url"}],type:b,rules:[{conditions:n,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:c},{type:b,rules:[{conditions:o,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:c},{endpoint:{url:g,properties:j,headers:j},type:d}]}]},{conditions:[h,i],type:b,rules:[{conditions:[k,l],type:b,rules:[{endpoint:{url:"https://transfer-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:c}]},{conditions:n,type:b,rules:[{conditions:[k],type:b,rules:[{type:b,rules:[{endpoint:{url:"https://transfer-fips.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:c}]},{conditions:o,type:b,rules:[{conditions:[l],type:b,rules:[{endpoint:{url:"https://transfer.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"DualStack is enabled but this partition does not support DualStack",type:c}]},{endpoint:{url:"https://transfer.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-translate/src/endpoint/ruleset.ts b/clients/client-translate/src/endpoint/ruleset.ts index 8cdf9776ac36..06a720536953 100644 --- a/clients/client-translate/src/endpoint/ruleset.ts +++ b/clients/client-translate/src/endpoint/ruleset.ts @@ -6,25 +6,24 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; or see "smithy.rules#endpointRuleSet" in codegen/sdk-codegen/aws-models/translate.json */ -const r="fn", -s="argv", -t="ref"; +const q="fn", +r="argv", +s="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]}, +d="PartitionResult", +e="tree", +f="error", +g="endpoint", +h={"required":true,"default":false,"type":"Boolean"}, +i={[s]:"Endpoint"}, +j={[q]:"booleanEquals",[r]:[{[s]:"UseFIPS"},true]}, +k={[q]:"booleanEquals",[r]:[{[s]:"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"]}]}, +m={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:d},"supportsFIPS"]}]}, +n={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:d},"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}]}]}; +p=[k]; +const _data={version:"1.0",parameters:{Region:{required:a,type:c},UseDualStack:h,UseFIPS:h,Endpoint:{required:b,type:c}},rules:[{conditions:[{[q]:"aws.partition",[r]:[{[s]:"Region"}],assign:d}],type:e,rules:[{conditions:[{[q]:"isSet",[r]:[i]}],type:e,rules:[{conditions:o,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:f},{type:e,rules:[{conditions:p,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:f},{endpoint:{url:i,properties:l,headers:l},type:g}]}]},{conditions:[j,k],type:e,rules:[{conditions:[m,n],type:e,rules:[{endpoint:{url:"https://translate-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:g}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:f}]},{conditions:o,type:e,rules:[{conditions:[m],type:e,rules:[{type:e,rules:[{endpoint:{url:"https://translate-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:g}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:f}]},{conditions:p,type:e,rules:[{conditions:[n],type:e,rules:[{endpoint:{url:"https://translate.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:g}]},{error:"DualStack is enabled but this partition does not support DualStack",type:f}]},{endpoint:{url:"https://translate.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:g}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-voice-id/src/endpoint/ruleset.ts b/clients/client-voice-id/src/endpoint/ruleset.ts index fcfc38c5648b..88a193666c13 100644 --- a/clients/client-voice-id/src/endpoint/ruleset.ts +++ b/clients/client-voice-id/src/endpoint/ruleset.ts @@ -6,26 +6,24 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; 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}]}]}; +const p="required", +q="fn", +r="argv", +s="ref"; +const a="PartitionResult", +b="tree", +c="error", +d="endpoint", +e={[p]:false,"type":"String"}, +f={[p]:true,"default":false,"type":"Boolean"}, +g={[s]:"Endpoint"}, +h={[q]:"booleanEquals",[r]:[{[s]:"UseFIPS"},true]}, +i={[q]:"booleanEquals",[r]:[{[s]:"UseDualStack"},true]}, +j={}, +k={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsFIPS"]}]}, +l={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsDualStack"]}]}, +m=[g], +n=[h], +o=[i]; +const _data={version:"1.0",parameters:{Region:e,UseDualStack:f,UseFIPS:f,Endpoint:e},rules:[{conditions:[{[q]:"aws.partition",[r]:[{[s]:"Region"}],assign:a}],type:b,rules:[{conditions:[{[q]:"isSet",[r]:m},{[q]:"parseURL",[r]:m,assign:"url"}],type:b,rules:[{conditions:n,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:c},{type:b,rules:[{conditions:o,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:c},{endpoint:{url:g,properties:j,headers:j},type:d}]}]},{conditions:[h,i],type:b,rules:[{conditions:[k,l],type:b,rules:[{endpoint:{url:"https://voiceid-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:c}]},{conditions:n,type:b,rules:[{conditions:[k],type:b,rules:[{type:b,rules:[{endpoint:{url:"https://voiceid-fips.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:c}]},{conditions:o,type:b,rules:[{conditions:[l],type:b,rules:[{endpoint:{url:"https://voiceid.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"DualStack is enabled but this partition does not support DualStack",type:c}]},{endpoint:{url:"https://voiceid.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-waf-regional/src/endpoint/ruleset.ts b/clients/client-waf-regional/src/endpoint/ruleset.ts index 178673b0c32a..957144652bc0 100644 --- a/clients/client-waf-regional/src/endpoint/ruleset.ts +++ b/clients/client-waf-regional/src/endpoint/ruleset.ts @@ -6,26 +6,24 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; 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}]}]}; +const p="required", +q="fn", +r="argv", +s="ref"; +const a="PartitionResult", +b="tree", +c="error", +d="endpoint", +e={[p]:false,"type":"String"}, +f={[p]:true,"default":false,"type":"Boolean"}, +g={[s]:"Endpoint"}, +h={[q]:"booleanEquals",[r]:[{[s]:"UseFIPS"},true]}, +i={[q]:"booleanEquals",[r]:[{[s]:"UseDualStack"},true]}, +j={}, +k={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsFIPS"]}]}, +l={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsDualStack"]}]}, +m=[g], +n=[h], +o=[i]; +const _data={version:"1.0",parameters:{Region:e,UseDualStack:f,UseFIPS:f,Endpoint:e},rules:[{conditions:[{[q]:"aws.partition",[r]:[{[s]:"Region"}],assign:a}],type:b,rules:[{conditions:[{[q]:"isSet",[r]:m},{[q]:"parseURL",[r]:m,assign:"url"}],type:b,rules:[{conditions:n,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:c},{type:b,rules:[{conditions:o,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:c},{endpoint:{url:g,properties:j,headers:j},type:d}]}]},{conditions:[h,i],type:b,rules:[{conditions:[k,l],type:b,rules:[{endpoint:{url:"https://waf-regional-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:c}]},{conditions:n,type:b,rules:[{conditions:[k],type:b,rules:[{type:b,rules:[{endpoint:{url:"https://waf-regional-fips.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:c}]},{conditions:o,type:b,rules:[{conditions:[l],type:b,rules:[{endpoint:{url:"https://waf-regional.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"DualStack is enabled but this partition does not support DualStack",type:c}]},{endpoint:{url:"https://waf-regional.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-waf/src/endpoint/ruleset.ts b/clients/client-waf/src/endpoint/ruleset.ts index 2216f8d6462b..60e2a52c005b 100644 --- a/clients/client-waf/src/endpoint/ruleset.ts +++ b/clients/client-waf/src/endpoint/ruleset.ts @@ -6,42 +6,39 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; 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}]}]}]}; +const B="required", +C="type", +D="fn", +E="argv", +F="ref", +G="properties", +H="headers"; +const a="PartitionResult", +b="tree", +c="error", +d="endpoint", +e="stringEquals", +f="getAttr", +g="aws", +h={[B]:false,[C]:"String"}, +i={[B]:true,"default":false,[C]:"Boolean"}, +j={[F]:"Region"}, +k={[F]:"Endpoint"}, +l={}, +m={[F]:a}, +n={"authSchemes":[{"name":"sigv4","signingName":"waf","signingRegion":"us-east-1"}]}, +o={[c]:"FIPS and DualStack are enabled, but this partition does not support one or both",[C]:c}, +p={"url":"https://waf-fips.amazonaws.com",[G]:n,[H]:{}}, +q={[c]:"FIPS is enabled but this partition does not support FIPS",[C]:c}, +r={[c]:"DualStack is enabled but this partition does not support DualStack",[C]:c}, +s={"url":"https://waf.amazonaws.com",[G]:n,[H]:{}}, +t=[k], +u=[{[D]:"booleanEquals",[E]:[{[F]:"UseFIPS"},true]}], +v=[{[D]:"booleanEquals",[E]:[{[F]:"UseDualStack"},true]}], +w=[{[D]:"booleanEquals",[E]:[{[F]:"UseFIPS"},true]},{[D]:"booleanEquals",[E]:[{[F]:"UseDualStack"},true]}], +x=[{[D]:"booleanEquals",[E]:[true,{[D]:f,[E]:[m,"supportsFIPS"]}]},{[D]:"booleanEquals",[E]:[true,{[D]:f,[E]:[m,"supportsDualStack"]}]}], +y=[{[D]:"booleanEquals",[E]:[true,{[D]:f,[E]:[m,"supportsFIPS"]}]}], +z=[{[D]:"booleanEquals",[E]:[true,{[D]:f,[E]:[m,"supportsDualStack"]}]}], +A=[{[D]:e,[E]:[j,"aws-global"]}]; +const _data={version:"1.0",parameters:{Region:h,UseDualStack:i,UseFIPS:i,Endpoint:h},rules:[{conditions:[{[D]:"aws.partition",[E]:[j],assign:a}],[C]:b,rules:[{conditions:[{[D]:"isSet",[E]:t},{[D]:"parseURL",[E]:t,assign:"url"}],[C]:b,rules:[{conditions:u,error:"Invalid Configuration: FIPS and custom endpoint are not supported",[C]:c},{[C]:b,rules:[{conditions:v,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",[C]:c},{endpoint:{url:k,[G]:l,[H]:l},[C]:d}]}]},{conditions:[{[D]:e,[E]:[{[D]:f,[E]:[m,"name"]},g]}],[C]:b,rules:[{conditions:w,[C]:b,rules:[{conditions:x,[C]:b,rules:[{endpoint:{url:"https://waf-fips.{Region}.api.aws",[G]:n,[H]:l},[C]:d}]},o]},{conditions:u,[C]:b,rules:[{conditions:y,[C]:b,rules:[{endpoint:p,[C]:d}]},q]},{conditions:v,[C]:b,rules:[{conditions:z,[C]:b,rules:[{endpoint:{url:"https://waf.{Region}.api.aws",[G]:n,[H]:l},[C]:d}]},r]},{endpoint:s,[C]:d}]},{conditions:w,[C]:b,rules:[{conditions:x,[C]:b,rules:[{endpoint:{url:"https://waf-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",[G]:l,[H]:l},[C]:d}]},o]},{conditions:u,[C]:b,rules:[{conditions:y,[C]:b,rules:[{[C]:b,rules:[{conditions:[{[D]:e,[E]:[j,g]}],endpoint:p,[C]:d},{conditions:A,endpoint:p,[C]:d},{endpoint:{url:"https://waf-fips.{Region}.{PartitionResult#dnsSuffix}",[G]:l,[H]:l},[C]:d}]}]},q]},{conditions:v,[C]:b,rules:[{conditions:z,[C]:b,rules:[{endpoint:{url:"https://waf.{Region}.{PartitionResult#dualStackDnsSuffix}",[G]:l,[H]:l},[C]:d}]},r]},{[C]:b,rules:[{conditions:A,endpoint:s,[C]:d},{endpoint:{url:"https://waf.{Region}.{PartitionResult#dnsSuffix}",[G]:l,[H]:l},[C]:d}]}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-wafv2/src/endpoint/ruleset.ts b/clients/client-wafv2/src/endpoint/ruleset.ts index 05598e65d19a..5fb2d01518bb 100644 --- a/clients/client-wafv2/src/endpoint/ruleset.ts +++ b/clients/client-wafv2/src/endpoint/ruleset.ts @@ -6,25 +6,24 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; or see "smithy.rules#endpointRuleSet" in codegen/sdk-codegen/aws-models/wafv2.json */ -const r="fn", -s="argv", -t="ref"; +const q="fn", +r="argv", +s="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]}, +d="PartitionResult", +e="tree", +f="error", +g="endpoint", +h={"required":true,"default":false,"type":"Boolean"}, +i={[s]:"Endpoint"}, +j={[q]:"booleanEquals",[r]:[{[s]:"UseFIPS"},true]}, +k={[q]:"booleanEquals",[r]:[{[s]:"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"]}]}, +m={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:d},"supportsFIPS"]}]}, +n={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:d},"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}]}]}; +p=[k]; +const _data={version:"1.0",parameters:{Region:{required:a,type:c},UseDualStack:h,UseFIPS:h,Endpoint:{required:b,type:c}},rules:[{conditions:[{[q]:"aws.partition",[r]:[{[s]:"Region"}],assign:d}],type:e,rules:[{conditions:[{[q]:"isSet",[r]:[i]}],type:e,rules:[{conditions:o,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:f},{type:e,rules:[{conditions:p,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:f},{endpoint:{url:i,properties:l,headers:l},type:g}]}]},{conditions:[j,k],type:e,rules:[{conditions:[m,n],type:e,rules:[{endpoint:{url:"https://wafv2-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:g}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:f}]},{conditions:o,type:e,rules:[{conditions:[m],type:e,rules:[{type:e,rules:[{endpoint:{url:"https://wafv2-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:g}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:f}]},{conditions:p,type:e,rules:[{conditions:[n],type:e,rules:[{endpoint:{url:"https://wafv2.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:g}]},{error:"DualStack is enabled but this partition does not support DualStack",type:f}]},{endpoint:{url:"https://wafv2.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:g}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-wellarchitected/src/endpoint/ruleset.ts b/clients/client-wellarchitected/src/endpoint/ruleset.ts index 8a0b20087e2d..8a9b030a65db 100644 --- a/clients/client-wellarchitected/src/endpoint/ruleset.ts +++ b/clients/client-wellarchitected/src/endpoint/ruleset.ts @@ -6,26 +6,24 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; 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}]}]}; +const p="required", +q="fn", +r="argv", +s="ref"; +const a="PartitionResult", +b="tree", +c="error", +d="endpoint", +e={[p]:false,"type":"String"}, +f={[p]:true,"default":false,"type":"Boolean"}, +g={[s]:"Endpoint"}, +h={[q]:"booleanEquals",[r]:[{[s]:"UseFIPS"},true]}, +i={[q]:"booleanEquals",[r]:[{[s]:"UseDualStack"},true]}, +j={}, +k={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsFIPS"]}]}, +l={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsDualStack"]}]}, +m=[g], +n=[h], +o=[i]; +const _data={version:"1.0",parameters:{Region:e,UseDualStack:f,UseFIPS:f,Endpoint:e},rules:[{conditions:[{[q]:"aws.partition",[r]:[{[s]:"Region"}],assign:a}],type:b,rules:[{conditions:[{[q]:"isSet",[r]:m},{[q]:"parseURL",[r]:m,assign:"url"}],type:b,rules:[{conditions:n,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:c},{type:b,rules:[{conditions:o,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:c},{endpoint:{url:g,properties:j,headers:j},type:d}]}]},{conditions:[h,i],type:b,rules:[{conditions:[k,l],type:b,rules:[{endpoint:{url:"https://wellarchitected-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:c}]},{conditions:n,type:b,rules:[{conditions:[k],type:b,rules:[{type:b,rules:[{endpoint:{url:"https://wellarchitected-fips.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:c}]},{conditions:o,type:b,rules:[{conditions:[l],type:b,rules:[{endpoint:{url:"https://wellarchitected.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"DualStack is enabled but this partition does not support DualStack",type:c}]},{endpoint:{url:"https://wellarchitected.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-wisdom/src/endpoint/ruleset.ts b/clients/client-wisdom/src/endpoint/ruleset.ts index 2f42914a656b..6a7fb2a4c6cd 100644 --- a/clients/client-wisdom/src/endpoint/ruleset.ts +++ b/clients/client-wisdom/src/endpoint/ruleset.ts @@ -6,26 +6,24 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; 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}]}]}; +const p="required", +q="fn", +r="argv", +s="ref"; +const a="PartitionResult", +b="tree", +c="error", +d="endpoint", +e={[p]:false,"type":"String"}, +f={[p]:true,"default":false,"type":"Boolean"}, +g={[s]:"Endpoint"}, +h={[q]:"booleanEquals",[r]:[{[s]:"UseFIPS"},true]}, +i={[q]:"booleanEquals",[r]:[{[s]:"UseDualStack"},true]}, +j={}, +k={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsFIPS"]}]}, +l={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsDualStack"]}]}, +m=[g], +n=[h], +o=[i]; +const _data={version:"1.0",parameters:{Region:e,UseDualStack:f,UseFIPS:f,Endpoint:e},rules:[{conditions:[{[q]:"aws.partition",[r]:[{[s]:"Region"}],assign:a}],type:b,rules:[{conditions:[{[q]:"isSet",[r]:m},{[q]:"parseURL",[r]:m,assign:"url"}],type:b,rules:[{conditions:n,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:c},{type:b,rules:[{conditions:o,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:c},{endpoint:{url:g,properties:j,headers:j},type:d}]}]},{conditions:[h,i],type:b,rules:[{conditions:[k,l],type:b,rules:[{endpoint:{url:"https://wisdom-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:c}]},{conditions:n,type:b,rules:[{conditions:[k],type:b,rules:[{type:b,rules:[{endpoint:{url:"https://wisdom-fips.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:c}]},{conditions:o,type:b,rules:[{conditions:[l],type:b,rules:[{endpoint:{url:"https://wisdom.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"DualStack is enabled but this partition does not support DualStack",type:c}]},{endpoint:{url:"https://wisdom.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-workdocs/src/endpoint/ruleset.ts b/clients/client-workdocs/src/endpoint/ruleset.ts index a3a63ecccb65..200b709b9239 100644 --- a/clients/client-workdocs/src/endpoint/ruleset.ts +++ b/clients/client-workdocs/src/endpoint/ruleset.ts @@ -6,26 +6,24 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; 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}]}]}; +const p="required", +q="fn", +r="argv", +s="ref"; +const a="PartitionResult", +b="tree", +c="error", +d="endpoint", +e={[p]:false,"type":"String"}, +f={[p]:true,"default":false,"type":"Boolean"}, +g={[s]:"Endpoint"}, +h={[q]:"booleanEquals",[r]:[{[s]:"UseFIPS"},true]}, +i={[q]:"booleanEquals",[r]:[{[s]:"UseDualStack"},true]}, +j={}, +k={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsFIPS"]}]}, +l={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsDualStack"]}]}, +m=[g], +n=[h], +o=[i]; +const _data={version:"1.0",parameters:{Region:e,UseDualStack:f,UseFIPS:f,Endpoint:e},rules:[{conditions:[{[q]:"aws.partition",[r]:[{[s]:"Region"}],assign:a}],type:b,rules:[{conditions:[{[q]:"isSet",[r]:m},{[q]:"parseURL",[r]:m,assign:"url"}],type:b,rules:[{conditions:n,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:c},{type:b,rules:[{conditions:o,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:c},{endpoint:{url:g,properties:j,headers:j},type:d}]}]},{conditions:[h,i],type:b,rules:[{conditions:[k,l],type:b,rules:[{endpoint:{url:"https://workdocs-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:c}]},{conditions:n,type:b,rules:[{conditions:[k],type:b,rules:[{type:b,rules:[{endpoint:{url:"https://workdocs-fips.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:c}]},{conditions:o,type:b,rules:[{conditions:[l],type:b,rules:[{endpoint:{url:"https://workdocs.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"DualStack is enabled but this partition does not support DualStack",type:c}]},{endpoint:{url:"https://workdocs.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-worklink/src/endpoint/ruleset.ts b/clients/client-worklink/src/endpoint/ruleset.ts index 422db0ce5e22..07d73c8785ba 100644 --- a/clients/client-worklink/src/endpoint/ruleset.ts +++ b/clients/client-worklink/src/endpoint/ruleset.ts @@ -6,26 +6,24 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; 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}]}]}; +const p="required", +q="fn", +r="argv", +s="ref"; +const a="PartitionResult", +b="tree", +c="error", +d="endpoint", +e={[p]:false,"type":"String"}, +f={[p]:true,"default":false,"type":"Boolean"}, +g={[s]:"Endpoint"}, +h={[q]:"booleanEquals",[r]:[{[s]:"UseFIPS"},true]}, +i={[q]:"booleanEquals",[r]:[{[s]:"UseDualStack"},true]}, +j={}, +k={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsFIPS"]}]}, +l={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsDualStack"]}]}, +m=[g], +n=[h], +o=[i]; +const _data={version:"1.0",parameters:{Region:e,UseDualStack:f,UseFIPS:f,Endpoint:e},rules:[{conditions:[{[q]:"aws.partition",[r]:[{[s]:"Region"}],assign:a}],type:b,rules:[{conditions:[{[q]:"isSet",[r]:m},{[q]:"parseURL",[r]:m,assign:"url"}],type:b,rules:[{conditions:n,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:c},{type:b,rules:[{conditions:o,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:c},{endpoint:{url:g,properties:j,headers:j},type:d}]}]},{conditions:[h,i],type:b,rules:[{conditions:[k,l],type:b,rules:[{endpoint:{url:"https://worklink-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:c}]},{conditions:n,type:b,rules:[{conditions:[k],type:b,rules:[{endpoint:{url:"https://worklink-fips.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]},{error:"FIPS is enabled but this partition does not support FIPS",type:c}]},{conditions:o,type:b,rules:[{conditions:[l],type:b,rules:[{endpoint:{url:"https://worklink.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"DualStack is enabled but this partition does not support DualStack",type:c}]},{endpoint:{url:"https://worklink.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-workmail/src/endpoint/ruleset.ts b/clients/client-workmail/src/endpoint/ruleset.ts index d7fe9d8c3765..8d0cd4806a47 100644 --- a/clients/client-workmail/src/endpoint/ruleset.ts +++ b/clients/client-workmail/src/endpoint/ruleset.ts @@ -6,26 +6,24 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; 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}]}]}; +const p="required", +q="fn", +r="argv", +s="ref"; +const a="PartitionResult", +b="tree", +c="error", +d="endpoint", +e={[p]:false,"type":"String"}, +f={[p]:true,"default":false,"type":"Boolean"}, +g={[s]:"Endpoint"}, +h={[q]:"booleanEquals",[r]:[{[s]:"UseFIPS"},true]}, +i={[q]:"booleanEquals",[r]:[{[s]:"UseDualStack"},true]}, +j={}, +k={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsFIPS"]}]}, +l={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsDualStack"]}]}, +m=[g], +n=[h], +o=[i]; +const _data={version:"1.0",parameters:{Region:e,UseDualStack:f,UseFIPS:f,Endpoint:e},rules:[{conditions:[{[q]:"aws.partition",[r]:[{[s]:"Region"}],assign:a}],type:b,rules:[{conditions:[{[q]:"isSet",[r]:m},{[q]:"parseURL",[r]:m,assign:"url"}],type:b,rules:[{conditions:n,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:c},{type:b,rules:[{conditions:o,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:c},{endpoint:{url:g,properties:j,headers:j},type:d}]}]},{conditions:[h,i],type:b,rules:[{conditions:[k,l],type:b,rules:[{endpoint:{url:"https://workmail-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:c}]},{conditions:n,type:b,rules:[{conditions:[k],type:b,rules:[{type:b,rules:[{endpoint:{url:"https://workmail-fips.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:c}]},{conditions:o,type:b,rules:[{conditions:[l],type:b,rules:[{endpoint:{url:"https://workmail.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"DualStack is enabled but this partition does not support DualStack",type:c}]},{endpoint:{url:"https://workmail.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-workmailmessageflow/src/endpoint/ruleset.ts b/clients/client-workmailmessageflow/src/endpoint/ruleset.ts index cf2775736cd3..38d2a348ee55 100644 --- a/clients/client-workmailmessageflow/src/endpoint/ruleset.ts +++ b/clients/client-workmailmessageflow/src/endpoint/ruleset.ts @@ -6,26 +6,24 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; 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}]}]}; +const p="required", +q="fn", +r="argv", +s="ref"; +const a="PartitionResult", +b="tree", +c="error", +d="endpoint", +e={[p]:false,"type":"String"}, +f={[p]:true,"default":false,"type":"Boolean"}, +g={[s]:"Endpoint"}, +h={[q]:"booleanEquals",[r]:[{[s]:"UseFIPS"},true]}, +i={[q]:"booleanEquals",[r]:[{[s]:"UseDualStack"},true]}, +j={}, +k={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsFIPS"]}]}, +l={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsDualStack"]}]}, +m=[g], +n=[h], +o=[i]; +const _data={version:"1.0",parameters:{Region:e,UseDualStack:f,UseFIPS:f,Endpoint:e},rules:[{conditions:[{[q]:"aws.partition",[r]:[{[s]:"Region"}],assign:a}],type:b,rules:[{conditions:[{[q]:"isSet",[r]:m},{[q]:"parseURL",[r]:m,assign:"url"}],type:b,rules:[{conditions:n,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:c},{type:b,rules:[{conditions:o,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:c},{endpoint:{url:g,properties:j,headers:j},type:d}]}]},{conditions:[h,i],type:b,rules:[{conditions:[k,l],type:b,rules:[{endpoint:{url:"https://workmailmessageflow-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:c}]},{conditions:n,type:b,rules:[{conditions:[k],type:b,rules:[{endpoint:{url:"https://workmailmessageflow-fips.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]},{error:"FIPS is enabled but this partition does not support FIPS",type:c}]},{conditions:o,type:b,rules:[{conditions:[l],type:b,rules:[{endpoint:{url:"https://workmailmessageflow.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"DualStack is enabled but this partition does not support DualStack",type:c}]},{endpoint:{url:"https://workmailmessageflow.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-workspaces-web/src/endpoint/ruleset.ts b/clients/client-workspaces-web/src/endpoint/ruleset.ts index 596a8d0ce444..307285c2e74a 100644 --- a/clients/client-workspaces-web/src/endpoint/ruleset.ts +++ b/clients/client-workspaces-web/src/endpoint/ruleset.ts @@ -6,26 +6,25 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; or see "smithy.rules#endpointRuleSet" in codegen/sdk-codegen/aws-models/workspaces-web.json */ -const s="fn", -t="argv", -u="ref"; +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={[u]:"Endpoint"}, -j={[s]:"booleanEquals",[t]:[{[u]:"UseFIPS"},true]}, -k={[s]:"booleanEquals",[t]:[{[u]:"UseDualStack"},true]}, +d="PartitionResult", +e="tree", +f="error", +g="endpoint", +h={"required":true,"default":false,"type":"Boolean"}, +i={[t]:"Endpoint"}, +j={[r]:"booleanEquals",[s]:[{[t]:"UseFIPS"},true]}, +k={[r]:"booleanEquals",[s]:[{[t]:"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"]}]}, +m={[r]:"booleanEquals",[s]:[true,{[r]:"getAttr",[s]:[{[t]:d},"supportsFIPS"]}]}, +n={[r]:"booleanEquals",[s]:[true,{[r]:"getAttr",[s]:[{[t]:d},"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}]}]}; +q=[k]; +const _data={version:"1.0",parameters:{Region:{required:a,type:c},UseDualStack:h,UseFIPS:h,Endpoint:{required:b,type:c}},rules:[{conditions:[{[r]:"aws.partition",[s]:[{[t]:"Region"}],assign:d}],type:e,rules:[{conditions:[{[r]:"isSet",[s]:o},{[r]:"parseURL",[s]:o,assign:"url"}],type:e,rules:[{conditions:p,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:f},{type:e,rules:[{conditions:q,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:f},{endpoint:{url:i,properties:l,headers:l},type:g}]}]},{conditions:[j,k],type:e,rules:[{conditions:[m,n],type:e,rules:[{endpoint:{url:"https://workspaces-web-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:g}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:f}]},{conditions:p,type:e,rules:[{conditions:[m],type:e,rules:[{type:e,rules:[{endpoint:{url:"https://workspaces-web-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:g}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:f}]},{conditions:q,type:e,rules:[{conditions:[n],type:e,rules:[{endpoint:{url:"https://workspaces-web.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:g}]},{error:"DualStack is enabled but this partition does not support DualStack",type:f}]},{endpoint:{url:"https://workspaces-web.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:g}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-workspaces/src/endpoint/ruleset.ts b/clients/client-workspaces/src/endpoint/ruleset.ts index fff3fe69e7fe..fc2b2965c5b4 100644 --- a/clients/client-workspaces/src/endpoint/ruleset.ts +++ b/clients/client-workspaces/src/endpoint/ruleset.ts @@ -6,26 +6,24 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; 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}]}]}; +const p="required", +q="fn", +r="argv", +s="ref"; +const a="PartitionResult", +b="tree", +c="error", +d="endpoint", +e={[p]:false,"type":"String"}, +f={[p]:true,"default":false,"type":"Boolean"}, +g={[s]:"Endpoint"}, +h={[q]:"booleanEquals",[r]:[{[s]:"UseFIPS"},true]}, +i={[q]:"booleanEquals",[r]:[{[s]:"UseDualStack"},true]}, +j={}, +k={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsFIPS"]}]}, +l={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsDualStack"]}]}, +m=[g], +n=[h], +o=[i]; +const _data={version:"1.0",parameters:{Region:e,UseDualStack:f,UseFIPS:f,Endpoint:e},rules:[{conditions:[{[q]:"aws.partition",[r]:[{[s]:"Region"}],assign:a}],type:b,rules:[{conditions:[{[q]:"isSet",[r]:m},{[q]:"parseURL",[r]:m,assign:"url"}],type:b,rules:[{conditions:n,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:c},{type:b,rules:[{conditions:o,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:c},{endpoint:{url:g,properties:j,headers:j},type:d}]}]},{conditions:[h,i],type:b,rules:[{conditions:[k,l],type:b,rules:[{endpoint:{url:"https://workspaces-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:c}]},{conditions:n,type:b,rules:[{conditions:[k],type:b,rules:[{type:b,rules:[{endpoint:{url:"https://workspaces-fips.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:c}]},{conditions:o,type:b,rules:[{conditions:[l],type:b,rules:[{endpoint:{url:"https://workspaces.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"DualStack is enabled but this partition does not support DualStack",type:c}]},{endpoint:{url:"https://workspaces.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-xray/src/endpoint/ruleset.ts b/clients/client-xray/src/endpoint/ruleset.ts index 88bbedbbea2c..acc883dbb3ad 100644 --- a/clients/client-xray/src/endpoint/ruleset.ts +++ b/clients/client-xray/src/endpoint/ruleset.ts @@ -6,26 +6,24 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints"; 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}]}]}; +const p="required", +q="fn", +r="argv", +s="ref"; +const a="PartitionResult", +b="tree", +c="error", +d="endpoint", +e={[p]:false,"type":"String"}, +f={[p]:true,"default":false,"type":"Boolean"}, +g={[s]:"Endpoint"}, +h={[q]:"booleanEquals",[r]:[{[s]:"UseFIPS"},true]}, +i={[q]:"booleanEquals",[r]:[{[s]:"UseDualStack"},true]}, +j={}, +k={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsFIPS"]}]}, +l={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsDualStack"]}]}, +m=[g], +n=[h], +o=[i]; +const _data={version:"1.0",parameters:{Region:e,UseDualStack:f,UseFIPS:f,Endpoint:e},rules:[{conditions:[{[q]:"aws.partition",[r]:[{[s]:"Region"}],assign:a}],type:b,rules:[{conditions:[{[q]:"isSet",[r]:m},{[q]:"parseURL",[r]:m,assign:"url"}],type:b,rules:[{conditions:n,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:c},{type:b,rules:[{conditions:o,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:c},{endpoint:{url:g,properties:j,headers:j},type:d}]}]},{conditions:[h,i],type:b,rules:[{conditions:[k,l],type:b,rules:[{endpoint:{url:"https://xray-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:c}]},{conditions:n,type:b,rules:[{conditions:[k],type:b,rules:[{type:b,rules:[{endpoint:{url:"https://xray-fips.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:c}]},{conditions:o,type:b,rules:[{conditions:[l],type:b,rules:[{endpoint:{url:"https://xray.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"DualStack is enabled but this partition does not support DualStack",type:c}]},{endpoint:{url:"https://xray.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]}; export const ruleSet: RuleSetObject = _data; diff --git a/scripts/endpoints-ruleset/compress.js b/scripts/endpoints-ruleset/compress.js index 5e5a2110beec..f12c189bd23d 100644 --- a/scripts/endpoints-ruleset/compress.js +++ b/scripts/endpoints-ruleset/compress.js @@ -5,6 +5,7 @@ const path = require("path"); const RemoveWhitespace = require("./compression-algorithms/RemoveWhitespace"); const PatternDetection = require("./compression-algorithms/PatternDetection"); +const { getPrunedRulesetObject } = require("./getPrunedRulesetObject"); /** * Run compression on ruleset objects for SDK clients. @@ -39,7 +40,8 @@ const main = () => { "smithy.rules#endpointRuleSet" ]; - const data = rulesetObject; + const data = getPrunedRulesetObject(rulesetObject); + let selectedAlgorithm = null; for (const factory of compressionAlgorithms) { const algo = factory(data); diff --git a/scripts/endpoints-ruleset/getPrunedRulesetObject.js b/scripts/endpoints-ruleset/getPrunedRulesetObject.js new file mode 100644 index 000000000000..3724a1be42f1 --- /dev/null +++ b/scripts/endpoints-ruleset/getPrunedRulesetObject.js @@ -0,0 +1,17 @@ +/** + * Remove entries from rulesetObject not required for resolution: + * 1. key='conditions' and value is empty array + * 2. key='builtIn' + * 3. key='documentation' + */ +const getPrunedRulesetObject = (data) => { + const prunedData = data; + for (const key in prunedData) { + if (key === "builtIn" || key === "documentation") delete prunedData[key]; + if (key === "conditions" && prunedData[key].length === 0) delete prunedData[key]; + else if (typeof prunedData[key] === "object") prunedData[key] = getPrunedRulesetObject(prunedData[key]); + } + return prunedData; +}; + +module.exports = { getPrunedRulesetObject };