Module: AWSCDK::IPolicyValidationPlugin
- Included in:
- CloudFormationValidatePlugin
- Defined in:
- i_policy_validation_plugin.rb
Overview
Represents a validation plugin that will be executed during synthesis.
Class Method Summary collapse
Instance Method Summary collapse
-
#name ⇒ String
The name of the plugin that will be displayed in the validation report.
-
#rule_ids ⇒ Array<String>?
The list of rule IDs that the plugin will evaluate.
-
#validate(context) ⇒ AWSCDK::PolicyValidationPluginReport
The method that will be called by the CDK framework to perform validations.
-
#version ⇒ String?
The version of the plugin, following the Semantic Versioning specification (see https://semver.org/).
Class Method Details
.jsii_overridable_methods ⇒ Object
74 75 76 77 78 79 80 81 |
# File 'i_policy_validation_plugin.rb', line 74 def self.jsii_overridable_methods { :name => { kind: :property, name: "name", is_optional: false }, :rule_ids => { kind: :property, name: "ruleIds", is_optional: true }, :version => { kind: :property, name: "version", is_optional: true }, :validate => { kind: :method, name: "validate", is_optional: false }, } end |
Instance Method Details
#name ⇒ String
The name of the plugin that will be displayed in the validation report.
40 41 42 |
# File 'i_policy_validation_plugin.rb', line 40 def name() jsii_get_property("name") end |
#rule_ids ⇒ Array<String>?
Default: - No rule is reported
The list of rule IDs that the plugin will evaluate.
Used for analytics purposes.
51 52 53 |
# File 'i_policy_validation_plugin.rb', line 51 def rule_ids() jsii_get_property("ruleIds") end |
#validate(context) ⇒ AWSCDK::PolicyValidationPluginReport
The method that will be called by the CDK framework to perform validations.
This is where the plugin will evaluate the CloudFormation templates for compliance and report and violations
69 70 71 72 |
# File 'i_policy_validation_plugin.rb', line 69 def validate(context) Jsii::Type.check_type(context, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5JUG9saWN5VmFsaWRhdGlvbkNvbnRleHQifQ==")), "context") jsii_call_method("validate", [context]) end |
#version ⇒ String?
The version of the plugin, following the Semantic Versioning specification (see https://semver.org/). This version is used for analytics purposes, to measure the usage of different plugins and different versions. The value of this property should be kept in sync with the actual version of the software package. If the version is not provided or is not a valid semantic version, it will be reported as 0.0.0.
58 59 60 |
# File 'i_policy_validation_plugin.rb', line 58 def version() jsii_get_property("version") end |