Try AWS Native preview for resources not in the classic version.
aws.redshift.ScheduledAction
Explore with Pulumi AI
Try AWS Native preview for resources not in the classic version.
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 System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var assumeRole = Aws.Iam.GetPolicyDocument.Invoke(new()
{
Statements = new[]
{
new Aws.Iam.Inputs.GetPolicyDocumentStatementInputArgs
{
Effect = "Allow",
Principals = new[]
{
new Aws.Iam.Inputs.GetPolicyDocumentStatementPrincipalInputArgs
{
Type = "Service",
Identifiers = new[]
{
"scheduler.redshift.amazonaws.com",
},
},
},
Actions = new[]
{
"sts:AssumeRole",
},
},
},
});
var exampleRole = new Aws.Iam.Role("exampleRole", new()
{
AssumeRolePolicy = assumeRole.Apply(getPolicyDocumentResult => getPolicyDocumentResult.Json),
});
var examplePolicyDocument = Aws.Iam.GetPolicyDocument.Invoke(new()
{
Statements = new[]
{
new Aws.Iam.Inputs.GetPolicyDocumentStatementInputArgs
{
Effect = "Allow",
Actions = new[]
{
"redshift:PauseCluster",
"redshift:ResumeCluster",
"redshift:ResizeCluster",
},
Resources = new[]
{
"*",
},
},
},
});
var examplePolicy = new Aws.Iam.Policy("examplePolicy", new()
{
PolicyDocument = examplePolicyDocument.Apply(getPolicyDocumentResult => getPolicyDocumentResult.Json),
});
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 (
"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 {
assumeRole, err := iam.GetPolicyDocument(ctx, &iam.GetPolicyDocumentArgs{
Statements: []iam.GetPolicyDocumentStatement{
{
Effect: pulumi.StringRef("Allow"),
Principals: []iam.GetPolicyDocumentStatementPrincipal{
{
Type: "Service",
Identifiers: []string{
"scheduler.redshift.amazonaws.com",
},
},
},
Actions: []string{
"sts:AssumeRole",
},
},
},
}, nil)
if err != nil {
return err
}
exampleRole, err := iam.NewRole(ctx, "exampleRole", &iam.RoleArgs{
AssumeRolePolicy: *pulumi.String(assumeRole.Json),
})
if err != nil {
return err
}
examplePolicyDocument, err := iam.GetPolicyDocument(ctx, &iam.GetPolicyDocumentArgs{
Statements: []iam.GetPolicyDocumentStatement{
{
Effect: pulumi.StringRef("Allow"),
Actions: []string{
"redshift:PauseCluster",
"redshift:ResumeCluster",
"redshift:ResizeCluster",
},
Resources: []string{
"*",
},
},
},
}, nil)
if err != nil {
return err
}
examplePolicy, err := iam.NewPolicy(ctx, "examplePolicy", &iam.PolicyArgs{
Policy: *pulumi.String(examplePolicyDocument.Json),
})
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.IamFunctions;
import com.pulumi.aws.iam.inputs.GetPolicyDocumentArgs;
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) {
final var assumeRole = IamFunctions.getPolicyDocument(GetPolicyDocumentArgs.builder()
.statements(GetPolicyDocumentStatementArgs.builder()
.effect("Allow")
.principals(GetPolicyDocumentStatementPrincipalArgs.builder()
.type("Service")
.identifiers("scheduler.redshift.amazonaws.com")
.build())
.actions("sts:AssumeRole")
.build())
.build());
var exampleRole = new Role("exampleRole", RoleArgs.builder()
.assumeRolePolicy(assumeRole.applyValue(getPolicyDocumentResult -> getPolicyDocumentResult.json()))
.build());
final var examplePolicyDocument = IamFunctions.getPolicyDocument(GetPolicyDocumentArgs.builder()
.statements(GetPolicyDocumentStatementArgs.builder()
.effect("Allow")
.actions(
"redshift:PauseCluster",
"redshift:ResumeCluster",
"redshift:ResizeCluster")
.resources("*")
.build())
.build());
var examplePolicy = new Policy("examplePolicy", PolicyArgs.builder()
.policy(examplePolicyDocument.applyValue(getPolicyDocumentResult -> getPolicyDocumentResult.json()))
.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
assume_role = aws.iam.get_policy_document(statements=[aws.iam.GetPolicyDocumentStatementArgs(
effect="Allow",
principals=[aws.iam.GetPolicyDocumentStatementPrincipalArgs(
type="Service",
identifiers=["scheduler.redshift.amazonaws.com"],
)],
actions=["sts:AssumeRole"],
)])
example_role = aws.iam.Role("exampleRole", assume_role_policy=assume_role.json)
example_policy_document = aws.iam.get_policy_document(statements=[aws.iam.GetPolicyDocumentStatementArgs(
effect="Allow",
actions=[
"redshift:PauseCluster",
"redshift:ResumeCluster",
"redshift:ResizeCluster",
],
resources=["*"],
)])
example_policy = aws.iam.Policy("examplePolicy", policy=example_policy_document.json)
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 assumeRole = aws.iam.getPolicyDocument({
statements: [{
effect: "Allow",
principals: [{
type: "Service",
identifiers: ["scheduler.redshift.amazonaws.com"],
}],
actions: ["sts:AssumeRole"],
}],
});
const exampleRole = new aws.iam.Role("exampleRole", {assumeRolePolicy: assumeRole.then(assumeRole => assumeRole.json)});
const examplePolicyDocument = aws.iam.getPolicyDocument({
statements: [{
effect: "Allow",
actions: [
"redshift:PauseCluster",
"redshift:ResumeCluster",
"redshift:ResizeCluster",
],
resources: ["*"],
}],
});
const examplePolicy = new aws.iam.Policy("examplePolicy", {policy: examplePolicyDocument.then(examplePolicyDocument => examplePolicyDocument.json)});
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: ${assumeRole.json}
examplePolicy:
type: aws:iam:Policy
properties:
policy: ${examplePolicyDocument.json}
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
variables:
assumeRole:
fn::invoke:
Function: aws:iam:getPolicyDocument
Arguments:
statements:
- effect: Allow
principals:
- type: Service
identifiers:
- scheduler.redshift.amazonaws.com
actions:
- sts:AssumeRole
examplePolicyDocument:
fn::invoke:
Function: aws:iam:getPolicyDocument
Arguments:
statements:
- effect: Allow
actions:
- redshift:PauseCluster
- redshift:ResumeCluster
- redshift:ResizeCluster
resources:
- '*'
Resize Cluster Action
using System.Collections.Generic;
using System.Linq;
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:
- Iam
Role 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)
orcron(0 10 ? * MON *)
. See Scheduled Action for more information.- Target
Action Pulumi.Aws. Red Shift. Inputs. Scheduled Action Target Action Args Target action. Documented below.
- Description string
The description of the scheduled action.
- Enable bool
Whether to enable the scheduled action. Default is
true
.- End
Time 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.
- Start
Time string The start time in UTC when the schedule is active, in UTC RFC3339 format(for example, YYYY-MM-DDTHH:MM:SSZ).
- Iam
Role 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)
orcron(0 10 ? * MON *)
. See Scheduled Action for more information.- Target
Action ScheduledAction Target Action Args Target action. Documented below.
- Description string
The description of the scheduled action.
- Enable bool
Whether to enable the scheduled action. Default is
true
.- End
Time 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.
- Start
Time string The start time in UTC when the schedule is active, in UTC RFC3339 format(for example, YYYY-MM-DDTHH:MM:SSZ).
- iam
Role 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)
orcron(0 10 ? * MON *)
. See Scheduled Action for more information.- target
Action ScheduledAction Target Action Args Target action. Documented below.
- description String
The description of the scheduled action.
- enable Boolean
Whether to enable the scheduled action. Default is
true
.- end
Time 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.
- start
Time String The start time in UTC when the schedule is active, in UTC RFC3339 format(for example, YYYY-MM-DDTHH:MM:SSZ).
- iam
Role 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)
orcron(0 10 ? * MON *)
. See Scheduled Action for more information.- target
Action ScheduledAction Target Action Args Target action. Documented below.
- description string
The description of the scheduled action.
- enable boolean
Whether to enable the scheduled action. Default is
true
.- end
Time 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.
- start
Time 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)
orcron(0 10 ? * MON *)
. See Scheduled Action for more information.- target_
action ScheduledAction Target Action Args 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).
- iam
Role 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)
orcron(0 10 ? * MON *)
. See Scheduled Action for more information.- target
Action 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
.- end
Time 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.
- start
Time 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.
- Description string
The description of the scheduled action.
- Enable bool
Whether to enable the scheduled action. Default is
true
.- End
Time string The end time in UTC when the schedule is active, in UTC RFC3339 format(for example, YYYY-MM-DDTHH:MM:SSZ).
- Iam
Role 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)
orcron(0 10 ? * MON *)
. See Scheduled Action for more information.- Start
Time string The start time in UTC when the schedule is active, in UTC RFC3339 format(for example, YYYY-MM-DDTHH:MM:SSZ).
- Target
Action Pulumi.Aws. Red Shift. Inputs. Scheduled Action Target Action Args Target action. Documented below.
- Description string
The description of the scheduled action.
- Enable bool
Whether to enable the scheduled action. Default is
true
.- End
Time string The end time in UTC when the schedule is active, in UTC RFC3339 format(for example, YYYY-MM-DDTHH:MM:SSZ).
- Iam
Role 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)
orcron(0 10 ? * MON *)
. See Scheduled Action for more information.- Start
Time string The start time in UTC when the schedule is active, in UTC RFC3339 format(for example, YYYY-MM-DDTHH:MM:SSZ).
- Target
Action ScheduledAction Target Action Args Target action. Documented below.
- description String
The description of the scheduled action.
- enable Boolean
Whether to enable the scheduled action. Default is
true
.- end
Time String The end time in UTC when the schedule is active, in UTC RFC3339 format(for example, YYYY-MM-DDTHH:MM:SSZ).
- iam
Role 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)
orcron(0 10 ? * MON *)
. See Scheduled Action for more information.- start
Time String The start time in UTC when the schedule is active, in UTC RFC3339 format(for example, YYYY-MM-DDTHH:MM:SSZ).
- target
Action ScheduledAction Target Action Args Target action. Documented below.
- description string
The description of the scheduled action.
- enable boolean
Whether to enable the scheduled action. Default is
true
.- end
Time string The end time in UTC when the schedule is active, in UTC RFC3339 format(for example, YYYY-MM-DDTHH:MM:SSZ).
- iam
Role 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)
orcron(0 10 ? * MON *)
. See Scheduled Action for more information.- start
Time string The start time in UTC when the schedule is active, in UTC RFC3339 format(for example, YYYY-MM-DDTHH:MM:SSZ).
- target
Action ScheduledAction Target Action Args 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)
orcron(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 ScheduledAction Target Action Args Target action. Documented below.
- description String
The description of the scheduled action.
- enable Boolean
Whether to enable the scheduled action. Default is
true
.- end
Time String The end time in UTC when the schedule is active, in UTC RFC3339 format(for example, YYYY-MM-DDTHH:MM:SSZ).
- iam
Role 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)
orcron(0 10 ? * MON *)
. See Scheduled Action for more information.- start
Time String The start time in UTC when the schedule is active, in UTC RFC3339 format(for example, YYYY-MM-DDTHH:MM:SSZ).
- target
Action Property Map Target action. Documented below.
Supporting Types
ScheduledActionTargetAction
- Pause
Cluster Pulumi.Aws. Red Shift. Inputs. Scheduled Action Target Action Pause Cluster An action that runs a
PauseCluster
API operation. Documented below.- Resize
Cluster Pulumi.Aws. Red Shift. Inputs. Scheduled Action Target Action Resize Cluster An action that runs a
ResizeCluster
API operation. Documented below.- Resume
Cluster Pulumi.Aws. Red Shift. Inputs. Scheduled Action Target Action Resume Cluster An action that runs a
ResumeCluster
API operation. Documented below.
- Pause
Cluster ScheduledAction Target Action Pause Cluster An action that runs a
PauseCluster
API operation. Documented below.- Resize
Cluster ScheduledAction Target Action Resize Cluster An action that runs a
ResizeCluster
API operation. Documented below.- Resume
Cluster ScheduledAction Target Action Resume Cluster An action that runs a
ResumeCluster
API operation. Documented below.
- pause
Cluster ScheduledAction Target Action Pause Cluster An action that runs a
PauseCluster
API operation. Documented below.- resize
Cluster ScheduledAction Target Action Resize Cluster An action that runs a
ResizeCluster
API operation. Documented below.- resume
Cluster ScheduledAction Target Action Resume Cluster An action that runs a
ResumeCluster
API operation. Documented below.
- pause
Cluster ScheduledAction Target Action Pause Cluster An action that runs a
PauseCluster
API operation. Documented below.- resize
Cluster ScheduledAction Target Action Resize Cluster An action that runs a
ResizeCluster
API operation. Documented below.- resume
Cluster ScheduledAction Target Action Resume Cluster An action that runs a
ResumeCluster
API operation. Documented below.
- pause_
cluster ScheduledAction Target Action Pause Cluster An action that runs a
PauseCluster
API operation. Documented below.- resize_
cluster ScheduledAction Target Action Resize Cluster An action that runs a
ResizeCluster
API operation. Documented below.- resume_
cluster ScheduledAction Target Action Resume Cluster An action that runs a
ResumeCluster
API operation. Documented below.
- pause
Cluster Property Map An action that runs a
PauseCluster
API operation. Documented below.- resize
Cluster Property Map An action that runs a
ResizeCluster
API operation. Documented below.- resume
Cluster Property Map An action that runs a
ResumeCluster
API operation. Documented below.
ScheduledActionTargetActionPauseCluster
- Cluster
Identifier string The identifier of the cluster to be paused.
- Cluster
Identifier string The identifier of the cluster to be paused.
- cluster
Identifier String The identifier of the cluster to be paused.
- cluster
Identifier string The identifier of the cluster to be paused.
- cluster_
identifier str The identifier of the cluster to be paused.
- cluster
Identifier String The identifier of the cluster to be paused.
ScheduledActionTargetActionResizeCluster
- Cluster
Identifier 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
.- Cluster
Type string The new cluster type for the specified cluster.
- Node
Type string The new node type for the nodes you are adding.
- Number
Of intNodes The new number of nodes for the cluster.
- Cluster
Identifier 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
.- Cluster
Type string The new cluster type for the specified cluster.
- Node
Type string The new node type for the nodes you are adding.
- Number
Of intNodes The new number of nodes for the cluster.
- cluster
Identifier 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
.- cluster
Type String The new cluster type for the specified cluster.
- node
Type String The new node type for the nodes you are adding.
- number
Of IntegerNodes The new number of nodes for the cluster.
- cluster
Identifier 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
.- cluster
Type string The new cluster type for the specified cluster.
- node
Type string The new node type for the nodes you are adding.
- number
Of numberNodes 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_ intnodes The new number of nodes for the cluster.
- cluster
Identifier 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
.- cluster
Type String The new cluster type for the specified cluster.
- node
Type String The new node type for the nodes you are adding.
- number
Of NumberNodes The new number of nodes for the cluster.
ScheduledActionTargetActionResumeCluster
- Cluster
Identifier string The identifier of the cluster to be resumed.
- Cluster
Identifier string The identifier of the cluster to be resumed.
- cluster
Identifier String The identifier of the cluster to be resumed.
- cluster
Identifier string The identifier of the cluster to be resumed.
- cluster_
identifier str The identifier of the cluster to be resumed.
- cluster
Identifier 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.
Try AWS Native preview for resources not in the classic version.