BucketAccelerateConfigurationV2Args

data class BucketAccelerateConfigurationV2Args(val bucket: Output<String>? = null, val expectedBucketOwner: Output<String>? = null, val status: Output<String>? = null) : ConvertibleToJava<BucketAccelerateConfigurationV2Args>

Provides an S3 bucket accelerate configuration resource. See the Requirements for using Transfer Acceleration for more details.

Example Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.s3.BucketV2;
import com.pulumi.aws.s3.BucketAccelerateConfigurationV2;
import com.pulumi.aws.s3.BucketAccelerateConfigurationV2Args;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var mybucket = new BucketV2("mybucket");
var example = new BucketAccelerateConfigurationV2("example", BucketAccelerateConfigurationV2Args.builder()
.bucket(mybucket.id())
.status("Enabled")
.build());
}
}

Import

If the owner (account ID) of the source bucket differs from the account used to configure the AWS Provider, import using the bucket and expected_bucket_owner separated by a comma (,): Using pulumi import to import. For example: If the owner (account ID) of the source bucket is the same account used to configure the AWS Provider, import using the bucket:

$ pulumi import aws:s3/bucketAccelerateConfigurationV2:BucketAccelerateConfigurationV2 example bucket-name

If the owner (account ID) of the source bucket differs from the account used to configure the AWS Provider, import using the bucket and expected_bucket_owner separated by a comma (,):

$ pulumi import aws:s3/bucketAccelerateConfigurationV2:BucketAccelerateConfigurationV2 example bucket-name,123456789012

Constructors

Link copied to clipboard
fun BucketAccelerateConfigurationV2Args(bucket: Output<String>? = null, expectedBucketOwner: Output<String>? = null, status: Output<String>? = null)

Functions

Link copied to clipboard
open override fun toJava(): BucketAccelerateConfigurationV2Args

Properties

Link copied to clipboard
val bucket: Output<String>? = null

Name of the bucket.

Link copied to clipboard
val expectedBucketOwner: Output<String>? = null

Account ID of the expected bucket owner.

Link copied to clipboard
val status: Output<String>? = null

Transfer acceleration state of the bucket. Valid values: Enabled, Suspended.