Skip to content
v2.278.0

IncludedOauth2TenantCredentialProviderProps Struct ​

Props for IncludedOauth2ProviderConfig IdPs whose outbound documentation requires issuer, authorizationEndpoint, and/or tokenEndpoint (for example Okta, Auth0, Amazon Cognito, OneLogin, PingOne, CyberArk, FusionAuth).

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';
import * as cdk from 'aws-cdk-lib';

declare const secretValue: cdk.SecretValue;
const includedOauth2TenantCredentialProviderProps: bedrock_agentcore_alpha.IncludedOauth2TenantCredentialProviderProps = {
  clientId: 'clientId',
  clientSecret: secretValue,

  // the properties below are optional
  authorizationEndpoint: 'authorizationEndpoint',
  issuer: 'issuer',
  oAuth2CredentialProviderName: 'oAuth2CredentialProviderName',
  tags: {
    tagsKey: 'tags',
  },
  tokenEndpoint: 'tokenEndpoint',
};
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
import aws_cdk as cdk

# secret_value: cdk.SecretValue

included_oauth2_tenant_credential_provider_props = bedrock_agentcore_alpha.IncludedOauth2TenantCredentialProviderProps(
    client_id="clientId",
    client_secret=secret_value,

    # the properties below are optional
    authorization_endpoint="authorizationEndpoint",
    issuer="issuer",
    o_auth2_credential_provider_name="oAuth2CredentialProviderName",
    tags={
        "tags_key": "tags"
    },
    token_endpoint="tokenEndpoint"
)
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.*;
import software.amazon.awscdk.*;

SecretValue secretValue;

IncludedOauth2TenantCredentialProviderProps includedOauth2TenantCredentialProviderProps = IncludedOauth2TenantCredentialProviderProps.builder()
        .clientId("clientId")
        .clientSecret(secretValue)

        // the properties below are optional
        .authorizationEndpoint("authorizationEndpoint")
        .issuer("issuer")
        .oAuth2CredentialProviderName("oAuth2CredentialProviderName")
        .tags(Map.of(
                "tagsKey", "tags"))
        .tokenEndpoint("tokenEndpoint")
        .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;
using Amazon.CDK;

SecretValue secretValue;

var includedOauth2TenantCredentialProviderProps = new IncludedOauth2TenantCredentialProviderProps {
    ClientId = "clientId",
    ClientSecret = secretValue,

    // the properties below are optional
    AuthorizationEndpoint = "authorizationEndpoint",
    Issuer = "issuer",
    OAuth2CredentialProviderName = "oAuth2CredentialProviderName",
    Tags = new Dictionary<string, string> {
        { "tagsKey", "tags" }
    },
    TokenEndpoint = "tokenEndpoint"
};
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"
import cdk "github.com/aws/aws-cdk-go/awscdk"

var secretValue SecretValue

includedOauth2TenantCredentialProviderProps := &IncludedOauth2TenantCredentialProviderProps{
	ClientId: jsii.String("clientId"),
	ClientSecret: secretValue,

	// the properties below are optional
	AuthorizationEndpoint: jsii.String("authorizationEndpoint"),
	Issuer: jsii.String("issuer"),
	OAuth2CredentialProviderName: jsii.String("oAuth2CredentialProviderName"),
	Tags: map[string]*string{
		"tagsKey": jsii.String("tags"),
	},
	TokenEndpoint: jsii.String("tokenEndpoint"),
}

Properties ​

authorizationEndpointoptionalstringauthorization_endpointoptionalstrauthorizationEndpointoptionalStringAuthorizationEndpointoptionalstringAuthorizationEndpointoptional*string #
OAuth2 authorization endpoint for your tenant.

Default: not specified; use when your IdP requires an explicit endpoint

clientIdstringclient_idstrclientIdStringClientIdstringClientId*string required #
OAuth2 client identifier.
clientSecretSecretValueclient_secretSecretValueclientSecretSecretValueClientSecretSecretValueClientSecretSecretValue required #
OAuth2 client secret.
notes

NOTE: The client secret will be included in the CloudFormation template as part of synthesis. The service stores the secret in Secrets Manager after creation, but the value is visible in the template and deployment history. Use SecretValue.unsafePlainText() to explicitly acknowledge plaintext, or pass a reference from another construct to avoid embedding the literal value.

issueroptionalstringissueroptionalstrissueroptionalStringIssueroptionalstringIssueroptional*string #
Token issuer URL for your tenant (often the IdP base or issuer URI).

Default: not specified; use when your IdP requires an explicit issuer

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

tokenEndpointoptionalstringtoken_endpointoptionalstrtokenEndpointoptionalStringTokenEndpointoptionalstringTokenEndpointoptional*string #
OAuth2 token endpoint for your tenant.

Default: not specified; use when your IdP requires an explicit endpoint