OAuth2CredentialProvider
L2 construct for AWS::BedrockAgentCore::OAuth2CredentialProvider.
Prefer the static factories (for example {@link OAuth2CredentialProvider.usingSlack}) so you only pass the OAuth2 settings that apply to that vendor. To attach the identity to a gateway target, use {@link GatewayCredentialProvider.fromOauthIdentity } with this construct, or {@link OAuth2CredentialProvider.bindForGatewayOAuthTarget} with {@link GatewayCredentialProvider.fromOauthIdentityArn }.
| CloudFormation | AWS::BedrockAgentCore::OAuth2CredentialProvider |
|---|---|
| L1 type | CfnOAuth2CredentialProvider |
| Source | aws-bedrockagentcore/lib/identity/oauth2-credential-provider.ts |
| Type last changed |
Example
agentcore.OAuth2CredentialProvider.usingCustom(this, "CustomOAuthMeta", {
clientId: "your-client-id",
clientSecret: cdk.SecretValue.unsafePlainText("your-client-secret"),
authorizationServerMetadata: {
issuer: "https://idp.example.com",
authorizationEndpoint: "https://idp.example.com/oauth2/authorize",
tokenEndpoint: "https://idp.example.com/oauth2/token",
},
});
agentcore.OAuth2CredentialProvider.using_custom(self, "CustomOAuthMeta",
client_id="your-client-id",
client_secret=cdk.SecretValue.unsafe_plain_text("your-client-secret"),
authorization_server_metadata=agentcore.OAuth2AuthorizationServerMetadata(
issuer="https://idp.example.com",
authorization_endpoint="https://idp.example.com/oauth2/authorize",
token_endpoint="https://idp.example.com/oauth2/token"
)
)
OAuth2CredentialProvider.usingCustom(this, "CustomOAuthMeta", CustomOAuth2CredentialProviderProps.builder()
.clientId("your-client-id")
.clientSecret(SecretValue.unsafePlainText("your-client-secret"))
.authorizationServerMetadata(OAuth2AuthorizationServerMetadata.builder()
.issuer("https://idp.example.com")
.authorizationEndpoint("https://idp.example.com/oauth2/authorize")
.tokenEndpoint("https://idp.example.com/oauth2/token")
.build())
.build());
// Install: dotnet add package Amazon.CDK.Lib
OAuth2CredentialProvider.UsingCustom(this, "CustomOAuthMeta", new CustomOAuth2CredentialProviderProps {
ClientId = "your-client-id",
ClientSecret = SecretValue.UnsafePlainText("your-client-secret"),
AuthorizationServerMetadata = new OAuth2AuthorizationServerMetadata {
Issuer = "https://idp.example.com",
AuthorizationEndpoint = "https://idp.example.com/oauth2/authorize",
TokenEndpoint = "https://idp.example.com/oauth2/token"
}
});
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
agentcore.OAuth2CredentialProvider_UsingCustom(this, jsii.String("CustomOAuthMeta"), &CustomOAuth2CredentialProviderProps{
ClientId: jsii.String("your-client-id"),
ClientSecret: cdk.SecretValue_UnsafePlainText(jsii.String("your-client-secret")),
AuthorizationServerMetadata: &OAuth2AuthorizationServerMetadata{
Issuer: jsii.String("https://idp.example.com"),
AuthorizationEndpoint: jsii.String("https://idp.example.com/oauth2/authorize"),
TokenEndpoint: jsii.String("https://idp.example.com/oauth2/token"),
},
})
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.