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

com.pulumi.aws.servicediscovery.ServiceArgs 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.servicediscovery;

import com.pulumi.aws.servicediscovery.inputs.ServiceDnsConfigArgs;
import com.pulumi.aws.servicediscovery.inputs.ServiceHealthCheckConfigArgs;
import com.pulumi.aws.servicediscovery.inputs.ServiceHealthCheckCustomConfigArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
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 ServiceArgs extends com.pulumi.resources.ResourceArgs {

    public static final ServiceArgs Empty = new ServiceArgs();

    /**
     * The description of the service.
     * 
     */
    @Import(name="description")
    private @Nullable Output description;

    /**
     * @return The description of the service.
     * 
     */
    public Optional> description() {
        return Optional.ofNullable(this.description);
    }

    /**
     * A complex type that contains information about the resource record sets that you want Amazon Route 53 to create when you register an instance. See `dns_config` Block for details.
     * 
     */
    @Import(name="dnsConfig")
    private @Nullable Output dnsConfig;

    /**
     * @return A complex type that contains information about the resource record sets that you want Amazon Route 53 to create when you register an instance. See `dns_config` Block for details.
     * 
     */
    public Optional> dnsConfig() {
        return Optional.ofNullable(this.dnsConfig);
    }

    /**
     * A boolean that indicates all instances should be deleted from the service so that the service can be destroyed without error. These instances are not recoverable. Defaults to `false`.
     * 
     */
    @Import(name="forceDestroy")
    private @Nullable Output forceDestroy;

    /**
     * @return A boolean that indicates all instances should be deleted from the service so that the service can be destroyed without error. These instances are not recoverable. Defaults to `false`.
     * 
     */
    public Optional> forceDestroy() {
        return Optional.ofNullable(this.forceDestroy);
    }

    /**
     * A complex type that contains settings for an optional health check. Only for Public DNS namespaces. See `health_check_config` Block for details.
     * 
     */
    @Import(name="healthCheckConfig")
    private @Nullable Output healthCheckConfig;

    /**
     * @return A complex type that contains settings for an optional health check. Only for Public DNS namespaces. See `health_check_config` Block for details.
     * 
     */
    public Optional> healthCheckConfig() {
        return Optional.ofNullable(this.healthCheckConfig);
    }

    /**
     * A complex type that contains settings for ECS managed health checks. See `health_check_custom_config` Block for details.
     * 
     */
    @Import(name="healthCheckCustomConfig")
    private @Nullable Output healthCheckCustomConfig;

    /**
     * @return A complex type that contains settings for ECS managed health checks. See `health_check_custom_config` Block for details.
     * 
     */
    public Optional> healthCheckCustomConfig() {
        return Optional.ofNullable(this.healthCheckCustomConfig);
    }

    /**
     * The name of the service.
     * 
     */
    @Import(name="name")
    private @Nullable Output name;

    /**
     * @return The name of the service.
     * 
     */
    public Optional> name() {
        return Optional.ofNullable(this.name);
    }

    /**
     * The ID of the namespace that you want to use to create the service.
     * 
     */
    @Import(name="namespaceId")
    private @Nullable Output namespaceId;

    /**
     * @return The ID of the namespace that you want to use to create the service.
     * 
     */
    public Optional> namespaceId() {
        return Optional.ofNullable(this.namespaceId);
    }

    /**
     * A map of tags to assign to the service. 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 service. 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);
    }

    /**
     * If present, specifies that the service instances are only discoverable using the `DiscoverInstances` API operation. No DNS records is registered for the service instances. The only valid value is `HTTP`.
     * 
     */
    @Import(name="type")
    private @Nullable Output type;

    /**
     * @return If present, specifies that the service instances are only discoverable using the `DiscoverInstances` API operation. No DNS records is registered for the service instances. The only valid value is `HTTP`.
     * 
     */
    public Optional> type() {
        return Optional.ofNullable(this.type);
    }

    private ServiceArgs() {}

    private ServiceArgs(ServiceArgs $) {
        this.description = $.description;
        this.dnsConfig = $.dnsConfig;
        this.forceDestroy = $.forceDestroy;
        this.healthCheckConfig = $.healthCheckConfig;
        this.healthCheckCustomConfig = $.healthCheckCustomConfig;
        this.name = $.name;
        this.namespaceId = $.namespaceId;
        this.tags = $.tags;
        this.type = $.type;
    }

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

    public static final class Builder {
        private ServiceArgs $;

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

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

        /**
         * @param description The description of the service.
         * 
         * @return builder
         * 
         */
        public Builder description(@Nullable Output description) {
            $.description = description;
            return this;
        }

        /**
         * @param description The description of the service.
         * 
         * @return builder
         * 
         */
        public Builder description(String description) {
            return description(Output.of(description));
        }

        /**
         * @param dnsConfig A complex type that contains information about the resource record sets that you want Amazon Route 53 to create when you register an instance. See `dns_config` Block for details.
         * 
         * @return builder
         * 
         */
        public Builder dnsConfig(@Nullable Output dnsConfig) {
            $.dnsConfig = dnsConfig;
            return this;
        }

        /**
         * @param dnsConfig A complex type that contains information about the resource record sets that you want Amazon Route 53 to create when you register an instance. See `dns_config` Block for details.
         * 
         * @return builder
         * 
         */
        public Builder dnsConfig(ServiceDnsConfigArgs dnsConfig) {
            return dnsConfig(Output.of(dnsConfig));
        }

        /**
         * @param forceDestroy A boolean that indicates all instances should be deleted from the service so that the service can be destroyed without error. These instances are not recoverable. Defaults to `false`.
         * 
         * @return builder
         * 
         */
        public Builder forceDestroy(@Nullable Output forceDestroy) {
            $.forceDestroy = forceDestroy;
            return this;
        }

        /**
         * @param forceDestroy A boolean that indicates all instances should be deleted from the service so that the service can be destroyed without error. These instances are not recoverable. Defaults to `false`.
         * 
         * @return builder
         * 
         */
        public Builder forceDestroy(Boolean forceDestroy) {
            return forceDestroy(Output.of(forceDestroy));
        }

        /**
         * @param healthCheckConfig A complex type that contains settings for an optional health check. Only for Public DNS namespaces. See `health_check_config` Block for details.
         * 
         * @return builder
         * 
         */
        public Builder healthCheckConfig(@Nullable Output healthCheckConfig) {
            $.healthCheckConfig = healthCheckConfig;
            return this;
        }

        /**
         * @param healthCheckConfig A complex type that contains settings for an optional health check. Only for Public DNS namespaces. See `health_check_config` Block for details.
         * 
         * @return builder
         * 
         */
        public Builder healthCheckConfig(ServiceHealthCheckConfigArgs healthCheckConfig) {
            return healthCheckConfig(Output.of(healthCheckConfig));
        }

        /**
         * @param healthCheckCustomConfig A complex type that contains settings for ECS managed health checks. See `health_check_custom_config` Block for details.
         * 
         * @return builder
         * 
         */
        public Builder healthCheckCustomConfig(@Nullable Output healthCheckCustomConfig) {
            $.healthCheckCustomConfig = healthCheckCustomConfig;
            return this;
        }

        /**
         * @param healthCheckCustomConfig A complex type that contains settings for ECS managed health checks. See `health_check_custom_config` Block for details.
         * 
         * @return builder
         * 
         */
        public Builder healthCheckCustomConfig(ServiceHealthCheckCustomConfigArgs healthCheckCustomConfig) {
            return healthCheckCustomConfig(Output.of(healthCheckCustomConfig));
        }

        /**
         * @param name The name of the service.
         * 
         * @return builder
         * 
         */
        public Builder name(@Nullable Output name) {
            $.name = name;
            return this;
        }

        /**
         * @param name The name of the service.
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

        /**
         * @param namespaceId The ID of the namespace that you want to use to create the service.
         * 
         * @return builder
         * 
         */
        public Builder namespaceId(@Nullable Output namespaceId) {
            $.namespaceId = namespaceId;
            return this;
        }

        /**
         * @param namespaceId The ID of the namespace that you want to use to create the service.
         * 
         * @return builder
         * 
         */
        public Builder namespaceId(String namespaceId) {
            return namespaceId(Output.of(namespaceId));
        }

        /**
         * @param tags A map of tags to assign to the service. 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 service. 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 type If present, specifies that the service instances are only discoverable using the `DiscoverInstances` API operation. No DNS records is registered for the service instances. The only valid value is `HTTP`.
         * 
         * @return builder
         * 
         */
        public Builder type(@Nullable Output type) {
            $.type = type;
            return this;
        }

        /**
         * @param type If present, specifies that the service instances are only discoverable using the `DiscoverInstances` API operation. No DNS records is registered for the service instances. The only valid value is `HTTP`.
         * 
         * @return builder
         * 
         */
        public Builder type(String type) {
            return type(Output.of(type));
        }

        public ServiceArgs build() {
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy