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

com.pulumi.aws.ecs.inputs.GetServicePlainArgs 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.ecs.inputs;

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


public final class GetServicePlainArgs extends com.pulumi.resources.InvokeArgs {

    public static final GetServicePlainArgs Empty = new GetServicePlainArgs();

    /**
     * ARN of the ECS Cluster
     * 
     */
    @Import(name="clusterArn", required=true)
    private String clusterArn;

    /**
     * @return ARN of the ECS Cluster
     * 
     */
    public String clusterArn() {
        return this.clusterArn;
    }

    /**
     * Name of the ECS Service
     * 
     */
    @Import(name="serviceName", required=true)
    private String serviceName;

    /**
     * @return Name of the ECS Service
     * 
     */
    public String serviceName() {
        return this.serviceName;
    }

    /**
     * Resource tags.
     * 
     */
    @Import(name="tags")
    private @Nullable Map tags;

    /**
     * @return Resource tags.
     * 
     */
    public Optional> tags() {
        return Optional.ofNullable(this.tags);
    }

    private GetServicePlainArgs() {}

    private GetServicePlainArgs(GetServicePlainArgs $) {
        this.clusterArn = $.clusterArn;
        this.serviceName = $.serviceName;
        this.tags = $.tags;
    }

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

    public static final class Builder {
        private GetServicePlainArgs $;

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

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

        /**
         * @param clusterArn ARN of the ECS Cluster
         * 
         * @return builder
         * 
         */
        public Builder clusterArn(String clusterArn) {
            $.clusterArn = clusterArn;
            return this;
        }

        /**
         * @param serviceName Name of the ECS Service
         * 
         * @return builder
         * 
         */
        public Builder serviceName(String serviceName) {
            $.serviceName = serviceName;
            return this;
        }

        /**
         * @param tags Resource tags.
         * 
         * @return builder
         * 
         */
        public Builder tags(@Nullable Map tags) {
            $.tags = tags;
            return this;
        }

        public GetServicePlainArgs build() {
            if ($.clusterArn == null) {
                throw new MissingRequiredPropertyException("GetServicePlainArgs", "clusterArn");
            }
            if ($.serviceName == null) {
                throw new MissingRequiredPropertyException("GetServicePlainArgs", "serviceName");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy