libZSservicesZSamazonka-dlmZSamazonka-dlm
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.DLM.Types.ShareRule

Description

 
Synopsis

Documentation

data ShareRule Source #

Specifies a rule for sharing snapshots across Amazon Web Services accounts.

See: newShareRule smart constructor.

Constructors

ShareRule' 

Fields

Instances

Instances details
Eq ShareRule Source # 
Instance details

Defined in Amazonka.DLM.Types.ShareRule

Read ShareRule Source # 
Instance details

Defined in Amazonka.DLM.Types.ShareRule

Show ShareRule Source # 
Instance details

Defined in Amazonka.DLM.Types.ShareRule

Generic ShareRule Source # 
Instance details

Defined in Amazonka.DLM.Types.ShareRule

Associated Types

type Rep ShareRule :: Type -> Type #

NFData ShareRule Source # 
Instance details

Defined in Amazonka.DLM.Types.ShareRule

Methods

rnf :: ShareRule -> () #

Hashable ShareRule Source # 
Instance details

Defined in Amazonka.DLM.Types.ShareRule

ToJSON ShareRule Source # 
Instance details

Defined in Amazonka.DLM.Types.ShareRule

FromJSON ShareRule Source # 
Instance details

Defined in Amazonka.DLM.Types.ShareRule

type Rep ShareRule Source # 
Instance details

Defined in Amazonka.DLM.Types.ShareRule

type Rep ShareRule = D1 ('MetaData "ShareRule" "Amazonka.DLM.Types.ShareRule" "libZSservicesZSamazonka-dlmZSamazonka-dlm" 'False) (C1 ('MetaCons "ShareRule'" 'PrefixI 'True) (S1 ('MetaSel ('Just "unshareIntervalUnit") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe RetentionIntervalUnitValues)) :*: (S1 ('MetaSel ('Just "unshareInterval") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural)) :*: S1 ('MetaSel ('Just "targetAccounts") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (NonEmpty Text)))))

newShareRule Source #

Create a value of ShareRule 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:unshareIntervalUnit:ShareRule', shareRule_unshareIntervalUnit - The unit of time for the automatic unsharing interval.

$sel:unshareInterval:ShareRule', shareRule_unshareInterval - The period after which snapshots that are shared with other Amazon Web Services accounts are automatically unshared.

$sel:targetAccounts:ShareRule', shareRule_targetAccounts - The IDs of the Amazon Web Services accounts with which to share the snapshots.

shareRule_unshareIntervalUnit :: Lens' ShareRule (Maybe RetentionIntervalUnitValues) Source #

The unit of time for the automatic unsharing interval.

shareRule_unshareInterval :: Lens' ShareRule (Maybe Natural) Source #

The period after which snapshots that are shared with other Amazon Web Services accounts are automatically unshared.

shareRule_targetAccounts :: Lens' ShareRule (NonEmpty Text) Source #

The IDs of the Amazon Web Services accounts with which to share the snapshots.