Class: AWSCDK::GuardDuty::CfnMasterProps

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
guard_duty/cfn_master_props.rb

Overview

Properties for defining a CfnMaster.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(detector_id:, master_id:, invitation_id: nil) ⇒ CfnMasterProps

Returns a new instance of CfnMasterProps.

Parameters:

  • detector_id (String)

    The unique ID of the detector of the GuardDuty member account.

  • master_id (String)

    The AWS account ID of the account designated as the GuardDuty administrator account.

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

    The ID of the invitation that is sent to the account designated as a member account.



12
13
14
15
16
17
18
19
# File 'guard_duty/cfn_master_props.rb', line 12

def initialize(detector_id:, master_id:, invitation_id: nil)
  @detector_id = detector_id
  Jsii::Type.check_type(@detector_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "detectorId")
  @master_id = master_id
  Jsii::Type.check_type(@master_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "masterId")
  @invitation_id = invitation_id
  Jsii::Type.check_type(@invitation_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "invitationId") unless @invitation_id.nil?
end

Instance Attribute Details

#detector_idString (readonly)

The unique ID of the detector of the GuardDuty member account.

To find the detector_id in the current Region, see the Settings page in the GuardDuty console, or run the ListDetectors API.



28
29
30
# File 'guard_duty/cfn_master_props.rb', line 28

def detector_id
  @detector_id
end

#invitation_idString? (readonly)

The ID of the invitation that is sent to the account designated as a member account.

You can find the invitation ID by running the ListInvitations in the GuardDuty API Reference .



40
41
42
# File 'guard_duty/cfn_master_props.rb', line 40

def invitation_id
  @invitation_id
end

#master_idString (readonly)

The AWS account ID of the account designated as the GuardDuty administrator account.



33
34
35
# File 'guard_duty/cfn_master_props.rb', line 33

def master_id
  @master_id
end

Class Method Details

.jsii_propertiesObject



42
43
44
45
46
47
48
# File 'guard_duty/cfn_master_props.rb', line 42

def self.jsii_properties
  {
    :detector_id => "detectorId",
    :master_id => "masterId",
    :invitation_id => "invitationId",
  }
end

Instance Method Details

#to_jsiiObject



50
51
52
53
54
55
56
57
58
# File 'guard_duty/cfn_master_props.rb', line 50

def to_jsii
  result = {}
  result.merge!({
    "detectorId" => @detector_id,
    "masterId" => @master_id,
    "invitationId" => @invitation_id,
  })
  result.compact
end