OAuth2CredentialProviderProps Struct
Low-level properties when you need full control (prefer {@link OAuth2CredentialProvider.usingSlack} and other factories).
| 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 oAuth2CredentialProviderProps: bedrock_agentcore_alpha.OAuth2CredentialProviderProps = {
credentialProviderVendor: 'credentialProviderVendor',
oauth2ProviderConfigInput: {
atlassianOauth2ProviderConfig: {
clientId: 'clientId',
// the properties below are optional
clientSecret: 'clientSecret',
clientSecretConfig: {
jsonKey: 'jsonKey',
secretId: 'secretId',
},
clientSecretSource: 'clientSecretSource',
},
customOauth2ProviderConfig: {
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',
},
},
githubOauth2ProviderConfig: {
clientId: 'clientId',
// the properties below are optional
clientSecret: 'clientSecret',
clientSecretConfig: {
jsonKey: 'jsonKey',
secretId: 'secretId',
},
clientSecretSource: 'clientSecretSource',
},
googleOauth2ProviderConfig: {
clientId: 'clientId',
// the properties below are optional
clientSecret: 'clientSecret',
clientSecretConfig: {
jsonKey: 'jsonKey',
secretId: 'secretId',
},
clientSecretSource: 'clientSecretSource',
},
includedOauth2ProviderConfig: {
clientId: 'clientId',
// the properties below are optional
authorizationEndpoint: 'authorizationEndpoint',
clientSecret: 'clientSecret',
clientSecretConfig: {
jsonKey: 'jsonKey',
secretId: 'secretId',
},
clientSecretSource: 'clientSecretSource',
issuer: 'issuer',
tokenEndpoint: 'tokenEndpoint',
},
linkedinOauth2ProviderConfig: {
clientId: 'clientId',
// the properties below are optional
clientSecret: 'clientSecret',
clientSecretConfig: {
jsonKey: 'jsonKey',
secretId: 'secretId',
},
clientSecretSource: 'clientSecretSource',
},
microsoftOauth2ProviderConfig: {
clientId: 'clientId',
// the properties below are optional
clientSecret: 'clientSecret',
clientSecretConfig: {
jsonKey: 'jsonKey',
secretId: 'secretId',
},
clientSecretSource: 'clientSecretSource',
tenantId: 'tenantId',
},
salesforceOauth2ProviderConfig: {
clientId: 'clientId',
// the properties below are optional
clientSecret: 'clientSecret',
clientSecretConfig: {
jsonKey: 'jsonKey',
secretId: 'secretId',
},
clientSecretSource: 'clientSecretSource',
},
slackOauth2ProviderConfig: {
clientId: 'clientId',
// the properties below are optional
clientSecret: 'clientSecret',
clientSecretConfig: {
jsonKey: 'jsonKey',
secretId: 'secretId',
},
clientSecretSource: 'clientSecretSource',
},
},
// the properties below are optional
oAuth2CredentialProviderName: 'oAuth2CredentialProviderName',
tags: {
tagsKey: 'tags',
},
};
python
from aws_cdk.aws_bedrockagentcore.Oauth2ProviderConfigInputProperty import Oauth2ProviderConfigInputProperty
from aws_cdk.aws_bedrockagentcore.AtlassianOauth2ProviderConfigInputProperty import AtlassianOauth2ProviderConfigInputProperty
from aws_cdk.aws_bedrockagentcore.SecretReferenceProperty import SecretReferenceProperty, SecretReferenceProperty, SecretReferenceProperty, SecretReferenceProperty, SecretReferenceProperty, SecretReferenceProperty, SecretReferenceProperty, SecretReferenceProperty, SecretReferenceProperty
from aws_cdk.aws_bedrockagentcore.CustomOauth2ProviderConfigInputProperty import CustomOauth2ProviderConfigInputProperty
from aws_cdk.aws_bedrockagentcore.Oauth2DiscoveryProperty import Oauth2DiscoveryProperty
from aws_cdk.aws_bedrockagentcore.Oauth2AuthorizationServerMetadataProperty import Oauth2AuthorizationServerMetadataProperty
from aws_cdk.aws_bedrockagentcore.CertificateConfigurationProperty import CertificateConfigurationProperty
from aws_cdk.aws_bedrockagentcore.S3CertificateConfigurationProperty import S3CertificateConfigurationProperty
from aws_cdk.aws_bedrockagentcore.SecretsManagerCertificateConfigurationProperty import SecretsManagerCertificateConfigurationProperty
from aws_cdk.aws_bedrockagentcore.OnBehalfOfTokenExchangeConfigProperty import OnBehalfOfTokenExchangeConfigProperty
from aws_cdk.aws_bedrockagentcore.TokenExchangeGrantTypeConfigProperty import TokenExchangeGrantTypeConfigProperty
from aws_cdk.aws_bedrockagentcore.PrivateEndpointProperty import PrivateEndpointProperty, PrivateEndpointProperty
from aws_cdk.aws_bedrockagentcore.ManagedVpcResourceProperty import ManagedVpcResourceProperty, ManagedVpcResourceProperty
from aws_cdk.aws_bedrockagentcore.SelfManagedLatticeResourceProperty import SelfManagedLatticeResourceProperty, SelfManagedLatticeResourceProperty
from aws_cdk.aws_bedrockagentcore.PrivateEndpointOverrideProperty import PrivateEndpointOverrideProperty
from aws_cdk.aws_bedrockagentcore.PrivateKeyJwtConfigProperty import PrivateKeyJwtConfigProperty
from aws_cdk.aws_bedrockagentcore.PrivateKeySourceProperty import PrivateKeySourceProperty
from aws_cdk.aws_bedrockagentcore.KmsKeySourceTypeProperty import KmsKeySourceTypeProperty
from aws_cdk.aws_bedrockagentcore.GithubOauth2ProviderConfigInputProperty import GithubOauth2ProviderConfigInputProperty
from aws_cdk.aws_bedrockagentcore.GoogleOauth2ProviderConfigInputProperty import GoogleOauth2ProviderConfigInputProperty
from aws_cdk.aws_bedrockagentcore.IncludedOauth2ProviderConfigInputProperty import IncludedOauth2ProviderConfigInputProperty
from aws_cdk.aws_bedrockagentcore.LinkedinOauth2ProviderConfigInputProperty import LinkedinOauth2ProviderConfigInputProperty
from aws_cdk.aws_bedrockagentcore.MicrosoftOauth2ProviderConfigInputProperty import MicrosoftOauth2ProviderConfigInputProperty
from aws_cdk.aws_bedrockagentcore.SalesforceOauth2ProviderConfigInputProperty import SalesforceOauth2ProviderConfigInputProperty
from aws_cdk.aws_bedrockagentcore.SlackOauth2ProviderConfigInputProperty import SlackOauth2ProviderConfigInputProperty
# 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_props = bedrock_agentcore_alpha.OAuth2CredentialProviderProps(
credential_provider_vendor="credentialProviderVendor",
oauth2_provider_config_input=Oauth2ProviderConfigInputProperty(
atlassian_oauth2_provider_config=AtlassianOauth2ProviderConfigInputProperty(
client_id="clientId",
# the properties below are optional
client_secret="clientSecret",
client_secret_config=SecretReferenceProperty(
json_key="jsonKey",
secret_id="secretId"
),
client_secret_source="clientSecretSource"
),
custom_oauth2_provider_config=CustomOauth2ProviderConfigInputProperty(
oauth_discovery=Oauth2DiscoveryProperty(
authorization_server_metadata=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=[CertificateConfigurationProperty(
s3=S3CertificateConfigurationProperty(
uri="uri",
# the properties below are optional
bucket_owner_account_id="bucketOwnerAccountId"
),
secrets_manager=SecretsManagerCertificateConfigurationProperty(
secret_arn="secretArn"
)
)],
client_authentication_method="clientAuthenticationMethod",
client_id="clientId",
client_secret="clientSecret",
client_secret_config=SecretReferenceProperty(
json_key="jsonKey",
secret_id="secretId"
),
client_secret_source="clientSecretSource",
on_behalf_of_token_exchange_config=OnBehalfOfTokenExchangeConfigProperty(
grant_type="grantType",
# the properties below are optional
token_exchange_grant_type_config=TokenExchangeGrantTypeConfigProperty(
actor_token_content="actorTokenContent",
# the properties below are optional
actor_token_scopes=["actorTokenScopes"]
)
),
private_endpoint=PrivateEndpointProperty(
managed_vpc_resource=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=SelfManagedLatticeResourceProperty(
resource_configuration_identifier="resourceConfigurationIdentifier"
)
),
private_endpoint_overrides=[PrivateEndpointOverrideProperty(
domain="domain",
private_endpoint=PrivateEndpointProperty(
managed_vpc_resource=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=SelfManagedLatticeResourceProperty(
resource_configuration_identifier="resourceConfigurationIdentifier"
)
)
)],
private_key_jwt_config=PrivateKeyJwtConfigProperty(
additional_header_claims={
"additional_header_claims_key": "additionalHeaderClaims"
},
additional_payload_claims={
"additional_payload_claims_key": "additionalPayloadClaims"
},
private_key_source=PrivateKeySourceProperty(
kms_key_source=KmsKeySourceTypeProperty(
kms_key_arn="kmsKeyArn"
)
),
signing_algorithm="signingAlgorithm"
)
),
github_oauth2_provider_config=GithubOauth2ProviderConfigInputProperty(
client_id="clientId",
# the properties below are optional
client_secret="clientSecret",
client_secret_config=SecretReferenceProperty(
json_key="jsonKey",
secret_id="secretId"
),
client_secret_source="clientSecretSource"
),
google_oauth2_provider_config=GoogleOauth2ProviderConfigInputProperty(
client_id="clientId",
# the properties below are optional
client_secret="clientSecret",
client_secret_config=SecretReferenceProperty(
json_key="jsonKey",
secret_id="secretId"
),
client_secret_source="clientSecretSource"
),
included_oauth2_provider_config=IncludedOauth2ProviderConfigInputProperty(
client_id="clientId",
# the properties below are optional
authorization_endpoint="authorizationEndpoint",
client_secret="clientSecret",
client_secret_config=SecretReferenceProperty(
json_key="jsonKey",
secret_id="secretId"
),
client_secret_source="clientSecretSource",
issuer="issuer",
token_endpoint="tokenEndpoint"
),
linkedin_oauth2_provider_config=LinkedinOauth2ProviderConfigInputProperty(
client_id="clientId",
# the properties below are optional
client_secret="clientSecret",
client_secret_config=SecretReferenceProperty(
json_key="jsonKey",
secret_id="secretId"
),
client_secret_source="clientSecretSource"
),
microsoft_oauth2_provider_config=MicrosoftOauth2ProviderConfigInputProperty(
client_id="clientId",
# the properties below are optional
client_secret="clientSecret",
client_secret_config=SecretReferenceProperty(
json_key="jsonKey",
secret_id="secretId"
),
client_secret_source="clientSecretSource",
tenant_id="tenantId"
),
salesforce_oauth2_provider_config=SalesforceOauth2ProviderConfigInputProperty(
client_id="clientId",
# the properties below are optional
client_secret="clientSecret",
client_secret_config=SecretReferenceProperty(
json_key="jsonKey",
secret_id="secretId"
),
client_secret_source="clientSecretSource"
),
slack_oauth2_provider_config=SlackOauth2ProviderConfigInputProperty(
client_id="clientId",
# the properties below are optional
client_secret="clientSecret",
client_secret_config=SecretReferenceProperty(
json_key="jsonKey",
secret_id="secretId"
),
client_secret_source="clientSecretSource"
)
),
# the properties below are optional
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.bedrock.agentcore.alpha.*;
OAuth2CredentialProviderProps oAuth2CredentialProviderProps = OAuth2CredentialProviderProps.builder()
.credentialProviderVendor("credentialProviderVendor")
.oauth2ProviderConfigInput(Oauth2ProviderConfigInputProperty.builder()
.atlassianOauth2ProviderConfig(AtlassianOauth2ProviderConfigInputProperty.builder()
.clientId("clientId")
// the properties below are optional
.clientSecret("clientSecret")
.clientSecretConfig(SecretReferenceProperty.builder()
.jsonKey("jsonKey")
.secretId("secretId")
.build())
.clientSecretSource("clientSecretSource")
.build())
.customOauth2ProviderConfig(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())
.githubOauth2ProviderConfig(GithubOauth2ProviderConfigInputProperty.builder()
.clientId("clientId")
// the properties below are optional
.clientSecret("clientSecret")
.clientSecretConfig(SecretReferenceProperty.builder()
.jsonKey("jsonKey")
.secretId("secretId")
.build())
.clientSecretSource("clientSecretSource")
.build())
.googleOauth2ProviderConfig(GoogleOauth2ProviderConfigInputProperty.builder()
.clientId("clientId")
// the properties below are optional
.clientSecret("clientSecret")
.clientSecretConfig(SecretReferenceProperty.builder()
.jsonKey("jsonKey")
.secretId("secretId")
.build())
.clientSecretSource("clientSecretSource")
.build())
.includedOauth2ProviderConfig(IncludedOauth2ProviderConfigInputProperty.builder()
.clientId("clientId")
// the properties below are optional
.authorizationEndpoint("authorizationEndpoint")
.clientSecret("clientSecret")
.clientSecretConfig(SecretReferenceProperty.builder()
.jsonKey("jsonKey")
.secretId("secretId")
.build())
.clientSecretSource("clientSecretSource")
.issuer("issuer")
.tokenEndpoint("tokenEndpoint")
.build())
.linkedinOauth2ProviderConfig(LinkedinOauth2ProviderConfigInputProperty.builder()
.clientId("clientId")
// the properties below are optional
.clientSecret("clientSecret")
.clientSecretConfig(SecretReferenceProperty.builder()
.jsonKey("jsonKey")
.secretId("secretId")
.build())
.clientSecretSource("clientSecretSource")
.build())
.microsoftOauth2ProviderConfig(MicrosoftOauth2ProviderConfigInputProperty.builder()
.clientId("clientId")
// the properties below are optional
.clientSecret("clientSecret")
.clientSecretConfig(SecretReferenceProperty.builder()
.jsonKey("jsonKey")
.secretId("secretId")
.build())
.clientSecretSource("clientSecretSource")
.tenantId("tenantId")
.build())
.salesforceOauth2ProviderConfig(SalesforceOauth2ProviderConfigInputProperty.builder()
.clientId("clientId")
// the properties below are optional
.clientSecret("clientSecret")
.clientSecretConfig(SecretReferenceProperty.builder()
.jsonKey("jsonKey")
.secretId("secretId")
.build())
.clientSecretSource("clientSecretSource")
.build())
.slackOauth2ProviderConfig(SlackOauth2ProviderConfigInputProperty.builder()
.clientId("clientId")
// the properties below are optional
.clientSecret("clientSecret")
.clientSecretConfig(SecretReferenceProperty.builder()
.jsonKey("jsonKey")
.secretId("secretId")
.build())
.clientSecretSource("clientSecretSource")
.build())
.build())
// the properties below are optional
.oAuth2CredentialProviderName("oAuth2CredentialProviderName")
.tags(Map.of(
"tagsKey", "tags"))
.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 oAuth2CredentialProviderProps = new OAuth2CredentialProviderProps {
CredentialProviderVendor = "credentialProviderVendor",
Oauth2ProviderConfigInput = new Oauth2ProviderConfigInputProperty {
AtlassianOauth2ProviderConfig = new AtlassianOauth2ProviderConfigInputProperty {
ClientId = "clientId",
// the properties below are optional
ClientSecret = "clientSecret",
ClientSecretConfig = new SecretReferenceProperty {
JsonKey = "jsonKey",
SecretId = "secretId"
},
ClientSecretSource = "clientSecretSource"
},
CustomOauth2ProviderConfig = 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"
}
},
GithubOauth2ProviderConfig = new GithubOauth2ProviderConfigInputProperty {
ClientId = "clientId",
// the properties below are optional
ClientSecret = "clientSecret",
ClientSecretConfig = new SecretReferenceProperty {
JsonKey = "jsonKey",
SecretId = "secretId"
},
ClientSecretSource = "clientSecretSource"
},
GoogleOauth2ProviderConfig = new GoogleOauth2ProviderConfigInputProperty {
ClientId = "clientId",
// the properties below are optional
ClientSecret = "clientSecret",
ClientSecretConfig = new SecretReferenceProperty {
JsonKey = "jsonKey",
SecretId = "secretId"
},
ClientSecretSource = "clientSecretSource"
},
IncludedOauth2ProviderConfig = new IncludedOauth2ProviderConfigInputProperty {
ClientId = "clientId",
// the properties below are optional
AuthorizationEndpoint = "authorizationEndpoint",
ClientSecret = "clientSecret",
ClientSecretConfig = new SecretReferenceProperty {
JsonKey = "jsonKey",
SecretId = "secretId"
},
ClientSecretSource = "clientSecretSource",
Issuer = "issuer",
TokenEndpoint = "tokenEndpoint"
},
LinkedinOauth2ProviderConfig = new LinkedinOauth2ProviderConfigInputProperty {
ClientId = "clientId",
// the properties below are optional
ClientSecret = "clientSecret",
ClientSecretConfig = new SecretReferenceProperty {
JsonKey = "jsonKey",
SecretId = "secretId"
},
ClientSecretSource = "clientSecretSource"
},
MicrosoftOauth2ProviderConfig = new MicrosoftOauth2ProviderConfigInputProperty {
ClientId = "clientId",
// the properties below are optional
ClientSecret = "clientSecret",
ClientSecretConfig = new SecretReferenceProperty {
JsonKey = "jsonKey",
SecretId = "secretId"
},
ClientSecretSource = "clientSecretSource",
TenantId = "tenantId"
},
SalesforceOauth2ProviderConfig = new SalesforceOauth2ProviderConfigInputProperty {
ClientId = "clientId",
// the properties below are optional
ClientSecret = "clientSecret",
ClientSecretConfig = new SecretReferenceProperty {
JsonKey = "jsonKey",
SecretId = "secretId"
},
ClientSecretSource = "clientSecretSource"
},
SlackOauth2ProviderConfig = new SlackOauth2ProviderConfigInputProperty {
ClientId = "clientId",
// the properties below are optional
ClientSecret = "clientSecret",
ClientSecretConfig = new SecretReferenceProperty {
JsonKey = "jsonKey",
SecretId = "secretId"
},
ClientSecretSource = "clientSecretSource"
}
},
// the properties below are optional
OAuth2CredentialProviderName = "oAuth2CredentialProviderName",
Tags = new Dictionary<string, string> {
{ "tagsKey", "tags" }
}
};
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"
oAuth2CredentialProviderProps := &OAuth2CredentialProviderProps{
CredentialProviderVendor: jsii.String("credentialProviderVendor"),
Oauth2ProviderConfigInput: &Oauth2ProviderConfigInputProperty{
AtlassianOauth2ProviderConfig: &AtlassianOauth2ProviderConfigInputProperty{
ClientId: jsii.String("clientId"),
// the properties below are optional
ClientSecret: jsii.String("clientSecret"),
ClientSecretConfig: &SecretReferenceProperty{
JsonKey: jsii.String("jsonKey"),
SecretId: jsii.String("secretId"),
},
ClientSecretSource: jsii.String("clientSecretSource"),
},
CustomOauth2ProviderConfig: &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"),
},
},
GithubOauth2ProviderConfig: &GithubOauth2ProviderConfigInputProperty{
ClientId: jsii.String("clientId"),
// the properties below are optional
ClientSecret: jsii.String("clientSecret"),
ClientSecretConfig: &SecretReferenceProperty{
JsonKey: jsii.String("jsonKey"),
SecretId: jsii.String("secretId"),
},
ClientSecretSource: jsii.String("clientSecretSource"),
},
GoogleOauth2ProviderConfig: &GoogleOauth2ProviderConfigInputProperty{
ClientId: jsii.String("clientId"),
// the properties below are optional
ClientSecret: jsii.String("clientSecret"),
ClientSecretConfig: &SecretReferenceProperty{
JsonKey: jsii.String("jsonKey"),
SecretId: jsii.String("secretId"),
},
ClientSecretSource: jsii.String("clientSecretSource"),
},
IncludedOauth2ProviderConfig: &IncludedOauth2ProviderConfigInputProperty{
ClientId: jsii.String("clientId"),
// the properties below are optional
AuthorizationEndpoint: jsii.String("authorizationEndpoint"),
ClientSecret: jsii.String("clientSecret"),
ClientSecretConfig: &SecretReferenceProperty{
JsonKey: jsii.String("jsonKey"),
SecretId: jsii.String("secretId"),
},
ClientSecretSource: jsii.String("clientSecretSource"),
Issuer: jsii.String("issuer"),
TokenEndpoint: jsii.String("tokenEndpoint"),
},
LinkedinOauth2ProviderConfig: &LinkedinOauth2ProviderConfigInputProperty{
ClientId: jsii.String("clientId"),
// the properties below are optional
ClientSecret: jsii.String("clientSecret"),
ClientSecretConfig: &SecretReferenceProperty{
JsonKey: jsii.String("jsonKey"),
SecretId: jsii.String("secretId"),
},
ClientSecretSource: jsii.String("clientSecretSource"),
},
MicrosoftOauth2ProviderConfig: &MicrosoftOauth2ProviderConfigInputProperty{
ClientId: jsii.String("clientId"),
// the properties below are optional
ClientSecret: jsii.String("clientSecret"),
ClientSecretConfig: &SecretReferenceProperty{
JsonKey: jsii.String("jsonKey"),
SecretId: jsii.String("secretId"),
},
ClientSecretSource: jsii.String("clientSecretSource"),
TenantId: jsii.String("tenantId"),
},
SalesforceOauth2ProviderConfig: &SalesforceOauth2ProviderConfigInputProperty{
ClientId: jsii.String("clientId"),
// the properties below are optional
ClientSecret: jsii.String("clientSecret"),
ClientSecretConfig: &SecretReferenceProperty{
JsonKey: jsii.String("jsonKey"),
SecretId: jsii.String("secretId"),
},
ClientSecretSource: jsii.String("clientSecretSource"),
},
SlackOauth2ProviderConfig: &SlackOauth2ProviderConfigInputProperty{
ClientId: jsii.String("clientId"),
// the properties below are optional
ClientSecret: jsii.String("clientSecret"),
ClientSecretConfig: &SecretReferenceProperty{
JsonKey: jsii.String("jsonKey"),
SecretId: jsii.String("secretId"),
},
ClientSecretSource: jsii.String("clientSecretSource"),
},
},
// the properties below are optional
OAuth2CredentialProviderName: jsii.String("oAuth2CredentialProviderName"),
Tags: map[string]*string{
"tagsKey": jsii.String("tags"),
},
}
Properties
credentialProviderVendorstringcredential_provider_vendorstrcredentialProviderVendorStringCredentialProviderVendorstringCredentialProviderVendor*string required #OAuth2 vendor string for CloudFormation `CredentialProviderVendor`.
oAuth2CredentialProviderNameoptionalstringo_auth2_credential_provider_nameoptionalstroAuth2CredentialProviderNameoptionalStringOAuth2CredentialProviderNameoptionalstringOAuth2CredentialProviderNameoptional*string #Name of the credential provider.
Default: a name generated by CDK
oauth2ProviderConfigInputCfnOAuth2CredentialProvider.oauth2_provider_config_inputOauth2ProviderConfigInputPropertyoauth2ProviderConfigInputOauth2ProviderConfigInputPropertyOauth2ProviderConfigInputOauth2ProviderConfigInputPropertyOauth2ProviderConfigInputOauth2ProviderConfigInputProperty required #OAuth2 provider configuration passed through to `Oauth2ProviderConfigInput`.
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