Interface IOAuth2CredentialProvider
- All Superinterfaces:
software.constructs.IConstruct,software.constructs.IDependable,IEnvironmentAware,IGrantable,IOAuth2CredentialProviderRef,IResource,software.amazon.jsii.JsiiSerializable
- All Known Subinterfaces:
IOAuth2CredentialProvider.Jsii$Default
- All Known Implementing Classes:
IOAuth2CredentialProvider.Jsii$Proxy,OAuth2CredentialProvider
@Generated(value="jsii-pacmak/1.129.0 (build eaca441)",
date="2026-05-19T08:18:44.446Z")
@Stability(Stable)
public interface IOAuth2CredentialProvider
extends software.amazon.jsii.JsiiSerializable, IResource, IGrantable, IOAuth2CredentialProviderRef
An OAuth2 credential provider registered in AgentCore Token Vault.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceInternal default implementation forIOAuth2CredentialProvider.static final classA proxy class which represents a concrete javascript instance of this type. -
Method Summary
Modifier and TypeMethodDescriptionbindForGatewayOAuthTarget(List<String> scopes) ARNs and OAuth scopes for gateway targets (GatewayCredentialProvider.fromOauthIdentityorfromOauthIdentityArn).ARNs and OAuth scopes for gateway targets (GatewayCredentialProvider.fromOauthIdentityorfromOauthIdentityArn).default StringCallback URL for the OAuth2 authorization flow.default StringThe ARN of the Secrets Manager secret for the OAuth2 client credentials.default StringTimestamp when the credential provider was created.The ARN of this credential provider.OAuth2 vendor string passed to CloudFormation.default StringTimestamp when the credential provider was last updated.grant(IGrantable grantee, String... actions) Grants IAM actions to the IAM principal.grantAdmin(IGrantable grantee) Grant control plane permissions to manage this provider.grantFullAccess(IGrantable grantee) Grant read, admin, and token retrieval permissions.grantRead(IGrantable grantee) GrantGetOauth2CredentialProviderandListOauth2CredentialProviders, scoped to this provider and parent resources required by the Bedrock AgentCore authorization model.grantUse(IGrantable grantee) Grant permission to retrieve OAuth tokens (GetResourceOauth2Token,CompleteResourceTokenAuth).Methods inherited from interface software.constructs.IConstruct
getNode, withMethods inherited from interface software.amazon.awscdk.interfaces.IEnvironmentAware
getEnvMethods inherited from interface software.amazon.awscdk.services.iam.IGrantable
getGrantPrincipalMethods inherited from interface software.amazon.awscdk.interfaces.bedrockagentcore.IOAuth2CredentialProviderRef
getOAuth2CredentialProviderRefMethods inherited from interface software.amazon.awscdk.IResource
applyRemovalPolicy, getStackMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getCredentialProviderArn
The ARN of this credential provider. -
getCredentialProviderVendor
OAuth2 vendor string passed to CloudFormation. -
getCallbackUrl
Callback URL for the OAuth2 authorization flow. -
getClientSecretArn
The ARN of the Secrets Manager secret for the OAuth2 client credentials.May be undefined for resources imported without this attribute.
-
getCreatedTime
Timestamp when the credential provider was created. -
getLastUpdatedTime
Timestamp when the credential provider was last updated. -
bindForGatewayOAuthTarget
@Stability(Stable) @NotNull GatewayOAuth2IdentityBinding bindForGatewayOAuthTarget(@NotNull List<String> scopes, @Nullable Map<String, String> customParameters) ARNs and OAuth scopes for gateway targets (GatewayCredentialProvider.fromOauthIdentityorfromOauthIdentityArn).- Parameters:
scopes- This parameter is required.customParameters-
-
bindForGatewayOAuthTarget
@Stability(Stable) @NotNull GatewayOAuth2IdentityBinding bindForGatewayOAuthTarget(@NotNull List<String> scopes) ARNs and OAuth scopes for gateway targets (GatewayCredentialProvider.fromOauthIdentityorfromOauthIdentityArn).- Parameters:
scopes- This parameter is required.
-
grant
Grants IAM actions to the IAM principal.- Parameters:
grantee- This parameter is required.actions- This parameter is required.
-
grantAdmin
Grant control plane permissions to manage this provider.- Parameters:
grantee- This parameter is required.
-
grantFullAccess
Grant read, admin, and token retrieval permissions.- Parameters:
grantee- This parameter is required.
-
grantRead
GrantGetOauth2CredentialProviderandListOauth2CredentialProviders, scoped to this provider and parent resources required by the Bedrock AgentCore authorization model.- Parameters:
grantee- This parameter is required.
-
grantUse
Grant permission to retrieve OAuth tokens (GetResourceOauth2Token,CompleteResourceTokenAuth).- Parameters:
grantee- This parameter is required.
-