Class: AWSCDK::SecurityHub::CfnStandardProps

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
security_hub/cfn_standard_props.rb

Overview

Properties for defining a CfnStandard.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(standards_arn:, disabled_standards_controls: nil) ⇒ CfnStandardProps

Returns a new instance of CfnStandardProps.

Parameters:



11
12
13
14
15
16
# File 'security_hub/cfn_standard_props.rb', line 11

def initialize(standards_arn:, disabled_standards_controls: nil)
  @standards_arn = standards_arn
  Jsii::Type.check_type(@standards_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "standardsArn")
  @disabled_standards_controls = disabled_standards_controls
  Jsii::Type.check_type(@disabled_standards_controls, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3Nfc2VjdXJpdHlodWIuQ2ZuU3RhbmRhcmQuU3RhbmRhcmRzQ29udHJvbFByb3BlcnR5In1dfX0sImtpbmQiOiJhcnJheSJ9fV19fQ==")), "disabledStandardsControls") unless @disabled_standards_controls.nil?
end

Instance Attribute Details

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

Specifies which controls are to be disabled in a standard.

Maximum : 100



31
32
33
# File 'security_hub/cfn_standard_props.rb', line 31

def disabled_standards_controls
  @disabled_standards_controls
end

#standards_arnString (readonly)

The ARN of the standard that you want to enable.

To view a list of available Security Hub CSPM standards and their ARNs, use the DescribeStandards API operation.



24
25
26
# File 'security_hub/cfn_standard_props.rb', line 24

def standards_arn
  @standards_arn
end

Class Method Details

.jsii_propertiesObject



33
34
35
36
37
38
# File 'security_hub/cfn_standard_props.rb', line 33

def self.jsii_properties
  {
    :standards_arn => "standardsArn",
    :disabled_standards_controls => "disabledStandardsControls",
  }
end

Instance Method Details

#to_jsiiObject



40
41
42
43
44
45
46
47
# File 'security_hub/cfn_standard_props.rb', line 40

def to_jsii
  result = {}
  result.merge!({
    "standardsArn" => @standards_arn,
    "disabledStandardsControls" => @disabled_standards_controls,
  })
  result.compact
end