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

Defined in Amazonka.StorageGateway.AddWorkingStorage

Read AddWorkingStorage Source # 
Instance details

Defined in Amazonka.StorageGateway.AddWorkingStorage

Show AddWorkingStorage Source # 
Instance details

Defined in Amazonka.StorageGateway.AddWorkingStorage

Generic AddWorkingStorage Source # 
Instance details

Defined in Amazonka.StorageGateway.AddWorkingStorage

Associated Types

type Rep AddWorkingStorage :: Type -> Type #

NFData AddWorkingStorage Source # 
Instance details

Defined in Amazonka.StorageGateway.AddWorkingStorage

Methods

rnf :: AddWorkingStorage -> () #

Hashable AddWorkingStorage Source # 
Instance details

Defined in Amazonka.StorageGateway.AddWorkingStorage

ToJSON AddWorkingStorage Source # 
Instance details

Defined in Amazonka.StorageGateway.AddWorkingStorage

AWSRequest AddWorkingStorage Source # 
Instance details

Defined in Amazonka.StorageGateway.AddWorkingStorage

Associated Types

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

type Rep AddWorkingStorage Source # 
Instance details

Defined in Amazonka.StorageGateway.AddWorkingStorage

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

Defined in Amazonka.StorageGateway.AddWorkingStorage

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:

$sel:gatewayARN: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
Eq AddWorkingStorageResponse Source # 
Instance details

Defined in Amazonka.StorageGateway.AddWorkingStorage

Read AddWorkingStorageResponse Source # 
Instance details

Defined in Amazonka.StorageGateway.AddWorkingStorage

Show AddWorkingStorageResponse Source # 
Instance details

Defined in Amazonka.StorageGateway.AddWorkingStorage

Generic AddWorkingStorageResponse Source # 
Instance details

Defined in Amazonka.StorageGateway.AddWorkingStorage

Associated Types

type Rep AddWorkingStorageResponse :: Type -> Type #

NFData 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" "libZSservicesZSamazonka-storagegatewayZSamazonka-storagegateway" '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:

$sel:gatewayARN:AddWorkingStorage', addWorkingStorageResponse_gatewayARN - Undocumented member.

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

Response Lenses