Class: AWSCDK::AuditManager::CfnAssessment::RoleProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::AuditManager::CfnAssessment::RoleProperty
- Defined in:
- audit_manager/cfn_assessment.rb
Overview
The Role property type specifies the wrapper that contains AWS Audit Manager role information, such as the role type and IAM Amazon Resource Name (ARN).
Instance Attribute Summary collapse
-
#role_arn ⇒ String?
readonly
The Amazon Resource Name (ARN) of the IAM role.
-
#role_type ⇒ String?
readonly
The type of customer persona.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(role_arn: nil, role_type: nil) ⇒ RoleProperty
constructor
A new instance of RoleProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(role_arn: nil, role_type: nil) ⇒ RoleProperty
Returns a new instance of RoleProperty.
956 957 958 959 960 961 |
# File 'audit_manager/cfn_assessment.rb', line 956 def initialize(role_arn: nil, role_type: nil) @role_arn = role_arn Jsii::Type.check_type(@role_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "roleArn") unless @role_arn.nil? @role_type = role_type Jsii::Type.check_type(@role_type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "roleType") unless @role_type.nil? end |
Instance Attribute Details
#role_arn ⇒ String? (readonly)
The Amazon Resource Name (ARN) of the IAM role.
967 968 969 |
# File 'audit_manager/cfn_assessment.rb', line 967 def role_arn @role_arn end |
#role_type ⇒ String? (readonly)
The type of customer persona.
In
CreateAssessment,role_typecan only bePROCESS_OWNER.In
UpdateSettings,role_typecan only bePROCESS_OWNER.In
BatchCreateDelegationByAssessment,role_typecan only beRESOURCE_OWNER.
978 979 980 |
# File 'audit_manager/cfn_assessment.rb', line 978 def role_type @role_type end |
Class Method Details
.jsii_properties ⇒ Object
980 981 982 983 984 985 |
# File 'audit_manager/cfn_assessment.rb', line 980 def self.jsii_properties { :role_arn => "roleArn", :role_type => "roleType", } end |
Instance Method Details
#to_jsii ⇒ Object
987 988 989 990 991 992 993 994 |
# File 'audit_manager/cfn_assessment.rb', line 987 def to_jsii result = {} result.merge!({ "roleArn" => @role_arn, "roleType" => @role_type, }) result.compact end |