LifecyclePolicyPolicyDetailsScheduleCreateRule class

Constructors

LifecyclePolicyPolicyDetailsScheduleCreateRule({Input<String?>? cronExpression, Input<int?>? interval, Input<String?>? intervalUnit, Input<String?>? location, Input<LifecyclePolicyPolicyDetailsScheduleCreateRuleScripts?>? scripts, Input<String?>? times})
Creates a new LifecyclePolicyPolicyDetailsScheduleCreateRule. cronExpression The schedule, as a Cron expression. The schedule interval must be between 1 hour and 1 year. Conflicts with interval, intervalUnit, and times. For details on valid Cron expressions, see here. interval Optional. intervalUnit Optional. location 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 AWS 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. Valid values are CLOUD and OUTPOST_LOCAL. scripts Specifies pre and/or post scripts for a snapshot lifecycle policy that targets instances. Valid only when resourceType is INSTANCE. See the scripts configuration block. times A list of times in 24 hour clock format that sets when the lifecycle policy should be evaluated. Max of 1. Conflicts with cronExpression. Must be set if interval is set.
const
LifecyclePolicyPolicyDetailsScheduleCreateRule.fromMap(Map<String, dynamic> map)
factory

Properties

cronExpression → Input<String?>?
The schedule, as a Cron expression. The schedule interval must be between 1 hour and 1 year. Conflicts with interval, intervalUnit, and times. For details on valid Cron expressions, see here.
final
hashCode → int
The hash code for this object.
no setterinherited
interval → Input<int?>?
final
intervalUnit → Input<String?>?
final
location → Input<String?>?
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 AWS 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. Valid values are CLOUD and OUTPOST_LOCAL.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
scripts → Input<LifecyclePolicyPolicyDetailsScheduleCreateRuleScripts?>?
Specifies pre and/or post scripts for a snapshot lifecycle policy that targets instances. Valid only when resourceType is INSTANCE. See the scripts configuration block.
final
times → Input<String?>?
A list of times in 24 hour clock format that sets when the lifecycle policy should be evaluated. Max of 1. Conflicts with cronExpression. Must be set if interval is set.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() → Map<String, dynamic>
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited