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

com.pulumi.aws.ecs.inputs.ServiceServiceConnectConfigurationArgs 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.aws.ecs.inputs.ServiceServiceConnectConfigurationLogConfigurationArgs;
import com.pulumi.aws.ecs.inputs.ServiceServiceConnectConfigurationServiceArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Boolean;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final ServiceServiceConnectConfigurationArgs Empty = new ServiceServiceConnectConfigurationArgs();

    /**
     * Whether to use Service Connect with this service.
     * 
     */
    @Import(name="enabled", required=true)
    private Output enabled;

    /**
     * @return Whether to use Service Connect with this service.
     * 
     */
    public Output enabled() {
        return this.enabled;
    }

    /**
     * Log configuration for the container. See below.
     * 
     */
    @Import(name="logConfiguration")
    private @Nullable Output logConfiguration;

    /**
     * @return Log configuration for the container. See below.
     * 
     */
    public Optional> logConfiguration() {
        return Optional.ofNullable(this.logConfiguration);
    }

    /**
     * Namespace name or ARN of the `aws.servicediscovery.HttpNamespace` for use with Service Connect.
     * 
     */
    @Import(name="namespace")
    private @Nullable Output namespace;

    /**
     * @return Namespace name or ARN of the `aws.servicediscovery.HttpNamespace` for use with Service Connect.
     * 
     */
    public Optional> namespace() {
        return Optional.ofNullable(this.namespace);
    }

    /**
     * List of Service Connect service objects. See below.
     * 
     */
    @Import(name="services")
    private @Nullable Output> services;

    /**
     * @return List of Service Connect service objects. See below.
     * 
     */
    public Optional>> services() {
        return Optional.ofNullable(this.services);
    }

    private ServiceServiceConnectConfigurationArgs() {}

    private ServiceServiceConnectConfigurationArgs(ServiceServiceConnectConfigurationArgs $) {
        this.enabled = $.enabled;
        this.logConfiguration = $.logConfiguration;
        this.namespace = $.namespace;
        this.services = $.services;
    }

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

    public static final class Builder {
        private ServiceServiceConnectConfigurationArgs $;

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

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

        /**
         * @param enabled Whether to use Service Connect with this service.
         * 
         * @return builder
         * 
         */
        public Builder enabled(Output enabled) {
            $.enabled = enabled;
            return this;
        }

        /**
         * @param enabled Whether to use Service Connect with this service.
         * 
         * @return builder
         * 
         */
        public Builder enabled(Boolean enabled) {
            return enabled(Output.of(enabled));
        }

        /**
         * @param logConfiguration Log configuration for the container. See below.
         * 
         * @return builder
         * 
         */
        public Builder logConfiguration(@Nullable Output logConfiguration) {
            $.logConfiguration = logConfiguration;
            return this;
        }

        /**
         * @param logConfiguration Log configuration for the container. See below.
         * 
         * @return builder
         * 
         */
        public Builder logConfiguration(ServiceServiceConnectConfigurationLogConfigurationArgs logConfiguration) {
            return logConfiguration(Output.of(logConfiguration));
        }

        /**
         * @param namespace Namespace name or ARN of the `aws.servicediscovery.HttpNamespace` for use with Service Connect.
         * 
         * @return builder
         * 
         */
        public Builder namespace(@Nullable Output namespace) {
            $.namespace = namespace;
            return this;
        }

        /**
         * @param namespace Namespace name or ARN of the `aws.servicediscovery.HttpNamespace` for use with Service Connect.
         * 
         * @return builder
         * 
         */
        public Builder namespace(String namespace) {
            return namespace(Output.of(namespace));
        }

        /**
         * @param services List of Service Connect service objects. See below.
         * 
         * @return builder
         * 
         */
        public Builder services(@Nullable Output> services) {
            $.services = services;
            return this;
        }

        /**
         * @param services List of Service Connect service objects. See below.
         * 
         * @return builder
         * 
         */
        public Builder services(List services) {
            return services(Output.of(services));
        }

        /**
         * @param services List of Service Connect service objects. See below.
         * 
         * @return builder
         * 
         */
        public Builder services(ServiceServiceConnectConfigurationServiceArgs... services) {
            return services(List.of(services));
        }

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

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy