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

com.pulumi.aws.s3control.inputs.AccessGrantState 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.s3control.inputs;

import com.pulumi.aws.s3control.inputs.AccessGrantAccessGrantsLocationConfigurationArgs;
import com.pulumi.aws.s3control.inputs.AccessGrantGranteeArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.String;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final AccessGrantState Empty = new AccessGrantState();

    /**
     * Amazon Resource Name (ARN) of the S3 Access Grant.
     * 
     */
    @Import(name="accessGrantArn")
    private @Nullable Output accessGrantArn;

    /**
     * @return Amazon Resource Name (ARN) of the S3 Access Grant.
     * 
     */
    public Optional> accessGrantArn() {
        return Optional.ofNullable(this.accessGrantArn);
    }

    /**
     * Unique ID of the S3 Access Grant.
     * 
     */
    @Import(name="accessGrantId")
    private @Nullable Output accessGrantId;

    /**
     * @return Unique ID of the S3 Access Grant.
     * 
     */
    public Optional> accessGrantId() {
        return Optional.ofNullable(this.accessGrantId);
    }

    /**
     * See Location Configuration below for more details.
     * 
     */
    @Import(name="accessGrantsLocationConfiguration")
    private @Nullable Output accessGrantsLocationConfiguration;

    /**
     * @return See Location Configuration below for more details.
     * 
     */
    public Optional> accessGrantsLocationConfiguration() {
        return Optional.ofNullable(this.accessGrantsLocationConfiguration);
    }

    /**
     * The ID of the S3 Access Grants location to with the access grant is giving access.
     * 
     */
    @Import(name="accessGrantsLocationId")
    private @Nullable Output accessGrantsLocationId;

    /**
     * @return The ID of the S3 Access Grants location to with the access grant is giving access.
     * 
     */
    public Optional> accessGrantsLocationId() {
        return Optional.ofNullable(this.accessGrantsLocationId);
    }

    @Import(name="accountId")
    private @Nullable Output accountId;

    public Optional> accountId() {
        return Optional.ofNullable(this.accountId);
    }

    /**
     * The access grant's scope.
     * 
     */
    @Import(name="grantScope")
    private @Nullable Output grantScope;

    /**
     * @return The access grant's scope.
     * 
     */
    public Optional> grantScope() {
        return Optional.ofNullable(this.grantScope);
    }

    /**
     * See Grantee below for more details.
     * 
     */
    @Import(name="grantee")
    private @Nullable Output grantee;

    /**
     * @return See Grantee below for more details.
     * 
     */
    public Optional> grantee() {
        return Optional.ofNullable(this.grantee);
    }

    /**
     * The access grant's level of access. Valid values: `READ`, `WRITE`, `READWRITE`.
     * 
     */
    @Import(name="permission")
    private @Nullable Output permission;

    /**
     * @return The access grant's level of access. Valid values: `READ`, `WRITE`, `READWRITE`.
     * 
     */
    public Optional> permission() {
        return Optional.ofNullable(this.permission);
    }

    /**
     * If you are creating an access grant that grants access to only one object, set this to `Object`. Valid values: `Object`.
     * 
     */
    @Import(name="s3PrefixType")
    private @Nullable Output s3PrefixType;

    /**
     * @return If you are creating an access grant that grants access to only one object, set this to `Object`. Valid values: `Object`.
     * 
     */
    public Optional> s3PrefixType() {
        return Optional.ofNullable(this.s3PrefixType);
    }

    /**
     * Key-value map of resource tags. If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
     * 
     */
    @Import(name="tags")
    private @Nullable Output> tags;

    /**
     * @return Key-value map of resource tags. If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
     * 
     */
    public Optional>> tags() {
        return Optional.ofNullable(this.tags);
    }

    /**
     * A map of tags assigned to the resource, including those inherited from the provider `default_tags` configuration block.
     * 
     * @deprecated
     * Please use `tags` instead.
     * 
     */
    @Deprecated /* Please use `tags` instead. */
    @Import(name="tagsAll")
    private @Nullable Output> tagsAll;

    /**
     * @return A map of tags assigned to the resource, including those inherited from the provider `default_tags` configuration block.
     * 
     * @deprecated
     * Please use `tags` instead.
     * 
     */
    @Deprecated /* Please use `tags` instead. */
    public Optional>> tagsAll() {
        return Optional.ofNullable(this.tagsAll);
    }

    private AccessGrantState() {}

    private AccessGrantState(AccessGrantState $) {
        this.accessGrantArn = $.accessGrantArn;
        this.accessGrantId = $.accessGrantId;
        this.accessGrantsLocationConfiguration = $.accessGrantsLocationConfiguration;
        this.accessGrantsLocationId = $.accessGrantsLocationId;
        this.accountId = $.accountId;
        this.grantScope = $.grantScope;
        this.grantee = $.grantee;
        this.permission = $.permission;
        this.s3PrefixType = $.s3PrefixType;
        this.tags = $.tags;
        this.tagsAll = $.tagsAll;
    }

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

    public static final class Builder {
        private AccessGrantState $;

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

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

        /**
         * @param accessGrantArn Amazon Resource Name (ARN) of the S3 Access Grant.
         * 
         * @return builder
         * 
         */
        public Builder accessGrantArn(@Nullable Output accessGrantArn) {
            $.accessGrantArn = accessGrantArn;
            return this;
        }

        /**
         * @param accessGrantArn Amazon Resource Name (ARN) of the S3 Access Grant.
         * 
         * @return builder
         * 
         */
        public Builder accessGrantArn(String accessGrantArn) {
            return accessGrantArn(Output.of(accessGrantArn));
        }

        /**
         * @param accessGrantId Unique ID of the S3 Access Grant.
         * 
         * @return builder
         * 
         */
        public Builder accessGrantId(@Nullable Output accessGrantId) {
            $.accessGrantId = accessGrantId;
            return this;
        }

        /**
         * @param accessGrantId Unique ID of the S3 Access Grant.
         * 
         * @return builder
         * 
         */
        public Builder accessGrantId(String accessGrantId) {
            return accessGrantId(Output.of(accessGrantId));
        }

        /**
         * @param accessGrantsLocationConfiguration See Location Configuration below for more details.
         * 
         * @return builder
         * 
         */
        public Builder accessGrantsLocationConfiguration(@Nullable Output accessGrantsLocationConfiguration) {
            $.accessGrantsLocationConfiguration = accessGrantsLocationConfiguration;
            return this;
        }

        /**
         * @param accessGrantsLocationConfiguration See Location Configuration below for more details.
         * 
         * @return builder
         * 
         */
        public Builder accessGrantsLocationConfiguration(AccessGrantAccessGrantsLocationConfigurationArgs accessGrantsLocationConfiguration) {
            return accessGrantsLocationConfiguration(Output.of(accessGrantsLocationConfiguration));
        }

        /**
         * @param accessGrantsLocationId The ID of the S3 Access Grants location to with the access grant is giving access.
         * 
         * @return builder
         * 
         */
        public Builder accessGrantsLocationId(@Nullable Output accessGrantsLocationId) {
            $.accessGrantsLocationId = accessGrantsLocationId;
            return this;
        }

        /**
         * @param accessGrantsLocationId The ID of the S3 Access Grants location to with the access grant is giving access.
         * 
         * @return builder
         * 
         */
        public Builder accessGrantsLocationId(String accessGrantsLocationId) {
            return accessGrantsLocationId(Output.of(accessGrantsLocationId));
        }

        public Builder accountId(@Nullable Output accountId) {
            $.accountId = accountId;
            return this;
        }

        public Builder accountId(String accountId) {
            return accountId(Output.of(accountId));
        }

        /**
         * @param grantScope The access grant's scope.
         * 
         * @return builder
         * 
         */
        public Builder grantScope(@Nullable Output grantScope) {
            $.grantScope = grantScope;
            return this;
        }

        /**
         * @param grantScope The access grant's scope.
         * 
         * @return builder
         * 
         */
        public Builder grantScope(String grantScope) {
            return grantScope(Output.of(grantScope));
        }

        /**
         * @param grantee See Grantee below for more details.
         * 
         * @return builder
         * 
         */
        public Builder grantee(@Nullable Output grantee) {
            $.grantee = grantee;
            return this;
        }

        /**
         * @param grantee See Grantee below for more details.
         * 
         * @return builder
         * 
         */
        public Builder grantee(AccessGrantGranteeArgs grantee) {
            return grantee(Output.of(grantee));
        }

        /**
         * @param permission The access grant's level of access. Valid values: `READ`, `WRITE`, `READWRITE`.
         * 
         * @return builder
         * 
         */
        public Builder permission(@Nullable Output permission) {
            $.permission = permission;
            return this;
        }

        /**
         * @param permission The access grant's level of access. Valid values: `READ`, `WRITE`, `READWRITE`.
         * 
         * @return builder
         * 
         */
        public Builder permission(String permission) {
            return permission(Output.of(permission));
        }

        /**
         * @param s3PrefixType If you are creating an access grant that grants access to only one object, set this to `Object`. Valid values: `Object`.
         * 
         * @return builder
         * 
         */
        public Builder s3PrefixType(@Nullable Output s3PrefixType) {
            $.s3PrefixType = s3PrefixType;
            return this;
        }

        /**
         * @param s3PrefixType If you are creating an access grant that grants access to only one object, set this to `Object`. Valid values: `Object`.
         * 
         * @return builder
         * 
         */
        public Builder s3PrefixType(String s3PrefixType) {
            return s3PrefixType(Output.of(s3PrefixType));
        }

        /**
         * @param tags Key-value map of resource tags. If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
         * 
         * @return builder
         * 
         */
        public Builder tags(@Nullable Output> tags) {
            $.tags = tags;
            return this;
        }

        /**
         * @param tags Key-value map of resource tags. If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
         * 
         * @return builder
         * 
         */
        public Builder tags(Map tags) {
            return tags(Output.of(tags));
        }

        /**
         * @param tagsAll A map of tags assigned to the resource, including those inherited from the provider `default_tags` configuration block.
         * 
         * @return builder
         * 
         * @deprecated
         * Please use `tags` instead.
         * 
         */
        @Deprecated /* Please use `tags` instead. */
        public Builder tagsAll(@Nullable Output> tagsAll) {
            $.tagsAll = tagsAll;
            return this;
        }

        /**
         * @param tagsAll A map of tags assigned to the resource, including those inherited from the provider `default_tags` configuration block.
         * 
         * @return builder
         * 
         * @deprecated
         * Please use `tags` instead.
         * 
         */
        @Deprecated /* Please use `tags` instead. */
        public Builder tagsAll(Map tagsAll) {
            return tagsAll(Output.of(tagsAll));
        }

        public AccessGrantState build() {
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy