Class SnapshotScheduleAssociation
Example Usage
using Pulumi;
using Aws = Pulumi.Aws;
class MyStack : Stack
{
public MyStack()
{
var defaultCluster = new Aws.RedShift.Cluster("defaultCluster", new Aws.RedShift.ClusterArgs
{
ClusterIdentifier = "tf-redshift-cluster",
ClusterType = "single-node",
DatabaseName = "mydb",
MasterPassword = "Mustbe8characters",
MasterUsername = "foo",
NodeType = "dc1.large",
});
var defaultSnapshotSchedule = new Aws.RedShift.SnapshotSchedule("defaultSnapshotSchedule", new Aws.RedShift.SnapshotScheduleArgs
{
Definitions =
{
"rate(12 hours)",
},
Identifier = "tf-redshift-snapshot-schedule",
});
var defaultSnapshotScheduleAssociation = new Aws.RedShift.SnapshotScheduleAssociation("defaultSnapshotScheduleAssociation", new Aws.RedShift.SnapshotScheduleAssociationArgs
{
ClusterIdentifier = defaultCluster.Id,
ScheduleIdentifier = defaultSnapshotSchedule.Id,
});
}
}
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Pulumi.Aws.RedShift
Assembly: Pulumi.Aws.dll
Syntax
public class SnapshotScheduleAssociation : CustomResource
Constructors
View SourceSnapshotScheduleAssociation(String, SnapshotScheduleAssociationArgs, CustomResourceOptions)
Create a SnapshotScheduleAssociation resource with the given unique name, arguments, and options.
Declaration
public SnapshotScheduleAssociation(string name, SnapshotScheduleAssociationArgs args, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resource |
| SnapshotScheduleAssociationArgs | args | The arguments used to populate this resource's properties |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Properties
View SourceClusterIdentifier
The cluster identifier.
Declaration
public Output<string> ClusterIdentifier { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
ScheduleIdentifier
The snapshot schedule identifier.
Declaration
public Output<string> ScheduleIdentifier { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Methods
View SourceGet(String, Input<String>, SnapshotScheduleAssociationState, CustomResourceOptions)
Get an existing SnapshotScheduleAssociation resource's state with the given name, ID, and optional extra properties used to qualify the lookup.
Declaration
public static SnapshotScheduleAssociation Get(string name, Input<string> id, SnapshotScheduleAssociationState state = null, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resulting resource. |
| Input<System.String> | id | The unique provider ID of the resource to lookup. |
| SnapshotScheduleAssociationState | state | Any extra arguments used during the lookup. |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Returns
| Type | Description |
|---|---|
| SnapshotScheduleAssociation |