# CfnIdentityPoolPrincipalTagProps

Properties for defining a `CfnIdentityPoolPrincipalTag`.

Used as props by: [CfnIdentityPoolPrincipalTag](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_cognito.CfnIdentityPoolPrincipalTag.html)

- Source: Generated at build time
- Type last changed: v2.82.0 · 2 Jun 2023

## Example

TypeScript:

```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:

```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:

```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();
```

C# / .NET:

```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
};
```

Golang:

```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

- `identityPoolId`: string (required) — The identity pool that you want to associate with this principal tag map.

- `identityProviderName`: string (required) — The identity pool identity provider (IdP) that you want to associate with this principal tag map.

- `principalTags`: any — 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.

- `useDefaults`: boolean | [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) — Use a default set of mappings between claims and tags for this provider, instead of a custom map.
