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({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

acceptResourceShareInvitation({required String resourceShareInvitationArn, String? clientToken}) Future<AcceptResourceShareInvitationResponse>
Accepts an invitation to a resource share from another AWS account.
associateResourceShare({required String resourceShareArn, String? clientToken, List<String>? principals, List<String>? resourceArns}) Future<AssociateResourceShareResponse>
Associates the specified resource share with the specified principals and resources.
associateResourceSharePermission({required String permissionArn, required String resourceShareArn, String? clientToken, bool? replace}) Future<AssociateResourceSharePermissionResponse>
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.
createResourceShare({required String name, bool? allowExternalPrincipals, String? clientToken, List<String>? permissionArns, List<String>? principals, List<String>? resourceArns, List<Tag>? tags}) Future<CreateResourceShareResponse>
Creates a resource share.
deleteResourceShare({required String resourceShareArn, String? clientToken}) Future<DeleteResourceShareResponse>
Deletes the specified resource share.
disassociateResourceShare({required String resourceShareArn, String? clientToken, List<String>? principals, List<String>? resourceArns}) Future<DisassociateResourceShareResponse>
Disassociates the specified principals or resources from the specified resource share.
disassociateResourceSharePermission({required String permissionArn, required String resourceShareArn, String? clientToken}) Future<DisassociateResourceSharePermissionResponse>
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.
getResourceShareAssociations({required ResourceShareAssociationType associationType, ResourceShareAssociationStatus? associationStatus, int? maxResults, String? nextToken, String? principal, String? resourceArn, List<String>? resourceShareArns}) Future<GetResourceShareAssociationsResponse>
Gets the resources or principals for the resource shares that you own.
getResourceShareInvitations({int? maxResults, String? nextToken, List<String>? resourceShareArns, List<String>? resourceShareInvitationArns}) Future<GetResourceShareInvitationsResponse>
Gets the invitations for resource sharing that you've received.
getResourceShares({required ResourceOwner resourceOwner, int? maxResults, String? name, String? nextToken, List<String>? resourceShareArns, ResourceShareStatus? resourceShareStatus, List<TagFilter>? tagFilters}) Future<GetResourceSharesResponse>
Gets the resource shares that you own or the resource shares that are shared with you.
listPendingInvitationResources({required String resourceShareInvitationArn, 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, List<String>? resourceShareArns, 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, List<String>? resourceShareArns, String? resourceType}) Future<ListResourcesResponse>
Lists the resources that you added to a resource shares or the resources that are shared with you.
listResourceSharePermissions({required String resourceShareArn, int? maxResults, String? nextToken}) Future<ListResourceSharePermissionsResponse>
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
promoteResourceShareCreatedFromPolicy({required String resourceShareArn}) Future<PromoteResourceShareCreatedFromPolicyResponse>
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.
rejectResourceShareInvitation({required String resourceShareInvitationArn, String? clientToken}) Future<RejectResourceShareInvitationResponse>
Rejects an invitation to a resource share from another AWS account.
tagResource({required String resourceShareArn, 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 String resourceShareArn, required List<String> tagKeys}) Future<void>
Removes the specified tags from the specified resource share that you own.
updateResourceShare({required String resourceShareArn, bool? allowExternalPrincipals, String? clientToken, String? name}) Future<UpdateResourceShareResponse>
Updates the specified resource share that you own.

Operators

operator ==(Object other) bool
The equality operator.
inherited