Show / Hide Table of Contents

Class PolicyValidationPluginReportBeta1

The report emitted by the plugin after evaluation.

Inheritance
object
PolicyValidationPluginReportBeta1
Implements
IPolicyValidationPluginReportBeta1
Inherited Members
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: Amazon.CDK
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class PolicyValidationPluginReportBeta1 : IPolicyValidationPluginReportBeta1
Syntax (vb)
Public Class PolicyValidationPluginReportBeta1 Implements IPolicyValidationPluginReportBeta1
Remarks

ExampleMetadata: fixture=_generated

Examples
// The code below shows an example of how to instantiate this type.
            // The values are placeholders you should change.
            using Amazon.CDK;

            var policyValidationPluginReportBeta1 = new PolicyValidationPluginReportBeta1 {
                Success = false,
                Violations = new [] { new PolicyViolationBeta1 {
                    Description = "description",
                    RuleName = "ruleName",
                    ViolatingResources = new [] { new PolicyViolatingResourceBeta1 {
                        Locations = new [] { "locations" },
                        ResourceLogicalId = "resourceLogicalId",
                        TemplatePath = "templatePath"
                    } },

                    // the properties below are optional
                    Fix = "fix",
                    RuleMetadata = new Dictionary<string, string> {
                        { "ruleMetadataKey", "ruleMetadata" }
                    },
                    Severity = "severity"
                } },

                // the properties below are optional
                Metadata = new Dictionary<string, string> {
                    { "metadataKey", "metadata" }
                },
                PluginVersion = "pluginVersion"
            };

Synopsis

Constructors

PolicyValidationPluginReportBeta1()

The report emitted by the plugin after evaluation.

Properties

Metadata

Arbitrary information about the report.

PluginVersion

The version of the plugin that created the report.

Success

Whether or not the report was successful.

Violations

List of violations in the report.

Constructors

PolicyValidationPluginReportBeta1()

The report emitted by the plugin after evaluation.

public PolicyValidationPluginReportBeta1()
Remarks

ExampleMetadata: fixture=_generated

Examples
// The code below shows an example of how to instantiate this type.
            // The values are placeholders you should change.
            using Amazon.CDK;

            var policyValidationPluginReportBeta1 = new PolicyValidationPluginReportBeta1 {
                Success = false,
                Violations = new [] { new PolicyViolationBeta1 {
                    Description = "description",
                    RuleName = "ruleName",
                    ViolatingResources = new [] { new PolicyViolatingResourceBeta1 {
                        Locations = new [] { "locations" },
                        ResourceLogicalId = "resourceLogicalId",
                        TemplatePath = "templatePath"
                    } },

                    // the properties below are optional
                    Fix = "fix",
                    RuleMetadata = new Dictionary<string, string> {
                        { "ruleMetadataKey", "ruleMetadata" }
                    },
                    Severity = "severity"
                } },

                // the properties below are optional
                Metadata = new Dictionary<string, string> {
                    { "metadataKey", "metadata" }
                },
                PluginVersion = "pluginVersion"
            };

Properties

Metadata

Arbitrary information about the report.

public IDictionary<string, string>? Metadata { get; set; }
Property Value

IDictionary<string, string>

Remarks

Default: - no metadata

PluginVersion

The version of the plugin that created the report.

public string? PluginVersion { get; set; }
Property Value

string

Remarks

Default: - no version

Success

Whether or not the report was successful.

public bool Success { get; set; }
Property Value

bool

Remarks

ExampleMetadata: fixture=_generated

Violations

List of violations in the report.

public IPolicyViolationBeta1[] Violations { get; set; }
Property Value

IPolicyViolationBeta1[]

Remarks

ExampleMetadata: fixture=_generated

Implements

IPolicyValidationPluginReportBeta1
Back to top Generated by DocFX