Skip to content
v2.278.0

CfnAssignmentProps Struct ​

Properties for defining a CfnAssignment.

Example ​

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
# 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
// 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();
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"
};
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 ​

instanceArnstringinstance_arnstrinstanceArnStringInstanceArnstringInstanceArn*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 in the AWS General Reference .

permissionSetArnstringpermission_set_arnstrpermissionSetArnStringPermissionSetArnstringPermissionSetArn*string required #
The ARN of the permission set.
principalIdstringprincipal_idstrprincipalIdStringPrincipalIdstringPrincipalId*string required #
An identifier for an object in IAM Identity Center, such as a user or group.
notes

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 .

principalTypestringprincipal_typestrprincipalTypeStringPrincipalTypestringPrincipalType*string required #
The entity type for which the assignment will be created.
targetIdstringtarget_idstrtargetIdStringTargetIdstringTargetId*string required #
TargetID is an AWS account identifier, (For example, 123456789012).
targetTypestringtarget_typestrtargetTypeStringTargetTypestringTargetType*string required #
The entity type for which the assignment will be created.