CfnIdentityPoolPrincipalTagProps Struct
Properties for defining a CfnIdentityPoolPrincipalTag.
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_cognito as cognito } from 'aws-cdk-lib';
declare const principalTags: any;
const cfnIdentityPoolPrincipalTagProps: cognito.CfnIdentityPoolPrincipalTagProps = {
identityPoolId: 'identityPoolId',
identityProviderName: 'identityProviderName',
// the properties below are optional
principalTags: principalTags,
useDefaults: false,
};
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_cognito as cognito
# principal_tags: Any
cfn_identity_pool_principal_tag_props = cognito.CfnIdentityPoolPrincipalTagProps(
identity_pool_id="identityPoolId",
identity_provider_name="identityProviderName",
# the properties below are optional
principal_tags=principal_tags,
use_defaults=False
)
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.cognito.*;
Object principalTags;
CfnIdentityPoolPrincipalTagProps cfnIdentityPoolPrincipalTagProps = CfnIdentityPoolPrincipalTagProps.builder()
.identityPoolId("identityPoolId")
.identityProviderName("identityProviderName")
// the properties below are optional
.principalTags(principalTags)
.useDefaults(false)
.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.Cognito;
var principalTags;
var cfnIdentityPoolPrincipalTagProps = new CfnIdentityPoolPrincipalTagProps {
IdentityPoolId = "identityPoolId",
IdentityProviderName = "identityProviderName",
// the properties below are optional
PrincipalTags = principalTags,
UseDefaults = false
};
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"
var principalTags interface{}
cfnIdentityPoolPrincipalTagProps := &CfnIdentityPoolPrincipalTagProps{
IdentityPoolId: jsii.String("identityPoolId"),
IdentityProviderName: jsii.String("identityProviderName"),
// the properties below are optional
PrincipalTags: principalTags,
UseDefaults: jsii.Boolean(false),
}
Properties
identityPoolIdstringidentity_pool_idstridentityPoolIdStringIdentityPoolIdstringIdentityPoolId*stringrequired#The identity pool that you want to associate with this principal tag map.
identityProviderNamestringidentity_provider_namestridentityProviderNameStringIdentityProviderNamestringIdentityProviderName*stringrequired#The identity pool identity provider (IdP) that you want to associate with this principal tag map.
principalTagsoptionalanyprincipal_tagsoptionalAnyprincipalTagsoptionalObjectPrincipalTagsoptionalobjectPrincipalTagsoptionalinterface{}#A JSON-formatted list of user claims and the principal tags that you want to associate with them.
When Amazon Cognito requests credentials, it sets the value of the principal tag to the value of the user's claim.
useDefaultsoptionalboolean | IResolvableuse_defaultsoptionaltyping.Union[bool, IResolvable]useDefaultsoptionalBooleanUseDefaultsoptionalboolUseDefaultsoptionalinterface{}#Use a default set of mappings between claims and tags for this provider, instead of a custom map.