amazonka-storagegateway-2.0: Amazon Storage Gateway 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.StorageGateway.DescribeWorkingStorage

Description

Returns information about the working storage of a gateway. This operation is only supported in the stored volumes gateway type. This operation is deprecated in cached volumes API version (20120630). Use DescribeUploadBuffer instead.

Working storage is also referred to as upload buffer. You can also use the DescribeUploadBuffer operation to add upload buffer to a stored volume gateway.

The response includes disk IDs that are configured as working storage, and it includes the amount of working storage allocated and used.

Synopsis

Creating a Request

data DescribeWorkingStorage Source #

A JSON object containing the Amazon Resource Name (ARN) of the gateway.

See: newDescribeWorkingStorage smart constructor.

Constructors

DescribeWorkingStorage' 

Fields

Instances

Instances details
ToJSON DescribeWorkingStorage Source # 
Instance details

Defined in Amazonka.StorageGateway.DescribeWorkingStorage

ToHeaders DescribeWorkingStorage Source # 
Instance details

Defined in Amazonka.StorageGateway.DescribeWorkingStorage

ToPath DescribeWorkingStorage Source # 
Instance details

Defined in Amazonka.StorageGateway.DescribeWorkingStorage

ToQuery DescribeWorkingStorage Source # 
Instance details

Defined in Amazonka.StorageGateway.DescribeWorkingStorage

AWSRequest DescribeWorkingStorage Source # 
Instance details

Defined in Amazonka.StorageGateway.DescribeWorkingStorage

Associated Types

type AWSResponse DescribeWorkingStorage #

Generic DescribeWorkingStorage Source # 
Instance details

Defined in Amazonka.StorageGateway.DescribeWorkingStorage

Associated Types

type Rep DescribeWorkingStorage :: Type -> Type #

Read DescribeWorkingStorage Source # 
Instance details

Defined in Amazonka.StorageGateway.DescribeWorkingStorage

Show DescribeWorkingStorage Source # 
Instance details

Defined in Amazonka.StorageGateway.DescribeWorkingStorage

NFData DescribeWorkingStorage Source # 
Instance details

Defined in Amazonka.StorageGateway.DescribeWorkingStorage

Methods

rnf :: DescribeWorkingStorage -> () #

Eq DescribeWorkingStorage Source # 
Instance details

Defined in Amazonka.StorageGateway.DescribeWorkingStorage

Hashable DescribeWorkingStorage Source # 
Instance details

Defined in Amazonka.StorageGateway.DescribeWorkingStorage

type AWSResponse DescribeWorkingStorage Source # 
Instance details

Defined in Amazonka.StorageGateway.DescribeWorkingStorage

type Rep DescribeWorkingStorage Source # 
Instance details

Defined in Amazonka.StorageGateway.DescribeWorkingStorage

type Rep DescribeWorkingStorage = D1 ('MetaData "DescribeWorkingStorage" "Amazonka.StorageGateway.DescribeWorkingStorage" "amazonka-storagegateway-2.0-A8x7b0LCNm33wkCZlwgcSL" 'False) (C1 ('MetaCons "DescribeWorkingStorage'" 'PrefixI 'True) (S1 ('MetaSel ('Just "gatewayARN") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))

newDescribeWorkingStorage Source #

Create a value of DescribeWorkingStorage 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:

DescribeWorkingStorage, describeWorkingStorage_gatewayARN - Undocumented member.

Request Lenses

Destructuring the Response

data DescribeWorkingStorageResponse Source #

A JSON object containing the following fields:

See: newDescribeWorkingStorageResponse smart constructor.

Constructors

DescribeWorkingStorageResponse' 

Fields

  • diskIds :: Maybe [Text]

    An array of the gateway's local disk IDs that are configured as working storage. Each local disk ID is specified as a string (minimum length of 1 and maximum length of 300). If no local disks are configured as working storage, then the DiskIds array is empty.

  • gatewayARN :: Maybe Text
     
  • workingStorageAllocatedInBytes :: Maybe Integer

    The total working storage in bytes allocated for the gateway. If no working storage is configured for the gateway, this field returns 0.

  • workingStorageUsedInBytes :: Maybe Integer

    The total working storage in bytes in use by the gateway. If no working storage is configured for the gateway, this field returns 0.

  • httpStatus :: Int

    The response's http status code.

Instances

Instances details
Generic DescribeWorkingStorageResponse Source # 
Instance details

Defined in Amazonka.StorageGateway.DescribeWorkingStorage

Associated Types

type Rep DescribeWorkingStorageResponse :: Type -> Type #

Read DescribeWorkingStorageResponse Source # 
Instance details

Defined in Amazonka.StorageGateway.DescribeWorkingStorage

Show DescribeWorkingStorageResponse Source # 
Instance details

Defined in Amazonka.StorageGateway.DescribeWorkingStorage

NFData DescribeWorkingStorageResponse Source # 
Instance details

Defined in Amazonka.StorageGateway.DescribeWorkingStorage

Eq DescribeWorkingStorageResponse Source # 
Instance details

Defined in Amazonka.StorageGateway.DescribeWorkingStorage

type Rep DescribeWorkingStorageResponse Source # 
Instance details

Defined in Amazonka.StorageGateway.DescribeWorkingStorage

type Rep DescribeWorkingStorageResponse = D1 ('MetaData "DescribeWorkingStorageResponse" "Amazonka.StorageGateway.DescribeWorkingStorage" "amazonka-storagegateway-2.0-A8x7b0LCNm33wkCZlwgcSL" 'False) (C1 ('MetaCons "DescribeWorkingStorageResponse'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "diskIds") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Text])) :*: S1 ('MetaSel ('Just "gatewayARN") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "workingStorageAllocatedInBytes") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Integer)) :*: (S1 ('MetaSel ('Just "workingStorageUsedInBytes") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Integer)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))))

newDescribeWorkingStorageResponse Source #

Create a value of DescribeWorkingStorageResponse 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:diskIds:DescribeWorkingStorageResponse', describeWorkingStorageResponse_diskIds - An array of the gateway's local disk IDs that are configured as working storage. Each local disk ID is specified as a string (minimum length of 1 and maximum length of 300). If no local disks are configured as working storage, then the DiskIds array is empty.

DescribeWorkingStorage, describeWorkingStorageResponse_gatewayARN - Undocumented member.

$sel:workingStorageAllocatedInBytes:DescribeWorkingStorageResponse', describeWorkingStorageResponse_workingStorageAllocatedInBytes - The total working storage in bytes allocated for the gateway. If no working storage is configured for the gateway, this field returns 0.

$sel:workingStorageUsedInBytes:DescribeWorkingStorageResponse', describeWorkingStorageResponse_workingStorageUsedInBytes - The total working storage in bytes in use by the gateway. If no working storage is configured for the gateway, this field returns 0.

$sel:httpStatus:DescribeWorkingStorageResponse', describeWorkingStorageResponse_httpStatus - The response's http status code.

Response Lenses

describeWorkingStorageResponse_diskIds :: Lens' DescribeWorkingStorageResponse (Maybe [Text]) Source #

An array of the gateway's local disk IDs that are configured as working storage. Each local disk ID is specified as a string (minimum length of 1 and maximum length of 300). If no local disks are configured as working storage, then the DiskIds array is empty.

describeWorkingStorageResponse_workingStorageAllocatedInBytes :: Lens' DescribeWorkingStorageResponse (Maybe Integer) Source #

The total working storage in bytes allocated for the gateway. If no working storage is configured for the gateway, this field returns 0.

describeWorkingStorageResponse_workingStorageUsedInBytes :: Lens' DescribeWorkingStorageResponse (Maybe Integer) Source #

The total working storage in bytes in use by the gateway. If no working storage is configured for the gateway, this field returns 0.