OAuth2ClientCredentials

class aws_cdk.aws_bedrock_agentcore_alpha.OAuth2ClientCredentials(*, client_id, client_secret)

Bases: object

(experimental) OAuth2 client identifier and secret registered with the identity provider (all vendors).

Parameters:
  • client_id (str) – (experimental) OAuth2 client identifier.

  • client_secret (SecretValue) – (experimental) 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.

Stability:

experimental

ExampleMetadata:

fixture=_generated

Example:

# 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

o_auth2_client_credentials = bedrock_agentcore_alpha.OAuth2ClientCredentials(
    client_id="clientId",
    client_secret=secret_value
)

Attributes

client_id

(experimental) OAuth2 client identifier.

Stability:

experimental

client_secret

(experimental) 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.

Stability:

experimental