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

com.pulumi.aws.ecs.inputs.TaskSetServiceRegistriesArgs 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.60.0-alpha.1731982519
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.ecs.inputs;

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


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

    public static final TaskSetServiceRegistriesArgs Empty = new TaskSetServiceRegistriesArgs();

    /**
     * The container name value, already specified in the task definition, to be used for your service discovery service.
     * 
     */
    @Import(name="containerName")
    private @Nullable Output containerName;

    /**
     * @return The container name value, already specified in the task definition, to be used for your service discovery service.
     * 
     */
    public Optional> containerName() {
        return Optional.ofNullable(this.containerName);
    }

    /**
     * The port value, already specified in the task definition, to be used for your service discovery service.
     * 
     */
    @Import(name="containerPort")
    private @Nullable Output containerPort;

    /**
     * @return The port value, already specified in the task definition, to be used for your service discovery service.
     * 
     */
    public Optional> containerPort() {
        return Optional.ofNullable(this.containerPort);
    }

    /**
     * The port value used if your Service Discovery service specified an SRV record.
     * 
     */
    @Import(name="port")
    private @Nullable Output port;

    /**
     * @return The port value used if your Service Discovery service specified an SRV record.
     * 
     */
    public Optional> port() {
        return Optional.ofNullable(this.port);
    }

    /**
     * The ARN of the Service Registry. The currently supported service registry is Amazon Route 53 Auto Naming Service(`aws.servicediscovery.Service` resource). For more information, see [Service](https://docs.aws.amazon.com/Route53/latest/APIReference/API_autonaming_Service.html).
     * 
     */
    @Import(name="registryArn", required=true)
    private Output registryArn;

    /**
     * @return The ARN of the Service Registry. The currently supported service registry is Amazon Route 53 Auto Naming Service(`aws.servicediscovery.Service` resource). For more information, see [Service](https://docs.aws.amazon.com/Route53/latest/APIReference/API_autonaming_Service.html).
     * 
     */
    public Output registryArn() {
        return this.registryArn;
    }

    private TaskSetServiceRegistriesArgs() {}

    private TaskSetServiceRegistriesArgs(TaskSetServiceRegistriesArgs $) {
        this.containerName = $.containerName;
        this.containerPort = $.containerPort;
        this.port = $.port;
        this.registryArn = $.registryArn;
    }

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

    public static final class Builder {
        private TaskSetServiceRegistriesArgs $;

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

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

        /**
         * @param containerName The container name value, already specified in the task definition, to be used for your service discovery service.
         * 
         * @return builder
         * 
         */
        public Builder containerName(@Nullable Output containerName) {
            $.containerName = containerName;
            return this;
        }

        /**
         * @param containerName The container name value, already specified in the task definition, to be used for your service discovery service.
         * 
         * @return builder
         * 
         */
        public Builder containerName(String containerName) {
            return containerName(Output.of(containerName));
        }

        /**
         * @param containerPort The port value, already specified in the task definition, to be used for your service discovery service.
         * 
         * @return builder
         * 
         */
        public Builder containerPort(@Nullable Output containerPort) {
            $.containerPort = containerPort;
            return this;
        }

        /**
         * @param containerPort The port value, already specified in the task definition, to be used for your service discovery service.
         * 
         * @return builder
         * 
         */
        public Builder containerPort(Integer containerPort) {
            return containerPort(Output.of(containerPort));
        }

        /**
         * @param port The port value used if your Service Discovery service specified an SRV record.
         * 
         * @return builder
         * 
         */
        public Builder port(@Nullable Output port) {
            $.port = port;
            return this;
        }

        /**
         * @param port The port value used if your Service Discovery service specified an SRV record.
         * 
         * @return builder
         * 
         */
        public Builder port(Integer port) {
            return port(Output.of(port));
        }

        /**
         * @param registryArn The ARN of the Service Registry. The currently supported service registry is Amazon Route 53 Auto Naming Service(`aws.servicediscovery.Service` resource). For more information, see [Service](https://docs.aws.amazon.com/Route53/latest/APIReference/API_autonaming_Service.html).
         * 
         * @return builder
         * 
         */
        public Builder registryArn(Output registryArn) {
            $.registryArn = registryArn;
            return this;
        }

        /**
         * @param registryArn The ARN of the Service Registry. The currently supported service registry is Amazon Route 53 Auto Naming Service(`aws.servicediscovery.Service` resource). For more information, see [Service](https://docs.aws.amazon.com/Route53/latest/APIReference/API_autonaming_Service.html).
         * 
         * @return builder
         * 
         */
        public Builder registryArn(String registryArn) {
            return registryArn(Output.of(registryArn));
        }

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

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy