| 1 | package Paws::RAM; | ||
| 2 | use Moose; | ||
| 3 | sub service { 'ram' } | ||
| 4 | sub signing_name { 'ram' } | ||
| 5 | sub version { '2018-01-04' } | ||
| 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 AcceptResourceShareInvitation { | ||
| 18 | my $self = shift; | ||
| 19 | my $call_object = $self->new_with_coercions('Paws::RAM::AcceptResourceShareInvitation', @_); | ||
| 20 | return $self->caller->do_call($self, $call_object); | ||
| 21 | } | ||
| 22 | sub AssociateResourceShare { | ||
| 23 | my $self = shift; | ||
| 24 | my $call_object = $self->new_with_coercions('Paws::RAM::AssociateResourceShare', @_); | ||
| 25 | return $self->caller->do_call($self, $call_object); | ||
| 26 | } | ||
| 27 | sub AssociateResourceSharePermission { | ||
| 28 | my $self = shift; | ||
| 29 | my $call_object = $self->new_with_coercions('Paws::RAM::AssociateResourceSharePermission', @_); | ||
| 30 | return $self->caller->do_call($self, $call_object); | ||
| 31 | } | ||
| 32 | sub CreateResourceShare { | ||
| 33 | my $self = shift; | ||
| 34 | my $call_object = $self->new_with_coercions('Paws::RAM::CreateResourceShare', @_); | ||
| 35 | return $self->caller->do_call($self, $call_object); | ||
| 36 | } | ||
| 37 | sub DeleteResourceShare { | ||
| 38 | my $self = shift; | ||
| 39 | my $call_object = $self->new_with_coercions('Paws::RAM::DeleteResourceShare', @_); | ||
| 40 | return $self->caller->do_call($self, $call_object); | ||
| 41 | } | ||
| 42 | sub DisassociateResourceShare { | ||
| 43 | my $self = shift; | ||
| 44 | my $call_object = $self->new_with_coercions('Paws::RAM::DisassociateResourceShare', @_); | ||
| 45 | return $self->caller->do_call($self, $call_object); | ||
| 46 | } | ||
| 47 | sub DisassociateResourceSharePermission { | ||
| 48 | my $self = shift; | ||
| 49 | my $call_object = $self->new_with_coercions('Paws::RAM::DisassociateResourceSharePermission', @_); | ||
| 50 | return $self->caller->do_call($self, $call_object); | ||
| 51 | } | ||
| 52 | sub EnableSharingWithAwsOrganization { | ||
| 53 | my $self = shift; | ||
| 54 | my $call_object = $self->new_with_coercions('Paws::RAM::EnableSharingWithAwsOrganization', @_); | ||
| 55 | return $self->caller->do_call($self, $call_object); | ||
| 56 | } | ||
| 57 | sub GetPermission { | ||
| 58 | my $self = shift; | ||
| 59 | my $call_object = $self->new_with_coercions('Paws::RAM::GetPermission', @_); | ||
| 60 | return $self->caller->do_call($self, $call_object); | ||
| 61 | } | ||
| 62 | sub GetResourcePolicies { | ||
| 63 | my $self = shift; | ||
| 64 | my $call_object = $self->new_with_coercions('Paws::RAM::GetResourcePolicies', @_); | ||
| 65 | return $self->caller->do_call($self, $call_object); | ||
| 66 | } | ||
| 67 | sub GetResourceShareAssociations { | ||
| 68 | my $self = shift; | ||
| 69 | my $call_object = $self->new_with_coercions('Paws::RAM::GetResourceShareAssociations', @_); | ||
| 70 | return $self->caller->do_call($self, $call_object); | ||
| 71 | } | ||
| 72 | sub GetResourceShareInvitations { | ||
| 73 | my $self = shift; | ||
| 74 | my $call_object = $self->new_with_coercions('Paws::RAM::GetResourceShareInvitations', @_); | ||
| 75 | return $self->caller->do_call($self, $call_object); | ||
| 76 | } | ||
| 77 | sub GetResourceShares { | ||
| 78 | my $self = shift; | ||
| 79 | my $call_object = $self->new_with_coercions('Paws::RAM::GetResourceShares', @_); | ||
| 80 | return $self->caller->do_call($self, $call_object); | ||
| 81 | } | ||
| 82 | sub ListPendingInvitationResources { | ||
| 83 | my $self = shift; | ||
| 84 | my $call_object = $self->new_with_coercions('Paws::RAM::ListPendingInvitationResources', @_); | ||
| 85 | return $self->caller->do_call($self, $call_object); | ||
| 86 | } | ||
| 87 | sub ListPermissions { | ||
| 88 | my $self = shift; | ||
| 89 | my $call_object = $self->new_with_coercions('Paws::RAM::ListPermissions', @_); | ||
| 90 | return $self->caller->do_call($self, $call_object); | ||
| 91 | } | ||
| 92 | sub ListPrincipals { | ||
| 93 | my $self = shift; | ||
| 94 | my $call_object = $self->new_with_coercions('Paws::RAM::ListPrincipals', @_); | ||
| 95 | return $self->caller->do_call($self, $call_object); | ||
| 96 | } | ||
| 97 | sub ListResources { | ||
| 98 | my $self = shift; | ||
| 99 | my $call_object = $self->new_with_coercions('Paws::RAM::ListResources', @_); | ||
| 100 | return $self->caller->do_call($self, $call_object); | ||
| 101 | } | ||
| 102 | sub ListResourceSharePermissions { | ||
| 103 | my $self = shift; | ||
| 104 | my $call_object = $self->new_with_coercions('Paws::RAM::ListResourceSharePermissions', @_); | ||
| 105 | return $self->caller->do_call($self, $call_object); | ||
| 106 | } | ||
| 107 | sub ListResourceTypes { | ||
| 108 | my $self = shift; | ||
| 109 | my $call_object = $self->new_with_coercions('Paws::RAM::ListResourceTypes', @_); | ||
| 110 | return $self->caller->do_call($self, $call_object); | ||
| 111 | } | ||
| 112 | sub PromoteResourceShareCreatedFromPolicy { | ||
| 113 | my $self = shift; | ||
| 114 | my $call_object = $self->new_with_coercions('Paws::RAM::PromoteResourceShareCreatedFromPolicy', @_); | ||
| 115 | return $self->caller->do_call($self, $call_object); | ||
| 116 | } | ||
| 117 | sub RejectResourceShareInvitation { | ||
| 118 | my $self = shift; | ||
| 119 | my $call_object = $self->new_with_coercions('Paws::RAM::RejectResourceShareInvitation', @_); | ||
| 120 | return $self->caller->do_call($self, $call_object); | ||
| 121 | } | ||
| 122 | sub TagResource { | ||
| 123 | my $self = shift; | ||
| 124 | my $call_object = $self->new_with_coercions('Paws::RAM::TagResource', @_); | ||
| 125 | return $self->caller->do_call($self, $call_object); | ||
| 126 | } | ||
| 127 | sub UntagResource { | ||
| 128 | my $self = shift; | ||
| 129 | my $call_object = $self->new_with_coercions('Paws::RAM::UntagResource', @_); | ||
| 130 | return $self->caller->do_call($self, $call_object); | ||
| 131 | } | ||
| 132 | sub UpdateResourceShare { | ||
| 133 | my $self = shift; | ||
| 134 | my $call_object = $self->new_with_coercions('Paws::RAM::UpdateResourceShare', @_); | ||
| 135 | return $self->caller->do_call($self, $call_object); | ||
| 136 | } | ||
| 137 | |||
| 138 | sub GetAllResourcePolicies { | ||
| 139 | my $self = shift; | ||
| 140 | |||
| 141 | my $callback = shift @_ if (ref($_[0]) eq 'CODE'); | ||
| 142 | my $result = $self->GetResourcePolicies(@_); | ||
| 143 | my $next_result = $result; | ||
| 144 | |||
| 145 | if (not defined $callback) { | ||
| 146 | while ($next_result->nextToken) { | ||
| 147 | $next_result = $self->GetResourcePolicies(@_, nextToken => $next_result->nextToken); | ||
| 148 | push @{ $result->policies }, @{ $next_result->policies }; | ||
| 149 | } | ||
| 150 | return $result; | ||
| 151 | } else { | ||
| 152 | while ($result->nextToken) { | ||
| 153 | $callback->($_ => 'policies') foreach (@{ $result->policies }); | ||
| 154 | $result = $self->GetResourcePolicies(@_, nextToken => $result->nextToken); | ||
| 155 | } | ||
| 156 | $callback->($_ => 'policies') foreach (@{ $result->policies }); | ||
| 157 | } | ||
| 158 | |||
| 159 | return undef | ||
| 160 | } | ||
| 161 | sub GetAllResourceShareAssociations { | ||
| 162 | my $self = shift; | ||
| 163 | |||
| 164 | my $callback = shift @_ if (ref($_[0]) eq 'CODE'); | ||
| 165 | my $result = $self->GetResourceShareAssociations(@_); | ||
| 166 | my $next_result = $result; | ||
| 167 | |||
| 168 | if (not defined $callback) { | ||
| 169 | while ($next_result->nextToken) { | ||
| 170 | $next_result = $self->GetResourceShareAssociations(@_, nextToken => $next_result->nextToken); | ||
| 171 | push @{ $result->resourceShareAssociations }, @{ $next_result->resourceShareAssociations }; | ||
| 172 | } | ||
| 173 | return $result; | ||
| 174 | } else { | ||
| 175 | while ($result->nextToken) { | ||
| 176 | $callback->($_ => 'resourceShareAssociations') foreach (@{ $result->resourceShareAssociations }); | ||
| 177 | $result = $self->GetResourceShareAssociations(@_, nextToken => $result->nextToken); | ||
| 178 | } | ||
| 179 | $callback->($_ => 'resourceShareAssociations') foreach (@{ $result->resourceShareAssociations }); | ||
| 180 | } | ||
| 181 | |||
| 182 | return undef | ||
| 183 | } | ||
| 184 | sub GetAllResourceShareInvitations { | ||
| 185 | my $self = shift; | ||
| 186 | |||
| 187 | my $callback = shift @_ if (ref($_[0]) eq 'CODE'); | ||
| 188 | my $result = $self->GetResourceShareInvitations(@_); | ||
| 189 | my $next_result = $result; | ||
| 190 | |||
| 191 | if (not defined $callback) { | ||
| 192 | while ($next_result->nextToken) { | ||
| 193 | $next_result = $self->GetResourceShareInvitations(@_, nextToken => $next_result->nextToken); | ||
| 194 | push @{ $result->resourceShareInvitations }, @{ $next_result->resourceShareInvitations }; | ||
| 195 | } | ||
| 196 | return $result; | ||
| 197 | } else { | ||
| 198 | while ($result->nextToken) { | ||
| 199 | $callback->($_ => 'resourceShareInvitations') foreach (@{ $result->resourceShareInvitations }); | ||
| 200 | $result = $self->GetResourceShareInvitations(@_, nextToken => $result->nextToken); | ||
| 201 | } | ||
| 202 | $callback->($_ => 'resourceShareInvitations') foreach (@{ $result->resourceShareInvitations }); | ||
| 203 | } | ||
| 204 | |||
| 205 | return undef | ||
| 206 | } | ||
| 207 | sub GetAllResourceShares { | ||
| 208 | my $self = shift; | ||
| 209 | |||
| 210 | my $callback = shift @_ if (ref($_[0]) eq 'CODE'); | ||
| 211 | my $result = $self->GetResourceShares(@_); | ||
| 212 | my $next_result = $result; | ||
| 213 | |||
| 214 | if (not defined $callback) { | ||
| 215 | while ($next_result->nextToken) { | ||
| 216 | $next_result = $self->GetResourceShares(@_, nextToken => $next_result->nextToken); | ||
| 217 | push @{ $result->resourceShares }, @{ $next_result->resourceShares }; | ||
| 218 | } | ||
| 219 | return $result; | ||
| 220 | } else { | ||
| 221 | while ($result->nextToken) { | ||
| 222 | $callback->($_ => 'resourceShares') foreach (@{ $result->resourceShares }); | ||
| 223 | $result = $self->GetResourceShares(@_, nextToken => $result->nextToken); | ||
| 224 | } | ||
| 225 | $callback->($_ => 'resourceShares') foreach (@{ $result->resourceShares }); | ||
| 226 | } | ||
| 227 | |||
| 228 | return undef | ||
| 229 | } | ||
| 230 | sub ListAllPrincipals { | ||
| 231 | my $self = shift; | ||
| 232 | |||
| 233 | my $callback = shift @_ if (ref($_[0]) eq 'CODE'); | ||
| 234 | my $result = $self->ListPrincipals(@_); | ||
| 235 | my $next_result = $result; | ||
| 236 | |||
| 237 | if (not defined $callback) { | ||
| 238 | while ($next_result->nextToken) { | ||
| 239 | $next_result = $self->ListPrincipals(@_, nextToken => $next_result->nextToken); | ||
| 240 | push @{ $result->principals }, @{ $next_result->principals }; | ||
| 241 | } | ||
| 242 | return $result; | ||
| 243 | } else { | ||
| 244 | while ($result->nextToken) { | ||
| 245 | $callback->($_ => 'principals') foreach (@{ $result->principals }); | ||
| 246 | $result = $self->ListPrincipals(@_, nextToken => $result->nextToken); | ||
| 247 | } | ||
| 248 | $callback->($_ => 'principals') foreach (@{ $result->principals }); | ||
| 249 | } | ||
| 250 | |||
| 251 | return undef | ||
| 252 | } | ||
| 253 | sub ListAllResources { | ||
| 254 | my $self = shift; | ||
| 255 | |||
| 256 | my $callback = shift @_ if (ref($_[0]) eq 'CODE'); | ||
| 257 | my $result = $self->ListResources(@_); | ||
| 258 | my $next_result = $result; | ||
| 259 | |||
| 260 | if (not defined $callback) { | ||
| 261 | while ($next_result->nextToken) { | ||
| 262 | $next_result = $self->ListResources(@_, nextToken => $next_result->nextToken); | ||
| 263 | push @{ $result->resources }, @{ $next_result->resources }; | ||
| 264 | } | ||
| 265 | return $result; | ||
| 266 | } else { | ||
| 267 | while ($result->nextToken) { | ||
| 268 | $callback->($_ => 'resources') foreach (@{ $result->resources }); | ||
| 269 | $result = $self->ListResources(@_, nextToken => $result->nextToken); | ||
| 270 | } | ||
| 271 | $callback->($_ => 'resources') foreach (@{ $result->resources }); | ||
| 272 | } | ||
| 273 | |||
| 274 | return undef | ||
| 275 | } | ||
| 276 | |||
| 277 | |||
| 278 | sub operations { qw/AcceptResourceShareInvitation AssociateResourceShare AssociateResourceSharePermission CreateResourceShare DeleteResourceShare DisassociateResourceShare DisassociateResourceSharePermission EnableSharingWithAwsOrganization GetPermission GetResourcePolicies GetResourceShareAssociations GetResourceShareInvitations GetResourceShares ListPendingInvitationResources ListPermissions ListPrincipals ListResources ListResourceSharePermissions ListResourceTypes PromoteResourceShareCreatedFromPolicy RejectResourceShareInvitation TagResource UntagResource UpdateResourceShare / } | ||
| 279 | |||
| 280 | 1; | ||
| 281 | |||
| 282 | ### main pod documentation begin ### | ||
| 283 | |||
| 284 | =head1 NAME | ||
| 285 | |||
| 286 | Paws::RAM - Perl Interface to AWS AWS Resource Access Manager | ||
| 287 | |||
| 288 | =head1 SYNOPSIS | ||
| 289 | |||
| 290 | use Paws; | ||
| 291 | |||
| 292 | my $obj = Paws->service('RAM'); | ||
| 293 | my $res = $obj->Method( | ||
| 294 | Arg1 => $val1, | ||
| 295 | Arg2 => [ 'V1', 'V2' ], | ||
| 296 | # if Arg3 is an object, the HashRef will be used as arguments to the constructor | ||
| 297 | # of the arguments type | ||
| 298 | Arg3 => { Att1 => 'Val1' }, | ||
| 299 | # if Arg4 is an array of objects, the HashRefs will be passed as arguments to | ||
| 300 | # the constructor of the arguments type | ||
| 301 | Arg4 => [ { Att1 => 'Val1' }, { Att1 => 'Val2' } ], | ||
| 302 | ); | ||
| 303 | |||
| 304 | =head1 DESCRIPTION | ||
| 305 | |||
| 306 | Use AWS Resource Access Manager to share AWS resources between AWS | ||
| 307 | accounts. To share a resource, you create a resource share, associate | ||
| 308 | the resource with the resource share, and specify the principals that | ||
| 309 | can access the resources associated with the resource share. The | ||
| 310 | following principals are supported: AWS accounts, organizational units | ||
| 311 | (OU) from AWS Organizations, and organizations from AWS Organizations. | ||
| 312 | |||
| 313 | For more information, see the AWS Resource Access Manager User Guide | ||
| 314 | (https://docs.aws.amazon.com/ram/latest/userguide/). | ||
| 315 | |||
| 316 | For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/ram-2018-01-04> | ||
| 317 | |||
| 318 | |||
| 319 | =head1 METHODS | ||
| 320 | |||
| 321 | =head2 AcceptResourceShareInvitation | ||
| 322 | |||
| 323 | =over | ||
| 324 | |||
| 325 | =item ResourceShareInvitationArn => Str | ||
| 326 | |||
| 327 | =item [ClientToken => Str] | ||
| 328 | |||
| 329 | |||
| 330 | =back | ||
| 331 | |||
| 332 | Each argument is described in detail in: L<Paws::RAM::AcceptResourceShareInvitation> | ||
| 333 | |||
| 334 | Returns: a L<Paws::RAM::AcceptResourceShareInvitationResponse> instance | ||
| 335 | |||
| 336 | Accepts an invitation to a resource share from another AWS account. | ||
| 337 | |||
| 338 | |||
| 339 | =head2 AssociateResourceShare | ||
| 340 | |||
| 341 | =over | ||
| 342 | |||
| 343 | =item ResourceShareArn => Str | ||
| 344 | |||
| 345 | =item [ClientToken => Str] | ||
| 346 | |||
| 347 | =item [Principals => ArrayRef[Str|Undef]] | ||
| 348 | |||
| 349 | =item [ResourceArns => ArrayRef[Str|Undef]] | ||
| 350 | |||
| 351 | |||
| 352 | =back | ||
| 353 | |||
| 354 | Each argument is described in detail in: L<Paws::RAM::AssociateResourceShare> | ||
| 355 | |||
| 356 | Returns: a L<Paws::RAM::AssociateResourceShareResponse> instance | ||
| 357 | |||
| 358 | Associates the specified resource share with the specified principals | ||
| 359 | and resources. | ||
| 360 | |||
| 361 | |||
| 362 | =head2 AssociateResourceSharePermission | ||
| 363 | |||
| 364 | =over | ||
| 365 | |||
| 366 | =item PermissionArn => Str | ||
| 367 | |||
| 368 | =item ResourceShareArn => Str | ||
| 369 | |||
| 370 | =item [ClientToken => Str] | ||
| 371 | |||
| 372 | =item [PermissionVersion => Int] | ||
| 373 | |||
| 374 | =item [Replace => Bool] | ||
| 375 | |||
| 376 | |||
| 377 | =back | ||
| 378 | |||
| 379 | Each argument is described in detail in: L<Paws::RAM::AssociateResourceSharePermission> | ||
| 380 | |||
| 381 | Returns: a L<Paws::RAM::AssociateResourceSharePermissionResponse> instance | ||
| 382 | |||
| 383 | Associates a permission with a resource share. | ||
| 384 | |||
| 385 | |||
| 386 | =head2 CreateResourceShare | ||
| 387 | |||
| 388 | =over | ||
| 389 | |||
| 390 | =item Name => Str | ||
| 391 | |||
| 392 | =item [AllowExternalPrincipals => Bool] | ||
| 393 | |||
| 394 | =item [ClientToken => Str] | ||
| 395 | |||
| 396 | =item [PermissionArns => ArrayRef[Str|Undef]] | ||
| 397 | |||
| 398 | =item [Principals => ArrayRef[Str|Undef]] | ||
| 399 | |||
| 400 | =item [ResourceArns => ArrayRef[Str|Undef]] | ||
| 401 | |||
| 402 | =item [Tags => ArrayRef[L<Paws::RAM::Tag>]] | ||
| 403 | |||
| 404 | |||
| 405 | =back | ||
| 406 | |||
| 407 | Each argument is described in detail in: L<Paws::RAM::CreateResourceShare> | ||
| 408 | |||
| 409 | Returns: a L<Paws::RAM::CreateResourceShareResponse> instance | ||
| 410 | |||
| 411 | Creates a resource share. | ||
| 412 | |||
| 413 | |||
| 414 | =head2 DeleteResourceShare | ||
| 415 | |||
| 416 | =over | ||
| 417 | |||
| 418 | =item ResourceShareArn => Str | ||
| 419 | |||
| 420 | =item [ClientToken => Str] | ||
| 421 | |||
| 422 | |||
| 423 | =back | ||
| 424 | |||
| 425 | Each argument is described in detail in: L<Paws::RAM::DeleteResourceShare> | ||
| 426 | |||
| 427 | Returns: a L<Paws::RAM::DeleteResourceShareResponse> instance | ||
| 428 | |||
| 429 | Deletes the specified resource share. | ||
| 430 | |||
| 431 | |||
| 432 | =head2 DisassociateResourceShare | ||
| 433 | |||
| 434 | =over | ||
| 435 | |||
| 436 | =item ResourceShareArn => Str | ||
| 437 | |||
| 438 | =item [ClientToken => Str] | ||
| 439 | |||
| 440 | =item [Principals => ArrayRef[Str|Undef]] | ||
| 441 | |||
| 442 | =item [ResourceArns => ArrayRef[Str|Undef]] | ||
| 443 | |||
| 444 | |||
| 445 | =back | ||
| 446 | |||
| 447 | Each argument is described in detail in: L<Paws::RAM::DisassociateResourceShare> | ||
| 448 | |||
| 449 | Returns: a L<Paws::RAM::DisassociateResourceShareResponse> instance | ||
| 450 | |||
| 451 | Disassociates the specified principals or resources from the specified | ||
| 452 | resource share. | ||
| 453 | |||
| 454 | |||
| 455 | =head2 DisassociateResourceSharePermission | ||
| 456 | |||
| 457 | =over | ||
| 458 | |||
| 459 | =item PermissionArn => Str | ||
| 460 | |||
| 461 | =item ResourceShareArn => Str | ||
| 462 | |||
| 463 | =item [ClientToken => Str] | ||
| 464 | |||
| 465 | |||
| 466 | =back | ||
| 467 | |||
| 468 | Each argument is described in detail in: L<Paws::RAM::DisassociateResourceSharePermission> | ||
| 469 | |||
| 470 | Returns: a L<Paws::RAM::DisassociateResourceSharePermissionResponse> instance | ||
| 471 | |||
| 472 | Disassociates an AWS RAM permission from a resource share. | ||
| 473 | |||
| 474 | |||
| 475 | =head2 EnableSharingWithAwsOrganization | ||
| 476 | |||
| 477 | |||
| 478 | |||
| 479 | |||
| 480 | |||
| 481 | |||
| 482 | Each argument is described in detail in: L<Paws::RAM::EnableSharingWithAwsOrganization> | ||
| 483 | |||
| 484 | Returns: a L<Paws::RAM::EnableSharingWithAwsOrganizationResponse> instance | ||
| 485 | |||
| 486 | Enables resource sharing within your AWS Organization. | ||
| 487 | |||
| 488 | The caller must be the master account for the AWS Organization. | ||
| 489 | |||
| 490 | |||
| 491 | =head2 GetPermission | ||
| 492 | |||
| 493 | =over | ||
| 494 | |||
| 495 | =item PermissionArn => Str | ||
| 496 | |||
| 497 | =item [PermissionVersion => Int] | ||
| 498 | |||
| 499 | |||
| 500 | =back | ||
| 501 | |||
| 502 | Each argument is described in detail in: L<Paws::RAM::GetPermission> | ||
| 503 | |||
| 504 | Returns: a L<Paws::RAM::GetPermissionResponse> instance | ||
| 505 | |||
| 506 | Gets the contents of an AWS RAM permission in JSON format. | ||
| 507 | |||
| 508 | |||
| 509 | =head2 GetResourcePolicies | ||
| 510 | |||
| 511 | =over | ||
| 512 | |||
| 513 | =item ResourceArns => ArrayRef[Str|Undef] | ||
| 514 | |||
| 515 | =item [MaxResults => Int] | ||
| 516 | |||
| 517 | =item [NextToken => Str] | ||
| 518 | |||
| 519 | =item [Principal => Str] | ||
| 520 | |||
| 521 | |||
| 522 | =back | ||
| 523 | |||
| 524 | Each argument is described in detail in: L<Paws::RAM::GetResourcePolicies> | ||
| 525 | |||
| 526 | Returns: a L<Paws::RAM::GetResourcePoliciesResponse> instance | ||
| 527 | |||
| 528 | Gets the policies for the specified resources that you own and have | ||
| 529 | shared. | ||
| 530 | |||
| 531 | |||
| 532 | =head2 GetResourceShareAssociations | ||
| 533 | |||
| 534 | =over | ||
| 535 | |||
| 536 | =item AssociationType => Str | ||
| 537 | |||
| 538 | =item [AssociationStatus => Str] | ||
| 539 | |||
| 540 | =item [MaxResults => Int] | ||
| 541 | |||
| 542 | =item [NextToken => Str] | ||
| 543 | |||
| 544 | =item [Principal => Str] | ||
| 545 | |||
| 546 | =item [ResourceArn => Str] | ||
| 547 | |||
| 548 | =item [ResourceShareArns => ArrayRef[Str|Undef]] | ||
| 549 | |||
| 550 | |||
| 551 | =back | ||
| 552 | |||
| 553 | Each argument is described in detail in: L<Paws::RAM::GetResourceShareAssociations> | ||
| 554 | |||
| 555 | Returns: a L<Paws::RAM::GetResourceShareAssociationsResponse> instance | ||
| 556 | |||
| 557 | Gets the resources or principals for the resource shares that you own. | ||
| 558 | |||
| 559 | |||
| 560 | =head2 GetResourceShareInvitations | ||
| 561 | |||
| 562 | =over | ||
| 563 | |||
| 564 | =item [MaxResults => Int] | ||
| 565 | |||
| 566 | =item [NextToken => Str] | ||
| 567 | |||
| 568 | =item [ResourceShareArns => ArrayRef[Str|Undef]] | ||
| 569 | |||
| 570 | =item [ResourceShareInvitationArns => ArrayRef[Str|Undef]] | ||
| 571 | |||
| 572 | |||
| 573 | =back | ||
| 574 | |||
| 575 | Each argument is described in detail in: L<Paws::RAM::GetResourceShareInvitations> | ||
| 576 | |||
| 577 | Returns: a L<Paws::RAM::GetResourceShareInvitationsResponse> instance | ||
| 578 | |||
| 579 | Gets the invitations that you have received for resource shares. | ||
| 580 | |||
| 581 | |||
| 582 | =head2 GetResourceShares | ||
| 583 | |||
| 584 | =over | ||
| 585 | |||
| 586 | =item ResourceOwner => Str | ||
| 587 | |||
| 588 | =item [MaxResults => Int] | ||
| 589 | |||
| 590 | =item [Name => Str] | ||
| 591 | |||
| 592 | =item [NextToken => Str] | ||
| 593 | |||
| 594 | =item [PermissionArn => Str] | ||
| 595 | |||
| 596 | =item [ResourceShareArns => ArrayRef[Str|Undef]] | ||
| 597 | |||
| 598 | =item [ResourceShareStatus => Str] | ||
| 599 | |||
| 600 | =item [TagFilters => ArrayRef[L<Paws::RAM::TagFilter>]] | ||
| 601 | |||
| 602 | |||
| 603 | =back | ||
| 604 | |||
| 605 | Each argument is described in detail in: L<Paws::RAM::GetResourceShares> | ||
| 606 | |||
| 607 | Returns: a L<Paws::RAM::GetResourceSharesResponse> instance | ||
| 608 | |||
| 609 | Gets the resource shares that you own or the resource shares that are | ||
| 610 | shared with you. | ||
| 611 | |||
| 612 | |||
| 613 | =head2 ListPendingInvitationResources | ||
| 614 | |||
| 615 | =over | ||
| 616 | |||
| 617 | =item ResourceShareInvitationArn => Str | ||
| 618 | |||
| 619 | =item [MaxResults => Int] | ||
| 620 | |||
| 621 | =item [NextToken => Str] | ||
| 622 | |||
| 623 | |||
| 624 | =back | ||
| 625 | |||
| 626 | Each argument is described in detail in: L<Paws::RAM::ListPendingInvitationResources> | ||
| 627 | |||
| 628 | Returns: a L<Paws::RAM::ListPendingInvitationResourcesResponse> instance | ||
| 629 | |||
| 630 | Lists the resources in a resource share that is shared with you but | ||
| 631 | that the invitation is still pending for. | ||
| 632 | |||
| 633 | |||
| 634 | =head2 ListPermissions | ||
| 635 | |||
| 636 | =over | ||
| 637 | |||
| 638 | =item [MaxResults => Int] | ||
| 639 | |||
| 640 | =item [NextToken => Str] | ||
| 641 | |||
| 642 | =item [ResourceType => Str] | ||
| 643 | |||
| 644 | |||
| 645 | =back | ||
| 646 | |||
| 647 | Each argument is described in detail in: L<Paws::RAM::ListPermissions> | ||
| 648 | |||
| 649 | Returns: a L<Paws::RAM::ListPermissionsResponse> instance | ||
| 650 | |||
| 651 | Lists the AWS RAM permissions. | ||
| 652 | |||
| 653 | |||
| 654 | =head2 ListPrincipals | ||
| 655 | |||
| 656 | =over | ||
| 657 | |||
| 658 | =item ResourceOwner => Str | ||
| 659 | |||
| 660 | =item [MaxResults => Int] | ||
| 661 | |||
| 662 | =item [NextToken => Str] | ||
| 663 | |||
| 664 | =item [Principals => ArrayRef[Str|Undef]] | ||
| 665 | |||
| 666 | =item [ResourceArn => Str] | ||
| 667 | |||
| 668 | =item [ResourceShareArns => ArrayRef[Str|Undef]] | ||
| 669 | |||
| 670 | =item [ResourceType => Str] | ||
| 671 | |||
| 672 | |||
| 673 | =back | ||
| 674 | |||
| 675 | Each argument is described in detail in: L<Paws::RAM::ListPrincipals> | ||
| 676 | |||
| 677 | Returns: a L<Paws::RAM::ListPrincipalsResponse> instance | ||
| 678 | |||
| 679 | Lists the principals that you have shared resources with or that have | ||
| 680 | shared resources with you. | ||
| 681 | |||
| 682 | |||
| 683 | =head2 ListResources | ||
| 684 | |||
| 685 | =over | ||
| 686 | |||
| 687 | =item ResourceOwner => Str | ||
| 688 | |||
| 689 | =item [MaxResults => Int] | ||
| 690 | |||
| 691 | =item [NextToken => Str] | ||
| 692 | |||
| 693 | =item [Principal => Str] | ||
| 694 | |||
| 695 | =item [ResourceArns => ArrayRef[Str|Undef]] | ||
| 696 | |||
| 697 | =item [ResourceShareArns => ArrayRef[Str|Undef]] | ||
| 698 | |||
| 699 | =item [ResourceType => Str] | ||
| 700 | |||
| 701 | |||
| 702 | =back | ||
| 703 | |||
| 704 | Each argument is described in detail in: L<Paws::RAM::ListResources> | ||
| 705 | |||
| 706 | Returns: a L<Paws::RAM::ListResourcesResponse> instance | ||
| 707 | |||
| 708 | Lists the resources that you added to a resource shares or the | ||
| 709 | resources that are shared with you. | ||
| 710 | |||
| 711 | |||
| 712 | =head2 ListResourceSharePermissions | ||
| 713 | |||
| 714 | =over | ||
| 715 | |||
| 716 | =item ResourceShareArn => Str | ||
| 717 | |||
| 718 | =item [MaxResults => Int] | ||
| 719 | |||
| 720 | =item [NextToken => Str] | ||
| 721 | |||
| 722 | |||
| 723 | =back | ||
| 724 | |||
| 725 | Each argument is described in detail in: L<Paws::RAM::ListResourceSharePermissions> | ||
| 726 | |||
| 727 | Returns: a L<Paws::RAM::ListResourceSharePermissionsResponse> instance | ||
| 728 | |||
| 729 | Lists the AWS RAM permissions that are associated with a resource | ||
| 730 | share. | ||
| 731 | |||
| 732 | |||
| 733 | =head2 ListResourceTypes | ||
| 734 | |||
| 735 | =over | ||
| 736 | |||
| 737 | =item [MaxResults => Int] | ||
| 738 | |||
| 739 | =item [NextToken => Str] | ||
| 740 | |||
| 741 | |||
| 742 | =back | ||
| 743 | |||
| 744 | Each argument is described in detail in: L<Paws::RAM::ListResourceTypes> | ||
| 745 | |||
| 746 | Returns: a L<Paws::RAM::ListResourceTypesResponse> instance | ||
| 747 | |||
| 748 | Lists the shareable resource types supported by AWS RAM. | ||
| 749 | |||
| 750 | |||
| 751 | =head2 PromoteResourceShareCreatedFromPolicy | ||
| 752 | |||
| 753 | =over | ||
| 754 | |||
| 755 | =item ResourceShareArn => Str | ||
| 756 | |||
| 757 | |||
| 758 | =back | ||
| 759 | |||
| 760 | Each argument is described in detail in: L<Paws::RAM::PromoteResourceShareCreatedFromPolicy> | ||
| 761 | |||
| 762 | Returns: a L<Paws::RAM::PromoteResourceShareCreatedFromPolicyResponse> instance | ||
| 763 | |||
| 764 | Resource shares that were created by attaching a policy to a resource | ||
| 765 | are visible only to the resource share owner, and the resource share | ||
| 766 | cannot be modified in AWS RAM. | ||
| 767 | |||
| 768 | Use this API action to promote the resource share. When you promote the | ||
| 769 | resource share, it becomes: | ||
| 770 | |||
| 771 | =over | ||
| 772 | |||
| 773 | =item * | ||
| 774 | |||
| 775 | Visible to all principals that it is shared with. | ||
| 776 | |||
| 777 | =item * | ||
| 778 | |||
| 779 | Modifiable in AWS RAM. | ||
| 780 | |||
| 781 | =back | ||
| 782 | |||
| 783 | |||
| 784 | |||
| 785 | =head2 RejectResourceShareInvitation | ||
| 786 | |||
| 787 | =over | ||
| 788 | |||
| 789 | =item ResourceShareInvitationArn => Str | ||
| 790 | |||
| 791 | =item [ClientToken => Str] | ||
| 792 | |||
| 793 | |||
| 794 | =back | ||
| 795 | |||
| 796 | Each argument is described in detail in: L<Paws::RAM::RejectResourceShareInvitation> | ||
| 797 | |||
| 798 | Returns: a L<Paws::RAM::RejectResourceShareInvitationResponse> instance | ||
| 799 | |||
| 800 | Rejects an invitation to a resource share from another AWS account. | ||
| 801 | |||
| 802 | |||
| 803 | =head2 TagResource | ||
| 804 | |||
| 805 | =over | ||
| 806 | |||
| 807 | =item ResourceShareArn => Str | ||
| 808 | |||
| 809 | =item Tags => ArrayRef[L<Paws::RAM::Tag>] | ||
| 810 | |||
| 811 | |||
| 812 | =back | ||
| 813 | |||
| 814 | Each argument is described in detail in: L<Paws::RAM::TagResource> | ||
| 815 | |||
| 816 | Returns: a L<Paws::RAM::TagResourceResponse> instance | ||
| 817 | |||
| 818 | Adds the specified tags to the specified resource share that you own. | ||
| 819 | |||
| 820 | |||
| 821 | =head2 UntagResource | ||
| 822 | |||
| 823 | =over | ||
| 824 | |||
| 825 | =item ResourceShareArn => Str | ||
| 826 | |||
| 827 | =item TagKeys => ArrayRef[Str|Undef] | ||
| 828 | |||
| 829 | |||
| 830 | =back | ||
| 831 | |||
| 832 | Each argument is described in detail in: L<Paws::RAM::UntagResource> | ||
| 833 | |||
| 834 | Returns: a L<Paws::RAM::UntagResourceResponse> instance | ||
| 835 | |||
| 836 | Removes the specified tags from the specified resource share that you | ||
| 837 | own. | ||
| 838 | |||
| 839 | |||
| 840 | =head2 UpdateResourceShare | ||
| 841 | |||
| 842 | =over | ||
| 843 | |||
| 844 | =item ResourceShareArn => Str | ||
| 845 | |||
| 846 | =item [AllowExternalPrincipals => Bool] | ||
| 847 | |||
| 848 | =item [ClientToken => Str] | ||
| 849 | |||
| 850 | =item [Name => Str] | ||
| 851 | |||
| 852 | |||
| 853 | =back | ||
| 854 | |||
| 855 | Each argument is described in detail in: L<Paws::RAM::UpdateResourceShare> | ||
| 856 | |||
| 857 | Returns: a L<Paws::RAM::UpdateResourceShareResponse> instance | ||
| 858 | |||
| 859 | Updates the specified resource share that you own. | ||
| 860 | |||
| 861 | |||
| 862 | |||
| 863 | |||
| 864 | =head1 PAGINATORS | ||
| 865 | |||
| 866 | Paginator methods are helpers that repetively call methods that return partial results | ||
| 867 | |||
| 868 | =head2 GetAllResourcePolicies(sub { },ResourceArns => ArrayRef[Str|Undef], [MaxResults => Int, NextToken => Str, Principal => Str]) | ||
| 869 | |||
| 870 | =head2 GetAllResourcePolicies(ResourceArns => ArrayRef[Str|Undef], [MaxResults => Int, NextToken => Str, Principal => Str]) | ||
| 871 | |||
| 872 | |||
| 873 | If passed a sub as first parameter, it will call the sub for each element found in : | ||
| 874 | |||
| 875 | - policies, passing the object as the first parameter, and the string 'policies' as the second parameter | ||
| 876 | |||
| 877 | If not, it will return a a L<Paws::RAM::GetResourcePoliciesResponse> 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. | ||
| 878 | |||
| 879 | |||
| 880 | =head2 GetAllResourceShareAssociations(sub { },AssociationType => Str, [AssociationStatus => Str, MaxResults => Int, NextToken => Str, Principal => Str, ResourceArn => Str, ResourceShareArns => ArrayRef[Str|Undef]]) | ||
| 881 | |||
| 882 | =head2 GetAllResourceShareAssociations(AssociationType => Str, [AssociationStatus => Str, MaxResults => Int, NextToken => Str, Principal => Str, ResourceArn => Str, ResourceShareArns => ArrayRef[Str|Undef]]) | ||
| 883 | |||
| 884 | |||
| 885 | If passed a sub as first parameter, it will call the sub for each element found in : | ||
| 886 | |||
| 887 | - resourceShareAssociations, passing the object as the first parameter, and the string 'resourceShareAssociations' as the second parameter | ||
| 888 | |||
| 889 | If not, it will return a a L<Paws::RAM::GetResourceShareAssociationsResponse> 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. | ||
| 890 | |||
| 891 | |||
| 892 | =head2 GetAllResourceShareInvitations(sub { },[MaxResults => Int, NextToken => Str, ResourceShareArns => ArrayRef[Str|Undef], ResourceShareInvitationArns => ArrayRef[Str|Undef]]) | ||
| 893 | |||
| 894 | =head2 GetAllResourceShareInvitations([MaxResults => Int, NextToken => Str, ResourceShareArns => ArrayRef[Str|Undef], ResourceShareInvitationArns => ArrayRef[Str|Undef]]) | ||
| 895 | |||
| 896 | |||
| 897 | If passed a sub as first parameter, it will call the sub for each element found in : | ||
| 898 | |||
| 899 | - resourceShareInvitations, passing the object as the first parameter, and the string 'resourceShareInvitations' as the second parameter | ||
| 900 | |||
| 901 | If not, it will return a a L<Paws::RAM::GetResourceShareInvitationsResponse> 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. | ||
| 902 | |||
| 903 | |||
| 904 | =head2 GetAllResourceShares(sub { },ResourceOwner => Str, [MaxResults => Int, Name => Str, NextToken => Str, PermissionArn => Str, ResourceShareArns => ArrayRef[Str|Undef], ResourceShareStatus => Str, TagFilters => ArrayRef[L<Paws::RAM::TagFilter>]]) | ||
| 905 | |||
| 906 | =head2 GetAllResourceShares(ResourceOwner => Str, [MaxResults => Int, Name => Str, NextToken => Str, PermissionArn => Str, ResourceShareArns => ArrayRef[Str|Undef], ResourceShareStatus => Str, TagFilters => ArrayRef[L<Paws::RAM::TagFilter>]]) | ||
| 907 | |||
| 908 | |||
| 909 | If passed a sub as first parameter, it will call the sub for each element found in : | ||
| 910 | |||
| 911 | - resourceShares, passing the object as the first parameter, and the string 'resourceShares' as the second parameter | ||
| 912 | |||
| 913 | If not, it will return a a L<Paws::RAM::GetResourceSharesResponse> 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. | ||
| 914 | |||
| 915 | |||
| 916 | =head2 ListAllPrincipals(sub { },ResourceOwner => Str, [MaxResults => Int, NextToken => Str, Principals => ArrayRef[Str|Undef], ResourceArn => Str, ResourceShareArns => ArrayRef[Str|Undef], ResourceType => Str]) | ||
| 917 | |||
| 918 | =head2 ListAllPrincipals(ResourceOwner => Str, [MaxResults => Int, NextToken => Str, Principals => ArrayRef[Str|Undef], ResourceArn => Str, ResourceShareArns => ArrayRef[Str|Undef], ResourceType => Str]) | ||
| 919 | |||
| 920 | |||
| 921 | If passed a sub as first parameter, it will call the sub for each element found in : | ||
| 922 | |||
| 923 | - principals, passing the object as the first parameter, and the string 'principals' as the second parameter | ||
| 924 | |||
| 925 | If not, it will return a a L<Paws::RAM::ListPrincipalsResponse> 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. | ||
| 926 | |||
| 927 | |||
| 928 | =head2 ListAllResources(sub { },ResourceOwner => Str, [MaxResults => Int, NextToken => Str, Principal => Str, ResourceArns => ArrayRef[Str|Undef], ResourceShareArns => ArrayRef[Str|Undef], ResourceType => Str]) | ||
| 929 | |||
| 930 | =head2 ListAllResources(ResourceOwner => Str, [MaxResults => Int, NextToken => Str, Principal => Str, ResourceArns => ArrayRef[Str|Undef], ResourceShareArns => ArrayRef[Str|Undef], ResourceType => Str]) | ||
| 931 | |||
| 932 | |||
| 933 | If passed a sub as first parameter, it will call the sub for each element found in : | ||
| 934 | |||
| 935 | - resources, passing the object as the first parameter, and the string 'resources' as the second parameter | ||
| 936 | |||
| 937 | If not, it will return a a L<Paws::RAM::ListResourcesResponse> 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. | ||
| 938 | |||
| 939 | |||
| 940 | |||
| 941 | |||
| 942 | |||
| 943 | =head1 SEE ALSO | ||
| 944 | |||
| 945 | This service class forms part of L<Paws> | ||
| 946 | |||
| 947 | =head1 BUGS and CONTRIBUTIONS | ||
| 948 | |||
| 949 | The source code is located here: L<https://github.com/pplu/aws-sdk-perl> | ||
| 950 | |||
| 951 | Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues> | ||
| 952 | |||
| 953 | =cut | ||
| 954 |