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

Description

 
Synopsis

Documentation

data PolicyDetails Source #

Specifies the configuration of a lifecycle policy.

See: newPolicyDetails smart constructor.

Constructors

PolicyDetails' 

Fields

  • actions :: Maybe (NonEmpty Action)

    The actions to be performed when the event-based policy is triggered. You can specify only one action per policy.

    This parameter is required for event-based policies only. If you are creating a snapshot or AMI policy, omit this parameter.

  • targetTags :: Maybe (NonEmpty Tag)

    The single tag that identifies targeted resources for this policy.

    This parameter is required for snapshot and AMI policies only. If you are creating an event-based policy, omit this parameter.

  • policyType :: Maybe PolicyTypeValues

    The valid target resource types and actions a policy can manage. Specify EBS_SNAPSHOT_MANAGEMENT to create a lifecycle policy that manages the lifecycle of Amazon EBS snapshots. Specify IMAGE_MANAGEMENT to create a lifecycle policy that manages the lifecycle of EBS-backed AMIs. Specify EVENT_BASED_POLICY to create an event-based policy that performs specific actions when a defined event occurs in your Amazon Web Services account.

    The default is EBS_SNAPSHOT_MANAGEMENT.

  • resourceLocations :: Maybe (NonEmpty ResourceLocationValues)

    The location of the resources to backup. If the source resources are located in an Amazon Web Services Region, specify CLOUD. If the source resources are located on an Outpost in your account, specify OUTPOST.

    If you specify OUTPOST, Amazon Data Lifecycle Manager backs up all resources of the specified type with matching target tags across all of the Outposts in your account.

  • parameters :: Maybe Parameters

    A set of optional parameters for snapshot and AMI lifecycle policies.

    This parameter is required for snapshot and AMI policies only. If you are creating an event-based policy, omit this parameter.

  • schedules :: Maybe (NonEmpty Schedule)

    The schedules of policy-defined actions for snapshot and AMI lifecycle policies. A policy can have up to four schedules—one mandatory schedule and up to three optional schedules.

    This parameter is required for snapshot and AMI policies only. If you are creating an event-based policy, omit this parameter.

  • eventSource :: Maybe EventSource

    The event that triggers the event-based policy.

    This parameter is required for event-based policies only. If you are creating a snapshot or AMI policy, omit this parameter.

  • resourceTypes :: Maybe (NonEmpty ResourceTypeValues)

    The target resource type for snapshot and AMI lifecycle policies. Use VOLUME to create snapshots of individual volumes or use INSTANCE to create multi-volume snapshots from the volumes for an instance.

    This parameter is required for snapshot and AMI policies only. If you are creating an event-based policy, omit this parameter.

Instances

Instances details
Eq PolicyDetails Source # 
Instance details

Defined in Amazonka.DLM.Types.PolicyDetails

Read PolicyDetails Source # 
Instance details

Defined in Amazonka.DLM.Types.PolicyDetails

Show PolicyDetails Source # 
Instance details

Defined in Amazonka.DLM.Types.PolicyDetails

Generic PolicyDetails Source # 
Instance details

Defined in Amazonka.DLM.Types.PolicyDetails

Associated Types

type Rep PolicyDetails :: Type -> Type #

NFData PolicyDetails Source # 
Instance details

Defined in Amazonka.DLM.Types.PolicyDetails

Methods

rnf :: PolicyDetails -> () #

Hashable PolicyDetails Source # 
Instance details

Defined in Amazonka.DLM.Types.PolicyDetails

ToJSON PolicyDetails Source # 
Instance details

Defined in Amazonka.DLM.Types.PolicyDetails

FromJSON PolicyDetails Source # 
Instance details

Defined in Amazonka.DLM.Types.PolicyDetails

type Rep PolicyDetails Source # 
Instance details

Defined in Amazonka.DLM.Types.PolicyDetails

newPolicyDetails :: PolicyDetails Source #

Create a value of PolicyDetails 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:actions:PolicyDetails', policyDetails_actions - The actions to be performed when the event-based policy is triggered. You can specify only one action per policy.

This parameter is required for event-based policies only. If you are creating a snapshot or AMI policy, omit this parameter.

$sel:targetTags:PolicyDetails', policyDetails_targetTags - The single tag that identifies targeted resources for this policy.

This parameter is required for snapshot and AMI policies only. If you are creating an event-based policy, omit this parameter.

$sel:policyType:PolicyDetails', policyDetails_policyType - The valid target resource types and actions a policy can manage. Specify EBS_SNAPSHOT_MANAGEMENT to create a lifecycle policy that manages the lifecycle of Amazon EBS snapshots. Specify IMAGE_MANAGEMENT to create a lifecycle policy that manages the lifecycle of EBS-backed AMIs. Specify EVENT_BASED_POLICY to create an event-based policy that performs specific actions when a defined event occurs in your Amazon Web Services account.

The default is EBS_SNAPSHOT_MANAGEMENT.

$sel:resourceLocations:PolicyDetails', policyDetails_resourceLocations - The location of the resources to backup. If the source resources are located in an Amazon Web Services Region, specify CLOUD. If the source resources are located on an Outpost in your account, specify OUTPOST.

If you specify OUTPOST, Amazon Data Lifecycle Manager backs up all resources of the specified type with matching target tags across all of the Outposts in your account.

$sel:parameters:PolicyDetails', policyDetails_parameters - A set of optional parameters for snapshot and AMI lifecycle policies.

This parameter is required for snapshot and AMI policies only. If you are creating an event-based policy, omit this parameter.

$sel:schedules:PolicyDetails', policyDetails_schedules - The schedules of policy-defined actions for snapshot and AMI lifecycle policies. A policy can have up to four schedules—one mandatory schedule and up to three optional schedules.

This parameter is required for snapshot and AMI policies only. If you are creating an event-based policy, omit this parameter.

$sel:eventSource:PolicyDetails', policyDetails_eventSource - The event that triggers the event-based policy.

This parameter is required for event-based policies only. If you are creating a snapshot or AMI policy, omit this parameter.

$sel:resourceTypes:PolicyDetails', policyDetails_resourceTypes - The target resource type for snapshot and AMI lifecycle policies. Use VOLUME to create snapshots of individual volumes or use INSTANCE to create multi-volume snapshots from the volumes for an instance.

This parameter is required for snapshot and AMI policies only. If you are creating an event-based policy, omit this parameter.

policyDetails_actions :: Lens' PolicyDetails (Maybe (NonEmpty Action)) Source #

The actions to be performed when the event-based policy is triggered. You can specify only one action per policy.

This parameter is required for event-based policies only. If you are creating a snapshot or AMI policy, omit this parameter.

policyDetails_targetTags :: Lens' PolicyDetails (Maybe (NonEmpty Tag)) Source #

The single tag that identifies targeted resources for this policy.

This parameter is required for snapshot and AMI policies only. If you are creating an event-based policy, omit this parameter.

policyDetails_policyType :: Lens' PolicyDetails (Maybe PolicyTypeValues) Source #

The valid target resource types and actions a policy can manage. Specify EBS_SNAPSHOT_MANAGEMENT to create a lifecycle policy that manages the lifecycle of Amazon EBS snapshots. Specify IMAGE_MANAGEMENT to create a lifecycle policy that manages the lifecycle of EBS-backed AMIs. Specify EVENT_BASED_POLICY to create an event-based policy that performs specific actions when a defined event occurs in your Amazon Web Services account.

The default is EBS_SNAPSHOT_MANAGEMENT.

policyDetails_resourceLocations :: Lens' PolicyDetails (Maybe (NonEmpty ResourceLocationValues)) Source #

The location of the resources to backup. If the source resources are located in an Amazon Web Services Region, specify CLOUD. If the source resources are located on an Outpost in your account, specify OUTPOST.

If you specify OUTPOST, Amazon Data Lifecycle Manager backs up all resources of the specified type with matching target tags across all of the Outposts in your account.

policyDetails_parameters :: Lens' PolicyDetails (Maybe Parameters) Source #

A set of optional parameters for snapshot and AMI lifecycle policies.

This parameter is required for snapshot and AMI policies only. If you are creating an event-based policy, omit this parameter.

policyDetails_schedules :: Lens' PolicyDetails (Maybe (NonEmpty Schedule)) Source #

The schedules of policy-defined actions for snapshot and AMI lifecycle policies. A policy can have up to four schedules—one mandatory schedule and up to three optional schedules.

This parameter is required for snapshot and AMI policies only. If you are creating an event-based policy, omit this parameter.

policyDetails_eventSource :: Lens' PolicyDetails (Maybe EventSource) Source #

The event that triggers the event-based policy.

This parameter is required for event-based policies only. If you are creating a snapshot or AMI policy, omit this parameter.

policyDetails_resourceTypes :: Lens' PolicyDetails (Maybe (NonEmpty ResourceTypeValues)) Source #

The target resource type for snapshot and AMI lifecycle policies. Use VOLUME to create snapshots of individual volumes or use INSTANCE to create multi-volume snapshots from the volumes for an instance.

This parameter is required for snapshot and AMI policies only. If you are creating an event-based policy, omit this parameter.