libZSservicesZSamazonka-storagegatewayZSamazonka-storagegateway
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.StorageGateway.DeleteFileShare

Description

Deletes a file share from an S3 File Gateway. This operation is only supported for S3 File Gateways.

Synopsis

Creating a Request

data DeleteFileShare Source #

DeleteFileShareInput

See: newDeleteFileShare smart constructor.

Constructors

DeleteFileShare' 

Fields

  • forceDelete :: Maybe Bool

    If this value is set to true, the operation deletes a file share immediately and aborts all data uploads to Amazon Web Services. Otherwise, the file share is not deleted until all data is uploaded to Amazon Web Services. This process aborts the data upload process, and the file share enters the FORCE_DELETING status.

    Valid Values: true | false

  • fileShareARN :: Text

    The Amazon Resource Name (ARN) of the file share to be deleted.

Instances

Instances details
Eq DeleteFileShare Source # 
Instance details

Defined in Amazonka.StorageGateway.DeleteFileShare

Read DeleteFileShare Source # 
Instance details

Defined in Amazonka.StorageGateway.DeleteFileShare

Show DeleteFileShare Source # 
Instance details

Defined in Amazonka.StorageGateway.DeleteFileShare

Generic DeleteFileShare Source # 
Instance details

Defined in Amazonka.StorageGateway.DeleteFileShare

Associated Types

type Rep DeleteFileShare :: Type -> Type #

NFData DeleteFileShare Source # 
Instance details

Defined in Amazonka.StorageGateway.DeleteFileShare

Methods

rnf :: DeleteFileShare -> () #

Hashable DeleteFileShare Source # 
Instance details

Defined in Amazonka.StorageGateway.DeleteFileShare

ToJSON DeleteFileShare Source # 
Instance details

Defined in Amazonka.StorageGateway.DeleteFileShare

AWSRequest DeleteFileShare Source # 
Instance details

Defined in Amazonka.StorageGateway.DeleteFileShare

Associated Types

type AWSResponse DeleteFileShare #

ToHeaders DeleteFileShare Source # 
Instance details

Defined in Amazonka.StorageGateway.DeleteFileShare

ToPath DeleteFileShare Source # 
Instance details

Defined in Amazonka.StorageGateway.DeleteFileShare

ToQuery DeleteFileShare Source # 
Instance details

Defined in Amazonka.StorageGateway.DeleteFileShare

type Rep DeleteFileShare Source # 
Instance details

Defined in Amazonka.StorageGateway.DeleteFileShare

type Rep DeleteFileShare = D1 ('MetaData "DeleteFileShare" "Amazonka.StorageGateway.DeleteFileShare" "libZSservicesZSamazonka-storagegatewayZSamazonka-storagegateway" 'False) (C1 ('MetaCons "DeleteFileShare'" 'PrefixI 'True) (S1 ('MetaSel ('Just "forceDelete") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "fileShareARN") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))
type AWSResponse DeleteFileShare Source # 
Instance details

Defined in Amazonka.StorageGateway.DeleteFileShare

newDeleteFileShare Source #

Create a value of DeleteFileShare 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:forceDelete:DeleteFileShare', deleteFileShare_forceDelete - If this value is set to true, the operation deletes a file share immediately and aborts all data uploads to Amazon Web Services. Otherwise, the file share is not deleted until all data is uploaded to Amazon Web Services. This process aborts the data upload process, and the file share enters the FORCE_DELETING status.

Valid Values: true | false

$sel:fileShareARN:DeleteFileShare', deleteFileShare_fileShareARN - The Amazon Resource Name (ARN) of the file share to be deleted.

Request Lenses

deleteFileShare_forceDelete :: Lens' DeleteFileShare (Maybe Bool) Source #

If this value is set to true, the operation deletes a file share immediately and aborts all data uploads to Amazon Web Services. Otherwise, the file share is not deleted until all data is uploaded to Amazon Web Services. This process aborts the data upload process, and the file share enters the FORCE_DELETING status.

Valid Values: true | false

deleteFileShare_fileShareARN :: Lens' DeleteFileShare Text Source #

The Amazon Resource Name (ARN) of the file share to be deleted.

Destructuring the Response

data DeleteFileShareResponse Source #

DeleteFileShareOutput

See: newDeleteFileShareResponse smart constructor.

Constructors

DeleteFileShareResponse' 

Fields

Instances

Instances details
Eq DeleteFileShareResponse Source # 
Instance details

Defined in Amazonka.StorageGateway.DeleteFileShare

Read DeleteFileShareResponse Source # 
Instance details

Defined in Amazonka.StorageGateway.DeleteFileShare

Show DeleteFileShareResponse Source # 
Instance details

Defined in Amazonka.StorageGateway.DeleteFileShare

Generic DeleteFileShareResponse Source # 
Instance details

Defined in Amazonka.StorageGateway.DeleteFileShare

Associated Types

type Rep DeleteFileShareResponse :: Type -> Type #

NFData DeleteFileShareResponse Source # 
Instance details

Defined in Amazonka.StorageGateway.DeleteFileShare

Methods

rnf :: DeleteFileShareResponse -> () #

type Rep DeleteFileShareResponse Source # 
Instance details

Defined in Amazonka.StorageGateway.DeleteFileShare

type Rep DeleteFileShareResponse = D1 ('MetaData "DeleteFileShareResponse" "Amazonka.StorageGateway.DeleteFileShare" "libZSservicesZSamazonka-storagegatewayZSamazonka-storagegateway" 'False) (C1 ('MetaCons "DeleteFileShareResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "fileShareARN") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newDeleteFileShareResponse Source #

Create a value of DeleteFileShareResponse 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:fileShareARN:DeleteFileShare', deleteFileShareResponse_fileShareARN - The Amazon Resource Name (ARN) of the deleted file share.

$sel:httpStatus:DeleteFileShareResponse', deleteFileShareResponse_httpStatus - The response's http status code.

Response Lenses

deleteFileShareResponse_fileShareARN :: Lens' DeleteFileShareResponse (Maybe Text) Source #

The Amazon Resource Name (ARN) of the deleted file share.