Class: AWSCDK::SSO::CfnAssignmentProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::SSO::CfnAssignmentProps
- Defined in:
- sso/cfn_assignment_props.rb
Overview
Properties for defining a CfnAssignment.
Instance Attribute Summary collapse
-
#instance_arn ⇒ String
readonly
The ARN of the instance under which the operation will be executed.
-
#permission_set_arn ⇒ String
readonly
The ARN of the permission set.
-
#principal_id ⇒ String
readonly
An identifier for an object in IAM Identity Center, such as a user or group.
-
#principal_type ⇒ String
readonly
The entity type for which the assignment will be created.
-
#target_id ⇒ String
readonly
TargetID is an AWS account identifier, (For example, 123456789012).
-
#target_type ⇒ String
readonly
The entity type for which the assignment will be created.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(instance_arn:, permission_set_arn:, principal_id:, principal_type:, target_id:, target_type:) ⇒ CfnAssignmentProps
constructor
A new instance of CfnAssignmentProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(instance_arn:, permission_set_arn:, principal_id:, principal_type:, target_id:, target_type:) ⇒ CfnAssignmentProps
Returns a new instance of CfnAssignmentProps.
15 16 17 18 19 20 21 22 23 24 25 26 27 28 |
# File 'sso/cfn_assignment_props.rb', line 15 def initialize(instance_arn:, permission_set_arn:, principal_id:, principal_type:, target_id:, target_type:) @instance_arn = instance_arn Jsii::Type.check_type(@instance_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "instanceArn") @permission_set_arn = Jsii::Type.check_type(@permission_set_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "permissionSetArn") @principal_id = principal_id Jsii::Type.check_type(@principal_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "principalId") @principal_type = principal_type Jsii::Type.check_type(@principal_type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "principalType") @target_id = target_id Jsii::Type.check_type(@target_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "targetId") @target_type = target_type Jsii::Type.check_type(@target_type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "targetType") end |
Instance Attribute Details
#instance_arn ⇒ String (readonly)
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 .
36 37 38 |
# File 'sso/cfn_assignment_props.rb', line 36 def instance_arn @instance_arn end |
#permission_set_arn ⇒ String (readonly)
The ARN of the permission set.
41 42 43 |
# File 'sso/cfn_assignment_props.rb', line 41 def @permission_set_arn end |
#principal_id ⇒ String (readonly)
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 .
48 49 50 |
# File 'sso/cfn_assignment_props.rb', line 48 def principal_id @principal_id end |
#principal_type ⇒ String (readonly)
The entity type for which the assignment will be created.
53 54 55 |
# File 'sso/cfn_assignment_props.rb', line 53 def principal_type @principal_type end |
#target_id ⇒ String (readonly)
TargetID is an AWS account identifier, (For example, 123456789012).
58 59 60 |
# File 'sso/cfn_assignment_props.rb', line 58 def target_id @target_id end |
#target_type ⇒ String (readonly)
The entity type for which the assignment will be created.
63 64 65 |
# File 'sso/cfn_assignment_props.rb', line 63 def target_type @target_type end |
Class Method Details
.jsii_properties ⇒ Object
65 66 67 68 69 70 71 72 73 74 |
# File 'sso/cfn_assignment_props.rb', line 65 def self.jsii_properties { :instance_arn => "instanceArn", :permission_set_arn => "permissionSetArn", :principal_id => "principalId", :principal_type => "principalType", :target_id => "targetId", :target_type => "targetType", } end |
Instance Method Details
#to_jsii ⇒ Object
76 77 78 79 80 81 82 83 84 85 86 87 |
# File 'sso/cfn_assignment_props.rb', line 76 def to_jsii result = {} result.merge!({ "instanceArn" => @instance_arn, "permissionSetArn" => @permission_set_arn, "principalId" => @principal_id, "principalType" => @principal_type, "targetId" => @target_id, "targetType" => @target_type, }) result.compact end |