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

com.pulumi.aws.appconfig.inputs.ConfigurationProfileValidatorArgs Maven / Gradle / Ivy

// *** 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.appconfig.inputs;

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


public final class ConfigurationProfileValidatorArgs extends com.pulumi.resources.ResourceArgs {

    public static final ConfigurationProfileValidatorArgs Empty = new ConfigurationProfileValidatorArgs();

    /**
     * Either the JSON Schema content or the ARN of an AWS Lambda function.
     * 
     */
    @Import(name="content")
    private @Nullable Output content;

    /**
     * @return Either the JSON Schema content or the ARN of an AWS Lambda function.
     * 
     */
    public Optional> content() {
        return Optional.ofNullable(this.content);
    }

    /**
     * Type of validator. Valid values: `JSON_SCHEMA` and `LAMBDA`.
     * 
     */
    @Import(name="type", required=true)
    private Output type;

    /**
     * @return Type of validator. Valid values: `JSON_SCHEMA` and `LAMBDA`.
     * 
     */
    public Output type() {
        return this.type;
    }

    private ConfigurationProfileValidatorArgs() {}

    private ConfigurationProfileValidatorArgs(ConfigurationProfileValidatorArgs $) {
        this.content = $.content;
        this.type = $.type;
    }

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

    public static final class Builder {
        private ConfigurationProfileValidatorArgs $;

        public Builder() {
            $ = new ConfigurationProfileValidatorArgs();
        }

        public Builder(ConfigurationProfileValidatorArgs defaults) {
            $ = new ConfigurationProfileValidatorArgs(Objects.requireNonNull(defaults));
        }

        /**
         * @param content Either the JSON Schema content or the ARN of an AWS Lambda function.
         * 
         * @return builder
         * 
         */
        public Builder content(@Nullable Output content) {
            $.content = content;
            return this;
        }

        /**
         * @param content Either the JSON Schema content or the ARN of an AWS Lambda function.
         * 
         * @return builder
         * 
         */
        public Builder content(String content) {
            return content(Output.of(content));
        }

        /**
         * @param type Type of validator. Valid values: `JSON_SCHEMA` and `LAMBDA`.
         * 
         * @return builder
         * 
         */
        public Builder type(Output type) {
            $.type = type;
            return this;
        }

        /**
         * @param type Type of validator. Valid values: `JSON_SCHEMA` and `LAMBDA`.
         * 
         * @return builder
         * 
         */
        public Builder type(String type) {
            return type(Output.of(type));
        }

        public ConfigurationProfileValidatorArgs build() {
            if ($.type == null) {
                throw new MissingRequiredPropertyException("ConfigurationProfileValidatorArgs", "type");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy