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

com.pulumi.aws.ec2.VpcEndpointPolicyArgs 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.ec2;

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


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

    public static final VpcEndpointPolicyArgs Empty = new VpcEndpointPolicyArgs();

    /**
     * A policy to attach to the endpoint that controls access to the service. Defaults to full access. All `Gateway` and some `Interface` endpoints support policies - see the [relevant AWS documentation](https://docs.aws.amazon.com/vpc/latest/userguide/vpc-endpoints-access.html) for more details.
     * 
     */
    @Import(name="policy")
    private @Nullable Output policy;

    /**
     * @return A policy to attach to the endpoint that controls access to the service. Defaults to full access. All `Gateway` and some `Interface` endpoints support policies - see the [relevant AWS documentation](https://docs.aws.amazon.com/vpc/latest/userguide/vpc-endpoints-access.html) for more details.
     * 
     */
    public Optional> policy() {
        return Optional.ofNullable(this.policy);
    }

    /**
     * The VPC Endpoint ID.
     * 
     */
    @Import(name="vpcEndpointId", required=true)
    private Output vpcEndpointId;

    /**
     * @return The VPC Endpoint ID.
     * 
     */
    public Output vpcEndpointId() {
        return this.vpcEndpointId;
    }

    private VpcEndpointPolicyArgs() {}

    private VpcEndpointPolicyArgs(VpcEndpointPolicyArgs $) {
        this.policy = $.policy;
        this.vpcEndpointId = $.vpcEndpointId;
    }

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

    public static final class Builder {
        private VpcEndpointPolicyArgs $;

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

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

        /**
         * @param policy A policy to attach to the endpoint that controls access to the service. Defaults to full access. All `Gateway` and some `Interface` endpoints support policies - see the [relevant AWS documentation](https://docs.aws.amazon.com/vpc/latest/userguide/vpc-endpoints-access.html) for more details.
         * 
         * @return builder
         * 
         */
        public Builder policy(@Nullable Output policy) {
            $.policy = policy;
            return this;
        }

        /**
         * @param policy A policy to attach to the endpoint that controls access to the service. Defaults to full access. All `Gateway` and some `Interface` endpoints support policies - see the [relevant AWS documentation](https://docs.aws.amazon.com/vpc/latest/userguide/vpc-endpoints-access.html) for more details.
         * 
         * @return builder
         * 
         */
        public Builder policy(String policy) {
            return policy(Output.of(policy));
        }

        /**
         * @param vpcEndpointId The VPC Endpoint ID.
         * 
         * @return builder
         * 
         */
        public Builder vpcEndpointId(Output vpcEndpointId) {
            $.vpcEndpointId = vpcEndpointId;
            return this;
        }

        /**
         * @param vpcEndpointId The VPC Endpoint ID.
         * 
         * @return builder
         * 
         */
        public Builder vpcEndpointId(String vpcEndpointId) {
            return vpcEndpointId(Output.of(vpcEndpointId));
        }

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

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy