Skip to content

Commit

Permalink
Update API model
Browse files Browse the repository at this point in the history
  • Loading branch information
aws-sdk-swift-automation committed Oct 2, 2024
1 parent c6ac4d9 commit e8b657f
Show file tree
Hide file tree
Showing 9 changed files with 1,613 additions and 219 deletions.
6 changes: 6 additions & 0 deletions codegen/sdk-codegen/aws-models/appstream.json
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,12 @@
"traits": {
"smithy.api#enumValue": "DOMAIN_SMART_CARD_SIGNIN"
}
},
"AUTO_TIME_ZONE_REDIRECTION": {
"target": "smithy.api#Unit",
"traits": {
"smithy.api#enumValue": "AUTO_TIME_ZONE_REDIRECTION"
}
}
}
},
Expand Down
1,495 changes: 1,328 additions & 167 deletions codegen/sdk-codegen/aws-models/b2bi.json

Large diffs are not rendered by default.

26 changes: 19 additions & 7 deletions codegen/sdk-codegen/aws-models/bedrock-agent-runtime.json
Original file line number Diff line number Diff line change
Expand Up @@ -1504,26 +1504,26 @@
"modelArn": {
"target": "com.amazonaws.bedrockagentruntime#BedrockModelArn",
"traits": {
"smithy.api#documentation": "<p>The modelArn used with the external source wrapper object in the retrieveAndGenerate function.</p>",
"smithy.api#documentation": "<p>The model Amazon Resource Name (ARN) for the external source wrapper object in the <code>retrieveAndGenerate</code> function.</p>",
"smithy.api#required": {}
}
},
"sources": {
"target": "com.amazonaws.bedrockagentruntime#ExternalSources",
"traits": {
"smithy.api#documentation": "<p>The document used with the external source wrapper object in the retrieveAndGenerate function.</p>",
"smithy.api#documentation": "<p>The document for the external source wrapper object in the <code>retrieveAndGenerate</code> function.</p>",
"smithy.api#required": {}
}
},
"generationConfiguration": {
"target": "com.amazonaws.bedrockagentruntime#ExternalSourcesGenerationConfiguration",
"traits": {
"smithy.api#documentation": "<p>The prompt used with the external source wrapper object with the retrieveAndGenerate function.</p>"
"smithy.api#documentation": "<p>The prompt used with the external source wrapper object with the <code>retrieveAndGenerate</code> function.</p>"
}
}
},
"traits": {
"smithy.api#documentation": "<p>The configurations of the external source wrapper object in the retrieveAndGenerate function.</p>"
"smithy.api#documentation": "<p>The configurations of the external source wrapper object in the <code>retrieveAndGenerate</code> function.</p>"
}
},
"com.amazonaws.bedrockagentruntime#FailureReasonString": {
Expand Down Expand Up @@ -4217,6 +4217,12 @@
"traits": {
"smithy.api#documentation": "<p>Details about the response from the Lambda parsing of the output of the post-processing step.</p>"
}
},
"rawResponse": {
"target": "com.amazonaws.bedrockagentruntime#RawResponse"
},
"metadata": {
"target": "com.amazonaws.bedrockagentruntime#Metadata"
}
},
"traits": {
Expand Down Expand Up @@ -4274,6 +4280,12 @@
"traits": {
"smithy.api#documentation": "<p>Details about the response from the Lambda parsing of the output of the pre-processing step.</p>"
}
},
"rawResponse": {
"target": "com.amazonaws.bedrockagentruntime#RawResponse"
},
"metadata": {
"target": "com.amazonaws.bedrockagentruntime#Metadata"
}
},
"traits": {
Expand Down Expand Up @@ -5038,20 +5050,20 @@
"type": {
"target": "com.amazonaws.bedrockagentruntime#RetrieveAndGenerateType",
"traits": {
"smithy.api#documentation": "<p>The type of resource that is queried by the request.</p>",
"smithy.api#documentation": "<p>The type of resource that contains your data for retrieving information and generating responses.</p>\n <p>If you choose ot use <code>EXTERNAL_SOURCES</code>, then currently only Claude 3 Sonnet models for knowledge bases are supported.</p>",
"smithy.api#required": {}
}
},
"knowledgeBaseConfiguration": {
"target": "com.amazonaws.bedrockagentruntime#KnowledgeBaseRetrieveAndGenerateConfiguration",
"traits": {
"smithy.api#documentation": "<p>Contains details about the resource being queried.</p>"
"smithy.api#documentation": "<p>Contains details about the knowledge base for retrieving information and generating responses.</p>"
}
},
"externalSourcesConfiguration": {
"target": "com.amazonaws.bedrockagentruntime#ExternalSourcesRetrieveAndGenerateConfiguration",
"traits": {
"smithy.api#documentation": "<p>The configuration used with the external source wrapper object in the retrieveAndGenerate function.</p>"
"smithy.api#documentation": "<p>The configuration for the external source wrapper object in the <code>retrieveAndGenerate</code> function.</p>"
}
}
},
Expand Down
116 changes: 116 additions & 0 deletions codegen/sdk-codegen/aws-models/bedrock-runtime.json
Original file line number Diff line number Diff line change
Expand Up @@ -832,6 +832,12 @@
"smithy.api#documentation": "<p>The assessment details in the response from the guardrail.</p>",
"smithy.api#required": {}
}
},
"guardrailCoverage": {
"target": "com.amazonaws.bedrockruntime#GuardrailCoverage",
"traits": {
"smithy.api#documentation": "<p>The guardrail coverage details in the apply guardrail response.</p>"
}
}
},
"traits": {
Expand Down Expand Up @@ -1636,6 +1642,12 @@
"traits": {
"smithy.api#documentation": "<p>The contextual grounding policy used for the guardrail assessment.</p>"
}
},
"invocationMetrics": {
"target": "com.amazonaws.bedrockruntime#GuardrailInvocationMetrics",
"traits": {
"smithy.api#documentation": "<p>The invocation metrics for the guardrail assessment.</p>"
}
}
},
"traits": {
Expand Down Expand Up @@ -1732,6 +1744,12 @@
"smithy.api#required": {}
}
},
"filterStrength": {
"target": "com.amazonaws.bedrockruntime#GuardrailContentFilterStrength",
"traits": {
"smithy.api#documentation": "<p>The filter strength setting for the guardrail content filter.</p>"
}
},
"action": {
"target": "com.amazonaws.bedrockruntime#GuardrailContentPolicyAction",
"traits": {
Expand Down Expand Up @@ -1779,6 +1797,35 @@
"target": "com.amazonaws.bedrockruntime#GuardrailContentFilter"
}
},
"com.amazonaws.bedrockruntime#GuardrailContentFilterStrength": {
"type": "enum",
"members": {
"NONE": {
"target": "smithy.api#Unit",
"traits": {
"smithy.api#enumValue": "NONE"
}
},
"LOW": {
"target": "smithy.api#Unit",
"traits": {
"smithy.api#enumValue": "LOW"
}
},
"MEDIUM": {
"target": "smithy.api#Unit",
"traits": {
"smithy.api#enumValue": "MEDIUM"
}
},
"HIGH": {
"target": "smithy.api#Unit",
"traits": {
"smithy.api#enumValue": "HIGH"
}
}
}
},
"com.amazonaws.bedrockruntime#GuardrailContentFilterType": {
"type": "enum",
"members": {
Expand Down Expand Up @@ -2060,6 +2107,20 @@
"smithy.api#documentation": "<p>A text block that contains text that you want to assess with a guardrail. For more information, see <a>GuardrailConverseContentBlock</a>.</p>"
}
},
"com.amazonaws.bedrockruntime#GuardrailCoverage": {
"type": "structure",
"members": {
"textCharacters": {
"target": "com.amazonaws.bedrockruntime#GuardrailTextCharactersCoverage",
"traits": {
"smithy.api#documentation": "<p>The text characters of the guardrail coverage details.</p>"
}
}
},
"traits": {
"smithy.api#documentation": "<p>The action of the guardrail coverage details.</p>"
}
},
"com.amazonaws.bedrockruntime#GuardrailCustomWord": {
"type": "structure",
"members": {
Expand Down Expand Up @@ -2097,6 +2158,32 @@
"smithy.api#pattern": "^(([a-z0-9]+)|(arn:aws(-[^:]+)?:bedrock:[a-z0-9-]{1,20}:[0-9]{12}:guardrail/[a-z0-9]+))$"
}
},
"com.amazonaws.bedrockruntime#GuardrailInvocationMetrics": {
"type": "structure",
"members": {
"guardrailProcessingLatency": {
"target": "com.amazonaws.bedrockruntime#GuardrailProcessingLatency",
"traits": {
"smithy.api#documentation": "<p>The processing latency details for the guardrail invocation metrics.</p>"
}
},
"usage": {
"target": "com.amazonaws.bedrockruntime#GuardrailUsage",
"traits": {
"smithy.api#documentation": "<p>The usage details for the guardrail invocation metrics.</p>"
}
},
"guardrailCoverage": {
"target": "com.amazonaws.bedrockruntime#GuardrailCoverage",
"traits": {
"smithy.api#documentation": "<p>The coverage details for the guardrail invocation metrics.</p>"
}
}
},
"traits": {
"smithy.api#documentation": "<p>The invocation metrics for the guardrail.</p>"
}
},
"com.amazonaws.bedrockruntime#GuardrailManagedWord": {
"type": "structure",
"members": {
Expand Down Expand Up @@ -2392,6 +2479,9 @@
}
}
},
"com.amazonaws.bedrockruntime#GuardrailProcessingLatency": {
"type": "long"
},
"com.amazonaws.bedrockruntime#GuardrailRegexFilter": {
"type": "structure",
"members": {
Expand Down Expand Up @@ -2558,6 +2648,26 @@
"smithy.api#documentation": "<p>The text block to be evaluated by the guardrail.</p>"
}
},
"com.amazonaws.bedrockruntime#GuardrailTextCharactersCoverage": {
"type": "structure",
"members": {
"guarded": {
"target": "com.amazonaws.bedrockruntime#TextCharactersGuarded",
"traits": {
"smithy.api#documentation": "<p>The text characters that were guarded by the guardrail coverage.</p>"
}
},
"total": {
"target": "com.amazonaws.bedrockruntime#TextCharactersTotal",
"traits": {
"smithy.api#documentation": "<p>The total text characters by the guardrail coverage.</p>"
}
}
},
"traits": {
"smithy.api#documentation": "<p>The guardrail coverage for the text characters.</p>"
}
},
"com.amazonaws.bedrockruntime#GuardrailTopic": {
"type": "structure",
"members": {
Expand Down Expand Up @@ -3569,6 +3679,12 @@
"target": "com.amazonaws.bedrockruntime#SystemContentBlock"
}
},
"com.amazonaws.bedrockruntime#TextCharactersGuarded": {
"type": "integer"
},
"com.amazonaws.bedrockruntime#TextCharactersTotal": {
"type": "integer"
},
"com.amazonaws.bedrockruntime#ThrottlingException": {
"type": "structure",
"members": {
Expand Down
17 changes: 17 additions & 0 deletions codegen/sdk-codegen/aws-models/iotdeviceadvisor.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,16 @@
}
}
},
"com.amazonaws.iotdeviceadvisor#ClientToken": {
"type": "string",
"traits": {
"smithy.api#length": {
"min": 1,
"max": 64
},
"smithy.api#pattern": "^[\\u0021-\\u007E]+$"
}
},
"com.amazonaws.iotdeviceadvisor#ConflictException": {
"type": "structure",
"members": {
Expand Down Expand Up @@ -112,6 +122,13 @@
"traits": {
"smithy.api#documentation": "<p>The tags to be attached to the suite definition.</p>"
}
},
"clientToken": {
"target": "com.amazonaws.iotdeviceadvisor#ClientToken",
"traits": {
"smithy.api#documentation": "<p>The client token for the test suite definition creation. \n This token is used for tracking test suite definition creation \n using retries and obtaining its status. This parameter is optional.</p>",
"smithy.api#idempotencyToken": {}
}
}
},
"traits": {
Expand Down
Loading

0 comments on commit e8b657f

Please sign in to comment.