Class: AWSCDK::PolicyViolatingResourceBeta1 Deprecated

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
policy_violating_resource_beta1.rb

Overview

Deprecated.

Use PolicyViolatingResource instead.

Resource violating a specific rule.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(locations:, resource_logical_id:, template_path:) ⇒ PolicyViolatingResourceBeta1

Returns a new instance of PolicyViolatingResourceBeta1.

Parameters:

  • locations (Array<String>)

    The locations in the CloudFormation template that pose the violations.

  • resource_logical_id (String)

    The logical ID of the resource in the CloudFormation template.

  • template_path (String)

    The path to the CloudFormation template that contains this resource.



12
13
14
15
16
17
18
19
# File 'policy_violating_resource_beta1.rb', line 12

def initialize(locations:, resource_logical_id:, template_path:)
  @locations = locations
  Jsii::Type.check_type(@locations, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "locations")
  @resource_logical_id = resource_logical_id
  Jsii::Type.check_type(@resource_logical_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "resourceLogicalId")
  @template_path = template_path
  Jsii::Type.check_type(@template_path, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "templatePath")
end

Instance Attribute Details

#locationsArray<String> (readonly)

The locations in the CloudFormation template that pose the violations.

Returns:

  • (Array<String>)


24
25
26
# File 'policy_violating_resource_beta1.rb', line 24

def locations
  @locations
end

#resource_logical_idString (readonly)

The logical ID of the resource in the CloudFormation template.

Returns:

  • (String)


28
29
30
# File 'policy_violating_resource_beta1.rb', line 28

def resource_logical_id
  @resource_logical_id
end

#template_pathString (readonly)

The path to the CloudFormation template that contains this resource.

Returns:

  • (String)


32
33
34
# File 'policy_violating_resource_beta1.rb', line 32

def template_path
  @template_path
end

Class Method Details

.jsii_propertiesObject



34
35
36
37
38
39
40
# File 'policy_violating_resource_beta1.rb', line 34

def self.jsii_properties
  {
    :locations => "locations",
    :resource_logical_id => "resourceLogicalId",
    :template_path => "templatePath",
  }
end

Instance Method Details

#to_jsiiObject



42
43
44
45
46
47
48
49
50
# File 'policy_violating_resource_beta1.rb', line 42

def to_jsii
  result = {}
  result.merge!({
    "locations" => @locations,
    "resourceLogicalId" => @resource_logical_id,
    "templatePath" => @template_path,
  })
  result.compact
end