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

com.pulumi.aws.s3control.inputs.ObjectLambdaAccessPointPolicyState Maven / Gradle / Ivy

// *** 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.s3control.inputs;

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


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

    public static final ObjectLambdaAccessPointPolicyState Empty = new ObjectLambdaAccessPointPolicyState();

    /**
     * The AWS account ID for the account that owns the Object Lambda Access Point. Defaults to automatically determined account ID of the AWS provider.
     * 
     */
    @Import(name="accountId")
    private @Nullable Output accountId;

    /**
     * @return The AWS account ID for the account that owns the Object Lambda Access Point. Defaults to automatically determined account ID of the AWS provider.
     * 
     */
    public Optional> accountId() {
        return Optional.ofNullable(this.accountId);
    }

    /**
     * Indicates whether this access point currently has a policy that allows public access.
     * 
     */
    @Import(name="hasPublicAccessPolicy")
    private @Nullable Output hasPublicAccessPolicy;

    /**
     * @return Indicates whether this access point currently has a policy that allows public access.
     * 
     */
    public Optional> hasPublicAccessPolicy() {
        return Optional.ofNullable(this.hasPublicAccessPolicy);
    }

    /**
     * The name of the Object Lambda Access Point.
     * 
     */
    @Import(name="name")
    private @Nullable Output name;

    /**
     * @return The name of the Object Lambda Access Point.
     * 
     */
    public Optional> name() {
        return Optional.ofNullable(this.name);
    }

    /**
     * The Object Lambda Access Point resource policy document.
     * 
     */
    @Import(name="policy")
    private @Nullable Output policy;

    /**
     * @return The Object Lambda Access Point resource policy document.
     * 
     */
    public Optional> policy() {
        return Optional.ofNullable(this.policy);
    }

    private ObjectLambdaAccessPointPolicyState() {}

    private ObjectLambdaAccessPointPolicyState(ObjectLambdaAccessPointPolicyState $) {
        this.accountId = $.accountId;
        this.hasPublicAccessPolicy = $.hasPublicAccessPolicy;
        this.name = $.name;
        this.policy = $.policy;
    }

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

    public static final class Builder {
        private ObjectLambdaAccessPointPolicyState $;

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

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

        /**
         * @param accountId The AWS account ID for the account that owns the Object Lambda Access Point. Defaults to automatically determined account ID of the AWS provider.
         * 
         * @return builder
         * 
         */
        public Builder accountId(@Nullable Output accountId) {
            $.accountId = accountId;
            return this;
        }

        /**
         * @param accountId The AWS account ID for the account that owns the Object Lambda Access Point. Defaults to automatically determined account ID of the AWS provider.
         * 
         * @return builder
         * 
         */
        public Builder accountId(String accountId) {
            return accountId(Output.of(accountId));
        }

        /**
         * @param hasPublicAccessPolicy Indicates whether this access point currently has a policy that allows public access.
         * 
         * @return builder
         * 
         */
        public Builder hasPublicAccessPolicy(@Nullable Output hasPublicAccessPolicy) {
            $.hasPublicAccessPolicy = hasPublicAccessPolicy;
            return this;
        }

        /**
         * @param hasPublicAccessPolicy Indicates whether this access point currently has a policy that allows public access.
         * 
         * @return builder
         * 
         */
        public Builder hasPublicAccessPolicy(Boolean hasPublicAccessPolicy) {
            return hasPublicAccessPolicy(Output.of(hasPublicAccessPolicy));
        }

        /**
         * @param name The name of the Object Lambda Access Point.
         * 
         * @return builder
         * 
         */
        public Builder name(@Nullable Output name) {
            $.name = name;
            return this;
        }

        /**
         * @param name The name of the Object Lambda Access Point.
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

        /**
         * @param policy The Object Lambda Access Point resource policy document.
         * 
         * @return builder
         * 
         */
        public Builder policy(@Nullable Output policy) {
            $.policy = policy;
            return this;
        }

        /**
         * @param policy The Object Lambda Access Point resource policy document.
         * 
         * @return builder
         * 
         */
        public Builder policy(String policy) {
            return policy(Output.of(policy));
        }

        public ObjectLambdaAccessPointPolicyState build() {
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy