From 8365bf4aa963b1d4d9bf9a60dfc1158e374cc6a9 Mon Sep 17 00:00:00 2001 From: 0marperez Date: Tue, 11 Nov 2025 13:03:28 -0500 Subject: [PATCH 1/7] fix: release metrics identifier --- .github/workflows/release-metrics.yml | 2 +- .../trebucheteventheadertraitonenum.json | 782 ++++++++++++++++++ 2 files changed, 783 insertions(+), 1 deletion(-) create mode 100644 codegen/sdk/aws-models/trebucheteventheadertraitonenum.json diff --git a/.github/workflows/release-metrics.yml b/.github/workflows/release-metrics.yml index 380383bd2a4..58fdf75bcb2 100644 --- a/.github/workflows/release-metrics.yml +++ b/.github/workflows/release-metrics.yml @@ -19,7 +19,7 @@ jobs: GITHUB_REPOSITORY: ${{ github.repository }} UPLOAD: 'true' RELEASE_METRICS: 'true' - IDENTIFIER: 'null' # Only needed for pull requests + IDENTIFIER: ${{ github.ref_name }} uses: aws-actions/aws-codebuild-run-build@v1 with: project-name: aws-sdk-kotlin-service-build diff --git a/codegen/sdk/aws-models/trebucheteventheadertraitonenum.json b/codegen/sdk/aws-models/trebucheteventheadertraitonenum.json new file mode 100644 index 00000000000..142b85cf5ed --- /dev/null +++ b/codegen/sdk/aws-models/trebucheteventheadertraitonenum.json @@ -0,0 +1,782 @@ +{ + "smithy": "2.0", + "shapes": { + "com.amazonaws.trebucheteventheadertraitonenum#GetTest": { + "type": "operation", + "input": { + "target": "com.amazonaws.trebucheteventheadertraitonenum#TestRequest" + }, + "output": { + "target": "com.amazonaws.trebucheteventheadertraitonenum#TestResult" + }, + "traits": { + "smithy.api#documentation": "I don't have doc" + } + }, + "com.amazonaws.trebucheteventheadertraitonenum#InvokeEndpointWithBidirectionalStream": { + "type": "operation", + "input": { + "target": "com.amazonaws.trebucheteventheadertraitonenum#InvokeEndpointWithBidirectionalStreamInput" + }, + "output": { + "target": "com.amazonaws.trebucheteventheadertraitonenum#InvokeEndpointWithBidirectionalStreamInput" + } + }, + "com.amazonaws.trebucheteventheadertraitonenum#InvokeEndpointWithBidirectionalStreamInput": { + "type": "structure", + "members": { + "body": { + "target": "com.amazonaws.trebucheteventheadertraitonenum#RequestEventStream", + "traits": { + "smithy.api#httpPayload": {}, + "smithy.api#required": {} + } + } + } + }, + "com.amazonaws.trebucheteventheadertraitonenum#RequestEventStream": { + "type": "union", + "members": { + "payloadPart": { + "target": "com.amazonaws.trebucheteventheadertraitonenum#RequestPayloadPart" + } + }, + "traits": { + "smithy.api#streaming": {} + } + }, + "com.amazonaws.trebucheteventheadertraitonenum#RequestPayloadPart": { + "type": "structure", + "members": { + "bytes": { + "target": "com.amazonaws.trebucheteventheadertraitonenum#partBlob", + "traits": { + "smithy.api#eventPayload": {} + } + }, + "isUtf8TextEventHeader": { + "target": "com.amazonaws.trebucheteventheadertraitonenum#utf8TextEventHeaderEnum", + "traits": { + "smithy.api#eventHeader": {} + } + } + } + }, + "com.amazonaws.trebucheteventheadertraitonenum#TestFeatureArn": { + "type": "structure", + "members": { + "featureArn": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "TestFeatureArn Docs" + } + } + } + }, + "com.amazonaws.trebucheteventheadertraitonenum#TestFeatureName": { + "type": "structure", + "members": { + "featureName": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "TestFeatureName Docs" + } + } + } + }, + "com.amazonaws.trebucheteventheadertraitonenum#TestRequest": { + "type": "structure", + "members": { + "featureName": { + "target": "com.amazonaws.trebucheteventheadertraitonenum#TestFeatureName", + "traits": { + "smithy.api#documentation": "TestRequest Docs" + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.trebucheteventheadertraitonenum#TestResult": { + "type": "structure", + "members": { + "featureArn": { + "target": "com.amazonaws.trebucheteventheadertraitonenum#TestFeatureArn", + "traits": { + "smithy.api#documentation": "TestResult Docs" + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, + "com.amazonaws.trebucheteventheadertraitonenum#TrebuchetEventHeaderTraitOnEnum": { + "type": "service", + "version": "2019-02-07", + "operations": [ + { + "target": "com.amazonaws.trebucheteventheadertraitonenum#GetTest" + }, + { + "target": "com.amazonaws.trebucheteventheadertraitonenum#InvokeEndpointWithBidirectionalStream" + } + ], + "traits": { + "aws.api#service": { + "sdkId": "TrebuchetEventHeaderTraitOnEnum", + "arnNamespace": "trebucheteventheadertraitonenum", + "cloudFormationName": "TrebuchetEventHeaderTraitOnEnum", + "cloudTrailEventSource": "trebucheteventheadertraitonenum.amazonaws.com" + }, + "aws.auth#sigv4": { + "name": "trebucheteventheadertraitonenum" + }, + "aws.protocols#awsJson1_1": {}, + "smithy.api#documentation": "Test Doc", + "smithy.api#title": "AWS TrebuchetEventHeaderTraitOnEnum", + "smithy.rules#endpointRuleSet": { + "version": "1.0", + "parameters": { + "Region": { + "builtIn": "AWS::Region", + "required": false, + "documentation": "The AWS region used to dispatch the request.", + "type": "string" + }, + "UseDualStack": { + "builtIn": "AWS::UseDualStack", + "required": true, + "default": false, + "documentation": "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", + "type": "boolean" + }, + "UseFIPS": { + "builtIn": "AWS::UseFIPS", + "required": true, + "default": false, + "documentation": "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", + "type": "boolean" + }, + "Endpoint": { + "builtIn": "SDK::Endpoint", + "required": false, + "documentation": "Override the endpoint used to send this request", + "type": "string" + } + }, + "rules": [ + { + "conditions": [ + { + "fn": "isSet", + "argv": [ + { + "ref": "Endpoint" + } + ] + } + ], + "rules": [ + { + "conditions": [ + { + "fn": "booleanEquals", + "argv": [ + { + "ref": "UseFIPS" + }, + true + ] + } + ], + "error": "Invalid Configuration: FIPS and custom endpoint are not supported", + "type": "error" + }, + { + "conditions": [], + "rules": [ + { + "conditions": [ + { + "fn": "booleanEquals", + "argv": [ + { + "ref": "UseDualStack" + }, + true + ] + } + ], + "error": "Invalid Configuration: Dualstack and custom endpoint are not supported", + "type": "error" + }, + { + "conditions": [], + "endpoint": { + "url": { + "ref": "Endpoint" + }, + "properties": {}, + "headers": {} + }, + "type": "endpoint" + } + ], + "type": "tree" + } + ], + "type": "tree" + }, + { + "conditions": [], + "rules": [ + { + "conditions": [ + { + "fn": "isSet", + "argv": [ + { + "ref": "Region" + } + ] + } + ], + "rules": [ + { + "conditions": [ + { + "fn": "aws.partition", + "argv": [ + { + "ref": "Region" + } + ], + "assign": "PartitionResult" + } + ], + "rules": [ + { + "conditions": [ + { + "fn": "booleanEquals", + "argv": [ + { + "ref": "UseFIPS" + }, + true + ] + }, + { + "fn": "booleanEquals", + "argv": [ + { + "ref": "UseDualStack" + }, + true + ] + } + ], + "rules": [ + { + "conditions": [ + { + "fn": "booleanEquals", + "argv": [ + true, + { + "fn": "getAttr", + "argv": [ + { + "ref": "PartitionResult" + }, + "supportsFIPS" + ] + } + ] + }, + { + "fn": "booleanEquals", + "argv": [ + true, + { + "fn": "getAttr", + "argv": [ + { + "ref": "PartitionResult" + }, + "supportsDualStack" + ] + } + ] + } + ], + "rules": [ + { + "conditions": [], + "rules": [ + { + "conditions": [], + "endpoint": { + "url": "https://trebucheteventheadertraitonenum-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", + "properties": {}, + "headers": {} + }, + "type": "endpoint" + } + ], + "type": "tree" + } + ], + "type": "tree" + }, + { + "conditions": [], + "error": "FIPS and DualStack are enabled, but this partition does not support one or both", + "type": "error" + } + ], + "type": "tree" + }, + { + "conditions": [ + { + "fn": "booleanEquals", + "argv": [ + { + "ref": "UseFIPS" + }, + true + ] + } + ], + "rules": [ + { + "conditions": [ + { + "fn": "booleanEquals", + "argv": [ + { + "fn": "getAttr", + "argv": [ + { + "ref": "PartitionResult" + }, + "supportsFIPS" + ] + }, + true + ] + } + ], + "rules": [ + { + "conditions": [], + "rules": [ + { + "conditions": [], + "endpoint": { + "url": "https://trebucheteventheadertraitonenum-fips.{Region}.{PartitionResult#dnsSuffix}", + "properties": {}, + "headers": {} + }, + "type": "endpoint" + } + ], + "type": "tree" + } + ], + "type": "tree" + }, + { + "conditions": [], + "error": "FIPS is enabled but this partition does not support FIPS", + "type": "error" + } + ], + "type": "tree" + }, + { + "conditions": [ + { + "fn": "booleanEquals", + "argv": [ + { + "ref": "UseDualStack" + }, + true + ] + } + ], + "rules": [ + { + "conditions": [ + { + "fn": "booleanEquals", + "argv": [ + true, + { + "fn": "getAttr", + "argv": [ + { + "ref": "PartitionResult" + }, + "supportsDualStack" + ] + } + ] + } + ], + "rules": [ + { + "conditions": [], + "rules": [ + { + "conditions": [], + "endpoint": { + "url": "https://trebucheteventheadertraitonenum.{Region}.{PartitionResult#dualStackDnsSuffix}", + "properties": {}, + "headers": {} + }, + "type": "endpoint" + } + ], + "type": "tree" + } + ], + "type": "tree" + }, + { + "conditions": [], + "error": "DualStack is enabled but this partition does not support DualStack", + "type": "error" + } + ], + "type": "tree" + }, + { + "conditions": [], + "rules": [ + { + "conditions": [], + "endpoint": { + "url": "https://trebucheteventheadertraitonenum.{Region}.{PartitionResult#dnsSuffix}", + "properties": {}, + "headers": {} + }, + "type": "endpoint" + } + ], + "type": "tree" + } + ], + "type": "tree" + } + ], + "type": "tree" + }, + { + "conditions": [], + "error": "Invalid Configuration: Missing Region", + "type": "error" + } + ], + "type": "tree" + } + ] + }, + "smithy.rules#endpointTests": { + "testCases": [ + { + "documentation": "For region us-east-1 with FIPS enabled and DualStack enabled", + "expect": { + "endpoint": { + "url": "https://trebucheteventheadertraitonenum-fips.us-east-1.api.aws" + } + }, + "params": { + "Region": "us-east-1", + "UseFIPS": true, + "UseDualStack": true + } + }, + { + "documentation": "For region us-east-1 with FIPS enabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://trebucheteventheadertraitonenum-fips.us-east-1.amazonaws.com" + } + }, + "params": { + "Region": "us-east-1", + "UseFIPS": true, + "UseDualStack": false + } + }, + { + "documentation": "For region us-east-1 with FIPS disabled and DualStack enabled", + "expect": { + "endpoint": { + "url": "https://trebucheteventheadertraitonenum.us-east-1.api.aws" + } + }, + "params": { + "Region": "us-east-1", + "UseFIPS": false, + "UseDualStack": true + } + }, + { + "documentation": "For region us-east-1 with FIPS disabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://trebucheteventheadertraitonenum.us-east-1.amazonaws.com" + } + }, + "params": { + "Region": "us-east-1", + "UseFIPS": false, + "UseDualStack": false + } + }, + { + "documentation": "For region cn-north-1 with FIPS enabled and DualStack enabled", + "expect": { + "endpoint": { + "url": "https://trebucheteventheadertraitonenum-fips.cn-north-1.api.amazonwebservices.com.cn" + } + }, + "params": { + "Region": "cn-north-1", + "UseFIPS": true, + "UseDualStack": true + } + }, + { + "documentation": "For region cn-north-1 with FIPS enabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://trebucheteventheadertraitonenum-fips.cn-north-1.amazonaws.com.cn" + } + }, + "params": { + "Region": "cn-north-1", + "UseFIPS": true, + "UseDualStack": false + } + }, + { + "documentation": "For region cn-north-1 with FIPS disabled and DualStack enabled", + "expect": { + "endpoint": { + "url": "https://trebucheteventheadertraitonenum.cn-north-1.api.amazonwebservices.com.cn" + } + }, + "params": { + "Region": "cn-north-1", + "UseFIPS": false, + "UseDualStack": true + } + }, + { + "documentation": "For region cn-north-1 with FIPS disabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://trebucheteventheadertraitonenum.cn-north-1.amazonaws.com.cn" + } + }, + "params": { + "Region": "cn-north-1", + "UseFIPS": false, + "UseDualStack": false + } + }, + { + "documentation": "For region us-gov-east-1 with FIPS enabled and DualStack enabled", + "expect": { + "endpoint": { + "url": "https://trebucheteventheadertraitonenum-fips.us-gov-east-1.api.aws" + } + }, + "params": { + "Region": "us-gov-east-1", + "UseFIPS": true, + "UseDualStack": true + } + }, + { + "documentation": "For region us-gov-east-1 with FIPS enabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://trebucheteventheadertraitonenum-fips.us-gov-east-1.amazonaws.com" + } + }, + "params": { + "Region": "us-gov-east-1", + "UseFIPS": true, + "UseDualStack": false + } + }, + { + "documentation": "For region us-gov-east-1 with FIPS disabled and DualStack enabled", + "expect": { + "endpoint": { + "url": "https://trebucheteventheadertraitonenum.us-gov-east-1.api.aws" + } + }, + "params": { + "Region": "us-gov-east-1", + "UseFIPS": false, + "UseDualStack": true + } + }, + { + "documentation": "For region us-gov-east-1 with FIPS disabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://trebucheteventheadertraitonenum.us-gov-east-1.amazonaws.com" + } + }, + "params": { + "Region": "us-gov-east-1", + "UseFIPS": false, + "UseDualStack": false + } + }, + { + "documentation": "For region us-iso-east-1 with FIPS enabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://trebucheteventheadertraitonenum-fips.us-iso-east-1.c2s.ic.gov" + } + }, + "params": { + "Region": "us-iso-east-1", + "UseFIPS": true, + "UseDualStack": false + } + }, + { + "documentation": "For region us-iso-east-1 with FIPS disabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://trebucheteventheadertraitonenum.us-iso-east-1.c2s.ic.gov" + } + }, + "params": { + "Region": "us-iso-east-1", + "UseFIPS": false, + "UseDualStack": false + } + }, + { + "documentation": "For region us-isob-east-1 with FIPS enabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://trebucheteventheadertraitonenum-fips.us-isob-east-1.sc2s.sgov.gov" + } + }, + "params": { + "Region": "us-isob-east-1", + "UseFIPS": true, + "UseDualStack": false + } + }, + { + "documentation": "For region us-isob-east-1 with FIPS disabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://trebucheteventheadertraitonenum.us-isob-east-1.sc2s.sgov.gov" + } + }, + "params": { + "Region": "us-isob-east-1", + "UseFIPS": false, + "UseDualStack": false + } + }, + { + "documentation": "For custom endpoint with region set and fips disabled and dualstack disabled", + "expect": { + "endpoint": { + "url": "https://example.com" + } + }, + "params": { + "Region": "us-east-1", + "UseFIPS": false, + "UseDualStack": false, + "Endpoint": "https://example.com" + } + }, + { + "documentation": "For custom endpoint with region not set and fips disabled and dualstack disabled", + "expect": { + "endpoint": { + "url": "https://example.com" + } + }, + "params": { + "UseFIPS": false, + "UseDualStack": false, + "Endpoint": "https://example.com" + } + }, + { + "documentation": "For custom endpoint with fips enabled and dualstack disabled", + "expect": { + "error": "Invalid Configuration: FIPS and custom endpoint are not supported" + }, + "params": { + "Region": "us-east-1", + "UseFIPS": true, + "UseDualStack": false, + "Endpoint": "https://example.com" + } + }, + { + "documentation": "For custom endpoint with fips disabled and dualstack enabled", + "expect": { + "error": "Invalid Configuration: Dualstack and custom endpoint are not supported" + }, + "params": { + "Region": "us-east-1", + "UseFIPS": false, + "UseDualStack": true, + "Endpoint": "https://example.com" + } + }, + { + "documentation": "Missing region", + "expect": { + "error": "Invalid Configuration: Missing Region" + } + } + ], + "version": "1.0" + } + } + }, + "com.amazonaws.trebucheteventheadertraitonenum#partBlob": { + "type": "blob" + }, + "com.amazonaws.trebucheteventheadertraitonenum#utf8TextEventHeaderEnum": { + "type": "enum", + "members": { + "FALSE": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "FALSE" + } + }, + "TRUE": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "TRUE" + } + } + } + } + } +} \ No newline at end of file From 85b9df78fe2333c409def8aca4616023b34db179 Mon Sep 17 00:00:00 2001 From: 0marperez Date: Tue, 11 Nov 2025 13:05:44 -0500 Subject: [PATCH 2/7] delete model --- .../trebucheteventheadertraitonenum.json | 782 ------------------ 1 file changed, 782 deletions(-) delete mode 100644 codegen/sdk/aws-models/trebucheteventheadertraitonenum.json diff --git a/codegen/sdk/aws-models/trebucheteventheadertraitonenum.json b/codegen/sdk/aws-models/trebucheteventheadertraitonenum.json deleted file mode 100644 index 142b85cf5ed..00000000000 --- a/codegen/sdk/aws-models/trebucheteventheadertraitonenum.json +++ /dev/null @@ -1,782 +0,0 @@ -{ - "smithy": "2.0", - "shapes": { - "com.amazonaws.trebucheteventheadertraitonenum#GetTest": { - "type": "operation", - "input": { - "target": "com.amazonaws.trebucheteventheadertraitonenum#TestRequest" - }, - "output": { - "target": "com.amazonaws.trebucheteventheadertraitonenum#TestResult" - }, - "traits": { - "smithy.api#documentation": "I don't have doc" - } - }, - "com.amazonaws.trebucheteventheadertraitonenum#InvokeEndpointWithBidirectionalStream": { - "type": "operation", - "input": { - "target": "com.amazonaws.trebucheteventheadertraitonenum#InvokeEndpointWithBidirectionalStreamInput" - }, - "output": { - "target": "com.amazonaws.trebucheteventheadertraitonenum#InvokeEndpointWithBidirectionalStreamInput" - } - }, - "com.amazonaws.trebucheteventheadertraitonenum#InvokeEndpointWithBidirectionalStreamInput": { - "type": "structure", - "members": { - "body": { - "target": "com.amazonaws.trebucheteventheadertraitonenum#RequestEventStream", - "traits": { - "smithy.api#httpPayload": {}, - "smithy.api#required": {} - } - } - } - }, - "com.amazonaws.trebucheteventheadertraitonenum#RequestEventStream": { - "type": "union", - "members": { - "payloadPart": { - "target": "com.amazonaws.trebucheteventheadertraitonenum#RequestPayloadPart" - } - }, - "traits": { - "smithy.api#streaming": {} - } - }, - "com.amazonaws.trebucheteventheadertraitonenum#RequestPayloadPart": { - "type": "structure", - "members": { - "bytes": { - "target": "com.amazonaws.trebucheteventheadertraitonenum#partBlob", - "traits": { - "smithy.api#eventPayload": {} - } - }, - "isUtf8TextEventHeader": { - "target": "com.amazonaws.trebucheteventheadertraitonenum#utf8TextEventHeaderEnum", - "traits": { - "smithy.api#eventHeader": {} - } - } - } - }, - "com.amazonaws.trebucheteventheadertraitonenum#TestFeatureArn": { - "type": "structure", - "members": { - "featureArn": { - "target": "smithy.api#String", - "traits": { - "smithy.api#documentation": "TestFeatureArn Docs" - } - } - } - }, - "com.amazonaws.trebucheteventheadertraitonenum#TestFeatureName": { - "type": "structure", - "members": { - "featureName": { - "target": "smithy.api#String", - "traits": { - "smithy.api#documentation": "TestFeatureName Docs" - } - } - } - }, - "com.amazonaws.trebucheteventheadertraitonenum#TestRequest": { - "type": "structure", - "members": { - "featureName": { - "target": "com.amazonaws.trebucheteventheadertraitonenum#TestFeatureName", - "traits": { - "smithy.api#documentation": "TestRequest Docs" - } - } - }, - "traits": { - "smithy.api#input": {} - } - }, - "com.amazonaws.trebucheteventheadertraitonenum#TestResult": { - "type": "structure", - "members": { - "featureArn": { - "target": "com.amazonaws.trebucheteventheadertraitonenum#TestFeatureArn", - "traits": { - "smithy.api#documentation": "TestResult Docs" - } - } - }, - "traits": { - "smithy.api#output": {} - } - }, - "com.amazonaws.trebucheteventheadertraitonenum#TrebuchetEventHeaderTraitOnEnum": { - "type": "service", - "version": "2019-02-07", - "operations": [ - { - "target": "com.amazonaws.trebucheteventheadertraitonenum#GetTest" - }, - { - "target": "com.amazonaws.trebucheteventheadertraitonenum#InvokeEndpointWithBidirectionalStream" - } - ], - "traits": { - "aws.api#service": { - "sdkId": "TrebuchetEventHeaderTraitOnEnum", - "arnNamespace": "trebucheteventheadertraitonenum", - "cloudFormationName": "TrebuchetEventHeaderTraitOnEnum", - "cloudTrailEventSource": "trebucheteventheadertraitonenum.amazonaws.com" - }, - "aws.auth#sigv4": { - "name": "trebucheteventheadertraitonenum" - }, - "aws.protocols#awsJson1_1": {}, - "smithy.api#documentation": "Test Doc", - "smithy.api#title": "AWS TrebuchetEventHeaderTraitOnEnum", - "smithy.rules#endpointRuleSet": { - "version": "1.0", - "parameters": { - "Region": { - "builtIn": "AWS::Region", - "required": false, - "documentation": "The AWS region used to dispatch the request.", - "type": "string" - }, - "UseDualStack": { - "builtIn": "AWS::UseDualStack", - "required": true, - "default": false, - "documentation": "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - "type": "boolean" - }, - "UseFIPS": { - "builtIn": "AWS::UseFIPS", - "required": true, - "default": false, - "documentation": "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - "type": "boolean" - }, - "Endpoint": { - "builtIn": "SDK::Endpoint", - "required": false, - "documentation": "Override the endpoint used to send this request", - "type": "string" - } - }, - "rules": [ - { - "conditions": [ - { - "fn": "isSet", - "argv": [ - { - "ref": "Endpoint" - } - ] - } - ], - "rules": [ - { - "conditions": [ - { - "fn": "booleanEquals", - "argv": [ - { - "ref": "UseFIPS" - }, - true - ] - } - ], - "error": "Invalid Configuration: FIPS and custom endpoint are not supported", - "type": "error" - }, - { - "conditions": [], - "rules": [ - { - "conditions": [ - { - "fn": "booleanEquals", - "argv": [ - { - "ref": "UseDualStack" - }, - true - ] - } - ], - "error": "Invalid Configuration: Dualstack and custom endpoint are not supported", - "type": "error" - }, - { - "conditions": [], - "endpoint": { - "url": { - "ref": "Endpoint" - }, - "properties": {}, - "headers": {} - }, - "type": "endpoint" - } - ], - "type": "tree" - } - ], - "type": "tree" - }, - { - "conditions": [], - "rules": [ - { - "conditions": [ - { - "fn": "isSet", - "argv": [ - { - "ref": "Region" - } - ] - } - ], - "rules": [ - { - "conditions": [ - { - "fn": "aws.partition", - "argv": [ - { - "ref": "Region" - } - ], - "assign": "PartitionResult" - } - ], - "rules": [ - { - "conditions": [ - { - "fn": "booleanEquals", - "argv": [ - { - "ref": "UseFIPS" - }, - true - ] - }, - { - "fn": "booleanEquals", - "argv": [ - { - "ref": "UseDualStack" - }, - true - ] - } - ], - "rules": [ - { - "conditions": [ - { - "fn": "booleanEquals", - "argv": [ - true, - { - "fn": "getAttr", - "argv": [ - { - "ref": "PartitionResult" - }, - "supportsFIPS" - ] - } - ] - }, - { - "fn": "booleanEquals", - "argv": [ - true, - { - "fn": "getAttr", - "argv": [ - { - "ref": "PartitionResult" - }, - "supportsDualStack" - ] - } - ] - } - ], - "rules": [ - { - "conditions": [], - "rules": [ - { - "conditions": [], - "endpoint": { - "url": "https://trebucheteventheadertraitonenum-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - "properties": {}, - "headers": {} - }, - "type": "endpoint" - } - ], - "type": "tree" - } - ], - "type": "tree" - }, - { - "conditions": [], - "error": "FIPS and DualStack are enabled, but this partition does not support one or both", - "type": "error" - } - ], - "type": "tree" - }, - { - "conditions": [ - { - "fn": "booleanEquals", - "argv": [ - { - "ref": "UseFIPS" - }, - true - ] - } - ], - "rules": [ - { - "conditions": [ - { - "fn": "booleanEquals", - "argv": [ - { - "fn": "getAttr", - "argv": [ - { - "ref": "PartitionResult" - }, - "supportsFIPS" - ] - }, - true - ] - } - ], - "rules": [ - { - "conditions": [], - "rules": [ - { - "conditions": [], - "endpoint": { - "url": "https://trebucheteventheadertraitonenum-fips.{Region}.{PartitionResult#dnsSuffix}", - "properties": {}, - "headers": {} - }, - "type": "endpoint" - } - ], - "type": "tree" - } - ], - "type": "tree" - }, - { - "conditions": [], - "error": "FIPS is enabled but this partition does not support FIPS", - "type": "error" - } - ], - "type": "tree" - }, - { - "conditions": [ - { - "fn": "booleanEquals", - "argv": [ - { - "ref": "UseDualStack" - }, - true - ] - } - ], - "rules": [ - { - "conditions": [ - { - "fn": "booleanEquals", - "argv": [ - true, - { - "fn": "getAttr", - "argv": [ - { - "ref": "PartitionResult" - }, - "supportsDualStack" - ] - } - ] - } - ], - "rules": [ - { - "conditions": [], - "rules": [ - { - "conditions": [], - "endpoint": { - "url": "https://trebucheteventheadertraitonenum.{Region}.{PartitionResult#dualStackDnsSuffix}", - "properties": {}, - "headers": {} - }, - "type": "endpoint" - } - ], - "type": "tree" - } - ], - "type": "tree" - }, - { - "conditions": [], - "error": "DualStack is enabled but this partition does not support DualStack", - "type": "error" - } - ], - "type": "tree" - }, - { - "conditions": [], - "rules": [ - { - "conditions": [], - "endpoint": { - "url": "https://trebucheteventheadertraitonenum.{Region}.{PartitionResult#dnsSuffix}", - "properties": {}, - "headers": {} - }, - "type": "endpoint" - } - ], - "type": "tree" - } - ], - "type": "tree" - } - ], - "type": "tree" - }, - { - "conditions": [], - "error": "Invalid Configuration: Missing Region", - "type": "error" - } - ], - "type": "tree" - } - ] - }, - "smithy.rules#endpointTests": { - "testCases": [ - { - "documentation": "For region us-east-1 with FIPS enabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://trebucheteventheadertraitonenum-fips.us-east-1.api.aws" - } - }, - "params": { - "Region": "us-east-1", - "UseFIPS": true, - "UseDualStack": true - } - }, - { - "documentation": "For region us-east-1 with FIPS enabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://trebucheteventheadertraitonenum-fips.us-east-1.amazonaws.com" - } - }, - "params": { - "Region": "us-east-1", - "UseFIPS": true, - "UseDualStack": false - } - }, - { - "documentation": "For region us-east-1 with FIPS disabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://trebucheteventheadertraitonenum.us-east-1.api.aws" - } - }, - "params": { - "Region": "us-east-1", - "UseFIPS": false, - "UseDualStack": true - } - }, - { - "documentation": "For region us-east-1 with FIPS disabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://trebucheteventheadertraitonenum.us-east-1.amazonaws.com" - } - }, - "params": { - "Region": "us-east-1", - "UseFIPS": false, - "UseDualStack": false - } - }, - { - "documentation": "For region cn-north-1 with FIPS enabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://trebucheteventheadertraitonenum-fips.cn-north-1.api.amazonwebservices.com.cn" - } - }, - "params": { - "Region": "cn-north-1", - "UseFIPS": true, - "UseDualStack": true - } - }, - { - "documentation": "For region cn-north-1 with FIPS enabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://trebucheteventheadertraitonenum-fips.cn-north-1.amazonaws.com.cn" - } - }, - "params": { - "Region": "cn-north-1", - "UseFIPS": true, - "UseDualStack": false - } - }, - { - "documentation": "For region cn-north-1 with FIPS disabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://trebucheteventheadertraitonenum.cn-north-1.api.amazonwebservices.com.cn" - } - }, - "params": { - "Region": "cn-north-1", - "UseFIPS": false, - "UseDualStack": true - } - }, - { - "documentation": "For region cn-north-1 with FIPS disabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://trebucheteventheadertraitonenum.cn-north-1.amazonaws.com.cn" - } - }, - "params": { - "Region": "cn-north-1", - "UseFIPS": false, - "UseDualStack": false - } - }, - { - "documentation": "For region us-gov-east-1 with FIPS enabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://trebucheteventheadertraitonenum-fips.us-gov-east-1.api.aws" - } - }, - "params": { - "Region": "us-gov-east-1", - "UseFIPS": true, - "UseDualStack": true - } - }, - { - "documentation": "For region us-gov-east-1 with FIPS enabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://trebucheteventheadertraitonenum-fips.us-gov-east-1.amazonaws.com" - } - }, - "params": { - "Region": "us-gov-east-1", - "UseFIPS": true, - "UseDualStack": false - } - }, - { - "documentation": "For region us-gov-east-1 with FIPS disabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://trebucheteventheadertraitonenum.us-gov-east-1.api.aws" - } - }, - "params": { - "Region": "us-gov-east-1", - "UseFIPS": false, - "UseDualStack": true - } - }, - { - "documentation": "For region us-gov-east-1 with FIPS disabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://trebucheteventheadertraitonenum.us-gov-east-1.amazonaws.com" - } - }, - "params": { - "Region": "us-gov-east-1", - "UseFIPS": false, - "UseDualStack": false - } - }, - { - "documentation": "For region us-iso-east-1 with FIPS enabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://trebucheteventheadertraitonenum-fips.us-iso-east-1.c2s.ic.gov" - } - }, - "params": { - "Region": "us-iso-east-1", - "UseFIPS": true, - "UseDualStack": false - } - }, - { - "documentation": "For region us-iso-east-1 with FIPS disabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://trebucheteventheadertraitonenum.us-iso-east-1.c2s.ic.gov" - } - }, - "params": { - "Region": "us-iso-east-1", - "UseFIPS": false, - "UseDualStack": false - } - }, - { - "documentation": "For region us-isob-east-1 with FIPS enabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://trebucheteventheadertraitonenum-fips.us-isob-east-1.sc2s.sgov.gov" - } - }, - "params": { - "Region": "us-isob-east-1", - "UseFIPS": true, - "UseDualStack": false - } - }, - { - "documentation": "For region us-isob-east-1 with FIPS disabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://trebucheteventheadertraitonenum.us-isob-east-1.sc2s.sgov.gov" - } - }, - "params": { - "Region": "us-isob-east-1", - "UseFIPS": false, - "UseDualStack": false - } - }, - { - "documentation": "For custom endpoint with region set and fips disabled and dualstack disabled", - "expect": { - "endpoint": { - "url": "https://example.com" - } - }, - "params": { - "Region": "us-east-1", - "UseFIPS": false, - "UseDualStack": false, - "Endpoint": "https://example.com" - } - }, - { - "documentation": "For custom endpoint with region not set and fips disabled and dualstack disabled", - "expect": { - "endpoint": { - "url": "https://example.com" - } - }, - "params": { - "UseFIPS": false, - "UseDualStack": false, - "Endpoint": "https://example.com" - } - }, - { - "documentation": "For custom endpoint with fips enabled and dualstack disabled", - "expect": { - "error": "Invalid Configuration: FIPS and custom endpoint are not supported" - }, - "params": { - "Region": "us-east-1", - "UseFIPS": true, - "UseDualStack": false, - "Endpoint": "https://example.com" - } - }, - { - "documentation": "For custom endpoint with fips disabled and dualstack enabled", - "expect": { - "error": "Invalid Configuration: Dualstack and custom endpoint are not supported" - }, - "params": { - "Region": "us-east-1", - "UseFIPS": false, - "UseDualStack": true, - "Endpoint": "https://example.com" - } - }, - { - "documentation": "Missing region", - "expect": { - "error": "Invalid Configuration: Missing Region" - } - } - ], - "version": "1.0" - } - } - }, - "com.amazonaws.trebucheteventheadertraitonenum#partBlob": { - "type": "blob" - }, - "com.amazonaws.trebucheteventheadertraitonenum#utf8TextEventHeaderEnum": { - "type": "enum", - "members": { - "FALSE": { - "target": "smithy.api#Unit", - "traits": { - "smithy.api#enumValue": "FALSE" - } - }, - "TRUE": { - "target": "smithy.api#Unit", - "traits": { - "smithy.api#enumValue": "TRUE" - } - } - } - } - } -} \ No newline at end of file From d08fd99c37ff2bc6747c0d6aebc256c3a9878dd3 Mon Sep 17 00:00:00 2001 From: 0marperez Date: Tue, 11 Nov 2025 13:25:41 -0500 Subject: [PATCH 3/7] run test --- .github/workflows/release-metrics.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/release-metrics.yml b/.github/workflows/release-metrics.yml index 58fdf75bcb2..f0c8df27a96 100644 --- a/.github/workflows/release-metrics.yml +++ b/.github/workflows/release-metrics.yml @@ -1,8 +1,7 @@ name: Release metrics on: - release: - types: [ published ] + pull_request: # TODO: Change back to release when done testing jobs: build-sdk: From 815566756b52be71fc45821900aaf69df7c75787 Mon Sep 17 00:00:00 2001 From: 0marperez Date: Tue, 11 Nov 2025 14:42:54 -0500 Subject: [PATCH 4/7] test latest repo tools changes From e7ebc0107a554e6c5a9db594158bb5557d479d18 Mon Sep 17 00:00:00 2001 From: 0marperez Date: Tue, 11 Nov 2025 15:34:01 -0500 Subject: [PATCH 5/7] test cloudwatch permission changes to IAM role From 4926b21dac694730f83101813e21498053c9cff9 Mon Sep 17 00:00:00 2001 From: 0marperez Date: Tue, 11 Nov 2025 16:04:30 -0500 Subject: [PATCH 6/7] remove testing code --- .github/workflows/release-metrics.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release-metrics.yml b/.github/workflows/release-metrics.yml index f0c8df27a96..58fdf75bcb2 100644 --- a/.github/workflows/release-metrics.yml +++ b/.github/workflows/release-metrics.yml @@ -1,7 +1,8 @@ name: Release metrics on: - pull_request: # TODO: Change back to release when done testing + release: + types: [ published ] jobs: build-sdk: From 747b55d9781f74e3979ba364c093932ff6d32315 Mon Sep 17 00:00:00 2001 From: 0marperez Date: Tue, 11 Nov 2025 16:07:32 -0500 Subject: [PATCH 7/7] Rerun CI with fixed CI