Skip to content

Commit 8565bec

Browse files
author
AWS
committed
Amazon Bedrock AgentCore Data Plane Fronting Layer Update: Updated InvokeAgentRuntime API to accept account id optionally and added CompleteResourceTokenAuth API.
1 parent e6d7584 commit 8565bec

File tree

2 files changed

+112
-1
lines changed

2 files changed

+112
-1
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"type": "feature",
3+
"category": "Amazon Bedrock AgentCore Data Plane Fronting Layer",
4+
"contributor": "",
5+
"description": "Updated InvokeAgentRuntime API to accept account id optionally and added CompleteResourceTokenAuth API."
6+
}

services/bedrockagentcore/src/main/resources/codegen-resources/service-2.json

Lines changed: 106 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,25 @@
7171
],
7272
"documentation":"<p>Updates multiple memory records with custom content in a single batch operation within the specified memory.</p>"
7373
},
74+
"CompleteResourceTokenAuth":{
75+
"name":"CompleteResourceTokenAuth",
76+
"http":{
77+
"method":"POST",
78+
"requestUri":"/identities/CompleteResourceTokenAuth",
79+
"responseCode":200
80+
},
81+
"input":{"shape":"CompleteResourceTokenAuthRequest"},
82+
"output":{"shape":"CompleteResourceTokenAuthResponse"},
83+
"errors":[
84+
{"shape":"UnauthorizedException"},
85+
{"shape":"ValidationException"},
86+
{"shape":"AccessDeniedException"},
87+
{"shape":"ResourceNotFoundException"},
88+
{"shape":"ThrottlingException"},
89+
{"shape":"InternalServerException"}
90+
],
91+
"documentation":"<p>Confirms the user authentication session for obtaining OAuth2.0 tokens for a resource.</p>"
92+
},
7493
"CreateEvent":{
7594
"name":"CreateEvent",
7695
"http":{
@@ -679,6 +698,11 @@
679698
"min":1,
680699
"sensitive":true
681700
},
701+
"AuthorizationUrlType":{
702+
"type":"string",
703+
"min":1,
704+
"sensitive":true
705+
},
682706
"AutomationStream":{
683707
"type":"structure",
684708
"required":[
@@ -1049,6 +1073,27 @@
10491073
"documentation":"<p>Contains output from a code interpreter stream.</p>",
10501074
"eventstream":true
10511075
},
1076+
"CompleteResourceTokenAuthRequest":{
1077+
"type":"structure",
1078+
"required":[
1079+
"userIdentifier",
1080+
"sessionUri"
1081+
],
1082+
"members":{
1083+
"userIdentifier":{
1084+
"shape":"UserIdentifier",
1085+
"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>"
1086+
},
1087+
"sessionUri":{
1088+
"shape":"RequestUri",
1089+
"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>"
1090+
}
1091+
}
1092+
},
1093+
"CompleteResourceTokenAuthResponse":{
1094+
"type":"structure",
1095+
"members":{}
1096+
},
10521097
"ConflictException":{
10531098
"type":"structure",
10541099
"members":{
@@ -1714,6 +1759,10 @@
17141759
"shape":"Oauth2FlowType",
17151760
"documentation":"<p>The type of flow to be performed.</p>"
17161761
},
1762+
"sessionUri":{
1763+
"shape":"RequestUri",
1764+
"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>"
1765+
},
17171766
"resourceOauth2ReturnUrl":{
17181767
"shape":"ResourceOauth2ReturnUrlType",
17191768
"documentation":"<p>The callback URL to redirect to after the OAuth 2.0 token retrieval is complete. This URL must be one of the provided URLs configured for the workload identity.</p>"
@@ -1725,19 +1774,31 @@
17251774
"customParameters":{
17261775
"shape":"CustomRequestParametersType",
17271776
"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>"
1777+
},
1778+
"customState":{
1779+
"shape":"State",
1780+
"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>"
17281781
}
17291782
}
17301783
},
17311784
"GetResourceOauth2TokenResponse":{
17321785
"type":"structure",
17331786
"members":{
17341787
"authorizationUrl":{
1735-
"shape":"String",
1788+
"shape":"AuthorizationUrlType",
17361789
"documentation":"<p>The URL to initiate the authorization process, provided when the access token requires user authorization.</p>"
17371790
},
17381791
"accessToken":{
17391792
"shape":"AccessTokenType",
17401793
"documentation":"<p>The OAuth 2.0 access token to use.</p>"
1794+
},
1795+
"sessionUri":{
1796+
"shape":"RequestUri",
1797+
"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>"
1798+
},
1799+
"sessionStatus":{
1800+
"shape":"SessionStatus",
1801+
"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>"
17411802
}
17421803
}
17431804
},
@@ -1949,13 +2010,23 @@
19492010
"location":"querystring",
19502011
"locationName":"qualifier"
19512012
},
2013+
"accountId":{
2014+
"shape":"InvokeAgentRuntimeRequestAccountIdString",
2015+
"documentation":"<p>The identifier of the Amazon Web Services account for the agent runtime resource.</p>",
2016+
"location":"querystring",
2017+
"locationName":"accountId"
2018+
},
19522019
"payload":{
19532020
"shape":"Body",
19542021
"documentation":"<p>The input data to send to the agent runtime. The format of this data depends on the specific agent configuration and must match the specified content type. For most agents, this is a JSON object containing the user's request.</p>"
19552022
}
19562023
},
19572024
"payload":"payload"
19582025
},
2026+
"InvokeAgentRuntimeRequestAccountIdString":{
2027+
"type":"string",
2028+
"pattern":"[0-9]{12}"
2029+
},
19592030
"InvokeAgentRuntimeRequestBaggageString":{
19602031
"type":"string",
19612032
"max":8192,
@@ -2753,6 +2824,12 @@
27532824
"min":1,
27542825
"pattern":"[a-zA-Z0-9_-]+"
27552826
},
2827+
"RequestUri":{
2828+
"type":"string",
2829+
"max":1024,
2830+
"min":1,
2831+
"pattern":"urn:ietf:params:oauth:request_uri:[a-zA-Z0-9-._~]+"
2832+
},
27562833
"ResourceContent":{
27572834
"type":"structure",
27582835
"required":["type"],
@@ -2957,6 +3034,13 @@
29573034
"min":1,
29583035
"pattern":"[a-zA-Z0-9][a-zA-Z0-9-_]*"
29593036
},
3037+
"SessionStatus":{
3038+
"type":"string",
3039+
"enum":[
3040+
"IN_PROGRESS",
3041+
"FAILED"
3042+
]
3043+
},
29603044
"SessionSummary":{
29613045
"type":"structure",
29623046
"required":[
@@ -3135,6 +3219,12 @@
31353219
}
31363220
}
31373221
},
3222+
"State":{
3223+
"type":"string",
3224+
"max":4096,
3225+
"min":1,
3226+
"sensitive":true
3227+
},
31383228
"StopBrowserSessionRequest":{
31393229
"type":"structure",
31403230
"required":[
@@ -3538,6 +3628,21 @@
35383628
"max":128,
35393629
"min":1
35403630
},
3631+
"UserIdentifier":{
3632+
"type":"structure",
3633+
"members":{
3634+
"userToken":{
3635+
"shape":"UserTokenType",
3636+
"documentation":"<p>The OAuth2.0 token issued by the user’s identity provider</p>"
3637+
},
3638+
"userId":{
3639+
"shape":"UserIdType",
3640+
"documentation":"<p>The ID of the user for whom you have retrieved a workload access token for</p>"
3641+
}
3642+
},
3643+
"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>",
3644+
"union":true
3645+
},
35413646
"UserTokenType":{
35423647
"type":"string",
35433648
"max":131072,

0 commit comments

Comments
 (0)