Class: AWSCDK::SecurityHub::CfnPolicyAssociationProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::SecurityHub::CfnPolicyAssociationProps
- Defined in:
- security_hub/cfn_policy_association_props.rb
Overview
Properties for defining a CfnPolicyAssociation.
Instance Attribute Summary collapse
-
#configuration_policy_id ⇒ String
readonly
The universally unique identifier (UUID) of the configuration policy.
-
#target_id ⇒ String
readonly
The identifier of the target account, organizational unit, or the root.
-
#target_type ⇒ String
readonly
Specifies whether the target is an AWS account , organizational unit, or the root.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(configuration_policy_id:, target_id:, target_type:) ⇒ CfnPolicyAssociationProps
constructor
A new instance of CfnPolicyAssociationProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(configuration_policy_id:, target_id:, target_type:) ⇒ CfnPolicyAssociationProps
Returns a new instance of CfnPolicyAssociationProps.
12 13 14 15 16 17 18 19 |
# File 'security_hub/cfn_policy_association_props.rb', line 12 def initialize(configuration_policy_id:, target_id:, target_type:) @configuration_policy_id = configuration_policy_id Jsii::Type.check_type(@configuration_policy_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "configurationPolicyId") @target_id = target_id Jsii::Type.check_type(@target_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "targetId") @target_type = target_type Jsii::Type.check_type(@target_type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "targetType") end |
Instance Attribute Details
#configuration_policy_id ⇒ String (readonly)
The universally unique identifier (UUID) of the configuration policy.
A self-managed configuration has no UUID. The identifier of a self-managed configuration is SELF_MANAGED_SECURITY_HUB .
27 28 29 |
# File 'security_hub/cfn_policy_association_props.rb', line 27 def configuration_policy_id @configuration_policy_id end |
#target_id ⇒ String (readonly)
The identifier of the target account, organizational unit, or the root.
32 33 34 |
# File 'security_hub/cfn_policy_association_props.rb', line 32 def target_id @target_id end |
#target_type ⇒ String (readonly)
Specifies whether the target is an AWS account , organizational unit, or the root.
37 38 39 |
# File 'security_hub/cfn_policy_association_props.rb', line 37 def target_type @target_type end |
Class Method Details
.jsii_properties ⇒ Object
39 40 41 42 43 44 45 |
# File 'security_hub/cfn_policy_association_props.rb', line 39 def self.jsii_properties { :configuration_policy_id => "configurationPolicyId", :target_id => "targetId", :target_type => "targetType", } end |
Instance Method Details
#to_jsii ⇒ Object
47 48 49 50 51 52 53 54 55 |
# File 'security_hub/cfn_policy_association_props.rb', line 47 def to_jsii result = {} result.merge!({ "configurationPolicyId" => @configuration_policy_id, "targetId" => @target_id, "targetType" => @target_type, }) result.compact end |