OAuth2CredentialProviderBaseProps Struct
Shared properties for OAuth2 credential providers created via {@link OAuth2CredentialProvider} factory methods.
| Source | aws-bedrockagentcore/lib/identity/oauth2-credential-provider.ts |
|---|---|
| Type last changed |
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 oAuth2CredentialProviderBaseProps: bedrockagentcore.OAuth2CredentialProviderBaseProps = {
oAuth2CredentialProviderName: 'oAuth2CredentialProviderName',
tags: {
tagsKey: 'tags',
},
};
python
# 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_base_props = bedrockagentcore.OAuth2CredentialProviderBaseProps(
o_auth2_credential_provider_name="oAuth2CredentialProviderName",
tags={
"tags_key": "tags"
}
)
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.bedrockagentcore.*;
OAuth2CredentialProviderBaseProps oAuth2CredentialProviderBaseProps = OAuth2CredentialProviderBaseProps.builder()
.oAuth2CredentialProviderName("oAuth2CredentialProviderName")
.tags(Map.of(
"tagsKey", "tags"))
.build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.BedrockAgentCore;
var oAuth2CredentialProviderBaseProps = new OAuth2CredentialProviderBaseProps {
OAuth2CredentialProviderName = "oAuth2CredentialProviderName",
Tags = new Dictionary<string, string> {
{ "tagsKey", "tags" }
}
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"
oAuth2CredentialProviderBaseProps := &OAuth2CredentialProviderBaseProps{
OAuth2CredentialProviderName: jsii.String("oAuth2CredentialProviderName"),
Tags: map[string]*string{
"tagsKey": jsii.String("tags"),
},
}
Properties
oAuth2CredentialProviderNameoptionalstringo_auth2_credential_provider_nameoptionalstroAuth2CredentialProviderNameoptionalStringOAuth2CredentialProviderNameoptionalstringOAuth2CredentialProviderNameoptional*string #Name of the credential provider.
Default: a name generated by CDK
tagsoptional{ [key: string]: string }tagsoptionaltyping.Mapping[str, str]tagsoptionalMap<String, String>TagsoptionalIDictionary<string, string>Tagsoptional*map[string]*string #Tags for this credential provider.
Default: no tags