amazonka-s3-2.0: Amazon Simple Storage Service SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.S3.PutBucketAccelerateConfiguration

Description

Sets the accelerate configuration of an existing bucket. Amazon S3 Transfer Acceleration is a bucket-level feature that enables you to perform faster data transfers to Amazon S3.

To use this operation, you must have permission to perform the s3:PutAccelerateConfiguration action. The bucket owner has this permission by default. The bucket owner can grant this permission to others. For more information about permissions, see Permissions Related to Bucket Subresource Operations and Managing Access Permissions to Your Amazon S3 Resources.

The Transfer Acceleration state of a bucket can be set to one of the following two values:

  • Enabled – Enables accelerated data transfers to the bucket.
  • Suspended – Disables accelerated data transfers to the bucket.

The GetBucketAccelerateConfiguration action returns the transfer acceleration state of a bucket.

After setting the Transfer Acceleration state of a bucket to Enabled, it might take up to thirty minutes before the data transfer rates to the bucket increase.

The name of the bucket used for Transfer Acceleration must be DNS-compliant and must not contain periods (".").

For more information about transfer acceleration, see Transfer Acceleration.

The following operations are related to PutBucketAccelerateConfiguration:

Synopsis

Creating a Request

data PutBucketAccelerateConfiguration Source #

See: newPutBucketAccelerateConfiguration smart constructor.

Constructors

PutBucketAccelerateConfiguration' 

Fields

  • checksumAlgorithm :: Maybe ChecksumAlgorithm

    Indicates the algorithm used to create the checksum for the object when using the SDK. This header will not provide any additional functionality if not using the SDK. When sending this header, there must be a corresponding x-amz-checksum or x-amz-trailer header sent. Otherwise, Amazon S3 fails the request with the HTTP status code 400 Bad Request. For more information, see Checking object integrity in the Amazon S3 User Guide.

    If you provide an individual checksum, Amazon S3 ignores any provided ChecksumAlgorithm parameter.

  • expectedBucketOwner :: Maybe Text

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

  • bucket :: BucketName

    The name of the bucket for which the accelerate configuration is set.

  • accelerateConfiguration :: AccelerateConfiguration

    Container for setting the transfer acceleration state.

Instances

Instances details
ToHeaders PutBucketAccelerateConfiguration Source # 
Instance details

Defined in Amazonka.S3.PutBucketAccelerateConfiguration

ToPath PutBucketAccelerateConfiguration Source # 
Instance details

Defined in Amazonka.S3.PutBucketAccelerateConfiguration

ToQuery PutBucketAccelerateConfiguration Source # 
Instance details

Defined in Amazonka.S3.PutBucketAccelerateConfiguration

ToElement PutBucketAccelerateConfiguration Source # 
Instance details

Defined in Amazonka.S3.PutBucketAccelerateConfiguration

AWSRequest PutBucketAccelerateConfiguration Source # 
Instance details

Defined in Amazonka.S3.PutBucketAccelerateConfiguration

Generic PutBucketAccelerateConfiguration Source # 
Instance details

Defined in Amazonka.S3.PutBucketAccelerateConfiguration

Associated Types

type Rep PutBucketAccelerateConfiguration :: Type -> Type #

Read PutBucketAccelerateConfiguration Source # 
Instance details

Defined in Amazonka.S3.PutBucketAccelerateConfiguration

Show PutBucketAccelerateConfiguration Source # 
Instance details

Defined in Amazonka.S3.PutBucketAccelerateConfiguration

NFData PutBucketAccelerateConfiguration Source # 
Instance details

Defined in Amazonka.S3.PutBucketAccelerateConfiguration

Eq PutBucketAccelerateConfiguration Source # 
Instance details

Defined in Amazonka.S3.PutBucketAccelerateConfiguration

Hashable PutBucketAccelerateConfiguration Source # 
Instance details

Defined in Amazonka.S3.PutBucketAccelerateConfiguration

type AWSResponse PutBucketAccelerateConfiguration Source # 
Instance details

Defined in Amazonka.S3.PutBucketAccelerateConfiguration

type Rep PutBucketAccelerateConfiguration Source # 
Instance details

Defined in Amazonka.S3.PutBucketAccelerateConfiguration

type Rep PutBucketAccelerateConfiguration = D1 ('MetaData "PutBucketAccelerateConfiguration" "Amazonka.S3.PutBucketAccelerateConfiguration" "amazonka-s3-2.0-CNZtv1UmVzj28JXsFvwNoj" 'False) (C1 ('MetaCons "PutBucketAccelerateConfiguration'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "checksumAlgorithm") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe ChecksumAlgorithm)) :*: S1 ('MetaSel ('Just "expectedBucketOwner") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "bucket") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 BucketName) :*: S1 ('MetaSel ('Just "accelerateConfiguration") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 AccelerateConfiguration))))

newPutBucketAccelerateConfiguration Source #

Create a value of PutBucketAccelerateConfiguration with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

PutBucketAccelerateConfiguration, putBucketAccelerateConfiguration_checksumAlgorithm - Indicates the algorithm used to create the checksum for the object when using the SDK. This header will not provide any additional functionality if not using the SDK. When sending this header, there must be a corresponding x-amz-checksum or x-amz-trailer header sent. Otherwise, Amazon S3 fails the request with the HTTP status code 400 Bad Request. For more information, see Checking object integrity in the Amazon S3 User Guide.

If you provide an individual checksum, Amazon S3 ignores any provided ChecksumAlgorithm parameter.

$sel:expectedBucketOwner:PutBucketAccelerateConfiguration', putBucketAccelerateConfiguration_expectedBucketOwner - The account ID of the expected bucket owner. If the bucket is owned by a different account, the request fails with the HTTP status code 403 Forbidden (access denied).

PutBucketAccelerateConfiguration, putBucketAccelerateConfiguration_bucket - The name of the bucket for which the accelerate configuration is set.

$sel:accelerateConfiguration:PutBucketAccelerateConfiguration', putBucketAccelerateConfiguration_accelerateConfiguration - Container for setting the transfer acceleration state.

Request Lenses

putBucketAccelerateConfiguration_checksumAlgorithm :: Lens' PutBucketAccelerateConfiguration (Maybe ChecksumAlgorithm) Source #

Indicates the algorithm used to create the checksum for the object when using the SDK. This header will not provide any additional functionality if not using the SDK. When sending this header, there must be a corresponding x-amz-checksum or x-amz-trailer header sent. Otherwise, Amazon S3 fails the request with the HTTP status code 400 Bad Request. For more information, see Checking object integrity in the Amazon S3 User Guide.

If you provide an individual checksum, Amazon S3 ignores any provided ChecksumAlgorithm parameter.

putBucketAccelerateConfiguration_expectedBucketOwner :: Lens' PutBucketAccelerateConfiguration (Maybe Text) Source #

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

putBucketAccelerateConfiguration_bucket :: Lens' PutBucketAccelerateConfiguration BucketName Source #

The name of the bucket for which the accelerate configuration is set.

Destructuring the Response

data PutBucketAccelerateConfigurationResponse Source #

Instances

Instances details
Generic PutBucketAccelerateConfigurationResponse Source # 
Instance details

Defined in Amazonka.S3.PutBucketAccelerateConfiguration

Read PutBucketAccelerateConfigurationResponse Source # 
Instance details

Defined in Amazonka.S3.PutBucketAccelerateConfiguration

Show PutBucketAccelerateConfigurationResponse Source # 
Instance details

Defined in Amazonka.S3.PutBucketAccelerateConfiguration

NFData PutBucketAccelerateConfigurationResponse Source # 
Instance details

Defined in Amazonka.S3.PutBucketAccelerateConfiguration

Eq PutBucketAccelerateConfigurationResponse Source # 
Instance details

Defined in Amazonka.S3.PutBucketAccelerateConfiguration

type Rep PutBucketAccelerateConfigurationResponse Source # 
Instance details

Defined in Amazonka.S3.PutBucketAccelerateConfiguration

type Rep PutBucketAccelerateConfigurationResponse = D1 ('MetaData "PutBucketAccelerateConfigurationResponse" "Amazonka.S3.PutBucketAccelerateConfiguration" "amazonka-s3-2.0-CNZtv1UmVzj28JXsFvwNoj" 'False) (C1 ('MetaCons "PutBucketAccelerateConfigurationResponse'" 'PrefixI 'False) (U1 :: Type -> Type))

newPutBucketAccelerateConfigurationResponse :: PutBucketAccelerateConfigurationResponse Source #

Create a value of PutBucketAccelerateConfigurationResponse with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.