All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.amazonaws.services.dlm.model.CreateRule Maven / Gradle / Ivy

/*
 * Copyright 2019-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved.
 * 
 * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
 * the License. A copy of the License is located at
 * 
 * http://aws.amazon.com/apache2.0
 * 
 * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
 * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
 * and limitations under the License.
 */
package com.amazonaws.services.dlm.model;

import java.io.Serializable;
import javax.annotation.Generated;
import com.amazonaws.protocol.StructuredPojo;
import com.amazonaws.protocol.ProtocolMarshaller;

/**
 * 

* [Custom snapshot and AMI policies only] Specifies when the policy should create snapshots or AMIs. *

* *
    *
  • *

    * You must specify either CronExpression, or Interval, IntervalUnit, and Times. *

    *
  • *
  • *

    * If you need to specify an ArchiveRule for the schedule, * then you must specify a creation frequency of at least 28 days. *

    *
  • *
*
* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class CreateRule implements Serializable, Cloneable, StructuredPojo { /** *

* [Custom snapshot policies only] Specifies the destination for snapshots created by the policy. To create * snapshots in the same Region as the source resource, specify CLOUD. To create snapshots on the same * Outpost as the source resource, specify OUTPOST_LOCAL. If you omit this parameter, * CLOUD is used by default. *

*

* If the policy targets resources in an Amazon Web Services Region, then you must create snapshots in the same * Region as the source resource. If the policy targets resources on an Outpost, then you can create snapshots on * the same Outpost as the source resource, or in the Region of that Outpost. *

*/ private String location; /** *

* The interval between snapshots. The supported values are 1, 2, 3, 4, 6, 8, 12, and 24. *

*/ private Integer interval; /** *

* The interval unit. *

*/ private String intervalUnit; /** *

* The time, in UTC, to start the operation. The supported format is hh:mm. *

*

* The operation occurs within a one-hour window following the specified time. If you do not specify a time, Amazon * Data Lifecycle Manager selects a time within the next 24 hours. *

*/ private java.util.List times; /** *

* The schedule, as a Cron expression. The schedule interval must be between 1 hour and 1 year. For more * information, see Cron * expressions in the Amazon CloudWatch User Guide. *

*/ private String cronExpression; /** *

* [Custom snapshot policies that target instances only] Specifies pre and/or post scripts for a snapshot * lifecycle policy that targets instances. This is useful for creating application-consistent snapshots, or for * performing specific administrative tasks before or after Amazon Data Lifecycle Manager initiates snapshot * creation. *

*

* For more information, see Automating * application-consistent snapshots with pre and post scripts. *

*/ private java.util.List