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

Description

Configures one or more gateway local disks as cache for a gateway. This operation is only supported in the cached volume, tape, and file gateway type (see How Storage Gateway works (architecture).

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

Synopsis

Creating a Request

data AddCache Source #

See: newAddCache smart constructor.

Constructors

AddCache' 

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 AddCache Source # 
Instance details

Defined in Amazonka.StorageGateway.AddCache

ToHeaders AddCache Source # 
Instance details

Defined in Amazonka.StorageGateway.AddCache

Methods

toHeaders :: AddCache -> [Header] #

ToPath AddCache Source # 
Instance details

Defined in Amazonka.StorageGateway.AddCache

ToQuery AddCache Source # 
Instance details

Defined in Amazonka.StorageGateway.AddCache

AWSRequest AddCache Source # 
Instance details

Defined in Amazonka.StorageGateway.AddCache

Associated Types

type AWSResponse AddCache #

Generic AddCache Source # 
Instance details

Defined in Amazonka.StorageGateway.AddCache

Associated Types

type Rep AddCache :: Type -> Type #

Methods

from :: AddCache -> Rep AddCache x #

to :: Rep AddCache x -> AddCache #

Read AddCache Source # 
Instance details

Defined in Amazonka.StorageGateway.AddCache

Show AddCache Source # 
Instance details

Defined in Amazonka.StorageGateway.AddCache

NFData AddCache Source # 
Instance details

Defined in Amazonka.StorageGateway.AddCache

Methods

rnf :: AddCache -> () #

Eq AddCache Source # 
Instance details

Defined in Amazonka.StorageGateway.AddCache

Hashable AddCache Source # 
Instance details

Defined in Amazonka.StorageGateway.AddCache

Methods

hashWithSalt :: Int -> AddCache -> Int #

hash :: AddCache -> Int #

type AWSResponse AddCache Source # 
Instance details

Defined in Amazonka.StorageGateway.AddCache

type Rep AddCache Source # 
Instance details

Defined in Amazonka.StorageGateway.AddCache

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

newAddCache Source #

Arguments

:: Text

AddCache

-> AddCache 

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

AddCache, addCache_gatewayARN - Undocumented member.

$sel:diskIds:AddCache', addCache_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

addCache_diskIds :: Lens' AddCache [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 AddCacheResponse Source #

See: newAddCacheResponse smart constructor.

Constructors

AddCacheResponse' 

Fields

Instances

Instances details
Generic AddCacheResponse Source # 
Instance details

Defined in Amazonka.StorageGateway.AddCache

Associated Types

type Rep AddCacheResponse :: Type -> Type #

Read AddCacheResponse Source # 
Instance details

Defined in Amazonka.StorageGateway.AddCache

Show AddCacheResponse Source # 
Instance details

Defined in Amazonka.StorageGateway.AddCache

NFData AddCacheResponse Source # 
Instance details

Defined in Amazonka.StorageGateway.AddCache

Methods

rnf :: AddCacheResponse -> () #

Eq AddCacheResponse Source # 
Instance details

Defined in Amazonka.StorageGateway.AddCache

type Rep AddCacheResponse Source # 
Instance details

Defined in Amazonka.StorageGateway.AddCache

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

newAddCacheResponse Source #

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

AddCache, addCacheResponse_gatewayARN - Undocumented member.

$sel:httpStatus:AddCacheResponse', addCacheResponse_httpStatus - The response's http status code.

Response Lenses

addCacheResponse_httpStatus :: Lens' AddCacheResponse Int Source #

The response's http status code.