CustomOauth2ProviderConfigInputProperty Struct
Input configuration for a custom OAuth2 provider.
| Source | |
|---|---|
| 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 customOauth2ProviderConfigInputProperty: bedrockagentcore.CfnOAuth2CredentialProvider.CustomOauth2ProviderConfigInputProperty = {
oauthDiscovery: {
authorizationServerMetadata: {
authorizationEndpoint: 'authorizationEndpoint',
issuer: 'issuer',
tokenEndpoint: 'tokenEndpoint',
// the properties below are optional
responseTypes: ['responseTypes'],
},
discoveryUrl: 'discoveryUrl',
},
// the properties below are optional
certificateConfigurations: [{
s3: {
uri: 'uri',
// the properties below are optional
bucketOwnerAccountId: 'bucketOwnerAccountId',
},
secretsManager: {
secretArn: 'secretArn',
},
}],
clientAuthenticationMethod: 'clientAuthenticationMethod',
clientId: 'clientId',
clientSecret: 'clientSecret',
clientSecretConfig: {
jsonKey: 'jsonKey',
secretId: 'secretId',
},
clientSecretSource: 'clientSecretSource',
onBehalfOfTokenExchangeConfig: {
grantType: 'grantType',
// the properties below are optional
tokenExchangeGrantTypeConfig: {
actorTokenContent: 'actorTokenContent',
// the properties below are optional
actorTokenScopes: ['actorTokenScopes'],
},
},
privateEndpoint: {
managedVpcResource: {
endpointIpAddressType: 'endpointIpAddressType',
subnetIds: ['subnetIds'],
vpcIdentifier: 'vpcIdentifier',
// the properties below are optional
routingDomain: 'routingDomain',
securityGroupIds: ['securityGroupIds'],
tags: {
tagsKey: 'tags',
},
},
selfManagedLatticeResource: {
resourceConfigurationIdentifier: 'resourceConfigurationIdentifier',
},
},
privateEndpointOverrides: [{
domain: 'domain',
privateEndpoint: {
managedVpcResource: {
endpointIpAddressType: 'endpointIpAddressType',
subnetIds: ['subnetIds'],
vpcIdentifier: 'vpcIdentifier',
// the properties below are optional
routingDomain: 'routingDomain',
securityGroupIds: ['securityGroupIds'],
tags: {
tagsKey: 'tags',
},
},
selfManagedLatticeResource: {
resourceConfigurationIdentifier: 'resourceConfigurationIdentifier',
},
},
}],
privateKeyJwtConfig: {
additionalHeaderClaims: {
additionalHeaderClaimsKey: 'additionalHeaderClaims',
},
additionalPayloadClaims: {
additionalPayloadClaimsKey: 'additionalPayloadClaims',
},
privateKeySource: {
kmsKeySource: {
kmsKeyArn: 'kmsKeyArn',
},
},
signingAlgorithm: 'signingAlgorithm',
},
};
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
custom_oauth2_provider_config_input_property = bedrockagentcore.CfnOAuth2CredentialProvider.CustomOauth2ProviderConfigInputProperty(
oauth_discovery=bedrockagentcore.CfnOAuth2CredentialProvider.Oauth2DiscoveryProperty(
authorization_server_metadata=bedrockagentcore.CfnOAuth2CredentialProvider.Oauth2AuthorizationServerMetadataProperty(
authorization_endpoint="authorizationEndpoint",
issuer="issuer",
token_endpoint="tokenEndpoint",
# the properties below are optional
response_types=["responseTypes"]
),
discovery_url="discoveryUrl"
),
# the properties below are optional
certificate_configurations=[bedrockagentcore.CfnOAuth2CredentialProvider.CertificateConfigurationProperty(
s3=bedrockagentcore.CfnOAuth2CredentialProvider.S3CertificateConfigurationProperty(
uri="uri",
# the properties below are optional
bucket_owner_account_id="bucketOwnerAccountId"
),
secrets_manager=bedrockagentcore.CfnOAuth2CredentialProvider.SecretsManagerCertificateConfigurationProperty(
secret_arn="secretArn"
)
)],
client_authentication_method="clientAuthenticationMethod",
client_id="clientId",
client_secret="clientSecret",
client_secret_config=bedrockagentcore.CfnOAuth2CredentialProvider.SecretReferenceProperty(
json_key="jsonKey",
secret_id="secretId"
),
client_secret_source="clientSecretSource",
on_behalf_of_token_exchange_config=bedrockagentcore.CfnOAuth2CredentialProvider.OnBehalfOfTokenExchangeConfigProperty(
grant_type="grantType",
# the properties below are optional
token_exchange_grant_type_config=bedrockagentcore.CfnOAuth2CredentialProvider.TokenExchangeGrantTypeConfigProperty(
actor_token_content="actorTokenContent",
# the properties below are optional
actor_token_scopes=["actorTokenScopes"]
)
),
private_endpoint=bedrockagentcore.CfnOAuth2CredentialProvider.PrivateEndpointProperty(
managed_vpc_resource=bedrockagentcore.CfnOAuth2CredentialProvider.ManagedVpcResourceProperty(
endpoint_ip_address_type="endpointIpAddressType",
subnet_ids=["subnetIds"],
vpc_identifier="vpcIdentifier",
# the properties below are optional
routing_domain="routingDomain",
security_group_ids=["securityGroupIds"],
tags={
"tags_key": "tags"
}
),
self_managed_lattice_resource=bedrockagentcore.CfnOAuth2CredentialProvider.SelfManagedLatticeResourceProperty(
resource_configuration_identifier="resourceConfigurationIdentifier"
)
),
private_endpoint_overrides=[bedrockagentcore.CfnOAuth2CredentialProvider.PrivateEndpointOverrideProperty(
domain="domain",
private_endpoint=bedrockagentcore.CfnOAuth2CredentialProvider.PrivateEndpointProperty(
managed_vpc_resource=bedrockagentcore.CfnOAuth2CredentialProvider.ManagedVpcResourceProperty(
endpoint_ip_address_type="endpointIpAddressType",
subnet_ids=["subnetIds"],
vpc_identifier="vpcIdentifier",
# the properties below are optional
routing_domain="routingDomain",
security_group_ids=["securityGroupIds"],
tags={
"tags_key": "tags"
}
),
self_managed_lattice_resource=bedrockagentcore.CfnOAuth2CredentialProvider.SelfManagedLatticeResourceProperty(
resource_configuration_identifier="resourceConfigurationIdentifier"
)
)
)],
private_key_jwt_config=bedrockagentcore.CfnOAuth2CredentialProvider.PrivateKeyJwtConfigProperty(
additional_header_claims={
"additional_header_claims_key": "additionalHeaderClaims"
},
additional_payload_claims={
"additional_payload_claims_key": "additionalPayloadClaims"
},
private_key_source=bedrockagentcore.CfnOAuth2CredentialProvider.PrivateKeySourceProperty(
kms_key_source=bedrockagentcore.CfnOAuth2CredentialProvider.KmsKeySourceTypeProperty(
kms_key_arn="kmsKeyArn"
)
),
signing_algorithm="signingAlgorithm"
)
)
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.*;
CustomOauth2ProviderConfigInputProperty customOauth2ProviderConfigInputProperty = CustomOauth2ProviderConfigInputProperty.builder()
.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())
// the properties below are optional
.certificateConfigurations(List.of(CertificateConfigurationProperty.builder()
.s3(S3CertificateConfigurationProperty.builder()
.uri("uri")
// the properties below are optional
.bucketOwnerAccountId("bucketOwnerAccountId")
.build())
.secretsManager(SecretsManagerCertificateConfigurationProperty.builder()
.secretArn("secretArn")
.build())
.build()))
.clientAuthenticationMethod("clientAuthenticationMethod")
.clientId("clientId")
.clientSecret("clientSecret")
.clientSecretConfig(SecretReferenceProperty.builder()
.jsonKey("jsonKey")
.secretId("secretId")
.build())
.clientSecretSource("clientSecretSource")
.onBehalfOfTokenExchangeConfig(OnBehalfOfTokenExchangeConfigProperty.builder()
.grantType("grantType")
// the properties below are optional
.tokenExchangeGrantTypeConfig(TokenExchangeGrantTypeConfigProperty.builder()
.actorTokenContent("actorTokenContent")
// the properties below are optional
.actorTokenScopes(List.of("actorTokenScopes"))
.build())
.build())
.privateEndpoint(PrivateEndpointProperty.builder()
.managedVpcResource(ManagedVpcResourceProperty.builder()
.endpointIpAddressType("endpointIpAddressType")
.subnetIds(List.of("subnetIds"))
.vpcIdentifier("vpcIdentifier")
// the properties below are optional
.routingDomain("routingDomain")
.securityGroupIds(List.of("securityGroupIds"))
.tags(Map.of(
"tagsKey", "tags"))
.build())
.selfManagedLatticeResource(SelfManagedLatticeResourceProperty.builder()
.resourceConfigurationIdentifier("resourceConfigurationIdentifier")
.build())
.build())
.privateEndpointOverrides(List.of(PrivateEndpointOverrideProperty.builder()
.domain("domain")
.privateEndpoint(PrivateEndpointProperty.builder()
.managedVpcResource(ManagedVpcResourceProperty.builder()
.endpointIpAddressType("endpointIpAddressType")
.subnetIds(List.of("subnetIds"))
.vpcIdentifier("vpcIdentifier")
// the properties below are optional
.routingDomain("routingDomain")
.securityGroupIds(List.of("securityGroupIds"))
.tags(Map.of(
"tagsKey", "tags"))
.build())
.selfManagedLatticeResource(SelfManagedLatticeResourceProperty.builder()
.resourceConfigurationIdentifier("resourceConfigurationIdentifier")
.build())
.build())
.build()))
.privateKeyJwtConfig(PrivateKeyJwtConfigProperty.builder()
.additionalHeaderClaims(Map.of(
"additionalHeaderClaimsKey", "additionalHeaderClaims"))
.additionalPayloadClaims(Map.of(
"additionalPayloadClaimsKey", "additionalPayloadClaims"))
.privateKeySource(PrivateKeySourceProperty.builder()
.kmsKeySource(KmsKeySourceTypeProperty.builder()
.kmsKeyArn("kmsKeyArn")
.build())
.build())
.signingAlgorithm("signingAlgorithm")
.build())
.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 customOauth2ProviderConfigInputProperty = new CustomOauth2ProviderConfigInputProperty {
OauthDiscovery = new Oauth2DiscoveryProperty {
AuthorizationServerMetadata = new Oauth2AuthorizationServerMetadataProperty {
AuthorizationEndpoint = "authorizationEndpoint",
Issuer = "issuer",
TokenEndpoint = "tokenEndpoint",
// the properties below are optional
ResponseTypes = new [] { "responseTypes" }
},
DiscoveryUrl = "discoveryUrl"
},
// the properties below are optional
CertificateConfigurations = new [] { new CertificateConfigurationProperty {
S3 = new S3CertificateConfigurationProperty {
Uri = "uri",
// the properties below are optional
BucketOwnerAccountId = "bucketOwnerAccountId"
},
SecretsManager = new SecretsManagerCertificateConfigurationProperty {
SecretArn = "secretArn"
}
} },
ClientAuthenticationMethod = "clientAuthenticationMethod",
ClientId = "clientId",
ClientSecret = "clientSecret",
ClientSecretConfig = new SecretReferenceProperty {
JsonKey = "jsonKey",
SecretId = "secretId"
},
ClientSecretSource = "clientSecretSource",
OnBehalfOfTokenExchangeConfig = new OnBehalfOfTokenExchangeConfigProperty {
GrantType = "grantType",
// the properties below are optional
TokenExchangeGrantTypeConfig = new TokenExchangeGrantTypeConfigProperty {
ActorTokenContent = "actorTokenContent",
// the properties below are optional
ActorTokenScopes = new [] { "actorTokenScopes" }
}
},
PrivateEndpoint = new PrivateEndpointProperty {
ManagedVpcResource = new ManagedVpcResourceProperty {
EndpointIpAddressType = "endpointIpAddressType",
SubnetIds = new [] { "subnetIds" },
VpcIdentifier = "vpcIdentifier",
// the properties below are optional
RoutingDomain = "routingDomain",
SecurityGroupIds = new [] { "securityGroupIds" },
Tags = new Dictionary<string, string> {
{ "tagsKey", "tags" }
}
},
SelfManagedLatticeResource = new SelfManagedLatticeResourceProperty {
ResourceConfigurationIdentifier = "resourceConfigurationIdentifier"
}
},
PrivateEndpointOverrides = new [] { new PrivateEndpointOverrideProperty {
Domain = "domain",
PrivateEndpoint = new PrivateEndpointProperty {
ManagedVpcResource = new ManagedVpcResourceProperty {
EndpointIpAddressType = "endpointIpAddressType",
SubnetIds = new [] { "subnetIds" },
VpcIdentifier = "vpcIdentifier",
// the properties below are optional
RoutingDomain = "routingDomain",
SecurityGroupIds = new [] { "securityGroupIds" },
Tags = new Dictionary<string, string> {
{ "tagsKey", "tags" }
}
},
SelfManagedLatticeResource = new SelfManagedLatticeResourceProperty {
ResourceConfigurationIdentifier = "resourceConfigurationIdentifier"
}
}
} },
PrivateKeyJwtConfig = new PrivateKeyJwtConfigProperty {
AdditionalHeaderClaims = new Dictionary<string, string> {
{ "additionalHeaderClaimsKey", "additionalHeaderClaims" }
},
AdditionalPayloadClaims = new Dictionary<string, string> {
{ "additionalPayloadClaimsKey", "additionalPayloadClaims" }
},
PrivateKeySource = new PrivateKeySourceProperty {
KmsKeySource = new KmsKeySourceTypeProperty {
KmsKeyArn = "kmsKeyArn"
}
},
SigningAlgorithm = "signingAlgorithm"
}
};
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"
customOauth2ProviderConfigInputProperty := &CustomOauth2ProviderConfigInputProperty{
OauthDiscovery: &Oauth2DiscoveryProperty{
AuthorizationServerMetadata: &Oauth2AuthorizationServerMetadataProperty{
AuthorizationEndpoint: jsii.String("authorizationEndpoint"),
Issuer: jsii.String("issuer"),
TokenEndpoint: jsii.String("tokenEndpoint"),
// the properties below are optional
ResponseTypes: []*string{
jsii.String("responseTypes"),
},
},
DiscoveryUrl: jsii.String("discoveryUrl"),
},
// the properties below are optional
CertificateConfigurations: []interface{}{
&CertificateConfigurationProperty{
S3: &S3CertificateConfigurationProperty{
Uri: jsii.String("uri"),
// the properties below are optional
BucketOwnerAccountId: jsii.String("bucketOwnerAccountId"),
},
SecretsManager: &SecretsManagerCertificateConfigurationProperty{
SecretArn: jsii.String("secretArn"),
},
},
},
ClientAuthenticationMethod: jsii.String("clientAuthenticationMethod"),
ClientId: jsii.String("clientId"),
ClientSecret: jsii.String("clientSecret"),
ClientSecretConfig: &SecretReferenceProperty{
JsonKey: jsii.String("jsonKey"),
SecretId: jsii.String("secretId"),
},
ClientSecretSource: jsii.String("clientSecretSource"),
OnBehalfOfTokenExchangeConfig: &OnBehalfOfTokenExchangeConfigProperty{
GrantType: jsii.String("grantType"),
// the properties below are optional
TokenExchangeGrantTypeConfig: &TokenExchangeGrantTypeConfigProperty{
ActorTokenContent: jsii.String("actorTokenContent"),
// the properties below are optional
ActorTokenScopes: []*string{
jsii.String("actorTokenScopes"),
},
},
},
PrivateEndpoint: &PrivateEndpointProperty{
ManagedVpcResource: &ManagedVpcResourceProperty{
EndpointIpAddressType: jsii.String("endpointIpAddressType"),
SubnetIds: []*string{
jsii.String("subnetIds"),
},
VpcIdentifier: jsii.String("vpcIdentifier"),
// the properties below are optional
RoutingDomain: jsii.String("routingDomain"),
SecurityGroupIds: []*string{
jsii.String("securityGroupIds"),
},
Tags: map[string]*string{
"tagsKey": jsii.String("tags"),
},
},
SelfManagedLatticeResource: &SelfManagedLatticeResourceProperty{
ResourceConfigurationIdentifier: jsii.String("resourceConfigurationIdentifier"),
},
},
PrivateEndpointOverrides: []interface{}{
&PrivateEndpointOverrideProperty{
Domain: jsii.String("domain"),
PrivateEndpoint: &PrivateEndpointProperty{
ManagedVpcResource: &ManagedVpcResourceProperty{
EndpointIpAddressType: jsii.String("endpointIpAddressType"),
SubnetIds: []*string{
jsii.String("subnetIds"),
},
VpcIdentifier: jsii.String("vpcIdentifier"),
// the properties below are optional
RoutingDomain: jsii.String("routingDomain"),
SecurityGroupIds: []*string{
jsii.String("securityGroupIds"),
},
Tags: map[string]*string{
"tagsKey": jsii.String("tags"),
},
},
SelfManagedLatticeResource: &SelfManagedLatticeResourceProperty{
ResourceConfigurationIdentifier: jsii.String("resourceConfigurationIdentifier"),
},
},
},
},
PrivateKeyJwtConfig: &PrivateKeyJwtConfigProperty{
AdditionalHeaderClaims: map[string]*string{
"additionalHeaderClaimsKey": jsii.String("additionalHeaderClaims"),
},
AdditionalPayloadClaims: map[string]*string{
"additionalPayloadClaimsKey": jsii.String("additionalPayloadClaims"),
},
PrivateKeySource: &PrivateKeySourceProperty{
KmsKeySource: &KmsKeySourceTypeProperty{
KmsKeyArn: jsii.String("kmsKeyArn"),
},
},
SigningAlgorithm: jsii.String("signingAlgorithm"),
},
}
Properties
certificateConfigurationsoptionalIResolvable | IResolvable | CfnOAuth2CredentialProvider.certificate_configurationsoptionaltyping.Union[IResolvable, typing.List[typing.Union[IResolvable, CertificateConfigurationProperty]]]certificateConfigurationsoptionalIResolvableCertificateConfigurationsoptionalIResolvableCertificateConfigurationsoptionalinterface{} #Private certificate authority (CA) configurations for the identity provider, referenced by Amazon S3 object or AWS Secrets Manager secret.
clientAuthenticationMethodoptionalstringclient_authentication_methodoptionalstrclientAuthenticationMethodoptionalStringClientAuthenticationMethodoptionalstringClientAuthenticationMethodoptional*string #The client authentication method to use when authenticating with the token endpoint.
clientIdoptionalstringclient_idoptionalstrclientIdoptionalStringClientIdoptionalstringClientIdoptional*string #The client ID for the custom OAuth2 provider.
clientSecretoptionalstringclient_secretoptionalstrclientSecretoptionalStringClientSecretoptionalstringClientSecretoptional*string #The client secret for the custom OAuth2 provider.
clientSecretConfigoptionalIResolvable | CfnOAuth2CredentialProvider.client_secret_configoptionaltyping.Union[IResolvable, SecretReferenceProperty]clientSecretConfigoptionalIResolvableClientSecretConfigoptionalIResolvableClientSecretConfigoptionalinterface{} #A reference to a customer-provided secret stored in AWS Secrets Manager.
clientSecretSourceoptionalstringclient_secret_sourceoptionalstrclientSecretSourceoptionalStringClientSecretSourceoptionalstringClientSecretSourceoptional*string #The source of the client secret.
oauthDiscoveryIResolvable | CfnOAuth2CredentialProvider.oauth_discoverytyping.Union[IResolvable, Oauth2DiscoveryProperty]oauthDiscoveryIResolvableOauthDiscoveryIResolvableOauthDiscoveryinterface{} required #Discovery information for an OAuth2 provider.
onBehalfOfTokenExchangeConfigoptionalIResolvable | CfnOAuth2CredentialProvider.on_behalf_of_token_exchange_configoptionaltyping.Union[IResolvable, OnBehalfOfTokenExchangeConfigProperty]onBehalfOfTokenExchangeConfigoptionalIResolvableOnBehalfOfTokenExchangeConfigoptionalIResolvableOnBehalfOfTokenExchangeConfigoptionalinterface{} #Configuration for on-behalf-of token exchange.
privateEndpointoptionalIResolvable | CfnOAuth2CredentialProvider.private_endpointoptionaltyping.Union[IResolvable, PrivateEndpointProperty]privateEndpointoptionalIResolvablePrivateEndpointoptionalIResolvablePrivateEndpointoptionalinterface{} #The private endpoint configuration for connecting to private resources in your VPC.
privateEndpointOverridesoptionalIResolvable | IResolvable | CfnOAuth2CredentialProvider.private_endpoint_overridesoptionaltyping.Union[IResolvable, typing.List[typing.Union[IResolvable, PrivateEndpointOverrideProperty]]]privateEndpointOverridesoptionalIResolvablePrivateEndpointOverridesoptionalIResolvablePrivateEndpointOverridesoptionalinterface{} #A list of private endpoint overrides.
Each override maps a specific domain to a private endpoint, enabling secure connectivity through VPC Lattice resource configurations.
privateKeyJwtConfigoptionalIResolvable | CfnOAuth2CredentialProvider.private_key_jwt_configoptionaltyping.Union[IResolvable, PrivateKeyJwtConfigProperty]privateKeyJwtConfigoptionalIResolvablePrivateKeyJwtConfigoptionalIResolvablePrivateKeyJwtConfigoptionalinterface{} #Configuration for private_key_jwt client authentication (RFC 7523).