1. Packages
  2. Packages
  3. AWS Cloud Control
  4. API Docs
  5. bedrockagentcore
  6. getOAuth2CredentialProvider

We recommend new projects start with resources from the AWS provider.

Viewing docs for AWS Cloud Control v1.63.0
published on Monday, May 4, 2026 by Pulumi
aws-native logo

We recommend new projects start with resources from the AWS provider.

Viewing docs for AWS Cloud Control v1.63.0
published on Monday, May 4, 2026 by Pulumi

    Resource Type definition for AWS::BedrockAgentCore::OAuth2CredentialProvider

    Using getOAuth2CredentialProvider

    Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

    function getOAuth2CredentialProvider(args: GetOAuth2CredentialProviderArgs, opts?: InvokeOptions): Promise<GetOAuth2CredentialProviderResult>
    function getOAuth2CredentialProviderOutput(args: GetOAuth2CredentialProviderOutputArgs, opts?: InvokeOptions): Output<GetOAuth2CredentialProviderResult>
    def get_o_auth2_credential_provider(credential_provider_arn: Optional[str] = None,
                                        opts: Optional[InvokeOptions] = None) -> GetOAuth2CredentialProviderResult
    def get_o_auth2_credential_provider_output(credential_provider_arn: pulumi.Input[Optional[str]] = None,
                                        opts: Optional[InvokeOptions] = None) -> Output[GetOAuth2CredentialProviderResult]
    func LookupOAuth2CredentialProvider(ctx *Context, args *LookupOAuth2CredentialProviderArgs, opts ...InvokeOption) (*LookupOAuth2CredentialProviderResult, error)
    func LookupOAuth2CredentialProviderOutput(ctx *Context, args *LookupOAuth2CredentialProviderOutputArgs, opts ...InvokeOption) LookupOAuth2CredentialProviderResultOutput

    > Note: This function is named LookupOAuth2CredentialProvider in the Go SDK.

    public static class GetOAuth2CredentialProvider 
    {
        public static Task<GetOAuth2CredentialProviderResult> InvokeAsync(GetOAuth2CredentialProviderArgs args, InvokeOptions? opts = null)
        public static Output<GetOAuth2CredentialProviderResult> Invoke(GetOAuth2CredentialProviderInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetOAuth2CredentialProviderResult> getOAuth2CredentialProvider(GetOAuth2CredentialProviderArgs args, InvokeOptions options)
    public static Output<GetOAuth2CredentialProviderResult> getOAuth2CredentialProvider(GetOAuth2CredentialProviderArgs args, InvokeOptions options)
    
    fn::invoke:
      function: aws-native:bedrockagentcore:getOAuth2CredentialProvider
      arguments:
        # arguments dictionary

    The following arguments are supported:

    CredentialProviderArn string
    The Amazon Resource Name (ARN) of the OAuth2 credential provider
    CredentialProviderArn string
    The Amazon Resource Name (ARN) of the OAuth2 credential provider
    credentialProviderArn String
    The Amazon Resource Name (ARN) of the OAuth2 credential provider
    credentialProviderArn string
    The Amazon Resource Name (ARN) of the OAuth2 credential provider
    credential_provider_arn str
    The Amazon Resource Name (ARN) of the OAuth2 credential provider
    credentialProviderArn String
    The Amazon Resource Name (ARN) of the OAuth2 credential provider

    getOAuth2CredentialProvider Result

    The following output properties are available:

    CallbackUrl string
    The callback URL for the OAuth2 authorization flow
    ClientSecretArn Pulumi.AwsNative.BedrockAgentCore.Outputs.OAuth2CredentialProviderClientSecretArn
    The ARN of the client secret in AWS Secrets Manager
    CreatedTime string
    The timestamp when the credential provider was created
    CredentialProviderArn string
    The Amazon Resource Name (ARN) of the OAuth2 credential provider
    LastUpdatedTime string
    The timestamp when the credential provider was last updated
    Oauth2ProviderConfigOutput Pulumi.AwsNative.BedrockAgentCore.Outputs.OAuth2CredentialProviderOauth2ProviderConfigOutput
    The output configuration for the OAuth2 provider
    Tags List<Pulumi.AwsNative.Outputs.Tag>
    Tags to assign to the OAuth2 credential provider
    CallbackUrl string
    The callback URL for the OAuth2 authorization flow
    ClientSecretArn OAuth2CredentialProviderClientSecretArn
    The ARN of the client secret in AWS Secrets Manager
    CreatedTime string
    The timestamp when the credential provider was created
    CredentialProviderArn string
    The Amazon Resource Name (ARN) of the OAuth2 credential provider
    LastUpdatedTime string
    The timestamp when the credential provider was last updated
    Oauth2ProviderConfigOutput OAuth2CredentialProviderOauth2ProviderConfigOutput
    The output configuration for the OAuth2 provider
    Tags Tag
    Tags to assign to the OAuth2 credential provider
    callbackUrl String
    The callback URL for the OAuth2 authorization flow
    clientSecretArn OAuth2CredentialProviderClientSecretArn
    The ARN of the client secret in AWS Secrets Manager
    createdTime String
    The timestamp when the credential provider was created
    credentialProviderArn String
    The Amazon Resource Name (ARN) of the OAuth2 credential provider
    lastUpdatedTime String
    The timestamp when the credential provider was last updated
    oauth2ProviderConfigOutput OAuth2CredentialProviderOauth2ProviderConfigOutput
    The output configuration for the OAuth2 provider
    tags List<Tag>
    Tags to assign to the OAuth2 credential provider
    callbackUrl string
    The callback URL for the OAuth2 authorization flow
    clientSecretArn OAuth2CredentialProviderClientSecretArn
    The ARN of the client secret in AWS Secrets Manager
    createdTime string
    The timestamp when the credential provider was created
    credentialProviderArn string
    The Amazon Resource Name (ARN) of the OAuth2 credential provider
    lastUpdatedTime string
    The timestamp when the credential provider was last updated
    oauth2ProviderConfigOutput OAuth2CredentialProviderOauth2ProviderConfigOutput
    The output configuration for the OAuth2 provider
    tags Tag[]
    Tags to assign to the OAuth2 credential provider
    callback_url str
    The callback URL for the OAuth2 authorization flow
    client_secret_arn OAuth2CredentialProviderClientSecretArn
    The ARN of the client secret in AWS Secrets Manager
    created_time str
    The timestamp when the credential provider was created
    credential_provider_arn str
    The Amazon Resource Name (ARN) of the OAuth2 credential provider
    last_updated_time str
    The timestamp when the credential provider was last updated
    oauth2_provider_config_output OAuth2CredentialProviderOauth2ProviderConfigOutput
    The output configuration for the OAuth2 provider
    tags Sequence[root_Tag]
    Tags to assign to the OAuth2 credential provider
    callbackUrl String
    The callback URL for the OAuth2 authorization flow
    clientSecretArn Property Map
    The ARN of the client secret in AWS Secrets Manager
    createdTime String
    The timestamp when the credential provider was created
    credentialProviderArn String
    The Amazon Resource Name (ARN) of the OAuth2 credential provider
    lastUpdatedTime String
    The timestamp when the credential provider was last updated
    oauth2ProviderConfigOutput Property Map
    The output configuration for the OAuth2 provider
    tags List<Property Map>
    Tags to assign to the OAuth2 credential provider

    Supporting Types

    OAuth2CredentialProviderClientSecretArn

    SecretArn string
    The ARN of the secret in AWS Secrets Manager
    SecretArn string
    The ARN of the secret in AWS Secrets Manager
    secretArn String
    The ARN of the secret in AWS Secrets Manager
    secretArn string
    The ARN of the secret in AWS Secrets Manager
    secret_arn str
    The ARN of the secret in AWS Secrets Manager
    secretArn String
    The ARN of the secret in AWS Secrets Manager

    OAuth2CredentialProviderOauth2AuthorizationServerMetadata

    AuthorizationEndpoint string
    The authorization endpoint URL
    Issuer string
    The issuer URL for the OAuth2 authorization server
    TokenEndpoint string
    The token endpoint URL
    ResponseTypes List<string>
    The supported response types
    AuthorizationEndpoint string
    The authorization endpoint URL
    Issuer string
    The issuer URL for the OAuth2 authorization server
    TokenEndpoint string
    The token endpoint URL
    ResponseTypes []string
    The supported response types
    authorizationEndpoint String
    The authorization endpoint URL
    issuer String
    The issuer URL for the OAuth2 authorization server
    tokenEndpoint String
    The token endpoint URL
    responseTypes List<String>
    The supported response types
    authorizationEndpoint string
    The authorization endpoint URL
    issuer string
    The issuer URL for the OAuth2 authorization server
    tokenEndpoint string
    The token endpoint URL
    responseTypes string[]
    The supported response types
    authorization_endpoint str
    The authorization endpoint URL
    issuer str
    The issuer URL for the OAuth2 authorization server
    token_endpoint str
    The token endpoint URL
    response_types Sequence[str]
    The supported response types
    authorizationEndpoint String
    The authorization endpoint URL
    issuer String
    The issuer URL for the OAuth2 authorization server
    tokenEndpoint String
    The token endpoint URL
    responseTypes List<String>
    The supported response types

    OAuth2CredentialProviderOauth2Discovery

    authorizationServerMetadata Property Map
    discoveryUrl String
    The discovery URL for the OAuth2 provider

    OAuth2CredentialProviderOauth2ProviderConfigOutput

    Tag

    Key string
    The key name of the tag
    Value string
    The value of the tag
    Key string
    The key name of the tag
    Value string
    The value of the tag
    key String
    The key name of the tag
    value String
    The value of the tag
    key string
    The key name of the tag
    value string
    The value of the tag
    key str
    The key name of the tag
    value str
    The value of the tag
    key String
    The key name of the tag
    value String
    The value of the tag

    Package Details

    Repository
    AWS Native pulumi/pulumi-aws-native
    License
    Apache-2.0
    aws-native logo

    We recommend new projects start with resources from the AWS provider.

    Viewing docs for AWS Cloud Control v1.63.0
    published on Monday, May 4, 2026 by Pulumi
      Try Pulumi Cloud free. Your team will thank you.