From 13b7b81ad026f457ee0b0924b8028b661e32251c Mon Sep 17 00:00:00 2001 From: awstools Date: Fri, 23 Aug 2024 18:25:49 +0000 Subject: [PATCH] feat(client-organizations): Releasing minor partitional endpoint updates. --- .../src/endpoint/ruleset.ts | 2 +- .../sdk-codegen/aws-models/organizations.json | 155 ++++++++++++++++++ 2 files changed, 156 insertions(+), 1 deletion(-) diff --git a/clients/client-organizations/src/endpoint/ruleset.ts b/clients/client-organizations/src/endpoint/ruleset.ts index 1b7619ab954f..dbd0c311f84a 100644 --- a/clients/client-organizations/src/endpoint/ruleset.ts +++ b/clients/client-organizations/src/endpoint/ruleset.ts @@ -41,5 +41,5 @@ y={[D]:c,[E]:[true,{[D]:"getAttr",[E]:[{[F]:g},"supportsDualStack"]}]}, z=[n], A=[o], B=[{[F]:"Region"}]; -const _data={version:"1.0",parameters:{Region:k,UseDualStack:l,UseFIPS:l,Endpoint:k},rules:[{conditions:[{[D]:b,[E]:[m]}],rules:[{conditions:z,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:d},{conditions:A,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:d},{endpoint:{url:m,properties:p,headers:p},type:e}],type:f},{conditions:[{[D]:b,[E]:B}],rules:[{conditions:[{[D]:"aws.partition",[E]:B,assign:g}],rules:[{conditions:[q,s,t],endpoint:{url:"https://organizations.us-east-1.amazonaws.com",properties:u,headers:p},type:e},{conditions:[q,n,t],endpoint:{url:"https://organizations-fips.us-east-1.amazonaws.com",properties:u,headers:p},type:e},{conditions:[{[D]:h,[E]:[r,"aws-cn"]},s,t],endpoint:{url:"https://organizations.cn-northwest-1.amazonaws.com.cn",properties:{[G]:[{name:i,[H]:j,[I]:"cn-northwest-1"}]},headers:p},type:e},{conditions:[v,s,t],endpoint:w,type:e},{conditions:[v,n,t],endpoint:w,type:e},{conditions:[{[D]:h,[E]:[r,"aws-iso"]},s,t],endpoint:{url:"https://organizations.us-iso-east-1.c2s.ic.gov",properties:{[G]:[{name:i,[H]:j,[I]:"us-iso-east-1"}]},headers:p},type:e},{conditions:[n,o],rules:[{conditions:[{[D]:c,[E]:[a,x]},y],rules:[{endpoint:{url:"https://organizations-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:p,headers:p},type:e}],type:f},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:d}],type:f},{conditions:z,rules:[{conditions:[{[D]:c,[E]:[x,a]}],rules:[{endpoint:{url:"https://organizations-fips.{Region}.{PartitionResult#dnsSuffix}",properties:p,headers:p},type:e}],type:f},{error:"FIPS is enabled but this partition does not support FIPS",type:d}],type:f},{conditions:A,rules:[{conditions:[y],rules:[{endpoint:{url:"https://organizations.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:p,headers:p},type:e}],type:f},{error:"DualStack is enabled but this partition does not support DualStack",type:d}],type:f},{endpoint:{url:"https://organizations.{Region}.{PartitionResult#dnsSuffix}",properties:p,headers:p},type:e}],type:f}],type:f},{error:"Invalid Configuration: Missing Region",type:d}]}; +const _data={version:"1.0",parameters:{Region:k,UseDualStack:l,UseFIPS:l,Endpoint:k},rules:[{conditions:[{[D]:b,[E]:[m]}],rules:[{conditions:z,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:d},{conditions:A,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:d},{endpoint:{url:m,properties:p,headers:p},type:e}],type:f},{conditions:[{[D]:b,[E]:B}],rules:[{conditions:[{[D]:"aws.partition",[E]:B,assign:g}],rules:[{conditions:[q,s,t],endpoint:{url:"https://organizations.us-east-1.amazonaws.com",properties:u,headers:p},type:e},{conditions:[q,n,t],endpoint:{url:"https://organizations-fips.us-east-1.amazonaws.com",properties:u,headers:p},type:e},{conditions:[{[D]:h,[E]:[r,"aws-cn"]},s,t],endpoint:{url:"https://organizations.cn-northwest-1.amazonaws.com.cn",properties:{[G]:[{name:i,[H]:j,[I]:"cn-northwest-1"}]},headers:p},type:e},{conditions:[v,s,t],endpoint:w,type:e},{conditions:[v,n,t],endpoint:w,type:e},{conditions:[{[D]:h,[E]:[r,"aws-iso"]},s,t],endpoint:{url:"https://organizations.us-iso-east-1.c2s.ic.gov",properties:{[G]:[{name:i,[H]:j,[I]:"us-iso-east-1"}]},headers:p},type:e},{conditions:[{[D]:h,[E]:[r,"aws-iso-b"]},s,t],endpoint:{url:"https://organizations.us-isob-east-1.sc2s.sgov.gov",properties:{[G]:[{name:i,[H]:j,[I]:"us-isob-east-1"}]},headers:p},type:e},{conditions:[{[D]:h,[E]:[r,"aws-iso-f"]},s,t],endpoint:{url:"https://organizations.us-isof-south-1.csp.hci.ic.gov",properties:{[G]:[{name:i,[H]:j,[I]:"us-isof-south-1"}]},headers:p},type:e},{conditions:[n,o],rules:[{conditions:[{[D]:c,[E]:[a,x]},y],rules:[{endpoint:{url:"https://organizations-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:p,headers:p},type:e}],type:f},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:d}],type:f},{conditions:z,rules:[{conditions:[{[D]:c,[E]:[x,a]}],rules:[{endpoint:{url:"https://organizations-fips.{Region}.{PartitionResult#dnsSuffix}",properties:p,headers:p},type:e}],type:f},{error:"FIPS is enabled but this partition does not support FIPS",type:d}],type:f},{conditions:A,rules:[{conditions:[y],rules:[{endpoint:{url:"https://organizations.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:p,headers:p},type:e}],type:f},{error:"DualStack is enabled but this partition does not support DualStack",type:d}],type:f},{endpoint:{url:"https://organizations.{Region}.{PartitionResult#dnsSuffix}",properties:p,headers:p},type:e}],type:f}],type:f},{error:"Invalid Configuration: Missing Region",type:d}]}; export const ruleSet: RuleSetObject = _data; diff --git a/codegen/sdk-codegen/aws-models/organizations.json b/codegen/sdk-codegen/aws-models/organizations.json index 300f076c4e1d..289ea819c9cd 100644 --- a/codegen/sdk-codegen/aws-models/organizations.json +++ b/codegen/sdk-codegen/aws-models/organizations.json @@ -647,6 +647,108 @@ }, "type": "endpoint" }, + { + "conditions": [ + { + "fn": "stringEquals", + "argv": [ + { + "fn": "getAttr", + "argv": [ + { + "ref": "PartitionResult" + }, + "name" + ] + }, + "aws-iso-b" + ] + }, + { + "fn": "booleanEquals", + "argv": [ + { + "ref": "UseFIPS" + }, + false + ] + }, + { + "fn": "booleanEquals", + "argv": [ + { + "ref": "UseDualStack" + }, + false + ] + } + ], + "endpoint": { + "url": "https://organizations.us-isob-east-1.sc2s.sgov.gov", + "properties": { + "authSchemes": [ + { + "name": "sigv4", + "signingName": "organizations", + "signingRegion": "us-isob-east-1" + } + ] + }, + "headers": {} + }, + "type": "endpoint" + }, + { + "conditions": [ + { + "fn": "stringEquals", + "argv": [ + { + "fn": "getAttr", + "argv": [ + { + "ref": "PartitionResult" + }, + "name" + ] + }, + "aws-iso-f" + ] + }, + { + "fn": "booleanEquals", + "argv": [ + { + "ref": "UseFIPS" + }, + false + ] + }, + { + "fn": "booleanEquals", + "argv": [ + { + "ref": "UseDualStack" + }, + false + ] + } + ], + "endpoint": { + "url": "https://organizations.us-isof-south-1.csp.hci.ic.gov", + "properties": { + "authSchemes": [ + { + "name": "sigv4", + "signingName": "organizations", + "signingRegion": "us-isof-south-1" + } + ] + }, + "headers": {} + }, + "type": "endpoint" + }, { "conditions": [ { @@ -1241,6 +1343,28 @@ "UseDualStack": false } }, + { + "documentation": "For region aws-iso-b-global with FIPS disabled and DualStack disabled", + "expect": { + "endpoint": { + "properties": { + "authSchemes": [ + { + "name": "sigv4", + "signingName": "organizations", + "signingRegion": "us-isob-east-1" + } + ] + }, + "url": "https://organizations.us-isob-east-1.sc2s.sgov.gov" + } + }, + "params": { + "Region": "aws-iso-b-global", + "UseFIPS": false, + "UseDualStack": false + } + }, { "documentation": "For region us-isob-east-1 with FIPS enabled and DualStack enabled", "expect": { @@ -1280,6 +1404,15 @@ "documentation": "For region us-isob-east-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { + "properties": { + "authSchemes": [ + { + "name": "sigv4", + "signingName": "organizations", + "signingRegion": "us-isob-east-1" + } + ] + }, "url": "https://organizations.us-isob-east-1.sc2s.sgov.gov" } }, @@ -1289,6 +1422,28 @@ "UseDualStack": false } }, + { + "documentation": "For region us-isof-south-1 with FIPS disabled and DualStack disabled", + "expect": { + "endpoint": { + "properties": { + "authSchemes": [ + { + "name": "sigv4", + "signingName": "organizations", + "signingRegion": "us-isof-south-1" + } + ] + }, + "url": "https://organizations.us-isof-south-1.csp.hci.ic.gov" + } + }, + "params": { + "Region": "us-isof-south-1", + "UseFIPS": false, + "UseDualStack": false + } + }, { "documentation": "For custom endpoint with region set and fips disabled and dualstack disabled", "expect": {