Skip to content

Commit

Permalink
feat(client-organizations): Releasing minor partitional endpoint upda…
Browse files Browse the repository at this point in the history
…tes.
  • Loading branch information
awstools committed Aug 23, 2024
1 parent 60d1a5a commit 13b7b81
Show file tree
Hide file tree
Showing 2 changed files with 156 additions and 1 deletion.
2 changes: 1 addition & 1 deletion clients/client-organizations/src/endpoint/ruleset.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
155 changes: 155 additions & 0 deletions codegen/sdk-codegen/aws-models/organizations.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": [
{
Expand Down Expand Up @@ -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": {
Expand Down Expand Up @@ -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"
}
},
Expand All @@ -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": {
Expand Down

0 comments on commit 13b7b81

Please sign in to comment.