Class: AWSCDK::AuditManager::CfnAssessment::DelegationProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
audit_manager/cfn_assessment.rb

Overview

The Delegation property type specifies the assignment of a control set to a delegate for review.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(assessment_id: nil, assessment_name: nil, comment: nil, control_set_id: nil, created_by: nil, creation_time: nil, id: nil, last_updated: nil, role_arn: nil, role_type: nil, status: nil) ⇒ DelegationProperty

Returns a new instance of DelegationProperty.

Parameters:

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

    The identifier for the assessment that's associated with the delegation.

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

    The name of the assessment that's associated with the delegation.

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

    The comment that's related to the delegation.

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

    The identifier for the control set that's associated with the delegation.

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

    The user or role that created the delegation.

  • creation_time (Numeric, nil) (defaults to: nil)

    Specifies when the delegation was created.

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

    The unique identifier for the delegation.

  • last_updated (Numeric, nil) (defaults to: nil)

    Specifies when the delegation was last updated.

  • 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.

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

    The status of the delegation.



820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
# File 'audit_manager/cfn_assessment.rb', line 820

def initialize(assessment_id: nil, assessment_name: nil, comment: nil, control_set_id: nil, created_by: nil, creation_time: nil, id: nil, last_updated: nil, role_arn: nil, role_type: nil, status: nil)
  @assessment_id = assessment_id
  Jsii::Type.check_type(@assessment_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "assessmentId") unless @assessment_id.nil?
  @assessment_name = assessment_name
  Jsii::Type.check_type(@assessment_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "assessmentName") unless @assessment_name.nil?
  @comment = comment
  Jsii::Type.check_type(@comment, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "comment") unless @comment.nil?
  @control_set_id = control_set_id
  Jsii::Type.check_type(@control_set_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "controlSetId") unless @control_set_id.nil?
  @created_by = created_by
  Jsii::Type.check_type(@created_by, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "createdBy") unless @created_by.nil?
  @creation_time = creation_time
  Jsii::Type.check_type(@creation_time, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "creationTime") unless @creation_time.nil?
  @id = id
  Jsii::Type.check_type(@id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "id") unless @id.nil?
  @last_updated = last_updated
  Jsii::Type.check_type(@last_updated, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "lastUpdated") unless @last_updated.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?
  @status = status
  Jsii::Type.check_type(@status, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "status") unless @status.nil?
end

Instance Attribute Details

#assessment_idString? (readonly)

The identifier for the assessment that's associated with the delegation.



849
850
851
# File 'audit_manager/cfn_assessment.rb', line 849

def assessment_id
  @assessment_id
end

#assessment_nameString? (readonly)

The name of the assessment that's associated with the delegation.



854
855
856
# File 'audit_manager/cfn_assessment.rb', line 854

def assessment_name
  @assessment_name
end

#commentString? (readonly)

The comment that's related to the delegation.



859
860
861
# File 'audit_manager/cfn_assessment.rb', line 859

def comment
  @comment
end

#control_set_idString? (readonly)

The identifier for the control set that's associated with the delegation.



864
865
866
# File 'audit_manager/cfn_assessment.rb', line 864

def control_set_id
  @control_set_id
end

#created_byString? (readonly)

The user or role that created the delegation.

Minimum : 1

Maximum : 100

Pattern : ^[a-zA-Z0-9-_()\\[\\]\\s]+$



875
876
877
# File 'audit_manager/cfn_assessment.rb', line 875

def created_by
  @created_by
end

#creation_timeNumeric? (readonly)

Specifies when the delegation was created.



880
881
882
# File 'audit_manager/cfn_assessment.rb', line 880

def creation_time
  @creation_time
end

#idString? (readonly)

The unique identifier for the delegation.



885
886
887
# File 'audit_manager/cfn_assessment.rb', line 885

def id
  @id
end

#last_updatedNumeric? (readonly)

Specifies when the delegation was last updated.



890
891
892
# File 'audit_manager/cfn_assessment.rb', line 890

def last_updated
  @last_updated
end

#role_arnString? (readonly)

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



895
896
897
# File 'audit_manager/cfn_assessment.rb', line 895

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 .



906
907
908
# File 'audit_manager/cfn_assessment.rb', line 906

def role_type
  @role_type
end

#statusString? (readonly)

The status of the delegation.



911
912
913
# File 'audit_manager/cfn_assessment.rb', line 911

def status
  @status
end

Class Method Details

.jsii_propertiesObject



913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
# File 'audit_manager/cfn_assessment.rb', line 913

def self.jsii_properties
  {
    :assessment_id => "assessmentId",
    :assessment_name => "assessmentName",
    :comment => "comment",
    :control_set_id => "controlSetId",
    :created_by => "createdBy",
    :creation_time => "creationTime",
    :id => "id",
    :last_updated => "lastUpdated",
    :role_arn => "roleArn",
    :role_type => "roleType",
    :status => "status",
  }
end

Instance Method Details

#to_jsiiObject



929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
# File 'audit_manager/cfn_assessment.rb', line 929

def to_jsii
  result = {}
  result.merge!({
    "assessmentId" => @assessment_id,
    "assessmentName" => @assessment_name,
    "comment" => @comment,
    "controlSetId" => @control_set_id,
    "createdBy" => @created_by,
    "creationTime" => @creation_time,
    "id" => @id,
    "lastUpdated" => @last_updated,
    "roleArn" => @role_arn,
    "roleType" => @role_type,
    "status" => @status,
  })
  result.compact
end