ram (Resource Access Manager)

Implementation details for API ram

Coverage Overview

Resource Access Manager (ram) is supported by LocalStack only in the pro image.

AvailabilityTesting*
OperationImplementedImageInternal Test SuiteExternal Test SuiteTerraform ValidatedAWS ValidatedSnapshot TestedDetails
AcceptResourceShareInvitation✔️pro✔️✔️✔️Show Tests
AssociateResourceShare✔️pro✔️✔️✔️Show Tests
AssociateResourceSharePermission
CreatePermission✔️pro✔️✔️✔️Show Tests
CreatePermissionVersion
CreateResourceShare✔️pro✔️✔️✔️✔️Show Tests
DeletePermission✔️pro✔️✔️✔️Show Tests
DeletePermissionVersion
DeleteResourceShare✔️pro✔️✔️✔️Show Tests
DisassociateResourceShare✔️pro✔️✔️✔️Show Tests
DisassociateResourceSharePermission
EnableSharingWithAwsOrganization✔️pro✔️
GetPermission✔️pro✔️✔️✔️Show Tests
GetResourcePolicies
GetResourceShareAssociations
GetResourceShareInvitations✔️pro✔️✔️✔️Show Tests
GetResourceShares✔️pro✔️✔️✔️✔️Show Tests
ListPendingInvitationResources
ListPermissionAssociations
ListPermissionVersions
ListPermissions✔️pro✔️✔️✔️Show Tests
ListPrincipals
ListReplacePermissionAssociationsWork
ListResourceSharePermissions✔️pro✔️✔️✔️Show Tests
ListResourceTypes✔️pro✔️✔️✔️Show Tests
ListResources✔️pro
PromotePermissionCreatedFromPolicy
PromoteResourceShareCreatedFromPolicy
RejectResourceShareInvitation✔️pro✔️✔️✔️Show Tests
ReplacePermissionAssociations
SetDefaultPermissionVersion
TagResource✔️pro✔️✔️✔️Show Tests
UntagResource✔️pro✔️✔️✔️Show Tests
UpdateResourceShare✔️pro✔️✔️✔️Show Tests

Terminology

  • Internal Test Suite: tested by LocalStack's internal integration test suite
  • External Test Suite: covered by an external integration test suite, that runs against LocalStack
  • Terraform Validated: operation tested with Terraform
  • AWS Validated: the integration test that includes this operation call was validated against AWS
  • Snapshot Tested: the operation is part of a snapshot parity test, which verifies the responses by LocalStack and AWS are the same

Testing Details

This section gives an overview about the internal integration test suite and the specific test cases that recorded the API call.

How to read the test details?

For each operation we put up a list of the related integration test cases.
Those operation calls have been recorded during the execution of the outlined test cases. Some calls might be internal, i.e., they are not explicitly called in the test, but are triggered implicitly by the LocalStack framework.

  • Parameters: The tests are ordered by the parameters used, which are highlighted in bold.
  • Test Details: LocalStack Community or LocalStack Pro indicates where the test originates. For each test you see:
    • test name
    • status code returned (which is the expected one for the test case)
    • information about validation:
      • AWS validated the test is validated against AWS, meaning it run successfully against real AWS as well
      • Snapshot Tested this is a snapshot parity test, meaning the responses are validated against AWS


AcceptResourceShareInvitation

Parameters: resourceShareInvitationArn
  • LocalStack Pro
    • test_resource_share_invitations LocalStack Pro: tests/aws/services/ram/test_ram.py::TestResourceAccessManager::test_resource_share_invitations HTTP Status Code: 200 AWS validated Snapshot Tested
    • test_resource_share_invitations LocalStack Pro: tests/aws/services/ram/test_ram.py::TestResourceAccessManager::test_resource_share_invitations HTTP Status Code: 400 (ResourceShareInvitationAlreadyAcceptedException) AWS validated Snapshot Tested

AssociateResourceShare

Parameters: principals, resourceArns, resourceShareArn
  • LocalStack Pro
    • test_create_resource_share LocalStack Pro: tests/aws/services/ram/test_ram.py::TestResourceAccessManager::test_create_resource_share HTTP Status Code: 200 AWS validated Snapshot Tested
    • test_subnet_sharing LocalStack Pro: tests/aws/services/ram/test_ram.py::TestResourceAccessManager::test_subnet_sharing HTTP Status Code: 200

CreatePermission

Parameters: name, policyTemplate, resourceType
  • LocalStack Pro
    • test_create_resource_share LocalStack Pro: tests/aws/services/ram/test_ram.py::TestResourceAccessManager::test_create_resource_share HTTP Status Code: 200 AWS validated Snapshot Tested
    • test_create_permission LocalStack Pro: tests/aws/services/ram/test_ram.py::TestResourceAccessManager::test_create_permission HTTP Status Code: 400 (InvalidParameterException) AWS validated Snapshot Tested
    • test_create_permission LocalStack Pro: tests/aws/services/ram/test_ram.py::TestResourceAccessManager::test_create_permission HTTP Status Code: 400 (InvalidPolicyException) AWS validated Snapshot Tested
    • test_create_permission LocalStack Pro: tests/aws/services/ram/test_ram.py::TestResourceAccessManager::test_create_permission HTTP Status Code: 409 (PermissionAlreadyExistsException) AWS validated Snapshot Tested
Parameters: name, policyTemplate, resourceType, tags
  • LocalStack Pro
    • test_create_permission LocalStack Pro: tests/aws/services/ram/test_ram.py::TestResourceAccessManager::test_create_permission HTTP Status Code: 200 AWS validated Snapshot Tested
    • test_tags LocalStack Pro: tests/aws/services/ram/test_ram.py::TestResourceAccessManager::test_tags HTTP Status Code: 200 AWS validated Snapshot Tested

CreateResourceShare

Parameters: name
  • LocalStack Pro
    • test_create_resource_share LocalStack Pro: tests/aws/services/ram/test_ram.py::TestResourceAccessManager::test_create_resource_share HTTP Status Code: 200 AWS validated Snapshot Tested
    • test_tags LocalStack Pro: tests/aws/services/ram/test_ram.py::TestResourceAccessManager::test_tags HTTP Status Code: 200 AWS validated Snapshot Tested
Parameters: name, permissionArns
  • LocalStack Pro
    • test_create_resource_share LocalStack Pro: tests/aws/services/ram/test_ram.py::TestResourceAccessManager::test_create_resource_share HTTP Status Code: 200 AWS validated Snapshot Tested
    • test_create_resource_share LocalStack Pro: tests/aws/services/ram/test_ram.py::TestResourceAccessManager::test_create_resource_share HTTP Status Code: 400 (InvalidParameterException) AWS validated Snapshot Tested
Parameters: name, principals
  • LocalStack Pro
    • test_create_resource_share LocalStack Pro: tests/aws/services/ram/test_ram.py::TestResourceAccessManager::test_create_resource_share HTTP Status Code: 200 AWS validated Snapshot Tested
    • test_resource_share_invitations LocalStack Pro: tests/aws/services/ram/test_ram.py::TestResourceAccessManager::test_resource_share_invitations HTTP Status Code: 200 AWS validated Snapshot Tested
    • test_create_resource_share LocalStack Pro: tests/aws/services/ram/test_ram.py::TestResourceAccessManager::test_create_resource_share HTTP Status Code: 400 (InvalidParameterException) AWS validated Snapshot Tested
Parameters: name, principals, resourceArns
  • LocalStack Pro
    • test_subnet_sharing LocalStack Pro: tests/aws/services/ram/test_ram.py::TestResourceAccessManager::test_subnet_sharing HTTP Status Code: 200
Parameters: name, resourceArns
  • LocalStack Pro
    • test_create_resource_share LocalStack Pro: tests/aws/services/ram/test_ram.py::TestResourceAccessManager::test_create_resource_share HTTP Status Code: 200 AWS validated Snapshot Tested

DeletePermission

Parameters: permissionArn
  • LocalStack Pro
    • test_create_permission LocalStack Pro: tests/aws/services/ram/test_ram.py::TestResourceAccessManager::test_create_permission HTTP Status Code: 200 AWS validated Snapshot Tested
    • test_create_resource_share LocalStack Pro: tests/aws/services/ram/test_ram.py::TestResourceAccessManager::test_create_resource_share HTTP Status Code: 200 AWS validated Snapshot Tested
    • test_tags LocalStack Pro: tests/aws/services/ram/test_ram.py::TestResourceAccessManager::test_tags HTTP Status Code: 200 AWS validated Snapshot Tested

DeleteResourceShare

Parameters: resourceShareArn
  • LocalStack Pro
    • test_create_resource_share LocalStack Pro: tests/aws/services/ram/test_ram.py::TestResourceAccessManager::test_create_resource_share HTTP Status Code: 200 AWS validated Snapshot Tested
    • test_resource_share_invitations LocalStack Pro: tests/aws/services/ram/test_ram.py::TestResourceAccessManager::test_resource_share_invitations HTTP Status Code: 200 AWS validated Snapshot Tested
    • test_subnet_sharing LocalStack Pro: tests/aws/services/ram/test_ram.py::TestResourceAccessManager::test_subnet_sharing HTTP Status Code: 200
    • test_tags LocalStack Pro: tests/aws/services/ram/test_ram.py::TestResourceAccessManager::test_tags HTTP Status Code: 200 AWS validated Snapshot Tested

DisassociateResourceShare

Parameters: principals, resourceArns, resourceShareArn
  • LocalStack Pro
    • test_create_resource_share LocalStack Pro: tests/aws/services/ram/test_ram.py::TestResourceAccessManager::test_create_resource_share HTTP Status Code: 200 AWS validated Snapshot Tested
    • test_subnet_sharing LocalStack Pro: tests/aws/services/ram/test_ram.py::TestResourceAccessManager::test_subnet_sharing HTTP Status Code: 200

GetPermission

Parameters: permissionArn
  • LocalStack Pro
    • test_create_permission LocalStack Pro: tests/aws/services/ram/test_ram.py::TestResourceAccessManager::test_create_permission HTTP Status Code: 200 AWS validated Snapshot Tested

GetResourceShareInvitations

Parameters: resourceShareArns
  • LocalStack Pro
    • test_resource_share_invitations LocalStack Pro: tests/aws/services/ram/test_ram.py::TestResourceAccessManager::test_resource_share_invitations HTTP Status Code: 200 AWS validated Snapshot Tested
Parameters: resourceShareInvitationArns
  • LocalStack Pro
    • test_resource_share_invitations LocalStack Pro: tests/aws/services/ram/test_ram.py::TestResourceAccessManager::test_resource_share_invitations HTTP Status Code: 200 AWS validated Snapshot Tested

GetResourceShares

Parameters: resourceOwner
  • LocalStack Pro
    • test_create_resource_share LocalStack Pro: tests/aws/services/ram/test_ram.py::TestResourceAccessManager::test_create_resource_share HTTP Status Code: 200 AWS validated Snapshot Tested

ListPermissions

Parameters: permissionType
  • LocalStack Pro
    • test_aws_managed_permissions LocalStack Pro: tests/aws/services/ram/test_ram.py::TestResourceAccessManager::test_aws_managed_permissions HTTP Status Code: 200 AWS validated
    • test_create_permission LocalStack Pro: tests/aws/services/ram/test_ram.py::TestResourceAccessManager::test_create_permission HTTP Status Code: 200 AWS validated Snapshot Tested
    • test_create_permission LocalStack Pro: tests/aws/services/ram/test_ram.py::TestResourceAccessManager::test_create_permission HTTP Status Code: 400 (InvalidParameterException) AWS validated Snapshot Tested

ListResourceSharePermissions

Parameters: resourceShareArn
  • LocalStack Pro
    • test_create_resource_share LocalStack Pro: tests/aws/services/ram/test_ram.py::TestResourceAccessManager::test_create_resource_share HTTP Status Code: 200 AWS validated Snapshot Tested

ListResourceTypes

Parameters: - (without any parameters)
  • LocalStack Pro
    • test_list_resource_types LocalStack Pro: tests/aws/services/ram/test_ram.py::TestResourceAccessManager::test_list_resource_types HTTP Status Code: 200 AWS validated Snapshot Tested

RejectResourceShareInvitation

Parameters: resourceShareInvitationArn
  • LocalStack Pro
    • test_resource_share_invitations LocalStack Pro: tests/aws/services/ram/test_ram.py::TestResourceAccessManager::test_resource_share_invitations HTTP Status Code: 200 AWS validated Snapshot Tested
    • test_resource_share_invitations LocalStack Pro: tests/aws/services/ram/test_ram.py::TestResourceAccessManager::test_resource_share_invitations HTTP Status Code: 400 (ResourceShareInvitationAlreadyRejectedException) AWS validated Snapshot Tested

TagResource

Parameters: resourceArn, resourceShareArn, tags
  • LocalStack Pro
    • test_tags LocalStack Pro: tests/aws/services/ram/test_ram.py::TestResourceAccessManager::test_tags HTTP Status Code: 400 (InvalidParameterException) AWS validated Snapshot Tested
Parameters: resourceArn, tags
  • LocalStack Pro
    • test_tags LocalStack Pro: tests/aws/services/ram/test_ram.py::TestResourceAccessManager::test_tags HTTP Status Code: 200 AWS validated Snapshot Tested
Parameters: resourceShareArn, tags
  • LocalStack Pro
    • test_tags LocalStack Pro: tests/aws/services/ram/test_ram.py::TestResourceAccessManager::test_tags HTTP Status Code: 200 AWS validated Snapshot Tested

UntagResource

Parameters: resourceArn, resourceShareArn, tagKeys
  • LocalStack Pro
    • test_tags LocalStack Pro: tests/aws/services/ram/test_ram.py::TestResourceAccessManager::test_tags HTTP Status Code: 400 (InvalidParameterException) AWS validated Snapshot Tested
Parameters: resourceArn, tagKeys
  • LocalStack Pro
    • test_tags LocalStack Pro: tests/aws/services/ram/test_ram.py::TestResourceAccessManager::test_tags HTTP Status Code: 200 AWS validated Snapshot Tested
Parameters: resourceShareArn, tagKeys
  • LocalStack Pro
    • test_tags LocalStack Pro: tests/aws/services/ram/test_ram.py::TestResourceAccessManager::test_tags HTTP Status Code: 200 AWS validated Snapshot Tested

UpdateResourceShare

Parameters: name, resourceShareArn
  • LocalStack Pro
    • test_create_resource_share LocalStack Pro: tests/aws/services/ram/test_ram.py::TestResourceAccessManager::test_create_resource_share HTTP Status Code: 200 AWS validated Snapshot Tested