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

com.pulumi.aws.acm.CertificateValidationArgs 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.acm;

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


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

    public static final CertificateValidationArgs Empty = new CertificateValidationArgs();

    /**
     * ARN of the certificate that is being validated.
     * 
     */
    @Import(name="certificateArn", required=true)
    private Output certificateArn;

    /**
     * @return ARN of the certificate that is being validated.
     * 
     */
    public Output certificateArn() {
        return this.certificateArn;
    }

    /**
     * List of FQDNs that implement the validation. Only valid for DNS validation method ACM certificates. If this is set, the resource can implement additional sanity checks and has an explicit dependency on the resource that is implementing the validation
     * 
     */
    @Import(name="validationRecordFqdns")
    private @Nullable Output> validationRecordFqdns;

    /**
     * @return List of FQDNs that implement the validation. Only valid for DNS validation method ACM certificates. If this is set, the resource can implement additional sanity checks and has an explicit dependency on the resource that is implementing the validation
     * 
     */
    public Optional>> validationRecordFqdns() {
        return Optional.ofNullable(this.validationRecordFqdns);
    }

    private CertificateValidationArgs() {}

    private CertificateValidationArgs(CertificateValidationArgs $) {
        this.certificateArn = $.certificateArn;
        this.validationRecordFqdns = $.validationRecordFqdns;
    }

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

    public static final class Builder {
        private CertificateValidationArgs $;

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

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

        /**
         * @param certificateArn ARN of the certificate that is being validated.
         * 
         * @return builder
         * 
         */
        public Builder certificateArn(Output certificateArn) {
            $.certificateArn = certificateArn;
            return this;
        }

        /**
         * @param certificateArn ARN of the certificate that is being validated.
         * 
         * @return builder
         * 
         */
        public Builder certificateArn(String certificateArn) {
            return certificateArn(Output.of(certificateArn));
        }

        /**
         * @param validationRecordFqdns List of FQDNs that implement the validation. Only valid for DNS validation method ACM certificates. If this is set, the resource can implement additional sanity checks and has an explicit dependency on the resource that is implementing the validation
         * 
         * @return builder
         * 
         */
        public Builder validationRecordFqdns(@Nullable Output> validationRecordFqdns) {
            $.validationRecordFqdns = validationRecordFqdns;
            return this;
        }

        /**
         * @param validationRecordFqdns List of FQDNs that implement the validation. Only valid for DNS validation method ACM certificates. If this is set, the resource can implement additional sanity checks and has an explicit dependency on the resource that is implementing the validation
         * 
         * @return builder
         * 
         */
        public Builder validationRecordFqdns(List validationRecordFqdns) {
            return validationRecordFqdns(Output.of(validationRecordFqdns));
        }

        /**
         * @param validationRecordFqdns List of FQDNs that implement the validation. Only valid for DNS validation method ACM certificates. If this is set, the resource can implement additional sanity checks and has an explicit dependency on the resource that is implementing the validation
         * 
         * @return builder
         * 
         */
        public Builder validationRecordFqdns(String... validationRecordFqdns) {
            return validationRecordFqdns(List.of(validationRecordFqdns));
        }

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

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy