interface OAuth2ClientCredentials
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.Bedrock.Agentcore.Alpha.OAuth2ClientCredentials |
Go | github.com/aws/aws-cdk-go/awsbedrockagentcorealpha/v2#OAuth2ClientCredentials |
Java | software.amazon.awscdk.services.bedrock.agentcore.alpha.OAuth2ClientCredentials |
Python | aws_cdk.aws_bedrock_agentcore_alpha.OAuth2ClientCredentials |
TypeScript (source) | @aws-cdk/aws-bedrock-agentcore-alpha ยป OAuth2ClientCredentials |
OAuth2 client identifier and secret registered with the identity provider (all vendors).
Example
// 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 oAuth2ClientCredentials: bedrock_agentcore_alpha.OAuth2ClientCredentials = {
clientId: 'clientId',
clientSecret: secretValue,
};
Properties
| Name | Type | Description |
|---|---|---|
| client | string | OAuth2 client identifier. |
| client | Secret | OAuth2 client secret. |
clientId
Type:
string
OAuth2 client identifier.
clientSecret
Type:
Secret
OAuth2 client secret.
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.

.NET
Go
Java
Python
TypeScript (