public static interface CreateRule.Builder extends SdkPojo, CopyableBuilder<CreateRule.Builder,CreateRule>
| Modifier and Type | Method and Description |
|---|---|
CreateRule.Builder |
cronExpression(String cronExpression)
The schedule, as a Cron expression.
|
CreateRule.Builder |
interval(Integer interval)
The interval between snapshots.
|
CreateRule.Builder |
intervalUnit(IntervalUnitValues intervalUnit)
The interval unit.
|
CreateRule.Builder |
intervalUnit(String intervalUnit)
The interval unit.
|
CreateRule.Builder |
location(LocationValues location)
[Snapshot policies only] Specifies the destination for snapshots created by the policy.
|
CreateRule.Builder |
location(String location)
[Snapshot policies only] Specifies the destination for snapshots created by the policy.
|
CreateRule.Builder |
times(Collection<String> times)
The time, in UTC, to start the operation.
|
CreateRule.Builder |
times(String... times)
The time, in UTC, to start the operation.
|
equalsBySdkFields, sdkFieldscopyapplyMutation, buildCreateRule.Builder location(String location)
[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.
location - [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.
LocationValues,
LocationValuesCreateRule.Builder location(LocationValues location)
[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.
location - [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.
LocationValues,
LocationValuesCreateRule.Builder interval(Integer interval)
The interval between snapshots. The supported values are 1, 2, 3, 4, 6, 8, 12, and 24.
interval - The interval between snapshots. The supported values are 1, 2, 3, 4, 6, 8, 12, and 24.CreateRule.Builder intervalUnit(String intervalUnit)
The interval unit.
intervalUnit - The interval unit.IntervalUnitValues,
IntervalUnitValuesCreateRule.Builder intervalUnit(IntervalUnitValues intervalUnit)
The interval unit.
intervalUnit - The interval unit.IntervalUnitValues,
IntervalUnitValuesCreateRule.Builder times(Collection<String> times)
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.
times - 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.
CreateRule.Builder times(String... times)
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.
times - 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.
CreateRule.Builder cronExpression(String cronExpression)
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.
cronExpression - 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.Copyright © 2023. All rights reserved.