@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:42.347Z") @Stability(value=Stable) public class CfnAssignment extends CfnResource implements IInspectable
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 AWS SSO .
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();
| Modifier and Type | Class and Description |
|---|---|
static class |
CfnAssignment.Builder
A fluent builder for
CfnAssignment. |
software.amazon.jsii.JsiiObject.InitializationModeIInspectable.Jsii$Default, IInspectable.Jsii$Proxy| Modifier and Type | Field and Description |
|---|---|
static String |
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
|
| Modifier | Constructor and Description |
|---|---|
|
CfnAssignment(software.constructs.Construct scope,
String id,
CfnAssignmentProps props)
Create a new `AWS::SSO::Assignment`.
|
protected |
CfnAssignment(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
CfnAssignment(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
protected Map<String,Object> |
getCfnProperties() |
String |
getInstanceArn()
The ARN of the SSO instance under which the operation will be executed.
|
String |
getPermissionSetArn()
The ARN of the permission set.
|
String |
getPrincipalId()
An identifier for an object in AWS SSO , such as a user or group.
|
String |
getPrincipalType()
The entity type for which the assignment will be created.
|
String |
getTargetId()
TargetID is an AWS account identifier, typically a 10-12 digit string (For example, 123456789012).
|
String |
getTargetType()
The entity type for which the assignment will be created.
|
void |
inspect(TreeInspector inspector)
Examines the CloudFormation resource and discloses attributes.
|
protected Map<String,Object> |
renderProperties(Map<String,Object> props) |
void |
setInstanceArn(String value)
The ARN of the SSO instance under which the operation will be executed.
|
void |
setPermissionSetArn(String value)
The ARN of the permission set.
|
void |
setPrincipalId(String value)
An identifier for an object in AWS SSO , such as a user or group.
|
void |
setPrincipalType(String value)
The entity type for which the assignment will be created.
|
void |
setTargetId(String value)
TargetID is an AWS account identifier, typically a 10-12 digit string (For example, 123456789012).
|
void |
setTargetType(String value)
The entity type for which the assignment will be created.
|
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, shouldSynthesize, toString, validatePropertiesgetRefgetCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdjsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet@Stability(value=Stable) public static final String CFN_RESOURCE_TYPE_NAME
protected CfnAssignment(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnAssignment(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public CfnAssignment(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@NotNull
CfnAssignmentProps props)
scope - - scope in which this resource is defined. This parameter is required.id - - scoped id of the resource. This parameter is required.props - - resource properties. This parameter is required.@Stability(value=Stable)
public void inspect(@NotNull
TreeInspector inspector)
inspect in interface IInspectableinspector - - tree inspector to collect and process attributes. This parameter is required.@Stability(value=Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String,Object> props)
renderProperties in class CfnResourceprops - This parameter is required.@Stability(value=Stable) @NotNull protected Map<String,Object> getCfnProperties()
getCfnProperties in class CfnResource@Stability(value=Stable) @NotNull public String getInstanceArn()
For more information about ARNs, see Amazon Resource Names (ARNs) and AWS Service Namespaces in the AWS General Reference .
@Stability(value=Stable)
public void setInstanceArn(@NotNull
String value)
For more information about ARNs, see Amazon Resource Names (ARNs) and AWS Service Namespaces in the AWS General Reference .
@Stability(value=Stable) @NotNull public String getPermissionSetArn()
@Stability(value=Stable)
public void setPermissionSetArn(@NotNull
String value)
@Stability(value=Stable) @NotNull public String getPrincipalId()
PrincipalIds are GUIDs (For example, f81d4fae-7dec-11d0-a765-00a0c91e6bf6). For more information about PrincipalIds in AWS SSO , see the AWS SSO Identity Store API Reference .
@Stability(value=Stable)
public void setPrincipalId(@NotNull
String value)
PrincipalIds are GUIDs (For example, f81d4fae-7dec-11d0-a765-00a0c91e6bf6). For more information about PrincipalIds in AWS SSO , see the AWS SSO Identity Store API Reference .
@Stability(value=Stable) @NotNull public String getPrincipalType()
@Stability(value=Stable)
public void setPrincipalType(@NotNull
String value)
@Stability(value=Stable) @NotNull public String getTargetId()
@Stability(value=Stable)
public void setTargetId(@NotNull
String value)
@Stability(value=Stable) @NotNull public String getTargetType()
@Stability(value=Stable)
public void setTargetType(@NotNull
String value)
Copyright © 2022. All rights reserved.