| 1 | |||
| 2 | package Paws::EFS::CreateMountTarget; | ||
| 3 | use Moose; | ||
| 4 | has FileSystemId => (is => 'ro', isa => 'Str', required => 1); | ||
| 5 | has IpAddress => (is => 'ro', isa => 'Str'); | ||
| 6 | has SecurityGroups => (is => 'ro', isa => 'ArrayRef[Str|Undef]'); | ||
| 7 | has SubnetId => (is => 'ro', isa => 'Str', required => 1); | ||
| 8 | |||
| 9 | use MooseX::ClassAttribute; | ||
| 10 | |||
| 11 | class_has _api_call => (isa => 'Str', is => 'ro', default => 'CreateMountTarget'); | ||
| 12 | class_has _api_uri => (isa => 'Str', is => 'ro', default => '/2015-02-01/mount-targets'); | ||
| 13 | class_has _api_method => (isa => 'Str', is => 'ro', default => 'POST'); | ||
| 14 | class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::EFS::MountTargetDescription'); | ||
| 15 | 1; | ||
| 16 | |||
| 17 | ### main pod documentation begin ### | ||
| 18 | |||
| 19 | =head1 NAME | ||
| 20 | |||
| 21 | Paws::EFS::CreateMountTarget - Arguments for method CreateMountTarget on L<Paws::EFS> | ||
| 22 | |||
| 23 | =head1 DESCRIPTION | ||
| 24 | |||
| 25 | This class represents the parameters used for calling the method CreateMountTarget on the | ||
| 26 | L<Amazon Elastic File System|Paws::EFS> service. Use the attributes of this class | ||
| 27 | as arguments to method CreateMountTarget. | ||
| 28 | |||
| 29 | You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to CreateMountTarget. | ||
| 30 | |||
| 31 | =head1 SYNOPSIS | ||
| 32 | |||
| 33 | my $elasticfilesystem = Paws->service('EFS'); | ||
| 34 | # To create a new mount target | ||
| 35 | # This operation creates a new mount target for an EFS file system. | ||
| 36 | my $MountTargetDescription = $elasticfilesystem->CreateMountTarget( | ||
| 37 | 'FileSystemId' => 'fs-01234567', | ||
| 38 | 'SubnetId' => 'subnet-1234abcd' | ||
| 39 | ); | ||
| 40 | |||
| 41 | # Results: | ||
| 42 | my $FileSystemId = $MountTargetDescription->FileSystemId; | ||
| 43 | my $IpAddress = $MountTargetDescription->IpAddress; | ||
| 44 | my $LifeCycleState = $MountTargetDescription->LifeCycleState; | ||
| 45 | my $MountTargetId = $MountTargetDescription->MountTargetId; | ||
| 46 | my $NetworkInterfaceId = $MountTargetDescription->NetworkInterfaceId; | ||
| 47 | my $OwnerId = $MountTargetDescription->OwnerId; | ||
| 48 | my $SubnetId = $MountTargetDescription->SubnetId; | ||
| 49 | |||
| 50 | # Returns a L<Paws::EFS::MountTargetDescription> object. | ||
| 51 | |||
| 52 | 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. | ||
| 53 | For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/elasticfilesystem/CreateMountTarget> | ||
| 54 | |||
| 55 | =head1 ATTRIBUTES | ||
| 56 | |||
| 57 | |||
| 58 | =head2 B<REQUIRED> FileSystemId => Str | ||
| 59 | |||
| 60 | The ID of the file system for which to create the mount target. | ||
| 61 | |||
| 62 | |||
| 63 | |||
| 64 | =head2 IpAddress => Str | ||
| 65 | |||
| 66 | Valid IPv4 address within the address range of the specified subnet. | ||
| 67 | |||
| 68 | |||
| 69 | |||
| 70 | =head2 SecurityGroups => ArrayRef[Str|Undef] | ||
| 71 | |||
| 72 | Up to five VPC security group IDs, of the form C<sg-xxxxxxxx>. These | ||
| 73 | must be for the same VPC as subnet specified. | ||
| 74 | |||
| 75 | |||
| 76 | |||
| 77 | =head2 B<REQUIRED> SubnetId => Str | ||
| 78 | |||
| 79 | The ID of the subnet to add the mount target in. For file systems that | ||
| 80 | use One Zone storage classes, use the subnet that is associated with | ||
| 81 | the file system's Availability Zone. | ||
| 82 | |||
| 83 | |||
| 84 | |||
| 85 | |||
| 86 | =head1 SEE ALSO | ||
| 87 | |||
| 88 | This class forms part of L<Paws>, documenting arguments for method CreateMountTarget in L<Paws::EFS> | ||
| 89 | |||
| 90 | =head1 BUGS and CONTRIBUTIONS | ||
| 91 | |||
| 92 | The source code is located here: L<https://github.com/pplu/aws-sdk-perl> | ||
| 93 | |||
| 94 | Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues> | ||
| 95 | |||
| 96 | =cut | ||
| 97 |