Skip to content
v2.278.0

CognitoConfigProperty ​

Struct External

Describes an Amazon Cognito configuration.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_appsync as appsync } from 'aws-cdk-lib';
const cognitoConfigProperty: appsync.CfnApi.CognitoConfigProperty = {
  awsRegion: 'awsRegion',
  userPoolId: 'userPoolId',

  // the properties below are optional
  appIdClientRegex: 'appIdClientRegex',
};
python
# 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

cognito_config_property = appsync.CfnApi.CognitoConfigProperty(
    aws_region="awsRegion",
    user_pool_id="userPoolId",

    # the properties below are optional
    app_id_client_regex="appIdClientRegex"
)
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.appsync.*;

CognitoConfigProperty cognitoConfigProperty = CognitoConfigProperty.builder()
        .awsRegion("awsRegion")
        .userPoolId("userPoolId")

        // the properties below are optional
        .appIdClientRegex("appIdClientRegex")
        .build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.AppSync;

var cognitoConfigProperty = new CognitoConfigProperty {
    AwsRegion = "awsRegion",
    UserPoolId = "userPoolId",

    // the properties below are optional
    AppIdClientRegex = "appIdClientRegex"
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

cognitoConfigProperty := &CognitoConfigProperty{
	AwsRegion: jsii.String("awsRegion"),
	UserPoolId: jsii.String("userPoolId"),

	// the properties below are optional
	AppIdClientRegex: jsii.String("appIdClientRegex"),
}

Properties ​

appIdClientRegexoptionalstringapp_id_client_regexoptionalstrappIdClientRegexoptionalStringAppIdClientRegexoptionalstringAppIdClientRegexoptional*string #
A regular expression for validating the incoming Amazon Cognito user pool app client ID.

If this value isn't set, no filtering is applied.

awsRegionstringaws_regionstrawsRegionStringAwsRegionstringAwsRegion*string required #
The AWS Region in which the user pool was created.
userPoolIdstringuser_pool_idstruserPoolIdStringUserPoolIdstringUserPoolId*string required #
The user pool ID.