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.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
Eq DescribeWorkingStorage Source # 
Instance details

Defined in Amazonka.StorageGateway.DescribeWorkingStorage

Read DescribeWorkingStorage Source # 
Instance details

Defined in Amazonka.StorageGateway.DescribeWorkingStorage

Show DescribeWorkingStorage Source # 
Instance details

Defined in Amazonka.StorageGateway.DescribeWorkingStorage

Generic DescribeWorkingStorage Source # 
Instance details

Defined in Amazonka.StorageGateway.DescribeWorkingStorage

Associated Types

type Rep DescribeWorkingStorage :: Type -> Type #

NFData DescribeWorkingStorage Source # 
Instance details

Defined in Amazonka.StorageGateway.DescribeWorkingStorage

Methods

rnf :: DescribeWorkingStorage -> () #

Hashable DescribeWorkingStorage Source # 
Instance details

Defined in Amazonka.StorageGateway.DescribeWorkingStorage

ToJSON DescribeWorkingStorage Source # 
Instance details

Defined in Amazonka.StorageGateway.DescribeWorkingStorage

AWSRequest DescribeWorkingStorage Source # 
Instance details

Defined in Amazonka.StorageGateway.DescribeWorkingStorage

Associated Types

type AWSResponse 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

type Rep DescribeWorkingStorage Source # 
Instance details

Defined in Amazonka.StorageGateway.DescribeWorkingStorage

type Rep DescribeWorkingStorage = D1 ('MetaData "DescribeWorkingStorage" "Amazonka.StorageGateway.DescribeWorkingStorage" "libZSservicesZSamazonka-storagegatewayZSamazonka-storagegateway" 'False) (C1 ('MetaCons "DescribeWorkingStorage'" 'PrefixI 'True) (S1 ('MetaSel ('Just "gatewayARN") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))
type AWSResponse DescribeWorkingStorage Source # 
Instance details

Defined in Amazonka.StorageGateway.DescribeWorkingStorage

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:

$sel:gatewayARN: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

  • gatewayARN :: Maybe Text
     
  • 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.

  • 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
Eq DescribeWorkingStorageResponse Source # 
Instance details

Defined in Amazonka.StorageGateway.DescribeWorkingStorage

Read DescribeWorkingStorageResponse Source # 
Instance details

Defined in Amazonka.StorageGateway.DescribeWorkingStorage

Show DescribeWorkingStorageResponse Source # 
Instance details

Defined in Amazonka.StorageGateway.DescribeWorkingStorage

Generic DescribeWorkingStorageResponse Source # 
Instance details

Defined in Amazonka.StorageGateway.DescribeWorkingStorage

Associated Types

type Rep DescribeWorkingStorageResponse :: Type -> Type #

NFData 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" "libZSservicesZSamazonka-storagegatewayZSamazonka-storagegateway" 'False) (C1 ('MetaCons "DescribeWorkingStorageResponse'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "gatewayARN") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "diskIds") '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:gatewayARN:DescribeWorkingStorage', describeWorkingStorageResponse_gatewayARN - Undocumented member.

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

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