Amazon Bedrock · Schema
GetResourceOauth2TokenRequest
Artificial IntelligenceAmazon Web ServicesFoundation ModelsGenerative AILLMMachine LearningRAGAgentsResponsible AIModel Serving
Properties
| Name | Type | Description |
|---|---|---|
| workloadIdentityToken | string | The identity token of the workload from which you want to retrieve the OAuth2 token. |
| resourceCredentialProviderName | string | The name of the resource's credential provider. |
| scopes | array | The OAuth scopes being requested. |
| oauth2Flow | string | The type of flow to be performed. |
| sessionUri | string | 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 authenticatio |
| resourceOauth2ReturnUrl | string | 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. |
| forceAuthentication | boolean | Indicates whether to always initiate a new three-legged OAuth (3LO) flow, regardless of any existing session. |
| customParameters | object | 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 overrid |
| customState | string | 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 ensur |
| resources | array | The resources to include in the token request. These are used to specify the target resources for which the OAuth2 token is being requested. |
| audiences | array | The audiences to include in the token request. These are used to specify the intended recipients of the OAuth2 token. |
JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://artifacts.apis.io/amazon-bedrock/json-schema/amazon-bedrock-get-resource-oauth2-token-request-schema.json",
"title": "GetResourceOauth2TokenRequest",
"x-generated": "2026-11-11",
"x-method": "derived",
"x-generator": "derive-json-schema.py",
"x-source": "openapi/amazon-bedrock-identities-api-openapi.yml#/components/schemas/GetResourceOauth2TokenRequest",
"type": "object",
"properties": {
"workloadIdentityToken": {
"type": "string",
"description": "The identity token of the workload from which you want to retrieve the OAuth2 token."
},
"resourceCredentialProviderName": {
"type": "string",
"description": "The name of the resource's credential provider."
},
"scopes": {
"type": "array",
"items": {
"type": "string"
},
"description": "The OAuth scopes being requested."
},
"oauth2Flow": {
"type": "string",
"enum": [
"USER_FEDERATION",
"M2M",
"ON_BEHALF_OF_TOKEN_EXCHANGE"
],
"description": "The type of flow to be performed."
},
"sessionUri": {
"type": "string",
"description": "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."
},
"resourceOauth2ReturnUrl": {
"type": "string",
"description": "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."
},
"forceAuthentication": {
"type": "boolean",
"description": "Indicates whether to always initiate a new three-legged OAuth (3LO) flow, regardless of any existing session."
},
"customParameters": {
"type": "object",
"additionalProperties": {
"type": "string"
},
"description": "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."
},
"customState": {
"type": "string",
"description": "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."
},
"resources": {
"type": "array",
"items": {
"type": "string"
},
"description": "The resources to include in the token request. These are used to specify the target resources for which the OAuth2 token is being requested."
},
"audiences": {
"type": "array",
"items": {
"type": "string"
},
"description": "The audiences to include in the token request. These are used to specify the intended recipients of the OAuth2 token."
}
},
"required": [
"workloadIdentityToken",
"resourceCredentialProviderName",
"scopes",
"oauth2Flow"
]
}
Work with this as data
Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.
MCP server
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
Tools for schemas
4 MCP tools reach this
find_json_schemasBrowse and filter every JSON Schema in the catalog.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.
Call it yourself
curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/amazon-bedrock-get-resource-oauth2-token-request"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.