Skip to content

Commit 8198880

Browse files
author
awstools
committed
feat(client-organizations): This release contains an endpoint addition
1 parent 10ec618 commit 8198880

File tree

2 files changed

+83
-1
lines changed

2 files changed

+83
-1
lines changed

clients/client-organizations/src/endpoint/ruleset.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,5 +41,5 @@ y={[D]:c,[E]:[true,{[D]:"getAttr",[E]:[{[F]:g},"supportsDualStack"]}]},
4141
z=[n],
4242
A=[o],
4343
B=[{[F]:"Region"}];
44-
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:[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}]};
44+
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}]};
4545
export const ruleSet: RuleSetObject = _data;

codegen/sdk-codegen/aws-models/organizations.json

+82
Original file line numberDiff line numberDiff line change
@@ -596,6 +596,57 @@
596596
},
597597
"type": "endpoint"
598598
},
599+
{
600+
"conditions": [
601+
{
602+
"fn": "stringEquals",
603+
"argv": [
604+
{
605+
"fn": "getAttr",
606+
"argv": [
607+
{
608+
"ref": "PartitionResult"
609+
},
610+
"name"
611+
]
612+
},
613+
"aws-iso"
614+
]
615+
},
616+
{
617+
"fn": "booleanEquals",
618+
"argv": [
619+
{
620+
"ref": "UseFIPS"
621+
},
622+
false
623+
]
624+
},
625+
{
626+
"fn": "booleanEquals",
627+
"argv": [
628+
{
629+
"ref": "UseDualStack"
630+
},
631+
false
632+
]
633+
}
634+
],
635+
"endpoint": {
636+
"url": "https://organizations.us-iso-east-1.c2s.ic.gov",
637+
"properties": {
638+
"authSchemes": [
639+
{
640+
"name": "sigv4",
641+
"signingName": "organizations",
642+
"signingRegion": "us-iso-east-1"
643+
}
644+
]
645+
},
646+
"headers": {}
647+
},
648+
"type": "endpoint"
649+
},
599650
{
600651
"conditions": [
601652
{
@@ -1111,6 +1162,28 @@
11111162
"UseDualStack": false
11121163
}
11131164
},
1165+
{
1166+
"documentation": "For region aws-iso-global with FIPS disabled and DualStack disabled",
1167+
"expect": {
1168+
"endpoint": {
1169+
"properties": {
1170+
"authSchemes": [
1171+
{
1172+
"name": "sigv4",
1173+
"signingName": "organizations",
1174+
"signingRegion": "us-iso-east-1"
1175+
}
1176+
]
1177+
},
1178+
"url": "https://organizations.us-iso-east-1.c2s.ic.gov"
1179+
}
1180+
},
1181+
"params": {
1182+
"Region": "aws-iso-global",
1183+
"UseFIPS": false,
1184+
"UseDualStack": false
1185+
}
1186+
},
11141187
{
11151188
"documentation": "For region us-iso-east-1 with FIPS enabled and DualStack enabled",
11161189
"expect": {
@@ -1150,6 +1223,15 @@
11501223
"documentation": "For region us-iso-east-1 with FIPS disabled and DualStack disabled",
11511224
"expect": {
11521225
"endpoint": {
1226+
"properties": {
1227+
"authSchemes": [
1228+
{
1229+
"name": "sigv4",
1230+
"signingName": "organizations",
1231+
"signingRegion": "us-iso-east-1"
1232+
}
1233+
]
1234+
},
11531235
"url": "https://organizations.us-iso-east-1.c2s.ic.gov"
11541236
}
11551237
},

0 commit comments

Comments
 (0)