pulumi_wasm_providers_aws_mini::s3

Module bucket_accelerate_configuration_v_2

source
Expand description

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

This resource cannot be used with S3 directory buckets.

§Example Usage

use pulumi_wasm_rust::Output;
use pulumi_wasm_rust::{add_export, pulumi_main};
#[pulumi_main]
fn test_main() -> Result<(), Error> {
    let example = bucket_accelerate_configuration_v_2::create(
        "example",
        BucketAccelerateConfigurationV2Args::builder()
            .bucket("${mybucket.id}")
            .status("Enabled")
            .build_struct(),
    );
    let mybucket = bucket_v_2::create(
        "mybucket",
        BucketV2Args::builder().bucket("mybucket").build_struct(),
    );
}

§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

Structs§

Functions§

  • Registers a new resource with the given unique name and arguments