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

Defined in Amazonka.StorageGateway.AddCache

Read AddCache Source # 
Instance details

Defined in Amazonka.StorageGateway.AddCache

Show AddCache Source # 
Instance details

Defined in Amazonka.StorageGateway.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 #

NFData AddCache Source # 
Instance details

Defined in Amazonka.StorageGateway.AddCache

Methods

rnf :: AddCache -> () #

Hashable AddCache Source # 
Instance details

Defined in Amazonka.StorageGateway.AddCache

Methods

hashWithSalt :: Int -> AddCache -> Int #

hash :: AddCache -> Int #

ToJSON AddCache Source # 
Instance details

Defined in Amazonka.StorageGateway.AddCache

AWSRequest AddCache Source # 
Instance details

Defined in Amazonka.StorageGateway.AddCache

Associated Types

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

type Rep AddCache Source # 
Instance details

Defined in Amazonka.StorageGateway.AddCache

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

Defined in Amazonka.StorageGateway.AddCache

newAddCache Source #

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:

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

Defined in Amazonka.StorageGateway.AddCache

Read AddCacheResponse Source # 
Instance details

Defined in Amazonka.StorageGateway.AddCache

Show AddCacheResponse Source # 
Instance details

Defined in Amazonka.StorageGateway.AddCache

Generic AddCacheResponse Source # 
Instance details

Defined in Amazonka.StorageGateway.AddCache

Associated Types

type Rep AddCacheResponse :: Type -> Type #

NFData AddCacheResponse Source # 
Instance details

Defined in Amazonka.StorageGateway.AddCache

Methods

rnf :: AddCacheResponse -> () #

type Rep AddCacheResponse Source # 
Instance details

Defined in Amazonka.StorageGateway.AddCache

type Rep AddCacheResponse = D1 ('MetaData "AddCacheResponse" "Amazonka.StorageGateway.AddCache" "libZSservicesZSamazonka-storagegatewayZSamazonka-storagegateway" '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:

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