Skip to content

Commit 1f0b1f3

Browse files
author
awstools
committed
feat(client-budgets): Releasing minor partition endpoint updates
1 parent 1c7cb38 commit 1f0b1f3

File tree

2 files changed

+167
-3
lines changed

2 files changed

+167
-3
lines changed

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,5 +34,5 @@ u={[z]:c,[A]:[true,{[z]:"getAttr",[A]:[{[B]:g},"supportsDualStack"]}]},
3434
v=[n],
3535
w=[o],
3636
x=[{[B]:"Region"}];
37-
const _data={version:"1.0",parameters:{Region:k,UseDualStack:l,UseFIPS:l,Endpoint:k},rules:[{conditions:[{[z]:b,[A]:[m]}],rules:[{conditions:v,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:d},{conditions:w,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:d},{endpoint:{url:m,properties:p,headers:p},type:e}],type:f},{conditions:[{[z]:b,[A]:x}],rules:[{conditions:[{[z]:"aws.partition",[A]:x,assign:g}],rules:[{conditions:[{[z]:h,[A]:[q,"aws"]},r,s],endpoint:{url:"https://budgets.amazonaws.com",properties:{authSchemes:[{name:i,signingName:j,signingRegion:"us-east-1"}]},headers:p},type:e},{conditions:[{[z]:h,[A]:[q,"aws-cn"]},r,s],endpoint:{url:"https://budgets.amazonaws.com.cn",properties:{authSchemes:[{name:i,signingName:j,signingRegion:"cn-northwest-1"}]},headers:p},type:e},{conditions:[{[z]:h,[A]:[q,"aws-iso-e"]},r,s],endpoint:{url:"https://budgets.global.cloud.adc-e.uk",properties:{authSchemes:[{name:i,signingName:j,signingRegion:"eu-isoe-west-1"}]},headers:p},type:e},{conditions:[{[z]:h,[A]:[q,"aws-iso-f"]},r,s],endpoint:{url:"https://budgets.global.csp.hci.ic.gov",properties:{authSchemes:[{name:i,signingName:j,signingRegion:"us-isof-south-1"}]},headers:p},type:e},{conditions:[n,o],rules:[{conditions:[{[z]:c,[A]:[a,t]},u],rules:[{endpoint:{url:"https://budgets-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:v,rules:[{conditions:[{[z]:c,[A]:[t,a]}],rules:[{endpoint:{url:"https://budgets-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:w,rules:[{conditions:[u],rules:[{endpoint:{url:"https://budgets.{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://budgets.{Region}.{PartitionResult#dnsSuffix}",properties:p,headers:p},type:e}],type:f}],type:f},{error:"Invalid Configuration: Missing Region",type:d}]};
37+
const _data={version:"1.0",parameters:{Region:k,UseDualStack:l,UseFIPS:l,Endpoint:k},rules:[{conditions:[{[z]:b,[A]:[m]}],rules:[{conditions:v,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:d},{conditions:w,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:d},{endpoint:{url:m,properties:p,headers:p},type:e}],type:f},{conditions:[{[z]:b,[A]:x}],rules:[{conditions:[{[z]:"aws.partition",[A]:x,assign:g}],rules:[{conditions:[{[z]:h,[A]:[q,"aws"]},r,s],endpoint:{url:"https://budgets.amazonaws.com",properties:{authSchemes:[{name:i,signingName:j,signingRegion:"us-east-1"}]},headers:p},type:e},{conditions:[{[z]:h,[A]:[q,"aws-cn"]},r,s],endpoint:{url:"https://budgets.amazonaws.com.cn",properties:{authSchemes:[{name:i,signingName:j,signingRegion:"cn-northwest-1"}]},headers:p},type:e},{conditions:[{[z]:h,[A]:[q,"aws-iso"]},r,s],endpoint:{url:"https://budgets.c2s.ic.gov",properties:{authSchemes:[{name:i,signingName:j,signingRegion:"us-iso-east-1"}]},headers:p},type:e},{conditions:[{[z]:h,[A]:[q,"aws-iso-b"]},r,s],endpoint:{url:"https://budgets.global.sc2s.sgov.gov",properties:{authSchemes:[{name:i,signingName:j,signingRegion:"us-isob-east-1"}]},headers:p},type:e},{conditions:[{[z]:h,[A]:[q,"aws-iso-e"]},r,s],endpoint:{url:"https://budgets.global.cloud.adc-e.uk",properties:{authSchemes:[{name:i,signingName:j,signingRegion:"eu-isoe-west-1"}]},headers:p},type:e},{conditions:[{[z]:h,[A]:[q,"aws-iso-f"]},r,s],endpoint:{url:"https://budgets.global.csp.hci.ic.gov",properties:{authSchemes:[{name:i,signingName:j,signingRegion:"us-isof-south-1"}]},headers:p},type:e},{conditions:[n,o],rules:[{conditions:[{[z]:c,[A]:[a,t]},u],rules:[{endpoint:{url:"https://budgets-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:v,rules:[{conditions:[{[z]:c,[A]:[t,a]}],rules:[{endpoint:{url:"https://budgets-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:w,rules:[{conditions:[u],rules:[{endpoint:{url:"https://budgets.{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://budgets.{Region}.{PartitionResult#dnsSuffix}",properties:p,headers:p},type:e}],type:f}],type:f},{error:"Invalid Configuration: Missing Region",type:d}]};
3838
export const ruleSet: RuleSetObject = _data;

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

+166-2
Original file line numberDiff line numberDiff line change
@@ -340,6 +340,108 @@
340340
},
341341
"type": "endpoint"
342342
},
343+
{
344+
"conditions": [
345+
{
346+
"fn": "stringEquals",
347+
"argv": [
348+
{
349+
"fn": "getAttr",
350+
"argv": [
351+
{
352+
"ref": "PartitionResult"
353+
},
354+
"name"
355+
]
356+
},
357+
"aws-iso"
358+
]
359+
},
360+
{
361+
"fn": "booleanEquals",
362+
"argv": [
363+
{
364+
"ref": "UseFIPS"
365+
},
366+
false
367+
]
368+
},
369+
{
370+
"fn": "booleanEquals",
371+
"argv": [
372+
{
373+
"ref": "UseDualStack"
374+
},
375+
false
376+
]
377+
}
378+
],
379+
"endpoint": {
380+
"url": "https://budgets.c2s.ic.gov",
381+
"properties": {
382+
"authSchemes": [
383+
{
384+
"name": "sigv4",
385+
"signingName": "budgets",
386+
"signingRegion": "us-iso-east-1"
387+
}
388+
]
389+
},
390+
"headers": {}
391+
},
392+
"type": "endpoint"
393+
},
394+
{
395+
"conditions": [
396+
{
397+
"fn": "stringEquals",
398+
"argv": [
399+
{
400+
"fn": "getAttr",
401+
"argv": [
402+
{
403+
"ref": "PartitionResult"
404+
},
405+
"name"
406+
]
407+
},
408+
"aws-iso-b"
409+
]
410+
},
411+
{
412+
"fn": "booleanEquals",
413+
"argv": [
414+
{
415+
"ref": "UseFIPS"
416+
},
417+
false
418+
]
419+
},
420+
{
421+
"fn": "booleanEquals",
422+
"argv": [
423+
{
424+
"ref": "UseDualStack"
425+
},
426+
false
427+
]
428+
}
429+
],
430+
"endpoint": {
431+
"url": "https://budgets.global.sc2s.sgov.gov",
432+
"properties": {
433+
"authSchemes": [
434+
{
435+
"name": "sigv4",
436+
"signingName": "budgets",
437+
"signingRegion": "us-isob-east-1"
438+
}
439+
]
440+
},
441+
"headers": {}
442+
},
443+
"type": "endpoint"
444+
},
343445
{
344446
"conditions": [
345447
{
@@ -864,6 +966,28 @@
864966
"UseDualStack": false
865967
}
866968
},
969+
{
970+
"documentation": "For region aws-iso-global with FIPS disabled and DualStack disabled",
971+
"expect": {
972+
"endpoint": {
973+
"properties": {
974+
"authSchemes": [
975+
{
976+
"name": "sigv4",
977+
"signingName": "budgets",
978+
"signingRegion": "us-iso-east-1"
979+
}
980+
]
981+
},
982+
"url": "https://budgets.c2s.ic.gov"
983+
}
984+
},
985+
"params": {
986+
"Region": "aws-iso-global",
987+
"UseFIPS": false,
988+
"UseDualStack": false
989+
}
990+
},
867991
{
868992
"documentation": "For region us-iso-east-1 with FIPS enabled and DualStack enabled",
869993
"expect": {
@@ -903,7 +1027,16 @@
9031027
"documentation": "For region us-iso-east-1 with FIPS disabled and DualStack disabled",
9041028
"expect": {
9051029
"endpoint": {
906-
"url": "https://budgets.us-iso-east-1.c2s.ic.gov"
1030+
"properties": {
1031+
"authSchemes": [
1032+
{
1033+
"name": "sigv4",
1034+
"signingName": "budgets",
1035+
"signingRegion": "us-iso-east-1"
1036+
}
1037+
]
1038+
},
1039+
"url": "https://budgets.c2s.ic.gov"
9071040
}
9081041
},
9091042
"params": {
@@ -912,6 +1045,28 @@
9121045
"UseDualStack": false
9131046
}
9141047
},
1048+
{
1049+
"documentation": "For region aws-iso-b-global with FIPS disabled and DualStack disabled",
1050+
"expect": {
1051+
"endpoint": {
1052+
"properties": {
1053+
"authSchemes": [
1054+
{
1055+
"name": "sigv4",
1056+
"signingName": "budgets",
1057+
"signingRegion": "us-isob-east-1"
1058+
}
1059+
]
1060+
},
1061+
"url": "https://budgets.global.sc2s.sgov.gov"
1062+
}
1063+
},
1064+
"params": {
1065+
"Region": "aws-iso-b-global",
1066+
"UseFIPS": false,
1067+
"UseDualStack": false
1068+
}
1069+
},
9151070
{
9161071
"documentation": "For region us-isob-east-1 with FIPS enabled and DualStack enabled",
9171072
"expect": {
@@ -951,7 +1106,16 @@
9511106
"documentation": "For region us-isob-east-1 with FIPS disabled and DualStack disabled",
9521107
"expect": {
9531108
"endpoint": {
954-
"url": "https://budgets.us-isob-east-1.sc2s.sgov.gov"
1109+
"properties": {
1110+
"authSchemes": [
1111+
{
1112+
"name": "sigv4",
1113+
"signingName": "budgets",
1114+
"signingRegion": "us-isob-east-1"
1115+
}
1116+
]
1117+
},
1118+
"url": "https://budgets.global.sc2s.sgov.gov"
9551119
}
9561120
},
9571121
"params": {

0 commit comments

Comments
 (0)