OAuth2CredentialProvider L2 construct
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 }.
| CloudFormation | AWS::BedrockAgentCore::OAuth2CredentialProvider |
|---|---|
| L1 type | CfnOAuth2CredentialProvider |
| Source | lib/identity/oauth2-credential-provider.ts |
| Type last changed |
Example
// 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',
},
});
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"
}
)
// 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();
// 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" }
}
});
// 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
new OAuth2CredentialProvider(scope: Construct, id: string, props: OAuth2CredentialProviderProps)
OAuth2CredentialProvider(scope: Construct, id: str, props: OAuth2CredentialProviderProps)
new OAuth2CredentialProvider(Construct scope, String id, OAuth2CredentialProviderProps props)
new OAuth2CredentialProvider(Construct scope, string id, OAuth2CredentialProviderProps props)
NewOAuth2CredentialProvider(Scope Construct, Id *string, Props OAuth2CredentialProviderProps)
Construct Props
credentialProviderVendorstringcredential_provider_vendorstrcredentialProviderVendorStringCredentialProviderVendorstringCredentialProviderVendor*string required #oAuth2CredentialProviderNameoptionalstringo_auth2_credential_provider_nameoptionalstroAuth2CredentialProviderNameoptionalStringOAuth2CredentialProviderNameoptionalstringOAuth2CredentialProviderNameoptional*string #Default: a name generated by CDK
oauth2ProviderConfigInputCfnOAuth2CredentialProvider.oauth2_provider_config_inputOauth2ProviderConfigInputPropertyoauth2ProviderConfigInputOauth2ProviderConfigInputPropertyOauth2ProviderConfigInputOauth2ProviderConfigInputPropertyOauth2ProviderConfigInputOauth2ProviderConfigInputProperty required #tagsoptional{ [key: string]: string }tagsoptionaltyping.Mapping[str, str]tagsoptionalMap<String, String>TagsoptionalIDictionary<string, string>Tagsoptional*map[string]*string #Default: no tags
Properties
callbackUrlmay be undefinedstringcallback_urlmay be undefinedstrcallbackUrlmay be undefinedStringCallbackUrlmay be undefinedstringCallbackUrlmay be undefined*string #clientSecretArnmay be undefinedstringclient_secret_arnmay be undefinedstrclientSecretArnmay be undefinedStringClientSecretArnmay be undefinedstringClientSecretArnmay be undefined*string #May be undefined for resources imported without this attribute.
createdTimemay be undefinedstringcreated_timemay be undefinedstrcreatedTimemay be undefinedStringCreatedTimemay be undefinedstringCreatedTimemay be undefined*string #credentialProviderArnstringcredential_provider_arnstrcredentialProviderArnStringCredentialProviderArnstringCredentialProviderArn*string #credentialProviderVendorstringcredential_provider_vendorstrcredentialProviderVendorStringCredentialProviderVendorstringCredentialProviderVendor*string #envResourceEnvironmentenvResourceEnvironmentenvResourceEnvironmentEnvResourceEnvironmentEnvResourceEnvironment #notes
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.
grantPrincipalIPrincipalgrant_principalIPrincipalgrantPrincipalIPrincipalGrantPrincipalIPrincipalGrantPrincipalIPrincipal #lastUpdatedTimemay be undefinedstringlast_updated_timemay be undefinedstrlastUpdatedTimemay be undefinedStringLastUpdatedTimemay be undefinedstringLastUpdatedTimemay be undefined*string #oAuth2CredentialProviderNamestringo_auth2_credential_provider_namestroAuth2CredentialProviderNameStringOAuth2CredentialProviderNamestringOAuth2CredentialProviderName*string #oAuth2CredentialProviderRefOAuth2CredentialProviderReferenceo_auth2_credential_provider_refOAuth2CredentialProviderReferenceoAuth2CredentialProviderRefOAuth2CredentialProviderReferenceOAuth2CredentialProviderRefOAuth2CredentialProviderReferenceOAuth2CredentialProviderRefOAuth2CredentialProviderReference #PROPERTY_INJECTION_IDstringPROPERTY_INJECTION_IDstrPROPERTY_INJECTION_IDStringPROPERTY_INJECTION_IDstringPROPERTY_INJECTION_ID*string static #Methods
applyCrossStackReferenceStrength(strength: ReferenceStrength): voiddef apply_cross_stack_reference_strength(self, strength: ReferenceStrength) -> Nonepublic void applyCrossStackReferenceStrength(ReferenceStrength strength)public void ApplyCrossStackReferenceStrength(ReferenceStrength strength)func ApplyCrossStackReferenceStrength(Strength ReferenceStrength) #notes · 1 parameter
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
strengthstrengthstrengthstrengthStrength— - The reference strength to use for this resource.
applyRemovalPolicy(policy: RemovalPolicy): voiddef apply_removal_policy(self, policy: RemovalPolicy) -> Nonepublic void applyRemovalPolicy(RemovalPolicy policy)public void ApplyRemovalPolicy(RemovalPolicy policy)func ApplyRemovalPolicy(Policy RemovalPolicy) #notes
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 }): GatewayOAuth2IdentityBindingdef bind_for_gateway_o_auth_target(self, scopes: typing.List[str], custom_parameters: typing.Optional[typing.Mapping[str, str]] = None) -> GatewayOAuth2IdentityBindingpublic GatewayOAuth2IdentityBinding bindForGatewayOAuthTarget(List<String> scopes, Map<String, String> customParameters)public GatewayOAuth2IdentityBinding BindForGatewayOAuthTarget(string[] scopes, IDictionary<string, string>? customParameters = null)func BindForGatewayOAuthTarget(Scopes *[]*string, CustomParameters *map[string]*string) GatewayOAuth2IdentityBinding #2 parameters
Parameters
scopesscopesscopesscopesScopes— OAuth scopes the gateway target should request (see vendor documentation).customParameterscustom_parameterscustomParameterscustomParametersCustomParameters— Optional custom parameters for the OAuth flow.
fromOAuth2CredentialProviderAttributes(scope: Construct, id: string, attrs: OAuth2CredentialProviderAttributes): IOAuth2CredentialProvider@staticmethod def from_o_auth2_credential_provider_attributes(scope: Construct, id: str, attrs: OAuth2CredentialProviderAttributes) -> IOAuth2CredentialProviderpublic static IOAuth2CredentialProvider fromOAuth2CredentialProviderAttributes(Construct scope, String id, OAuth2CredentialProviderAttributes attrs)public static IOAuth2CredentialProvider FromOAuth2CredentialProviderAttributes(Construct scope, string id, OAuth2CredentialProviderAttributes attrs)func FromOAuth2CredentialProviderAttributes(Scope Construct, Id *string, Attrs OAuth2CredentialProviderAttributes) IOAuth2CredentialProvider static #grant(grantee: IGrantable, ...actions: string[]): Grantdef grant(self, grantee: IGrantable, actions: str) -> Grantpublic Grant grant(IGrantable grantee, String actions)public Grant Grant(IGrantable grantee, string actions)func Grant(Grantee IGrantable, Actions *string) Grant #grantAdmin(grantee: IGrantable): Grantdef grant_admin(self, grantee: IGrantable) -> Grantpublic Grant grantAdmin(IGrantable grantee)public Grant GrantAdmin(IGrantable grantee)func GrantAdmin(Grantee IGrantable) Grant #grantFullAccess(grantee: IGrantable): Grantdef grant_full_access(self, grantee: IGrantable) -> Grantpublic Grant grantFullAccess(IGrantable grantee)public Grant GrantFullAccess(IGrantable grantee)func GrantFullAccess(Grantee IGrantable) Grant #grantRead(grantee: IGrantable): Grantdef grant_read(self, grantee: IGrantable) -> Grantpublic Grant grantRead(IGrantable grantee)public Grant GrantRead(IGrantable grantee)func GrantRead(Grantee IGrantable) Grant #grantUse(grantee: IGrantable): Grantdef grant_use(self, grantee: IGrantable) -> Grantpublic Grant grantUse(IGrantable grantee)public Grant GrantUse(IGrantable grantee)func GrantUse(Grantee IGrantable) Grant #isConstruct(x: any): boolean@staticmethod def is_construct(x: Any) -> boolpublic static Boolean isConstruct(Object x)public static bool IsConstruct(object x)func IsConstruct(X interface{}) *bool static #notes · 1 parameter · returns
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
xxxxX— Any object.
Returns: true if x is an object created from a class which extends Construct.
isOwnedResource(construct: IConstruct): boolean@staticmethod def is_owned_resource(construct: IConstruct) -> boolpublic static Boolean isOwnedResource(IConstruct construct)public static bool IsOwnedResource(IConstruct construct)func IsOwnedResource(Construct IConstruct) *bool static #isResource(construct: IConstruct): boolean@staticmethod def is_resource(construct: IConstruct) -> boolpublic static Boolean isResource(IConstruct construct)public static bool IsResource(IConstruct construct)func IsResource(Construct IConstruct) *bool static #toString(): stringdef to_string(self, ) -> strpublic String toString()public string ToString()func ToString() *string #usingAtlassian(scope: Construct, id: string, props: AtlassianOAuth2CredentialProviderProps): OAuth2CredentialProvider // chainable@staticmethod def using_atlassian(scope: Construct, id: str, props: AtlassianOAuth2CredentialProviderProps) -> OAuth2CredentialProviderpublic static OAuth2CredentialProvider usingAtlassian(Construct scope, String id, AtlassianOAuth2CredentialProviderProps props)public static OAuth2CredentialProvider UsingAtlassian(Construct scope, string id, AtlassianOAuth2CredentialProviderProps props)func UsingAtlassian(Scope Construct, Id *string, Props AtlassianOAuth2CredentialProviderProps) OAuth2CredentialProvider static #usingAuth0(scope: Construct, id: string, props: IncludedOauth2TenantCredentialProviderProps): OAuth2CredentialProvider // chainable@staticmethod def using_auth0(scope: Construct, id: str, props: IncludedOauth2TenantCredentialProviderProps) -> OAuth2CredentialProviderpublic static OAuth2CredentialProvider usingAuth0(Construct scope, String id, IncludedOauth2TenantCredentialProviderProps props)public static OAuth2CredentialProvider UsingAuth0(Construct scope, string id, IncludedOauth2TenantCredentialProviderProps props)func UsingAuth0(Scope Construct, Id *string, Props IncludedOauth2TenantCredentialProviderProps) OAuth2CredentialProvider static #usingCognito(scope: Construct, id: string, props: IncludedOauth2TenantCredentialProviderProps): OAuth2CredentialProvider // chainable@staticmethod def using_cognito(scope: Construct, id: str, props: IncludedOauth2TenantCredentialProviderProps) -> OAuth2CredentialProviderpublic static OAuth2CredentialProvider usingCognito(Construct scope, String id, IncludedOauth2TenantCredentialProviderProps props)public static OAuth2CredentialProvider UsingCognito(Construct scope, string id, IncludedOauth2TenantCredentialProviderProps props)func UsingCognito(Scope Construct, Id *string, Props IncludedOauth2TenantCredentialProviderProps) OAuth2CredentialProvider static #usingCustom(scope: Construct, id: string, props: CustomOAuth2CredentialProviderProps): OAuth2CredentialProvider // chainable@staticmethod def using_custom(scope: Construct, id: str, props: CustomOAuth2CredentialProviderProps) -> OAuth2CredentialProviderpublic static OAuth2CredentialProvider usingCustom(Construct scope, String id, CustomOAuth2CredentialProviderProps props)public static OAuth2CredentialProvider UsingCustom(Construct scope, string id, CustomOAuth2CredentialProviderProps props)func UsingCustom(Scope Construct, Id *string, Props CustomOAuth2CredentialProviderProps) OAuth2CredentialProvider static #usingCyberArk(scope: Construct, id: string, props: IncludedOauth2TenantCredentialProviderProps): OAuth2CredentialProvider // chainable@staticmethod def using_cyber_ark(scope: Construct, id: str, props: IncludedOauth2TenantCredentialProviderProps) -> OAuth2CredentialProviderpublic static OAuth2CredentialProvider usingCyberArk(Construct scope, String id, IncludedOauth2TenantCredentialProviderProps props)public static OAuth2CredentialProvider UsingCyberArk(Construct scope, string id, IncludedOauth2TenantCredentialProviderProps props)func UsingCyberArk(Scope Construct, Id *string, Props IncludedOauth2TenantCredentialProviderProps) OAuth2CredentialProvider static #usingDropbox(scope: Construct, id: string, props: DropboxOAuth2CredentialProviderProps): OAuth2CredentialProvider // chainable@staticmethod def using_dropbox(scope: Construct, id: str, props: DropboxOAuth2CredentialProviderProps) -> OAuth2CredentialProviderpublic static OAuth2CredentialProvider usingDropbox(Construct scope, String id, DropboxOAuth2CredentialProviderProps props)public static OAuth2CredentialProvider UsingDropbox(Construct scope, string id, DropboxOAuth2CredentialProviderProps props)func UsingDropbox(Scope Construct, Id *string, Props DropboxOAuth2CredentialProviderProps) OAuth2CredentialProvider static #usingFacebook(scope: Construct, id: string, props: FacebookOAuth2CredentialProviderProps): OAuth2CredentialProvider // chainable@staticmethod def using_facebook(scope: Construct, id: str, props: FacebookOAuth2CredentialProviderProps) -> OAuth2CredentialProviderpublic static OAuth2CredentialProvider usingFacebook(Construct scope, String id, FacebookOAuth2CredentialProviderProps props)public static OAuth2CredentialProvider UsingFacebook(Construct scope, string id, FacebookOAuth2CredentialProviderProps props)func UsingFacebook(Scope Construct, Id *string, Props FacebookOAuth2CredentialProviderProps) OAuth2CredentialProvider static #usingFusionAuth(scope: Construct, id: string, props: IncludedOauth2TenantCredentialProviderProps): OAuth2CredentialProvider // chainable@staticmethod def using_fusion_auth(scope: Construct, id: str, props: IncludedOauth2TenantCredentialProviderProps) -> OAuth2CredentialProviderpublic static OAuth2CredentialProvider usingFusionAuth(Construct scope, String id, IncludedOauth2TenantCredentialProviderProps props)public static OAuth2CredentialProvider UsingFusionAuth(Construct scope, string id, IncludedOauth2TenantCredentialProviderProps props)func UsingFusionAuth(Scope Construct, Id *string, Props IncludedOauth2TenantCredentialProviderProps) OAuth2CredentialProvider static #usingGithub(scope: Construct, id: string, props: GithubOAuth2CredentialProviderProps): OAuth2CredentialProvider // chainable@staticmethod def using_github(scope: Construct, id: str, props: GithubOAuth2CredentialProviderProps) -> OAuth2CredentialProviderpublic static OAuth2CredentialProvider usingGithub(Construct scope, String id, GithubOAuth2CredentialProviderProps props)public static OAuth2CredentialProvider UsingGithub(Construct scope, string id, GithubOAuth2CredentialProviderProps props)func UsingGithub(Scope Construct, Id *string, Props GithubOAuth2CredentialProviderProps) OAuth2CredentialProvider static #usingGoogle(scope: Construct, id: string, props: GoogleOAuth2CredentialProviderProps): OAuth2CredentialProvider // chainable@staticmethod def using_google(scope: Construct, id: str, props: GoogleOAuth2CredentialProviderProps) -> OAuth2CredentialProviderpublic static OAuth2CredentialProvider usingGoogle(Construct scope, String id, GoogleOAuth2CredentialProviderProps props)public static OAuth2CredentialProvider UsingGoogle(Construct scope, string id, GoogleOAuth2CredentialProviderProps props)func UsingGoogle(Scope Construct, Id *string, Props GoogleOAuth2CredentialProviderProps) OAuth2CredentialProvider static #usingHubspot(scope: Construct, id: string, props: HubspotOAuth2CredentialProviderProps): OAuth2CredentialProvider // chainable@staticmethod def using_hubspot(scope: Construct, id: str, props: HubspotOAuth2CredentialProviderProps) -> OAuth2CredentialProviderpublic static OAuth2CredentialProvider usingHubspot(Construct scope, String id, HubspotOAuth2CredentialProviderProps props)public static OAuth2CredentialProvider UsingHubspot(Construct scope, string id, HubspotOAuth2CredentialProviderProps props)func UsingHubspot(Scope Construct, Id *string, Props HubspotOAuth2CredentialProviderProps) OAuth2CredentialProvider static #usingLinkedin(scope: Construct, id: string, props: LinkedinOAuth2CredentialProviderProps): OAuth2CredentialProvider // chainable@staticmethod def using_linkedin(scope: Construct, id: str, props: LinkedinOAuth2CredentialProviderProps) -> OAuth2CredentialProviderpublic static OAuth2CredentialProvider usingLinkedin(Construct scope, String id, LinkedinOAuth2CredentialProviderProps props)public static OAuth2CredentialProvider UsingLinkedin(Construct scope, string id, LinkedinOAuth2CredentialProviderProps props)func UsingLinkedin(Scope Construct, Id *string, Props LinkedinOAuth2CredentialProviderProps) OAuth2CredentialProvider static #usingMicrosoft(scope: Construct, id: string, props: MicrosoftOAuth2CredentialProviderProps): OAuth2CredentialProvider // chainable@staticmethod def using_microsoft(scope: Construct, id: str, props: MicrosoftOAuth2CredentialProviderProps) -> OAuth2CredentialProviderpublic static OAuth2CredentialProvider usingMicrosoft(Construct scope, String id, MicrosoftOAuth2CredentialProviderProps props)public static OAuth2CredentialProvider UsingMicrosoft(Construct scope, string id, MicrosoftOAuth2CredentialProviderProps props)func UsingMicrosoft(Scope Construct, Id *string, Props MicrosoftOAuth2CredentialProviderProps) OAuth2CredentialProvider static #usingNotion(scope: Construct, id: string, props: NotionOAuth2CredentialProviderProps): OAuth2CredentialProvider // chainable@staticmethod def using_notion(scope: Construct, id: str, props: NotionOAuth2CredentialProviderProps) -> OAuth2CredentialProviderpublic static OAuth2CredentialProvider usingNotion(Construct scope, String id, NotionOAuth2CredentialProviderProps props)public static OAuth2CredentialProvider UsingNotion(Construct scope, string id, NotionOAuth2CredentialProviderProps props)func UsingNotion(Scope Construct, Id *string, Props NotionOAuth2CredentialProviderProps) OAuth2CredentialProvider static #usingOkta(scope: Construct, id: string, props: IncludedOauth2TenantCredentialProviderProps): OAuth2CredentialProvider // chainable@staticmethod def using_okta(scope: Construct, id: str, props: IncludedOauth2TenantCredentialProviderProps) -> OAuth2CredentialProviderpublic static OAuth2CredentialProvider usingOkta(Construct scope, String id, IncludedOauth2TenantCredentialProviderProps props)public static OAuth2CredentialProvider UsingOkta(Construct scope, string id, IncludedOauth2TenantCredentialProviderProps props)func UsingOkta(Scope Construct, Id *string, Props IncludedOauth2TenantCredentialProviderProps) OAuth2CredentialProvider static #usingOneLogin(scope: Construct, id: string, props: IncludedOauth2TenantCredentialProviderProps): OAuth2CredentialProvider // chainable@staticmethod def using_one_login(scope: Construct, id: str, props: IncludedOauth2TenantCredentialProviderProps) -> OAuth2CredentialProviderpublic static OAuth2CredentialProvider usingOneLogin(Construct scope, String id, IncludedOauth2TenantCredentialProviderProps props)public static OAuth2CredentialProvider UsingOneLogin(Construct scope, string id, IncludedOauth2TenantCredentialProviderProps props)func UsingOneLogin(Scope Construct, Id *string, Props IncludedOauth2TenantCredentialProviderProps) OAuth2CredentialProvider static #usingPingOne(scope: Construct, id: string, props: IncludedOauth2TenantCredentialProviderProps): OAuth2CredentialProvider // chainable@staticmethod def using_ping_one(scope: Construct, id: str, props: IncludedOauth2TenantCredentialProviderProps) -> OAuth2CredentialProviderpublic static OAuth2CredentialProvider usingPingOne(Construct scope, String id, IncludedOauth2TenantCredentialProviderProps props)public static OAuth2CredentialProvider UsingPingOne(Construct scope, string id, IncludedOauth2TenantCredentialProviderProps props)func UsingPingOne(Scope Construct, Id *string, Props IncludedOauth2TenantCredentialProviderProps) OAuth2CredentialProvider static #usingReddit(scope: Construct, id: string, props: RedditOAuth2CredentialProviderProps): OAuth2CredentialProvider // chainable@staticmethod def using_reddit(scope: Construct, id: str, props: RedditOAuth2CredentialProviderProps) -> OAuth2CredentialProviderpublic static OAuth2CredentialProvider usingReddit(Construct scope, String id, RedditOAuth2CredentialProviderProps props)public static OAuth2CredentialProvider UsingReddit(Construct scope, string id, RedditOAuth2CredentialProviderProps props)func UsingReddit(Scope Construct, Id *string, Props RedditOAuth2CredentialProviderProps) OAuth2CredentialProvider static #usingSalesforce(scope: Construct, id: string, props: SalesforceOAuth2CredentialProviderProps): OAuth2CredentialProvider // chainable@staticmethod def using_salesforce(scope: Construct, id: str, props: SalesforceOAuth2CredentialProviderProps) -> OAuth2CredentialProviderpublic static OAuth2CredentialProvider usingSalesforce(Construct scope, String id, SalesforceOAuth2CredentialProviderProps props)public static OAuth2CredentialProvider UsingSalesforce(Construct scope, string id, SalesforceOAuth2CredentialProviderProps props)func UsingSalesforce(Scope Construct, Id *string, Props SalesforceOAuth2CredentialProviderProps) OAuth2CredentialProvider static #usingSlack(scope: Construct, id: string, props: SlackOAuth2CredentialProviderProps): OAuth2CredentialProvider // chainable@staticmethod def using_slack(scope: Construct, id: str, props: SlackOAuth2CredentialProviderProps) -> OAuth2CredentialProviderpublic static OAuth2CredentialProvider usingSlack(Construct scope, String id, SlackOAuth2CredentialProviderProps props)public static OAuth2CredentialProvider UsingSlack(Construct scope, string id, SlackOAuth2CredentialProviderProps props)func UsingSlack(Scope Construct, Id *string, Props SlackOAuth2CredentialProviderProps) OAuth2CredentialProvider static #usingSpotify(scope: Construct, id: string, props: SpotifyOAuth2CredentialProviderProps): OAuth2CredentialProvider // chainable@staticmethod def using_spotify(scope: Construct, id: str, props: SpotifyOAuth2CredentialProviderProps) -> OAuth2CredentialProviderpublic static OAuth2CredentialProvider usingSpotify(Construct scope, String id, SpotifyOAuth2CredentialProviderProps props)public static OAuth2CredentialProvider UsingSpotify(Construct scope, string id, SpotifyOAuth2CredentialProviderProps props)func UsingSpotify(Scope Construct, Id *string, Props SpotifyOAuth2CredentialProviderProps) OAuth2CredentialProvider static #usingTwitch(scope: Construct, id: string, props: TwitchOAuth2CredentialProviderProps): OAuth2CredentialProvider // chainable@staticmethod def using_twitch(scope: Construct, id: str, props: TwitchOAuth2CredentialProviderProps) -> OAuth2CredentialProviderpublic static OAuth2CredentialProvider usingTwitch(Construct scope, String id, TwitchOAuth2CredentialProviderProps props)public static OAuth2CredentialProvider UsingTwitch(Construct scope, string id, TwitchOAuth2CredentialProviderProps props)func UsingTwitch(Scope Construct, Id *string, Props TwitchOAuth2CredentialProviderProps) OAuth2CredentialProvider static #usingX(scope: Construct, id: string, props: XOAuth2CredentialProviderProps): OAuth2CredentialProvider // chainable@staticmethod def using_x(scope: Construct, id: str, props: XOAuth2CredentialProviderProps) -> OAuth2CredentialProviderpublic static OAuth2CredentialProvider usingX(Construct scope, String id, XOAuth2CredentialProviderProps props)public static OAuth2CredentialProvider UsingX(Construct scope, string id, XOAuth2CredentialProviderProps props)func UsingX(Scope Construct, Id *string, Props XOAuth2CredentialProviderProps) OAuth2CredentialProvider static #usingYandex(scope: Construct, id: string, props: YandexOAuth2CredentialProviderProps): OAuth2CredentialProvider // chainable@staticmethod def using_yandex(scope: Construct, id: str, props: YandexOAuth2CredentialProviderProps) -> OAuth2CredentialProviderpublic static OAuth2CredentialProvider usingYandex(Construct scope, String id, YandexOAuth2CredentialProviderProps props)public static OAuth2CredentialProvider UsingYandex(Construct scope, string id, YandexOAuth2CredentialProviderProps props)func UsingYandex(Scope Construct, Id *string, Props YandexOAuth2CredentialProviderProps) OAuth2CredentialProvider static #usingZoom(scope: Construct, id: string, props: ZoomOAuth2CredentialProviderProps): OAuth2CredentialProvider // chainable@staticmethod def using_zoom(scope: Construct, id: str, props: ZoomOAuth2CredentialProviderProps) -> OAuth2CredentialProviderpublic static OAuth2CredentialProvider usingZoom(Construct scope, String id, ZoomOAuth2CredentialProviderProps props)public static OAuth2CredentialProvider UsingZoom(Construct scope, string id, ZoomOAuth2CredentialProviderProps props)func UsingZoom(Scope Construct, Id *string, Props ZoomOAuth2CredentialProviderProps) OAuth2CredentialProvider static #with(...mixins: IMixin[]): IConstructdef with(self, mixins: IMixin) -> IConstructpublic IConstruct with(IMixin mixins)public IConstruct With(IMixin mixins)func With(Mixins IMixin) IConstruct #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.