Package com.pulumi.aws.redshift
Class SnapshotSchedule
- java.lang.Object
-
- com.pulumi.resources.Resource
-
- com.pulumi.resources.CustomResource
-
- com.pulumi.aws.redshift.SnapshotSchedule
-
public class SnapshotSchedule extends com.pulumi.resources.CustomResource
## Example Usage ```java package generated_program; import com.pulumi.Context; import com.pulumi.Pulumi; import com.pulumi.core.Output; import com.pulumi.aws.redshift.SnapshotSchedule; import com.pulumi.aws.redshift.SnapshotScheduleArgs; import java.util.List; import java.util.ArrayList; import java.util.Map; import java.io.File; import java.nio.file.Files; import java.nio.file.Paths; public class App { public static void main(String[] args) { Pulumi.run(App::stack); } public static void stack(Context ctx) { var default_ = new SnapshotSchedule("default", SnapshotScheduleArgs.builder() .definitions("rate(12 hours)") .identifier("tf-redshift-snapshot-schedule") .build()); } } ``` ## Import Redshift Snapshot Schedule can be imported using the `identifier`, e.g., ```sh $ pulumi import aws:redshift/snapshotSchedule:SnapshotSchedule default tf-redshift-snapshot-schedule ```
-
-
Constructor Summary
Constructors Constructor Description SnapshotSchedule(java.lang.String name)
SnapshotSchedule(java.lang.String name, SnapshotScheduleArgs args)
SnapshotSchedule(java.lang.String name, SnapshotScheduleArgs args, com.pulumi.resources.CustomResourceOptions options)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description com.pulumi.core.Output<java.lang.String>
arn()
com.pulumi.core.Output<java.util.List<java.lang.String>>
definitions()
com.pulumi.core.Output<java.util.Optional<java.lang.String>>
description()
com.pulumi.core.Output<java.util.Optional<java.lang.Boolean>>
forceDestroy()
static SnapshotSchedule
get(java.lang.String name, com.pulumi.core.Output<java.lang.String> id, SnapshotScheduleState state, com.pulumi.resources.CustomResourceOptions options)
Get an existing Host resource's state with the given name, ID, and optional extra properties used to qualify the lookup.com.pulumi.core.Output<java.lang.String>
identifier()
com.pulumi.core.Output<java.lang.String>
identifierPrefix()
com.pulumi.core.Output<java.util.Optional<java.util.Map<java.lang.String,java.lang.String>>>
tags()
com.pulumi.core.Output<java.util.Map<java.lang.String,java.lang.String>>
tagsAll()
-
-
-
Constructor Detail
-
SnapshotSchedule
public SnapshotSchedule(java.lang.String name)
- Parameters:
name
- The _unique_ name of the resulting resource.
-
SnapshotSchedule
public SnapshotSchedule(java.lang.String name, SnapshotScheduleArgs args)
- Parameters:
name
- The _unique_ name of the resulting resource.args
- The arguments to use to populate this resource's properties.
-
SnapshotSchedule
public SnapshotSchedule(java.lang.String name, SnapshotScheduleArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options)
- Parameters:
name
- The _unique_ name of the resulting resource.args
- The arguments to use to populate this resource's properties.options
- A bag of options that control this resource's behavior.
-
-
Method Detail
-
arn
public com.pulumi.core.Output<java.lang.String> arn()
- Returns:
- Amazon Resource Name (ARN) of the Redshift Snapshot Schedule.
-
definitions
public com.pulumi.core.Output<java.util.List<java.lang.String>> definitions()
- Returns:
- The definition of the snapshot schedule. The definition is made up of schedule expressions, for example `cron(30 12 *)` or `rate(12 hours)`.
-
description
public com.pulumi.core.Output<java.util.Optional<java.lang.String>> description()
- Returns:
- The description of the snapshot schedule.
-
forceDestroy
public com.pulumi.core.Output<java.util.Optional<java.lang.Boolean>> forceDestroy()
- Returns:
- Whether to destroy all associated clusters with this snapshot schedule on deletion. Must be enabled and applied before attempting deletion.
-
identifier
public com.pulumi.core.Output<java.lang.String> identifier()
- Returns:
- The snapshot schedule identifier. If omitted, this provider will assign a random, unique identifier.
-
identifierPrefix
public com.pulumi.core.Output<java.lang.String> identifierPrefix()
- Returns:
- Creates a unique identifier beginning with the specified prefix. Conflicts with `identifier`.
-
tags
public com.pulumi.core.Output<java.util.Optional<java.util.Map<java.lang.String,java.lang.String>>> tags()
- Returns:
- A map of tags to assign to the resource. .If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
-
tagsAll
public com.pulumi.core.Output<java.util.Map<java.lang.String,java.lang.String>> tagsAll()
- Returns:
- A map of tags assigned to the resource, including those inherited from the provider `default_tags` configuration block.
-
get
public static SnapshotSchedule get(java.lang.String name, com.pulumi.core.Output<java.lang.String> id, @Nullable SnapshotScheduleState state, @Nullable com.pulumi.resources.CustomResourceOptions options)
Get an existing Host resource's state with the given name, ID, and optional extra properties used to qualify the lookup.- Parameters:
name
- The _unique_ name of the resulting resource.id
- The _unique_ provider ID of the resource to lookup.state
-options
- Optional settings to control the behavior of the CustomResource.
-
-