CfnIdentitySourcePropsMixin Mixin
Creates or updates a reference to Amazon Cognito as an external identity provider.
If you are creating a new identity source, then you must specify a Configuration . If you are updating an existing identity source, then you must specify an UpdateConfiguration .
After you create an identity source, you can use the identities provided by the IdP as proxies for the principal in authorization queries that use the IsAuthorizedWithToken operation. These identities take the form of tokens that contain claims about the user, such as IDs, attributes and group memberships. Amazon Cognito provides both identity tokens and access tokens, and Verified Permissions can use either or both. Any combination of identity and access tokens results in the same Cedar principal. Verified Permissions automatically translates the information about the identities into the standard Cedar attributes that can be evaluated by your policies. Because the Amazon Cognito identity and access tokens can contain different information, the tokens you choose to use determine the attributes that are available to access in the Cedar principal from your policies.
Amazon Cognito Identity is not available in all of the same AWS Regions as . Because of this, the AWS::VerifiedPermissions::IdentitySource type is not available to create from CloudFormation in Regions where Amazon Cognito Identity is not currently available. Users can still create AWS::VerifiedPermissions::IdentitySource in those Regions, but only from the AWS CLI , SDK, or from the AWS console.
To reference a user from this identity source in your Cedar policies, use the following syntax.
IdentityType::"<CognitoUserPoolIdentifier>|<CognitoClientId>
Where
IdentityTypeis the string that you provide to thePrincipalEntityTypeparameter for this operation. TheCognitoUserPoolIdandCognitoClientIdare defined by the Amazon Cognito user pool.
- CloudFormation
AWS::VerifiedPermissions::IdentitySource- Source
- Generated code
- Type last changed
- v2.269.0 · 16 Sep 2026
Initializer
new CfnIdentitySourcePropsMixin(props: CfnIdentitySourceMixinProps, options?: CfnPropertyMixinOptions)
CfnIdentitySourcePropsMixin(props: CfnIdentitySourceMixinProps, options: typing.Optional[CfnPropertyMixinOptions] = None)
new CfnIdentitySourcePropsMixin(CfnIdentitySourceMixinProps props, CfnPropertyMixinOptions options)
new CfnIdentitySourcePropsMixin(CfnIdentitySourceMixinProps props, CfnPropertyMixinOptions? options = null)
NewCfnIdentitySourcePropsMixin(Props CfnIdentitySourceMixinProps, Options CfnPropertyMixinOptions)
Methods
applyTo(construct: IConstruct): voiddef apply_to(self, construct: IConstruct) -> Nonepublic void applyTo(IConstruct construct)public void ApplyTo(IConstruct construct)func ApplyTo(Construct IConstruct)#isMixin(x: any): boolean@staticmethod def is_mixin(x: Any) -> boolpublic static Boolean isMixin(Object x)public static bool IsMixin(object x)func IsMixin(X interface{}) *boolstatic#1 parameter · returns
Parameters
xxxxX— Any object.
Returns: true if x is an object created from a class which extends Mixin.
supports(construct: IConstruct): booleandef supports(self, construct: IConstruct) -> boolpublic Boolean supports(IConstruct construct)public bool Supports(IConstruct construct)func Supports(Construct IConstruct) *bool#