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

com.pulumi.aws.s3.outputs.BucketLoggingV2TargetGrant 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.s3.outputs;

import com.pulumi.aws.s3.outputs.BucketLoggingV2TargetGrantGrantee;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;

@CustomType
public final class BucketLoggingV2TargetGrant {
    /**
     * @return Configuration block for the person being granted permissions. See below.
     * 
     */
    private BucketLoggingV2TargetGrantGrantee grantee;
    /**
     * @return Logging permissions assigned to the grantee for the bucket. Valid values: `FULL_CONTROL`, `READ`, `WRITE`.
     * 
     */
    private String permission;

    private BucketLoggingV2TargetGrant() {}
    /**
     * @return Configuration block for the person being granted permissions. See below.
     * 
     */
    public BucketLoggingV2TargetGrantGrantee grantee() {
        return this.grantee;
    }
    /**
     * @return Logging permissions assigned to the grantee for the bucket. Valid values: `FULL_CONTROL`, `READ`, `WRITE`.
     * 
     */
    public String permission() {
        return this.permission;
    }

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

    public static Builder builder(BucketLoggingV2TargetGrant defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private BucketLoggingV2TargetGrantGrantee grantee;
        private String permission;
        public Builder() {}
        public Builder(BucketLoggingV2TargetGrant defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.grantee = defaults.grantee;
    	      this.permission = defaults.permission;
        }

        @CustomType.Setter
        public Builder grantee(BucketLoggingV2TargetGrantGrantee grantee) {
            if (grantee == null) {
              throw new MissingRequiredPropertyException("BucketLoggingV2TargetGrant", "grantee");
            }
            this.grantee = grantee;
            return this;
        }
        @CustomType.Setter
        public Builder permission(String permission) {
            if (permission == null) {
              throw new MissingRequiredPropertyException("BucketLoggingV2TargetGrant", "permission");
            }
            this.permission = permission;
            return this;
        }
        public BucketLoggingV2TargetGrant build() {
            final var _resultValue = new BucketLoggingV2TargetGrant();
            _resultValue.grantee = grantee;
            _resultValue.permission = permission;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy