CognitoAuthorizerProps
- class aws_cdk.aws_bedrock_agentcore_alpha.CognitoAuthorizerProps(*, user_pool, allowed_audiences=None, allowed_clients=None, allowed_scopes=None, custom_claims=None)
Bases:
object(deprecated) Properties for configuring a Cognito authorizer.
- Parameters:
user_pool (
IUserPool) – (deprecated) The Cognito User Pool to use for authentication.allowed_audiences (
Optional[Sequence[str]]) – (deprecated) The allowed audiences for JWT validation. Default: - No audience validationallowed_clients (
Optional[Sequence[IUserPoolClient]]) – (deprecated) The allowed User Pool clients. Default: - All clients are allowedallowed_scopes (
Optional[Sequence[str]]) – (deprecated) The allowed scopes for JWT validation. Default: - No scope validationcustom_claims (
Optional[Sequence[GatewayCustomClaim]]) – (deprecated) Custom claims for additional JWT token validation. Allows you to validate additional fields in JWT tokens beyond the standard audience, client, and scope validations. Default: - No custom claim validation
- Deprecated:
Use the equivalent construct from
aws-cdk-lib/aws-bedrockagentcoreinstead.- Stability:
deprecated
- 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 from aws_cdk import aws_cognito as cognito # gateway_custom_claim: bedrock_agentcore_alpha.GatewayCustomClaim # user_pool: cognito.UserPool # user_pool_client: cognito.UserPoolClient cognito_authorizer_props = bedrock_agentcore_alpha.CognitoAuthorizerProps( user_pool=user_pool, # the properties below are optional allowed_audiences=["allowedAudiences"], allowed_clients=[user_pool_client], allowed_scopes=["allowedScopes"], custom_claims=[gateway_custom_claim] )
Attributes
- allowed_audiences
(deprecated) The allowed audiences for JWT validation.
- Default:
No audience validation
- Stability:
deprecated
- allowed_clients
(deprecated) The allowed User Pool clients.
- Default:
All clients are allowed
- Stability:
deprecated
- allowed_scopes
(deprecated) The allowed scopes for JWT validation.
- Default:
No scope validation
- Stability:
deprecated
- custom_claims
(deprecated) Custom claims for additional JWT token validation.
Allows you to validate additional fields in JWT tokens beyond the standard audience, client, and scope validations.
- Default:
No custom claim validation
- Stability:
deprecated
- user_pool
(deprecated) The Cognito User Pool to use for authentication.
- Stability:
deprecated