| 1 | package Paws::S3Outposts; | ||
| 2 | use Moose; | ||
| 3 | sub service { 's3-outposts' } | ||
| 4 | sub signing_name { 's3-outposts' } | ||
| 5 | sub version { '2017-07-25' } | ||
| 6 | sub flattened_arrays { 0 } | ||
| 7 | has max_attempts => (is => 'ro', isa => 'Int', default => 5); | ||
| 8 | has retry => (is => 'ro', isa => 'HashRef', default => sub { | ||
| 9 | { base => 'rand', type => 'exponential', growth_factor => 2 } | ||
| 10 | }); | ||
| 11 | has retriables => (is => 'ro', isa => 'ArrayRef', default => sub { [ | ||
| 12 | ] }); | ||
| 13 | |||
| 14 | with 'Paws::API::Caller', 'Paws::API::EndpointResolver', 'Paws::Net::V4Signature', 'Paws::Net::RestJsonCaller'; | ||
| 15 | |||
| 16 | |||
| 17 | sub CreateEndpoint { | ||
| 18 | my $self = shift; | ||
| 19 | my $call_object = $self->new_with_coercions('Paws::S3Outposts::CreateEndpoint', @_); | ||
| 20 | return $self->caller->do_call($self, $call_object); | ||
| 21 | } | ||
| 22 | sub DeleteEndpoint { | ||
| 23 | my $self = shift; | ||
| 24 | my $call_object = $self->new_with_coercions('Paws::S3Outposts::DeleteEndpoint', @_); | ||
| 25 | return $self->caller->do_call($self, $call_object); | ||
| 26 | } | ||
| 27 | sub ListEndpoints { | ||
| 28 | my $self = shift; | ||
| 29 | my $call_object = $self->new_with_coercions('Paws::S3Outposts::ListEndpoints', @_); | ||
| 30 | return $self->caller->do_call($self, $call_object); | ||
| 31 | } | ||
| 32 | |||
| 33 | sub ListAllEndpoints { | ||
| 34 | my $self = shift; | ||
| 35 | |||
| 36 | my $callback = shift @_ if (ref($_[0]) eq 'CODE'); | ||
| 37 | my $result = $self->ListEndpoints(@_); | ||
| 38 | my $next_result = $result; | ||
| 39 | |||
| 40 | if (not defined $callback) { | ||
| 41 | while ($next_result->NextToken) { | ||
| 42 | $next_result = $self->ListEndpoints(@_, NextToken => $next_result->NextToken); | ||
| 43 | push @{ $result->Endpoints }, @{ $next_result->Endpoints }; | ||
| 44 | } | ||
| 45 | return $result; | ||
| 46 | } else { | ||
| 47 | while ($result->NextToken) { | ||
| 48 | $callback->($_ => 'Endpoints') foreach (@{ $result->Endpoints }); | ||
| 49 | $result = $self->ListEndpoints(@_, NextToken => $result->NextToken); | ||
| 50 | } | ||
| 51 | $callback->($_ => 'Endpoints') foreach (@{ $result->Endpoints }); | ||
| 52 | } | ||
| 53 | |||
| 54 | return undef | ||
| 55 | } | ||
| 56 | |||
| 57 | |||
| 58 | sub operations { qw/CreateEndpoint DeleteEndpoint ListEndpoints / } | ||
| 59 | |||
| 60 | 1; | ||
| 61 | |||
| 62 | ### main pod documentation begin ### | ||
| 63 | |||
| 64 | =head1 NAME | ||
| 65 | |||
| 66 | Paws::S3Outposts - Perl Interface to AWS Amazon S3 on Outposts | ||
| 67 | |||
| 68 | =head1 SYNOPSIS | ||
| 69 | |||
| 70 | use Paws; | ||
| 71 | |||
| 72 | my $obj = Paws->service('S3Outposts'); | ||
| 73 | my $res = $obj->Method( | ||
| 74 | Arg1 => $val1, | ||
| 75 | Arg2 => [ 'V1', 'V2' ], | ||
| 76 | # if Arg3 is an object, the HashRef will be used as arguments to the constructor | ||
| 77 | # of the arguments type | ||
| 78 | Arg3 => { Att1 => 'Val1' }, | ||
| 79 | # if Arg4 is an array of objects, the HashRefs will be passed as arguments to | ||
| 80 | # the constructor of the arguments type | ||
| 81 | Arg4 => [ { Att1 => 'Val1' }, { Att1 => 'Val2' } ], | ||
| 82 | ); | ||
| 83 | |||
| 84 | =head1 DESCRIPTION | ||
| 85 | |||
| 86 | Amazon S3 on Outposts provides access to S3 on Outposts operations. | ||
| 87 | |||
| 88 | For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/s3-outposts-2017-07-25> | ||
| 89 | |||
| 90 | |||
| 91 | =head1 METHODS | ||
| 92 | |||
| 93 | =head2 CreateEndpoint | ||
| 94 | |||
| 95 | =over | ||
| 96 | |||
| 97 | =item OutpostId => Str | ||
| 98 | |||
| 99 | =item SecurityGroupId => Str | ||
| 100 | |||
| 101 | =item SubnetId => Str | ||
| 102 | |||
| 103 | |||
| 104 | =back | ||
| 105 | |||
| 106 | Each argument is described in detail in: L<Paws::S3Outposts::CreateEndpoint> | ||
| 107 | |||
| 108 | Returns: a L<Paws::S3Outposts::CreateEndpointResult> instance | ||
| 109 | |||
| 110 | S3 on Outposts access points simplify managing data access at scale for | ||
| 111 | shared datasets in Amazon S3 on Outposts. S3 on Outposts uses endpoints | ||
| 112 | to connect to Outposts buckets so that you can perform actions within | ||
| 113 | your virtual private cloud (VPC). | ||
| 114 | |||
| 115 | This action creates an endpoint and associates it with the specified | ||
| 116 | Outpost. | ||
| 117 | |||
| 118 | Related actions include: | ||
| 119 | |||
| 120 | =over | ||
| 121 | |||
| 122 | =item * | ||
| 123 | |||
| 124 | DeleteEndpoint | ||
| 125 | (https://docs.aws.amazon.com/AmazonS3/latest/API/API_s3outposts_DeleteEndpoint.html) | ||
| 126 | |||
| 127 | =item * | ||
| 128 | |||
| 129 | ListEndpoints | ||
| 130 | (https://docs.aws.amazon.com/AmazonS3/latest/API/API_s3outposts_ListEndpoints.html) | ||
| 131 | |||
| 132 | =back | ||
| 133 | |||
| 134 | |||
| 135 | |||
| 136 | =head2 DeleteEndpoint | ||
| 137 | |||
| 138 | =over | ||
| 139 | |||
| 140 | =item EndpointId => Str | ||
| 141 | |||
| 142 | =item OutpostId => Str | ||
| 143 | |||
| 144 | |||
| 145 | =back | ||
| 146 | |||
| 147 | Each argument is described in detail in: L<Paws::S3Outposts::DeleteEndpoint> | ||
| 148 | |||
| 149 | Returns: nothing | ||
| 150 | |||
| 151 | S3 on Outposts access points simplify managing data access at scale for | ||
| 152 | shared datasets in Amazon S3 on Outposts. S3 on Outposts uses endpoints | ||
| 153 | to connect to Outposts buckets so that you can perform actions within | ||
| 154 | your virtual private cloud (VPC). | ||
| 155 | |||
| 156 | This action deletes an endpoint. | ||
| 157 | |||
| 158 | Related actions include: | ||
| 159 | |||
| 160 | =over | ||
| 161 | |||
| 162 | =item * | ||
| 163 | |||
| 164 | CreateEndpoint | ||
| 165 | (https://docs.aws.amazon.com/AmazonS3/latest/API/API_s3outposts_CreateEndpoint.html) | ||
| 166 | |||
| 167 | =item * | ||
| 168 | |||
| 169 | ListEndpoints | ||
| 170 | (https://docs.aws.amazon.com/AmazonS3/latest/API/API_s3outposts_ListEndpoints.html) | ||
| 171 | |||
| 172 | =back | ||
| 173 | |||
| 174 | |||
| 175 | |||
| 176 | =head2 ListEndpoints | ||
| 177 | |||
| 178 | =over | ||
| 179 | |||
| 180 | =item [MaxResults => Int] | ||
| 181 | |||
| 182 | =item [NextToken => Str] | ||
| 183 | |||
| 184 | |||
| 185 | =back | ||
| 186 | |||
| 187 | Each argument is described in detail in: L<Paws::S3Outposts::ListEndpoints> | ||
| 188 | |||
| 189 | Returns: a L<Paws::S3Outposts::ListEndpointsResult> instance | ||
| 190 | |||
| 191 | S3 on Outposts access points simplify managing data access at scale for | ||
| 192 | shared datasets in Amazon S3 on Outposts. S3 on Outposts uses endpoints | ||
| 193 | to connect to Outposts buckets so that you can perform actions within | ||
| 194 | your virtual private cloud (VPC). | ||
| 195 | |||
| 196 | This action lists endpoints associated with the Outpost. | ||
| 197 | |||
| 198 | Related actions include: | ||
| 199 | |||
| 200 | =over | ||
| 201 | |||
| 202 | =item * | ||
| 203 | |||
| 204 | CreateEndpoint | ||
| 205 | (https://docs.aws.amazon.com/AmazonS3/latest/API/API_s3outposts_CreateEndpoint.html) | ||
| 206 | |||
| 207 | =item * | ||
| 208 | |||
| 209 | DeleteEndpoint | ||
| 210 | (https://docs.aws.amazon.com/AmazonS3/latest/API/API_s3outposts_DeleteEndpoint.html) | ||
| 211 | |||
| 212 | =back | ||
| 213 | |||
| 214 | |||
| 215 | |||
| 216 | |||
| 217 | |||
| 218 | =head1 PAGINATORS | ||
| 219 | |||
| 220 | Paginator methods are helpers that repetively call methods that return partial results | ||
| 221 | |||
| 222 | =head2 ListAllEndpoints(sub { },[MaxResults => Int, NextToken => Str]) | ||
| 223 | |||
| 224 | =head2 ListAllEndpoints([MaxResults => Int, NextToken => Str]) | ||
| 225 | |||
| 226 | |||
| 227 | If passed a sub as first parameter, it will call the sub for each element found in : | ||
| 228 | |||
| 229 | - Endpoints, passing the object as the first parameter, and the string 'Endpoints' as the second parameter | ||
| 230 | |||
| 231 | If not, it will return a a L<Paws::S3Outposts::ListEndpointsResult> instance with all the C<param>s; from all the responses. Please take into account that this mode can potentially consume vasts ammounts of memory. | ||
| 232 | |||
| 233 | |||
| 234 | |||
| 235 | |||
| 236 | |||
| 237 | =head1 SEE ALSO | ||
| 238 | |||
| 239 | This service class forms part of L<Paws> | ||
| 240 | |||
| 241 | =head1 BUGS and CONTRIBUTIONS | ||
| 242 | |||
| 243 | The source code is located here: L<https://github.com/pplu/aws-sdk-perl> | ||
| 244 | |||
| 245 | Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues> | ||
| 246 | |||
| 247 | =cut | ||
| 248 |