pub struct Builder { /* private fields */ }
Expand description

A builder for CopyObjectInput.

Implementations§

The canned ACL to apply to the object.

This action is not supported by Amazon S3 on Outposts.

Examples found in repository?
src/client.rs (line 2332)
2331
2332
2333
2334
        pub fn acl(mut self, input: crate::model::ObjectCannedAcl) -> Self {
            self.inner = self.inner.acl(input);
            self
        }

The canned ACL to apply to the object.

This action is not supported by Amazon S3 on Outposts.

Examples found in repository?
src/client.rs (line 2341)
2337
2338
2339
2340
2341
2342
2343
        pub fn set_acl(
            mut self,
            input: std::option::Option<crate::model::ObjectCannedAcl>,
        ) -> Self {
            self.inner = self.inner.set_acl(input);
            self
        }

The name of the destination bucket.

When using this action with an access point, you must direct requests to the access point hostname. The access point hostname takes the form AccessPointName-AccountId.s3-accesspoint.Region.amazonaws.com. When using this action with an access point through the Amazon Web Services SDKs, you provide the access point ARN in place of the bucket name. For more information about access point ARNs, see Using access points in the Amazon S3 User Guide.

When using this action with Amazon S3 on Outposts, you must direct requests to the S3 on Outposts hostname. The S3 on Outposts hostname takes the form AccessPointName-AccountId.outpostID.s3-outposts.Region.amazonaws.com. When using this action with S3 on Outposts through the Amazon Web Services SDKs, you provide the Outposts bucket ARN in place of the bucket name. For more information about S3 on Outposts ARNs, see Using Amazon S3 on Outposts in the Amazon S3 User Guide.

Examples found in repository?
src/client.rs (line 2348)
2347
2348
2349
2350
        pub fn bucket(mut self, input: impl Into<std::string::String>) -> Self {
            self.inner = self.inner.bucket(input.into());
            self
        }

The name of the destination bucket.

When using this action with an access point, you must direct requests to the access point hostname. The access point hostname takes the form AccessPointName-AccountId.s3-accesspoint.Region.amazonaws.com. When using this action with an access point through the Amazon Web Services SDKs, you provide the access point ARN in place of the bucket name. For more information about access point ARNs, see Using access points in the Amazon S3 User Guide.

When using this action with Amazon S3 on Outposts, you must direct requests to the S3 on Outposts hostname. The S3 on Outposts hostname takes the form AccessPointName-AccountId.outpostID.s3-outposts.Region.amazonaws.com. When using this action with S3 on Outposts through the Amazon Web Services SDKs, you provide the Outposts bucket ARN in place of the bucket name. For more information about S3 on Outposts ARNs, see Using Amazon S3 on Outposts in the Amazon S3 User Guide.

Examples found in repository?
src/client.rs (line 2355)
2354
2355
2356
2357
        pub fn set_bucket(mut self, input: std::option::Option<std::string::String>) -> Self {
            self.inner = self.inner.set_bucket(input);
            self
        }

Specifies caching behavior along the request/reply chain.

Examples found in repository?
src/client.rs (line 2360)
2359
2360
2361
2362
        pub fn cache_control(mut self, input: impl Into<std::string::String>) -> Self {
            self.inner = self.inner.cache_control(input.into());
            self
        }

Specifies caching behavior along the request/reply chain.

Examples found in repository?
src/client.rs (line 2368)
2364
2365
2366
2367
2368
2369
2370
        pub fn set_cache_control(
            mut self,
            input: std::option::Option<std::string::String>,
        ) -> Self {
            self.inner = self.inner.set_cache_control(input);
            self
        }

Indicates the algorithm you want Amazon S3 to use to create the checksum for the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

Examples found in repository?
src/client.rs (line 2373)
2372
2373
2374
2375
        pub fn checksum_algorithm(mut self, input: crate::model::ChecksumAlgorithm) -> Self {
            self.inner = self.inner.checksum_algorithm(input);
            self
        }

Indicates the algorithm you want Amazon S3 to use to create the checksum for the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

Examples found in repository?
src/client.rs (line 2381)
2377
2378
2379
2380
2381
2382
2383
        pub fn set_checksum_algorithm(
            mut self,
            input: std::option::Option<crate::model::ChecksumAlgorithm>,
        ) -> Self {
            self.inner = self.inner.set_checksum_algorithm(input);
            self
        }

Specifies presentational information for the object.

Examples found in repository?
src/client.rs (line 2386)
2385
2386
2387
2388
        pub fn content_disposition(mut self, input: impl Into<std::string::String>) -> Self {
            self.inner = self.inner.content_disposition(input.into());
            self
        }

Specifies presentational information for the object.

Examples found in repository?
src/client.rs (line 2394)
2390
2391
2392
2393
2394
2395
2396
        pub fn set_content_disposition(
            mut self,
            input: std::option::Option<std::string::String>,
        ) -> Self {
            self.inner = self.inner.set_content_disposition(input);
            self
        }

Specifies what content encodings have been applied to the object and thus what decoding mechanisms must be applied to obtain the media-type referenced by the Content-Type header field.

Examples found in repository?
src/client.rs (line 2399)
2398
2399
2400
2401
        pub fn content_encoding(mut self, input: impl Into<std::string::String>) -> Self {
            self.inner = self.inner.content_encoding(input.into());
            self
        }

Specifies what content encodings have been applied to the object and thus what decoding mechanisms must be applied to obtain the media-type referenced by the Content-Type header field.

Examples found in repository?
src/client.rs (line 2407)
2403
2404
2405
2406
2407
2408
2409
        pub fn set_content_encoding(
            mut self,
            input: std::option::Option<std::string::String>,
        ) -> Self {
            self.inner = self.inner.set_content_encoding(input);
            self
        }

The language the content is in.

Examples found in repository?
src/client.rs (line 2412)
2411
2412
2413
2414
        pub fn content_language(mut self, input: impl Into<std::string::String>) -> Self {
            self.inner = self.inner.content_language(input.into());
            self
        }

The language the content is in.

Examples found in repository?
src/client.rs (line 2420)
2416
2417
2418
2419
2420
2421
2422
        pub fn set_content_language(
            mut self,
            input: std::option::Option<std::string::String>,
        ) -> Self {
            self.inner = self.inner.set_content_language(input);
            self
        }

A standard MIME type describing the format of the object data.

Examples found in repository?
src/client.rs (line 2425)
2424
2425
2426
2427
        pub fn content_type(mut self, input: impl Into<std::string::String>) -> Self {
            self.inner = self.inner.content_type(input.into());
            self
        }

A standard MIME type describing the format of the object data.

Examples found in repository?
src/client.rs (line 2430)
2429
2430
2431
2432
        pub fn set_content_type(mut self, input: std::option::Option<std::string::String>) -> Self {
            self.inner = self.inner.set_content_type(input);
            self
        }

Specifies the source object for the copy operation. You specify the value in one of two formats, depending on whether you want to access the source object through an access point:

  • For objects not accessed through an access point, specify the name of the source bucket and the key of the source object, separated by a slash (/). For example, to copy the object reports/january.pdf from the bucket awsexamplebucket, use awsexamplebucket/reports/january.pdf. The value must be URL-encoded.

  • For objects accessed through access points, specify the Amazon Resource Name (ARN) of the object as accessed through the access point, in the format arn:aws:s3: : :accesspoint/ /object/ . For example, to copy the object reports/january.pdf through access point my-access-point owned by account 123456789012 in Region us-west-2, use the URL encoding of arn:aws:s3:us-west-2:123456789012:accesspoint/my-access-point/object/reports/january.pdf. The value must be URL encoded.

    Amazon S3 supports copy operations using access points only when the source and destination buckets are in the same Amazon Web Services Region.

    Alternatively, for objects accessed through Amazon S3 on Outposts, specify the ARN of the object as accessed in the format arn:aws:s3-outposts: : :outpost/ /object/ . For example, to copy the object reports/january.pdf through outpost my-outpost owned by account 123456789012 in Region us-west-2, use the URL encoding of arn:aws:s3-outposts:us-west-2:123456789012:outpost/my-outpost/object/reports/january.pdf. The value must be URL-encoded.

To copy a specific version of an object, append ?versionId= to the value (for example, awsexamplebucket/reports/january.pdf?versionId=QUpfdndhfd8438MNFDN93jdnJFkdmqnh893). If you don't specify a version ID, Amazon S3 copies the latest version of the source object.

Examples found in repository?
src/client.rs (line 2463)
2462
2463
2464
2465
        pub fn copy_source(mut self, input: impl Into<std::string::String>) -> Self {
            self.inner = self.inner.copy_source(input.into());
            self
        }

Specifies the source object for the copy operation. You specify the value in one of two formats, depending on whether you want to access the source object through an access point:

  • For objects not accessed through an access point, specify the name of the source bucket and the key of the source object, separated by a slash (/). For example, to copy the object reports/january.pdf from the bucket awsexamplebucket, use awsexamplebucket/reports/january.pdf. The value must be URL-encoded.

  • For objects accessed through access points, specify the Amazon Resource Name (ARN) of the object as accessed through the access point, in the format arn:aws:s3: : :accesspoint/ /object/ . For example, to copy the object reports/january.pdf through access point my-access-point owned by account 123456789012 in Region us-west-2, use the URL encoding of arn:aws:s3:us-west-2:123456789012:accesspoint/my-access-point/object/reports/january.pdf. The value must be URL encoded.

    Amazon S3 supports copy operations using access points only when the source and destination buckets are in the same Amazon Web Services Region.

    Alternatively, for objects accessed through Amazon S3 on Outposts, specify the ARN of the object as accessed in the format arn:aws:s3-outposts: : :outpost/ /object/ . For example, to copy the object reports/january.pdf through outpost my-outpost owned by account 123456789012 in Region us-west-2, use the URL encoding of arn:aws:s3-outposts:us-west-2:123456789012:outpost/my-outpost/object/reports/january.pdf. The value must be URL-encoded.

To copy a specific version of an object, append ?versionId= to the value (for example, awsexamplebucket/reports/january.pdf?versionId=QUpfdndhfd8438MNFDN93jdnJFkdmqnh893). If you don't specify a version ID, Amazon S3 copies the latest version of the source object.

Examples found in repository?
src/client.rs (line 2496)
2495
2496
2497
2498
        pub fn set_copy_source(mut self, input: std::option::Option<std::string::String>) -> Self {
            self.inner = self.inner.set_copy_source(input);
            self
        }

Copies the object if its entity tag (ETag) matches the specified tag.

Examples found in repository?
src/client.rs (line 2501)
2500
2501
2502
2503
        pub fn copy_source_if_match(mut self, input: impl Into<std::string::String>) -> Self {
            self.inner = self.inner.copy_source_if_match(input.into());
            self
        }

Copies the object if its entity tag (ETag) matches the specified tag.

Examples found in repository?
src/client.rs (line 2509)
2505
2506
2507
2508
2509
2510
2511
        pub fn set_copy_source_if_match(
            mut self,
            input: std::option::Option<std::string::String>,
        ) -> Self {
            self.inner = self.inner.set_copy_source_if_match(input);
            self
        }

Copies the object if it has been modified since the specified time.

Examples found in repository?
src/client.rs (line 2514)
2513
2514
2515
2516
        pub fn copy_source_if_modified_since(mut self, input: aws_smithy_types::DateTime) -> Self {
            self.inner = self.inner.copy_source_if_modified_since(input);
            self
        }

Copies the object if it has been modified since the specified time.

Examples found in repository?
src/client.rs (line 2522)
2518
2519
2520
2521
2522
2523
2524
        pub fn set_copy_source_if_modified_since(
            mut self,
            input: std::option::Option<aws_smithy_types::DateTime>,
        ) -> Self {
            self.inner = self.inner.set_copy_source_if_modified_since(input);
            self
        }

Copies the object if its entity tag (ETag) is different than the specified ETag.

Examples found in repository?
src/client.rs (line 2527)
2526
2527
2528
2529
        pub fn copy_source_if_none_match(mut self, input: impl Into<std::string::String>) -> Self {
            self.inner = self.inner.copy_source_if_none_match(input.into());
            self
        }

Copies the object if its entity tag (ETag) is different than the specified ETag.

Examples found in repository?
src/client.rs (line 2535)
2531
2532
2533
2534
2535
2536
2537
        pub fn set_copy_source_if_none_match(
            mut self,
            input: std::option::Option<std::string::String>,
        ) -> Self {
            self.inner = self.inner.set_copy_source_if_none_match(input);
            self
        }

Copies the object if it hasn't been modified since the specified time.

Examples found in repository?
src/client.rs (line 2543)
2539
2540
2541
2542
2543
2544
2545
        pub fn copy_source_if_unmodified_since(
            mut self,
            input: aws_smithy_types::DateTime,
        ) -> Self {
            self.inner = self.inner.copy_source_if_unmodified_since(input);
            self
        }

Copies the object if it hasn't been modified since the specified time.

Examples found in repository?
src/client.rs (line 2551)
2547
2548
2549
2550
2551
2552
2553
        pub fn set_copy_source_if_unmodified_since(
            mut self,
            input: std::option::Option<aws_smithy_types::DateTime>,
        ) -> Self {
            self.inner = self.inner.set_copy_source_if_unmodified_since(input);
            self
        }

The date and time at which the object is no longer cacheable.

Examples found in repository?
src/client.rs (line 2556)
2555
2556
2557
2558
        pub fn expires(mut self, input: aws_smithy_types::DateTime) -> Self {
            self.inner = self.inner.expires(input);
            self
        }

The date and time at which the object is no longer cacheable.

Examples found in repository?
src/client.rs (line 2564)
2560
2561
2562
2563
2564
2565
2566
        pub fn set_expires(
            mut self,
            input: std::option::Option<aws_smithy_types::DateTime>,
        ) -> Self {
            self.inner = self.inner.set_expires(input);
            self
        }

Gives the grantee READ, READ_ACP, and WRITE_ACP permissions on the object.

This action is not supported by Amazon S3 on Outposts.

Examples found in repository?
src/client.rs (line 2570)
2569
2570
2571
2572
        pub fn grant_full_control(mut self, input: impl Into<std::string::String>) -> Self {
            self.inner = self.inner.grant_full_control(input.into());
            self
        }

Gives the grantee READ, READ_ACP, and WRITE_ACP permissions on the object.

This action is not supported by Amazon S3 on Outposts.

Examples found in repository?
src/client.rs (line 2579)
2575
2576
2577
2578
2579
2580
2581
        pub fn set_grant_full_control(
            mut self,
            input: std::option::Option<std::string::String>,
        ) -> Self {
            self.inner = self.inner.set_grant_full_control(input);
            self
        }

Allows grantee to read the object data and its metadata.

This action is not supported by Amazon S3 on Outposts.

Examples found in repository?
src/client.rs (line 2585)
2584
2585
2586
2587
        pub fn grant_read(mut self, input: impl Into<std::string::String>) -> Self {
            self.inner = self.inner.grant_read(input.into());
            self
        }

Allows grantee to read the object data and its metadata.

This action is not supported by Amazon S3 on Outposts.

Examples found in repository?
src/client.rs (line 2591)
2590
2591
2592
2593
        pub fn set_grant_read(mut self, input: std::option::Option<std::string::String>) -> Self {
            self.inner = self.inner.set_grant_read(input);
            self
        }

Allows grantee to read the object ACL.

This action is not supported by Amazon S3 on Outposts.

Examples found in repository?
src/client.rs (line 2597)
2596
2597
2598
2599
        pub fn grant_read_acp(mut self, input: impl Into<std::string::String>) -> Self {
            self.inner = self.inner.grant_read_acp(input.into());
            self
        }

Allows grantee to read the object ACL.

This action is not supported by Amazon S3 on Outposts.

Examples found in repository?
src/client.rs (line 2606)
2602
2603
2604
2605
2606
2607
2608
        pub fn set_grant_read_acp(
            mut self,
            input: std::option::Option<std::string::String>,
        ) -> Self {
            self.inner = self.inner.set_grant_read_acp(input);
            self
        }

Allows grantee to write the ACL for the applicable object.

This action is not supported by Amazon S3 on Outposts.

Examples found in repository?
src/client.rs (line 2612)
2611
2612
2613
2614
        pub fn grant_write_acp(mut self, input: impl Into<std::string::String>) -> Self {
            self.inner = self.inner.grant_write_acp(input.into());
            self
        }

Allows grantee to write the ACL for the applicable object.

This action is not supported by Amazon S3 on Outposts.

Examples found in repository?
src/client.rs (line 2621)
2617
2618
2619
2620
2621
2622
2623
        pub fn set_grant_write_acp(
            mut self,
            input: std::option::Option<std::string::String>,
        ) -> Self {
            self.inner = self.inner.set_grant_write_acp(input);
            self
        }

The key of the destination object.

Examples found in repository?
src/client.rs (line 2626)
2625
2626
2627
2628
        pub fn key(mut self, input: impl Into<std::string::String>) -> Self {
            self.inner = self.inner.key(input.into());
            self
        }

The key of the destination object.

Examples found in repository?
src/client.rs (line 2631)
2630
2631
2632
2633
        pub fn set_key(mut self, input: std::option::Option<std::string::String>) -> Self {
            self.inner = self.inner.set_key(input);
            self
        }

Adds a key-value pair to metadata.

To override the contents of this collection use set_metadata.

A map of metadata to store with the object in S3.

Examples found in repository?
src/client.rs (line 2644)
2639
2640
2641
2642
2643
2644
2645
2646
        pub fn metadata(
            mut self,
            k: impl Into<std::string::String>,
            v: impl Into<std::string::String>,
        ) -> Self {
            self.inner = self.inner.metadata(k.into(), v.into());
            self
        }

A map of metadata to store with the object in S3.

Examples found in repository?
src/client.rs (line 2654)
2648
2649
2650
2651
2652
2653
2654
2655
2656
        pub fn set_metadata(
            mut self,
            input: std::option::Option<
                std::collections::HashMap<std::string::String, std::string::String>,
            >,
        ) -> Self {
            self.inner = self.inner.set_metadata(input);
            self
        }

Specifies whether the metadata is copied from the source object or replaced with metadata provided in the request.

Examples found in repository?
src/client.rs (line 2659)
2658
2659
2660
2661
        pub fn metadata_directive(mut self, input: crate::model::MetadataDirective) -> Self {
            self.inner = self.inner.metadata_directive(input);
            self
        }

Specifies whether the metadata is copied from the source object or replaced with metadata provided in the request.

Examples found in repository?
src/client.rs (line 2667)
2663
2664
2665
2666
2667
2668
2669
        pub fn set_metadata_directive(
            mut self,
            input: std::option::Option<crate::model::MetadataDirective>,
        ) -> Self {
            self.inner = self.inner.set_metadata_directive(input);
            self
        }

Specifies whether the object tag-set are copied from the source object or replaced with tag-set provided in the request.

Examples found in repository?
src/client.rs (line 2672)
2671
2672
2673
2674
        pub fn tagging_directive(mut self, input: crate::model::TaggingDirective) -> Self {
            self.inner = self.inner.tagging_directive(input);
            self
        }

Specifies whether the object tag-set are copied from the source object or replaced with tag-set provided in the request.

Examples found in repository?
src/client.rs (line 2680)
2676
2677
2678
2679
2680
2681
2682
        pub fn set_tagging_directive(
            mut self,
            input: std::option::Option<crate::model::TaggingDirective>,
        ) -> Self {
            self.inner = self.inner.set_tagging_directive(input);
            self
        }

The server-side encryption algorithm used when storing this object in Amazon S3 (for example, AES256, aws:kms).

Examples found in repository?
src/client.rs (line 2685)
2684
2685
2686
2687
        pub fn server_side_encryption(mut self, input: crate::model::ServerSideEncryption) -> Self {
            self.inner = self.inner.server_side_encryption(input);
            self
        }

The server-side encryption algorithm used when storing this object in Amazon S3 (for example, AES256, aws:kms).

Examples found in repository?
src/client.rs (line 2693)
2689
2690
2691
2692
2693
2694
2695
        pub fn set_server_side_encryption(
            mut self,
            input: std::option::Option<crate::model::ServerSideEncryption>,
        ) -> Self {
            self.inner = self.inner.set_server_side_encryption(input);
            self
        }

By default, Amazon S3 uses the STANDARD Storage Class to store newly created objects. The STANDARD storage class provides high durability and high availability. Depending on performance needs, you can specify a different Storage Class. Amazon S3 on Outposts only uses the OUTPOSTS Storage Class. For more information, see Storage Classes in the Amazon S3 User Guide.

Examples found in repository?
src/client.rs (line 2698)
2697
2698
2699
2700
        pub fn storage_class(mut self, input: crate::model::StorageClass) -> Self {
            self.inner = self.inner.storage_class(input);
            self
        }

By default, Amazon S3 uses the STANDARD Storage Class to store newly created objects. The STANDARD storage class provides high durability and high availability. Depending on performance needs, you can specify a different Storage Class. Amazon S3 on Outposts only uses the OUTPOSTS Storage Class. For more information, see Storage Classes in the Amazon S3 User Guide.

Examples found in repository?
src/client.rs (line 2706)
2702
2703
2704
2705
2706
2707
2708
        pub fn set_storage_class(
            mut self,
            input: std::option::Option<crate::model::StorageClass>,
        ) -> Self {
            self.inner = self.inner.set_storage_class(input);
            self
        }

If the bucket is configured as a website, redirects requests for this object to another object in the same bucket or to an external URL. Amazon S3 stores the value of this header in the object metadata.

Examples found in repository?
src/client.rs (line 2711)
2710
2711
2712
2713
        pub fn website_redirect_location(mut self, input: impl Into<std::string::String>) -> Self {
            self.inner = self.inner.website_redirect_location(input.into());
            self
        }

If the bucket is configured as a website, redirects requests for this object to another object in the same bucket or to an external URL. Amazon S3 stores the value of this header in the object metadata.

Examples found in repository?
src/client.rs (line 2719)
2715
2716
2717
2718
2719
2720
2721
        pub fn set_website_redirect_location(
            mut self,
            input: std::option::Option<std::string::String>,
        ) -> Self {
            self.inner = self.inner.set_website_redirect_location(input);
            self
        }

Specifies the algorithm to use to when encrypting the object (for example, AES256).

Examples found in repository?
src/client.rs (line 2724)
2723
2724
2725
2726
        pub fn sse_customer_algorithm(mut self, input: impl Into<std::string::String>) -> Self {
            self.inner = self.inner.sse_customer_algorithm(input.into());
            self
        }

Specifies the algorithm to use to when encrypting the object (for example, AES256).

Examples found in repository?
src/client.rs (line 2732)
2728
2729
2730
2731
2732
2733
2734
        pub fn set_sse_customer_algorithm(
            mut self,
            input: std::option::Option<std::string::String>,
        ) -> Self {
            self.inner = self.inner.set_sse_customer_algorithm(input);
            self
        }

Specifies the customer-provided encryption key for Amazon S3 to use in encrypting data. This value is used to store the object and then it is discarded; Amazon S3 does not store the encryption key. The key must be appropriate for use with the algorithm specified in the x-amz-server-side-encryption-customer-algorithm header.

Examples found in repository?
src/client.rs (line 2737)
2736
2737
2738
2739
        pub fn sse_customer_key(mut self, input: impl Into<std::string::String>) -> Self {
            self.inner = self.inner.sse_customer_key(input.into());
            self
        }

Specifies the customer-provided encryption key for Amazon S3 to use in encrypting data. This value is used to store the object and then it is discarded; Amazon S3 does not store the encryption key. The key must be appropriate for use with the algorithm specified in the x-amz-server-side-encryption-customer-algorithm header.

Examples found in repository?
src/client.rs (line 2745)
2741
2742
2743
2744
2745
2746
2747
        pub fn set_sse_customer_key(
            mut self,
            input: std::option::Option<std::string::String>,
        ) -> Self {
            self.inner = self.inner.set_sse_customer_key(input);
            self
        }

Specifies the 128-bit MD5 digest of the encryption key according to RFC 1321. Amazon S3 uses this header for a message integrity check to ensure that the encryption key was transmitted without error.

Examples found in repository?
src/client.rs (line 2750)
2749
2750
2751
2752
        pub fn sse_customer_key_md5(mut self, input: impl Into<std::string::String>) -> Self {
            self.inner = self.inner.sse_customer_key_md5(input.into());
            self
        }

Specifies the 128-bit MD5 digest of the encryption key according to RFC 1321. Amazon S3 uses this header for a message integrity check to ensure that the encryption key was transmitted without error.

Examples found in repository?
src/client.rs (line 2758)
2754
2755
2756
2757
2758
2759
2760
        pub fn set_sse_customer_key_md5(
            mut self,
            input: std::option::Option<std::string::String>,
        ) -> Self {
            self.inner = self.inner.set_sse_customer_key_md5(input);
            self
        }

Specifies the Amazon Web Services KMS key ID to use for object encryption. All GET and PUT requests for an object protected by Amazon Web Services KMS will fail if not made via SSL or using SigV4. For information about configuring using any of the officially supported Amazon Web Services SDKs and Amazon Web Services CLI, see Specifying the Signature Version in Request Authentication in the Amazon S3 User Guide.

Examples found in repository?
src/client.rs (line 2763)
2762
2763
2764
2765
        pub fn ssekms_key_id(mut self, input: impl Into<std::string::String>) -> Self {
            self.inner = self.inner.ssekms_key_id(input.into());
            self
        }

Specifies the Amazon Web Services KMS key ID to use for object encryption. All GET and PUT requests for an object protected by Amazon Web Services KMS will fail if not made via SSL or using SigV4. For information about configuring using any of the officially supported Amazon Web Services SDKs and Amazon Web Services CLI, see Specifying the Signature Version in Request Authentication in the Amazon S3 User Guide.

Examples found in repository?
src/client.rs (line 2771)
2767
2768
2769
2770
2771
2772
2773
        pub fn set_ssekms_key_id(
            mut self,
            input: std::option::Option<std::string::String>,
        ) -> Self {
            self.inner = self.inner.set_ssekms_key_id(input);
            self
        }

Specifies the Amazon Web Services KMS Encryption Context to use for object encryption. The value of this header is a base64-encoded UTF-8 string holding JSON with the encryption context key-value pairs.

Examples found in repository?
src/client.rs (line 2776)
2775
2776
2777
2778
        pub fn ssekms_encryption_context(mut self, input: impl Into<std::string::String>) -> Self {
            self.inner = self.inner.ssekms_encryption_context(input.into());
            self
        }

Specifies the Amazon Web Services KMS Encryption Context to use for object encryption. The value of this header is a base64-encoded UTF-8 string holding JSON with the encryption context key-value pairs.

Examples found in repository?
src/client.rs (line 2784)
2780
2781
2782
2783
2784
2785
2786
        pub fn set_ssekms_encryption_context(
            mut self,
            input: std::option::Option<std::string::String>,
        ) -> Self {
            self.inner = self.inner.set_ssekms_encryption_context(input);
            self
        }

Specifies whether Amazon S3 should use an S3 Bucket Key for object encryption with server-side encryption using AWS KMS (SSE-KMS). Setting this header to true causes Amazon S3 to use an S3 Bucket Key for object encryption with SSE-KMS.

Specifying this header with a COPY action doesn’t affect bucket-level settings for S3 Bucket Key.

Examples found in repository?
src/client.rs (line 2790)
2789
2790
2791
2792
        pub fn bucket_key_enabled(mut self, input: bool) -> Self {
            self.inner = self.inner.bucket_key_enabled(input);
            self
        }

Specifies whether Amazon S3 should use an S3 Bucket Key for object encryption with server-side encryption using AWS KMS (SSE-KMS). Setting this header to true causes Amazon S3 to use an S3 Bucket Key for object encryption with SSE-KMS.

Specifying this header with a COPY action doesn’t affect bucket-level settings for S3 Bucket Key.

Examples found in repository?
src/client.rs (line 2796)
2795
2796
2797
2798
        pub fn set_bucket_key_enabled(mut self, input: std::option::Option<bool>) -> Self {
            self.inner = self.inner.set_bucket_key_enabled(input);
            self
        }

Specifies the algorithm to use when decrypting the source object (for example, AES256).

Examples found in repository?
src/client.rs (line 2804)
2800
2801
2802
2803
2804
2805
2806
        pub fn copy_source_sse_customer_algorithm(
            mut self,
            input: impl Into<std::string::String>,
        ) -> Self {
            self.inner = self.inner.copy_source_sse_customer_algorithm(input.into());
            self
        }

Specifies the algorithm to use when decrypting the source object (for example, AES256).

Examples found in repository?
src/client.rs (line 2812)
2808
2809
2810
2811
2812
2813
2814
        pub fn set_copy_source_sse_customer_algorithm(
            mut self,
            input: std::option::Option<std::string::String>,
        ) -> Self {
            self.inner = self.inner.set_copy_source_sse_customer_algorithm(input);
            self
        }

Specifies the customer-provided encryption key for Amazon S3 to use to decrypt the source object. The encryption key provided in this header must be one that was used when the source object was created.

Examples found in repository?
src/client.rs (line 2820)
2816
2817
2818
2819
2820
2821
2822
        pub fn copy_source_sse_customer_key(
            mut self,
            input: impl Into<std::string::String>,
        ) -> Self {
            self.inner = self.inner.copy_source_sse_customer_key(input.into());
            self
        }

Specifies the customer-provided encryption key for Amazon S3 to use to decrypt the source object. The encryption key provided in this header must be one that was used when the source object was created.

Examples found in repository?
src/client.rs (line 2828)
2824
2825
2826
2827
2828
2829
2830
        pub fn set_copy_source_sse_customer_key(
            mut self,
            input: std::option::Option<std::string::String>,
        ) -> Self {
            self.inner = self.inner.set_copy_source_sse_customer_key(input);
            self
        }

Specifies the 128-bit MD5 digest of the encryption key according to RFC 1321. Amazon S3 uses this header for a message integrity check to ensure that the encryption key was transmitted without error.

Examples found in repository?
src/client.rs (line 2836)
2832
2833
2834
2835
2836
2837
2838
        pub fn copy_source_sse_customer_key_md5(
            mut self,
            input: impl Into<std::string::String>,
        ) -> Self {
            self.inner = self.inner.copy_source_sse_customer_key_md5(input.into());
            self
        }

Specifies the 128-bit MD5 digest of the encryption key according to RFC 1321. Amazon S3 uses this header for a message integrity check to ensure that the encryption key was transmitted without error.

Examples found in repository?
src/client.rs (line 2844)
2840
2841
2842
2843
2844
2845
2846
        pub fn set_copy_source_sse_customer_key_md5(
            mut self,
            input: std::option::Option<std::string::String>,
        ) -> Self {
            self.inner = self.inner.set_copy_source_sse_customer_key_md5(input);
            self
        }

Confirms that the requester knows that they will be charged for the request. Bucket owners need not specify this parameter in their requests. For information about downloading objects from Requester Pays buckets, see Downloading Objects in Requester Pays Buckets in the Amazon S3 User Guide.

Examples found in repository?
src/client.rs (line 2849)
2848
2849
2850
2851
        pub fn request_payer(mut self, input: crate::model::RequestPayer) -> Self {
            self.inner = self.inner.request_payer(input);
            self
        }

Confirms that the requester knows that they will be charged for the request. Bucket owners need not specify this parameter in their requests. For information about downloading objects from Requester Pays buckets, see Downloading Objects in Requester Pays Buckets in the Amazon S3 User Guide.

Examples found in repository?
src/client.rs (line 2857)
2853
2854
2855
2856
2857
2858
2859
        pub fn set_request_payer(
            mut self,
            input: std::option::Option<crate::model::RequestPayer>,
        ) -> Self {
            self.inner = self.inner.set_request_payer(input);
            self
        }

The tag-set for the object destination object this value must be used in conjunction with the TaggingDirective. The tag-set must be encoded as URL Query parameters.

Examples found in repository?
src/client.rs (line 2862)
2861
2862
2863
2864
        pub fn tagging(mut self, input: impl Into<std::string::String>) -> Self {
            self.inner = self.inner.tagging(input.into());
            self
        }

The tag-set for the object destination object this value must be used in conjunction with the TaggingDirective. The tag-set must be encoded as URL Query parameters.

Examples found in repository?
src/client.rs (line 2867)
2866
2867
2868
2869
        pub fn set_tagging(mut self, input: std::option::Option<std::string::String>) -> Self {
            self.inner = self.inner.set_tagging(input);
            self
        }

The Object Lock mode that you want to apply to the copied object.

Examples found in repository?
src/client.rs (line 2872)
2871
2872
2873
2874
        pub fn object_lock_mode(mut self, input: crate::model::ObjectLockMode) -> Self {
            self.inner = self.inner.object_lock_mode(input);
            self
        }

The Object Lock mode that you want to apply to the copied object.

Examples found in repository?
src/client.rs (line 2880)
2876
2877
2878
2879
2880
2881
2882
        pub fn set_object_lock_mode(
            mut self,
            input: std::option::Option<crate::model::ObjectLockMode>,
        ) -> Self {
            self.inner = self.inner.set_object_lock_mode(input);
            self
        }

The date and time when you want the copied object's Object Lock to expire.

Examples found in repository?
src/client.rs (line 2885)
2884
2885
2886
2887
        pub fn object_lock_retain_until_date(mut self, input: aws_smithy_types::DateTime) -> Self {
            self.inner = self.inner.object_lock_retain_until_date(input);
            self
        }

The date and time when you want the copied object's Object Lock to expire.

Examples found in repository?
src/client.rs (line 2893)
2889
2890
2891
2892
2893
2894
2895
        pub fn set_object_lock_retain_until_date(
            mut self,
            input: std::option::Option<aws_smithy_types::DateTime>,
        ) -> Self {
            self.inner = self.inner.set_object_lock_retain_until_date(input);
            self
        }

Specifies whether you want to apply a legal hold to the copied object.

Examples found in repository?
src/client.rs (line 2901)
2897
2898
2899
2900
2901
2902
2903
        pub fn object_lock_legal_hold_status(
            mut self,
            input: crate::model::ObjectLockLegalHoldStatus,
        ) -> Self {
            self.inner = self.inner.object_lock_legal_hold_status(input);
            self
        }

Specifies whether you want to apply a legal hold to the copied object.

Examples found in repository?
src/client.rs (line 2909)
2905
2906
2907
2908
2909
2910
2911
        pub fn set_object_lock_legal_hold_status(
            mut self,
            input: std::option::Option<crate::model::ObjectLockLegalHoldStatus>,
        ) -> Self {
            self.inner = self.inner.set_object_lock_legal_hold_status(input);
            self
        }

The account ID of the expected destination bucket owner. If the destination bucket is owned by a different account, the request fails with the HTTP status code 403 Forbidden (access denied).

Examples found in repository?
src/client.rs (line 2914)
2913
2914
2915
2916
        pub fn expected_bucket_owner(mut self, input: impl Into<std::string::String>) -> Self {
            self.inner = self.inner.expected_bucket_owner(input.into());
            self
        }

The account ID of the expected destination bucket owner. If the destination bucket is owned by a different account, the request fails with the HTTP status code 403 Forbidden (access denied).

Examples found in repository?
src/client.rs (line 2922)
2918
2919
2920
2921
2922
2923
2924
        pub fn set_expected_bucket_owner(
            mut self,
            input: std::option::Option<std::string::String>,
        ) -> Self {
            self.inner = self.inner.set_expected_bucket_owner(input);
            self
        }

The account ID of the expected source bucket owner. If the source bucket is owned by a different account, the request fails with the HTTP status code 403 Forbidden (access denied).

Examples found in repository?
src/client.rs (line 2930)
2926
2927
2928
2929
2930
2931
2932
        pub fn expected_source_bucket_owner(
            mut self,
            input: impl Into<std::string::String>,
        ) -> Self {
            self.inner = self.inner.expected_source_bucket_owner(input.into());
            self
        }

The account ID of the expected source bucket owner. If the source bucket is owned by a different account, the request fails with the HTTP status code 403 Forbidden (access denied).

Examples found in repository?
src/client.rs (line 2938)
2934
2935
2936
2937
2938
2939
2940
        pub fn set_expected_source_bucket_owner(
            mut self,
            input: std::option::Option<std::string::String>,
        ) -> Self {
            self.inner = self.inner.set_expected_source_bucket_owner(input);
            self
        }

Consumes the builder and constructs a CopyObjectInput.

Examples found in repository?
src/client.rs (line 2298)
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
        pub async fn customize(
            self,
        ) -> std::result::Result<
            crate::operation::customize::CustomizableOperation<
                crate::operation::CopyObject,
                aws_http::retry::AwsResponseRetryClassifier,
            >,
            aws_smithy_http::result::SdkError<crate::error::CopyObjectError>,
        > {
            let handle = self.handle.clone();
            let operation = self
                .inner
                .build()
                .map_err(aws_smithy_http::result::SdkError::construction_failure)?
                .make_operation(&handle.conf)
                .await
                .map_err(aws_smithy_http::result::SdkError::construction_failure)?;
            Ok(crate::operation::customize::CustomizableOperation { handle, operation })
        }

        /// Sends the request and returns the response.
        ///
        /// If an error occurs, an `SdkError` will be returned with additional details that
        /// can be matched against.
        ///
        /// By default, any retryable failures will be retried twice. Retry behavior
        /// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
        /// set when configuring the client.
        pub async fn send(
            self,
        ) -> std::result::Result<
            crate::output::CopyObjectOutput,
            aws_smithy_http::result::SdkError<crate::error::CopyObjectError>,
        > {
            let op = self
                .inner
                .build()
                .map_err(aws_smithy_http::result::SdkError::construction_failure)?
                .make_operation(&self.handle.conf)
                .await
                .map_err(aws_smithy_http::result::SdkError::construction_failure)?;
            self.handle.client.call(op).await
        }

Trait Implementations§

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Returns the “default value” for a type. Read more
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more