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

com.pulumi.aws.cloudwatch.inputs.EventBusPolicyState Maven / Gradle / Ivy

Go to download

A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.

The 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.inputs;

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


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

    public static final EventBusPolicyState Empty = new EventBusPolicyState();

    /**
     * The name of the event bus to set the permissions on.
     * If you omit this, the permissions are set on the `default` event bus.
     * 
     */
    @Import(name="eventBusName")
    private @Nullable Output eventBusName;

    /**
     * @return The name of the event bus to set the permissions on.
     * If you omit this, the permissions are set on the `default` event bus.
     * 
     */
    public Optional> eventBusName() {
        return Optional.ofNullable(this.eventBusName);
    }

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

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

    private EventBusPolicyState() {}

    private EventBusPolicyState(EventBusPolicyState $) {
        this.eventBusName = $.eventBusName;
        this.policy = $.policy;
    }

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

    public static final class Builder {
        private EventBusPolicyState $;

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

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

        /**
         * @param eventBusName The name of the event bus to set the permissions on.
         * If you omit this, the permissions are set on the `default` event bus.
         * 
         * @return builder
         * 
         */
        public Builder eventBusName(@Nullable Output eventBusName) {
            $.eventBusName = eventBusName;
            return this;
        }

        /**
         * @param eventBusName The name of the event bus to set the permissions on.
         * If you omit this, the permissions are set on the `default` event bus.
         * 
         * @return builder
         * 
         */
        public Builder eventBusName(String eventBusName) {
            return eventBusName(Output.of(eventBusName));
        }

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

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

        public EventBusPolicyState build() {
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy