com.pulumi.aws.s3.BucketOwnershipControlsArgs 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.
The 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;
import com.pulumi.aws.s3.inputs.BucketOwnershipControlsRuleArgs;
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 BucketOwnershipControlsArgs extends com.pulumi.resources.ResourceArgs {
public static final BucketOwnershipControlsArgs Empty = new BucketOwnershipControlsArgs();
/**
* Name of the bucket that you want to associate this access point with.
*
*/
@Import(name="bucket", required=true)
private Output bucket;
/**
* @return Name of the bucket that you want to associate this access point with.
*
*/
public Output bucket() {
return this.bucket;
}
/**
* Configuration block(s) with Ownership Controls rules. Detailed below.
*
*/
@Import(name="rule", required=true)
private Output rule;
/**
* @return Configuration block(s) with Ownership Controls rules. Detailed below.
*
*/
public Output rule() {
return this.rule;
}
private BucketOwnershipControlsArgs() {}
private BucketOwnershipControlsArgs(BucketOwnershipControlsArgs $) {
this.bucket = $.bucket;
this.rule = $.rule;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(BucketOwnershipControlsArgs defaults) {
return new Builder(defaults);
}
public static final class Builder {
private BucketOwnershipControlsArgs $;
public Builder() {
$ = new BucketOwnershipControlsArgs();
}
public Builder(BucketOwnershipControlsArgs defaults) {
$ = new BucketOwnershipControlsArgs(Objects.requireNonNull(defaults));
}
/**
* @param bucket Name of the bucket that you want to associate this access point with.
*
* @return builder
*
*/
public Builder bucket(Output bucket) {
$.bucket = bucket;
return this;
}
/**
* @param bucket Name of the bucket that you want to associate this access point with.
*
* @return builder
*
*/
public Builder bucket(String bucket) {
return bucket(Output.of(bucket));
}
/**
* @param rule Configuration block(s) with Ownership Controls rules. Detailed below.
*
* @return builder
*
*/
public Builder rule(Output rule) {
$.rule = rule;
return this;
}
/**
* @param rule Configuration block(s) with Ownership Controls rules. Detailed below.
*
* @return builder
*
*/
public Builder rule(BucketOwnershipControlsRuleArgs rule) {
return rule(Output.of(rule));
}
public BucketOwnershipControlsArgs build() {
if ($.bucket == null) {
throw new MissingRequiredPropertyException("BucketOwnershipControlsArgs", "bucket");
}
if ($.rule == null) {
throw new MissingRequiredPropertyException("BucketOwnershipControlsArgs", "rule");
}
return $;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy