aws logo
AWS Classic v5.28.0, Jan 23 23

aws.redshift.ScheduledAction

Import

Redshift Scheduled Action can be imported using the name, e.g.,

 $ pulumi import aws:redshift/scheduledAction:ScheduledAction example tf-redshift-scheduled-action

Example Usage

Pause Cluster Action

using System.Collections.Generic;
using Pulumi;
using Aws = Pulumi.Aws;

return await Deployment.RunAsync(() => 
{
    var exampleRole = new Aws.Iam.Role("exampleRole", new()
    {
        AssumeRolePolicy = @"{
  ""Version"": ""2012-10-17"",
  ""Statement"": [
    {
      ""Action"": ""sts:AssumeRole"",
      ""Principal"": {
        ""Service"": [
          ""scheduler.redshift.amazonaws.com""
        ]
      },
      ""Effect"": ""Allow"",
      ""Sid"": """"
    }
  ]
}
",
    });

    var examplePolicy = new Aws.Iam.Policy("examplePolicy", new()
    {
        PolicyDocument = @"{
  ""Version"": ""2012-10-17"",
  ""Statement"": [
      {
          ""Sid"": ""VisualEditor0"",
          ""Effect"": ""Allow"",
          ""Action"": [
              ""redshift:PauseCluster"",
              ""redshift:ResumeCluster"",
              ""redshift:ResizeCluster""
          ],
          ""Resource"": ""*""
      }
  ]
}
",
    });

    var exampleRolePolicyAttachment = new Aws.Iam.RolePolicyAttachment("exampleRolePolicyAttachment", new()
    {
        PolicyArn = examplePolicy.Arn,
        Role = exampleRole.Name,
    });

    var exampleScheduledAction = new Aws.RedShift.ScheduledAction("exampleScheduledAction", new()
    {
        Schedule = "cron(00 23 * * ? *)",
        IamRole = exampleRole.Arn,
        TargetAction = new Aws.RedShift.Inputs.ScheduledActionTargetActionArgs
        {
            PauseCluster = new Aws.RedShift.Inputs.ScheduledActionTargetActionPauseClusterArgs
            {
                ClusterIdentifier = "tf-redshift001",
            },
        },
    });

});
package main

import (
	"fmt"

	"github.com/pulumi/pulumi-aws/sdk/v5/go/aws/iam"
	"github.com/pulumi/pulumi-aws/sdk/v5/go/aws/redshift"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		exampleRole, err := iam.NewRole(ctx, "exampleRole", &iam.RoleArgs{
			AssumeRolePolicy: pulumi.Any(fmt.Sprintf(`{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Action": "sts:AssumeRole",
      "Principal": {
        "Service": [
          "scheduler.redshift.amazonaws.com"
        ]
      },
      "Effect": "Allow",
      "Sid": ""
    }
  ]
}
`)),
		})
		if err != nil {
			return err
		}
		examplePolicy, err := iam.NewPolicy(ctx, "examplePolicy", &iam.PolicyArgs{
			Policy: pulumi.Any(fmt.Sprintf(`{
  "Version": "2012-10-17",
  "Statement": [
      {
          "Sid": "VisualEditor0",
          "Effect": "Allow",
          "Action": [
              "redshift:PauseCluster",
              "redshift:ResumeCluster",
              "redshift:ResizeCluster"
          ],
          "Resource": "*"
      }
  ]
}
`)),
		})
		if err != nil {
			return err
		}
		_, err = iam.NewRolePolicyAttachment(ctx, "exampleRolePolicyAttachment", &iam.RolePolicyAttachmentArgs{
			PolicyArn: examplePolicy.Arn,
			Role:      exampleRole.Name,
		})
		if err != nil {
			return err
		}
		_, err = redshift.NewScheduledAction(ctx, "exampleScheduledAction", &redshift.ScheduledActionArgs{
			Schedule: pulumi.String("cron(00 23 * * ? *)"),
			IamRole:  exampleRole.Arn,
			TargetAction: &redshift.ScheduledActionTargetActionArgs{
				PauseCluster: &redshift.ScheduledActionTargetActionPauseClusterArgs{
					ClusterIdentifier: pulumi.String("tf-redshift001"),
				},
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.iam.Role;
import com.pulumi.aws.iam.RoleArgs;
import com.pulumi.aws.iam.Policy;
import com.pulumi.aws.iam.PolicyArgs;
import com.pulumi.aws.iam.RolePolicyAttachment;
import com.pulumi.aws.iam.RolePolicyAttachmentArgs;
import com.pulumi.aws.redshift.ScheduledAction;
import com.pulumi.aws.redshift.ScheduledActionArgs;
import com.pulumi.aws.redshift.inputs.ScheduledActionTargetActionArgs;
import com.pulumi.aws.redshift.inputs.ScheduledActionTargetActionPauseClusterArgs;
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 exampleRole = new Role("exampleRole", RoleArgs.builder()        
            .assumeRolePolicy("""
{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Action": "sts:AssumeRole",
      "Principal": {
        "Service": [
          "scheduler.redshift.amazonaws.com"
        ]
      },
      "Effect": "Allow",
      "Sid": ""
    }
  ]
}
            """)
            .build());

        var examplePolicy = new Policy("examplePolicy", PolicyArgs.builder()        
            .policy("""
{
  "Version": "2012-10-17",
  "Statement": [
      {
          "Sid": "VisualEditor0",
          "Effect": "Allow",
          "Action": [
              "redshift:PauseCluster",
              "redshift:ResumeCluster",
              "redshift:ResizeCluster"
          ],
          "Resource": "*"
      }
  ]
}
            """)
            .build());

        var exampleRolePolicyAttachment = new RolePolicyAttachment("exampleRolePolicyAttachment", RolePolicyAttachmentArgs.builder()        
            .policyArn(examplePolicy.arn())
            .role(exampleRole.name())
            .build());

        var exampleScheduledAction = new ScheduledAction("exampleScheduledAction", ScheduledActionArgs.builder()        
            .schedule("cron(00 23 * * ? *)")
            .iamRole(exampleRole.arn())
            .targetAction(ScheduledActionTargetActionArgs.builder()
                .pauseCluster(ScheduledActionTargetActionPauseClusterArgs.builder()
                    .clusterIdentifier("tf-redshift001")
                    .build())
                .build())
            .build());

    }
}
import pulumi
import pulumi_aws as aws

example_role = aws.iam.Role("exampleRole", assume_role_policy="""{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Action": "sts:AssumeRole",
      "Principal": {
        "Service": [
          "scheduler.redshift.amazonaws.com"
        ]
      },
      "Effect": "Allow",
      "Sid": ""
    }
  ]
}
""")
example_policy = aws.iam.Policy("examplePolicy", policy="""{
  "Version": "2012-10-17",
  "Statement": [
      {
          "Sid": "VisualEditor0",
          "Effect": "Allow",
          "Action": [
              "redshift:PauseCluster",
              "redshift:ResumeCluster",
              "redshift:ResizeCluster"
          ],
          "Resource": "*"
      }
  ]
}
""")
example_role_policy_attachment = aws.iam.RolePolicyAttachment("exampleRolePolicyAttachment",
    policy_arn=example_policy.arn,
    role=example_role.name)
example_scheduled_action = aws.redshift.ScheduledAction("exampleScheduledAction",
    schedule="cron(00 23 * * ? *)",
    iam_role=example_role.arn,
    target_action=aws.redshift.ScheduledActionTargetActionArgs(
        pause_cluster=aws.redshift.ScheduledActionTargetActionPauseClusterArgs(
            cluster_identifier="tf-redshift001",
        ),
    ))
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";

const exampleRole = new aws.iam.Role("exampleRole", {assumeRolePolicy: `{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Action": "sts:AssumeRole",
      "Principal": {
        "Service": [
          "scheduler.redshift.amazonaws.com"
        ]
      },
      "Effect": "Allow",
      "Sid": ""
    }
  ]
}
`});
const examplePolicy = new aws.iam.Policy("examplePolicy", {policy: `{
  "Version": "2012-10-17",
  "Statement": [
      {
          "Sid": "VisualEditor0",
          "Effect": "Allow",
          "Action": [
              "redshift:PauseCluster",
              "redshift:ResumeCluster",
              "redshift:ResizeCluster"
          ],
          "Resource": "*"
      }
  ]
}
`});
const exampleRolePolicyAttachment = new aws.iam.RolePolicyAttachment("exampleRolePolicyAttachment", {
    policyArn: examplePolicy.arn,
    role: exampleRole.name,
});
const exampleScheduledAction = new aws.redshift.ScheduledAction("exampleScheduledAction", {
    schedule: "cron(00 23 * * ? *)",
    iamRole: exampleRole.arn,
    targetAction: {
        pauseCluster: {
            clusterIdentifier: "tf-redshift001",
        },
    },
});
resources:
  exampleRole:
    type: aws:iam:Role
    properties:
      assumeRolePolicy: |
        {
          "Version": "2012-10-17",
          "Statement": [
            {
              "Action": "sts:AssumeRole",
              "Principal": {
                "Service": [
                  "scheduler.redshift.amazonaws.com"
                ]
              },
              "Effect": "Allow",
              "Sid": ""
            }
          ]
        }        
  examplePolicy:
    type: aws:iam:Policy
    properties:
      policy: |
        {
          "Version": "2012-10-17",
          "Statement": [
              {
                  "Sid": "VisualEditor0",
                  "Effect": "Allow",
                  "Action": [
                      "redshift:PauseCluster",
                      "redshift:ResumeCluster",
                      "redshift:ResizeCluster"
                  ],
                  "Resource": "*"
              }
          ]
        }        
  exampleRolePolicyAttachment:
    type: aws:iam:RolePolicyAttachment
    properties:
      policyArn: ${examplePolicy.arn}
      role: ${exampleRole.name}
  exampleScheduledAction:
    type: aws:redshift:ScheduledAction
    properties:
      schedule: cron(00 23 * * ? *)
      iamRole: ${exampleRole.arn}
      targetAction:
        pauseCluster:
          clusterIdentifier: tf-redshift001

Resize Cluster Action

using System.Collections.Generic;
using Pulumi;
using Aws = Pulumi.Aws;

return await Deployment.RunAsync(() => 
{
    var example = new Aws.RedShift.ScheduledAction("example", new()
    {
        Schedule = "cron(00 23 * * ? *)",
        IamRole = aws_iam_role.Example.Arn,
        TargetAction = new Aws.RedShift.Inputs.ScheduledActionTargetActionArgs
        {
            ResizeCluster = new Aws.RedShift.Inputs.ScheduledActionTargetActionResizeClusterArgs
            {
                ClusterIdentifier = "tf-redshift001",
                ClusterType = "multi-node",
                NodeType = "dc1.large",
                NumberOfNodes = 2,
            },
        },
    });

});
package main

import (
	"github.com/pulumi/pulumi-aws/sdk/v5/go/aws/redshift"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := redshift.NewScheduledAction(ctx, "example", &redshift.ScheduledActionArgs{
			Schedule: pulumi.String("cron(00 23 * * ? *)"),
			IamRole:  pulumi.Any(aws_iam_role.Example.Arn),
			TargetAction: &redshift.ScheduledActionTargetActionArgs{
				ResizeCluster: &redshift.ScheduledActionTargetActionResizeClusterArgs{
					ClusterIdentifier: pulumi.String("tf-redshift001"),
					ClusterType:       pulumi.String("multi-node"),
					NodeType:          pulumi.String("dc1.large"),
					NumberOfNodes:     pulumi.Int(2),
				},
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.redshift.ScheduledAction;
import com.pulumi.aws.redshift.ScheduledActionArgs;
import com.pulumi.aws.redshift.inputs.ScheduledActionTargetActionArgs;
import com.pulumi.aws.redshift.inputs.ScheduledActionTargetActionResizeClusterArgs;
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 example = new ScheduledAction("example", ScheduledActionArgs.builder()        
            .schedule("cron(00 23 * * ? *)")
            .iamRole(aws_iam_role.example().arn())
            .targetAction(ScheduledActionTargetActionArgs.builder()
                .resizeCluster(ScheduledActionTargetActionResizeClusterArgs.builder()
                    .clusterIdentifier("tf-redshift001")
                    .clusterType("multi-node")
                    .nodeType("dc1.large")
                    .numberOfNodes(2)
                    .build())
                .build())
            .build());

    }
}
import pulumi
import pulumi_aws as aws

example = aws.redshift.ScheduledAction("example",
    schedule="cron(00 23 * * ? *)",
    iam_role=aws_iam_role["example"]["arn"],
    target_action=aws.redshift.ScheduledActionTargetActionArgs(
        resize_cluster=aws.redshift.ScheduledActionTargetActionResizeClusterArgs(
            cluster_identifier="tf-redshift001",
            cluster_type="multi-node",
            node_type="dc1.large",
            number_of_nodes=2,
        ),
    ))
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";

const example = new aws.redshift.ScheduledAction("example", {
    schedule: "cron(00 23 * * ? *)",
    iamRole: aws_iam_role.example.arn,
    targetAction: {
        resizeCluster: {
            clusterIdentifier: "tf-redshift001",
            clusterType: "multi-node",
            nodeType: "dc1.large",
            numberOfNodes: 2,
        },
    },
});
resources:
  example:
    type: aws:redshift:ScheduledAction
    properties:
      schedule: cron(00 23 * * ? *)
      iamRole: ${aws_iam_role.example.arn}
      targetAction:
        resizeCluster:
          clusterIdentifier: tf-redshift001
          clusterType: multi-node
          nodeType: dc1.large
          numberOfNodes: 2

Create ScheduledAction Resource

new ScheduledAction(name: string, args: ScheduledActionArgs, opts?: CustomResourceOptions);
@overload
def ScheduledAction(resource_name: str,
                    opts: Optional[ResourceOptions] = None,
                    description: Optional[str] = None,
                    enable: Optional[bool] = None,
                    end_time: Optional[str] = None,
                    iam_role: Optional[str] = None,
                    name: Optional[str] = None,
                    schedule: Optional[str] = None,
                    start_time: Optional[str] = None,
                    target_action: Optional[ScheduledActionTargetActionArgs] = None)
@overload
def ScheduledAction(resource_name: str,
                    args: ScheduledActionArgs,
                    opts: Optional[ResourceOptions] = None)
func NewScheduledAction(ctx *Context, name string, args ScheduledActionArgs, opts ...ResourceOption) (*ScheduledAction, error)
public ScheduledAction(string name, ScheduledActionArgs args, CustomResourceOptions? opts = null)
public ScheduledAction(String name, ScheduledActionArgs args)
public ScheduledAction(String name, ScheduledActionArgs args, CustomResourceOptions options)
type: aws:redshift:ScheduledAction
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

name string
The unique name of the resource.
args ScheduledActionArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name str
The unique name of the resource.
args ScheduledActionArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name string
The unique name of the resource.
args ScheduledActionArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args ScheduledActionArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name String
The unique name of the resource.
args ScheduledActionArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

ScheduledAction Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

The ScheduledAction resource accepts the following input properties:

IamRole string

The IAM role to assume to run the scheduled action.

Schedule string

The schedule of action. The schedule is defined format of "at expression" or "cron expression", for example at(2016-03-04T17:27:00) or cron(0 10 ? * MON *). See Scheduled Action for more information.

TargetAction Pulumi.Aws.RedShift.Inputs.ScheduledActionTargetActionArgs

Target action. Documented below.

Description string

The description of the scheduled action.

Enable bool

Whether to enable the scheduled action. Default is true .

EndTime string

The end time in UTC when the schedule is active, in UTC RFC3339 format(for example, YYYY-MM-DDTHH:MM:SSZ).

Name string

The scheduled action name.

StartTime string

The start time in UTC when the schedule is active, in UTC RFC3339 format(for example, YYYY-MM-DDTHH:MM:SSZ).

IamRole string

The IAM role to assume to run the scheduled action.

Schedule string

The schedule of action. The schedule is defined format of "at expression" or "cron expression", for example at(2016-03-04T17:27:00) or cron(0 10 ? * MON *). See Scheduled Action for more information.

TargetAction ScheduledActionTargetActionArgs

Target action. Documented below.

Description string

The description of the scheduled action.

Enable bool

Whether to enable the scheduled action. Default is true .

EndTime string

The end time in UTC when the schedule is active, in UTC RFC3339 format(for example, YYYY-MM-DDTHH:MM:SSZ).

Name string

The scheduled action name.

StartTime string

The start time in UTC when the schedule is active, in UTC RFC3339 format(for example, YYYY-MM-DDTHH:MM:SSZ).

iamRole String

The IAM role to assume to run the scheduled action.

schedule String

The schedule of action. The schedule is defined format of "at expression" or "cron expression", for example at(2016-03-04T17:27:00) or cron(0 10 ? * MON *). See Scheduled Action for more information.

targetAction ScheduledActionTargetActionArgs

Target action. Documented below.

description String

The description of the scheduled action.

enable Boolean

Whether to enable the scheduled action. Default is true .

endTime String

The end time in UTC when the schedule is active, in UTC RFC3339 format(for example, YYYY-MM-DDTHH:MM:SSZ).

name String

The scheduled action name.

startTime String

The start time in UTC when the schedule is active, in UTC RFC3339 format(for example, YYYY-MM-DDTHH:MM:SSZ).

iamRole string

The IAM role to assume to run the scheduled action.

schedule string

The schedule of action. The schedule is defined format of "at expression" or "cron expression", for example at(2016-03-04T17:27:00) or cron(0 10 ? * MON *). See Scheduled Action for more information.

targetAction ScheduledActionTargetActionArgs

Target action. Documented below.

description string

The description of the scheduled action.

enable boolean

Whether to enable the scheduled action. Default is true .

endTime string

The end time in UTC when the schedule is active, in UTC RFC3339 format(for example, YYYY-MM-DDTHH:MM:SSZ).

name string

The scheduled action name.

startTime string

The start time in UTC when the schedule is active, in UTC RFC3339 format(for example, YYYY-MM-DDTHH:MM:SSZ).

iam_role str

The IAM role to assume to run the scheduled action.

schedule str

The schedule of action. The schedule is defined format of "at expression" or "cron expression", for example at(2016-03-04T17:27:00) or cron(0 10 ? * MON *). See Scheduled Action for more information.

target_action ScheduledActionTargetActionArgs

Target action. Documented below.

description str

The description of the scheduled action.

enable bool

Whether to enable the scheduled action. Default is true .

end_time str

The end time in UTC when the schedule is active, in UTC RFC3339 format(for example, YYYY-MM-DDTHH:MM:SSZ).

name str

The scheduled action name.

start_time str

The start time in UTC when the schedule is active, in UTC RFC3339 format(for example, YYYY-MM-DDTHH:MM:SSZ).

iamRole String

The IAM role to assume to run the scheduled action.

schedule String

The schedule of action. The schedule is defined format of "at expression" or "cron expression", for example at(2016-03-04T17:27:00) or cron(0 10 ? * MON *). See Scheduled Action for more information.

targetAction Property Map

Target action. Documented below.

description String

The description of the scheduled action.

enable Boolean

Whether to enable the scheduled action. Default is true .

endTime String

The end time in UTC when the schedule is active, in UTC RFC3339 format(for example, YYYY-MM-DDTHH:MM:SSZ).

name String

The scheduled action name.

startTime String

The start time in UTC when the schedule is active, in UTC RFC3339 format(for example, YYYY-MM-DDTHH:MM:SSZ).

Outputs

All input properties are implicitly available as output properties. Additionally, the ScheduledAction resource produces the following output properties:

Id string

The provider-assigned unique ID for this managed resource.

Id string

The provider-assigned unique ID for this managed resource.

id String

The provider-assigned unique ID for this managed resource.

id string

The provider-assigned unique ID for this managed resource.

id str

The provider-assigned unique ID for this managed resource.

id String

The provider-assigned unique ID for this managed resource.

Look up Existing ScheduledAction Resource

Get an existing ScheduledAction resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

public static get(name: string, id: Input<ID>, state?: ScheduledActionState, opts?: CustomResourceOptions): ScheduledAction
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        description: Optional[str] = None,
        enable: Optional[bool] = None,
        end_time: Optional[str] = None,
        iam_role: Optional[str] = None,
        name: Optional[str] = None,
        schedule: Optional[str] = None,
        start_time: Optional[str] = None,
        target_action: Optional[ScheduledActionTargetActionArgs] = None) -> ScheduledAction
func GetScheduledAction(ctx *Context, name string, id IDInput, state *ScheduledActionState, opts ...ResourceOption) (*ScheduledAction, error)
public static ScheduledAction Get(string name, Input<string> id, ScheduledActionState? state, CustomResourceOptions? opts = null)
public static ScheduledAction get(String name, Output<String> id, ScheduledActionState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
The following state arguments are supported:
Description string

The description of the scheduled action.

Enable bool

Whether to enable the scheduled action. Default is true .

EndTime string

The end time in UTC when the schedule is active, in UTC RFC3339 format(for example, YYYY-MM-DDTHH:MM:SSZ).

IamRole string

The IAM role to assume to run the scheduled action.

Name string

The scheduled action name.

Schedule string

The schedule of action. The schedule is defined format of "at expression" or "cron expression", for example at(2016-03-04T17:27:00) or cron(0 10 ? * MON *). See Scheduled Action for more information.

StartTime string

The start time in UTC when the schedule is active, in UTC RFC3339 format(for example, YYYY-MM-DDTHH:MM:SSZ).

TargetAction Pulumi.Aws.RedShift.Inputs.ScheduledActionTargetActionArgs

Target action. Documented below.

Description string

The description of the scheduled action.

Enable bool

Whether to enable the scheduled action. Default is true .

EndTime string

The end time in UTC when the schedule is active, in UTC RFC3339 format(for example, YYYY-MM-DDTHH:MM:SSZ).

IamRole string

The IAM role to assume to run the scheduled action.

Name string

The scheduled action name.

Schedule string

The schedule of action. The schedule is defined format of "at expression" or "cron expression", for example at(2016-03-04T17:27:00) or cron(0 10 ? * MON *). See Scheduled Action for more information.

StartTime string

The start time in UTC when the schedule is active, in UTC RFC3339 format(for example, YYYY-MM-DDTHH:MM:SSZ).

TargetAction ScheduledActionTargetActionArgs

Target action. Documented below.

description String

The description of the scheduled action.

enable Boolean

Whether to enable the scheduled action. Default is true .

endTime String

The end time in UTC when the schedule is active, in UTC RFC3339 format(for example, YYYY-MM-DDTHH:MM:SSZ).

iamRole String

The IAM role to assume to run the scheduled action.

name String

The scheduled action name.

schedule String

The schedule of action. The schedule is defined format of "at expression" or "cron expression", for example at(2016-03-04T17:27:00) or cron(0 10 ? * MON *). See Scheduled Action for more information.

startTime String

The start time in UTC when the schedule is active, in UTC RFC3339 format(for example, YYYY-MM-DDTHH:MM:SSZ).

targetAction ScheduledActionTargetActionArgs

Target action. Documented below.

description string

The description of the scheduled action.

enable boolean

Whether to enable the scheduled action. Default is true .

endTime string

The end time in UTC when the schedule is active, in UTC RFC3339 format(for example, YYYY-MM-DDTHH:MM:SSZ).

iamRole string

The IAM role to assume to run the scheduled action.

name string

The scheduled action name.

schedule string

The schedule of action. The schedule is defined format of "at expression" or "cron expression", for example at(2016-03-04T17:27:00) or cron(0 10 ? * MON *). See Scheduled Action for more information.

startTime string

The start time in UTC when the schedule is active, in UTC RFC3339 format(for example, YYYY-MM-DDTHH:MM:SSZ).

targetAction ScheduledActionTargetActionArgs

Target action. Documented below.

description str

The description of the scheduled action.

enable bool

Whether to enable the scheduled action. Default is true .

end_time str

The end time in UTC when the schedule is active, in UTC RFC3339 format(for example, YYYY-MM-DDTHH:MM:SSZ).

iam_role str

The IAM role to assume to run the scheduled action.

name str

The scheduled action name.

schedule str

The schedule of action. The schedule is defined format of "at expression" or "cron expression", for example at(2016-03-04T17:27:00) or cron(0 10 ? * MON *). See Scheduled Action for more information.

start_time str

The start time in UTC when the schedule is active, in UTC RFC3339 format(for example, YYYY-MM-DDTHH:MM:SSZ).

target_action ScheduledActionTargetActionArgs

Target action. Documented below.

description String

The description of the scheduled action.

enable Boolean

Whether to enable the scheduled action. Default is true .

endTime String

The end time in UTC when the schedule is active, in UTC RFC3339 format(for example, YYYY-MM-DDTHH:MM:SSZ).

iamRole String

The IAM role to assume to run the scheduled action.

name String

The scheduled action name.

schedule String

The schedule of action. The schedule is defined format of "at expression" or "cron expression", for example at(2016-03-04T17:27:00) or cron(0 10 ? * MON *). See Scheduled Action for more information.

startTime String

The start time in UTC when the schedule is active, in UTC RFC3339 format(for example, YYYY-MM-DDTHH:MM:SSZ).

targetAction Property Map

Target action. Documented below.

Supporting Types

ScheduledActionTargetAction

PauseCluster Pulumi.Aws.RedShift.Inputs.ScheduledActionTargetActionPauseCluster

An action that runs a PauseCluster API operation. Documented below.

ResizeCluster Pulumi.Aws.RedShift.Inputs.ScheduledActionTargetActionResizeCluster

An action that runs a ResizeCluster API operation. Documented below.

ResumeCluster Pulumi.Aws.RedShift.Inputs.ScheduledActionTargetActionResumeCluster

An action that runs a ResumeCluster API operation. Documented below.

PauseCluster ScheduledActionTargetActionPauseCluster

An action that runs a PauseCluster API operation. Documented below.

ResizeCluster ScheduledActionTargetActionResizeCluster

An action that runs a ResizeCluster API operation. Documented below.

ResumeCluster ScheduledActionTargetActionResumeCluster

An action that runs a ResumeCluster API operation. Documented below.

pauseCluster ScheduledActionTargetActionPauseCluster

An action that runs a PauseCluster API operation. Documented below.

resizeCluster ScheduledActionTargetActionResizeCluster

An action that runs a ResizeCluster API operation. Documented below.

resumeCluster ScheduledActionTargetActionResumeCluster

An action that runs a ResumeCluster API operation. Documented below.

pauseCluster ScheduledActionTargetActionPauseCluster

An action that runs a PauseCluster API operation. Documented below.

resizeCluster ScheduledActionTargetActionResizeCluster

An action that runs a ResizeCluster API operation. Documented below.

resumeCluster ScheduledActionTargetActionResumeCluster

An action that runs a ResumeCluster API operation. Documented below.

pause_cluster ScheduledActionTargetActionPauseCluster

An action that runs a PauseCluster API operation. Documented below.

resize_cluster ScheduledActionTargetActionResizeCluster

An action that runs a ResizeCluster API operation. Documented below.

resume_cluster ScheduledActionTargetActionResumeCluster

An action that runs a ResumeCluster API operation. Documented below.

pauseCluster Property Map

An action that runs a PauseCluster API operation. Documented below.

resizeCluster Property Map

An action that runs a ResizeCluster API operation. Documented below.

resumeCluster Property Map

An action that runs a ResumeCluster API operation. Documented below.

ScheduledActionTargetActionPauseCluster

ClusterIdentifier string

The identifier of the cluster to be paused.

ClusterIdentifier string

The identifier of the cluster to be paused.

clusterIdentifier String

The identifier of the cluster to be paused.

clusterIdentifier string

The identifier of the cluster to be paused.

cluster_identifier str

The identifier of the cluster to be paused.

clusterIdentifier String

The identifier of the cluster to be paused.

ScheduledActionTargetActionResizeCluster

ClusterIdentifier string

The unique identifier for the cluster to resize.

Classic bool

A boolean value indicating whether the resize operation is using the classic resize process. Default: false.

ClusterType string

The new cluster type for the specified cluster.

NodeType string

The new node type for the nodes you are adding.

NumberOfNodes int

The new number of nodes for the cluster.

ClusterIdentifier string

The unique identifier for the cluster to resize.

Classic bool

A boolean value indicating whether the resize operation is using the classic resize process. Default: false.

ClusterType string

The new cluster type for the specified cluster.

NodeType string

The new node type for the nodes you are adding.

NumberOfNodes int

The new number of nodes for the cluster.

clusterIdentifier String

The unique identifier for the cluster to resize.

classic Boolean

A boolean value indicating whether the resize operation is using the classic resize process. Default: false.

clusterType String

The new cluster type for the specified cluster.

nodeType String

The new node type for the nodes you are adding.

numberOfNodes Integer

The new number of nodes for the cluster.

clusterIdentifier string

The unique identifier for the cluster to resize.

classic boolean

A boolean value indicating whether the resize operation is using the classic resize process. Default: false.

clusterType string

The new cluster type for the specified cluster.

nodeType string

The new node type for the nodes you are adding.

numberOfNodes number

The new number of nodes for the cluster.

cluster_identifier str

The unique identifier for the cluster to resize.

classic bool

A boolean value indicating whether the resize operation is using the classic resize process. Default: false.

cluster_type str

The new cluster type for the specified cluster.

node_type str

The new node type for the nodes you are adding.

number_of_nodes int

The new number of nodes for the cluster.

clusterIdentifier String

The unique identifier for the cluster to resize.

classic Boolean

A boolean value indicating whether the resize operation is using the classic resize process. Default: false.

clusterType String

The new cluster type for the specified cluster.

nodeType String

The new node type for the nodes you are adding.

numberOfNodes Number

The new number of nodes for the cluster.

ScheduledActionTargetActionResumeCluster

ClusterIdentifier string

The identifier of the cluster to be resumed.

ClusterIdentifier string

The identifier of the cluster to be resumed.

clusterIdentifier String

The identifier of the cluster to be resumed.

clusterIdentifier string

The identifier of the cluster to be resumed.

cluster_identifier str

The identifier of the cluster to be resumed.

clusterIdentifier String

The identifier of the cluster to be resumed.

Package Details

Repository
AWS Classic pulumi/pulumi-aws
License
Apache-2.0
Notes

This Pulumi package is based on the aws Terraform Provider.