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 Oct 29, 2024
1 parent 6b53348 commit 650b227
Show file tree
Hide file tree
Showing 7 changed files with 860 additions and 244 deletions.
4 changes: 2 additions & 2 deletions codegen/sdk-codegen/aws-models/bedrock-runtime.json
Original file line number Diff line number Diff line change
Expand Up @@ -1027,7 +1027,7 @@
"min": 1,
"max": 2048
},
"smithy.api#pattern": "^(arn:aws(-[^:]+)?:bedrock:[a-z0-9-]{1,20}:(([0-9]{12}:custom-model/[a-z0-9-]{1,63}[.]{1}[a-z0-9-]{1,63}/[a-z0-9]{12})|(:foundation-model/[a-z0-9-]{1,63}[.]{1}[a-z0-9-]{1,63}([.:]?[a-z0-9-]{1,63}))|([0-9]{12}:imported-model/[a-z0-9]{12})|([0-9]{12}:provisioned-model/[a-z0-9]{12})|([0-9]{12}:inference-profile/[a-zA-Z0-9-:.]+)))|([a-z0-9-]{1,63}[.]{1}[a-z0-9-]{1,63}([.:]?[a-z0-9-]{1,63}))|(([0-9a-zA-Z][_-]?)+)|([a-zA-Z0-9-:.]+)$"
"smithy.api#pattern": "^(arn:aws(-[^:]+)?:bedrock:[a-z0-9-]{1,20}:(([0-9]{12}:custom-model/[a-z0-9-]{1,63}[.]{1}[a-z0-9-]{1,63}/[a-z0-9]{12})|(:foundation-model/[a-z0-9-]{1,63}[.]{1}[a-z0-9-]{1,63}([.:]?[a-z0-9-]{1,63}))|([0-9]{12}:imported-model/[a-z0-9]{12})|([0-9]{12}:provisioned-model/[a-z0-9]{12})|([0-9]{12}:(inference-profile|application-inference-profile)/[a-zA-Z0-9-:.]+)))|([a-z0-9-]{1,63}[.]{1}[a-z0-9-]{1,63}([.:]?[a-z0-9-]{1,63}))|(([0-9a-zA-Z][_-]?)+)|([a-zA-Z0-9-:.]+)$"
}
},
"com.amazonaws.bedrockruntime#Converse": {
Expand Down Expand Up @@ -3078,7 +3078,7 @@
"min": 1,
"max": 2048
},
"smithy.api#pattern": "^(arn:aws(-[^:]+)?:bedrock:[a-z0-9-]{1,20}:(([0-9]{12}:custom-model/[a-z0-9-]{1,63}[.]{1}[a-z0-9-]{1,63}/[a-z0-9]{12})|(:foundation-model/[a-z0-9-]{1,63}[.]{1}[a-z0-9-]{1,63}([.:]?[a-z0-9-]{1,63}))|([0-9]{12}:imported-model/[a-z0-9]{12})|([0-9]{12}:provisioned-model/[a-z0-9]{12})|([0-9]{12}:inference-profile/[a-zA-Z0-9-:.]+)))|([a-z0-9-]{1,63}[.]{1}[a-z0-9-]{1,63}([.:]?[a-z0-9-]{1,63}))|(([0-9a-zA-Z][_-]?)+)|([a-zA-Z0-9-:.]+)$"
"smithy.api#pattern": "^(arn:aws(-[^:]+)?:bedrock:[a-z0-9-]{1,20}:(([0-9]{12}:custom-model/[a-z0-9-]{1,63}[.]{1}[a-z0-9-]{1,63}/[a-z0-9]{12})|(:foundation-model/[a-z0-9-]{1,63}[.]{1}[a-z0-9-]{1,63}([.:]?[a-z0-9-]{1,63}))|([0-9]{12}:imported-model/[a-z0-9]{12})|([0-9]{12}:provisioned-model/[a-z0-9]{12})|([0-9]{12}:(inference-profile|application-inference-profile)/[a-zA-Z0-9-:.]+)))|([a-z0-9-]{1,63}[.]{1}[a-z0-9-]{1,63}([.:]?[a-z0-9-]{1,63}))|(([0-9a-zA-Z][_-]?)+)|([a-zA-Z0-9-:.]+)$"
}
},
"com.amazonaws.bedrockruntime#InvokeModelRequest": {
Expand Down
276 changes: 246 additions & 30 deletions codegen/sdk-codegen/aws-models/bedrock.json

Large diffs are not rendered by default.

442 changes: 328 additions & 114 deletions codegen/sdk-codegen/aws-models/cleanrooms.json

Large diffs are not rendered by default.

9 changes: 9 additions & 0 deletions codegen/sdk-codegen/aws-models/cloudwatch-logs.json
Original file line number Diff line number Diff line change
Expand Up @@ -497,6 +497,9 @@
"smithy.api#input": {}
}
},
"com.amazonaws.cloudwatchlogs#Baseline": {
"type": "boolean"
},
"com.amazonaws.cloudwatchlogs#Boolean": {
"type": "boolean"
},
Expand Down Expand Up @@ -9872,6 +9875,12 @@
"traits": {
"smithy.api#documentation": "<p>If you are temporarily suppressing an anomaly or pattern, use this structure to specify\n how long the suppression is to last.</p>"
}
},
"baseline": {
"target": "com.amazonaws.cloudwatchlogs#Baseline",
"traits": {
"smithy.api#documentation": "<p>Set this to <code>true</code> to prevent CloudWatch Logs from displaying this behavior as an anomaly in the future. The behavior is then treated as \n baseline behavior. However, if similar but \n more severe occurrences of this behavior occur in the future, those will still be reported as anomalies. </p>\n <p>The default is <code>false</code>\n </p>"
}
}
},
"traits": {
Expand Down
12 changes: 10 additions & 2 deletions codegen/sdk-codegen/aws-models/iotfleetwise.json
Original file line number Diff line number Diff line change
Expand Up @@ -324,6 +324,9 @@
{
"target": "com.amazonaws.iotfleetwise#InternalServerException"
},
{
"target": "com.amazonaws.iotfleetwise#LimitExceededException"
},
{
"target": "com.amazonaws.iotfleetwise#ThrottlingException"
},
Expand Down Expand Up @@ -8439,6 +8442,9 @@
{
"target": "com.amazonaws.iotfleetwise#InternalServerException"
},
{
"target": "com.amazonaws.iotfleetwise#LimitExceededException"
},
{
"target": "com.amazonaws.iotfleetwise#ResourceNotFoundException"
},
Expand Down Expand Up @@ -9014,7 +9020,8 @@
},
"traits": {
"smithy.api#length": {
"min": 1
"min": 1,
"max": 10
}
}
},
Expand Down Expand Up @@ -9243,7 +9250,8 @@
},
"traits": {
"smithy.api#length": {
"min": 1
"min": 1,
"max": 10
}
}
},
Expand Down
159 changes: 155 additions & 4 deletions codegen/sdk-codegen/aws-models/redshift-data.json
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,12 @@
"traits": {
"smithy.api#documentation": "<p>The session identifier of the query.</p>"
}
},
"ResultFormat": {
"target": "com.amazonaws.redshiftdata#ResultFormatString",
"traits": {
"smithy.api#documentation": "<p>The data format of the result of the SQL statement. If no format is specified, the default is JSON.</p>"
}
}
},
"traits": {
Expand Down Expand Up @@ -299,8 +305,7 @@
"smithy.api#length": {
"min": 1,
"max": 63
},
"smithy.api#pattern": "^[a-z]([a-z0-9]|-[a-z0-9])*$"
}
}
},
"com.amazonaws.redshiftdata#ColumnList": {
Expand Down Expand Up @@ -603,6 +608,12 @@
"traits": {
"smithy.api#documentation": "<p>The session identifier of the query.</p>"
}
},
"ResultFormat": {
"target": "com.amazonaws.redshiftdata#ResultFormatString",
"traits": {
"smithy.api#documentation": "<p>The data format of the result of the SQL statement.</p>"
}
}
},
"traits": {
Expand Down Expand Up @@ -867,6 +878,12 @@
"traits": {
"smithy.api#documentation": "<p>The session identifier of the query.</p>"
}
},
"ResultFormat": {
"target": "com.amazonaws.redshiftdata#ResultFormatString",
"traits": {
"smithy.api#documentation": "<p>The data format of the result of the SQL statement. If no format is specified, the default is JSON.</p>"
}
}
},
"traits": {
Expand Down Expand Up @@ -985,6 +1002,12 @@
"target": "com.amazonaws.redshiftdata#Field"
}
},
"com.amazonaws.redshiftdata#FormattedSqlRecords": {
"type": "list",
"member": {
"target": "com.amazonaws.redshiftdata#QueryRecords"
}
},
"com.amazonaws.redshiftdata#GetStatementResult": {
"type": "operation",
"input": {
Expand All @@ -1005,7 +1028,7 @@
}
],
"traits": {
"smithy.api#documentation": "<p>Fetches the temporarily cached result of an SQL statement. \n A token is returned to page through the statement results. </p>\n <p>For more information about the Amazon Redshift Data API and CLI usage examples, see \n <a href=\"https://docs.aws.amazon.com/redshift/latest/mgmt/data-api.html\">Using the Amazon Redshift Data API</a> in the \n <i>Amazon Redshift Management Guide</i>. </p>",
"smithy.api#documentation": "<p>Fetches the temporarily cached result of an SQL statement in JSON format. \n The <code>ExecuteStatement</code> or <code>BatchExecuteStatement</code> operation that ran the SQL statement must have specified <code>ResultFormat</code> as <code>JSON</code>\n , or let the format default to JSON.\n A token is returned to page through the statement results.</p>\n <p>For more information about the Amazon Redshift Data API and CLI usage examples, see \n <a href=\"https://docs.aws.amazon.com/redshift/latest/mgmt/data-api.html\">Using the Amazon Redshift Data API</a> in the \n <i>Amazon Redshift Management Guide</i>. </p>",
"smithy.api#paginated": {
"inputToken": "NextToken",
"outputToken": "NextToken",
Expand Down Expand Up @@ -1041,7 +1064,7 @@
"Records": {
"target": "com.amazonaws.redshiftdata#SqlRecords",
"traits": {
"smithy.api#documentation": "<p>The results of the SQL statement.</p>",
"smithy.api#documentation": "<p>The results of the SQL statement in JSON format.</p>",
"smithy.api#required": {}
}
},
Expand Down Expand Up @@ -1069,6 +1092,96 @@
"smithy.api#output": {}
}
},
"com.amazonaws.redshiftdata#GetStatementResultV2": {
"type": "operation",
"input": {
"target": "com.amazonaws.redshiftdata#GetStatementResultV2Request"
},
"output": {
"target": "com.amazonaws.redshiftdata#GetStatementResultV2Response"
},
"errors": [
{
"target": "com.amazonaws.redshiftdata#InternalServerException"
},
{
"target": "com.amazonaws.redshiftdata#ResourceNotFoundException"
},
{
"target": "com.amazonaws.redshiftdata#ValidationException"
}
],
"traits": {
"smithy.api#documentation": "<p>Fetches the temporarily cached result of an SQL statement in CSV format. \n The <code>ExecuteStatement</code> or <code>BatchExecuteStatement</code> operation that ran the SQL statement must have specified <code>ResultFormat</code> as <code>CSV</code>.\n A token is returned to page through the statement results.</p>\n <p>For more information about the Amazon Redshift Data API and CLI usage examples, see \n <a href=\"https://docs.aws.amazon.com/redshift/latest/mgmt/data-api.html\">Using the Amazon Redshift Data API</a> in the \n <i>Amazon Redshift Management Guide</i>. </p>",
"smithy.api#paginated": {
"inputToken": "NextToken",
"outputToken": "NextToken",
"items": "Records"
},
"smithy.api#readonly": {}
}
},
"com.amazonaws.redshiftdata#GetStatementResultV2Request": {
"type": "structure",
"members": {
"Id": {
"target": "com.amazonaws.redshiftdata#UUID",
"traits": {
"smithy.api#documentation": "<p>The identifier of the SQL statement whose results are to be fetched. This value is a universally unique identifier (UUID) generated by Amazon Redshift Data API. \n A suffix indicates then number of the SQL statement.\n For example, <code>d9b6c0c9-0747-4bf4-b142-e8883122f766:2</code> has a suffix of <code>:2</code> that indicates the second SQL statement of a batch query.\n This identifier is returned by <code>BatchExecuteStatment</code>, <code>ExecuteStatment</code>, and <code>ListStatements</code>. </p>",
"smithy.api#required": {}
}
},
"NextToken": {
"target": "com.amazonaws.redshiftdata#String",
"traits": {
"smithy.api#documentation": "<p>A value that indicates the starting point for the next set of response records in a subsequent request. If a value is returned in a response, you can retrieve the next set of records by providing this returned NextToken value in the next NextToken parameter and retrying the command. If the NextToken field is empty, all response records have been retrieved for the request.</p>"
}
}
},
"traits": {
"smithy.api#input": {}
}
},
"com.amazonaws.redshiftdata#GetStatementResultV2Response": {
"type": "structure",
"members": {
"Records": {
"target": "com.amazonaws.redshiftdata#FormattedSqlRecords",
"traits": {
"smithy.api#documentation": "<p>The results of the SQL statement in CSV format.</p>",
"smithy.api#required": {}
}
},
"ColumnMetadata": {
"target": "com.amazonaws.redshiftdata#ColumnMetadataList",
"traits": {
"smithy.api#documentation": "<p>The properties (metadata) of a column.</p>"
}
},
"TotalNumRows": {
"target": "com.amazonaws.redshiftdata#Long",
"traits": {
"smithy.api#default": 0,
"smithy.api#documentation": "<p>The total number of rows in the result set returned from a query. \n You can use this number to estimate the number of calls to the <code>GetStatementResultV2</code> operation needed to page through the results. </p>"
}
},
"ResultFormat": {
"target": "com.amazonaws.redshiftdata#ResultFormatString",
"traits": {
"smithy.api#documentation": "<p>The data format of the result of the SQL statement.</p>"
}
},
"NextToken": {
"target": "com.amazonaws.redshiftdata#String",
"traits": {
"smithy.api#documentation": "<p>A value that indicates the starting point for the next set of response records in a subsequent request. If a value is returned in a response, you can retrieve the next set of records by providing this returned NextToken value in the next NextToken parameter and retrying the command. If the NextToken field is empty, all response records have been retrieved for the request. </p>"
}
}
},
"traits": {
"smithy.api#output": {}
}
},
"com.amazonaws.redshiftdata#Integer": {
"type": "integer",
"traits": {
Expand Down Expand Up @@ -1564,6 +1677,20 @@
}
}
},
"com.amazonaws.redshiftdata#QueryRecords": {
"type": "union",
"members": {
"CSVRecords": {
"target": "com.amazonaws.redshiftdata#String",
"traits": {
"smithy.api#documentation": "<p>The results of the SQL statement in CSV format.</p>"
}
}
},
"traits": {
"smithy.api#documentation": "<p>The results of the SQL statement.</p>"
}
},
"com.amazonaws.redshiftdata#QueryTimeoutException": {
"type": "structure",
"members": {
Expand Down Expand Up @@ -1599,6 +1726,9 @@
{
"target": "com.amazonaws.redshiftdata#GetStatementResult"
},
{
"target": "com.amazonaws.redshiftdata#GetStatementResultV2"
},
{
"target": "com.amazonaws.redshiftdata#ListDatabases"
},
Expand Down Expand Up @@ -2278,6 +2408,21 @@
"smithy.api#httpError": 404
}
},
"com.amazonaws.redshiftdata#ResultFormatString": {
"type": "string",
"traits": {
"smithy.api#enum": [
{
"name": "JSON",
"value": "JSON"
},
{
"name": "CSV",
"value": "CSV"
}
]
}
},
"com.amazonaws.redshiftdata#SchemaList": {
"type": "list",
"member": {
Expand Down Expand Up @@ -2416,6 +2561,12 @@
"traits": {
"smithy.api#documentation": "<p>The session identifier of the query.</p>"
}
},
"ResultFormat": {
"target": "com.amazonaws.redshiftdata#ResultFormatString",
"traits": {
"smithy.api#documentation": "<p>The data format of the result of the SQL statement.</p>"
}
}
},
"traits": {
Expand Down
202 changes: 110 additions & 92 deletions codegen/sdk-codegen/aws-models/sagemaker.json

Large diffs are not rendered by default.

0 comments on commit 650b227

Please sign in to comment.