com.pulumi.aws.s3.inputs.BucketLoggingV2TargetGrantArgs Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of aws Show documentation
Show all versions of aws Show documentation
A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.
// *** 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.inputs;
import com.pulumi.aws.s3.inputs.BucketLoggingV2TargetGrantGranteeArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
public final class BucketLoggingV2TargetGrantArgs extends com.pulumi.resources.ResourceArgs {
public static final BucketLoggingV2TargetGrantArgs Empty = new BucketLoggingV2TargetGrantArgs();
/**
* Configuration block for the person being granted permissions. See below.
*
*/
@Import(name="grantee", required=true)
private Output grantee;
/**
* @return Configuration block for the person being granted permissions. See below.
*
*/
public Output grantee() {
return this.grantee;
}
/**
* Logging permissions assigned to the grantee for the bucket. Valid values: `FULL_CONTROL`, `READ`, `WRITE`.
*
*/
@Import(name="permission", required=true)
private Output permission;
/**
* @return Logging permissions assigned to the grantee for the bucket. Valid values: `FULL_CONTROL`, `READ`, `WRITE`.
*
*/
public Output permission() {
return this.permission;
}
private BucketLoggingV2TargetGrantArgs() {}
private BucketLoggingV2TargetGrantArgs(BucketLoggingV2TargetGrantArgs $) {
this.grantee = $.grantee;
this.permission = $.permission;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(BucketLoggingV2TargetGrantArgs defaults) {
return new Builder(defaults);
}
public static final class Builder {
private BucketLoggingV2TargetGrantArgs $;
public Builder() {
$ = new BucketLoggingV2TargetGrantArgs();
}
public Builder(BucketLoggingV2TargetGrantArgs defaults) {
$ = new BucketLoggingV2TargetGrantArgs(Objects.requireNonNull(defaults));
}
/**
* @param grantee Configuration block for the person being granted permissions. See below.
*
* @return builder
*
*/
public Builder grantee(Output grantee) {
$.grantee = grantee;
return this;
}
/**
* @param grantee Configuration block for the person being granted permissions. See below.
*
* @return builder
*
*/
public Builder grantee(BucketLoggingV2TargetGrantGranteeArgs grantee) {
return grantee(Output.of(grantee));
}
/**
* @param permission Logging permissions assigned to the grantee for the bucket. Valid values: `FULL_CONTROL`, `READ`, `WRITE`.
*
* @return builder
*
*/
public Builder permission(Output permission) {
$.permission = permission;
return this;
}
/**
* @param permission Logging permissions assigned to the grantee for the bucket. Valid values: `FULL_CONTROL`, `READ`, `WRITE`.
*
* @return builder
*
*/
public Builder permission(String permission) {
return permission(Output.of(permission));
}
public BucketLoggingV2TargetGrantArgs build() {
if ($.grantee == null) {
throw new MissingRequiredPropertyException("BucketLoggingV2TargetGrantArgs", "grantee");
}
if ($.permission == null) {
throw new MissingRequiredPropertyException("BucketLoggingV2TargetGrantArgs", "permission");
}
return $;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy