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

com.pulumi.aws.ec2.inputs.InstancePrivateDnsNameOptionsArgs 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.ec2.inputs;

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


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

    public static final InstancePrivateDnsNameOptionsArgs Empty = new InstancePrivateDnsNameOptionsArgs();

    /**
     * Indicates whether to respond to DNS queries for instance hostnames with DNS A records.
     * 
     */
    @Import(name="enableResourceNameDnsARecord")
    private @Nullable Output enableResourceNameDnsARecord;

    /**
     * @return Indicates whether to respond to DNS queries for instance hostnames with DNS A records.
     * 
     */
    public Optional> enableResourceNameDnsARecord() {
        return Optional.ofNullable(this.enableResourceNameDnsARecord);
    }

    /**
     * Indicates whether to respond to DNS queries for instance hostnames with DNS AAAA records.
     * 
     */
    @Import(name="enableResourceNameDnsAaaaRecord")
    private @Nullable Output enableResourceNameDnsAaaaRecord;

    /**
     * @return Indicates whether to respond to DNS queries for instance hostnames with DNS AAAA records.
     * 
     */
    public Optional> enableResourceNameDnsAaaaRecord() {
        return Optional.ofNullable(this.enableResourceNameDnsAaaaRecord);
    }

    /**
     * Type of hostname for Amazon EC2 instances. For IPv4 only subnets, an instance DNS name must be based on the instance IPv4 address. For IPv6 native subnets, an instance DNS name must be based on the instance ID. For dual-stack subnets, you can specify whether DNS names use the instance IPv4 address or the instance ID. Valid values: `ip-name` and `resource-name`.
     * 
     */
    @Import(name="hostnameType")
    private @Nullable Output hostnameType;

    /**
     * @return Type of hostname for Amazon EC2 instances. For IPv4 only subnets, an instance DNS name must be based on the instance IPv4 address. For IPv6 native subnets, an instance DNS name must be based on the instance ID. For dual-stack subnets, you can specify whether DNS names use the instance IPv4 address or the instance ID. Valid values: `ip-name` and `resource-name`.
     * 
     */
    public Optional> hostnameType() {
        return Optional.ofNullable(this.hostnameType);
    }

    private InstancePrivateDnsNameOptionsArgs() {}

    private InstancePrivateDnsNameOptionsArgs(InstancePrivateDnsNameOptionsArgs $) {
        this.enableResourceNameDnsARecord = $.enableResourceNameDnsARecord;
        this.enableResourceNameDnsAaaaRecord = $.enableResourceNameDnsAaaaRecord;
        this.hostnameType = $.hostnameType;
    }

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

    public static final class Builder {
        private InstancePrivateDnsNameOptionsArgs $;

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

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

        /**
         * @param enableResourceNameDnsARecord Indicates whether to respond to DNS queries for instance hostnames with DNS A records.
         * 
         * @return builder
         * 
         */
        public Builder enableResourceNameDnsARecord(@Nullable Output enableResourceNameDnsARecord) {
            $.enableResourceNameDnsARecord = enableResourceNameDnsARecord;
            return this;
        }

        /**
         * @param enableResourceNameDnsARecord Indicates whether to respond to DNS queries for instance hostnames with DNS A records.
         * 
         * @return builder
         * 
         */
        public Builder enableResourceNameDnsARecord(Boolean enableResourceNameDnsARecord) {
            return enableResourceNameDnsARecord(Output.of(enableResourceNameDnsARecord));
        }

        /**
         * @param enableResourceNameDnsAaaaRecord Indicates whether to respond to DNS queries for instance hostnames with DNS AAAA records.
         * 
         * @return builder
         * 
         */
        public Builder enableResourceNameDnsAaaaRecord(@Nullable Output enableResourceNameDnsAaaaRecord) {
            $.enableResourceNameDnsAaaaRecord = enableResourceNameDnsAaaaRecord;
            return this;
        }

        /**
         * @param enableResourceNameDnsAaaaRecord Indicates whether to respond to DNS queries for instance hostnames with DNS AAAA records.
         * 
         * @return builder
         * 
         */
        public Builder enableResourceNameDnsAaaaRecord(Boolean enableResourceNameDnsAaaaRecord) {
            return enableResourceNameDnsAaaaRecord(Output.of(enableResourceNameDnsAaaaRecord));
        }

        /**
         * @param hostnameType Type of hostname for Amazon EC2 instances. For IPv4 only subnets, an instance DNS name must be based on the instance IPv4 address. For IPv6 native subnets, an instance DNS name must be based on the instance ID. For dual-stack subnets, you can specify whether DNS names use the instance IPv4 address or the instance ID. Valid values: `ip-name` and `resource-name`.
         * 
         * @return builder
         * 
         */
        public Builder hostnameType(@Nullable Output hostnameType) {
            $.hostnameType = hostnameType;
            return this;
        }

        /**
         * @param hostnameType Type of hostname for Amazon EC2 instances. For IPv4 only subnets, an instance DNS name must be based on the instance IPv4 address. For IPv6 native subnets, an instance DNS name must be based on the instance ID. For dual-stack subnets, you can specify whether DNS names use the instance IPv4 address or the instance ID. Valid values: `ip-name` and `resource-name`.
         * 
         * @return builder
         * 
         */
        public Builder hostnameType(String hostnameType) {
            return hostnameType(Output.of(hostnameType));
        }

        public InstancePrivateDnsNameOptionsArgs build() {
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy