Class: AWSCDK::SSO::CfnAssignmentProps

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
sso/cfn_assignment_props.rb

Overview

Properties for defining a CfnAssignment.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(instance_arn:, permission_set_arn:, principal_id:, principal_type:, target_id:, target_type:) ⇒ CfnAssignmentProps

Returns a new instance of CfnAssignmentProps.

Parameters:

  • instance_arn (String)

    The ARN of the instance under which the operation will be executed.

  • permission_set_arn (String)

    The ARN of the permission set.

  • principal_id (String)

    An identifier for an object in IAM Identity Center, such as a user or group.

  • principal_type (String)

    The entity type for which the assignment will be created.

  • target_id (String)

    TargetID is an AWS account identifier, (For example, 123456789012).

  • target_type (String)

    The entity type for which the assignment will be created.



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 = 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_arnString (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_arnString (readonly)

The ARN of the permission set.



41
42
43
# File 'sso/cfn_assignment_props.rb', line 41

def permission_set_arn
  @permission_set_arn
end

#principal_idString (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_typeString (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_idString (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_typeString (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_propertiesObject



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_jsiiObject



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