OAuth2CredentialProviderAttributes Struct
Attributes for importing an existing OAuth2 credential provider.
| Source | lib/identity/oauth2-credential-provider.ts |
|---|
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as bedrock_agentcore_alpha from '@aws-cdk/aws-bedrock-agentcore-alpha';
const oAuth2CredentialProviderAttributes: bedrock_agentcore_alpha.OAuth2CredentialProviderAttributes = {
credentialProviderArn: 'credentialProviderArn',
credentialProviderVendor: 'credentialProviderVendor',
// the properties below are optional
callbackUrl: 'callbackUrl',
clientSecretArn: 'clientSecretArn',
createdTime: 'createdTime',
lastUpdatedTime: 'lastUpdatedTime',
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
import aws_cdk.aws_bedrock_agentcore_alpha as bedrock_agentcore_alpha
o_auth2_credential_provider_attributes = bedrock_agentcore_alpha.OAuth2CredentialProviderAttributes(
credential_provider_arn="credentialProviderArn",
credential_provider_vendor="credentialProviderVendor",
# the properties below are optional
callback_url="callbackUrl",
client_secret_arn="clientSecretArn",
created_time="createdTime",
last_updated_time="lastUpdatedTime"
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.bedrock.agentcore.alpha.*;
OAuth2CredentialProviderAttributes oAuth2CredentialProviderAttributes = OAuth2CredentialProviderAttributes.builder()
.credentialProviderArn("credentialProviderArn")
.credentialProviderVendor("credentialProviderVendor")
// the properties below are optional
.callbackUrl("callbackUrl")
.clientSecretArn("clientSecretArn")
.createdTime("createdTime")
.lastUpdatedTime("lastUpdatedTime")
.build();
csharp
// Install: dotnet add package Amazon.CDK.AWS.Bedrock.Agentcore.Alpha
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Bedrock.Agentcore.Alpha;
var oAuth2CredentialProviderAttributes = new OAuth2CredentialProviderAttributes {
CredentialProviderArn = "credentialProviderArn",
CredentialProviderVendor = "credentialProviderVendor",
// the properties below are optional
CallbackUrl = "callbackUrl",
ClientSecretArn = "clientSecretArn",
CreatedTime = "createdTime",
LastUpdatedTime = "lastUpdatedTime"
};
go
// Install: go get github.com/aws/aws-cdk-go/awsbedrockagentcorealpha/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import bedrock_agentcore_alpha "github.com/aws/aws-cdk-go/awsbedrockagentcorealpha"
oAuth2CredentialProviderAttributes := &OAuth2CredentialProviderAttributes{
CredentialProviderArn: jsii.String("credentialProviderArn"),
CredentialProviderVendor: jsii.String("credentialProviderVendor"),
// the properties below are optional
CallbackUrl: jsii.String("callbackUrl"),
ClientSecretArn: jsii.String("clientSecretArn"),
CreatedTime: jsii.String("createdTime"),
LastUpdatedTime: jsii.String("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*string required #ARN of the credential provider.
credentialProviderVendorstringcredential_provider_vendorstrcredentialProviderVendorStringCredentialProviderVendorstringCredentialProviderVendor*string required #Vendor string for this provider.
lastUpdatedTimeoptionalstringlast_updated_timeoptionalstrlastUpdatedTimeoptionalStringLastUpdatedTimeoptionalstringLastUpdatedTimeoptional*string #Resource last-updated time.
Default: not set