# OAuth2CredentialProvider

L2 construct for `AWS::BedrockAgentCore::OAuth2CredentialProvider`.

Prefer the static factories (for example {@link OAuth2CredentialProvider.usingSlack}) so you only pass
the OAuth2 settings that apply to that vendor. To attach the identity to a gateway target, use
{@link GatewayCredentialProvider.fromOauthIdentity } with this construct, or
{@link OAuth2CredentialProvider.bindForGatewayOAuthTarget} with {@link GatewayCredentialProvider.fromOauthIdentityArn }.

Extends: [Construct](https://docs.aws.amazon.com/cdk/api/v2/docs/constructs.Construct.html) › [Resource](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.Resource.html) › OAuth2CredentialProvider
Implements: [IOAuth2CredentialProvider](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-bedrock-agentcore-alpha.IOAuth2CredentialProvider.html), [IResource](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResource.html), [IGrantable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_iam.IGrantable.html), [IEnvironmentAware](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.interfaces.IEnvironmentAware.html), IOAuth2CredentialProviderRef, IConstruct, IDependable
Obtainable from: OAuth2CredentialProvider.usingAtlassian, OAuth2CredentialProvider.usingAuth0, OAuth2CredentialProvider.usingCognito, OAuth2CredentialProvider.usingCustom, OAuth2CredentialProvider.usingCyberArk, OAuth2CredentialProvider.usingDropbox, OAuth2CredentialProvider.usingFacebook, OAuth2CredentialProvider.usingFusionAuth, OAuth2CredentialProvider.usingGithub, OAuth2CredentialProvider.usingGoogle, OAuth2CredentialProvider.usingHubspot, OAuth2CredentialProvider.usingLinkedin, OAuth2CredentialProvider.usingMicrosoft, OAuth2CredentialProvider.usingNotion, OAuth2CredentialProvider.usingOkta, OAuth2CredentialProvider.usingOneLogin, OAuth2CredentialProvider.usingPingOne, OAuth2CredentialProvider.usingReddit, OAuth2CredentialProvider.usingSalesforce, OAuth2CredentialProvider.usingSlack, OAuth2CredentialProvider.usingSpotify, OAuth2CredentialProvider.usingTwitch, OAuth2CredentialProvider.usingX, OAuth2CredentialProvider.usingYandex, OAuth2CredentialProvider.usingZoom

- CloudFormation: [`AWS::BedrockAgentCore::OAuth2CredentialProvider`](https://docs.aws.amazon.com/AWSCloudFormation/latest/TemplateReference/aws-resource-bedrockagentcore-oauth2credentialprovider.html)
- L1 type: [`CfnOAuth2CredentialProvider`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_bedrockagentcore.CfnOAuth2CredentialProvider.html)
- Source: [`lib/identity/oauth2-credential-provider.ts`](https://github.com/aws/aws-cdk/blob/v2.278.0/packages/@aws-cdk/aws-bedrock-agentcore-alpha/lib/identity/oauth2-credential-provider.ts#L785)
- Type last changed: v2.278.0-alpha.0 · 21 Nov 2026

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as bedrock_agentcore_alpha from '@aws-cdk/aws-bedrock-agentcore-alpha';
const oAuth2CredentialProvider = new bedrock_agentcore_alpha.OAuth2CredentialProvider(this, 'MyOAuth2CredentialProvider', {
  credentialProviderVendor: 'credentialProviderVendor',
  oauth2ProviderConfigInput: {
    atlassianOauth2ProviderConfig: {
      clientId: 'clientId',

      // the properties below are optional
      clientSecret: 'clientSecret',
      clientSecretConfig: {
        jsonKey: 'jsonKey',
        secretId: 'secretId',
      },
      clientSecretSource: 'clientSecretSource',
    },
    customOauth2ProviderConfig: {
      oauthDiscovery: {
        authorizationServerMetadata: {
          authorizationEndpoint: 'authorizationEndpoint',
          issuer: 'issuer',
          tokenEndpoint: 'tokenEndpoint',

          // the properties below are optional
          responseTypes: ['responseTypes'],
        },
        discoveryUrl: 'discoveryUrl',
      },

      // the properties below are optional
      certificateConfigurations: [{
        s3: {
          uri: 'uri',

          // the properties below are optional
          bucketOwnerAccountId: 'bucketOwnerAccountId',
        },
        secretsManager: {
          secretArn: 'secretArn',
        },
      }],
      clientAuthenticationMethod: 'clientAuthenticationMethod',
      clientId: 'clientId',
      clientSecret: 'clientSecret',
      clientSecretConfig: {
        jsonKey: 'jsonKey',
        secretId: 'secretId',
      },
      clientSecretSource: 'clientSecretSource',
      onBehalfOfTokenExchangeConfig: {
        grantType: 'grantType',

        // the properties below are optional
        tokenExchangeGrantTypeConfig: {
          actorTokenContent: 'actorTokenContent',

          // the properties below are optional
          actorTokenScopes: ['actorTokenScopes'],
        },
      },
      privateEndpoint: {
        managedVpcResource: {
          endpointIpAddressType: 'endpointIpAddressType',
          subnetIds: ['subnetIds'],
          vpcIdentifier: 'vpcIdentifier',

          // the properties below are optional
          routingDomain: 'routingDomain',
          securityGroupIds: ['securityGroupIds'],
          tags: {
            tagsKey: 'tags',
          },
        },
        selfManagedLatticeResource: {
          resourceConfigurationIdentifier: 'resourceConfigurationIdentifier',
        },
      },
      privateEndpointOverrides: [{
        domain: 'domain',
        privateEndpoint: {
          managedVpcResource: {
            endpointIpAddressType: 'endpointIpAddressType',
            subnetIds: ['subnetIds'],
            vpcIdentifier: 'vpcIdentifier',

            // the properties below are optional
            routingDomain: 'routingDomain',
            securityGroupIds: ['securityGroupIds'],
            tags: {
              tagsKey: 'tags',
            },
          },
          selfManagedLatticeResource: {
            resourceConfigurationIdentifier: 'resourceConfigurationIdentifier',
          },
        },
      }],
      privateKeyJwtConfig: {
        additionalHeaderClaims: {
          additionalHeaderClaimsKey: 'additionalHeaderClaims',
        },
        additionalPayloadClaims: {
          additionalPayloadClaimsKey: 'additionalPayloadClaims',
        },
        privateKeySource: {
          kmsKeySource: {
            kmsKeyArn: 'kmsKeyArn',
          },
        },
        signingAlgorithm: 'signingAlgorithm',
      },
    },
    githubOauth2ProviderConfig: {
      clientId: 'clientId',

      // the properties below are optional
      clientSecret: 'clientSecret',
      clientSecretConfig: {
        jsonKey: 'jsonKey',
        secretId: 'secretId',
      },
      clientSecretSource: 'clientSecretSource',
    },
    googleOauth2ProviderConfig: {
      clientId: 'clientId',

      // the properties below are optional
      clientSecret: 'clientSecret',
      clientSecretConfig: {
        jsonKey: 'jsonKey',
        secretId: 'secretId',
      },
      clientSecretSource: 'clientSecretSource',
    },
    includedOauth2ProviderConfig: {
      clientId: 'clientId',

      // the properties below are optional
      authorizationEndpoint: 'authorizationEndpoint',
      clientSecret: 'clientSecret',
      clientSecretConfig: {
        jsonKey: 'jsonKey',
        secretId: 'secretId',
      },
      clientSecretSource: 'clientSecretSource',
      issuer: 'issuer',
      tokenEndpoint: 'tokenEndpoint',
    },
    linkedinOauth2ProviderConfig: {
      clientId: 'clientId',

      // the properties below are optional
      clientSecret: 'clientSecret',
      clientSecretConfig: {
        jsonKey: 'jsonKey',
        secretId: 'secretId',
      },
      clientSecretSource: 'clientSecretSource',
    },
    microsoftOauth2ProviderConfig: {
      clientId: 'clientId',

      // the properties below are optional
      clientSecret: 'clientSecret',
      clientSecretConfig: {
        jsonKey: 'jsonKey',
        secretId: 'secretId',
      },
      clientSecretSource: 'clientSecretSource',
      tenantId: 'tenantId',
    },
    salesforceOauth2ProviderConfig: {
      clientId: 'clientId',

      // the properties below are optional
      clientSecret: 'clientSecret',
      clientSecretConfig: {
        jsonKey: 'jsonKey',
        secretId: 'secretId',
      },
      clientSecretSource: 'clientSecretSource',
    },
    slackOauth2ProviderConfig: {
      clientId: 'clientId',

      // the properties below are optional
      clientSecret: 'clientSecret',
      clientSecretConfig: {
        jsonKey: 'jsonKey',
        secretId: 'secretId',
      },
      clientSecretSource: 'clientSecretSource',
    },
  },

  // the properties below are optional
  oAuth2CredentialProviderName: 'oAuth2CredentialProviderName',
  tags: {
    tagsKey: 'tags',
  },
});
```

Python:

```python
from aws_cdk.aws_bedrockagentcore.Oauth2ProviderConfigInputProperty import Oauth2ProviderConfigInputProperty
from aws_cdk.aws_bedrockagentcore.AtlassianOauth2ProviderConfigInputProperty import AtlassianOauth2ProviderConfigInputProperty
from aws_cdk.aws_bedrockagentcore.SecretReferenceProperty import SecretReferenceProperty, SecretReferenceProperty, SecretReferenceProperty, SecretReferenceProperty, SecretReferenceProperty, SecretReferenceProperty, SecretReferenceProperty, SecretReferenceProperty, SecretReferenceProperty
from aws_cdk.aws_bedrockagentcore.CustomOauth2ProviderConfigInputProperty import CustomOauth2ProviderConfigInputProperty
from aws_cdk.aws_bedrockagentcore.Oauth2DiscoveryProperty import Oauth2DiscoveryProperty
from aws_cdk.aws_bedrockagentcore.Oauth2AuthorizationServerMetadataProperty import Oauth2AuthorizationServerMetadataProperty
from aws_cdk.aws_bedrockagentcore.CertificateConfigurationProperty import CertificateConfigurationProperty
from aws_cdk.aws_bedrockagentcore.S3CertificateConfigurationProperty import S3CertificateConfigurationProperty
from aws_cdk.aws_bedrockagentcore.SecretsManagerCertificateConfigurationProperty import SecretsManagerCertificateConfigurationProperty
from aws_cdk.aws_bedrockagentcore.OnBehalfOfTokenExchangeConfigProperty import OnBehalfOfTokenExchangeConfigProperty
from aws_cdk.aws_bedrockagentcore.TokenExchangeGrantTypeConfigProperty import TokenExchangeGrantTypeConfigProperty
from aws_cdk.aws_bedrockagentcore.PrivateEndpointProperty import PrivateEndpointProperty, PrivateEndpointProperty
from aws_cdk.aws_bedrockagentcore.ManagedVpcResourceProperty import ManagedVpcResourceProperty, ManagedVpcResourceProperty
from aws_cdk.aws_bedrockagentcore.SelfManagedLatticeResourceProperty import SelfManagedLatticeResourceProperty, SelfManagedLatticeResourceProperty
from aws_cdk.aws_bedrockagentcore.PrivateEndpointOverrideProperty import PrivateEndpointOverrideProperty
from aws_cdk.aws_bedrockagentcore.PrivateKeyJwtConfigProperty import PrivateKeyJwtConfigProperty
from aws_cdk.aws_bedrockagentcore.PrivateKeySourceProperty import PrivateKeySourceProperty
from aws_cdk.aws_bedrockagentcore.KmsKeySourceTypeProperty import KmsKeySourceTypeProperty
from aws_cdk.aws_bedrockagentcore.GithubOauth2ProviderConfigInputProperty import GithubOauth2ProviderConfigInputProperty
from aws_cdk.aws_bedrockagentcore.GoogleOauth2ProviderConfigInputProperty import GoogleOauth2ProviderConfigInputProperty
from aws_cdk.aws_bedrockagentcore.IncludedOauth2ProviderConfigInputProperty import IncludedOauth2ProviderConfigInputProperty
from aws_cdk.aws_bedrockagentcore.LinkedinOauth2ProviderConfigInputProperty import LinkedinOauth2ProviderConfigInputProperty
from aws_cdk.aws_bedrockagentcore.MicrosoftOauth2ProviderConfigInputProperty import MicrosoftOauth2ProviderConfigInputProperty
from aws_cdk.aws_bedrockagentcore.SalesforceOauth2ProviderConfigInputProperty import SalesforceOauth2ProviderConfigInputProperty
from aws_cdk.aws_bedrockagentcore.SlackOauth2ProviderConfigInputProperty import SlackOauth2ProviderConfigInputProperty
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
import aws_cdk.aws_bedrock_agentcore_alpha as bedrock_agentcore_alpha

o_auth2_credential_provider = bedrock_agentcore_alpha.OAuth2CredentialProvider(self, "MyOAuth2CredentialProvider",
    credential_provider_vendor="credentialProviderVendor",
    oauth2_provider_config_input=Oauth2ProviderConfigInputProperty(
        atlassian_oauth2_provider_config=AtlassianOauth2ProviderConfigInputProperty(
            client_id="clientId",

            # the properties below are optional
            client_secret="clientSecret",
            client_secret_config=SecretReferenceProperty(
                json_key="jsonKey",
                secret_id="secretId"
            ),
            client_secret_source="clientSecretSource"
        ),
        custom_oauth2_provider_config=CustomOauth2ProviderConfigInputProperty(
            oauth_discovery=Oauth2DiscoveryProperty(
                authorization_server_metadata=Oauth2AuthorizationServerMetadataProperty(
                    authorization_endpoint="authorizationEndpoint",
                    issuer="issuer",
                    token_endpoint="tokenEndpoint",

                    # the properties below are optional
                    response_types=["responseTypes"]
                ),
                discovery_url="discoveryUrl"
            ),

            # the properties below are optional
            certificate_configurations=[CertificateConfigurationProperty(
                s3=S3CertificateConfigurationProperty(
                    uri="uri",

                    # the properties below are optional
                    bucket_owner_account_id="bucketOwnerAccountId"
                ),
                secrets_manager=SecretsManagerCertificateConfigurationProperty(
                    secret_arn="secretArn"
                )
            )],
            client_authentication_method="clientAuthenticationMethod",
            client_id="clientId",
            client_secret="clientSecret",
            client_secret_config=SecretReferenceProperty(
                json_key="jsonKey",
                secret_id="secretId"
            ),
            client_secret_source="clientSecretSource",
            on_behalf_of_token_exchange_config=OnBehalfOfTokenExchangeConfigProperty(
                grant_type="grantType",

                # the properties below are optional
                token_exchange_grant_type_config=TokenExchangeGrantTypeConfigProperty(
                    actor_token_content="actorTokenContent",

                    # the properties below are optional
                    actor_token_scopes=["actorTokenScopes"]
                )
            ),
            private_endpoint=PrivateEndpointProperty(
                managed_vpc_resource=ManagedVpcResourceProperty(
                    endpoint_ip_address_type="endpointIpAddressType",
                    subnet_ids=["subnetIds"],
                    vpc_identifier="vpcIdentifier",

                    # the properties below are optional
                    routing_domain="routingDomain",
                    security_group_ids=["securityGroupIds"],
                    tags={
                        "tags_key": "tags"
                    }
                ),
                self_managed_lattice_resource=SelfManagedLatticeResourceProperty(
                    resource_configuration_identifier="resourceConfigurationIdentifier"
                )
            ),
            private_endpoint_overrides=[PrivateEndpointOverrideProperty(
                domain="domain",
                private_endpoint=PrivateEndpointProperty(
                    managed_vpc_resource=ManagedVpcResourceProperty(
                        endpoint_ip_address_type="endpointIpAddressType",
                        subnet_ids=["subnetIds"],
                        vpc_identifier="vpcIdentifier",

                        # the properties below are optional
                        routing_domain="routingDomain",
                        security_group_ids=["securityGroupIds"],
                        tags={
                            "tags_key": "tags"
                        }
                    ),
                    self_managed_lattice_resource=SelfManagedLatticeResourceProperty(
                        resource_configuration_identifier="resourceConfigurationIdentifier"
                    )
                )
            )],
            private_key_jwt_config=PrivateKeyJwtConfigProperty(
                additional_header_claims={
                    "additional_header_claims_key": "additionalHeaderClaims"
                },
                additional_payload_claims={
                    "additional_payload_claims_key": "additionalPayloadClaims"
                },
                private_key_source=PrivateKeySourceProperty(
                    kms_key_source=KmsKeySourceTypeProperty(
                        kms_key_arn="kmsKeyArn"
                    )
                ),
                signing_algorithm="signingAlgorithm"
            )
        ),
        github_oauth2_provider_config=GithubOauth2ProviderConfigInputProperty(
            client_id="clientId",

            # the properties below are optional
            client_secret="clientSecret",
            client_secret_config=SecretReferenceProperty(
                json_key="jsonKey",
                secret_id="secretId"
            ),
            client_secret_source="clientSecretSource"
        ),
        google_oauth2_provider_config=GoogleOauth2ProviderConfigInputProperty(
            client_id="clientId",

            # the properties below are optional
            client_secret="clientSecret",
            client_secret_config=SecretReferenceProperty(
                json_key="jsonKey",
                secret_id="secretId"
            ),
            client_secret_source="clientSecretSource"
        ),
        included_oauth2_provider_config=IncludedOauth2ProviderConfigInputProperty(
            client_id="clientId",

            # the properties below are optional
            authorization_endpoint="authorizationEndpoint",
            client_secret="clientSecret",
            client_secret_config=SecretReferenceProperty(
                json_key="jsonKey",
                secret_id="secretId"
            ),
            client_secret_source="clientSecretSource",
            issuer="issuer",
            token_endpoint="tokenEndpoint"
        ),
        linkedin_oauth2_provider_config=LinkedinOauth2ProviderConfigInputProperty(
            client_id="clientId",

            # the properties below are optional
            client_secret="clientSecret",
            client_secret_config=SecretReferenceProperty(
                json_key="jsonKey",
                secret_id="secretId"
            ),
            client_secret_source="clientSecretSource"
        ),
        microsoft_oauth2_provider_config=MicrosoftOauth2ProviderConfigInputProperty(
            client_id="clientId",

            # the properties below are optional
            client_secret="clientSecret",
            client_secret_config=SecretReferenceProperty(
                json_key="jsonKey",
                secret_id="secretId"
            ),
            client_secret_source="clientSecretSource",
            tenant_id="tenantId"
        ),
        salesforce_oauth2_provider_config=SalesforceOauth2ProviderConfigInputProperty(
            client_id="clientId",

            # the properties below are optional
            client_secret="clientSecret",
            client_secret_config=SecretReferenceProperty(
                json_key="jsonKey",
                secret_id="secretId"
            ),
            client_secret_source="clientSecretSource"
        ),
        slack_oauth2_provider_config=SlackOauth2ProviderConfigInputProperty(
            client_id="clientId",

            # the properties below are optional
            client_secret="clientSecret",
            client_secret_config=SecretReferenceProperty(
                json_key="jsonKey",
                secret_id="secretId"
            ),
            client_secret_source="clientSecretSource"
        )
    ),

    # the properties below are optional
    o_auth2_credential_provider_name="oAuth2CredentialProviderName",
    tags={
        "tags_key": "tags"
    }
)
```

Java:

```java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.bedrock.agentcore.alpha.*;

OAuth2CredentialProvider oAuth2CredentialProvider = OAuth2CredentialProvider.Builder.create(this, "MyOAuth2CredentialProvider")
        .credentialProviderVendor("credentialProviderVendor")
        .oauth2ProviderConfigInput(Oauth2ProviderConfigInputProperty.builder()
                .atlassianOauth2ProviderConfig(AtlassianOauth2ProviderConfigInputProperty.builder()
                        .clientId("clientId")

                        // the properties below are optional
                        .clientSecret("clientSecret")
                        .clientSecretConfig(SecretReferenceProperty.builder()
                                .jsonKey("jsonKey")
                                .secretId("secretId")
                                .build())
                        .clientSecretSource("clientSecretSource")
                        .build())
                .customOauth2ProviderConfig(CustomOauth2ProviderConfigInputProperty.builder()
                        .oauthDiscovery(Oauth2DiscoveryProperty.builder()
                                .authorizationServerMetadata(Oauth2AuthorizationServerMetadataProperty.builder()
                                        .authorizationEndpoint("authorizationEndpoint")
                                        .issuer("issuer")
                                        .tokenEndpoint("tokenEndpoint")

                                        // the properties below are optional
                                        .responseTypes(List.of("responseTypes"))
                                        .build())
                                .discoveryUrl("discoveryUrl")
                                .build())

                        // the properties below are optional
                        .certificateConfigurations(List.of(CertificateConfigurationProperty.builder()
                                .s3(S3CertificateConfigurationProperty.builder()
                                        .uri("uri")

                                        // the properties below are optional
                                        .bucketOwnerAccountId("bucketOwnerAccountId")
                                        .build())
                                .secretsManager(SecretsManagerCertificateConfigurationProperty.builder()
                                        .secretArn("secretArn")
                                        .build())
                                .build()))
                        .clientAuthenticationMethod("clientAuthenticationMethod")
                        .clientId("clientId")
                        .clientSecret("clientSecret")
                        .clientSecretConfig(SecretReferenceProperty.builder()
                                .jsonKey("jsonKey")
                                .secretId("secretId")
                                .build())
                        .clientSecretSource("clientSecretSource")
                        .onBehalfOfTokenExchangeConfig(OnBehalfOfTokenExchangeConfigProperty.builder()
                                .grantType("grantType")

                                // the properties below are optional
                                .tokenExchangeGrantTypeConfig(TokenExchangeGrantTypeConfigProperty.builder()
                                        .actorTokenContent("actorTokenContent")

                                        // the properties below are optional
                                        .actorTokenScopes(List.of("actorTokenScopes"))
                                        .build())
                                .build())
                        .privateEndpoint(PrivateEndpointProperty.builder()
                                .managedVpcResource(ManagedVpcResourceProperty.builder()
                                        .endpointIpAddressType("endpointIpAddressType")
                                        .subnetIds(List.of("subnetIds"))
                                        .vpcIdentifier("vpcIdentifier")

                                        // the properties below are optional
                                        .routingDomain("routingDomain")
                                        .securityGroupIds(List.of("securityGroupIds"))
                                        .tags(Map.of(
                                                "tagsKey", "tags"))
                                        .build())
                                .selfManagedLatticeResource(SelfManagedLatticeResourceProperty.builder()
                                        .resourceConfigurationIdentifier("resourceConfigurationIdentifier")
                                        .build())
                                .build())
                        .privateEndpointOverrides(List.of(PrivateEndpointOverrideProperty.builder()
                                .domain("domain")
                                .privateEndpoint(PrivateEndpointProperty.builder()
                                        .managedVpcResource(ManagedVpcResourceProperty.builder()
                                                .endpointIpAddressType("endpointIpAddressType")
                                                .subnetIds(List.of("subnetIds"))
                                                .vpcIdentifier("vpcIdentifier")

                                                // the properties below are optional
                                                .routingDomain("routingDomain")
                                                .securityGroupIds(List.of("securityGroupIds"))
                                                .tags(Map.of(
                                                        "tagsKey", "tags"))
                                                .build())
                                        .selfManagedLatticeResource(SelfManagedLatticeResourceProperty.builder()
                                                .resourceConfigurationIdentifier("resourceConfigurationIdentifier")
                                                .build())
                                        .build())
                                .build()))
                        .privateKeyJwtConfig(PrivateKeyJwtConfigProperty.builder()
                                .additionalHeaderClaims(Map.of(
                                        "additionalHeaderClaimsKey", "additionalHeaderClaims"))
                                .additionalPayloadClaims(Map.of(
                                        "additionalPayloadClaimsKey", "additionalPayloadClaims"))
                                .privateKeySource(PrivateKeySourceProperty.builder()
                                        .kmsKeySource(KmsKeySourceTypeProperty.builder()
                                                .kmsKeyArn("kmsKeyArn")
                                                .build())
                                        .build())
                                .signingAlgorithm("signingAlgorithm")
                                .build())
                        .build())
                .githubOauth2ProviderConfig(GithubOauth2ProviderConfigInputProperty.builder()
                        .clientId("clientId")

                        // the properties below are optional
                        .clientSecret("clientSecret")
                        .clientSecretConfig(SecretReferenceProperty.builder()
                                .jsonKey("jsonKey")
                                .secretId("secretId")
                                .build())
                        .clientSecretSource("clientSecretSource")
                        .build())
                .googleOauth2ProviderConfig(GoogleOauth2ProviderConfigInputProperty.builder()
                        .clientId("clientId")

                        // the properties below are optional
                        .clientSecret("clientSecret")
                        .clientSecretConfig(SecretReferenceProperty.builder()
                                .jsonKey("jsonKey")
                                .secretId("secretId")
                                .build())
                        .clientSecretSource("clientSecretSource")
                        .build())
                .includedOauth2ProviderConfig(IncludedOauth2ProviderConfigInputProperty.builder()
                        .clientId("clientId")

                        // the properties below are optional
                        .authorizationEndpoint("authorizationEndpoint")
                        .clientSecret("clientSecret")
                        .clientSecretConfig(SecretReferenceProperty.builder()
                                .jsonKey("jsonKey")
                                .secretId("secretId")
                                .build())
                        .clientSecretSource("clientSecretSource")
                        .issuer("issuer")
                        .tokenEndpoint("tokenEndpoint")
                        .build())
                .linkedinOauth2ProviderConfig(LinkedinOauth2ProviderConfigInputProperty.builder()
                        .clientId("clientId")

                        // the properties below are optional
                        .clientSecret("clientSecret")
                        .clientSecretConfig(SecretReferenceProperty.builder()
                                .jsonKey("jsonKey")
                                .secretId("secretId")
                                .build())
                        .clientSecretSource("clientSecretSource")
                        .build())
                .microsoftOauth2ProviderConfig(MicrosoftOauth2ProviderConfigInputProperty.builder()
                        .clientId("clientId")

                        // the properties below are optional
                        .clientSecret("clientSecret")
                        .clientSecretConfig(SecretReferenceProperty.builder()
                                .jsonKey("jsonKey")
                                .secretId("secretId")
                                .build())
                        .clientSecretSource("clientSecretSource")
                        .tenantId("tenantId")
                        .build())
                .salesforceOauth2ProviderConfig(SalesforceOauth2ProviderConfigInputProperty.builder()
                        .clientId("clientId")

                        // the properties below are optional
                        .clientSecret("clientSecret")
                        .clientSecretConfig(SecretReferenceProperty.builder()
                                .jsonKey("jsonKey")
                                .secretId("secretId")
                                .build())
                        .clientSecretSource("clientSecretSource")
                        .build())
                .slackOauth2ProviderConfig(SlackOauth2ProviderConfigInputProperty.builder()
                        .clientId("clientId")

                        // the properties below are optional
                        .clientSecret("clientSecret")
                        .clientSecretConfig(SecretReferenceProperty.builder()
                                .jsonKey("jsonKey")
                                .secretId("secretId")
                                .build())
                        .clientSecretSource("clientSecretSource")
                        .build())
                .build())

        // the properties below are optional
        .oAuth2CredentialProviderName("oAuth2CredentialProviderName")
        .tags(Map.of(
                "tagsKey", "tags"))
        .build();
```

C# / .NET:

```csharp
// Install: dotnet add package Amazon.CDK.AWS.Bedrock.Agentcore.Alpha
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Bedrock.Agentcore.Alpha;

var oAuth2CredentialProvider = new OAuth2CredentialProvider(this, "MyOAuth2CredentialProvider", new OAuth2CredentialProviderProps {
    CredentialProviderVendor = "credentialProviderVendor",
    Oauth2ProviderConfigInput = new Oauth2ProviderConfigInputProperty {
        AtlassianOauth2ProviderConfig = new AtlassianOauth2ProviderConfigInputProperty {
            ClientId = "clientId",

            // the properties below are optional
            ClientSecret = "clientSecret",
            ClientSecretConfig = new SecretReferenceProperty {
                JsonKey = "jsonKey",
                SecretId = "secretId"
            },
            ClientSecretSource = "clientSecretSource"
        },
        CustomOauth2ProviderConfig = new CustomOauth2ProviderConfigInputProperty {
            OauthDiscovery = new Oauth2DiscoveryProperty {
                AuthorizationServerMetadata = new Oauth2AuthorizationServerMetadataProperty {
                    AuthorizationEndpoint = "authorizationEndpoint",
                    Issuer = "issuer",
                    TokenEndpoint = "tokenEndpoint",

                    // the properties below are optional
                    ResponseTypes = new [] { "responseTypes" }
                },
                DiscoveryUrl = "discoveryUrl"
            },

            // the properties below are optional
            CertificateConfigurations = new [] { new CertificateConfigurationProperty {
                S3 = new S3CertificateConfigurationProperty {
                    Uri = "uri",

                    // the properties below are optional
                    BucketOwnerAccountId = "bucketOwnerAccountId"
                },
                SecretsManager = new SecretsManagerCertificateConfigurationProperty {
                    SecretArn = "secretArn"
                }
            } },
            ClientAuthenticationMethod = "clientAuthenticationMethod",
            ClientId = "clientId",
            ClientSecret = "clientSecret",
            ClientSecretConfig = new SecretReferenceProperty {
                JsonKey = "jsonKey",
                SecretId = "secretId"
            },
            ClientSecretSource = "clientSecretSource",
            OnBehalfOfTokenExchangeConfig = new OnBehalfOfTokenExchangeConfigProperty {
                GrantType = "grantType",

                // the properties below are optional
                TokenExchangeGrantTypeConfig = new TokenExchangeGrantTypeConfigProperty {
                    ActorTokenContent = "actorTokenContent",

                    // the properties below are optional
                    ActorTokenScopes = new [] { "actorTokenScopes" }
                }
            },
            PrivateEndpoint = new PrivateEndpointProperty {
                ManagedVpcResource = new ManagedVpcResourceProperty {
                    EndpointIpAddressType = "endpointIpAddressType",
                    SubnetIds = new [] { "subnetIds" },
                    VpcIdentifier = "vpcIdentifier",

                    // the properties below are optional
                    RoutingDomain = "routingDomain",
                    SecurityGroupIds = new [] { "securityGroupIds" },
                    Tags = new Dictionary<string, string> {
                        { "tagsKey", "tags" }
                    }
                },
                SelfManagedLatticeResource = new SelfManagedLatticeResourceProperty {
                    ResourceConfigurationIdentifier = "resourceConfigurationIdentifier"
                }
            },
            PrivateEndpointOverrides = new [] { new PrivateEndpointOverrideProperty {
                Domain = "domain",
                PrivateEndpoint = new PrivateEndpointProperty {
                    ManagedVpcResource = new ManagedVpcResourceProperty {
                        EndpointIpAddressType = "endpointIpAddressType",
                        SubnetIds = new [] { "subnetIds" },
                        VpcIdentifier = "vpcIdentifier",

                        // the properties below are optional
                        RoutingDomain = "routingDomain",
                        SecurityGroupIds = new [] { "securityGroupIds" },
                        Tags = new Dictionary<string, string> {
                            { "tagsKey", "tags" }
                        }
                    },
                    SelfManagedLatticeResource = new SelfManagedLatticeResourceProperty {
                        ResourceConfigurationIdentifier = "resourceConfigurationIdentifier"
                    }
                }
            } },
            PrivateKeyJwtConfig = new PrivateKeyJwtConfigProperty {
                AdditionalHeaderClaims = new Dictionary<string, string> {
                    { "additionalHeaderClaimsKey", "additionalHeaderClaims" }
                },
                AdditionalPayloadClaims = new Dictionary<string, string> {
                    { "additionalPayloadClaimsKey", "additionalPayloadClaims" }
                },
                PrivateKeySource = new PrivateKeySourceProperty {
                    KmsKeySource = new KmsKeySourceTypeProperty {
                        KmsKeyArn = "kmsKeyArn"
                    }
                },
                SigningAlgorithm = "signingAlgorithm"
            }
        },
        GithubOauth2ProviderConfig = new GithubOauth2ProviderConfigInputProperty {
            ClientId = "clientId",

            // the properties below are optional
            ClientSecret = "clientSecret",
            ClientSecretConfig = new SecretReferenceProperty {
                JsonKey = "jsonKey",
                SecretId = "secretId"
            },
            ClientSecretSource = "clientSecretSource"
        },
        GoogleOauth2ProviderConfig = new GoogleOauth2ProviderConfigInputProperty {
            ClientId = "clientId",

            // the properties below are optional
            ClientSecret = "clientSecret",
            ClientSecretConfig = new SecretReferenceProperty {
                JsonKey = "jsonKey",
                SecretId = "secretId"
            },
            ClientSecretSource = "clientSecretSource"
        },
        IncludedOauth2ProviderConfig = new IncludedOauth2ProviderConfigInputProperty {
            ClientId = "clientId",

            // the properties below are optional
            AuthorizationEndpoint = "authorizationEndpoint",
            ClientSecret = "clientSecret",
            ClientSecretConfig = new SecretReferenceProperty {
                JsonKey = "jsonKey",
                SecretId = "secretId"
            },
            ClientSecretSource = "clientSecretSource",
            Issuer = "issuer",
            TokenEndpoint = "tokenEndpoint"
        },
        LinkedinOauth2ProviderConfig = new LinkedinOauth2ProviderConfigInputProperty {
            ClientId = "clientId",

            // the properties below are optional
            ClientSecret = "clientSecret",
            ClientSecretConfig = new SecretReferenceProperty {
                JsonKey = "jsonKey",
                SecretId = "secretId"
            },
            ClientSecretSource = "clientSecretSource"
        },
        MicrosoftOauth2ProviderConfig = new MicrosoftOauth2ProviderConfigInputProperty {
            ClientId = "clientId",

            // the properties below are optional
            ClientSecret = "clientSecret",
            ClientSecretConfig = new SecretReferenceProperty {
                JsonKey = "jsonKey",
                SecretId = "secretId"
            },
            ClientSecretSource = "clientSecretSource",
            TenantId = "tenantId"
        },
        SalesforceOauth2ProviderConfig = new SalesforceOauth2ProviderConfigInputProperty {
            ClientId = "clientId",

            // the properties below are optional
            ClientSecret = "clientSecret",
            ClientSecretConfig = new SecretReferenceProperty {
                JsonKey = "jsonKey",
                SecretId = "secretId"
            },
            ClientSecretSource = "clientSecretSource"
        },
        SlackOauth2ProviderConfig = new SlackOauth2ProviderConfigInputProperty {
            ClientId = "clientId",

            // the properties below are optional
            ClientSecret = "clientSecret",
            ClientSecretConfig = new SecretReferenceProperty {
                JsonKey = "jsonKey",
                SecretId = "secretId"
            },
            ClientSecretSource = "clientSecretSource"
        }
    },

    // the properties below are optional
    OAuth2CredentialProviderName = "oAuth2CredentialProviderName",
    Tags = new Dictionary<string, string> {
        { "tagsKey", "tags" }
    }
});
```

Golang:

```go
// Install: go get github.com/aws/aws-cdk-go/awsbedrockagentcorealpha/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import bedrock_agentcore_alpha "github.com/aws/aws-cdk-go/awsbedrockagentcorealpha"

oAuth2CredentialProvider := bedrock_agentcore_alpha.NewOAuth2CredentialProvider(this, jsii.String("MyOAuth2CredentialProvider"), &OAuth2CredentialProviderProps{
	CredentialProviderVendor: jsii.String("credentialProviderVendor"),
	Oauth2ProviderConfigInput: &Oauth2ProviderConfigInputProperty{
		AtlassianOauth2ProviderConfig: &AtlassianOauth2ProviderConfigInputProperty{
			ClientId: jsii.String("clientId"),

			// the properties below are optional
			ClientSecret: jsii.String("clientSecret"),
			ClientSecretConfig: &SecretReferenceProperty{
				JsonKey: jsii.String("jsonKey"),
				SecretId: jsii.String("secretId"),
			},
			ClientSecretSource: jsii.String("clientSecretSource"),
		},
		CustomOauth2ProviderConfig: &CustomOauth2ProviderConfigInputProperty{
			OauthDiscovery: &Oauth2DiscoveryProperty{
				AuthorizationServerMetadata: &Oauth2AuthorizationServerMetadataProperty{
					AuthorizationEndpoint: jsii.String("authorizationEndpoint"),
					Issuer: jsii.String("issuer"),
					TokenEndpoint: jsii.String("tokenEndpoint"),

					// the properties below are optional
					ResponseTypes: []*string{
						jsii.String("responseTypes"),
					},
				},
				DiscoveryUrl: jsii.String("discoveryUrl"),
			},

			// the properties below are optional
			CertificateConfigurations: []interface{}{
				&CertificateConfigurationProperty{
					S3: &S3CertificateConfigurationProperty{
						Uri: jsii.String("uri"),

						// the properties below are optional
						BucketOwnerAccountId: jsii.String("bucketOwnerAccountId"),
					},
					SecretsManager: &SecretsManagerCertificateConfigurationProperty{
						SecretArn: jsii.String("secretArn"),
					},
				},
			},
			ClientAuthenticationMethod: jsii.String("clientAuthenticationMethod"),
			ClientId: jsii.String("clientId"),
			ClientSecret: jsii.String("clientSecret"),
			ClientSecretConfig: &SecretReferenceProperty{
				JsonKey: jsii.String("jsonKey"),
				SecretId: jsii.String("secretId"),
			},
			ClientSecretSource: jsii.String("clientSecretSource"),
			OnBehalfOfTokenExchangeConfig: &OnBehalfOfTokenExchangeConfigProperty{
				GrantType: jsii.String("grantType"),

				// the properties below are optional
				TokenExchangeGrantTypeConfig: &TokenExchangeGrantTypeConfigProperty{
					ActorTokenContent: jsii.String("actorTokenContent"),

					// the properties below are optional
					ActorTokenScopes: []*string{
						jsii.String("actorTokenScopes"),
					},
				},
			},
			PrivateEndpoint: &PrivateEndpointProperty{
				ManagedVpcResource: &ManagedVpcResourceProperty{
					EndpointIpAddressType: jsii.String("endpointIpAddressType"),
					SubnetIds: []*string{
						jsii.String("subnetIds"),
					},
					VpcIdentifier: jsii.String("vpcIdentifier"),

					// the properties below are optional
					RoutingDomain: jsii.String("routingDomain"),
					SecurityGroupIds: []*string{
						jsii.String("securityGroupIds"),
					},
					Tags: map[string]*string{
						"tagsKey": jsii.String("tags"),
					},
				},
				SelfManagedLatticeResource: &SelfManagedLatticeResourceProperty{
					ResourceConfigurationIdentifier: jsii.String("resourceConfigurationIdentifier"),
				},
			},
			PrivateEndpointOverrides: []interface{}{
				&PrivateEndpointOverrideProperty{
					Domain: jsii.String("domain"),
					PrivateEndpoint: &PrivateEndpointProperty{
						ManagedVpcResource: &ManagedVpcResourceProperty{
							EndpointIpAddressType: jsii.String("endpointIpAddressType"),
							SubnetIds: []*string{
								jsii.String("subnetIds"),
							},
							VpcIdentifier: jsii.String("vpcIdentifier"),

							// the properties below are optional
							RoutingDomain: jsii.String("routingDomain"),
							SecurityGroupIds: []*string{
								jsii.String("securityGroupIds"),
							},
							Tags: map[string]*string{
								"tagsKey": jsii.String("tags"),
							},
						},
						SelfManagedLatticeResource: &SelfManagedLatticeResourceProperty{
							ResourceConfigurationIdentifier: jsii.String("resourceConfigurationIdentifier"),
						},
					},
				},
			},
			PrivateKeyJwtConfig: &PrivateKeyJwtConfigProperty{
				AdditionalHeaderClaims: map[string]*string{
					"additionalHeaderClaimsKey": jsii.String("additionalHeaderClaims"),
				},
				AdditionalPayloadClaims: map[string]*string{
					"additionalPayloadClaimsKey": jsii.String("additionalPayloadClaims"),
				},
				PrivateKeySource: &PrivateKeySourceProperty{
					KmsKeySource: &KmsKeySourceTypeProperty{
						KmsKeyArn: jsii.String("kmsKeyArn"),
					},
				},
				SigningAlgorithm: jsii.String("signingAlgorithm"),
			},
		},
		GithubOauth2ProviderConfig: &GithubOauth2ProviderConfigInputProperty{
			ClientId: jsii.String("clientId"),

			// the properties below are optional
			ClientSecret: jsii.String("clientSecret"),
			ClientSecretConfig: &SecretReferenceProperty{
				JsonKey: jsii.String("jsonKey"),
				SecretId: jsii.String("secretId"),
			},
			ClientSecretSource: jsii.String("clientSecretSource"),
		},
		GoogleOauth2ProviderConfig: &GoogleOauth2ProviderConfigInputProperty{
			ClientId: jsii.String("clientId"),

			// the properties below are optional
			ClientSecret: jsii.String("clientSecret"),
			ClientSecretConfig: &SecretReferenceProperty{
				JsonKey: jsii.String("jsonKey"),
				SecretId: jsii.String("secretId"),
			},
			ClientSecretSource: jsii.String("clientSecretSource"),
		},
		IncludedOauth2ProviderConfig: &IncludedOauth2ProviderConfigInputProperty{
			ClientId: jsii.String("clientId"),

			// the properties below are optional
			AuthorizationEndpoint: jsii.String("authorizationEndpoint"),
			ClientSecret: jsii.String("clientSecret"),
			ClientSecretConfig: &SecretReferenceProperty{
				JsonKey: jsii.String("jsonKey"),
				SecretId: jsii.String("secretId"),
			},
			ClientSecretSource: jsii.String("clientSecretSource"),
			Issuer: jsii.String("issuer"),
			TokenEndpoint: jsii.String("tokenEndpoint"),
		},
		LinkedinOauth2ProviderConfig: &LinkedinOauth2ProviderConfigInputProperty{
			ClientId: jsii.String("clientId"),

			// the properties below are optional
			ClientSecret: jsii.String("clientSecret"),
			ClientSecretConfig: &SecretReferenceProperty{
				JsonKey: jsii.String("jsonKey"),
				SecretId: jsii.String("secretId"),
			},
			ClientSecretSource: jsii.String("clientSecretSource"),
		},
		MicrosoftOauth2ProviderConfig: &MicrosoftOauth2ProviderConfigInputProperty{
			ClientId: jsii.String("clientId"),

			// the properties below are optional
			ClientSecret: jsii.String("clientSecret"),
			ClientSecretConfig: &SecretReferenceProperty{
				JsonKey: jsii.String("jsonKey"),
				SecretId: jsii.String("secretId"),
			},
			ClientSecretSource: jsii.String("clientSecretSource"),
			TenantId: jsii.String("tenantId"),
		},
		SalesforceOauth2ProviderConfig: &SalesforceOauth2ProviderConfigInputProperty{
			ClientId: jsii.String("clientId"),

			// the properties below are optional
			ClientSecret: jsii.String("clientSecret"),
			ClientSecretConfig: &SecretReferenceProperty{
				JsonKey: jsii.String("jsonKey"),
				SecretId: jsii.String("secretId"),
			},
			ClientSecretSource: jsii.String("clientSecretSource"),
		},
		SlackOauth2ProviderConfig: &SlackOauth2ProviderConfigInputProperty{
			ClientId: jsii.String("clientId"),

			// the properties below are optional
			ClientSecret: jsii.String("clientSecret"),
			ClientSecretConfig: &SecretReferenceProperty{
				JsonKey: jsii.String("jsonKey"),
				SecretId: jsii.String("secretId"),
			},
			ClientSecretSource: jsii.String("clientSecretSource"),
		},
	},

	// the properties below are optional
	OAuth2CredentialProviderName: jsii.String("oAuth2CredentialProviderName"),
	Tags: map[string]*string{
		"tagsKey": jsii.String("tags"),
	},
})
```

## Initializer

TypeScript:

```ts
new OAuth2CredentialProvider(scope: Construct, id: string, props: OAuth2CredentialProviderProps)
```

Python:

```python
OAuth2CredentialProvider(scope: Construct, id: str, props: OAuth2CredentialProviderProps)
```

Java:

```java
new OAuth2CredentialProvider(Construct scope, String id, OAuth2CredentialProviderProps props)
```

C# / .NET:

```csharp
new OAuth2CredentialProvider(Construct scope, string id, OAuth2CredentialProviderProps props)
```

Golang:

```go
NewOAuth2CredentialProvider(Scope Construct, Id *string, Props OAuth2CredentialProviderProps)
```

## Construct Props

- `credentialProviderVendor`: string (required) — OAuth2 vendor string for CloudFormation `CredentialProviderVendor`.

- `oAuth2CredentialProviderName`: string — Name of the credential provider.

  **Default:** a name generated by CDK

- `oauth2ProviderConfigInput`: [CfnOAuth2CredentialProvider.Oauth2ProviderConfigInputProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_bedrockagentcore.CfnOAuth2CredentialProvider.Oauth2ProviderConfigInputProperty.html) (required) — OAuth2 provider configuration passed through to `Oauth2ProviderConfigInput`.

- `tags`: { [key: string]: string } — Tags for this credential provider.

  **Default:** no tags

## Properties

- `callbackUrl`: string — Callback URL for the OAuth2 authorization flow.

- `clientSecretArn`: string — The ARN of the Secrets Manager secret for the OAuth2 client credentials.

  May be undefined for resources imported without this attribute.

- `createdTime`: string — Timestamp when the credential provider was created.

- `credentialProviderArn`: string — The ARN of this credential provider.

- `credentialProviderVendor`: string — OAuth2 vendor string passed to CloudFormation.

- `env`: [ResourceEnvironment](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.interfaces.ResourceEnvironment.html) — The environment this resource belongs to.

  For resources that are created and managed in a Stack (those created by
  creating new class instances like `new Role()`, `new Bucket()`, etc.), this
  is always the same as the environment of the stack they belong to.

  For referenced resources (those obtained from referencing methods like
  `Role.fromRoleArn()`, `Bucket.fromBucketName()`, etc.), they might be
  different than the stack they were imported into.

- `grantPrincipal`: [IPrincipal](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_iam.IPrincipal.html) — The principal to grant permissions to.

- `lastUpdatedTime`: string — Timestamp when the credential provider was last updated.

- `node`: [Node](https://docs.aws.amazon.com/cdk/api/v2/docs/constructs.Node.html) — The tree node.

- `oAuth2CredentialProviderName`: string — The name of this OAuth2 credential provider.

- `oAuth2CredentialProviderRef`: [OAuth2CredentialProviderReference](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.interfaces.aws_bedrockagentcore.OAuth2CredentialProviderReference.html) — A reference to a OAuth2CredentialProvider resource.

- `PROPERTY_INJECTION_ID`: string (static) — Uniquely identifies this class.

- `stack`: [Stack](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.Stack.html) — The stack in which this resource is defined.

## Methods

- `applyCrossStackReferenceStrength(strength: ReferenceStrength): void` — Override the cross-stack reference strength for this resource.

  When set, any cross-stack reference to this resource will use the specified
  mechanism instead of the global default determined by the
  `@aws-cdk/core:defaultCrossStackReferences` context key. This is useful for
  selectively weakening specific references to avoid the "deadly embrace" problem
  without changing the app-wide default.

  **Parameters**

  - `strength` — - The reference strength to use for this resource.

- `applyRemovalPolicy(policy: RemovalPolicy): void` — Apply the given removal policy to this resource.

  The Removal Policy controls what happens to this resource when it stops
  being managed by CloudFormation, either because you've removed it from the
  CDK application or because you've made a change that requires the resource
  to be replaced.

  The resource can be deleted (`RemovalPolicy.DESTROY`), or left in your AWS
  account for data recovery and cleanup later (`RemovalPolicy.RETAIN`).

- `bindForGatewayOAuthTarget(scopes: string[], customParameters?: { [key: string]: string }): GatewayOAuth2IdentityBinding` — ARNs and OAuth scopes for {@link GatewayCredentialProvider.fromOauthIdentity } / {@link GatewayCredentialProvider.fromOauthIdentityArn }.

  **Parameters**

  - `scopes` — OAuth scopes the gateway target should request (see vendor documentation).
  - `customParameters` — Optional custom parameters for the OAuth flow.

- `fromOAuth2CredentialProviderAttributes(scope: Construct, id: string, attrs: OAuth2CredentialProviderAttributes): IOAuth2CredentialProvider` (static) — Import an existing OAuth2 credential provider.

- `grant(grantee: IGrantable, ...actions: string[]): Grant` — [disable-awslint:no-grants].

- `grantAdmin(grantee: IGrantable): Grant` — [disable-awslint:no-grants].

- `grantFullAccess(grantee: IGrantable): Grant` — [disable-awslint:no-grants].

- `grantRead(grantee: IGrantable): Grant` — [disable-awslint:no-grants].

- `grantUse(grantee: IGrantable): Grant` — [disable-awslint:no-grants].

- `isConstruct(x: any): boolean` (static) — Checks if `x` is a construct.

  Use this method instead of `instanceof` to properly detect `Construct`
  instances, even when the construct library is symlinked.

  Explanation: in JavaScript, multiple copies of the `constructs` library on
  disk are seen as independent, completely different libraries. As a
  consequence, the class `Construct` in each copy of the `constructs` library
  is seen as a different class, and an instance of one class will not test as
  `instanceof` the other class. `npm install` will not create installations
  like this, but users may manually symlink construct libraries together or
  use a monorepo tool: in those cases, multiple copies of the `constructs`
  library can be accidentally installed, and `instanceof` will behave
  unpredictably. It is safest to avoid using `instanceof`, and using
  this type-testing method instead.

  **Parameters**

  - `x` — Any object.

  **Returns:** true if `x` is an object created from a class which extends `Construct`.

- `isOwnedResource(construct: IConstruct): boolean` (static) — Returns true if the construct was created by CDK, and false otherwise.

- `isResource(construct: IConstruct): boolean` (static) — Check whether the given construct is a Resource.

- `toString(): string` — Returns a string representation of this construct.

- `usingAtlassian(scope: Construct, id: string, props: AtlassianOAuth2CredentialProviderProps): OAuth2CredentialProvider // chainable` (static) — Create a credential provider for Atlassian OAuth2.

- `usingAuth0(scope: Construct, id: string, props: IncludedOauth2TenantCredentialProviderProps): OAuth2CredentialProvider // chainable` (static) — Create a credential provider for Auth0 OAuth2 (`IncludedOauth2ProviderConfig`).

- `usingCognito(scope: Construct, id: string, props: IncludedOauth2TenantCredentialProviderProps): OAuth2CredentialProvider // chainable` (static) — Create a credential provider for Amazon Cognito OAuth2 (`IncludedOauth2ProviderConfig`).

- `usingCustom(scope: Construct, id: string, props: CustomOAuth2CredentialProviderProps): OAuth2CredentialProvider // chainable` (static) — Create a credential provider for a custom OAuth2 authorization server (discovery document or metadata).

- `usingCyberArk(scope: Construct, id: string, props: IncludedOauth2TenantCredentialProviderProps): OAuth2CredentialProvider // chainable` (static) — Create a credential provider for CyberArk OAuth2 (`IncludedOauth2ProviderConfig`).

- `usingDropbox(scope: Construct, id: string, props: DropboxOAuth2CredentialProviderProps): OAuth2CredentialProvider // chainable` (static) — Create a credential provider for Dropbox OAuth2 (`IncludedOauth2ProviderConfig`).

- `usingFacebook(scope: Construct, id: string, props: FacebookOAuth2CredentialProviderProps): OAuth2CredentialProvider // chainable` (static) — Create a credential provider for Facebook OAuth2 (`IncludedOauth2ProviderConfig`).

- `usingFusionAuth(scope: Construct, id: string, props: IncludedOauth2TenantCredentialProviderProps): OAuth2CredentialProvider // chainable` (static) — Create a credential provider for FusionAuth OAuth2 (`IncludedOauth2ProviderConfig`).

- `usingGithub(scope: Construct, id: string, props: GithubOAuth2CredentialProviderProps): OAuth2CredentialProvider // chainable` (static) — Create a credential provider for GitHub OAuth2.

- `usingGoogle(scope: Construct, id: string, props: GoogleOAuth2CredentialProviderProps): OAuth2CredentialProvider // chainable` (static) — Create a credential provider for Google OAuth2.

- `usingHubspot(scope: Construct, id: string, props: HubspotOAuth2CredentialProviderProps): OAuth2CredentialProvider // chainable` (static) — Create a credential provider for HubSpot OAuth2 (`IncludedOauth2ProviderConfig`).

- `usingLinkedin(scope: Construct, id: string, props: LinkedinOAuth2CredentialProviderProps): OAuth2CredentialProvider // chainable` (static) — Create a credential provider for LinkedIn OAuth2.

- `usingMicrosoft(scope: Construct, id: string, props: MicrosoftOAuth2CredentialProviderProps): OAuth2CredentialProvider // chainable` (static) — Create a credential provider for Microsoft (Entra ID) OAuth2.

- `usingNotion(scope: Construct, id: string, props: NotionOAuth2CredentialProviderProps): OAuth2CredentialProvider // chainable` (static) — Create a credential provider for Notion OAuth2 (`IncludedOauth2ProviderConfig`).

- `usingOkta(scope: Construct, id: string, props: IncludedOauth2TenantCredentialProviderProps): OAuth2CredentialProvider // chainable` (static) — Create a credential provider for Okta OAuth2 (`IncludedOauth2ProviderConfig`).

- `usingOneLogin(scope: Construct, id: string, props: IncludedOauth2TenantCredentialProviderProps): OAuth2CredentialProvider // chainable` (static) — Create a credential provider for OneLogin OAuth2 (`IncludedOauth2ProviderConfig`).

- `usingPingOne(scope: Construct, id: string, props: IncludedOauth2TenantCredentialProviderProps): OAuth2CredentialProvider // chainable` (static) — Create a credential provider for PingOne OAuth2 (`IncludedOauth2ProviderConfig`).

- `usingReddit(scope: Construct, id: string, props: RedditOAuth2CredentialProviderProps): OAuth2CredentialProvider // chainable` (static) — Create a credential provider for Reddit OAuth2 (`IncludedOauth2ProviderConfig`).

- `usingSalesforce(scope: Construct, id: string, props: SalesforceOAuth2CredentialProviderProps): OAuth2CredentialProvider // chainable` (static) — Create a credential provider for Salesforce OAuth2.

- `usingSlack(scope: Construct, id: string, props: SlackOAuth2CredentialProviderProps): OAuth2CredentialProvider // chainable` (static) — Create a credential provider for Slack OAuth2.

- `usingSpotify(scope: Construct, id: string, props: SpotifyOAuth2CredentialProviderProps): OAuth2CredentialProvider // chainable` (static) — Create a credential provider for Spotify OAuth2 (`IncludedOauth2ProviderConfig`).

- `usingTwitch(scope: Construct, id: string, props: TwitchOAuth2CredentialProviderProps): OAuth2CredentialProvider // chainable` (static) — Create a credential provider for Twitch OAuth2 (`IncludedOauth2ProviderConfig`).

- `usingX(scope: Construct, id: string, props: XOAuth2CredentialProviderProps): OAuth2CredentialProvider // chainable` (static) — Create a credential provider for X (Twitter) OAuth2 (`IncludedOauth2ProviderConfig`).

- `usingYandex(scope: Construct, id: string, props: YandexOAuth2CredentialProviderProps): OAuth2CredentialProvider // chainable` (static) — Create a credential provider for Yandex OAuth2 (`IncludedOauth2ProviderConfig`).

- `usingZoom(scope: Construct, id: string, props: ZoomOAuth2CredentialProviderProps): OAuth2CredentialProvider // chainable` (static) — Create a credential provider for Zoom OAuth2 (`IncludedOauth2ProviderConfig`).

- `with(...mixins: IMixin[]): IConstruct` — Applies one or more mixins to this construct.

  Mixins are applied in order. The list of constructs is captured at the
  start of the call, so constructs added by a mixin will not be visited.
  Use multiple `with()` calls if subsequent mixins should apply to added
  constructs.
