pulumi_wasm_providers_aws_mini::s3

Module object_copy

source
Expand description

Provides a resource for copying an S3 object.

§Example Usage

use pulumi_wasm_rust::Output;
use pulumi_wasm_rust::{add_export, pulumi_main};
#[pulumi_main]
fn test_main() -> Result<(), Error> {
    let test = object_copy::create(
        "test",
        ObjectCopyArgs::builder()
            .bucket("destination_bucket")
            .grants(
                vec![
                    ObjectCopyGrant::builder().permissions(vec!["READ",]). type ("Group")
                    .uri("http://acs.amazonaws.com/groups/global/AllUsers")
                    .build_struct(),
                ],
            )
            .key("destination_key")
            .source("source_bucket/source_key")
            .build_struct(),
    );
}

Structs§

Functions§

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