Skip to content
v2.275.0

OAuth2CredentialProviderAttributes Struct ​

Attributes for importing an existing OAuth2 credential provider.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_bedrockagentcore as bedrockagentcore } from 'aws-cdk-lib';
const oAuth2CredentialProviderAttributes: bedrockagentcore.OAuth2CredentialProviderAttributes = {
  credentialProviderArn: 'credentialProviderArn',
  credentialProviderVendor: 'credentialProviderVendor',

  // the properties below are optional
  callbackUrl: 'callbackUrl',
  clientSecretArn: 'clientSecretArn',
  createdTime: 'createdTime',
  lastUpdatedTime: 'lastUpdatedTime',
};

Properties ​

callbackUrloptionalstringcallback_urloptionalstrcallbackUrloptionalStringCallbackUrloptionalstringCallbackUrloptional*string#
Callback URL from the deployed provider, if known.

Default: not set

clientSecretArnoptionalstringclient_secret_arnoptionalstrclientSecretArnoptionalStringClientSecretArnoptionalstringClientSecretArnoptional*string#
ARN of the Secrets Manager secret for OAuth2 client credentials, if known.

Default: not set; required for {@link OAuth2CredentialProvider.bindForGatewayOAuthTarget } on imported providers

createdTimeoptionalstringcreated_timeoptionalstrcreatedTimeoptionalStringCreatedTimeoptionalstringCreatedTimeoptional*string#
Resource creation time.

Default: not set

credentialProviderArnstringcredential_provider_arnstrcredentialProviderArnStringCredentialProviderArnstringCredentialProviderArn*stringrequired#
ARN of the credential provider.
credentialProviderVendorstringcredential_provider_vendorstrcredentialProviderVendorStringCredentialProviderVendorstringCredentialProviderVendor*stringrequired#
Vendor string for this provider.
lastUpdatedTimeoptionalstringlast_updated_timeoptionalstrlastUpdatedTimeoptionalStringLastUpdatedTimeoptionalstringLastUpdatedTimeoptional*string#
Resource last-updated time.

Default: not set