Class: AWSCDK::Detective::CfnGraphProps

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
detective/cfn_graph_props.rb

Overview

Properties for defining a CfnGraph.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(auto_enable_members: nil, tags: nil) ⇒ CfnGraphProps

Returns a new instance of CfnGraphProps.

Parameters:

  • auto_enable_members (Boolean, AWSCDK::IResolvable, nil) (defaults to: nil)

    Indicates whether to automatically enable new organization accounts as member accounts in the organization behavior graph.

  • tags (Array<AWSCDK::CfnTag>, nil) (defaults to: nil)

    The tag values to assign to the new behavior graph.



11
12
13
14
15
16
# File 'detective/cfn_graph_props.rb', line 11

def initialize(auto_enable_members: nil, tags: nil)
  @auto_enable_members = auto_enable_members
  Jsii::Type.check_type(@auto_enable_members, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3sicHJpbWl0aXZlIjoiYm9vbGVhbiJ9LHsiZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifV19fQ==")), "autoEnableMembers") unless @auto_enable_members.nil?
  @tags = tags.is_a?(Array) ? tags.map { |jsii_v0| jsii_v0.is_a?(Hash) ? ::AWSCDK::CfnTag.new(**jsii_v0.transform_keys(&:to_sym)) : jsii_v0 } : tags
  Jsii::Type.check_type(@tags, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7ImZxbiI6ImF3cy1jZGstbGliLkNmblRhZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "tags") unless @tags.nil?
end

Instance Attribute Details

#auto_enable_membersBoolean, ... (readonly)

Note:

Default: - false

Indicates whether to automatically enable new organization accounts as member accounts in the organization behavior graph.

By default, this property is set to false . If you want to change the value of this property, you must be the Detective administrator for the organization. For more information on setting a Detective administrator account, see AWS::Detective::OrganizationAdmin .



25
26
27
# File 'detective/cfn_graph_props.rb', line 25

def auto_enable_members
  @auto_enable_members
end

#tagsArray<AWSCDK::CfnTag>? (readonly)

The tag values to assign to the new behavior graph.



30
31
32
# File 'detective/cfn_graph_props.rb', line 30

def tags
  @tags
end

Class Method Details

.jsii_propertiesObject



32
33
34
35
36
37
# File 'detective/cfn_graph_props.rb', line 32

def self.jsii_properties
  {
    :auto_enable_members => "autoEnableMembers",
    :tags => "tags",
  }
end

Instance Method Details

#to_jsiiObject



39
40
41
42
43
44
45
46
# File 'detective/cfn_graph_props.rb', line 39

def to_jsii
  result = {}
  result.merge!({
    "autoEnableMembers" => @auto_enable_members,
    "tags" => @tags,
  })
  result.compact
end