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

Description

Configures one or more gateway local disks as working storage for a gateway. This operation is only supported in the stored volume gateway type. This operation is deprecated in cached volume API version 20120630. Use AddUploadBuffer instead.

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

In the request, you specify the gateway Amazon Resource Name (ARN) to which you want to add working storage, and one or more disk IDs that you want to configure as working storage.

Synopsis

Creating a Request

data AddWorkingStorage Source #

A JSON object containing one or more of the following fields:

  • AddWorkingStorageInput$DiskIds

See: newAddWorkingStorage smart constructor.

Constructors

AddWorkingStorage' 

Fields

  • gatewayARN :: Text
     
  • diskIds :: [Text]

    An array of strings that identify disks that are to be configured as working storage. Each string has a minimum length of 1 and maximum length of 300. You can get the disk IDs from the ListLocalDisks API.

Instances

Instances details
ToJSON AddWorkingStorage Source # 
Instance details

Defined in Amazonka.StorageGateway.AddWorkingStorage

ToHeaders AddWorkingStorage Source # 
Instance details

Defined in Amazonka.StorageGateway.AddWorkingStorage

ToPath AddWorkingStorage Source # 
Instance details

Defined in Amazonka.StorageGateway.AddWorkingStorage

ToQuery AddWorkingStorage Source # 
Instance details

Defined in Amazonka.StorageGateway.AddWorkingStorage

AWSRequest AddWorkingStorage Source # 
Instance details

Defined in Amazonka.StorageGateway.AddWorkingStorage

Associated Types

type AWSResponse AddWorkingStorage #

Generic AddWorkingStorage Source # 
Instance details

Defined in Amazonka.StorageGateway.AddWorkingStorage

Associated Types

type Rep AddWorkingStorage :: Type -> Type #

Read AddWorkingStorage Source # 
Instance details

Defined in Amazonka.StorageGateway.AddWorkingStorage

Show AddWorkingStorage Source # 
Instance details

Defined in Amazonka.StorageGateway.AddWorkingStorage

NFData AddWorkingStorage Source # 
Instance details

Defined in Amazonka.StorageGateway.AddWorkingStorage

Methods

rnf :: AddWorkingStorage -> () #

Eq AddWorkingStorage Source # 
Instance details

Defined in Amazonka.StorageGateway.AddWorkingStorage

Hashable AddWorkingStorage Source # 
Instance details

Defined in Amazonka.StorageGateway.AddWorkingStorage

type AWSResponse AddWorkingStorage Source # 
Instance details

Defined in Amazonka.StorageGateway.AddWorkingStorage

type Rep AddWorkingStorage Source # 
Instance details

Defined in Amazonka.StorageGateway.AddWorkingStorage

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

newAddWorkingStorage Source #

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

AddWorkingStorage, addWorkingStorage_gatewayARN - Undocumented member.

$sel:diskIds:AddWorkingStorage', addWorkingStorage_diskIds - An array of strings that identify disks that are to be configured as working storage. Each string has a minimum length of 1 and maximum length of 300. You can get the disk IDs from the ListLocalDisks API.

Request Lenses

addWorkingStorage_diskIds :: Lens' AddWorkingStorage [Text] Source #

An array of strings that identify disks that are to be configured as working storage. Each string has a minimum length of 1 and maximum length of 300. You can get the disk IDs from the ListLocalDisks API.

Destructuring the Response

data AddWorkingStorageResponse Source #

A JSON object containing the Amazon Resource Name (ARN) of the gateway for which working storage was configured.

See: newAddWorkingStorageResponse smart constructor.

Constructors

AddWorkingStorageResponse' 

Fields

Instances

Instances details
Generic AddWorkingStorageResponse Source # 
Instance details

Defined in Amazonka.StorageGateway.AddWorkingStorage

Associated Types

type Rep AddWorkingStorageResponse :: Type -> Type #

Read AddWorkingStorageResponse Source # 
Instance details

Defined in Amazonka.StorageGateway.AddWorkingStorage

Show AddWorkingStorageResponse Source # 
Instance details

Defined in Amazonka.StorageGateway.AddWorkingStorage

NFData AddWorkingStorageResponse Source # 
Instance details

Defined in Amazonka.StorageGateway.AddWorkingStorage

Eq AddWorkingStorageResponse Source # 
Instance details

Defined in Amazonka.StorageGateway.AddWorkingStorage

type Rep AddWorkingStorageResponse Source # 
Instance details

Defined in Amazonka.StorageGateway.AddWorkingStorage

type Rep AddWorkingStorageResponse = D1 ('MetaData "AddWorkingStorageResponse" "Amazonka.StorageGateway.AddWorkingStorage" "amazonka-storagegateway-2.0-A8x7b0LCNm33wkCZlwgcSL" 'False) (C1 ('MetaCons "AddWorkingStorageResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "gatewayARN") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newAddWorkingStorageResponse Source #

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

AddWorkingStorage, addWorkingStorageResponse_gatewayARN - Undocumented member.

$sel:httpStatus:AddWorkingStorageResponse', addWorkingStorageResponse_httpStatus - The response's http status code.

Response Lenses