The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

Paws::RedShift::CreateScheduledAction - Arguments for method CreateScheduledAction on Paws::RedShift

DESCRIPTION

This class represents the parameters used for calling the method CreateScheduledAction on the Amazon Redshift service. Use the attributes of this class as arguments to method CreateScheduledAction.

You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to CreateScheduledAction.

SYNOPSIS

my $redshift = Paws->service('RedShift');
my $ScheduledAction = $redshift->CreateScheduledAction(
  IamRole             => 'MyString',
  Schedule            => 'MyString',
  ScheduledActionName => 'MyString',
  TargetAction        => {
    PauseCluster => {
      ClusterIdentifier => 'MyString',    # max: 2147483647

    },    # OPTIONAL
    ResizeCluster => {
      ClusterIdentifier => 'MyString',    # max: 2147483647
      Classic           => 1,             # OPTIONAL
      ClusterType       => 'MyString',    # max: 2147483647
      NodeType          => 'MyString',    # max: 2147483647
      NumberOfNodes     => 1,             # OPTIONAL
    },    # OPTIONAL
    ResumeCluster => {
      ClusterIdentifier => 'MyString',    # max: 2147483647

    },    # OPTIONAL
  },
  Enable                     => 1,                        # OPTIONAL
  EndTime                    => '1970-01-01T01:00:00',    # OPTIONAL
  ScheduledActionDescription => 'MyString',               # OPTIONAL
  StartTime                  => '1970-01-01T01:00:00',    # OPTIONAL
);

# Results:
my $EndTime         = $ScheduledAction->EndTime;
my $IamRole         = $ScheduledAction->IamRole;
my $NextInvocations = $ScheduledAction->NextInvocations;
my $Schedule        = $ScheduledAction->Schedule;
my $ScheduledActionDescription =
  $ScheduledAction->ScheduledActionDescription;
my $ScheduledActionName = $ScheduledAction->ScheduledActionName;
my $StartTime           = $ScheduledAction->StartTime;
my $State               = $ScheduledAction->State;
my $TargetAction        = $ScheduledAction->TargetAction;

# Returns a L<Paws::RedShift::ScheduledAction> object.

Values for attributes that are native types (Int, String, Float, etc) can passed as-is (scalar values). Values for complex Types (objects) can be passed as a HashRef. The keys and values of the hashref will be used to instance the underlying object. For the AWS API documentation, see https://docs.aws.amazon.com/goto/WebAPI/redshift/CreateScheduledAction

ATTRIBUTES

Enable => Bool

If true, the schedule is enabled. If false, the scheduled action does not trigger. For more information about state of the scheduled action, see ScheduledAction.

EndTime => Str

The end time in UTC of the scheduled action. After this time, the scheduled action does not trigger. For more information about this parameter, see ScheduledAction.

REQUIRED IamRole => Str

The IAM role to assume to run the target action. For more information about this parameter, see ScheduledAction.

REQUIRED Schedule => Str

The schedule in at( ) or cron( ) format. For more information about this parameter, see ScheduledAction.

ScheduledActionDescription => Str

The description of the scheduled action.

REQUIRED ScheduledActionName => Str

The name of the scheduled action. The name must be unique within an account. For more information about this parameter, see ScheduledAction.

StartTime => Str

The start time in UTC of the scheduled action. Before this time, the scheduled action does not trigger. For more information about this parameter, see ScheduledAction.

REQUIRED TargetAction => Paws::RedShift::ScheduledActionType

A JSON format string of the Amazon Redshift API operation with input parameters. For more information about this parameter, see ScheduledAction.

SEE ALSO

This class forms part of Paws, documenting arguments for method CreateScheduledAction in Paws::RedShift

BUGS and CONTRIBUTIONS

The source code is located here: https://github.com/pplu/aws-sdk-perl

Please report bugs to: https://github.com/pplu/aws-sdk-perl/issues