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

com.pulumi.aws.opensearch.inputs.AuthorizeVpcEndpointAccessState 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.72.0
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.opensearch.inputs;

import com.pulumi.aws.opensearch.inputs.AuthorizeVpcEndpointAccessAuthorizedPrincipalArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final AuthorizeVpcEndpointAccessState Empty = new AuthorizeVpcEndpointAccessState();

    /**
     * AWS account ID to grant access to.
     * 
     */
    @Import(name="account")
    private @Nullable Output account;

    /**
     * @return AWS account ID to grant access to.
     * 
     */
    public Optional> account() {
        return Optional.ofNullable(this.account);
    }

    /**
     * Information about the Amazon Web Services account or service that was provided access to the domain. See authorized principal attribute for further details.
     * 
     */
    @Import(name="authorizedPrincipals")
    private @Nullable Output> authorizedPrincipals;

    /**
     * @return Information about the Amazon Web Services account or service that was provided access to the domain. See authorized principal attribute for further details.
     * 
     */
    public Optional>> authorizedPrincipals() {
        return Optional.ofNullable(this.authorizedPrincipals);
    }

    /**
     * Name of OpenSearch Service domain to provide access to.
     * 
     */
    @Import(name="domainName")
    private @Nullable Output domainName;

    /**
     * @return Name of OpenSearch Service domain to provide access to.
     * 
     */
    public Optional> domainName() {
        return Optional.ofNullable(this.domainName);
    }

    private AuthorizeVpcEndpointAccessState() {}

    private AuthorizeVpcEndpointAccessState(AuthorizeVpcEndpointAccessState $) {
        this.account = $.account;
        this.authorizedPrincipals = $.authorizedPrincipals;
        this.domainName = $.domainName;
    }

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

    public static final class Builder {
        private AuthorizeVpcEndpointAccessState $;

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

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

        /**
         * @param account AWS account ID to grant access to.
         * 
         * @return builder
         * 
         */
        public Builder account(@Nullable Output account) {
            $.account = account;
            return this;
        }

        /**
         * @param account AWS account ID to grant access to.
         * 
         * @return builder
         * 
         */
        public Builder account(String account) {
            return account(Output.of(account));
        }

        /**
         * @param authorizedPrincipals Information about the Amazon Web Services account or service that was provided access to the domain. See authorized principal attribute for further details.
         * 
         * @return builder
         * 
         */
        public Builder authorizedPrincipals(@Nullable Output> authorizedPrincipals) {
            $.authorizedPrincipals = authorizedPrincipals;
            return this;
        }

        /**
         * @param authorizedPrincipals Information about the Amazon Web Services account or service that was provided access to the domain. See authorized principal attribute for further details.
         * 
         * @return builder
         * 
         */
        public Builder authorizedPrincipals(List authorizedPrincipals) {
            return authorizedPrincipals(Output.of(authorizedPrincipals));
        }

        /**
         * @param authorizedPrincipals Information about the Amazon Web Services account or service that was provided access to the domain. See authorized principal attribute for further details.
         * 
         * @return builder
         * 
         */
        public Builder authorizedPrincipals(AuthorizeVpcEndpointAccessAuthorizedPrincipalArgs... authorizedPrincipals) {
            return authorizedPrincipals(List.of(authorizedPrincipals));
        }

        /**
         * @param domainName Name of OpenSearch Service domain to provide access to.
         * 
         * @return builder
         * 
         */
        public Builder domainName(@Nullable Output domainName) {
            $.domainName = domainName;
            return this;
        }

        /**
         * @param domainName Name of OpenSearch Service domain to provide access to.
         * 
         * @return builder
         * 
         */
        public Builder domainName(String domainName) {
            return domainName(Output.of(domainName));
        }

        public AuthorizeVpcEndpointAccessState build() {
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy