« blib/lib/Paws/Datasync/CreateLocationS3Response.pm
↑ Summary
blib/lib/Paws/Datasync/CreateLocationSmbResponse.pm »
| 1 | |||
| 2 | package Paws::Datasync::CreateLocationSmb; | ||
| 3 | use Moose; | ||
| 4 | has AgentArns => (is => 'ro', isa => 'ArrayRef[Str|Undef]', required => 1); | ||
| 5 | has Domain => (is => 'ro', isa => 'Str'); | ||
| 6 | has MountOptions => (is => 'ro', isa => 'Paws::Datasync::SmbMountOptions'); | ||
| 7 | has Password => (is => 'ro', isa => 'Str', required => 1); | ||
| 8 | has ServerHostname => (is => 'ro', isa => 'Str', required => 1); | ||
| 9 | has Subdirectory => (is => 'ro', isa => 'Str', required => 1); | ||
| 10 | has Tags => (is => 'ro', isa => 'ArrayRef[Paws::Datasync::TagListEntry]'); | ||
| 11 | has User => (is => 'ro', isa => 'Str', required => 1); | ||
| 12 | |||
| 13 | use MooseX::ClassAttribute; | ||
| 14 | |||
| 15 | class_has _api_call => (isa => 'Str', is => 'ro', default => 'CreateLocationSmb'); | ||
| 16 | class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::Datasync::CreateLocationSmbResponse'); | ||
| 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::CreateLocationSmb - Arguments for method CreateLocationSmb on L<Paws::Datasync> | ||
| 25 | |||
| 26 | =head1 DESCRIPTION | ||
| 27 | |||
| 28 | This class represents the parameters used for calling the method CreateLocationSmb on the | ||
| 29 | L<AWS DataSync|Paws::Datasync> service. Use the attributes of this class | ||
| 30 | as arguments to method CreateLocationSmb. | ||
| 31 | |||
| 32 | You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to CreateLocationSmb. | ||
| 33 | |||
| 34 | =head1 SYNOPSIS | ||
| 35 | |||
| 36 | my $datasync = Paws->service('Datasync'); | ||
| 37 | my $CreateLocationSmbResponse = $datasync->CreateLocationSmb( | ||
| 38 | AgentArns => [ | ||
| 39 | 'MyAgentArn', ... # max: 128 | ||
| 40 | ], | ||
| 41 | Password => 'MySmbPassword', | ||
| 42 | ServerHostname => 'MyServerHostname', | ||
| 43 | Subdirectory => 'MySmbSubdirectory', | ||
| 44 | User => 'MySmbUser', | ||
| 45 | Domain => 'MySmbDomain', # OPTIONAL | ||
| 46 | MountOptions => { | ||
| 47 | Version => 'AUTOMATIC', # values: AUTOMATIC, SMB2, SMB3; OPTIONAL | ||
| 48 | }, # OPTIONAL | ||
| 49 | Tags => [ | ||
| 50 | { | ||
| 51 | Key => 'MyTagKey', # min: 1, max: 256 | ||
| 52 | Value => 'MyTagValue', # min: 1, max: 256; OPTIONAL | ||
| 53 | }, | ||
| 54 | ... | ||
| 55 | ], # OPTIONAL | ||
| 56 | ); | ||
| 57 | |||
| 58 | # Results: | ||
| 59 | my $LocationArn = $CreateLocationSmbResponse->LocationArn; | ||
| 60 | |||
| 61 | # Returns a L<Paws::Datasync::CreateLocationSmbResponse> object. | ||
| 62 | |||
| 63 | 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. | ||
| 64 | For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/datasync/CreateLocationSmb> | ||
| 65 | |||
| 66 | =head1 ATTRIBUTES | ||
| 67 | |||
| 68 | |||
| 69 | =head2 B<REQUIRED> AgentArns => ArrayRef[Str|Undef] | ||
| 70 | |||
| 71 | The Amazon Resource Names (ARNs) of agents to use for a Simple Message | ||
| 72 | Block (SMB) location. | ||
| 73 | |||
| 74 | |||
| 75 | |||
| 76 | =head2 Domain => Str | ||
| 77 | |||
| 78 | The name of the Windows domain that the SMB server belongs to. | ||
| 79 | |||
| 80 | |||
| 81 | |||
| 82 | =head2 MountOptions => L<Paws::Datasync::SmbMountOptions> | ||
| 83 | |||
| 84 | The mount options used by DataSync to access the SMB server. | ||
| 85 | |||
| 86 | |||
| 87 | |||
| 88 | =head2 B<REQUIRED> Password => Str | ||
| 89 | |||
| 90 | The password of the user who can mount the share, has the permissions | ||
| 91 | to access files and folders in the SMB share. | ||
| 92 | |||
| 93 | |||
| 94 | |||
| 95 | =head2 B<REQUIRED> ServerHostname => Str | ||
| 96 | |||
| 97 | The name of the SMB server. This value is the IP address or Domain Name | ||
| 98 | Service (DNS) name of the SMB server. An agent that is installed | ||
| 99 | on-premises uses this hostname to mount the SMB server in a network. | ||
| 100 | |||
| 101 | This name must either be DNS-compliant or must be an IP version 4 | ||
| 102 | (IPv4) address. | ||
| 103 | |||
| 104 | |||
| 105 | |||
| 106 | =head2 B<REQUIRED> Subdirectory => Str | ||
| 107 | |||
| 108 | The subdirectory in the SMB file system that is used to read data from | ||
| 109 | the SMB source location or write data to the SMB destination. The SMB | ||
| 110 | path should be a path that's exported by the SMB server, or a | ||
| 111 | subdirectory of that path. The path should be such that it can be | ||
| 112 | mounted by other SMB clients in your network. | ||
| 113 | |||
| 114 | C<Subdirectory> must be specified with forward slashes. For example, | ||
| 115 | C</path/to/folder>. | ||
| 116 | |||
| 117 | To transfer all the data in the folder you specified, DataSync needs to | ||
| 118 | have permissions to mount the SMB share, as well as to access all the | ||
| 119 | data in that share. To ensure this, either ensure that the | ||
| 120 | user/password specified belongs to the user who can mount the share, | ||
| 121 | and who has the appropriate permissions for all of the files and | ||
| 122 | directories that you want DataSync to access, or use credentials of a | ||
| 123 | member of the Backup Operators group to mount the share. Doing either | ||
| 124 | enables the agent to access the data. For the agent to access | ||
| 125 | directories, you must additionally enable all execute access. | ||
| 126 | |||
| 127 | |||
| 128 | |||
| 129 | =head2 Tags => ArrayRef[L<Paws::Datasync::TagListEntry>] | ||
| 130 | |||
| 131 | The key-value pair that represents the tag that you want to add to the | ||
| 132 | location. The value can be an empty string. We recommend using tags to | ||
| 133 | name your resources. | ||
| 134 | |||
| 135 | |||
| 136 | |||
| 137 | =head2 B<REQUIRED> User => Str | ||
| 138 | |||
| 139 | The user who can mount the share, has the permissions to access files | ||
| 140 | and folders in the SMB share. | ||
| 141 | |||
| 142 | For information about choosing a user name that ensures sufficient | ||
| 143 | permissions to files, folders, and metadata, see user. | ||
| 144 | |||
| 145 | |||
| 146 | |||
| 147 | |||
| 148 | =head1 SEE ALSO | ||
| 149 | |||
| 150 | This class forms part of L<Paws>, documenting arguments for method CreateLocationSmb in L<Paws::Datasync> | ||
| 151 | |||
| 152 | =head1 BUGS and CONTRIBUTIONS | ||
| 153 | |||
| 154 | The source code is located here: L<https://github.com/pplu/aws-sdk-perl> | ||
| 155 | |||
| 156 | Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues> | ||
| 157 | |||
| 158 | =cut | ||
| 159 |