RAM class
Use AWS Resource Access Manager to share AWS resources between AWS accounts. To share a resource, you create a resource share, associate the resource with the resource share, and specify the principals that can access the resources associated with the resource share. The following principals are supported: AWS accounts, organizational units (OU) from AWS Organizations, and organizations from AWS Organizations.
For more information, see the AWS Resource Access Manager User Guide.
Constructors
- RAM.new({required String region, AwsClientCredentials? credentials, AwsClientCredentialsProvider? credentialsProvider, Client? client, String? endpointUrl})
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
- Accepts an invitation to a resource share from another AWS account.
- Associates the specified resource share with the specified principals and resources.
- Associates a permission with a resource share.
-
close(
) → void - Closes the internal HTTP client if none was provided at creation. If a client was passed as a constructor argument, this becomes a noop.
- Creates a resource share.
- Deletes the specified resource share.
- Disassociates the specified principals or resources from the specified resource share.
- Disassociates an AWS RAM permission from a resource share.
-
enableSharingWithAwsOrganization(
) → Future< EnableSharingWithAwsOrganizationResponse> - Enables resource sharing within your AWS Organization.
-
getPermission(
{required String permissionArn, int? permissionVersion}) → Future< GetPermissionResponse> - Gets the contents of an AWS RAM permission in JSON format.
-
getResourcePolicies(
{required List< String> resourceArns, int? maxResults, String? nextToken, String? principal}) → Future<GetResourcePoliciesResponse> - Gets the policies for the specified resources that you own and have shared.
- Gets the resources or principals for the resource shares that you own.
- Gets the invitations for resource sharing that you've received.
- Gets the resource shares that you own or the resource shares that are shared with you.
-
listPendingInvitationResources(
{int? maxResults, String? nextToken}) → Future< ListPendingInvitationResourcesResponse> - Lists the resources in a resource share that is shared with you but that the invitation is still pending for.
-
listPermissions(
{int? maxResults, String? nextToken, String? resourceType}) → Future< ListPermissionsResponse> - Lists the AWS RAM permissions.
-
listPrincipals(
{required ResourceOwner resourceOwner, int? maxResults, String? nextToken, List< String> ? principals, String? resourceArn, String? resourceType}) → Future<ListPrincipalsResponse> - Lists the principals that you have shared resources with or that have shared resources with you.
-
listResources(
{required ResourceOwner resourceOwner, int? maxResults, String? nextToken, String? principal, List< String> ? resourceArns, String? resourceType}) → Future<ListResourcesResponse> - Lists the resources that you added to a resource shares or the resources that are shared with you.
- Lists the AWS RAM permissions that are associated with a resource share.
-
listResourceTypes(
{int? maxResults, String? nextToken}) → Future< ListResourceTypesResponse> - Lists the shareable resource types supported by AWS RAM.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
- Resource shares that were created by attaching a policy to a resource are visible only to the resource share owner, and the resource share cannot be modified in AWS RAM.
- Rejects an invitation to a resource share from another AWS account.
-
tagResource(
{required List< Tag> tags}) → Future<void> - Adds the specified tags to the specified resource share that you own.
-
toString(
) → String -
A string representation of this object.
inherited
-
untagResource(
{required List< String> tagKeys}) → Future<void> - Removes the specified tags from the specified resource share that you own.
- Updates the specified resource share that you own.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited