# CfnAssignmentProps

Properties for defining a `CfnAssignment`.

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

- Source: Generated at build time

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_sso as sso } from 'aws-cdk-lib';
const cfnAssignmentProps: sso.CfnAssignmentProps = {
  instanceArn: 'instanceArn',
  permissionSetArn: 'permissionSetArn',
  principalId: 'principalId',
  principalType: 'principalType',
  targetId: 'targetId',
  targetType: 'targetType',
};
```

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_sso as sso

cfn_assignment_props = sso.CfnAssignmentProps(
    instance_arn="instanceArn",
    permission_set_arn="permissionSetArn",
    principal_id="principalId",
    principal_type="principalType",
    target_id="targetId",
    target_type="targetType"
)
```

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.sso.*;

CfnAssignmentProps cfnAssignmentProps = CfnAssignmentProps.builder()
        .instanceArn("instanceArn")
        .permissionSetArn("permissionSetArn")
        .principalId("principalId")
        .principalType("principalType")
        .targetId("targetId")
        .targetType("targetType")
        .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.SSO;

var cfnAssignmentProps = new CfnAssignmentProps {
    InstanceArn = "instanceArn",
    PermissionSetArn = "permissionSetArn",
    PrincipalId = "principalId",
    PrincipalType = "principalType",
    TargetId = "targetId",
    TargetType = "targetType"
};
```

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"

cfnAssignmentProps := &CfnAssignmentProps{
	InstanceArn: jsii.String("instanceArn"),
	PermissionSetArn: jsii.String("permissionSetArn"),
	PrincipalId: jsii.String("principalId"),
	PrincipalType: jsii.String("principalType"),
	TargetId: jsii.String("targetId"),
	TargetType: jsii.String("targetType"),
}
```

## Properties

- `instanceArn`: string (required) — The ARN of the instance under which the operation will be executed.

  For more information about ARNs, see [Amazon Resource Names (ARNs) and AWS Service Namespaces](https://docs.aws.amazon.com//general/latest/gr/aws-arns-and-namespaces.html) in the *AWS General Reference* .

- `permissionSetArn`: string (required) — The ARN of the permission set.

- `principalId`: string (required) — An identifier for an object in IAM Identity Center, such as a user or group.

  PrincipalIds are GUIDs (For example, f81d4fae-7dec-11d0-a765-00a0c91e6bf6). For more information about PrincipalIds in IAM Identity Center, see the [IAM Identity Center Identity Store API Reference](https://docs.aws.amazon.com//singlesignon/latest/IdentityStoreAPIReference/welcome.html) .

- `principalType`: string (required) — The entity type for which the assignment will be created.

- `targetId`: string (required) — TargetID is an AWS account identifier, (For example, 123456789012).

- `targetType`: string (required) — The entity type for which the assignment will be created.
