Skip to content

Commit 33e2bb3

Browse files
author
awstools
committed
feat(client-cost-explorer): Added endpoint support for eusc-de-east-1 region.
1 parent 2f41c1a commit 33e2bb3

File tree

3 files changed

+54
-4
lines changed

3 files changed

+54
-4
lines changed

clients/client-cost-explorer/src/endpoint/ruleset.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,5 +32,5 @@ s={[x]:"getAttr",[y]:[{[z]:g},"supportsFIPS"]},
3232
t={[x]:c,[y]:[true,{[x]:"getAttr",[y]:[{[z]:g},"supportsDualStack"]}]},
3333
u={"authSchemes":[{"name":i,"signingRegion":"{PartitionResult#implicitGlobalRegion}"}]},
3434
v=[{[z]:"Region"}];
35-
const _data={version:"1.0",parameters:{UseDualStack:j,UseFIPS:j,Endpoint:k,Region:k},rules:[{conditions:[{[x]:b,[y]:[l]}],rules:[{conditions:[m],error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:d},{rules:[{conditions:[n],error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:d},{endpoint:{url:l,properties:o,headers:o},type:e}],type:f}],type:f},{rules:[{conditions:[{[x]:b,[y]:v}],rules:[{conditions:[{[x]:"aws.partition",[y]:v,assign:g}],rules:[{conditions:[{[x]:h,[y]:[p,"aws"]},q,n],endpoint:{url:"https://ce.us-east-1.api.aws",properties:{authSchemes:[{name:i,signingRegion:"us-east-1"}]},headers:o},type:e},{conditions:[{[x]:h,[y]:[p,"aws-cn"]},q,n],endpoint:{url:"https://ce.cn-northwest-1.api.amazonwebservices.com.cn",properties:{authSchemes:[{name:i,signingRegion:"cn-northwest-1"}]},headers:o},type:e},{conditions:[{[x]:h,[y]:[p,"aws-iso"]},q,r],endpoint:{url:"https://ce.us-iso-east-1.c2s.ic.gov",properties:{authSchemes:[{name:i,signingRegion:"us-iso-east-1"}]},headers:o},type:e},{conditions:[{[x]:h,[y]:[p,"aws-iso-b"]},q,r],endpoint:{url:"https://ce.us-isob-east-1.sc2s.sgov.gov",properties:{authSchemes:[{name:i,signingRegion:"us-isob-east-1"}]},headers:o},type:e},{conditions:[{[x]:h,[y]:[p,"aws-iso-e"]},q,r],endpoint:{url:"https://ce.eu-isoe-west-1.cloud.adc-e.uk",properties:{authSchemes:[{name:i,signingRegion:"eu-isoe-west-1"}]},headers:o},type:e},{conditions:[{[x]:h,[y]:[p,"aws-iso-f"]},q,r],endpoint:{url:"https://ce.us-isof-south-1.csp.hci.ic.gov",properties:{authSchemes:[{name:i,signingRegion:"us-isof-south-1"}]},headers:o},type:e},{conditions:[m,n],rules:[{conditions:[{[x]:c,[y]:[a,s]},t],rules:[{endpoint:{url:"https://ce-fips.{PartitionResult#implicitGlobalRegion}.{PartitionResult#dualStackDnsSuffix}",properties:u,headers:o},type:e}],type:f},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:d}],type:f},{conditions:[m,r],rules:[{conditions:[{[x]:c,[y]:[s,a]}],rules:[{endpoint:{url:"https://ce-fips.{PartitionResult#implicitGlobalRegion}.{PartitionResult#dnsSuffix}",properties:u,headers:o},type:e}],type:f},{error:"FIPS is enabled but this partition does not support FIPS",type:d}],type:f},{conditions:[q,n],rules:[{conditions:[t],rules:[{endpoint:{url:"https://ce.{PartitionResult#implicitGlobalRegion}.{PartitionResult#dualStackDnsSuffix}",properties:u,headers:o},type:e}],type:f},{error:"DualStack is enabled but this partition does not support DualStack",type:d}],type:f},{endpoint:{url:"https://ce.{PartitionResult#implicitGlobalRegion}.{PartitionResult#dnsSuffix}",properties:u,headers:o},type:e}],type:f}],type:f},{error:"Invalid Configuration: Missing Region",type:d}],type:f}]};
35+
const _data={version:"1.0",parameters:{UseDualStack:j,UseFIPS:j,Endpoint:k,Region:k},rules:[{conditions:[{[x]:b,[y]:[l]}],rules:[{conditions:[m],error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:d},{rules:[{conditions:[n],error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:d},{endpoint:{url:l,properties:o,headers:o},type:e}],type:f}],type:f},{rules:[{conditions:[{[x]:b,[y]:v}],rules:[{conditions:[{[x]:"aws.partition",[y]:v,assign:g}],rules:[{conditions:[{[x]:h,[y]:[p,"aws"]},q,n],endpoint:{url:"https://ce.us-east-1.api.aws",properties:{authSchemes:[{name:i,signingRegion:"us-east-1"}]},headers:o},type:e},{conditions:[{[x]:h,[y]:[p,"aws-cn"]},q,n],endpoint:{url:"https://ce.cn-northwest-1.api.amazonwebservices.com.cn",properties:{authSchemes:[{name:i,signingRegion:"cn-northwest-1"}]},headers:o},type:e},{conditions:[{[x]:h,[y]:[p,"aws-iso"]},q,r],endpoint:{url:"https://ce.us-iso-east-1.c2s.ic.gov",properties:{authSchemes:[{name:i,signingRegion:"us-iso-east-1"}]},headers:o},type:e},{conditions:[{[x]:h,[y]:[p,"aws-iso-b"]},q,r],endpoint:{url:"https://ce.us-isob-east-1.sc2s.sgov.gov",properties:{authSchemes:[{name:i,signingRegion:"us-isob-east-1"}]},headers:o},type:e},{conditions:[{[x]:h,[y]:[p,"aws-iso-e"]},q,r],endpoint:{url:"https://ce.eu-isoe-west-1.cloud.adc-e.uk",properties:{authSchemes:[{name:i,signingRegion:"eu-isoe-west-1"}]},headers:o},type:e},{conditions:[{[x]:h,[y]:[p,"aws-iso-f"]},q,r],endpoint:{url:"https://ce.us-isof-south-1.csp.hci.ic.gov",properties:{authSchemes:[{name:i,signingRegion:"us-isof-south-1"}]},headers:o},type:e},{conditions:[{[x]:h,[y]:[p,"aws-eusc"]},q,n],endpoint:{url:"https://ce.eusc-de-east-1.api.amazonwebservices.eu",properties:{authSchemes:[{name:i,signingRegion:"eusc-de-east-1"}]},headers:o},type:e},{conditions:[m,n],rules:[{conditions:[{[x]:c,[y]:[a,s]},t],rules:[{endpoint:{url:"https://ce-fips.{PartitionResult#implicitGlobalRegion}.{PartitionResult#dualStackDnsSuffix}",properties:u,headers:o},type:e}],type:f},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:d}],type:f},{conditions:[m,r],rules:[{conditions:[{[x]:c,[y]:[s,a]}],rules:[{endpoint:{url:"https://ce-fips.{PartitionResult#implicitGlobalRegion}.{PartitionResult#dnsSuffix}",properties:u,headers:o},type:e}],type:f},{error:"FIPS is enabled but this partition does not support FIPS",type:d}],type:f},{conditions:[q,n],rules:[{conditions:[t],rules:[{endpoint:{url:"https://ce.{PartitionResult#implicitGlobalRegion}.{PartitionResult#dualStackDnsSuffix}",properties:u,headers:o},type:e}],type:f},{error:"DualStack is enabled but this partition does not support DualStack",type:d}],type:f},{endpoint:{url:"https://ce.{PartitionResult#implicitGlobalRegion}.{PartitionResult#dnsSuffix}",properties:u,headers:o},type:e}],type:f}],type:f},{error:"Invalid Configuration: Missing Region",type:d}],type:f}]};
3636
export const ruleSet: RuleSetObject = _data;

clients/client-cost-explorer/src/models/models_0.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2139,8 +2139,8 @@ export interface CostDriver {
21392139
* <p>The category or classification of the cost driver.</p>
21402140
* <p>Values include: BUNDLED_DISCOUNT, CREDIT, OUT_OF_CYCLE_CHARGE, REFUND,
21412141
* RECURRING_RESERVATION_FEE, RESERVATION_USAGE, RI_VOLUME_DISCOUNT, SAVINGS_PLAN_USAGE,
2142-
* SAVINGS_PLAN_NEGATION, SAVINGS_PLAN_RECURRING_FEE, SUPPORT_FEE, TAX,
2143-
* UPFRONT_RESERVATION_FEE, USAGE_CHANGE, COMMITMENT</p>
2142+
* SAVINGS_PLAN_RECURRING_FEE, SUPPORT_FEE, TAX, UPFRONT_RESERVATION_FEE, USAGE_CHANGE,
2143+
* COMMITMENT</p>
21442144
* @public
21452145
*/
21462146
Type?: string | undefined;

codegen/sdk-codegen/aws-models/cost-explorer.json

Lines changed: 51 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -608,6 +608,56 @@
608608
},
609609
"type": "endpoint"
610610
},
611+
{
612+
"conditions": [
613+
{
614+
"fn": "stringEquals",
615+
"argv": [
616+
{
617+
"fn": "getAttr",
618+
"argv": [
619+
{
620+
"ref": "PartitionResult"
621+
},
622+
"name"
623+
]
624+
},
625+
"aws-eusc"
626+
]
627+
},
628+
{
629+
"fn": "booleanEquals",
630+
"argv": [
631+
{
632+
"ref": "UseFIPS"
633+
},
634+
false
635+
]
636+
},
637+
{
638+
"fn": "booleanEquals",
639+
"argv": [
640+
{
641+
"ref": "UseDualStack"
642+
},
643+
true
644+
]
645+
}
646+
],
647+
"endpoint": {
648+
"url": "https://ce.eusc-de-east-1.api.amazonwebservices.eu",
649+
"properties": {
650+
"authSchemes": [
651+
{
652+
"name": "sigv4",
653+
"signingRegion": "eusc-de-east-1"
654+
}
655+
]
656+
},
657+
"headers": {}
658+
},
659+
"type": "endpoint"
660+
},
611661
{
612662
"conditions": [
613663
{
@@ -2787,7 +2837,7 @@
27872837
"Type": {
27882838
"target": "com.amazonaws.costexplorer#GenericString",
27892839
"traits": {
2790-
"smithy.api#documentation": "<p>The category or classification of the cost driver.</p>\n <p>Values include: BUNDLED_DISCOUNT, CREDIT, OUT_OF_CYCLE_CHARGE, REFUND,\n RECURRING_RESERVATION_FEE, RESERVATION_USAGE, RI_VOLUME_DISCOUNT, SAVINGS_PLAN_USAGE,\n SAVINGS_PLAN_NEGATION, SAVINGS_PLAN_RECURRING_FEE, SUPPORT_FEE, TAX,\n UPFRONT_RESERVATION_FEE, USAGE_CHANGE, COMMITMENT</p>"
2840+
"smithy.api#documentation": "<p>The category or classification of the cost driver.</p>\n <p>Values include: BUNDLED_DISCOUNT, CREDIT, OUT_OF_CYCLE_CHARGE, REFUND,\n RECURRING_RESERVATION_FEE, RESERVATION_USAGE, RI_VOLUME_DISCOUNT, SAVINGS_PLAN_USAGE,\n SAVINGS_PLAN_RECURRING_FEE, SUPPORT_FEE, TAX, UPFRONT_RESERVATION_FEE, USAGE_CHANGE,\n COMMITMENT</p>"
27912841
}
27922842
},
27932843
"Name": {

0 commit comments

Comments
 (0)