Class: AWSCDK::FMS::CfnPolicy::IEMapProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
fms/cfn_policy.rb

Overview

Specifies the AWS account IDs and AWS Organizations organizational units (OUs) to include in or exclude from the policy.

Specifying an OU is the equivalent of specifying all accounts in the OU and in any of its child OUs, including any child OUs and accounts that are added at a later time.

This is used for the policy's IncludeMap and ExcludeMap .

You can specify account IDs, OUs, or a combination:

  • Specify account IDs by setting the key to ACCOUNT . For example, the following is a valid map: {“ACCOUNT” : [“accountID1”, “accountID2”]} .
  • Specify OUs by setting the key to ORGUNIT . For example, the following is a valid map: {“ORGUNIT” : [“ouid111”, “ouid112”]} .
  • Specify accounts and OUs together in a single map, separated with a comma. For example, the following is a valid map: {“ACCOUNT” : [“accountID1”, “accountID2”], “ORGUNIT” : [“ouid111”, “ouid112”]} .

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(account: nil, orgunit: nil) ⇒ IEMapProperty

Returns a new instance of IEMapProperty.

Parameters:

  • account (Array<String>, nil) (defaults to: nil)

    The account list for the map.

  • orgunit (Array<String>, nil) (defaults to: nil)

    The organizational unit list for the map.



741
742
743
744
745
746
# File 'fms/cfn_policy.rb', line 741

def initialize(account: nil, orgunit: nil)
  @account = 
  Jsii::Type.check_type(@account, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "account") unless @account.nil?
  @orgunit = orgunit
  Jsii::Type.check_type(@orgunit, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "orgunit") unless @orgunit.nil?
end

Instance Attribute Details

#accountArray<String>? (readonly)

The account list for the map.



752
753
754
# File 'fms/cfn_policy.rb', line 752

def 
  @account
end

#orgunitArray<String>? (readonly)

The organizational unit list for the map.



757
758
759
# File 'fms/cfn_policy.rb', line 757

def orgunit
  @orgunit
end

Class Method Details

.jsii_propertiesObject



759
760
761
762
763
764
# File 'fms/cfn_policy.rb', line 759

def self.jsii_properties
  {
    :account => "account",
    :orgunit => "orgunit",
  }
end

Instance Method Details

#to_jsiiObject



766
767
768
769
770
771
772
773
# File 'fms/cfn_policy.rb', line 766

def to_jsii
  result = {}
  result.merge!({
    "account" => @account,
    "orgunit" => @orgunit,
  })
  result.compact
end