From 5df426acd2fbd5c0b52c0fcc2c20cfd42492d26c Mon Sep 17 00:00:00 2001 From: AWS SDK for Go v2 automation user Date: Wed, 19 Jun 2024 18:10:56 +0000 Subject: [PATCH] Update API model --- codegen/sdk-codegen/aws-models/artifact.json | 6 ++ codegen/sdk-codegen/aws-models/athena.json | 15 ++- .../cost-and-usage-report-service.json | 15 ++- .../aws-models/direct-connect.json | 68 +++++++++---- .../aws-models/elastic-transcoder.json | 55 +++++++---- .../sdk-codegen/aws-models/opensearch.json | 98 ++++++++++++++++++- 6 files changed, 211 insertions(+), 46 deletions(-) diff --git a/codegen/sdk-codegen/aws-models/artifact.json b/codegen/sdk-codegen/aws-models/artifact.json index cd5db0c4fb2..2cbf6b493bc 100644 --- a/codegen/sdk-codegen/aws-models/artifact.json +++ b/codegen/sdk-codegen/aws-models/artifact.json @@ -1678,6 +1678,12 @@ "traits": { "smithy.api#documentation": "

The message associated with the current upload state.

" } + }, + "acceptanceType": { + "target": "com.amazonaws.artifact#AcceptanceType", + "traits": { + "smithy.api#documentation": "

Acceptance type for report.

" + } } }, "traits": { diff --git a/codegen/sdk-codegen/aws-models/athena.json b/codegen/sdk-codegen/aws-models/athena.json index d6684867223..eaee8c97326 100644 --- a/codegen/sdk-codegen/aws-models/athena.json +++ b/codegen/sdk-codegen/aws-models/athena.json @@ -5229,7 +5229,20 @@ "inputToken": "NextToken", "outputToken": "NextToken", "pageSize": "MaxResults" - } + }, + "smithy.test#smokeTests": [ + { + "id": "ListNamedQueriesSuccess", + "params": {}, + "vendorParams": { + "region": "us-west-2" + }, + "vendorParamsShape": "aws.test#AwsVendorParams", + "expect": { + "success": {} + } + } + ] } }, "com.amazonaws.athena#ListNamedQueriesInput": { diff --git a/codegen/sdk-codegen/aws-models/cost-and-usage-report-service.json b/codegen/sdk-codegen/aws-models/cost-and-usage-report-service.json index 01cfb188b62..d1418ece5c5 100644 --- a/codegen/sdk-codegen/aws-models/cost-and-usage-report-service.json +++ b/codegen/sdk-codegen/aws-models/cost-and-usage-report-service.json @@ -1085,7 +1085,20 @@ "inputToken": "NextToken", "outputToken": "NextToken", "pageSize": "MaxResults" - } + }, + "smithy.test#smokeTests": [ + { + "id": "DescribeReportDefinitionsSuccess", + "params": {}, + "vendorParams": { + "region": "us-east-1" + }, + "vendorParamsShape": "aws.test#AwsVendorParams", + "expect": { + "success": {} + } + } + ] } }, "com.amazonaws.costandusagereportservice#DescribeReportDefinitionsRequest": { diff --git a/codegen/sdk-codegen/aws-models/direct-connect.json b/codegen/sdk-codegen/aws-models/direct-connect.json index 897ec293306..5839503f07e 100644 --- a/codegen/sdk-codegen/aws-models/direct-connect.json +++ b/codegen/sdk-codegen/aws-models/direct-connect.json @@ -2512,7 +2512,33 @@ } ], "traits": { - "smithy.api#documentation": "

Displays the specified connection or all connections in this Region.

" + "smithy.api#documentation": "

Displays the specified connection or all connections in this Region.

", + "smithy.test#smokeTests": [ + { + "id": "DescribeConnectionsSuccess", + "params": {}, + "vendorParams": { + "region": "us-west-2" + }, + "vendorParamsShape": "aws.test#AwsVendorParams", + "expect": { + "success": {} + } + }, + { + "id": "DescribeConnectionsFailure", + "params": { + "connectionId": "fake-connection" + }, + "vendorParams": { + "region": "us-west-2" + }, + "vendorParamsShape": "aws.test#AwsVendorParams", + "expect": { + "failure": {} + } + } + ] } }, "com.amazonaws.directconnect#DescribeConnectionsOnInterconnect": { @@ -5261,7 +5287,6 @@ ] } ], - "type": "tree", "rules": [ { "conditions": [ @@ -5304,7 +5329,8 @@ }, "type": "endpoint" } - ] + ], + "type": "tree" }, { "conditions": [ @@ -5317,7 +5343,6 @@ ] } ], - "type": "tree", "rules": [ { "conditions": [ @@ -5331,7 +5356,6 @@ "assign": "PartitionResult" } ], - "type": "tree", "rules": [ { "conditions": [ @@ -5354,7 +5378,6 @@ ] } ], - "type": "tree", "rules": [ { "conditions": [ @@ -5389,7 +5412,6 @@ ] } ], - "type": "tree", "rules": [ { "conditions": [], @@ -5400,14 +5422,16 @@ }, "type": "endpoint" } - ] + ], + "type": "tree" }, { "conditions": [], "error": "FIPS and DualStack are enabled, but this partition does not support one or both", "type": "error" } - ] + ], + "type": "tree" }, { "conditions": [ @@ -5421,14 +5445,12 @@ ] } ], - "type": "tree", "rules": [ { "conditions": [ { "fn": "booleanEquals", "argv": [ - true, { "fn": "getAttr", "argv": [ @@ -5437,11 +5459,11 @@ }, "supportsFIPS" ] - } + }, + true ] } ], - "type": "tree", "rules": [ { "conditions": [], @@ -5452,14 +5474,16 @@ }, "type": "endpoint" } - ] + ], + "type": "tree" }, { "conditions": [], "error": "FIPS is enabled but this partition does not support FIPS", "type": "error" } - ] + ], + "type": "tree" }, { "conditions": [ @@ -5473,7 +5497,6 @@ ] } ], - "type": "tree", "rules": [ { "conditions": [ @@ -5493,7 +5516,6 @@ ] } ], - "type": "tree", "rules": [ { "conditions": [], @@ -5504,14 +5526,16 @@ }, "type": "endpoint" } - ] + ], + "type": "tree" }, { "conditions": [], "error": "DualStack is enabled but this partition does not support DualStack", "type": "error" } - ] + ], + "type": "tree" }, { "conditions": [], @@ -5522,9 +5546,11 @@ }, "type": "endpoint" } - ] + ], + "type": "tree" } - ] + ], + "type": "tree" }, { "conditions": [], diff --git a/codegen/sdk-codegen/aws-models/elastic-transcoder.json b/codegen/sdk-codegen/aws-models/elastic-transcoder.json index 56fb6c74c61..9efdaacd6b7 100644 --- a/codegen/sdk-codegen/aws-models/elastic-transcoder.json +++ b/codegen/sdk-codegen/aws-models/elastic-transcoder.json @@ -1318,7 +1318,6 @@ ] } ], - "type": "tree", "rules": [ { "conditions": [ @@ -1361,7 +1360,8 @@ }, "type": "endpoint" } - ] + ], + "type": "tree" }, { "conditions": [ @@ -1374,7 +1374,6 @@ ] } ], - "type": "tree", "rules": [ { "conditions": [ @@ -1388,7 +1387,6 @@ "assign": "PartitionResult" } ], - "type": "tree", "rules": [ { "conditions": [ @@ -1411,7 +1409,6 @@ ] } ], - "type": "tree", "rules": [ { "conditions": [ @@ -1446,7 +1443,6 @@ ] } ], - "type": "tree", "rules": [ { "conditions": [], @@ -1457,14 +1453,16 @@ }, "type": "endpoint" } - ] + ], + "type": "tree" }, { "conditions": [], "error": "FIPS and DualStack are enabled, but this partition does not support one or both", "type": "error" } - ] + ], + "type": "tree" }, { "conditions": [ @@ -1478,14 +1476,12 @@ ] } ], - "type": "tree", "rules": [ { "conditions": [ { "fn": "booleanEquals", "argv": [ - true, { "fn": "getAttr", "argv": [ @@ -1494,11 +1490,11 @@ }, "supportsFIPS" ] - } + }, + true ] } ], - "type": "tree", "rules": [ { "conditions": [], @@ -1509,14 +1505,16 @@ }, "type": "endpoint" } - ] + ], + "type": "tree" }, { "conditions": [], "error": "FIPS is enabled but this partition does not support FIPS", "type": "error" } - ] + ], + "type": "tree" }, { "conditions": [ @@ -1530,7 +1528,6 @@ ] } ], - "type": "tree", "rules": [ { "conditions": [ @@ -1550,7 +1547,6 @@ ] } ], - "type": "tree", "rules": [ { "conditions": [], @@ -1561,14 +1557,16 @@ }, "type": "endpoint" } - ] + ], + "type": "tree" }, { "conditions": [], "error": "DualStack is enabled but this partition does not support DualStack", "type": "error" } - ] + ], + "type": "tree" }, { "conditions": [], @@ -1579,9 +1577,11 @@ }, "type": "endpoint" } - ] + ], + "type": "tree" } - ] + ], + "type": "tree" }, { "conditions": [], @@ -2890,7 +2890,20 @@ "inputToken": "PageToken", "outputToken": "NextPageToken", "items": "Presets" - } + }, + "smithy.test#smokeTests": [ + { + "id": "ListPresetsSuccess", + "params": {}, + "vendorParams": { + "region": "us-west-2" + }, + "vendorParamsShape": "aws.test#AwsVendorParams", + "expect": { + "success": {} + } + } + ] } }, "com.amazonaws.elastictranscoder#ListPresetsRequest": { diff --git a/codegen/sdk-codegen/aws-models/opensearch.json b/codegen/sdk-codegen/aws-models/opensearch.json index 13ebaae8f55..c20cf2b0975 100644 --- a/codegen/sdk-codegen/aws-models/opensearch.json +++ b/codegen/sdk-codegen/aws-models/opensearch.json @@ -485,6 +485,12 @@ "smithy.api#documentation": "

Container for information about the SAML configuration for OpenSearch Dashboards.

" } }, + "JWTOptions": { + "target": "com.amazonaws.opensearch#JWTOptionsOutput", + "traits": { + "smithy.api#documentation": "

Container for information about the JWT configuration of the Amazon OpenSearch Service.

" + } + }, "AnonymousAuthDisableDate": { "target": "com.amazonaws.opensearch#DisableTimestamp", "traits": { @@ -529,6 +535,12 @@ "smithy.api#documentation": "

Container for information about the SAML configuration for OpenSearch Dashboards.

" } }, + "JWTOptions": { + "target": "com.amazonaws.opensearch#JWTOptionsInput", + "traits": { + "smithy.api#documentation": "

Container for information about the JWT configuration of the Amazon OpenSearch Service.

" + } + }, "AnonymousAuthEnabled": { "target": "com.amazonaws.opensearch#Boolean", "traits": { @@ -6883,7 +6895,7 @@ "Status": { "target": "com.amazonaws.opensearch#DataSourceStatus", "traits": { - "smithy.api#documentation": "

The status of the data source response.

" + "smithy.api#documentation": "

The status of the data source.

" } } }, @@ -7641,6 +7653,70 @@ "target": "com.amazonaws.opensearch#Issue" } }, + "com.amazonaws.opensearch#JWTOptionsInput": { + "type": "structure", + "members": { + "Enabled": { + "target": "com.amazonaws.opensearch#Boolean", + "traits": { + "smithy.api#documentation": "

True to enable JWT authentication and authorization for a domain.

" + } + }, + "SubjectKey": { + "target": "com.amazonaws.opensearch#SubjectKey", + "traits": { + "smithy.api#documentation": "

Element of the JWT assertion to use for the user name.

" + } + }, + "RolesKey": { + "target": "com.amazonaws.opensearch#RolesKey", + "traits": { + "smithy.api#documentation": "

Element of the JWT assertion to use for roles.

" + } + }, + "PublicKey": { + "target": "com.amazonaws.opensearch#String", + "traits": { + "smithy.api#documentation": "

Element of the JWT assertion used by the cluster to verify JWT signatures.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

The JWT authentication and authorization configuration for an Amazon OpenSearch Service domain.

" + } + }, + "com.amazonaws.opensearch#JWTOptionsOutput": { + "type": "structure", + "members": { + "Enabled": { + "target": "com.amazonaws.opensearch#Boolean", + "traits": { + "smithy.api#documentation": "

True if JWT use is enabled.

" + } + }, + "SubjectKey": { + "target": "com.amazonaws.opensearch#String", + "traits": { + "smithy.api#documentation": "

The key used for matching the JWT subject attribute.

" + } + }, + "RolesKey": { + "target": "com.amazonaws.opensearch#String", + "traits": { + "smithy.api#documentation": "

The key used for matching the JWT roles attribute.

" + } + }, + "PublicKey": { + "target": "com.amazonaws.opensearch#String", + "traits": { + "smithy.api#documentation": "

The key used to verify the signature of incoming JWT requests.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

Describes the JWT options configured for the domain.

" + } + }, "com.amazonaws.opensearch#KmsKeyId": { "type": "string", "traits": { @@ -10954,6 +11030,15 @@ "smithy.api#pattern": "^arn:(aws|aws\\-cn|aws\\-us\\-gov|aws\\-iso|aws\\-iso\\-b):iam::[0-9]+:role\\/" } }, + "com.amazonaws.opensearch#RolesKey": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 1, + "max": 64 + } + } + }, "com.amazonaws.opensearch#RollbackOnDisable": { "type": "enum", "members": { @@ -11768,6 +11853,15 @@ "target": "com.amazonaws.opensearch#String" } }, + "com.amazonaws.opensearch#SubjectKey": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 1, + "max": 64 + } + } + }, "com.amazonaws.opensearch#TLSSecurityPolicy": { "type": "enum", "members": { @@ -11948,7 +12042,7 @@ "Status": { "target": "com.amazonaws.opensearch#DataSourceStatus", "traits": { - "smithy.api#documentation": "

The status of the data source update request.

" + "smithy.api#documentation": "

The status of the data source update.

" } } },