OAuth2CredentialProviderProps
- class aws_cdk.aws_bedrockagentcore.OAuth2CredentialProviderProps(*, credential_provider_vendor, oauth2_provider_config_input, o_auth2_credential_provider_name=None, tags=None)
Bases:
objectLow-level properties when you need full control (prefer {@link OAuth2CredentialProvider.usingSlack} and other factories).
- Parameters:
credential_provider_vendor (
str) – OAuth2 vendor string for CloudFormationCredentialProviderVendor.oauth2_provider_config_input (
Union[Oauth2ProviderConfigInputProperty,Dict[str,Any]]) – OAuth2 provider configuration passed through toOauth2ProviderConfigInput.o_auth2_credential_provider_name (
Optional[str]) – Name of the credential provider. Default: a name generated by CDKtags (
Optional[Mapping[str,str]]) – Tags for this credential provider. Default: - no tags
- ExampleMetadata:
fixture=_generated
Example:
# 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 o_auth2_credential_provider_props = bedrockagentcore.OAuth2CredentialProviderProps( credential_provider_vendor="credentialProviderVendor", oauth2_provider_config_input=bedrockagentcore.CfnOAuth2CredentialProvider.Oauth2ProviderConfigInputProperty( atlassian_oauth2_provider_config=bedrockagentcore.CfnOAuth2CredentialProvider.AtlassianOauth2ProviderConfigInputProperty( client_id="clientId", client_secret="clientSecret" ), 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 client_id="clientId", client_secret="clientSecret", 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"] ) ) ), github_oauth2_provider_config=bedrockagentcore.CfnOAuth2CredentialProvider.GithubOauth2ProviderConfigInputProperty( client_id="clientId", client_secret="clientSecret" ), google_oauth2_provider_config=bedrockagentcore.CfnOAuth2CredentialProvider.GoogleOauth2ProviderConfigInputProperty( client_id="clientId", client_secret="clientSecret" ), included_oauth2_provider_config=bedrockagentcore.CfnOAuth2CredentialProvider.IncludedOauth2ProviderConfigInputProperty( client_id="clientId", client_secret="clientSecret", # the properties below are optional authorization_endpoint="authorizationEndpoint", issuer="issuer", token_endpoint="tokenEndpoint" ), linkedin_oauth2_provider_config=bedrockagentcore.CfnOAuth2CredentialProvider.LinkedinOauth2ProviderConfigInputProperty( client_id="clientId", client_secret="clientSecret" ), microsoft_oauth2_provider_config=bedrockagentcore.CfnOAuth2CredentialProvider.MicrosoftOauth2ProviderConfigInputProperty( client_id="clientId", client_secret="clientSecret", # the properties below are optional tenant_id="tenantId" ), salesforce_oauth2_provider_config=bedrockagentcore.CfnOAuth2CredentialProvider.SalesforceOauth2ProviderConfigInputProperty( client_id="clientId", client_secret="clientSecret" ), slack_oauth2_provider_config=bedrockagentcore.CfnOAuth2CredentialProvider.SlackOauth2ProviderConfigInputProperty( client_id="clientId", client_secret="clientSecret" ) ), # the properties below are optional o_auth2_credential_provider_name="oAuth2CredentialProviderName", tags={ "tags_key": "tags" } )
Attributes
- credential_provider_vendor
OAuth2 vendor string for CloudFormation
CredentialProviderVendor.
- o_auth2_credential_provider_name
Name of the credential provider.
- Default:
a name generated by CDK
- oauth2_provider_config_input
OAuth2 provider configuration passed through to
Oauth2ProviderConfigInput.
- tags
Tags for this credential provider.
- Default:
no tags