CmdID

CmdID / aws / aws bedrock-agentcore

aws bedrock-agentcore get-resource-oauth2-token

Returns the OAuth 2.0 token of the provided resource. AWS CLI reference

11 options Its page in the AWS CLI reference

Opens CmdID with your command. It is read in your browser and sent nowhere.

Options

11 in the AWS CLI reference
--audiencesThe audiences to include in the token request.
--custom-parametersA map of custom parameters to include in the authorization request to the resource credential provider.
--custom-stateAn opaque string that will be sent back to the callback URL provided in resourceOauth2ReturnUrl.
--force-authenticationIndicates whether to always initiate a new three-legged OAuth (3LO) flow, regardless of any existing session.
--oauth2-flowThe type of flow to be performed.
--resource-credential-provider-nameThe name of the resource's credential provider.
--resource-oauth2-return-urlThe callback URL to redirect to after the OAuth 2.0 token retrieval is complete.
--resourcesThe resources to include in the token request.
--scopesThe OAuth scopes being requested.
--session-uriUnique identifier for the user's authentication session for retrieving OAuth2 tokens.
--workload-identity-tokenThe identity token of the workload from which you want to retrieve the OAuth2 token.