Class: AWSCDK::Inspector::CfnAssessmentTargetProps

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
inspector/cfn_assessment_target_props.rb

Overview

Properties for defining a CfnAssessmentTarget.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(assessment_target_name: nil, resource_group_arn: nil) ⇒ CfnAssessmentTargetProps

Returns a new instance of CfnAssessmentTargetProps.

Parameters:

  • assessment_target_name (String, nil) (defaults to: nil)

    The name of the Amazon Inspector assessment target.

  • resource_group_arn (String, AWSCDK::Interfaces::AWSInspector::IResourceGroupRef, nil) (defaults to: nil)

    The ARN that specifies the resource group that is used to create the assessment target.



11
12
13
14
15
16
# File 'inspector/cfn_assessment_target_props.rb', line 11

def initialize(assessment_target_name: nil, resource_group_arn: nil)
  @assessment_target_name = assessment_target_name
  Jsii::Type.check_type(@assessment_target_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "assessmentTargetName") unless @assessment_target_name.nil?
  @resource_group_arn = resource_group_arn
  Jsii::Type.check_type(@resource_group_arn, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3sicHJpbWl0aXZlIjoic3RyaW5nIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5pbnRlcmZhY2VzLmF3c19pbnNwZWN0b3IuSVJlc291cmNlR3JvdXBSZWYifV19fQ==")), "resourceGroupArn") unless @resource_group_arn.nil?
end

Instance Attribute Details

#assessment_target_nameString? (readonly)

The name of the Amazon Inspector assessment target.

The name must be unique within the AWS account .



24
25
26
# File 'inspector/cfn_assessment_target_props.rb', line 24

def assessment_target_name
  @assessment_target_name
end

#resource_group_arnString, ... (readonly)

The ARN that specifies the resource group that is used to create the assessment target.

If resource_group_arn is not specified, all EC2 instances in the current AWS account and Region are included in the assessment target.



31
32
33
# File 'inspector/cfn_assessment_target_props.rb', line 31

def resource_group_arn
  @resource_group_arn
end

Class Method Details

.jsii_propertiesObject



33
34
35
36
37
38
# File 'inspector/cfn_assessment_target_props.rb', line 33

def self.jsii_properties
  {
    :assessment_target_name => "assessmentTargetName",
    :resource_group_arn => "resourceGroupArn",
  }
end

Instance Method Details

#to_jsiiObject



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

def to_jsii
  result = {}
  result.merge!({
    "assessmentTargetName" => @assessment_target_name,
    "resourceGroupArn" => @resource_group_arn,
  })
  result.compact
end