blib/lib/Paws/Datasync/CreateLocationS3.pm untested

filter: Statementstmt 0.0% 0 / 15 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 2 Podpod n/a totaltotal 0.0% 0 / 17 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1  
2 package Paws::Datasync::CreateLocationS3;
3 use Moose;
4 has AgentArns => (is => 'ro', isa => 'ArrayRef[Str|Undef]');
5 has S3BucketArn => (is => 'ro', isa => 'Str', required => 1);
6 has S3Config => (is => 'ro', isa => 'Paws::Datasync::S3Config', required => 1);
7 has S3StorageClass => (is => 'ro', isa => 'Str');
8 has Subdirectory => (is => 'ro', isa => 'Str');
9 has Tags => (is => 'ro', isa => 'ArrayRef[Paws::Datasync::TagListEntry]');
10  
11 use MooseX::ClassAttribute;
12  
13 class_has _api_call => (isa => 'Str', is => 'ro', default => 'CreateLocationS3');
14 class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::Datasync::CreateLocationS3Response');
15 class_has _result_key => (isa => 'Str', is => 'ro');
16 1;
17  
18 ### main pod documentation begin ###
19  
20 =head1 NAME
21  
22 Paws::Datasync::CreateLocationS3 - Arguments for method CreateLocationS3 on L<Paws::Datasync>
23  
24 =head1 DESCRIPTION
25  
26 This class represents the parameters used for calling the method CreateLocationS3 on the
27 L<AWS DataSync|Paws::Datasync> service. Use the attributes of this class
28 as arguments to method CreateLocationS3.
29  
30 You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to CreateLocationS3.
31  
32 =head1 SYNOPSIS
33  
34 my $datasync = Paws->service('Datasync');
35 my $CreateLocationS3Response = $datasync->CreateLocationS3(
36 S3BucketArn => 'MyS3BucketArn',
37 S3Config => {
38 BucketAccessRoleArn => 'MyIamRoleArn', # max: 2048
39  
40 },
41 AgentArns => [
42 'MyAgentArn', ... # max: 128
43 ], # OPTIONAL
44 S3StorageClass => 'STANDARD', # OPTIONAL
45 Subdirectory => 'MyS3Subdirectory', # OPTIONAL
46 Tags => [
47 {
48 Key => 'MyTagKey', # min: 1, max: 256
49 Value => 'MyTagValue', # min: 1, max: 256; OPTIONAL
50 },
51 ...
52 ], # OPTIONAL
53 );
54  
55 # Results:
56 my $LocationArn = $CreateLocationS3Response->LocationArn;
57  
58 # Returns a L<Paws::Datasync::CreateLocationS3Response> object.
59  
60 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.
61 For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/datasync/CreateLocationS3>
62  
63 =head1 ATTRIBUTES
64  
65  
66 =head2 AgentArns => ArrayRef[Str|Undef]
67  
68 If you are using DataSync on an AWS Outpost, specify the Amazon
69 Resource Names (ARNs) of the DataSync agents deployed on your Outpost.
70 For more information about launching a DataSync agent on an AWS
71 Outpost, see Deploy your DataSync agent on AWS Outposts
72 (https://docs.aws.amazon.com/datasync/latest/userguide/deploy-agents.html#outposts-agent).
73  
74  
75  
76 =head2 B<REQUIRED> S3BucketArn => Str
77  
78 The ARN of the Amazon S3 bucket. If the bucket is on an AWS Outpost,
79 this must be an access point ARN.
80  
81  
82  
83 =head2 B<REQUIRED> S3Config => L<Paws::Datasync::S3Config>
84  
85  
86  
87  
88  
89 =head2 S3StorageClass => Str
90  
91 The Amazon S3 storage class that you want to store your files in when
92 this location is used as a task destination. For buckets in AWS
93 Regions, the storage class defaults to Standard. For buckets on AWS
94 Outposts, the storage class defaults to AWS S3 Outposts.
95  
96 For more information about S3 storage classes, see Amazon S3 Storage
97 Classes (http://aws.amazon.com/s3/storage-classes/). Some storage
98 classes have behaviors that can affect your S3 storage cost. For
99 detailed information, see Considerations when working with S3 storage
100 classes in DataSync
101 (https://docs.aws.amazon.com/datasync/latest/userguide/create-s3-location.html#using-storage-classes).
102  
103 Valid values are: C<"STANDARD">, C<"STANDARD_IA">, C<"ONEZONE_IA">, C<"INTELLIGENT_TIERING">, C<"GLACIER">, C<"DEEP_ARCHIVE">, C<"OUTPOSTS">
104  
105 =head2 Subdirectory => Str
106  
107 A subdirectory in the Amazon S3 bucket. This subdirectory in Amazon S3
108 is used to read data from the S3 source location or write data to the
109 S3 destination.
110  
111  
112  
113 =head2 Tags => ArrayRef[L<Paws::Datasync::TagListEntry>]
114  
115 The key-value pair that represents the tag that you want to add to the
116 location. The value can be an empty string. We recommend using tags to
117 name your resources.
118  
119  
120  
121  
122 =head1 SEE ALSO
123  
124 This class forms part of L<Paws>, documenting arguments for method CreateLocationS3 in L<Paws::Datasync>
125  
126 =head1 BUGS and CONTRIBUTIONS
127  
128 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
129  
130 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
131  
132 =cut
133