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.DeleteBucketCors

Description

Deletes the cors configuration information set for the bucket.

To use this operation, you must have permission to perform the s3:PutBucketCORS action. The bucket owner has this permission by default and can grant this permission to others.

For information about cors, see Enabling Cross-Origin Resource Sharing in the Amazon S3 User Guide.

Related Resources:

Synopsis

Creating a Request

data DeleteBucketCors Source #

See: newDeleteBucketCors smart constructor.

Constructors

DeleteBucketCors' 

Fields

  • expectedBucketOwner :: Maybe Text

    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.

  • bucket :: BucketName

    Specifies the bucket whose cors configuration is being deleted.

Instances

Instances details
Eq DeleteBucketCors Source # 
Instance details

Defined in Amazonka.S3.DeleteBucketCors

Read DeleteBucketCors Source # 
Instance details

Defined in Amazonka.S3.DeleteBucketCors

Show DeleteBucketCors Source # 
Instance details

Defined in Amazonka.S3.DeleteBucketCors

Generic DeleteBucketCors Source # 
Instance details

Defined in Amazonka.S3.DeleteBucketCors

Associated Types

type Rep DeleteBucketCors :: Type -> Type #

NFData DeleteBucketCors Source # 
Instance details

Defined in Amazonka.S3.DeleteBucketCors

Methods

rnf :: DeleteBucketCors -> () #

Hashable DeleteBucketCors Source # 
Instance details

Defined in Amazonka.S3.DeleteBucketCors

AWSRequest DeleteBucketCors Source # 
Instance details

Defined in Amazonka.S3.DeleteBucketCors

Associated Types

type AWSResponse DeleteBucketCors #

ToHeaders DeleteBucketCors Source # 
Instance details

Defined in Amazonka.S3.DeleteBucketCors

ToPath DeleteBucketCors Source # 
Instance details

Defined in Amazonka.S3.DeleteBucketCors

ToQuery DeleteBucketCors Source # 
Instance details

Defined in Amazonka.S3.DeleteBucketCors

type Rep DeleteBucketCors Source # 
Instance details

Defined in Amazonka.S3.DeleteBucketCors

type Rep DeleteBucketCors = D1 ('MetaData "DeleteBucketCors" "Amazonka.S3.DeleteBucketCors" "libZSservicesZSamazonka-s3ZSamazonka-s3" 'False) (C1 ('MetaCons "DeleteBucketCors'" 'PrefixI 'True) (S1 ('MetaSel ('Just "expectedBucketOwner") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "bucket") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 BucketName)))
type AWSResponse DeleteBucketCors Source # 
Instance details

Defined in Amazonka.S3.DeleteBucketCors

newDeleteBucketCors Source #

Create a value of DeleteBucketCors 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:DeleteBucketCors', deleteBucketCors_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:DeleteBucketCors', deleteBucketCors_bucket - Specifies the bucket whose cors configuration is being deleted.

Request Lenses

deleteBucketCors_expectedBucketOwner :: Lens' DeleteBucketCors (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.

deleteBucketCors_bucket :: Lens' DeleteBucketCors BucketName Source #

Specifies the bucket whose cors configuration is being deleted.

Destructuring the Response

data DeleteBucketCorsResponse Source #

See: newDeleteBucketCorsResponse smart constructor.

Instances

Instances details
Eq DeleteBucketCorsResponse Source # 
Instance details

Defined in Amazonka.S3.DeleteBucketCors

Read DeleteBucketCorsResponse Source # 
Instance details

Defined in Amazonka.S3.DeleteBucketCors

Show DeleteBucketCorsResponse Source # 
Instance details

Defined in Amazonka.S3.DeleteBucketCors

Generic DeleteBucketCorsResponse Source # 
Instance details

Defined in Amazonka.S3.DeleteBucketCors

Associated Types

type Rep DeleteBucketCorsResponse :: Type -> Type #

NFData DeleteBucketCorsResponse Source # 
Instance details

Defined in Amazonka.S3.DeleteBucketCors

type Rep DeleteBucketCorsResponse Source # 
Instance details

Defined in Amazonka.S3.DeleteBucketCors

type Rep DeleteBucketCorsResponse = D1 ('MetaData "DeleteBucketCorsResponse" "Amazonka.S3.DeleteBucketCors" "libZSservicesZSamazonka-s3ZSamazonka-s3" 'False) (C1 ('MetaCons "DeleteBucketCorsResponse'" 'PrefixI 'False) (U1 :: Type -> Type))

newDeleteBucketCorsResponse :: DeleteBucketCorsResponse Source #

Create a value of DeleteBucketCorsResponse with all optional fields omitted.

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