Class CfnAssignment
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.CfnElement
software.amazon.awscdk.CfnRefElement
software.amazon.awscdk.CfnResource
software.amazon.awscdk.services.sso.CfnAssignment
- All Implemented Interfaces:
IInspectable,IAssignmentRef,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.116.0 (build 0eddcff)",
date="2025-10-24T13:34:47.741Z")
@Stability(Stable)
public class CfnAssignment
extends CfnResource
implements IInspectable, IAssignmentRef
Assigns access to a Principal for a specified AWS account using a specified permission set.
The term principal here refers to a user or group that is defined in IAM Identity Center .
Example:
// 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.*;
CfnAssignment cfnAssignment = CfnAssignment.Builder.create(this, "MyCfnAssignment")
.instanceArn("instanceArn")
.permissionSetArn("permissionSetArn")
.principalId("principalId")
.principalType("principalType")
.targetId("targetId")
.targetType("targetType")
.build();
- See Also:
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.amazon.awscdk.services.sso.IAssignmentRef
IAssignmentRef.Jsii$Default, IAssignmentRef.Jsii$ProxyNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCfnAssignment(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnAssignment(software.amazon.jsii.JsiiObjectRef objRef) CfnAssignment(software.constructs.Construct scope, String id, CfnAssignmentProps props) -
Method Summary
Modifier and TypeMethodDescriptionA reference to a Assignment resource.The ARN of the IAM Identity Center instance under which the operation will be executed.The ARN of the permission set.An identifier for an object in IAM Identity Center, such as a user or group.The entity type for which the assignment will be created.TargetID is an AWS account identifier, (For example, 123456789012).The entity type for which the assignment will be created.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties(Map<String, Object> props) voidsetInstanceArn(String value) The ARN of the IAM Identity Center instance under which the operation will be executed.voidsetPermissionSetArn(String value) The ARN of the permission set.voidsetPrincipalId(String value) An identifier for an object in IAM Identity Center, such as a user or group.voidsetPrincipalType(String value) The entity type for which the assignment will be created.voidsetTargetId(String value) TargetID is an AWS account identifier, (For example, 123456789012).voidsetTargetType(String value) The entity type for which the assignment will be created.Methods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, obtainResourceDependencies, removeDependency, replaceDependency, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdMethods inherited from class software.constructs.Construct
getNode, isConstructMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.constructs.IConstruct
getNodeMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
-
-
Constructor Details
-
CfnAssignment
protected CfnAssignment(software.amazon.jsii.JsiiObjectRef objRef) -
CfnAssignment
protected CfnAssignment(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnAssignment
@Stability(Stable) public CfnAssignment(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnAssignmentProps props) - Parameters:
scope- Scope in which this resource is defined. This parameter is required.id- Construct identifier for this resource (unique in its scope). This parameter is required.props- Resource properties. This parameter is required.
-
-
Method Details
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspectin interfaceIInspectable- Parameters:
inspector- tree inspector to collect and process attributes. This parameter is required.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderPropertiesin classCfnResource- Parameters:
props- This parameter is required.
-
getAssignmentRef
A reference to a Assignment resource.- Specified by:
getAssignmentRefin interfaceIAssignmentRef
-
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getInstanceArn
The ARN of the IAM Identity Center instance under which the operation will be executed. -
setInstanceArn
The ARN of the IAM Identity Center instance under which the operation will be executed. -
getPermissionSetArn
The ARN of the permission set. -
setPermissionSetArn
The ARN of the permission set. -
getPrincipalId
An identifier for an object in IAM Identity Center, such as a user or group. -
setPrincipalId
An identifier for an object in IAM Identity Center, such as a user or group. -
getPrincipalType
The entity type for which the assignment will be created. -
setPrincipalType
The entity type for which the assignment will be created. -
getTargetId
TargetID is an AWS account identifier, (For example, 123456789012). -
setTargetId
TargetID is an AWS account identifier, (For example, 123456789012). -
getTargetType
The entity type for which the assignment will be created. -
setTargetType
The entity type for which the assignment will be created.
-