Class: AWSCDK::Config::CfnOrganizationConfigRuleProps

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
config/cfn_organization_config_rule_props.rb

Overview

Properties for defining a CfnOrganizationConfigRule.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(organization_config_rule_name:, excluded_accounts: nil, organization_custom_policy_rule_metadata: nil, organization_custom_rule_metadata: nil, organization_managed_rule_metadata: nil) ⇒ CfnOrganizationConfigRuleProps

Returns a new instance of CfnOrganizationConfigRuleProps.

Parameters:



14
15
16
17
18
19
20
21
22
23
24
25
# File 'config/cfn_organization_config_rule_props.rb', line 14

def initialize(organization_config_rule_name:, excluded_accounts: nil, organization_custom_policy_rule_metadata: nil, organization_custom_rule_metadata: nil, organization_managed_rule_metadata: nil)
  @organization_config_rule_name = organization_config_rule_name
  Jsii::Type.check_type(@organization_config_rule_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "organizationConfigRuleName")
  @excluded_accounts = excluded_accounts
  Jsii::Type.check_type(@excluded_accounts, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "excludedAccounts") unless @excluded_accounts.nil?
  @organization_custom_policy_rule_metadata = .is_a?(Hash) ? ::AWSCDK::Config::CfnOrganizationConfigRule::OrganizationCustomPolicyRuleMetadataProperty.new(**.transform_keys(&:to_sym)) : 
  Jsii::Type.check_type(@organization_custom_policy_rule_metadata, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19jb25maWcuQ2ZuT3JnYW5pemF0aW9uQ29uZmlnUnVsZS5Pcmdhbml6YXRpb25DdXN0b21Qb2xpY3lSdWxlTWV0YWRhdGFQcm9wZXJ0eSJ9XX19")), "organizationCustomPolicyRuleMetadata") unless @organization_custom_policy_rule_metadata.nil?
  @organization_custom_rule_metadata = .is_a?(Hash) ? ::AWSCDK::Config::CfnOrganizationConfigRule::OrganizationCustomRuleMetadataProperty.new(**.transform_keys(&:to_sym)) : 
  Jsii::Type.check_type(@organization_custom_rule_metadata, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19jb25maWcuQ2ZuT3JnYW5pemF0aW9uQ29uZmlnUnVsZS5Pcmdhbml6YXRpb25DdXN0b21SdWxlTWV0YWRhdGFQcm9wZXJ0eSJ9XX19")), "organizationCustomRuleMetadata") unless @organization_custom_rule_metadata.nil?
  @organization_managed_rule_metadata = .is_a?(Hash) ? ::AWSCDK::Config::CfnOrganizationConfigRule::OrganizationManagedRuleMetadataProperty.new(**.transform_keys(&:to_sym)) : 
  Jsii::Type.check_type(@organization_managed_rule_metadata, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19jb25maWcuQ2ZuT3JnYW5pemF0aW9uQ29uZmlnUnVsZS5Pcmdhbml6YXRpb25NYW5hZ2VkUnVsZU1ldGFkYXRhUHJvcGVydHkifV19fQ==")), "organizationManagedRuleMetadata") unless @organization_managed_rule_metadata.nil?
end

Instance Attribute Details

#excluded_accountsArray<String>? (readonly)

A comma-separated list of accounts excluded from organization AWS Config rule.



36
37
38
# File 'config/cfn_organization_config_rule_props.rb', line 36

def excluded_accounts
  @excluded_accounts
end

#organization_config_rule_nameString (readonly)

The name that you assign to organization AWS Config rule.



31
32
33
# File 'config/cfn_organization_config_rule_props.rb', line 31

def organization_config_rule_name
  @organization_config_rule_name
end

#organization_custom_policy_rule_metadataAWSCDK::IResolvable, ... (readonly)

An object that specifies metadata for your organization's AWS Config Custom Policy rule.

The metadata includes the runtime system in use, which accounts have debug logging enabled, and other custom rule metadata, such as resource type, resource ID of AWS resource, and organization trigger types that initiate AWS Config to evaluate AWS resources against a rule.



43
44
45
# File 'config/cfn_organization_config_rule_props.rb', line 43

def 
  @organization_custom_policy_rule_metadata
end

#organization_custom_rule_metadataAWSCDK::IResolvable, ... (readonly)

An OrganizationCustomRuleMetadata object.



48
49
50
# File 'config/cfn_organization_config_rule_props.rb', line 48

def 
  @organization_custom_rule_metadata
end

#organization_managed_rule_metadataAWSCDK::IResolvable, ... (readonly)

An OrganizationManagedRuleMetadata object.



53
54
55
# File 'config/cfn_organization_config_rule_props.rb', line 53

def 
  @organization_managed_rule_metadata
end

Class Method Details

.jsii_propertiesObject



55
56
57
58
59
60
61
62
63
# File 'config/cfn_organization_config_rule_props.rb', line 55

def self.jsii_properties
  {
    :organization_config_rule_name => "organizationConfigRuleName",
    :excluded_accounts => "excludedAccounts",
    :organization_custom_policy_rule_metadata => "organizationCustomPolicyRuleMetadata",
    :organization_custom_rule_metadata => "organizationCustomRuleMetadata",
    :organization_managed_rule_metadata => "organizationManagedRuleMetadata",
  }
end

Instance Method Details

#to_jsiiObject



65
66
67
68
69
70
71
72
73
74
75
# File 'config/cfn_organization_config_rule_props.rb', line 65

def to_jsii
  result = {}
  result.merge!({
    "organizationConfigRuleName" => @organization_config_rule_name,
    "excludedAccounts" => @excluded_accounts,
    "organizationCustomPolicyRuleMetadata" => @organization_custom_policy_rule_metadata,
    "organizationCustomRuleMetadata" => @organization_custom_rule_metadata,
    "organizationManagedRuleMetadata" => @organization_managed_rule_metadata,
  })
  result.compact
end