All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.aws.cfg.outputs.RuleSourceCustomPolicyDetails Maven / Gradle / Ivy

Go to download

A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.

The newest version!
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***

package com.pulumi.aws.cfg.outputs;

import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Boolean;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class RuleSourceCustomPolicyDetails {
    /**
     * @return The boolean expression for enabling debug logging for your Config Custom Policy rule. The default value is `false`.
     * 
     */
    private @Nullable Boolean enableDebugLogDelivery;
    /**
     * @return The runtime system for your Config Custom Policy rule. Guard is a policy-as-code language that allows you to write policies that are enforced by Config Custom Policy rules. For more information about Guard, see the [Guard GitHub Repository](https://github.com/aws-cloudformation/cloudformation-guard).
     * 
     */
    private String policyRuntime;
    /**
     * @return The policy definition containing the logic for your Config Custom Policy rule.
     * 
     */
    private String policyText;

    private RuleSourceCustomPolicyDetails() {}
    /**
     * @return The boolean expression for enabling debug logging for your Config Custom Policy rule. The default value is `false`.
     * 
     */
    public Optional enableDebugLogDelivery() {
        return Optional.ofNullable(this.enableDebugLogDelivery);
    }
    /**
     * @return The runtime system for your Config Custom Policy rule. Guard is a policy-as-code language that allows you to write policies that are enforced by Config Custom Policy rules. For more information about Guard, see the [Guard GitHub Repository](https://github.com/aws-cloudformation/cloudformation-guard).
     * 
     */
    public String policyRuntime() {
        return this.policyRuntime;
    }
    /**
     * @return The policy definition containing the logic for your Config Custom Policy rule.
     * 
     */
    public String policyText() {
        return this.policyText;
    }

    public static Builder builder() {
        return new Builder();
    }

    public static Builder builder(RuleSourceCustomPolicyDetails defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable Boolean enableDebugLogDelivery;
        private String policyRuntime;
        private String policyText;
        public Builder() {}
        public Builder(RuleSourceCustomPolicyDetails defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.enableDebugLogDelivery = defaults.enableDebugLogDelivery;
    	      this.policyRuntime = defaults.policyRuntime;
    	      this.policyText = defaults.policyText;
        }

        @CustomType.Setter
        public Builder enableDebugLogDelivery(@Nullable Boolean enableDebugLogDelivery) {

            this.enableDebugLogDelivery = enableDebugLogDelivery;
            return this;
        }
        @CustomType.Setter
        public Builder policyRuntime(String policyRuntime) {
            if (policyRuntime == null) {
              throw new MissingRequiredPropertyException("RuleSourceCustomPolicyDetails", "policyRuntime");
            }
            this.policyRuntime = policyRuntime;
            return this;
        }
        @CustomType.Setter
        public Builder policyText(String policyText) {
            if (policyText == null) {
              throw new MissingRequiredPropertyException("RuleSourceCustomPolicyDetails", "policyText");
            }
            this.policyText = policyText;
            return this;
        }
        public RuleSourceCustomPolicyDetails build() {
            final var _resultValue = new RuleSourceCustomPolicyDetails();
            _resultValue.enableDebugLogDelivery = enableDebugLogDelivery;
            _resultValue.policyRuntime = policyRuntime;
            _resultValue.policyText = policyText;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy