Class: AWSCDK::FMS::CfnPolicy::IEMapProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::FMS::CfnPolicy::IEMapProperty
- 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
-
#account ⇒ Array<String>?
readonly
The account list for the map.
-
#orgunit ⇒ Array<String>?
readonly
The organizational unit list for the map.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(account: nil, orgunit: nil) ⇒ IEMapProperty
constructor
A new instance of IEMapProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(account: nil, orgunit: nil) ⇒ IEMapProperty
Returns a new instance of IEMapProperty.
741 742 743 744 745 746 |
# File 'fms/cfn_policy.rb', line 741 def initialize(account: nil, orgunit: nil) @account = 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
#account ⇒ Array<String>? (readonly)
The account list for the map.
752 753 754 |
# File 'fms/cfn_policy.rb', line 752 def account @account end |
#orgunit ⇒ Array<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_properties ⇒ Object
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_jsii ⇒ Object
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 |