Skip to content
v2.278.0

Oauth2ProviderConfigInputProperty Struct ​

Input configuration for an OAuth2 provider.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_bedrockagentcore as bedrockagentcore } from 'aws-cdk-lib';
const oauth2ProviderConfigInputProperty: bedrockagentcore.CfnOAuth2CredentialProvider.Oauth2ProviderConfigInputProperty = {
  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',
  },
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_bedrockagentcore as bedrockagentcore

oauth2_provider_config_input_property = bedrockagentcore.CfnOAuth2CredentialProvider.Oauth2ProviderConfigInputProperty(
    atlassian_oauth2_provider_config=bedrockagentcore.CfnOAuth2CredentialProvider.AtlassianOauth2ProviderConfigInputProperty(
        client_id="clientId",

        # the properties below are optional
        client_secret="clientSecret",
        client_secret_config=bedrockagentcore.CfnOAuth2CredentialProvider.SecretReferenceProperty(
            json_key="jsonKey",
            secret_id="secretId"
        ),
        client_secret_source="clientSecretSource"
    ),
    custom_oauth2_provider_config=bedrockagentcore.CfnOAuth2CredentialProvider.CustomOauth2ProviderConfigInputProperty(
        oauth_discovery=bedrockagentcore.CfnOAuth2CredentialProvider.Oauth2DiscoveryProperty(
            authorization_server_metadata=bedrockagentcore.CfnOAuth2CredentialProvider.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=[bedrockagentcore.CfnOAuth2CredentialProvider.CertificateConfigurationProperty(
            s3=bedrockagentcore.CfnOAuth2CredentialProvider.S3CertificateConfigurationProperty(
                uri="uri",

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

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

                # the properties below are optional
                actor_token_scopes=["actorTokenScopes"]
            )
        ),
        private_endpoint=bedrockagentcore.CfnOAuth2CredentialProvider.PrivateEndpointProperty(
            managed_vpc_resource=bedrockagentcore.CfnOAuth2CredentialProvider.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=bedrockagentcore.CfnOAuth2CredentialProvider.SelfManagedLatticeResourceProperty(
                resource_configuration_identifier="resourceConfigurationIdentifier"
            )
        ),
        private_endpoint_overrides=[bedrockagentcore.CfnOAuth2CredentialProvider.PrivateEndpointOverrideProperty(
            domain="domain",
            private_endpoint=bedrockagentcore.CfnOAuth2CredentialProvider.PrivateEndpointProperty(
                managed_vpc_resource=bedrockagentcore.CfnOAuth2CredentialProvider.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=bedrockagentcore.CfnOAuth2CredentialProvider.SelfManagedLatticeResourceProperty(
                    resource_configuration_identifier="resourceConfigurationIdentifier"
                )
            )
        )],
        private_key_jwt_config=bedrockagentcore.CfnOAuth2CredentialProvider.PrivateKeyJwtConfigProperty(
            additional_header_claims={
                "additional_header_claims_key": "additionalHeaderClaims"
            },
            additional_payload_claims={
                "additional_payload_claims_key": "additionalPayloadClaims"
            },
            private_key_source=bedrockagentcore.CfnOAuth2CredentialProvider.PrivateKeySourceProperty(
                kms_key_source=bedrockagentcore.CfnOAuth2CredentialProvider.KmsKeySourceTypeProperty(
                    kms_key_arn="kmsKeyArn"
                )
            ),
            signing_algorithm="signingAlgorithm"
        )
    ),
    github_oauth2_provider_config=bedrockagentcore.CfnOAuth2CredentialProvider.GithubOauth2ProviderConfigInputProperty(
        client_id="clientId",

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

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

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

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

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

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

        # the properties below are optional
        client_secret="clientSecret",
        client_secret_config=bedrockagentcore.CfnOAuth2CredentialProvider.SecretReferenceProperty(
            json_key="jsonKey",
            secret_id="secretId"
        ),
        client_secret_source="clientSecretSource"
    )
)
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.bedrockagentcore.*;

Oauth2ProviderConfigInputProperty oauth2ProviderConfigInputProperty = 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();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.BedrockAgentCore;

var oauth2ProviderConfigInputProperty = 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"
    }
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

oauth2ProviderConfigInputProperty := &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"),
	},
}

Properties ​

atlassianOauth2ProviderConfigoptionalIResolvable | CfnOAuth2CredentialProvider.AtlassianOauth2ProviderConfigInputPropertyatlassian_oauth2_provider_configoptionaltyping.Union[IResolvable, AtlassianOauth2ProviderConfigInputProperty]atlassianOauth2ProviderConfigoptionalIResolvableAtlassianOauth2ProviderConfigoptionalIResolvableAtlassianOauth2ProviderConfigoptionalinterface{} #
Input configuration for an Atlassian OAuth2 provider.
customOauth2ProviderConfigoptionalIResolvable | CfnOAuth2CredentialProvider.CustomOauth2ProviderConfigInputPropertycustom_oauth2_provider_configoptionaltyping.Union[IResolvable, CustomOauth2ProviderConfigInputProperty]customOauth2ProviderConfigoptionalIResolvableCustomOauth2ProviderConfigoptionalIResolvableCustomOauth2ProviderConfigoptionalinterface{} #
Input configuration for a custom OAuth2 provider.
githubOauth2ProviderConfigoptionalIResolvable | CfnOAuth2CredentialProvider.GithubOauth2ProviderConfigInputPropertygithub_oauth2_provider_configoptionaltyping.Union[IResolvable, GithubOauth2ProviderConfigInputProperty]githubOauth2ProviderConfigoptionalIResolvableGithubOauth2ProviderConfigoptionalIResolvableGithubOauth2ProviderConfigoptionalinterface{} #
Input configuration for a GitHub OAuth2 provider.
googleOauth2ProviderConfigoptionalIResolvable | CfnOAuth2CredentialProvider.GoogleOauth2ProviderConfigInputPropertygoogle_oauth2_provider_configoptionaltyping.Union[IResolvable, GoogleOauth2ProviderConfigInputProperty]googleOauth2ProviderConfigoptionalIResolvableGoogleOauth2ProviderConfigoptionalIResolvableGoogleOauth2ProviderConfigoptionalinterface{} #
Input configuration for a Google OAuth2 provider.
includedOauth2ProviderConfigoptionalIResolvable | CfnOAuth2CredentialProvider.IncludedOauth2ProviderConfigInputPropertyincluded_oauth2_provider_configoptionaltyping.Union[IResolvable, IncludedOauth2ProviderConfigInputProperty]includedOauth2ProviderConfigoptionalIResolvableIncludedOauth2ProviderConfigoptionalIResolvableIncludedOauth2ProviderConfigoptionalinterface{} #
Input configuration for a supported non-custom OAuth2 provider.
linkedinOauth2ProviderConfigoptionalIResolvable | CfnOAuth2CredentialProvider.LinkedinOauth2ProviderConfigInputPropertylinkedin_oauth2_provider_configoptionaltyping.Union[IResolvable, LinkedinOauth2ProviderConfigInputProperty]linkedinOauth2ProviderConfigoptionalIResolvableLinkedinOauth2ProviderConfigoptionalIResolvableLinkedinOauth2ProviderConfigoptionalinterface{} #
Input configuration for a LinkedIn OAuth2 provider.
microsoftOauth2ProviderConfigoptionalIResolvable | CfnOAuth2CredentialProvider.MicrosoftOauth2ProviderConfigInputPropertymicrosoft_oauth2_provider_configoptionaltyping.Union[IResolvable, MicrosoftOauth2ProviderConfigInputProperty]microsoftOauth2ProviderConfigoptionalIResolvableMicrosoftOauth2ProviderConfigoptionalIResolvableMicrosoftOauth2ProviderConfigoptionalinterface{} #
Input configuration for a Microsoft OAuth2 provider.
salesforceOauth2ProviderConfigoptionalIResolvable | CfnOAuth2CredentialProvider.SalesforceOauth2ProviderConfigInputPropertysalesforce_oauth2_provider_configoptionaltyping.Union[IResolvable, SalesforceOauth2ProviderConfigInputProperty]salesforceOauth2ProviderConfigoptionalIResolvableSalesforceOauth2ProviderConfigoptionalIResolvableSalesforceOauth2ProviderConfigoptionalinterface{} #
Input configuration for a Salesforce OAuth2 provider.
slackOauth2ProviderConfigoptionalIResolvable | CfnOAuth2CredentialProvider.SlackOauth2ProviderConfigInputPropertyslack_oauth2_provider_configoptionaltyping.Union[IResolvable, SlackOauth2ProviderConfigInputProperty]slackOauth2ProviderConfigoptionalIResolvableSlackOauth2ProviderConfigoptionalIResolvableSlackOauth2ProviderConfigoptionalinterface{} #
Input configuration for a Slack OAuth2 provider.