Skip to main content

oauth2_credential_providers

Creates, updates, deletes, gets or lists an oauth2_credential_providers resource.

Overview

Nameoauth2_credential_providers
TypeResource
Idaws.bedrock_agentcore_control.oauth2_credential_providers

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
namestringThe name of the OAuth2 credential provider. (pattern: <code>[a-zA-Z0-9-_]+</code>)
callback_urlstringCallback URL to register on the OAuth2 credential provider as an allowed callback URL. This URL is where the OAuth2 authorization server redirects users after they complete the authorization flow.
client_secret_arnobjectContains information about a secret in Amazon Web Services Secrets Manager.
client_secret_json_keystringThe JSON key used to extract the client secret value from the Amazon Web Services Secrets Manager secret.
client_secret_sourcestringThe source type of the client secret. Either MANAGED if the secret is managed by the service, or EXTERNAL if managed by the user in Amazon Web Services Secrets Manager. (MANAGED, EXTERNAL)
created_timestring (date-time)The timestamp when the OAuth2 credential provider was created.
credential_provider_arnstringARN of the credential provider requested. (pattern: <code>arn:(aws|aws-us-gov):acps:[A-Za-z0-9-]{1,64}:[0-9]{12}:token-vault/[a-zA-Z0-9-.]+/oauth2credentialprovider/[a-zA-Z0-9-.]+</code>)
credential_provider_vendorstringThe vendor of the OAuth2 credential provider. (GoogleOauth2, GithubOauth2, SlackOauth2, SalesforceOauth2, MicrosoftOauth2, CustomOauth2, AtlassianOauth2, LinkedinOauth2, XOauth2, OktaOauth2, OneLoginOauth2, PingOneOauth2, FacebookOauth2, YandexOauth2, RedditOauth2, ZoomOauth2, TwitchOauth2, SpotifyOauth2, DropboxOauth2, NotionOauth2, HubspotOauth2, CyberArkOauth2, FusionAuthOauth2, Auth0Oauth2, CognitoOauth2)
failure_reasonstringThe reason for failure if the OAuth2 credential provider is in a failed state.
last_updated_timestring (date-time)The timestamp when the OAuth2 credential provider was last updated.
oauth_2_provider_config_outputobjectContains the output configuration for an OAuth2 provider.
statusstringThe current status of the OAuth2 credential provider. (CREATING, CREATE_FAILED, UPDATING, UPDATE_FAILED, READY, DELETING, DELETE_FAILED)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_oauth2_credential_providerselectregionRetrieves information about an OAuth2 credential provider.
list_oauth2_credential_providersselectregionLists all OAuth2 credential providers in your account.
create_oauth2_credential_providerinsertregion, name, credentialProviderVendor, oauth2ProviderConfigInputCreates a new OAuth2 credential provider.
update_oauth2_credential_providerupdateregion, name, credentialProviderVendor, oauth2ProviderConfigInputUpdates an existing OAuth2 credential provider.
delete_oauth2_credential_providerdeleteregionDeletes an OAuth2 credential provider.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
regionstringAWS region (default: us-east-1)

SELECT examples

Retrieves information about an OAuth2 credential provider.

SELECT
name,
callback_url,
client_secret_arn,
client_secret_json_key,
client_secret_source,
created_time,
credential_provider_arn,
credential_provider_vendor,
failure_reason,
last_updated_time,
oauth_2_provider_config_output,
status
FROM aws.bedrock_agentcore_control.oauth2_credential_providers
WHERE region = '{{ region }}' -- required
;

INSERT examples

Creates a new OAuth2 credential provider.

INSERT INTO aws.bedrock_agentcore_control.oauth2_credential_providers (
name,
credentialProviderVendor,
oauth2ProviderConfigInput,
tags,
region
)
SELECT
'{{ name }}' /* required */,
'{{ credentialProviderVendor }}' /* required */,
'{{ oauth2ProviderConfigInput }}' /* required */,
'{{ tags }}',
'{{ region }}'
RETURNING
name,
callback_url,
client_secret_arn,
client_secret_json_key,
client_secret_source,
credential_provider_arn,
oauth_2_provider_config_output,
status
;

UPDATE examples

Updates an existing OAuth2 credential provider.

UPDATE aws.bedrock_agentcore_control.oauth2_credential_providers
SET
name = '{{ name }}',
credentialProviderVendor = '{{ credentialProviderVendor }}',
oauth2ProviderConfigInput = '{{ oauth2ProviderConfigInput }}'
WHERE
region = '{{ region }}' --required
AND name = '{{ name }}' --required
AND credentialProviderVendor = '{{ credentialProviderVendor }}' --required
AND oauth2ProviderConfigInput = '{{ oauth2ProviderConfigInput }}' --required
RETURNING
name,
callback_url,
client_secret_arn,
client_secret_json_key,
client_secret_source,
created_time,
credential_provider_arn,
credential_provider_vendor,
last_updated_time,
oauth_2_provider_config_output,
status;

DELETE examples

Deletes an OAuth2 credential provider.

DELETE FROM aws.bedrock_agentcore_control.oauth2_credential_providers
WHERE region = '{{ region }}' --required
;