Class: AWSCDK::PolicyViolatingResourceBeta1 Deprecated
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::PolicyViolatingResourceBeta1
- Defined in:
- policy_violating_resource_beta1.rb
Overview
Deprecated.
Use PolicyViolatingResource instead.
Resource violating a specific rule.
Instance Attribute Summary collapse
-
#locations ⇒ Array<String>
readonly
The locations in the CloudFormation template that pose the violations.
-
#resource_logical_id ⇒ String
readonly
The logical ID of the resource in the CloudFormation template.
-
#template_path ⇒ String
readonly
The path to the CloudFormation template that contains this resource.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(locations:, resource_logical_id:, template_path:) ⇒ PolicyViolatingResourceBeta1
constructor
A new instance of PolicyViolatingResourceBeta1.
- #to_jsii ⇒ Object
Constructor Details
#initialize(locations:, resource_logical_id:, template_path:) ⇒ PolicyViolatingResourceBeta1
Returns a new instance of PolicyViolatingResourceBeta1.
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
#locations ⇒ Array<String> (readonly)
The locations in the CloudFormation template that pose the violations.
24 25 26 |
# File 'policy_violating_resource_beta1.rb', line 24 def locations @locations end |
#resource_logical_id ⇒ String (readonly)
The logical ID of the resource in the CloudFormation template.
28 29 30 |
# File 'policy_violating_resource_beta1.rb', line 28 def resource_logical_id @resource_logical_id end |
#template_path ⇒ String (readonly)
The path to the CloudFormation template that contains this resource.
32 33 34 |
# File 'policy_violating_resource_beta1.rb', line 32 def template_path @template_path end |
Class Method Details
.jsii_properties ⇒ Object
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_jsii ⇒ Object
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 |