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

com.pulumi.aws.cloudhsmv2.ClusterArgs 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.72.0
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.cloudhsmv2;

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.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final ClusterArgs Empty = new ClusterArgs();

    /**
     * The type of HSM module in the cluster. Currently, `hsm1.medium` and `hsm2m.medium` are supported.
     * 
     */
    @Import(name="hsmType", required=true)
    private Output hsmType;

    /**
     * @return The type of HSM module in the cluster. Currently, `hsm1.medium` and `hsm2m.medium` are supported.
     * 
     */
    public Output hsmType() {
        return this.hsmType;
    }

    /**
     * The mode to use in the cluster. The allowed values are `FIPS` and `NON_FIPS`. This field is required if `hsm_type` is `hsm2m.medium`.
     * 
     */
    @Import(name="mode")
    private @Nullable Output mode;

    /**
     * @return The mode to use in the cluster. The allowed values are `FIPS` and `NON_FIPS`. This field is required if `hsm_type` is `hsm2m.medium`.
     * 
     */
    public Optional> mode() {
        return Optional.ofNullable(this.mode);
    }

    /**
     * ID of Cloud HSM v2 cluster backup to be restored.
     * 
     */
    @Import(name="sourceBackupIdentifier")
    private @Nullable Output sourceBackupIdentifier;

    /**
     * @return ID of Cloud HSM v2 cluster backup to be restored.
     * 
     */
    public Optional> sourceBackupIdentifier() {
        return Optional.ofNullable(this.sourceBackupIdentifier);
    }

    /**
     * The IDs of subnets in which cluster will operate.
     * 
     */
    @Import(name="subnetIds", required=true)
    private Output> subnetIds;

    /**
     * @return The IDs of subnets in which cluster will operate.
     * 
     */
    public Output> subnetIds() {
        return this.subnetIds;
    }

    /**
     * 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);
    }

    private ClusterArgs() {}

    private ClusterArgs(ClusterArgs $) {
        this.hsmType = $.hsmType;
        this.mode = $.mode;
        this.sourceBackupIdentifier = $.sourceBackupIdentifier;
        this.subnetIds = $.subnetIds;
        this.tags = $.tags;
    }

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

    public static final class Builder {
        private ClusterArgs $;

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

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

        /**
         * @param hsmType The type of HSM module in the cluster. Currently, `hsm1.medium` and `hsm2m.medium` are supported.
         * 
         * @return builder
         * 
         */
        public Builder hsmType(Output hsmType) {
            $.hsmType = hsmType;
            return this;
        }

        /**
         * @param hsmType The type of HSM module in the cluster. Currently, `hsm1.medium` and `hsm2m.medium` are supported.
         * 
         * @return builder
         * 
         */
        public Builder hsmType(String hsmType) {
            return hsmType(Output.of(hsmType));
        }

        /**
         * @param mode The mode to use in the cluster. The allowed values are `FIPS` and `NON_FIPS`. This field is required if `hsm_type` is `hsm2m.medium`.
         * 
         * @return builder
         * 
         */
        public Builder mode(@Nullable Output mode) {
            $.mode = mode;
            return this;
        }

        /**
         * @param mode The mode to use in the cluster. The allowed values are `FIPS` and `NON_FIPS`. This field is required if `hsm_type` is `hsm2m.medium`.
         * 
         * @return builder
         * 
         */
        public Builder mode(String mode) {
            return mode(Output.of(mode));
        }

        /**
         * @param sourceBackupIdentifier ID of Cloud HSM v2 cluster backup to be restored.
         * 
         * @return builder
         * 
         */
        public Builder sourceBackupIdentifier(@Nullable Output sourceBackupIdentifier) {
            $.sourceBackupIdentifier = sourceBackupIdentifier;
            return this;
        }

        /**
         * @param sourceBackupIdentifier ID of Cloud HSM v2 cluster backup to be restored.
         * 
         * @return builder
         * 
         */
        public Builder sourceBackupIdentifier(String sourceBackupIdentifier) {
            return sourceBackupIdentifier(Output.of(sourceBackupIdentifier));
        }

        /**
         * @param subnetIds The IDs of subnets in which cluster will operate.
         * 
         * @return builder
         * 
         */
        public Builder subnetIds(Output> subnetIds) {
            $.subnetIds = subnetIds;
            return this;
        }

        /**
         * @param subnetIds The IDs of subnets in which cluster will operate.
         * 
         * @return builder
         * 
         */
        public Builder subnetIds(List subnetIds) {
            return subnetIds(Output.of(subnetIds));
        }

        /**
         * @param subnetIds The IDs of subnets in which cluster will operate.
         * 
         * @return builder
         * 
         */
        public Builder subnetIds(String... subnetIds) {
            return subnetIds(List.of(subnetIds));
        }

        /**
         * @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));
        }

        public ClusterArgs build() {
            if ($.hsmType == null) {
                throw new MissingRequiredPropertyException("ClusterArgs", "hsmType");
            }
            if ($.subnetIds == null) {
                throw new MissingRequiredPropertyException("ClusterArgs", "subnetIds");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy