Class: AWSCDK::AuditManager::CfnAssessment::RoleProperty

Inherits:
Jsii::Struct
  • Object
show all
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

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(role_arn: nil, role_type: nil) ⇒ RoleProperty

Returns a new instance of RoleProperty.

Parameters:

  • role_arn (String, nil) (defaults to: nil)

    The Amazon Resource Name (ARN) of the IAM role.

  • role_type (String, nil) (defaults to: nil)

    The type of customer persona.



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

The type of customer persona.

In CreateAssessment , role_type can only be PROCESS_OWNER .

In UpdateSettings , role_type can only be PROCESS_OWNER .

In BatchCreateDelegationByAssessment , role_type can only be RESOURCE_OWNER .



978
979
980
# File 'audit_manager/cfn_assessment.rb', line 978

def role_type
  @role_type
end

Class Method Details

.jsii_propertiesObject



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_jsiiObject



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