libZSservicesZSamazonka-s3ZSamazonka-s3
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

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

Instances

Instances details
Eq PutBucketAccelerateConfiguration Source # 
Instance details

Defined in Amazonka.S3.PutBucketAccelerateConfiguration

Read PutBucketAccelerateConfiguration Source # 
Instance details

Defined in Amazonka.S3.PutBucketAccelerateConfiguration

Show 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 #

NFData PutBucketAccelerateConfiguration Source # 
Instance details

Defined in Amazonka.S3.PutBucketAccelerateConfiguration

Hashable PutBucketAccelerateConfiguration Source # 
Instance details

Defined in Amazonka.S3.PutBucketAccelerateConfiguration

AWSRequest PutBucketAccelerateConfiguration Source # 
Instance details

Defined in Amazonka.S3.PutBucketAccelerateConfiguration

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

type Rep PutBucketAccelerateConfiguration Source # 
Instance details

Defined in Amazonka.S3.PutBucketAccelerateConfiguration

type Rep PutBucketAccelerateConfiguration = D1 ('MetaData "PutBucketAccelerateConfiguration" "Amazonka.S3.PutBucketAccelerateConfiguration" "libZSservicesZSamazonka-s3ZSamazonka-s3" 'False) (C1 ('MetaCons "PutBucketAccelerateConfiguration'" 'PrefixI 'True) (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))))
type AWSResponse PutBucketAccelerateConfiguration Source # 
Instance details

Defined in Amazonka.S3.PutBucketAccelerateConfiguration

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:

$sel:expectedBucketOwner:PutBucketAccelerateConfiguration', putBucketAccelerateConfiguration_expectedBucketOwner - The account ID of the expected bucket owner. If the bucket is owned by a different account, the request will fail with an HTTP 403 (Access Denied) error.

$sel:bucket: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_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 will fail with an HTTP 403 (Access Denied) error.

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
Eq 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

Generic PutBucketAccelerateConfigurationResponse Source # 
Instance details

Defined in Amazonka.S3.PutBucketAccelerateConfiguration

NFData 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" "libZSservicesZSamazonka-s3ZSamazonka-s3" '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.