amazonka-glacier-2.0: Amazon Glacier 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.Glacier.Types.DataRetrievalRule

Description

 
Synopsis

Documentation

data DataRetrievalRule Source #

Data retrieval policy rule.

See: newDataRetrievalRule smart constructor.

Constructors

DataRetrievalRule' 

Fields

  • bytesPerHour :: Maybe Integer

    The maximum number of bytes that can be retrieved in an hour.

    This field is required only if the value of the Strategy field is BytesPerHour. Your PUT operation will be rejected if the Strategy field is not set to BytesPerHour and you set this field.

  • strategy :: Maybe Text

    The type of data retrieval policy to set.

    Valid values: BytesPerHour|FreeTier|None

Instances

Instances details
FromJSON DataRetrievalRule Source # 
Instance details

Defined in Amazonka.Glacier.Types.DataRetrievalRule

ToJSON DataRetrievalRule Source # 
Instance details

Defined in Amazonka.Glacier.Types.DataRetrievalRule

Generic DataRetrievalRule Source # 
Instance details

Defined in Amazonka.Glacier.Types.DataRetrievalRule

Associated Types

type Rep DataRetrievalRule :: Type -> Type #

Read DataRetrievalRule Source # 
Instance details

Defined in Amazonka.Glacier.Types.DataRetrievalRule

Show DataRetrievalRule Source # 
Instance details

Defined in Amazonka.Glacier.Types.DataRetrievalRule

NFData DataRetrievalRule Source # 
Instance details

Defined in Amazonka.Glacier.Types.DataRetrievalRule

Methods

rnf :: DataRetrievalRule -> () #

Eq DataRetrievalRule Source # 
Instance details

Defined in Amazonka.Glacier.Types.DataRetrievalRule

Hashable DataRetrievalRule Source # 
Instance details

Defined in Amazonka.Glacier.Types.DataRetrievalRule

type Rep DataRetrievalRule Source # 
Instance details

Defined in Amazonka.Glacier.Types.DataRetrievalRule

type Rep DataRetrievalRule = D1 ('MetaData "DataRetrievalRule" "Amazonka.Glacier.Types.DataRetrievalRule" "amazonka-glacier-2.0-17Kmjv8nUJeKOtbrjLyy76" 'False) (C1 ('MetaCons "DataRetrievalRule'" 'PrefixI 'True) (S1 ('MetaSel ('Just "bytesPerHour") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Integer)) :*: S1 ('MetaSel ('Just "strategy") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))))

newDataRetrievalRule :: DataRetrievalRule Source #

Create a value of DataRetrievalRule 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:bytesPerHour:DataRetrievalRule', dataRetrievalRule_bytesPerHour - The maximum number of bytes that can be retrieved in an hour.

This field is required only if the value of the Strategy field is BytesPerHour. Your PUT operation will be rejected if the Strategy field is not set to BytesPerHour and you set this field.

$sel:strategy:DataRetrievalRule', dataRetrievalRule_strategy - The type of data retrieval policy to set.

Valid values: BytesPerHour|FreeTier|None

dataRetrievalRule_bytesPerHour :: Lens' DataRetrievalRule (Maybe Integer) Source #

The maximum number of bytes that can be retrieved in an hour.

This field is required only if the value of the Strategy field is BytesPerHour. Your PUT operation will be rejected if the Strategy field is not set to BytesPerHour and you set this field.

dataRetrievalRule_strategy :: Lens' DataRetrievalRule (Maybe Text) Source #

The type of data retrieval policy to set.

Valid values: BytesPerHour|FreeTier|None