UserPoolIdentityProviderFacebook

class aws_cdk.aws_cognito.UserPoolIdentityProviderFacebook(scope, id, *, client_id, client_secret, api_version=None, scopes=None, user_pool, attribute_mapping=None)

Bases: aws_cdk.core.Resource

Represents a identity provider that integrates with ‘Facebook Login’.

Resource

AWS::Cognito::UserPoolIdentityProvider

Parameters
  • scope (Construct) –

  • id (str) –

  • client_id (str) – The client id recognized by Facebook APIs.

  • client_secret (str) – The client secret to be accompanied with clientUd for Facebook to authenticate the client.

  • api_version (Optional[str]) – The Facebook API version to use. Default: - to the oldest version supported by Facebook

  • scopes (Optional[List[str]]) – The list of facebook permissions to obtain for getting access to the Facebook profile. Default: [ public_profile ]

  • user_pool (IUserPool) – The user pool to which this construct provides identities.

  • attribute_mapping (Optional[AttributeMapping]) – Mapping attributes from the identity provider to standard and custom attributes of the user pool. Default: - no attribute mapping

Methods

to_string()

Returns a string representation of this construct.

Return type

str

Attributes

env

The environment this resource belongs to.

For resources that are created and managed by the CDK (generally, those created by creating new class instances like Role, Bucket, etc.), this is always the same as the environment of the stack they belong to; however, for imported resources (those obtained from static methods like fromRoleArn, fromBucketName, etc.), that might be different than the stack they were imported into.

Return type

ResourceEnvironment

node

The construct tree node associated with this construct.

Return type

ConstructNode

provider_name

The primary identifier of this identity provider.

Return type

str

stack

The stack in which this resource is defined.

Return type

Stack

Static Methods

classmethod is_construct(x)

Return whether the given object is a Construct.

Parameters

x (Any) –

Return type

bool