UserPoolConfig

class aws_cdk.aws_appsync.UserPoolConfig(*, user_pool, app_id_client_regex=None, default_action=None)

Bases: object

Configuration for Cognito user-pools in AppSync.

Parameters:
  • user_pool (IUserPool) – The Cognito user pool to use as identity source.

  • app_id_client_regex (Optional[str]) – the optional app id regex. Default: - None

  • default_action (Optional[UserPoolDefaultAction]) – Default auth action. Default: ALLOW

ExampleMetadata:

fixture=_generated

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_appsync as appsync
from aws_cdk import aws_cognito as cognito

# user_pool: cognito.UserPool

user_pool_config = appsync.UserPoolConfig(
    user_pool=user_pool,

    # the properties below are optional
    app_id_client_regex="appIdClientRegex",
    default_action=appsync.UserPoolDefaultAction.ALLOW
)

Attributes

app_id_client_regex

the optional app id regex.

Default:
  • None

default_action

Default auth action.

Default:

ALLOW

user_pool

The Cognito user pool to use as identity source.