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

filter: Statementstmt 0.0% 0 / 14 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 2 Podpod n/a totaltotal 0.0% 0 / 16 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1  
2 package Paws::Datasync::CreateLocationNfs;
3 use Moose;
4 has MountOptions => (is => 'ro', isa => 'Paws::Datasync::NfsMountOptions');
5 has OnPremConfig => (is => 'ro', isa => 'Paws::Datasync::OnPremConfig', required => 1);
6 has ServerHostname => (is => 'ro', isa => 'Str', required => 1);
7 has Subdirectory => (is => 'ro', isa => 'Str', required => 1);
8 has Tags => (is => 'ro', isa => 'ArrayRef[Paws::Datasync::TagListEntry]');
9  
10 use MooseX::ClassAttribute;
11  
12 class_has _api_call => (isa => 'Str', is => 'ro', default => 'CreateLocationNfs');
13 class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::Datasync::CreateLocationNfsResponse');
14 class_has _result_key => (isa => 'Str', is => 'ro');
15 1;
16  
17 ### main pod documentation begin ###
18  
19 =head1 NAME
20  
21 Paws::Datasync::CreateLocationNfs - Arguments for method CreateLocationNfs on L<Paws::Datasync>
22  
23 =head1 DESCRIPTION
24  
25 This class represents the parameters used for calling the method CreateLocationNfs on the
26 L<AWS DataSync|Paws::Datasync> service. Use the attributes of this class
27 as arguments to method CreateLocationNfs.
28  
29 You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to CreateLocationNfs.
30  
31 =head1 SYNOPSIS
32  
33 my $datasync = Paws->service('Datasync');
34 my $CreateLocationNfsResponse = $datasync->CreateLocationNfs(
35 OnPremConfig => {
36 AgentArns => [
37 'MyAgentArn', ... # max: 128
38 ], # min: 1, max: 4
39  
40 },
41 ServerHostname => 'MyServerHostname',
42 Subdirectory => 'MyNfsSubdirectory',
43 MountOptions => {
44 Version =>
45 'AUTOMATIC', # values: AUTOMATIC, NFS3, NFS4_0, NFS4_1; OPTIONAL
46 }, # OPTIONAL
47 Tags => [
48 {
49 Key => 'MyTagKey', # min: 1, max: 256
50 Value => 'MyTagValue', # min: 1, max: 256; OPTIONAL
51 },
52 ...
53 ], # OPTIONAL
54 );
55  
56 # Results:
57 my $LocationArn = $CreateLocationNfsResponse->LocationArn;
58  
59 # Returns a L<Paws::Datasync::CreateLocationNfsResponse> object.
60  
61 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.
62 For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/datasync/CreateLocationNfs>
63  
64 =head1 ATTRIBUTES
65  
66  
67 =head2 MountOptions => L<Paws::Datasync::NfsMountOptions>
68  
69 The NFS mount options that DataSync can use to mount your NFS share.
70  
71  
72  
73 =head2 B<REQUIRED> OnPremConfig => L<Paws::Datasync::OnPremConfig>
74  
75 Contains a list of Amazon Resource Names (ARNs) of agents that are used
76 to connect to an NFS server.
77  
78 If you are copying data to or from your AWS Snowcone device, see NFS
79 Server on AWS Snowcone
80 (https://docs.aws.amazon.com/datasync/latest/userguide/create-nfs-location.html#nfs-on-snowcone)
81 for more information.
82  
83  
84  
85 =head2 B<REQUIRED> ServerHostname => Str
86  
87 The name of the NFS server. This value is the IP address or Domain Name
88 Service (DNS) name of the NFS server. An agent that is installed
89 on-premises uses this host name to mount the NFS server in a network.
90  
91 If you are copying data to or from your AWS Snowcone device, see NFS
92 Server on AWS Snowcone
93 (https://docs.aws.amazon.com/datasync/latest/userguide/create-nfs-location.html#nfs-on-snowcone)
94 for more information.
95  
96 This name must either be DNS-compliant or must be an IP version 4
97 (IPv4) address.
98  
99  
100  
101 =head2 B<REQUIRED> Subdirectory => Str
102  
103 The subdirectory in the NFS file system that is used to read data from
104 the NFS source location or write data to the NFS destination. The NFS
105 path should be a path that's exported by the NFS server, or a
106 subdirectory of that path. The path should be such that it can be
107 mounted by other NFS clients in your network.
108  
109 To see all the paths exported by your NFS server, run "C<showmount -e
110 nfs-server-name>" from an NFS client that has access to your server.
111 You can specify any directory that appears in the results, and any
112 subdirectory of that directory. Ensure that the NFS export is
113 accessible without Kerberos authentication.
114  
115 To transfer all the data in the folder you specified, DataSync needs to
116 have permissions to read all the data. To ensure this, either configure
117 the NFS export with C<no_root_squash,> or ensure that the permissions
118 for all of the files that you want DataSync allow read access for all
119 users. Doing either enables the agent to read the files. For the agent
120 to access directories, you must additionally enable all execute access.
121  
122 If you are copying data to or from your AWS Snowcone device, see NFS
123 Server on AWS Snowcone
124 (https://docs.aws.amazon.com/datasync/latest/userguide/create-nfs-location.html#nfs-on-snowcone)
125 for more information.
126  
127 For information about NFS export configuration, see 18.7. The
128 /etc/exports Configuration File in the Red Hat Enterprise Linux
129 documentation.
130  
131  
132  
133 =head2 Tags => ArrayRef[L<Paws::Datasync::TagListEntry>]
134  
135 The key-value pair that represents the tag that you want to add to the
136 location. The value can be an empty string. We recommend using tags to
137 name your resources.
138  
139  
140  
141  
142 =head1 SEE ALSO
143  
144 This class forms part of L<Paws>, documenting arguments for method CreateLocationNfs in L<Paws::Datasync>
145  
146 =head1 BUGS and CONTRIBUTIONS
147  
148 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
149  
150 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
151  
152 =cut
153