« blib/lib/Paws/Datasync/CreateLocationSmbResponse.pm
↑ Summary
blib/lib/Paws/Datasync/CreateTaskResponse.pm »
| 1 | |||
| 2 | package Paws::Datasync::CreateTask; | ||
| 3 | use Moose; | ||
| 4 | has CloudWatchLogGroupArn => (is => 'ro', isa => 'Str'); | ||
| 5 | has DestinationLocationArn => (is => 'ro', isa => 'Str', required => 1); | ||
| 6 | has Excludes => (is => 'ro', isa => 'ArrayRef[Paws::Datasync::FilterRule]'); | ||
| 7 | has Name => (is => 'ro', isa => 'Str'); | ||
| 8 | has Options => (is => 'ro', isa => 'Paws::Datasync::Options'); | ||
| 9 | has Schedule => (is => 'ro', isa => 'Paws::Datasync::TaskSchedule'); | ||
| 10 | has SourceLocationArn => (is => 'ro', isa => 'Str', required => 1); | ||
| 11 | has Tags => (is => 'ro', isa => 'ArrayRef[Paws::Datasync::TagListEntry]'); | ||
| 12 | |||
| 13 | use MooseX::ClassAttribute; | ||
| 14 | |||
| 15 | class_has _api_call => (isa => 'Str', is => 'ro', default => 'CreateTask'); | ||
| 16 | class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::Datasync::CreateTaskResponse'); | ||
| 17 | class_has _result_key => (isa => 'Str', is => 'ro'); | ||
| 18 | 1; | ||
| 19 | |||
| 20 | ### main pod documentation begin ### | ||
| 21 | |||
| 22 | =head1 NAME | ||
| 23 | |||
| 24 | Paws::Datasync::CreateTask - Arguments for method CreateTask on L<Paws::Datasync> | ||
| 25 | |||
| 26 | =head1 DESCRIPTION | ||
| 27 | |||
| 28 | This class represents the parameters used for calling the method CreateTask on the | ||
| 29 | L<AWS DataSync|Paws::Datasync> service. Use the attributes of this class | ||
| 30 | as arguments to method CreateTask. | ||
| 31 | |||
| 32 | You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to CreateTask. | ||
| 33 | |||
| 34 | =head1 SYNOPSIS | ||
| 35 | |||
| 36 | my $datasync = Paws->service('Datasync'); | ||
| 37 | my $CreateTaskResponse = $datasync->CreateTask( | ||
| 38 | DestinationLocationArn => 'MyLocationArn', | ||
| 39 | SourceLocationArn => 'MyLocationArn', | ||
| 40 | CloudWatchLogGroupArn => 'MyLogGroupArn', # OPTIONAL | ||
| 41 | Excludes => [ | ||
| 42 | { | ||
| 43 | FilterType => | ||
| 44 | 'SIMPLE_PATTERN', # values: SIMPLE_PATTERNmax: 128; OPTIONAL | ||
| 45 | Value => 'MyFilterValue', # max: 409600; OPTIONAL | ||
| 46 | }, | ||
| 47 | ... | ||
| 48 | ], # OPTIONAL | ||
| 49 | Name => 'MyTagValue', # OPTIONAL | ||
| 50 | Options => { | ||
| 51 | Atime => 'NONE', # values: NONE, BEST_EFFORT; OPTIONAL | ||
| 52 | BytesPerSecond => 1, # min: -1; OPTIONAL | ||
| 53 | Gid => 'NONE', # values: NONE, INT_VALUE, NAME, BOTH; OPTIONAL | ||
| 54 | LogLevel => 'OFF', # values: OFF, BASIC, TRANSFER; OPTIONAL | ||
| 55 | Mtime => 'NONE', # values: NONE, PRESERVE; OPTIONAL | ||
| 56 | OverwriteMode => 'ALWAYS', # values: ALWAYS, NEVER; OPTIONAL | ||
| 57 | PosixPermissions => 'NONE', # values: NONE, PRESERVE; OPTIONAL | ||
| 58 | PreserveDeletedFiles => 'PRESERVE', # values: PRESERVE, REMOVE; OPTIONAL | ||
| 59 | PreserveDevices => 'NONE', # values: NONE, PRESERVE; OPTIONAL | ||
| 60 | SecurityDescriptorCopyFlags => | ||
| 61 | 'NONE', # values: NONE, OWNER_DACL, OWNER_DACL_SACL; OPTIONAL | ||
| 62 | TaskQueueing => 'ENABLED', # values: ENABLED, DISABLED; OPTIONAL | ||
| 63 | TransferMode => 'CHANGED', # values: CHANGED, ALL; OPTIONAL | ||
| 64 | Uid => 'NONE', # values: NONE, INT_VALUE, NAME, BOTH; OPTIONAL | ||
| 65 | VerifyMode => 'POINT_IN_TIME_CONSISTENT' | ||
| 66 | , # values: POINT_IN_TIME_CONSISTENT, ONLY_FILES_TRANSFERRED, NONE; OPTIONAL | ||
| 67 | }, # OPTIONAL | ||
| 68 | Schedule => { | ||
| 69 | ScheduleExpression => 'MyScheduleExpressionCron', # max: 256 | ||
| 70 | |||
| 71 | }, # OPTIONAL | ||
| 72 | Tags => [ | ||
| 73 | { | ||
| 74 | Key => 'MyTagKey', # min: 1, max: 256 | ||
| 75 | Value => 'MyTagValue', # min: 1, max: 256 | ||
| 76 | }, | ||
| 77 | ... | ||
| 78 | ], # OPTIONAL | ||
| 79 | ); | ||
| 80 | |||
| 81 | # Results: | ||
| 82 | my $TaskArn = $CreateTaskResponse->TaskArn; | ||
| 83 | |||
| 84 | # Returns a L<Paws::Datasync::CreateTaskResponse> object. | ||
| 85 | |||
| 86 | 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. | ||
| 87 | For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/datasync/CreateTask> | ||
| 88 | |||
| 89 | =head1 ATTRIBUTES | ||
| 90 | |||
| 91 | |||
| 92 | =head2 CloudWatchLogGroupArn => Str | ||
| 93 | |||
| 94 | The Amazon Resource Name (ARN) of the Amazon CloudWatch log group that | ||
| 95 | is used to monitor and log events in the task. | ||
| 96 | |||
| 97 | |||
| 98 | |||
| 99 | =head2 B<REQUIRED> DestinationLocationArn => Str | ||
| 100 | |||
| 101 | The Amazon Resource Name (ARN) of an AWS storage resource's location. | ||
| 102 | |||
| 103 | |||
| 104 | |||
| 105 | =head2 Excludes => ArrayRef[L<Paws::Datasync::FilterRule>] | ||
| 106 | |||
| 107 | A list of filter rules that determines which files to exclude from a | ||
| 108 | task. The list should contain a single filter string that consists of | ||
| 109 | the patterns to exclude. The patterns are delimited by "|" (that is, a | ||
| 110 | pipe), for example, C<"/folder1|/folder2">. | ||
| 111 | |||
| 112 | |||
| 113 | |||
| 114 | =head2 Name => Str | ||
| 115 | |||
| 116 | The name of a task. This value is a text reference that is used to | ||
| 117 | identify the task in the console. | ||
| 118 | |||
| 119 | |||
| 120 | |||
| 121 | =head2 Options => L<Paws::Datasync::Options> | ||
| 122 | |||
| 123 | The set of configuration options that control the behavior of a single | ||
| 124 | execution of the task that occurs when you call C<StartTaskExecution>. | ||
| 125 | You can configure these options to preserve metadata such as user ID | ||
| 126 | (UID) and group ID (GID), file permissions, data integrity | ||
| 127 | verification, and so on. | ||
| 128 | |||
| 129 | For each individual task execution, you can override these options by | ||
| 130 | specifying the C<OverrideOptions> before starting the task execution. | ||
| 131 | For more information, see the StartTaskExecution | ||
| 132 | (https://docs.aws.amazon.com/datasync/latest/userguide/API_StartTaskExecution.html) | ||
| 133 | operation. | ||
| 134 | |||
| 135 | |||
| 136 | |||
| 137 | =head2 Schedule => L<Paws::Datasync::TaskSchedule> | ||
| 138 | |||
| 139 | Specifies a schedule used to periodically transfer files from a source | ||
| 140 | to a destination location. The schedule should be specified in UTC | ||
| 141 | time. For more information, see Scheduling your task | ||
| 142 | (https://docs.aws.amazon.com/datasync/latest/userguide/task-scheduling.html). | ||
| 143 | |||
| 144 | |||
| 145 | |||
| 146 | =head2 B<REQUIRED> SourceLocationArn => Str | ||
| 147 | |||
| 148 | The Amazon Resource Name (ARN) of the source location for the task. | ||
| 149 | |||
| 150 | |||
| 151 | |||
| 152 | =head2 Tags => ArrayRef[L<Paws::Datasync::TagListEntry>] | ||
| 153 | |||
| 154 | The key-value pair that represents the tag that you want to add to the | ||
| 155 | resource. The value can be an empty string. | ||
| 156 | |||
| 157 | |||
| 158 | |||
| 159 | |||
| 160 | =head1 SEE ALSO | ||
| 161 | |||
| 162 | This class forms part of L<Paws>, documenting arguments for method CreateTask in L<Paws::Datasync> | ||
| 163 | |||
| 164 | =head1 BUGS and CONTRIBUTIONS | ||
| 165 | |||
| 166 | The source code is located here: L<https://github.com/pplu/aws-sdk-perl> | ||
| 167 | |||
| 168 | Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues> | ||
| 169 | |||
| 170 | =cut | ||
| 171 |