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 25, 2024
1 parent bd92e5e commit b915aea
Show file tree
Hide file tree
Showing 12 changed files with 1,477 additions and 73 deletions.
12 changes: 12 additions & 0 deletions codegen/sdk-codegen/aws-models/application-auto-scaling.json
Original file line number Diff line number Diff line change
Expand Up @@ -2379,6 +2379,18 @@
"traits": {
"smithy.api#enumValue": "WorkSpacesAverageUserSessionsCapacityUtilization"
}
},
"SageMakerInferenceComponentConcurrentRequestsPerCopyHighResolution": {
"target": "smithy.api#Unit",
"traits": {
"smithy.api#enumValue": "SageMakerInferenceComponentConcurrentRequestsPerCopyHighResolution"
}
},
"SageMakerVariantConcurrentRequestsPerModelHighResolution": {
"target": "smithy.api#Unit",
"traits": {
"smithy.api#enumValue": "SageMakerVariantConcurrentRequestsPerModelHighResolution"
}
}
}
},
Expand Down
62 changes: 40 additions & 22 deletions codegen/sdk-codegen/aws-models/application-signals.json

Large diffs are not rendered by default.

46 changes: 40 additions & 6 deletions codegen/sdk-codegen/aws-models/bedrock-runtime.json
Original file line number Diff line number Diff line change
Expand Up @@ -1051,6 +1051,9 @@
{
"target": "com.amazonaws.bedrockruntime#ResourceNotFoundException"
},
{
"target": "com.amazonaws.bedrockruntime#ServiceUnavailableException"
},
{
"target": "com.amazonaws.bedrockruntime#ThrottlingException"
},
Expand All @@ -1059,7 +1062,7 @@
}
],
"traits": {
"smithy.api#documentation": "<p>Sends messages to the specified Amazon Bedrock model. <code>Converse</code> provides\n a consistent interface that works with all models that\n support messages. This allows you to write code once and use it with different models.\n Should a model have unique inference parameters, you can also pass those unique parameters\n to the model.</p>\n <p>For information about the Converse API, see <i>Use the Converse API</i> in the <i>Amazon Bedrock User Guide</i>.\n To use a guardrail, see <i>Use a guardrail with the Converse API</i> in the <i>Amazon Bedrock User Guide</i>.\n To use a tool with a model, see <i>Tool use (Function calling)</i> in the <i>Amazon Bedrock User Guide</i>\n </p>\n <p>For example code, see <i>Converse API examples</i> in the <i>Amazon Bedrock User Guide</i>.\n </p>\n <p>This operation requires permission for the <code>bedrock:InvokeModel</code> action. </p>",
"smithy.api#documentation": "<p>Sends messages to the specified Amazon Bedrock model. <code>Converse</code> provides\n a consistent interface that works with all models that\n support messages. This allows you to write code once and use it with different models.\n If a model has unique inference parameters, you can also pass those unique parameters\n to the model.</p>\n <p>Amazon Bedrock doesn't store any text, images, or documents that you provide as content. The data is only used to generate the response.</p>\n <p>For information about the Converse API, see <i>Use the Converse API</i> in the <i>Amazon Bedrock User Guide</i>.\n To use a guardrail, see <i>Use a guardrail with the Converse API</i> in the <i>Amazon Bedrock User Guide</i>.\n To use a tool with a model, see <i>Tool use (Function calling)</i> in the <i>Amazon Bedrock User Guide</i>\n </p>\n <p>For example code, see <i>Converse API examples</i> in the <i>Amazon Bedrock User Guide</i>.\n </p>\n <p>This operation requires permission for the <code>bedrock:InvokeModel</code> action. </p>",
"smithy.api#http": {
"code": 200,
"method": "POST",
Expand Down Expand Up @@ -1233,6 +1236,9 @@
{
"target": "com.amazonaws.bedrockruntime#ResourceNotFoundException"
},
{
"target": "com.amazonaws.bedrockruntime#ServiceUnavailableException"
},
{
"target": "com.amazonaws.bedrockruntime#ThrottlingException"
},
Expand All @@ -1241,7 +1247,7 @@
}
],
"traits": {
"smithy.api#documentation": "<p>Sends messages to the specified Amazon Bedrock model and returns\n the response in a stream. <code>ConverseStream</code> provides a consistent API\n that works with all Amazon Bedrock models that support messages.\n This allows you to write code once and use it with different models. Should a\n model have unique inference parameters, you can also pass those unique parameters to the\n model. </p>\n <p>To find out if a model supports streaming, call <a href=\"https://docs.aws.amazon.com/bedrock/latest/APIReference/API_GetFoundationModel.html\">GetFoundationModel</a>\n and check the <code>responseStreamingSupported</code> field in the response.</p>\n <p>For information about the Converse API, see <i>Use the Converse API</i> in the <i>Amazon Bedrock User Guide</i>.\n To use a guardrail, see <i>Use a guardrail with the Converse API</i> in the <i>Amazon Bedrock User Guide</i>.\n To use a tool with a model, see <i>Tool use (Function calling)</i> in the <i>Amazon Bedrock User Guide</i>\n </p>\n <p>For example code, see <i>Conversation streaming example</i> in the <i>Amazon Bedrock User Guide</i>.\n </p>\n <p>This operation requires permission for the <code>bedrock:InvokeModelWithResponseStream</code> action.</p>",
"smithy.api#documentation": "<p>Sends messages to the specified Amazon Bedrock model and returns\n the response in a stream. <code>ConverseStream</code> provides a consistent API\n that works with all Amazon Bedrock models that support messages.\n This allows you to write code once and use it with different models. Should a\n model have unique inference parameters, you can also pass those unique parameters to the\n model. </p>\n <p>To find out if a model supports streaming, call <a href=\"https://docs.aws.amazon.com/bedrock/latest/APIReference/API_GetFoundationModel.html\">GetFoundationModel</a>\n and check the <code>responseStreamingSupported</code> field in the response.</p>\n <note>\n <p>The CLI doesn't support streaming operations in Amazon Bedrock, including <code>ConverseStream</code>.</p>\n </note>\n <p>Amazon Bedrock doesn't store any text, images, or documents that you provide as content. The data is only used to generate the response.</p>\n <p>For information about the Converse API, see <i>Use the Converse API</i> in the <i>Amazon Bedrock User Guide</i>.\n To use a guardrail, see <i>Use a guardrail with the Converse API</i> in the <i>Amazon Bedrock User Guide</i>.\n To use a tool with a model, see <i>Tool use (Function calling)</i> in the <i>Amazon Bedrock User Guide</i>\n </p>\n <p>For example code, see <i>Conversation streaming example</i> in the <i>Amazon Bedrock User Guide</i>.\n </p>\n <p>This operation requires permission for the <code>bedrock:InvokeModelWithResponseStream</code> action.</p>",
"smithy.api#http": {
"code": 200,
"method": "POST",
Expand Down Expand Up @@ -1354,6 +1360,12 @@
"traits": {
"smithy.api#documentation": "<p>The number of requests exceeds the limit. Resubmit your request later.</p>"
}
},
"serviceUnavailableException": {
"target": "com.amazonaws.bedrockruntime#ServiceUnavailableException",
"traits": {
"smithy.api#documentation": "<p>The service isn't currently available. Try again later.</p>"
}
}
},
"traits": {
Expand Down Expand Up @@ -2930,6 +2942,9 @@
{
"target": "com.amazonaws.bedrockruntime#ServiceQuotaExceededException"
},
{
"target": "com.amazonaws.bedrockruntime#ServiceUnavailableException"
},
{
"target": "com.amazonaws.bedrockruntime#ThrottlingException"
},
Expand Down Expand Up @@ -3072,6 +3087,9 @@
{
"target": "com.amazonaws.bedrockruntime#ServiceQuotaExceededException"
},
{
"target": "com.amazonaws.bedrockruntime#ServiceUnavailableException"
},
{
"target": "com.amazonaws.bedrockruntime#ThrottlingException"
},
Expand All @@ -3080,7 +3098,7 @@
}
],
"traits": {
"smithy.api#documentation": "<p>Invoke the specified Amazon Bedrock model to run inference using the prompt and inference parameters provided in the request body. The response is returned in a stream.</p>\n <p>To see if a model supports streaming, call <a href=\"https://docs.aws.amazon.com/bedrock/latest/APIReference/API_GetFoundationModel.html\">GetFoundationModel</a>\n and check the <code>responseStreamingSupported</code> field in the response.</p>\n <note>\n <p>The CLI doesn't support <code>InvokeModelWithResponseStream</code>.</p>\n </note>\n <p>For example code, see <i>Invoke model with streaming code\n example</i> in the <i>Amazon Bedrock User Guide</i>.\n </p>\n <p>This operation requires permissions to perform the <code>bedrock:InvokeModelWithResponseStream</code> action. </p>",
"smithy.api#documentation": "<p>Invoke the specified Amazon Bedrock model to run inference using the prompt and inference parameters provided in the request body. The response is returned in a stream.</p>\n <p>To see if a model supports streaming, call <a href=\"https://docs.aws.amazon.com/bedrock/latest/APIReference/API_GetFoundationModel.html\">GetFoundationModel</a>\n and check the <code>responseStreamingSupported</code> field in the response.</p>\n <note>\n <p>The CLI doesn't support streaming operations in Amazon Bedrock, including <code>InvokeModelWithResponseStream</code>.</p>\n </note>\n <p>For example code, see <i>Invoke model with streaming code\n example</i> in the <i>Amazon Bedrock User Guide</i>.\n </p>\n <p>This operation requires permissions to perform the <code>bedrock:InvokeModelWithResponseStream</code> action. </p>",
"smithy.api#http": {
"code": 200,
"method": "POST",
Expand Down Expand Up @@ -3415,14 +3433,17 @@
"throttlingException": {
"target": "com.amazonaws.bedrockruntime#ThrottlingException",
"traits": {
"smithy.api#documentation": "<p>The number or frequency of requests exceeds the limit. Resubmit your request later.</p>"
"smithy.api#documentation": "<p>Your request was throttled because of service-wide limitations. Resubmit your request later or in a different region. You can also purchase <a href=\"https://docs.aws.amazon.com/bedrock/latest/userguide/prov-throughput.html\">Provisioned Throughput</a> to increase the rate or number of tokens you can process.</p>"
}
},
"modelTimeoutException": {
"target": "com.amazonaws.bedrockruntime#ModelTimeoutException",
"traits": {
"smithy.api#documentation": "<p>The request took too long to process. Processing time exceeded the model timeout length.</p>"
}
},
"serviceUnavailableException": {
"target": "com.amazonaws.bedrockruntime#ServiceUnavailableException"
}
},
"traits": {
Expand All @@ -3438,11 +3459,24 @@
}
},
"traits": {
"smithy.api#documentation": "<p>The number of requests exceeds the service quota. Resubmit your request later.</p>",
"smithy.api#documentation": "<p>Your request exceeds the service quota for your account. You can view your quotas at <a href=\"https://docs.aws.amazon.com/servicequotas/latest/userguide/gs-request-quota.html\">Viewing service quotas</a>. You can resubmit your request later.</p>",
"smithy.api#error": "client",
"smithy.api#httpError": 400
}
},
"com.amazonaws.bedrockruntime#ServiceUnavailableException": {
"type": "structure",
"members": {
"message": {
"target": "com.amazonaws.bedrockruntime#NonBlankString"
}
},
"traits": {
"smithy.api#documentation": "<p>The service isn't currently available. Try again later.</p>",
"smithy.api#error": "server",
"smithy.api#httpError": 503
}
},
"com.amazonaws.bedrockruntime#SpecificToolChoice": {
"type": "structure",
"members": {
Expand Down Expand Up @@ -3542,7 +3576,7 @@
}
},
"traits": {
"smithy.api#documentation": "<p>The number of requests exceeds the limit. Resubmit your request later.</p>",
"smithy.api#documentation": "<p>Your request was throttled because of service-wide limitations. Resubmit your request later or in a different region. You can also purchase <a href=\"https://docs.aws.amazon.com/bedrock/latest/userguide/prov-throughput.html\">Provisioned Throughput</a> to increase the rate or number of tokens you can process.</p>",
"smithy.api#error": "client",
"smithy.api#httpError": 429
}
Expand Down
22 changes: 20 additions & 2 deletions codegen/sdk-codegen/aws-models/codecommit.json
Original file line number Diff line number Diff line change
Expand Up @@ -4174,6 +4174,9 @@
{
"target": "com.amazonaws.codecommit#InvalidTagsMapException"
},
{
"target": "com.amazonaws.codecommit#OperationNotAllowedException"
},
{
"target": "com.amazonaws.codecommit#RepositoryLimitExceededException"
},
Expand Down Expand Up @@ -4219,7 +4222,7 @@
"kmsKeyId": {
"target": "com.amazonaws.codecommit#KmsKeyId",
"traits": {
"smithy.api#documentation": "<p>The ID of the encryption key. You can view the ID of an encryption key in the KMS console, or use the KMS APIs to\n programmatically retrieve a key ID. For more information about acceptable values for kmsKeyID, see \n <a href=\"https://docs.aws.amazon.com/APIReference/API_Decrypt.html#KMS-Decrypt-request-KeyId\">KeyId</a> in the Decrypt API description in \n the <i>Key Management Service API Reference</i>.</p>\n <p>If no key is specified, the default <code>aws/codecommit</code> Amazon Web Services managed key is used.</p>"
"smithy.api#documentation": "<p>The ID of the encryption key. You can view the ID of an encryption key in the KMS console, or use the KMS APIs to\n programmatically retrieve a key ID. For more information about acceptable values for kmsKeyID, see \n <a href=\"https://docs.aws.amazon.com/kms/latest/APIReference/API_Decrypt.html#KMS-Decrypt-request-KeyId\">KeyId</a> in the Decrypt API description in \n the <i>Key Management Service API Reference</i>.</p>\n <p>If no key is specified, the default <code>aws/codecommit</code> Amazon Web Services managed key is used.</p>"
}
}
},
Expand Down Expand Up @@ -11528,6 +11531,21 @@
"smithy.api#documentation": "<p>Information about the type of an object in a merge operation.</p>"
}
},
"com.amazonaws.codecommit#OperationNotAllowedException": {
"type": "structure",
"members": {
"message": {
"target": "com.amazonaws.codecommit#Message",
"traits": {
"smithy.api#documentation": "<p>Any message associated with the exception.</p>"
}
}
},
"traits": {
"smithy.api#documentation": "<p>The requested action is not allowed.</p>",
"smithy.api#error": "client"
}
},
"com.amazonaws.codecommit#OrderEnum": {
"type": "enum",
"members": {
Expand Down Expand Up @@ -15511,7 +15529,7 @@
"kmsKeyId": {
"target": "com.amazonaws.codecommit#KmsKeyId",
"traits": {
"smithy.api#documentation": "<p>The ID of the encryption key. You can view the ID of an encryption key in the KMS console, or use the KMS APIs to\n programmatically retrieve a key ID. For more information about acceptable values for keyID, see \n <a href=\"https://docs.aws.amazon.com/APIReference/API_Decrypt.html#KMS-Decrypt-request-KeyId\">KeyId</a> in the Decrypt API description in \n the <i>Key Management Service API Reference</i>.</p>",
"smithy.api#documentation": "<p>The ID of the encryption key. You can view the ID of an encryption key in the KMS console, or use the KMS APIs to\n programmatically retrieve a key ID. For more information about acceptable values for keyID, see \n <a href=\"https://docs.aws.amazon.com/kms/latest/APIReference/API_Decrypt.html#KMS-Decrypt-request-KeyId\">KeyId</a> in the Decrypt API description in \n the <i>Key Management Service API Reference</i>.</p>",
"smithy.api#required": {}
}
}
Expand Down
Loading

0 comments on commit b915aea

Please sign in to comment.