Skip to content

Commit

Permalink
Update API model
Browse files Browse the repository at this point in the history
  • Loading branch information
AWS SDK for Go v2 automation user committed Jul 1, 2024
1 parent 4509a60 commit 0eeba41
Show file tree
Hide file tree
Showing 10 changed files with 685 additions and 60 deletions.
15 changes: 14 additions & 1 deletion codegen/sdk-codegen/aws-models/api-gateway.json
Original file line number Diff line number Diff line change
Expand Up @@ -6478,7 +6478,20 @@
"outputToken": "position",
"items": "items",
"pageSize": "limit"
}
},
"smithy.test#smokeTests": [
{
"id": "GetDomainNamesSuccess",
"params": {},
"vendorParams": {
"region": "us-west-2"
},
"vendorParamsShape": "aws.test#AwsVendorParams",
"expect": {
"success": {}
}
}
]
}
},
"com.amazonaws.apigateway#GetDomainNamesRequest": {
Expand Down
19 changes: 17 additions & 2 deletions codegen/sdk-codegen/aws-models/cognito-identity.json
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@
"sdkId": "Cognito Identity",
"arnNamespace": "cognito-identity",
"cloudFormationName": "Cognito",
"cloudTrailEventSource": "cognitoidentity.amazonaws.com",
"cloudTrailEventSource": "cognito-identity.amazonaws.com",
"endpointPrefix": "cognito-identity"
},
"aws.auth#sigv4": {
Expand Down Expand Up @@ -2484,7 +2484,22 @@
"outputToken": "NextToken",
"items": "IdentityPools",
"pageSize": "MaxResults"
}
},
"smithy.test#smokeTests": [
{
"id": "ListIdentityPoolsSuccess",
"params": {
"MaxResults": 10
},
"vendorParams": {
"region": "us-west-2"
},
"vendorParamsShape": "aws.test#AwsVendorParams",
"expect": {
"success": {}
}
}
]
}
},
"com.amazonaws.cognitoidentity#ListIdentityPoolsInput": {
Expand Down
468 changes: 460 additions & 8 deletions codegen/sdk-codegen/aws-models/connect.json

Large diffs are not rendered by default.

15 changes: 14 additions & 1 deletion codegen/sdk-codegen/aws-models/docdb.json
Original file line number Diff line number Diff line change
Expand Up @@ -4675,7 +4675,20 @@
"outputToken": "Marker",
"items": "DBEngineVersions",
"pageSize": "MaxRecords"
}
},
"smithy.test#smokeTests": [
{
"id": "DescribeDBEngineVersionsSuccess",
"params": {},
"vendorParams": {
"region": "us-west-2"
},
"vendorParamsShape": "aws.test#AwsVendorParams",
"expect": {
"success": {}
}
}
]
}
},
"com.amazonaws.docdb#DescribeDBEngineVersionsMessage": {
Expand Down
6 changes: 6 additions & 0 deletions codegen/sdk-codegen/aws-models/eks.json
Original file line number Diff line number Diff line change
Expand Up @@ -2312,6 +2312,12 @@
"traits": {
"smithy.api#enumValue": "SPOT"
}
},
"CAPACITY_BLOCK": {
"target": "smithy.api#Unit",
"traits": {
"smithy.api#enumValue": "CAPACITY_BLOCK"
}
}
}
},
Expand Down
157 changes: 127 additions & 30 deletions codegen/sdk-codegen/aws-models/payment-cryptography-data.json

Large diffs are not rendered by default.

27 changes: 14 additions & 13 deletions codegen/sdk-codegen/aws-models/payment-cryptography.json
Original file line number Diff line number Diff line change
Expand Up @@ -456,6 +456,16 @@
"smithy.api#output": {}
}
},
"com.amazonaws.paymentcryptography#EvenHexLengthBetween16And32": {
"type": "string",
"traits": {
"smithy.api#length": {
"min": 16,
"max": 32
},
"smithy.api#pattern": "^(?:[0-9a-fA-F][0-9a-fA-F])+$"
}
},
"com.amazonaws.paymentcryptography#ExportAttributes": {
"type": "structure",
"members": {
Expand Down Expand Up @@ -682,7 +692,7 @@
}
},
"RandomNonce": {
"target": "com.amazonaws.paymentcryptography#HexLength16",
"target": "com.amazonaws.paymentcryptography#EvenHexLengthBetween16And32",
"traits": {
"smithy.api#documentation": "<p>A random number value that is unique to the TR-34 key block generated using 2 pass. The operation will fail, if a random nonce value is not provided for a TR-34 key block generated using 2 pass.</p>"
}
Expand Down Expand Up @@ -1113,16 +1123,6 @@
"smithy.api#output": {}
}
},
"com.amazonaws.paymentcryptography#HexLength16": {
"type": "string",
"traits": {
"smithy.api#length": {
"min": 16,
"max": 16
},
"smithy.api#pattern": "^[0-9A-F]+$"
}
},
"com.amazonaws.paymentcryptography#HexLength20Or24": {
"type": "string",
"traits": {
Expand Down Expand Up @@ -1366,7 +1366,7 @@
}
},
"RandomNonce": {
"target": "com.amazonaws.paymentcryptography#HexLength16",
"target": "com.amazonaws.paymentcryptography#EvenHexLengthBetween16And32",
"traits": {
"smithy.api#documentation": "<p>A random number value that is unique to the TR-34 key block generated using 2 pass. The operation will fail, if a random nonce value is not provided for a TR-34 key block generated using 2 pass.</p>"
}
Expand Down Expand Up @@ -3552,7 +3552,8 @@
"min": 56,
"max": 9984
},
"smithy.api#pattern": "^[0-9A-Z]+$"
"smithy.api#pattern": "^[0-9A-Z]+$",
"smithy.api#sensitive": {}
}
},
"com.amazonaws.paymentcryptography#Tr34KeyBlockFormat": {
Expand Down
17 changes: 15 additions & 2 deletions codegen/sdk-codegen/aws-models/sfn.json
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@
"sdkId": "SFN",
"arnNamespace": "states",
"cloudFormationName": "StepFunctions",
"cloudTrailEventSource": "sfn.amazonaws.com",
"cloudTrailEventSource": "states.amazonaws.com",
"docId": "states-2016-11-23",
"endpointPrefix": "states"
},
Expand Down Expand Up @@ -4222,7 +4222,20 @@
"outputToken": "nextToken",
"items": "activities",
"pageSize": "maxResults"
}
},
"smithy.test#smokeTests": [
{
"id": "ListActivitiesSuccess",
"params": {},
"vendorParams": {
"region": "us-west-2"
},
"vendorParamsShape": "aws.test#AwsVendorParams",
"expect": {
"success": {}
}
}
]
}
},
"com.amazonaws.sfn#ListActivitiesInput": {
Expand Down
17 changes: 16 additions & 1 deletion codegen/sdk-codegen/aws-models/swf.json
Original file line number Diff line number Diff line change
Expand Up @@ -3761,7 +3761,22 @@
"outputToken": "nextPageToken",
"items": "domainInfos",
"pageSize": "maximumPageSize"
}
},
"smithy.test#smokeTests": [
{
"id": "ListDomainsSuccess",
"params": {
"registrationStatus": "REGISTERED"
},
"vendorParams": {
"region": "us-west-2"
},
"vendorParamsShape": "aws.test#AwsVendorParams",
"expect": {
"success": {}
}
}
]
}
},
"com.amazonaws.swf#ListDomainsInput": {
Expand Down
4 changes: 2 additions & 2 deletions codegen/sdk-codegen/aws-models/wafv2.json
Original file line number Diff line number Diff line change
Expand Up @@ -7153,7 +7153,7 @@
"InvalidFallbackBehavior": {
"target": "com.amazonaws.wafv2#BodyParsingFallbackBehavior",
"traits": {
"smithy.api#documentation": "<p>What WAF should do if it fails to completely parse the JSON body. The options are\n the following:</p>\n <ul>\n <li>\n <p>\n <code>EVALUATE_AS_STRING</code> - Inspect the body as plain text. WAF\n applies the text transformations and inspection criteria that you defined for the\n JSON inspection to the body text string.</p>\n </li>\n <li>\n <p>\n <code>MATCH</code> - Treat the web request as matching the rule statement.\n WAF applies the rule action to the request.</p>\n </li>\n <li>\n <p>\n <code>NO_MATCH</code> - Treat the web request as not matching the rule\n statement.</p>\n </li>\n </ul>\n <p>If you don't provide this setting, WAF parses and evaluates the content only up to the\n first parsing failure that it encounters. </p>\n <p>WAF does its best to parse the entire JSON body, but might be forced to stop for\n reasons such as invalid characters, duplicate keys, truncation, and any content whose root\n node isn't an object or an array. </p>\n <p>WAF parses the JSON in the following examples as two valid key, value pairs: </p>\n <ul>\n <li>\n <p>Missing comma: <code>{\"key1\":\"value1\"\"key2\":\"value2\"}</code>\n </p>\n </li>\n <li>\n <p>Missing colon: <code>{\"key1\":\"value1\",\"key2\"\"value2\"}</code>\n </p>\n </li>\n <li>\n <p>Extra colons: <code>{\"key1\"::\"value1\",\"key2\"\"value2\"}</code>\n </p>\n </li>\n </ul>"
"smithy.api#documentation": "<p>What WAF should do if it fails to completely parse the JSON body. The options are\n the following:</p>\n <ul>\n <li>\n <p>\n <code>EVALUATE_AS_STRING</code> - Inspect the body as plain text. WAF\n applies the text transformations and inspection criteria that you defined for the\n JSON inspection to the body text string.</p>\n </li>\n <li>\n <p>\n <code>MATCH</code> - Treat the web request as matching the rule statement.\n WAF applies the rule action to the request.</p>\n </li>\n <li>\n <p>\n <code>NO_MATCH</code> - Treat the web request as not matching the rule\n statement.</p>\n </li>\n </ul>\n <p>If you don't provide this setting, WAF parses and evaluates the content only up to the\n first parsing failure that it encounters. </p>\n <note>\n <p>WAF parsing doesn't fully validate the input JSON string, so parsing can succeed even for invalid JSON. When \n parsing succeeds, WAF doesn't apply the fallback behavior. For more information, \n see <a href=\"https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-fields-list.html#waf-rule-statement-request-component-json-body\">JSON body</a> \n in the <i>WAF Developer Guide</i>.</p>\n </note>"
}
},
"OversizeHandling": {
Expand All @@ -7164,7 +7164,7 @@
}
},
"traits": {
"smithy.api#documentation": "<p>Inspect the body of the web request as JSON. The body immediately follows the request\n headers. </p>\n <p>This is used to indicate the web request component to inspect, in the <a>FieldToMatch</a> specification. </p>\n <p>Use the specifications in this object to indicate which parts of the JSON body to\n inspect using the rule's inspection criteria. WAF inspects only the parts of the JSON\n that result from the matches that you indicate.\n </p>\n <p>Example JSON: <code>\"JsonBody\": { \"MatchPattern\": { \"All\": {} }, \"MatchScope\": \"ALL\"\n }</code>\n </p>"
"smithy.api#documentation": "<p>Inspect the body of the web request as JSON. The body immediately follows the request\n headers. </p>\n <p>This is used to indicate the web request component to inspect, in the <a>FieldToMatch</a> specification. </p>\n <p>Use the specifications in this object to indicate which parts of the JSON body to\n inspect using the rule's inspection criteria. WAF inspects only the parts of the JSON\n that result from the matches that you indicate. </p>\n <p>Example JSON: <code>\"JsonBody\": { \"MatchPattern\": { \"All\": {} }, \"MatchScope\": \"ALL\"\n }</code>\n </p>\n <p>For additional information about this request component option, see <a href=\"https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-fields-list.html#waf-rule-statement-request-component-json-body\">JSON body</a> \n in the <i>WAF Developer Guide</i>.</p>"
}
},
"com.amazonaws.wafv2#JsonMatchPattern": {
Expand Down

0 comments on commit 0eeba41

Please sign in to comment.