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

com.pulumi.aws.cloudwatch.EventEndpointArgs 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.cloudwatch;

import com.pulumi.aws.cloudwatch.inputs.EventEndpointEventBusArgs;
import com.pulumi.aws.cloudwatch.inputs.EventEndpointReplicationConfigArgs;
import com.pulumi.aws.cloudwatch.inputs.EventEndpointRoutingConfigArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final EventEndpointArgs Empty = new EventEndpointArgs();

    /**
     * A description of the global endpoint.
     * 
     */
    @Import(name="description")
    private @Nullable Output description;

    /**
     * @return A description of the global endpoint.
     * 
     */
    public Optional> description() {
        return Optional.ofNullable(this.description);
    }

    /**
     * The event buses to use. The names of the event buses must be identical in each Region. Exactly two event buses are required. Documented below.
     * 
     */
    @Import(name="eventBuses", required=true)
    private Output> eventBuses;

    /**
     * @return The event buses to use. The names of the event buses must be identical in each Region. Exactly two event buses are required. Documented below.
     * 
     */
    public Output> eventBuses() {
        return this.eventBuses;
    }

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

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

    /**
     * Parameters used for replication. Documented below.
     * 
     */
    @Import(name="replicationConfig")
    private @Nullable Output replicationConfig;

    /**
     * @return Parameters used for replication. Documented below.
     * 
     */
    public Optional> replicationConfig() {
        return Optional.ofNullable(this.replicationConfig);
    }

    /**
     * The ARN of the IAM role used for replication between event buses.
     * 
     */
    @Import(name="roleArn")
    private @Nullable Output roleArn;

    /**
     * @return The ARN of the IAM role used for replication between event buses.
     * 
     */
    public Optional> roleArn() {
        return Optional.ofNullable(this.roleArn);
    }

    /**
     * Parameters used for routing, including the health check and secondary Region. Documented below.
     * 
     */
    @Import(name="routingConfig", required=true)
    private Output routingConfig;

    /**
     * @return Parameters used for routing, including the health check and secondary Region. Documented below.
     * 
     */
    public Output routingConfig() {
        return this.routingConfig;
    }

    private EventEndpointArgs() {}

    private EventEndpointArgs(EventEndpointArgs $) {
        this.description = $.description;
        this.eventBuses = $.eventBuses;
        this.name = $.name;
        this.replicationConfig = $.replicationConfig;
        this.roleArn = $.roleArn;
        this.routingConfig = $.routingConfig;
    }

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

    public static final class Builder {
        private EventEndpointArgs $;

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

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

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

        /**
         * @param description A description of the global endpoint.
         * 
         * @return builder
         * 
         */
        public Builder description(String description) {
            return description(Output.of(description));
        }

        /**
         * @param eventBuses The event buses to use. The names of the event buses must be identical in each Region. Exactly two event buses are required. Documented below.
         * 
         * @return builder
         * 
         */
        public Builder eventBuses(Output> eventBuses) {
            $.eventBuses = eventBuses;
            return this;
        }

        /**
         * @param eventBuses The event buses to use. The names of the event buses must be identical in each Region. Exactly two event buses are required. Documented below.
         * 
         * @return builder
         * 
         */
        public Builder eventBuses(List eventBuses) {
            return eventBuses(Output.of(eventBuses));
        }

        /**
         * @param eventBuses The event buses to use. The names of the event buses must be identical in each Region. Exactly two event buses are required. Documented below.
         * 
         * @return builder
         * 
         */
        public Builder eventBuses(EventEndpointEventBusArgs... eventBuses) {
            return eventBuses(List.of(eventBuses));
        }

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

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

        /**
         * @param replicationConfig Parameters used for replication. Documented below.
         * 
         * @return builder
         * 
         */
        public Builder replicationConfig(@Nullable Output replicationConfig) {
            $.replicationConfig = replicationConfig;
            return this;
        }

        /**
         * @param replicationConfig Parameters used for replication. Documented below.
         * 
         * @return builder
         * 
         */
        public Builder replicationConfig(EventEndpointReplicationConfigArgs replicationConfig) {
            return replicationConfig(Output.of(replicationConfig));
        }

        /**
         * @param roleArn The ARN of the IAM role used for replication between event buses.
         * 
         * @return builder
         * 
         */
        public Builder roleArn(@Nullable Output roleArn) {
            $.roleArn = roleArn;
            return this;
        }

        /**
         * @param roleArn The ARN of the IAM role used for replication between event buses.
         * 
         * @return builder
         * 
         */
        public Builder roleArn(String roleArn) {
            return roleArn(Output.of(roleArn));
        }

        /**
         * @param routingConfig Parameters used for routing, including the health check and secondary Region. Documented below.
         * 
         * @return builder
         * 
         */
        public Builder routingConfig(Output routingConfig) {
            $.routingConfig = routingConfig;
            return this;
        }

        /**
         * @param routingConfig Parameters used for routing, including the health check and secondary Region. Documented below.
         * 
         * @return builder
         * 
         */
        public Builder routingConfig(EventEndpointRoutingConfigArgs routingConfig) {
            return routingConfig(Output.of(routingConfig));
        }

        public EventEndpointArgs build() {
            if ($.eventBuses == null) {
                throw new MissingRequiredPropertyException("EventEndpointArgs", "eventBuses");
            }
            if ($.routingConfig == null) {
                throw new MissingRequiredPropertyException("EventEndpointArgs", "routingConfig");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy