« blib/lib/Paws/RedShift/ModifyEventSubscriptionResult.pm
↑ Summary
blib/lib/Paws/RedShift/ModifySnapshotCopyRetentionPeriod.pm »
| 1 | |||
| 2 | package Paws::RedShift::ModifyScheduledAction; | ||
| 3 | use Moose; | ||
| 4 | has Enable => (is => 'ro', isa => 'Bool'); | ||
| 5 | has EndTime => (is => 'ro', isa => 'Str'); | ||
| 6 | has IamRole => (is => 'ro', isa => 'Str'); | ||
| 7 | has Schedule => (is => 'ro', isa => 'Str'); | ||
| 8 | has ScheduledActionDescription => (is => 'ro', isa => 'Str'); | ||
| 9 | has ScheduledActionName => (is => 'ro', isa => 'Str', required => 1); | ||
| 10 | has StartTime => (is => 'ro', isa => 'Str'); | ||
| 11 | has TargetAction => (is => 'ro', isa => 'Paws::RedShift::ScheduledActionType'); | ||
| 12 | |||
| 13 | use MooseX::ClassAttribute; | ||
| 14 | |||
| 15 | class_has _api_call => (isa => 'Str', is => 'ro', default => 'ModifyScheduledAction'); | ||
| 16 | class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::RedShift::ScheduledAction'); | ||
| 17 | class_has _result_key => (isa => 'Str', is => 'ro', default => 'ModifyScheduledActionResult'); | ||
| 18 | 1; | ||
| 19 | |||
| 20 | ### main pod documentation begin ### | ||
| 21 | |||
| 22 | =head1 NAME | ||
| 23 | |||
| 24 | Paws::RedShift::ModifyScheduledAction - Arguments for method ModifyScheduledAction on L<Paws::RedShift> | ||
| 25 | |||
| 26 | =head1 DESCRIPTION | ||
| 27 | |||
| 28 | This class represents the parameters used for calling the method ModifyScheduledAction on the | ||
| 29 | L<Amazon Redshift|Paws::RedShift> service. Use the attributes of this class | ||
| 30 | as arguments to method ModifyScheduledAction. | ||
| 31 | |||
| 32 | You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to ModifyScheduledAction. | ||
| 33 | |||
| 34 | =head1 SYNOPSIS | ||
| 35 | |||
| 36 | my $redshift = Paws->service('RedShift'); | ||
| 37 | my $ScheduledAction = $redshift->ModifyScheduledAction( | ||
| 38 | ScheduledActionName => 'MyString', | ||
| 39 | Enable => 1, # OPTIONAL | ||
| 40 | EndTime => '1970-01-01T01:00:00', # OPTIONAL | ||
| 41 | IamRole => 'MyString', # OPTIONAL | ||
| 42 | Schedule => 'MyString', # OPTIONAL | ||
| 43 | ScheduledActionDescription => 'MyString', # OPTIONAL | ||
| 44 | StartTime => '1970-01-01T01:00:00', # OPTIONAL | ||
| 45 | TargetAction => { | ||
| 46 | PauseCluster => { | ||
| 47 | ClusterIdentifier => 'MyString', # max: 2147483647 | ||
| 48 | |||
| 49 | }, # OPTIONAL | ||
| 50 | ResizeCluster => { | ||
| 51 | ClusterIdentifier => 'MyString', # max: 2147483647 | ||
| 52 | Classic => 1, | ||
| 53 | ClusterType => 'MyString', # max: 2147483647 | ||
| 54 | NodeType => 'MyString', # max: 2147483647 | ||
| 55 | NumberOfNodes => 1, # OPTIONAL | ||
| 56 | }, # OPTIONAL | ||
| 57 | ResumeCluster => { | ||
| 58 | ClusterIdentifier => 'MyString', # max: 2147483647 | ||
| 59 | |||
| 60 | }, # OPTIONAL | ||
| 61 | }, # OPTIONAL | ||
| 62 | ); | ||
| 63 | |||
| 64 | # Results: | ||
| 65 | my $EndTime = $ScheduledAction->EndTime; | ||
| 66 | my $IamRole = $ScheduledAction->IamRole; | ||
| 67 | my $NextInvocations = $ScheduledAction->NextInvocations; | ||
| 68 | my $Schedule = $ScheduledAction->Schedule; | ||
| 69 | my $ScheduledActionDescription = | ||
| 70 | $ScheduledAction->ScheduledActionDescription; | ||
| 71 | my $ScheduledActionName = $ScheduledAction->ScheduledActionName; | ||
| 72 | my $StartTime = $ScheduledAction->StartTime; | ||
| 73 | my $State = $ScheduledAction->State; | ||
| 74 | my $TargetAction = $ScheduledAction->TargetAction; | ||
| 75 | |||
| 76 | # Returns a L<Paws::RedShift::ScheduledAction> object. | ||
| 77 | |||
| 78 | 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. | ||
| 79 | For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/redshift/ModifyScheduledAction> | ||
| 80 | |||
| 81 | =head1 ATTRIBUTES | ||
| 82 | |||
| 83 | |||
| 84 | =head2 Enable => Bool | ||
| 85 | |||
| 86 | A modified enable flag of the scheduled action. If true, the scheduled | ||
| 87 | action is active. If false, the scheduled action is disabled. | ||
| 88 | |||
| 89 | |||
| 90 | |||
| 91 | =head2 EndTime => Str | ||
| 92 | |||
| 93 | A modified end time of the scheduled action. For more information about | ||
| 94 | this parameter, see ScheduledAction. | ||
| 95 | |||
| 96 | |||
| 97 | |||
| 98 | =head2 IamRole => Str | ||
| 99 | |||
| 100 | A different IAM role to assume to run the target action. For more | ||
| 101 | information about this parameter, see ScheduledAction. | ||
| 102 | |||
| 103 | |||
| 104 | |||
| 105 | =head2 Schedule => Str | ||
| 106 | |||
| 107 | A modified schedule in either C<at( )> or C<cron( )> format. For more | ||
| 108 | information about this parameter, see ScheduledAction. | ||
| 109 | |||
| 110 | |||
| 111 | |||
| 112 | =head2 ScheduledActionDescription => Str | ||
| 113 | |||
| 114 | A modified description of the scheduled action. | ||
| 115 | |||
| 116 | |||
| 117 | |||
| 118 | =head2 B<REQUIRED> ScheduledActionName => Str | ||
| 119 | |||
| 120 | The name of the scheduled action to modify. | ||
| 121 | |||
| 122 | |||
| 123 | |||
| 124 | =head2 StartTime => Str | ||
| 125 | |||
| 126 | A modified start time of the scheduled action. For more information | ||
| 127 | about this parameter, see ScheduledAction. | ||
| 128 | |||
| 129 | |||
| 130 | |||
| 131 | =head2 TargetAction => L<Paws::RedShift::ScheduledActionType> | ||
| 132 | |||
| 133 | A modified JSON format of the scheduled action. For more information | ||
| 134 | about this parameter, see ScheduledAction. | ||
| 135 | |||
| 136 | |||
| 137 | |||
| 138 | |||
| 139 | =head1 SEE ALSO | ||
| 140 | |||
| 141 | This class forms part of L<Paws>, documenting arguments for method ModifyScheduledAction in L<Paws::RedShift> | ||
| 142 | |||
| 143 | =head1 BUGS and CONTRIBUTIONS | ||
| 144 | |||
| 145 | The source code is located here: L<https://github.com/pplu/aws-sdk-perl> | ||
| 146 | |||
| 147 | Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues> | ||
| 148 | |||
| 149 | =cut | ||
| 150 |