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

Description

Assigns a tape to a tape pool for archiving. The tape assigned to a pool is archived in the S3 storage class that is associated with the pool. When you use your backup application to eject the tape, the tape is archived directly into the S3 storage class (S3 Glacier or S3 Glacier Deep Archive) that corresponds to the pool.

Valid Values: GLACIER | DEEP_ARCHIVE

Synopsis

Creating a Request

data AssignTapePool Source #

See: newAssignTapePool smart constructor.

Constructors

AssignTapePool' 

Fields

  • bypassGovernanceRetention :: Maybe Bool

    Set permissions to bypass governance retention. If the lock type of the archived tape is Governance, the tape's archived age is not older than RetentionLockInDays, and the user does not already have BypassGovernanceRetention, setting this to TRUE enables the user to bypass the retention lock. This parameter is set to true by default for calls from the console.

    Valid values: TRUE | FALSE

  • tapeARN :: Text

    The unique Amazon Resource Name (ARN) of the virtual tape that you want to add to the tape pool.

  • poolId :: Text

    The ID of the pool that you want to add your tape to for archiving. The tape in this pool is archived in the S3 storage class that is associated with the pool. When you use your backup application to eject the tape, the tape is archived directly into the storage class (S3 Glacier or S3 Glacier Deep Archive) that corresponds to the pool.

    Valid Values: GLACIER | DEEP_ARCHIVE

Instances

Instances details
Eq AssignTapePool Source # 
Instance details

Defined in Amazonka.StorageGateway.AssignTapePool

Read AssignTapePool Source # 
Instance details

Defined in Amazonka.StorageGateway.AssignTapePool

Show AssignTapePool Source # 
Instance details

Defined in Amazonka.StorageGateway.AssignTapePool

Generic AssignTapePool Source # 
Instance details

Defined in Amazonka.StorageGateway.AssignTapePool

Associated Types

type Rep AssignTapePool :: Type -> Type #

NFData AssignTapePool Source # 
Instance details

Defined in Amazonka.StorageGateway.AssignTapePool

Methods

rnf :: AssignTapePool -> () #

Hashable AssignTapePool Source # 
Instance details

Defined in Amazonka.StorageGateway.AssignTapePool

ToJSON AssignTapePool Source # 
Instance details

Defined in Amazonka.StorageGateway.AssignTapePool

AWSRequest AssignTapePool Source # 
Instance details

Defined in Amazonka.StorageGateway.AssignTapePool

Associated Types

type AWSResponse AssignTapePool #

ToHeaders AssignTapePool Source # 
Instance details

Defined in Amazonka.StorageGateway.AssignTapePool

ToPath AssignTapePool Source # 
Instance details

Defined in Amazonka.StorageGateway.AssignTapePool

ToQuery AssignTapePool Source # 
Instance details

Defined in Amazonka.StorageGateway.AssignTapePool

type Rep AssignTapePool Source # 
Instance details

Defined in Amazonka.StorageGateway.AssignTapePool

type Rep AssignTapePool = D1 ('MetaData "AssignTapePool" "Amazonka.StorageGateway.AssignTapePool" "libZSservicesZSamazonka-storagegatewayZSamazonka-storagegateway" 'False) (C1 ('MetaCons "AssignTapePool'" 'PrefixI 'True) (S1 ('MetaSel ('Just "bypassGovernanceRetention") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: (S1 ('MetaSel ('Just "tapeARN") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "poolId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))
type AWSResponse AssignTapePool Source # 
Instance details

Defined in Amazonka.StorageGateway.AssignTapePool

newAssignTapePool Source #

Create a value of AssignTapePool 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:bypassGovernanceRetention:AssignTapePool', assignTapePool_bypassGovernanceRetention - Set permissions to bypass governance retention. If the lock type of the archived tape is Governance, the tape's archived age is not older than RetentionLockInDays, and the user does not already have BypassGovernanceRetention, setting this to TRUE enables the user to bypass the retention lock. This parameter is set to true by default for calls from the console.

Valid values: TRUE | FALSE

$sel:tapeARN:AssignTapePool', assignTapePool_tapeARN - The unique Amazon Resource Name (ARN) of the virtual tape that you want to add to the tape pool.

$sel:poolId:AssignTapePool', assignTapePool_poolId - The ID of the pool that you want to add your tape to for archiving. The tape in this pool is archived in the S3 storage class that is associated with the pool. When you use your backup application to eject the tape, the tape is archived directly into the storage class (S3 Glacier or S3 Glacier Deep Archive) that corresponds to the pool.

Valid Values: GLACIER | DEEP_ARCHIVE

Request Lenses

assignTapePool_bypassGovernanceRetention :: Lens' AssignTapePool (Maybe Bool) Source #

Set permissions to bypass governance retention. If the lock type of the archived tape is Governance, the tape's archived age is not older than RetentionLockInDays, and the user does not already have BypassGovernanceRetention, setting this to TRUE enables the user to bypass the retention lock. This parameter is set to true by default for calls from the console.

Valid values: TRUE | FALSE

assignTapePool_tapeARN :: Lens' AssignTapePool Text Source #

The unique Amazon Resource Name (ARN) of the virtual tape that you want to add to the tape pool.

assignTapePool_poolId :: Lens' AssignTapePool Text Source #

The ID of the pool that you want to add your tape to for archiving. The tape in this pool is archived in the S3 storage class that is associated with the pool. When you use your backup application to eject the tape, the tape is archived directly into the storage class (S3 Glacier or S3 Glacier Deep Archive) that corresponds to the pool.

Valid Values: GLACIER | DEEP_ARCHIVE

Destructuring the Response

data AssignTapePoolResponse Source #

See: newAssignTapePoolResponse smart constructor.

Constructors

AssignTapePoolResponse' 

Fields

  • tapeARN :: Maybe Text

    The unique Amazon Resource Names (ARN) of the virtual tape that was added to the tape pool.

  • httpStatus :: Int

    The response's http status code.

Instances

Instances details
Eq AssignTapePoolResponse Source # 
Instance details

Defined in Amazonka.StorageGateway.AssignTapePool

Read AssignTapePoolResponse Source # 
Instance details

Defined in Amazonka.StorageGateway.AssignTapePool

Show AssignTapePoolResponse Source # 
Instance details

Defined in Amazonka.StorageGateway.AssignTapePool

Generic AssignTapePoolResponse Source # 
Instance details

Defined in Amazonka.StorageGateway.AssignTapePool

Associated Types

type Rep AssignTapePoolResponse :: Type -> Type #

NFData AssignTapePoolResponse Source # 
Instance details

Defined in Amazonka.StorageGateway.AssignTapePool

Methods

rnf :: AssignTapePoolResponse -> () #

type Rep AssignTapePoolResponse Source # 
Instance details

Defined in Amazonka.StorageGateway.AssignTapePool

type Rep AssignTapePoolResponse = D1 ('MetaData "AssignTapePoolResponse" "Amazonka.StorageGateway.AssignTapePool" "libZSservicesZSamazonka-storagegatewayZSamazonka-storagegateway" 'False) (C1 ('MetaCons "AssignTapePoolResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "tapeARN") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newAssignTapePoolResponse Source #

Create a value of AssignTapePoolResponse 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:tapeARN:AssignTapePool', assignTapePoolResponse_tapeARN - The unique Amazon Resource Names (ARN) of the virtual tape that was added to the tape pool.

$sel:httpStatus:AssignTapePoolResponse', assignTapePoolResponse_httpStatus - The response's http status code.

Response Lenses

assignTapePoolResponse_tapeARN :: Lens' AssignTapePoolResponse (Maybe Text) Source #

The unique Amazon Resource Names (ARN) of the virtual tape that was added to the tape pool.