Skip to content

Commit 8cbc667

Browse files
Update SDK models
1 parent bb8e4f2 commit 8cbc667

File tree

152 files changed

+7464
-272
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

152 files changed

+7464
-272
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
[workspace]
22
resolver = "2"
33
exclude = [
4-
"tests/no-default-features",
54
"tests/webassembly",
5+
"tests/no-default-features",
66
"tests/telemetry"
77
]
88
members = [

aws-models/bedrock-agentcore-control.json

Lines changed: 474 additions & 12 deletions
Large diffs are not rendered by default.

aws-models/bedrock-agentcore.json

Lines changed: 168 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,9 @@
7676
"type": "service",
7777
"version": "2024-02-28",
7878
"operations": [
79+
{
80+
"target": "com.amazonaws.bedrockagentcore#CompleteResourceTokenAuth"
81+
},
7982
{
8083
"target": "com.amazonaws.bedrockagentcore#GetResourceApiKey"
8184
},
@@ -760,6 +763,15 @@
760763
"smithy.api#sensitive": {}
761764
}
762765
},
766+
"com.amazonaws.bedrockagentcore#AuthorizationUrlType": {
767+
"type": "string",
768+
"traits": {
769+
"smithy.api#length": {
770+
"min": 1
771+
},
772+
"smithy.api#sensitive": {}
773+
}
774+
},
763775
"com.amazonaws.bedrockagentcore#AutomationStream": {
764776
"type": "structure",
765777
"members": {
@@ -1446,6 +1458,72 @@
14461458
"smithy.api#streaming": {}
14471459
}
14481460
},
1461+
"com.amazonaws.bedrockagentcore#CompleteResourceTokenAuth": {
1462+
"type": "operation",
1463+
"input": {
1464+
"target": "com.amazonaws.bedrockagentcore#CompleteResourceTokenAuthRequest"
1465+
},
1466+
"output": {
1467+
"target": "com.amazonaws.bedrockagentcore#CompleteResourceTokenAuthResponse"
1468+
},
1469+
"errors": [
1470+
{
1471+
"target": "com.amazonaws.bedrockagentcore#AccessDeniedException"
1472+
},
1473+
{
1474+
"target": "com.amazonaws.bedrockagentcore#InternalServerException"
1475+
},
1476+
{
1477+
"target": "com.amazonaws.bedrockagentcore#ResourceNotFoundException"
1478+
},
1479+
{
1480+
"target": "com.amazonaws.bedrockagentcore#ThrottlingException"
1481+
},
1482+
{
1483+
"target": "com.amazonaws.bedrockagentcore#UnauthorizedException"
1484+
},
1485+
{
1486+
"target": "com.amazonaws.bedrockagentcore#ValidationException"
1487+
}
1488+
],
1489+
"traits": {
1490+
"aws.api#dataPlane": {},
1491+
"smithy.api#documentation": "<p>Confirms the user authentication session for obtaining OAuth2.0 tokens for a resource.</p>",
1492+
"smithy.api#http": {
1493+
"uri": "/identities/CompleteResourceTokenAuth",
1494+
"method": "POST"
1495+
}
1496+
}
1497+
},
1498+
"com.amazonaws.bedrockagentcore#CompleteResourceTokenAuthRequest": {
1499+
"type": "structure",
1500+
"members": {
1501+
"userIdentifier": {
1502+
"target": "com.amazonaws.bedrockagentcore#UserIdentifier",
1503+
"traits": {
1504+
"smithy.api#documentation": "<p>The OAuth2.0 token or user ID that was used to generate the workload access token used for initiating the user authorization flow to retrieve OAuth2.0 tokens.</p>",
1505+
"smithy.api#required": {}
1506+
}
1507+
},
1508+
"sessionUri": {
1509+
"target": "com.amazonaws.bedrockagentcore#RequestUri",
1510+
"traits": {
1511+
"smithy.api#documentation": "<p>Unique identifier for the user's authentication session for retrieving OAuth2 tokens. This ID tracks the authorization flow state across multiple requests and responses during the OAuth2 authentication process.</p>",
1512+
"smithy.api#required": {}
1513+
}
1514+
}
1515+
},
1516+
"traits": {
1517+
"smithy.api#input": {}
1518+
}
1519+
},
1520+
"com.amazonaws.bedrockagentcore#CompleteResourceTokenAuthResponse": {
1521+
"type": "structure",
1522+
"members": {},
1523+
"traits": {
1524+
"smithy.api#output": {}
1525+
}
1526+
},
14491527
"com.amazonaws.bedrockagentcore#ConflictException": {
14501528
"type": "structure",
14511529
"members": {
@@ -2721,6 +2799,12 @@
27212799
"smithy.api#required": {}
27222800
}
27232801
},
2802+
"sessionUri": {
2803+
"target": "com.amazonaws.bedrockagentcore#RequestUri",
2804+
"traits": {
2805+
"smithy.api#documentation": "<p>Unique identifier for the user's authentication session for retrieving OAuth2 tokens. This ID tracks the authorization flow state across multiple requests and responses during the OAuth2 authentication process.</p>"
2806+
}
2807+
},
27242808
"resourceOauth2ReturnUrl": {
27252809
"target": "com.amazonaws.bedrockagentcore#ResourceOauth2ReturnUrlType",
27262810
"traits": {
@@ -2738,6 +2822,12 @@
27382822
"traits": {
27392823
"smithy.api#documentation": "<p>A map of custom parameters to include in the authorization request to the resource credential provider. These parameters are in addition to the standard OAuth 2.0 flow parameters, and will not override them.</p>"
27402824
}
2825+
},
2826+
"customState": {
2827+
"target": "com.amazonaws.bedrockagentcore#State",
2828+
"traits": {
2829+
"smithy.api#documentation": "<p>An opaque string that will be sent back to the callback URL provided in resourceOauth2ReturnUrl. This state should be used to protect the callback URL of your application against CSRF attacks by ensuring the response corresponds to the original request.</p>"
2830+
}
27412831
}
27422832
},
27432833
"traits": {
@@ -2748,7 +2838,7 @@
27482838
"type": "structure",
27492839
"members": {
27502840
"authorizationUrl": {
2751-
"target": "smithy.api#String",
2841+
"target": "com.amazonaws.bedrockagentcore#AuthorizationUrlType",
27522842
"traits": {
27532843
"smithy.api#documentation": "<p>The URL to initiate the authorization process, provided when the access token requires user authorization.</p>"
27542844
}
@@ -2758,6 +2848,18 @@
27582848
"traits": {
27592849
"smithy.api#documentation": "<p>The OAuth 2.0 access token to use.</p>"
27602850
}
2851+
},
2852+
"sessionUri": {
2853+
"target": "com.amazonaws.bedrockagentcore#RequestUri",
2854+
"traits": {
2855+
"smithy.api#documentation": "<p>Unique identifier for the user's authorization session for retrieving OAuth2 tokens. This matches the sessionId from the request and can be used to track the session state.</p>"
2856+
}
2857+
},
2858+
"sessionStatus": {
2859+
"target": "com.amazonaws.bedrockagentcore#SessionStatus",
2860+
"traits": {
2861+
"smithy.api#documentation": "<p>Status indicating whether the user's authorization session is in progress or has failed. This helps determine the next steps in the OAuth2 authentication flow.</p>"
2862+
}
27612863
}
27622864
},
27632865
"traits": {
@@ -3189,6 +3291,14 @@
31893291
"smithy.api#httpQuery": "qualifier"
31903292
}
31913293
},
3294+
"accountId": {
3295+
"target": "smithy.api#String",
3296+
"traits": {
3297+
"smithy.api#documentation": "<p>The identifier of the Amazon Web Services account for the agent runtime resource.</p>",
3298+
"smithy.api#httpQuery": "accountId",
3299+
"smithy.api#pattern": "^[0-9]{12}$"
3300+
}
3301+
},
31923302
"payload": {
31933303
"target": "com.amazonaws.bedrockagentcore#Body",
31943304
"traits": {
@@ -4650,6 +4760,16 @@
46504760
"smithy.api#pattern": "^[a-zA-Z0-9_-]+$"
46514761
}
46524762
},
4763+
"com.amazonaws.bedrockagentcore#RequestUri": {
4764+
"type": "string",
4765+
"traits": {
4766+
"smithy.api#length": {
4767+
"min": 1,
4768+
"max": 1024
4769+
},
4770+
"smithy.api#pattern": "^urn:ietf:params:oauth:request_uri:[a-zA-Z0-9-._~]+$"
4771+
}
4772+
},
46534773
"com.amazonaws.bedrockagentcore#ResourceContent": {
46544774
"type": "structure",
46554775
"members": {
@@ -4997,6 +5117,23 @@
49975117
"smithy.api#pattern": "^[a-zA-Z0-9][a-zA-Z0-9-_]*$"
49985118
}
49995119
},
5120+
"com.amazonaws.bedrockagentcore#SessionStatus": {
5121+
"type": "enum",
5122+
"members": {
5123+
"IN_PROGRESS": {
5124+
"target": "smithy.api#Unit",
5125+
"traits": {
5126+
"smithy.api#enumValue": "IN_PROGRESS"
5127+
}
5128+
},
5129+
"FAILED": {
5130+
"target": "smithy.api#Unit",
5131+
"traits": {
5132+
"smithy.api#enumValue": "FAILED"
5133+
}
5134+
}
5135+
}
5136+
},
50005137
"com.amazonaws.bedrockagentcore#SessionSummary": {
50015138
"type": "structure",
50025139
"members": {
@@ -5309,6 +5446,16 @@
53095446
"smithy.api#output": {}
53105447
}
53115448
},
5449+
"com.amazonaws.bedrockagentcore#State": {
5450+
"type": "string",
5451+
"traits": {
5452+
"smithy.api#length": {
5453+
"min": 1,
5454+
"max": 4096
5455+
},
5456+
"smithy.api#sensitive": {}
5457+
}
5458+
},
53125459
"com.amazonaws.bedrockagentcore#StopBrowserSession": {
53135460
"type": "operation",
53145461
"input": {
@@ -6056,6 +6203,26 @@
60566203
}
60576204
}
60586205
},
6206+
"com.amazonaws.bedrockagentcore#UserIdentifier": {
6207+
"type": "union",
6208+
"members": {
6209+
"userToken": {
6210+
"target": "com.amazonaws.bedrockagentcore#UserTokenType",
6211+
"traits": {
6212+
"smithy.api#documentation": "<p>The OAuth2.0 token issued by the user’s identity provider</p>"
6213+
}
6214+
},
6215+
"userId": {
6216+
"target": "com.amazonaws.bedrockagentcore#UserIdType",
6217+
"traits": {
6218+
"smithy.api#documentation": "<p>The ID of the user for whom you have retrieved a workload access token for</p>"
6219+
}
6220+
}
6221+
},
6222+
"traits": {
6223+
"smithy.api#documentation": "<p>The OAuth2.0 token or user ID that was used to generate the workload access token used for initiating the user authorization flow to retrieve OAuth2.0 tokens.</p>"
6224+
}
6225+
},
60596226
"com.amazonaws.bedrockagentcore#UserTokenType": {
60606227
"type": "string",
60616228
"traits": {

0 commit comments

Comments
 (0)