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

Description

Removes the PublicAccessBlock configuration for an Amazon S3 bucket. To use this operation, you must have the s3:PutBucketPublicAccessBlock permission. For more information about permissions, see Permissions Related to Bucket Subresource Operations and Managing Access Permissions to Your Amazon S3 Resources.

The following operations are related to DeletePublicAccessBlock:

Synopsis

Creating a Request

data DeletePublicAccessBlock Source #

See: newDeletePublicAccessBlock smart constructor.

Constructors

DeletePublicAccessBlock' 

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

    The Amazon S3 bucket whose PublicAccessBlock configuration you want to delete.

Instances

Instances details
Eq DeletePublicAccessBlock Source # 
Instance details

Defined in Amazonka.S3.DeletePublicAccessBlock

Read DeletePublicAccessBlock Source # 
Instance details

Defined in Amazonka.S3.DeletePublicAccessBlock

Show DeletePublicAccessBlock Source # 
Instance details

Defined in Amazonka.S3.DeletePublicAccessBlock

Generic DeletePublicAccessBlock Source # 
Instance details

Defined in Amazonka.S3.DeletePublicAccessBlock

Associated Types

type Rep DeletePublicAccessBlock :: Type -> Type #

NFData DeletePublicAccessBlock Source # 
Instance details

Defined in Amazonka.S3.DeletePublicAccessBlock

Methods

rnf :: DeletePublicAccessBlock -> () #

Hashable DeletePublicAccessBlock Source # 
Instance details

Defined in Amazonka.S3.DeletePublicAccessBlock

AWSRequest DeletePublicAccessBlock Source # 
Instance details

Defined in Amazonka.S3.DeletePublicAccessBlock

ToHeaders DeletePublicAccessBlock Source # 
Instance details

Defined in Amazonka.S3.DeletePublicAccessBlock

ToPath DeletePublicAccessBlock Source # 
Instance details

Defined in Amazonka.S3.DeletePublicAccessBlock

ToQuery DeletePublicAccessBlock Source # 
Instance details

Defined in Amazonka.S3.DeletePublicAccessBlock

type Rep DeletePublicAccessBlock Source # 
Instance details

Defined in Amazonka.S3.DeletePublicAccessBlock

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

Defined in Amazonka.S3.DeletePublicAccessBlock

newDeletePublicAccessBlock Source #

Create a value of DeletePublicAccessBlock 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:DeletePublicAccessBlock', deletePublicAccessBlock_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:DeletePublicAccessBlock', deletePublicAccessBlock_bucket - The Amazon S3 bucket whose PublicAccessBlock configuration you want to delete.

Request Lenses

deletePublicAccessBlock_expectedBucketOwner :: Lens' DeletePublicAccessBlock (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.

deletePublicAccessBlock_bucket :: Lens' DeletePublicAccessBlock BucketName Source #

The Amazon S3 bucket whose PublicAccessBlock configuration you want to delete.

Destructuring the Response

data DeletePublicAccessBlockResponse Source #

See: newDeletePublicAccessBlockResponse smart constructor.

Instances

Instances details
Eq DeletePublicAccessBlockResponse Source # 
Instance details

Defined in Amazonka.S3.DeletePublicAccessBlock

Read DeletePublicAccessBlockResponse Source # 
Instance details

Defined in Amazonka.S3.DeletePublicAccessBlock

Show DeletePublicAccessBlockResponse Source # 
Instance details

Defined in Amazonka.S3.DeletePublicAccessBlock

Generic DeletePublicAccessBlockResponse Source # 
Instance details

Defined in Amazonka.S3.DeletePublicAccessBlock

Associated Types

type Rep DeletePublicAccessBlockResponse :: Type -> Type #

NFData DeletePublicAccessBlockResponse Source # 
Instance details

Defined in Amazonka.S3.DeletePublicAccessBlock

type Rep DeletePublicAccessBlockResponse Source # 
Instance details

Defined in Amazonka.S3.DeletePublicAccessBlock

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

newDeletePublicAccessBlockResponse :: DeletePublicAccessBlockResponse Source #

Create a value of DeletePublicAccessBlockResponse with all optional fields omitted.

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