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

com.pulumi.aws.iot.CaCertificateArgs Maven / Gradle / Ivy

Go to download

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

There is a newer version: 6.66.3
Show 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.iot;

import com.pulumi.aws.iot.inputs.CaCertificateRegistrationConfigArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Boolean;
import java.lang.String;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final CaCertificateArgs Empty = new CaCertificateArgs();

    /**
     * Boolean flag to indicate if the certificate should be active for device authentication.
     * 
     */
    @Import(name="active", required=true)
    private Output active;

    /**
     * @return Boolean flag to indicate if the certificate should be active for device authentication.
     * 
     */
    public Output active() {
        return this.active;
    }

    /**
     * Boolean flag to indicate if the certificate should be active for device regisration.
     * 
     */
    @Import(name="allowAutoRegistration", required=true)
    private Output allowAutoRegistration;

    /**
     * @return Boolean flag to indicate if the certificate should be active for device regisration.
     * 
     */
    public Output allowAutoRegistration() {
        return this.allowAutoRegistration;
    }

    /**
     * PEM encoded CA certificate.
     * 
     */
    @Import(name="caCertificatePem", required=true)
    private Output caCertificatePem;

    /**
     * @return PEM encoded CA certificate.
     * 
     */
    public Output caCertificatePem() {
        return this.caCertificatePem;
    }

    /**
     * The certificate mode in which the CA will be registered. Valida values: `DEFAULT` and `SNI_ONLY`. Default: `DEFAULT`.
     * 
     */
    @Import(name="certificateMode")
    private @Nullable Output certificateMode;

    /**
     * @return The certificate mode in which the CA will be registered. Valida values: `DEFAULT` and `SNI_ONLY`. Default: `DEFAULT`.
     * 
     */
    public Optional> certificateMode() {
        return Optional.ofNullable(this.certificateMode);
    }

    /**
     * Information about the registration configuration. See below.
     * 
     */
    @Import(name="registrationConfig")
    private @Nullable Output registrationConfig;

    /**
     * @return Information about the registration configuration. See below.
     * 
     */
    public Optional> registrationConfig() {
        return Optional.ofNullable(this.registrationConfig);
    }

    /**
     * A map of tags to assign to the resource. If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
     * 
     */
    @Import(name="tags")
    private @Nullable Output> tags;

    /**
     * @return A map of tags to assign to the resource. If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
     * 
     */
    public Optional>> tags() {
        return Optional.ofNullable(this.tags);
    }

    /**
     * PEM encoded verification certificate containing the common name of a registration code. Review
     * [CreateVerificationCSR](https://docs.aws.amazon.com/iot/latest/developerguide/register-CA-cert.html). Reuired if `certificate_mode` is `DEFAULT`.
     * 
     */
    @Import(name="verificationCertificatePem")
    private @Nullable Output verificationCertificatePem;

    /**
     * @return PEM encoded verification certificate containing the common name of a registration code. Review
     * [CreateVerificationCSR](https://docs.aws.amazon.com/iot/latest/developerguide/register-CA-cert.html). Reuired if `certificate_mode` is `DEFAULT`.
     * 
     */
    public Optional> verificationCertificatePem() {
        return Optional.ofNullable(this.verificationCertificatePem);
    }

    private CaCertificateArgs() {}

    private CaCertificateArgs(CaCertificateArgs $) {
        this.active = $.active;
        this.allowAutoRegistration = $.allowAutoRegistration;
        this.caCertificatePem = $.caCertificatePem;
        this.certificateMode = $.certificateMode;
        this.registrationConfig = $.registrationConfig;
        this.tags = $.tags;
        this.verificationCertificatePem = $.verificationCertificatePem;
    }

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

    public static final class Builder {
        private CaCertificateArgs $;

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

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

        /**
         * @param active Boolean flag to indicate if the certificate should be active for device authentication.
         * 
         * @return builder
         * 
         */
        public Builder active(Output active) {
            $.active = active;
            return this;
        }

        /**
         * @param active Boolean flag to indicate if the certificate should be active for device authentication.
         * 
         * @return builder
         * 
         */
        public Builder active(Boolean active) {
            return active(Output.of(active));
        }

        /**
         * @param allowAutoRegistration Boolean flag to indicate if the certificate should be active for device regisration.
         * 
         * @return builder
         * 
         */
        public Builder allowAutoRegistration(Output allowAutoRegistration) {
            $.allowAutoRegistration = allowAutoRegistration;
            return this;
        }

        /**
         * @param allowAutoRegistration Boolean flag to indicate if the certificate should be active for device regisration.
         * 
         * @return builder
         * 
         */
        public Builder allowAutoRegistration(Boolean allowAutoRegistration) {
            return allowAutoRegistration(Output.of(allowAutoRegistration));
        }

        /**
         * @param caCertificatePem PEM encoded CA certificate.
         * 
         * @return builder
         * 
         */
        public Builder caCertificatePem(Output caCertificatePem) {
            $.caCertificatePem = caCertificatePem;
            return this;
        }

        /**
         * @param caCertificatePem PEM encoded CA certificate.
         * 
         * @return builder
         * 
         */
        public Builder caCertificatePem(String caCertificatePem) {
            return caCertificatePem(Output.of(caCertificatePem));
        }

        /**
         * @param certificateMode The certificate mode in which the CA will be registered. Valida values: `DEFAULT` and `SNI_ONLY`. Default: `DEFAULT`.
         * 
         * @return builder
         * 
         */
        public Builder certificateMode(@Nullable Output certificateMode) {
            $.certificateMode = certificateMode;
            return this;
        }

        /**
         * @param certificateMode The certificate mode in which the CA will be registered. Valida values: `DEFAULT` and `SNI_ONLY`. Default: `DEFAULT`.
         * 
         * @return builder
         * 
         */
        public Builder certificateMode(String certificateMode) {
            return certificateMode(Output.of(certificateMode));
        }

        /**
         * @param registrationConfig Information about the registration configuration. See below.
         * 
         * @return builder
         * 
         */
        public Builder registrationConfig(@Nullable Output registrationConfig) {
            $.registrationConfig = registrationConfig;
            return this;
        }

        /**
         * @param registrationConfig Information about the registration configuration. See below.
         * 
         * @return builder
         * 
         */
        public Builder registrationConfig(CaCertificateRegistrationConfigArgs registrationConfig) {
            return registrationConfig(Output.of(registrationConfig));
        }

        /**
         * @param tags A map of tags to assign to the resource. If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
         * 
         * @return builder
         * 
         */
        public Builder tags(@Nullable Output> tags) {
            $.tags = tags;
            return this;
        }

        /**
         * @param tags A map of tags to assign to the resource. If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
         * 
         * @return builder
         * 
         */
        public Builder tags(Map tags) {
            return tags(Output.of(tags));
        }

        /**
         * @param verificationCertificatePem PEM encoded verification certificate containing the common name of a registration code. Review
         * [CreateVerificationCSR](https://docs.aws.amazon.com/iot/latest/developerguide/register-CA-cert.html). Reuired if `certificate_mode` is `DEFAULT`.
         * 
         * @return builder
         * 
         */
        public Builder verificationCertificatePem(@Nullable Output verificationCertificatePem) {
            $.verificationCertificatePem = verificationCertificatePem;
            return this;
        }

        /**
         * @param verificationCertificatePem PEM encoded verification certificate containing the common name of a registration code. Review
         * [CreateVerificationCSR](https://docs.aws.amazon.com/iot/latest/developerguide/register-CA-cert.html). Reuired if `certificate_mode` is `DEFAULT`.
         * 
         * @return builder
         * 
         */
        public Builder verificationCertificatePem(String verificationCertificatePem) {
            return verificationCertificatePem(Output.of(verificationCertificatePem));
        }

        public CaCertificateArgs build() {
            if ($.active == null) {
                throw new MissingRequiredPropertyException("CaCertificateArgs", "active");
            }
            if ($.allowAutoRegistration == null) {
                throw new MissingRequiredPropertyException("CaCertificateArgs", "allowAutoRegistration");
            }
            if ($.caCertificatePem == null) {
                throw new MissingRequiredPropertyException("CaCertificateArgs", "caCertificatePem");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy