Class CfnOAuth2CredentialProvider
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.CfnElement
software.amazon.awscdk.CfnRefElement
software.amazon.awscdk.CfnResource
software.amazon.awscdk.services.bedrockagentcore.CfnOAuth2CredentialProvider
- All Implemented Interfaces:
IInspectable,IOAuth2CredentialProviderRef,IEnvironmentAware,ITaggableV2,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.127.0 (build 2117ad5)",
date="2026-04-14T18:31:50.116Z")
@Stability(Stable)
public class CfnOAuth2CredentialProvider
extends CfnResource
implements IInspectable, IOAuth2CredentialProviderRef, ITaggableV2
Resource Type definition for AWS::BedrockAgentCore::OAuth2CredentialProvider.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.bedrockagentcore.*;
CfnOAuth2CredentialProvider cfnOAuth2CredentialProvider = CfnOAuth2CredentialProvider.Builder.create(this, "MyCfnOAuth2CredentialProvider")
.credentialProviderVendor("credentialProviderVendor")
.name("name")
// the properties below are optional
.oauth2ProviderConfigInput(Oauth2ProviderConfigInputProperty.builder()
.atlassianOauth2ProviderConfig(AtlassianOauth2ProviderConfigInputProperty.builder()
.clientId("clientId")
.clientSecret("clientSecret")
.build())
.customOauth2ProviderConfig(CustomOauth2ProviderConfigInputProperty.builder()
.clientId("clientId")
.clientSecret("clientSecret")
.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())
.build())
.githubOauth2ProviderConfig(GithubOauth2ProviderConfigInputProperty.builder()
.clientId("clientId")
.clientSecret("clientSecret")
.build())
.googleOauth2ProviderConfig(GoogleOauth2ProviderConfigInputProperty.builder()
.clientId("clientId")
.clientSecret("clientSecret")
.build())
.includedOauth2ProviderConfig(IncludedOauth2ProviderConfigInputProperty.builder()
.clientId("clientId")
.clientSecret("clientSecret")
// the properties below are optional
.authorizationEndpoint("authorizationEndpoint")
.issuer("issuer")
.tokenEndpoint("tokenEndpoint")
.build())
.linkedinOauth2ProviderConfig(LinkedinOauth2ProviderConfigInputProperty.builder()
.clientId("clientId")
.clientSecret("clientSecret")
.build())
.microsoftOauth2ProviderConfig(MicrosoftOauth2ProviderConfigInputProperty.builder()
.clientId("clientId")
.clientSecret("clientSecret")
// the properties below are optional
.tenantId("tenantId")
.build())
.salesforceOauth2ProviderConfig(SalesforceOauth2ProviderConfigInputProperty.builder()
.clientId("clientId")
.clientSecret("clientSecret")
.build())
.slackOauth2ProviderConfig(SlackOauth2ProviderConfigInputProperty.builder()
.clientId("clientId")
.clientSecret("clientSecret")
.build())
.build())
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceInput configuration for an Atlassian OAuth2 provider.static final classA fluent builder forCfnOAuth2CredentialProvider.static interfaceContains information about a secret in AWS Secrets Manager.static interfaceInput configuration for a custom OAuth2 provider.static interfaceInput configuration for a GitHub OAuth2 provider.static interfaceInput configuration for a Google OAuth2 provider.static interfaceInput configuration for a supported non-custom OAuth2 provider.static interfaceInput configuration for a LinkedIn OAuth2 provider.static interfaceInput configuration for a Microsoft OAuth2 provider.static interfaceAuthorization server metadata for the OAuth2 provider.static interfaceDiscovery information for an OAuth2 provider.static interfaceInput configuration for an OAuth2 provider.static interfaceOutput configuration for an OAuth2 provider.static interfaceInput configuration for a Salesforce OAuth2 provider.static interfaceInput configuration for a Slack OAuth2 provider.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.interfaces.bedrockagentcore.IOAuth2CredentialProviderRef
IOAuth2CredentialProviderRef.Jsii$Default, IOAuth2CredentialProviderRef.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.ITaggableV2
ITaggableV2.Jsii$Default, ITaggableV2.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCfnOAuth2CredentialProvider(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnOAuth2CredentialProvider(software.amazon.jsii.JsiiObjectRef objRef) CfnOAuth2CredentialProvider(software.constructs.Construct scope, String id, CfnOAuth2CredentialProviderProps props) Create a newAWS::BedrockAgentCore::OAuth2CredentialProvider. -
Method Summary
Modifier and TypeMethodDescriptionThe callback URL for the OAuth2 authorization flow.Contains information about a secret in AWS Secrets Manager.The timestamp when the credential provider was created.The Amazon Resource Name (ARN) of the OAuth2 credential provider.The timestamp when the credential provider was last updated.Output configuration for an OAuth2 provider.Tag Manager which manages the tags for this resource.The vendor of the OAuth2 credential provider.getName()The name of the OAuth2 credential provider.A reference to a OAuth2CredentialProvider resource.Input configuration for an OAuth2 provider.getTags()Tags to assign to the OAuth2 credential provider.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.static BooleanChecks whether the given object is a CfnOAuth2CredentialProvider.renderProperties(Map<String, Object> props) voidThe vendor of the OAuth2 credential provider.voidThe name of the OAuth2 credential provider.voidInput configuration for an OAuth2 provider.voidInput configuration for an OAuth2 provider.voidTags to assign to the OAuth2 credential provider.Methods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getAtt, getCfnOptions, getCfnResourceType, getEnv, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, obtainResourceDependencies, removeDependency, replaceDependency, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId, withMethods inherited from class software.constructs.Construct
getNode, isConstructMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.constructs.IConstruct
getNode, withMethods inherited from interface software.amazon.awscdk.interfaces.IEnvironmentAware
getEnvMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
-
-
Constructor Details
-
CfnOAuth2CredentialProvider
protected CfnOAuth2CredentialProvider(software.amazon.jsii.JsiiObjectRef objRef) -
CfnOAuth2CredentialProvider
protected CfnOAuth2CredentialProvider(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnOAuth2CredentialProvider
@Stability(Stable) public CfnOAuth2CredentialProvider(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnOAuth2CredentialProviderProps props) Create a newAWS::BedrockAgentCore::OAuth2CredentialProvider.- Parameters:
scope- Scope in which this resource is defined. This parameter is required.id- Construct identifier for this resource (unique in its scope). This parameter is required.props- Resource properties. This parameter is required.
-
-
Method Details
-
isCfnOAuth2CredentialProvider
Checks whether the given object is a CfnOAuth2CredentialProvider.- Parameters:
x- This parameter is required.
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspectin interfaceIInspectable- Parameters:
inspector- tree inspector to collect and process attributes. This parameter is required.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderPropertiesin classCfnResource- Parameters:
props- This parameter is required.
-
getAttrCallbackUrl
The callback URL for the OAuth2 authorization flow. -
getAttrClientSecretArn
Contains information about a secret in AWS Secrets Manager. -
getAttrCreatedTime
The timestamp when the credential provider was created. -
getAttrCredentialProviderArn
The Amazon Resource Name (ARN) of the OAuth2 credential provider. -
getAttrLastUpdatedTime
The timestamp when the credential provider was last updated. -
getAttrOauth2ProviderConfigOutput
Output configuration for an OAuth2 provider. -
getCdkTagManager
Tag Manager which manages the tags for this resource.- Specified by:
getCdkTagManagerin interfaceITaggableV2
-
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getOAuth2CredentialProviderRef
@Stability(Stable) @NotNull public OAuth2CredentialProviderReference getOAuth2CredentialProviderRef()A reference to a OAuth2CredentialProvider resource.- Specified by:
getOAuth2CredentialProviderRefin interfaceIOAuth2CredentialProviderRef
-
getCredentialProviderVendor
The vendor of the OAuth2 credential provider. -
setCredentialProviderVendor
The vendor of the OAuth2 credential provider. -
getName
The name of the OAuth2 credential provider. -
setName
The name of the OAuth2 credential provider. -
getOauth2ProviderConfigInput
Input configuration for an OAuth2 provider.Returns union: either
IResolvableorCfnOAuth2CredentialProvider.Oauth2ProviderConfigInputProperty -
setOauth2ProviderConfigInput
Input configuration for an OAuth2 provider. -
setOauth2ProviderConfigInput
@Stability(Stable) public void setOauth2ProviderConfigInput(@Nullable CfnOAuth2CredentialProvider.Oauth2ProviderConfigInputProperty value) Input configuration for an OAuth2 provider. -
getTags
Tags to assign to the OAuth2 credential provider. -
setTags
Tags to assign to the OAuth2 credential provider.
-