Class: Aws::RAM::Client
- Inherits:
-
Seahorse::Client::Base
- Object
- Seahorse::Client::Base
- Aws::RAM::Client
- Includes:
- ClientStubs
- Defined in:
- gems/aws-sdk-ram/lib/aws-sdk-ram/client.rb
Overview
An API client for RAM. To construct a client, you need to configure a :region
and :credentials
.
client = Aws::RAM::Client.new(
region: region_name,
credentials: credentials,
# ...
)
For details on configuring region and credentials see the developer guide.
See #initialize for a full list of supported configuration options.
Instance Attribute Summary
Attributes inherited from Seahorse::Client::Base
API Operations collapse
-
#accept_resource_share_invitation(params = {}) ⇒ Types::AcceptResourceShareInvitationResponse
Accepts an invitation to a resource share from another Amazon Web Services account.
-
#associate_resource_share(params = {}) ⇒ Types::AssociateResourceShareResponse
Adds the specified list of principals and list of resources to a resource share.
-
#associate_resource_share_permission(params = {}) ⇒ Types::AssociateResourceSharePermissionResponse
Adds or replaces the RAM permission for a resource type included in a resource share.
-
#create_resource_share(params = {}) ⇒ Types::CreateResourceShareResponse
Creates a resource share.
-
#delete_resource_share(params = {}) ⇒ Types::DeleteResourceShareResponse
Deletes the specified resource share.
-
#disassociate_resource_share(params = {}) ⇒ Types::DisassociateResourceShareResponse
Disassociates the specified principals or resources from the specified resource share.
-
#disassociate_resource_share_permission(params = {}) ⇒ Types::DisassociateResourceSharePermissionResponse
Disassociates an RAM permission from a resource share.
-
#enable_sharing_with_aws_organization(params = {}) ⇒ Types::EnableSharingWithAwsOrganizationResponse
Enables resource sharing within your organization in Organizations.
-
#get_permission(params = {}) ⇒ Types::GetPermissionResponse
Gets the contents of an RAM permission in JSON format.
-
#get_resource_policies(params = {}) ⇒ Types::GetResourcePoliciesResponse
Retrieves the resource policies for the specified resources that you own and have shared.
-
#get_resource_share_associations(params = {}) ⇒ Types::GetResourceShareAssociationsResponse
Retrieves the resource and principal associations for resource shares that you own.
-
#get_resource_share_invitations(params = {}) ⇒ Types::GetResourceShareInvitationsResponse
Retrieves details about invitations that you have received for resource shares.
-
#get_resource_shares(params = {}) ⇒ Types::GetResourceSharesResponse
Retrieves details about the resource shares that you own or that are shared with you.
-
#list_pending_invitation_resources(params = {}) ⇒ Types::ListPendingInvitationResourcesResponse
Lists the resources in a resource share that is shared with you but for which the invitation is still
PENDING
. -
#list_permission_versions(params = {}) ⇒ Types::ListPermissionVersionsResponse
Lists the available versions of the specified RAM permission.
-
#list_permissions(params = {}) ⇒ Types::ListPermissionsResponse
Retrieves a list of available RAM permissions that you can use for the supported resource types.
-
#list_principals(params = {}) ⇒ Types::ListPrincipalsResponse
Lists the principals that you are sharing resources with or that are sharing resources with you.
-
#list_resource_share_permissions(params = {}) ⇒ Types::ListResourceSharePermissionsResponse
Lists the RAM permissions that are associated with a resource share.
-
#list_resource_types(params = {}) ⇒ Types::ListResourceTypesResponse
Lists the resource types that can be shared by RAM.
-
#list_resources(params = {}) ⇒ Types::ListResourcesResponse
Lists the resources that you added to a resource share or the resources that are shared with you.
-
#promote_resource_share_created_from_policy(params = {}) ⇒ Types::PromoteResourceShareCreatedFromPolicyResponse
When you attach a resource-based permission policy to a resource, it automatically creates a resource share.
-
#reject_resource_share_invitation(params = {}) ⇒ Types::RejectResourceShareInvitationResponse
Rejects an invitation to a resource share from another Amazon Web Services account.
-
#tag_resource(params = {}) ⇒ Struct
Adds the specified tag keys and values to the specified resource share.
-
#untag_resource(params = {}) ⇒ Struct
Removes the specified tag key and value pairs from the specified resource share.
-
#update_resource_share(params = {}) ⇒ Types::UpdateResourceShareResponse
Modifies some of the properties of the specified resource share.
Instance Method Summary collapse
-
#initialize(options) ⇒ Client
constructor
A new instance of Client.
Methods included from ClientStubs
#api_requests, #stub_data, #stub_responses
Methods inherited from Seahorse::Client::Base
add_plugin, api, clear_plugins, define, new, #operation_names, plugins, remove_plugin, set_api, set_plugins
Methods included from Seahorse::Client::HandlerBuilder
#handle, #handle_request, #handle_response
Constructor Details
#initialize(options) ⇒ Client
Returns a new instance of Client.
365 366 367 |
# File 'gems/aws-sdk-ram/lib/aws-sdk-ram/client.rb', line 365 def initialize(*args) super end |
Instance Method Details
#accept_resource_share_invitation(params = {}) ⇒ Types::AcceptResourceShareInvitationResponse
Accepts an invitation to a resource share from another Amazon Web Services account. After you accept the invitation, the resources included in the resource share are available to interact with in the relevant Amazon Web Services Management Consoles and tools.
437 438 439 440 |
# File 'gems/aws-sdk-ram/lib/aws-sdk-ram/client.rb', line 437 def accept_resource_share_invitation(params = {}, = {}) req = build_request(:accept_resource_share_invitation, params) req.send_request() end |
#associate_resource_share(params = {}) ⇒ Types::AssociateResourceShareResponse
Adds the specified list of principals and list of resources to a resource share. Principals that already have access to this resource share immediately receive access to the added resources. Newly added principals immediately receive access to the resources shared in this resource share.
547 548 549 550 |
# File 'gems/aws-sdk-ram/lib/aws-sdk-ram/client.rb', line 547 def associate_resource_share(params = {}, = {}) req = build_request(:associate_resource_share, params) req.send_request() end |
#associate_resource_share_permission(params = {}) ⇒ Types::AssociateResourceSharePermissionResponse
Adds or replaces the RAM permission for a resource type included in a resource share. You can have exactly one permission associated with each resource type in the resource share. You can add a new RAM permission only if there are currently no resources of that resource type currently in the resource share.
637 638 639 640 |
# File 'gems/aws-sdk-ram/lib/aws-sdk-ram/client.rb', line 637 def (params = {}, = {}) req = build_request(:associate_resource_share_permission, params) req.send_request() end |
#create_resource_share(params = {}) ⇒ Types::CreateResourceShareResponse
Creates a resource share. You can provide a list of the Amazon Resource Names (ARNs) for the resources that you want to share, a list of principals you want to share the resources with, and the permissions to grant those principals.
777 778 779 780 |
# File 'gems/aws-sdk-ram/lib/aws-sdk-ram/client.rb', line 777 def create_resource_share(params = {}, = {}) req = build_request(:create_resource_share, params) req.send_request() end |
#delete_resource_share(params = {}) ⇒ Types::DeleteResourceShareResponse
Deletes the specified resource share. This doesn't delete any of the resources that were associated with the resource share; it only stops the sharing of those resources outside of the Amazon Web Services account that created them.
831 832 833 834 |
# File 'gems/aws-sdk-ram/lib/aws-sdk-ram/client.rb', line 831 def delete_resource_share(params = {}, = {}) req = build_request(:delete_resource_share, params) req.send_request() end |
#disassociate_resource_share(params = {}) ⇒ Types::DisassociateResourceShareResponse
Disassociates the specified principals or resources from the specified resource share.
935 936 937 938 |
# File 'gems/aws-sdk-ram/lib/aws-sdk-ram/client.rb', line 935 def disassociate_resource_share(params = {}, = {}) req = build_request(:disassociate_resource_share, params) req.send_request() end |
#disassociate_resource_share_permission(params = {}) ⇒ Types::DisassociateResourceSharePermissionResponse
Disassociates an RAM permission from a resource share. Permission changes take effect immediately. You can remove a RAM permission from a resource share only if there are currently no resources of the relevant resource type currently attached to the resource share.
999 1000 1001 1002 |
# File 'gems/aws-sdk-ram/lib/aws-sdk-ram/client.rb', line 999 def (params = {}, = {}) req = build_request(:disassociate_resource_share_permission, params) req.send_request() end |
#enable_sharing_with_aws_organization(params = {}) ⇒ Types::EnableSharingWithAwsOrganizationResponse
Enables resource sharing within your organization in Organizations. Calling this operation enables RAM to retrieve information about the organization and its structure. This lets you share resources with all of the accounts in an organization by specifying the organization's ID, or all of the accounts in an organizational unit (OU) by specifying the OU's ID. Until you enable sharing within the organization, you can specify only individual Amazon Web Services accounts, or for supported resource types, IAM users and roles.
You must call this operation from an IAM user or role in the organization's management account.
1028 1029 1030 1031 |
# File 'gems/aws-sdk-ram/lib/aws-sdk-ram/client.rb', line 1028 def enable_sharing_with_aws_organization(params = {}, = {}) req = build_request(:enable_sharing_with_aws_organization, params) req.send_request() end |
#get_permission(params = {}) ⇒ Types::GetPermissionResponse
Gets the contents of an RAM permission in JSON format.
1079 1080 1081 1082 |
# File 'gems/aws-sdk-ram/lib/aws-sdk-ram/client.rb', line 1079 def (params = {}, = {}) req = build_request(:get_permission, params) req.send_request() end |
#get_resource_policies(params = {}) ⇒ Types::GetResourcePoliciesResponse
Retrieves the resource policies for the specified resources that you own and have shared.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
1143 1144 1145 1146 |
# File 'gems/aws-sdk-ram/lib/aws-sdk-ram/client.rb', line 1143 def get_resource_policies(params = {}, = {}) req = build_request(:get_resource_policies, params) req.send_request() end |
#get_resource_share_associations(params = {}) ⇒ Types::GetResourceShareAssociationsResponse
Retrieves the resource and principal associations for resource shares that you own.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
1253 1254 1255 1256 |
# File 'gems/aws-sdk-ram/lib/aws-sdk-ram/client.rb', line 1253 def get_resource_share_associations(params = {}, = {}) req = build_request(:get_resource_share_associations, params) req.send_request() end |
#get_resource_share_invitations(params = {}) ⇒ Types::GetResourceShareInvitationsResponse
Retrieves details about invitations that you have received for resource shares.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
1340 1341 1342 1343 |
# File 'gems/aws-sdk-ram/lib/aws-sdk-ram/client.rb', line 1340 def get_resource_share_invitations(params = {}, = {}) req = build_request(:get_resource_share_invitations, params) req.send_request() end |
#get_resource_shares(params = {}) ⇒ Types::GetResourceSharesResponse
Retrieves details about the resource shares that you own or that are shared with you.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
1452 1453 1454 1455 |
# File 'gems/aws-sdk-ram/lib/aws-sdk-ram/client.rb', line 1452 def get_resource_shares(params = {}, = {}) req = build_request(:get_resource_shares, params) req.send_request() end |
#list_pending_invitation_resources(params = {}) ⇒ Types::ListPendingInvitationResourcesResponse
Lists the resources in a resource share that is shared with you but
for which the invitation is still PENDING
. That means that you
haven't accepted or rejected the invitation and the invitation
hasn't expired.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
1538 1539 1540 1541 |
# File 'gems/aws-sdk-ram/lib/aws-sdk-ram/client.rb', line 1538 def list_pending_invitation_resources(params = {}, = {}) req = build_request(:list_pending_invitation_resources, params) req.send_request() end |
#list_permission_versions(params = {}) ⇒ Types::ListPermissionVersionsResponse
Lists the available versions of the specified RAM permission.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
1607 1608 1609 1610 |
# File 'gems/aws-sdk-ram/lib/aws-sdk-ram/client.rb', line 1607 def (params = {}, = {}) req = build_request(:list_permission_versions, params) req.send_request() end |
#list_permissions(params = {}) ⇒ Types::ListPermissionsResponse
Retrieves a list of available RAM permissions that you can use for the supported resource types.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
1673 1674 1675 1676 |
# File 'gems/aws-sdk-ram/lib/aws-sdk-ram/client.rb', line 1673 def (params = {}, = {}) req = build_request(:list_permissions, params) req.send_request() end |
#list_principals(params = {}) ⇒ Types::ListPrincipalsResponse
Lists the principals that you are sharing resources with or that are sharing resources with you.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
1798 1799 1800 1801 |
# File 'gems/aws-sdk-ram/lib/aws-sdk-ram/client.rb', line 1798 def list_principals(params = {}, = {}) req = build_request(:list_principals, params) req.send_request() end |
#list_resource_share_permissions(params = {}) ⇒ Types::ListResourceSharePermissionsResponse
Lists the RAM permissions that are associated with a resource share.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
1865 1866 1867 1868 |
# File 'gems/aws-sdk-ram/lib/aws-sdk-ram/client.rb', line 1865 def (params = {}, = {}) req = build_request(:list_resource_share_permissions, params) req.send_request() end |
#list_resource_types(params = {}) ⇒ Types::ListResourceTypesResponse
Lists the resource types that can be shared by RAM.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
1933 1934 1935 1936 |
# File 'gems/aws-sdk-ram/lib/aws-sdk-ram/client.rb', line 1933 def list_resource_types(params = {}, = {}) req = build_request(:list_resource_types, params) req.send_request() end |
#list_resources(params = {}) ⇒ Types::ListResourcesResponse
Lists the resources that you added to a resource share or the resources that are shared with you.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
2049 2050 2051 2052 |
# File 'gems/aws-sdk-ram/lib/aws-sdk-ram/client.rb', line 2049 def list_resources(params = {}, = {}) req = build_request(:list_resources, params) req.send_request() end |
#promote_resource_share_created_from_policy(params = {}) ⇒ Types::PromoteResourceShareCreatedFromPolicyResponse
When you attach a resource-based permission policy to a resource, it automatically creates a resource share. However, resource shares created this way are visible only to the resource share owner, and the resource share can't be modified in RAM.
You can use this operation to promote the resource share to a full RAM resource share. When you promote a resource share, you can then manage the resource share in RAM and it becomes visible to all of the principals you shared it with.
2090 2091 2092 2093 |
# File 'gems/aws-sdk-ram/lib/aws-sdk-ram/client.rb', line 2090 def promote_resource_share_created_from_policy(params = {}, = {}) req = build_request(:promote_resource_share_created_from_policy, params) req.send_request() end |
#reject_resource_share_invitation(params = {}) ⇒ Types::RejectResourceShareInvitationResponse
Rejects an invitation to a resource share from another Amazon Web Services account.
2159 2160 2161 2162 |
# File 'gems/aws-sdk-ram/lib/aws-sdk-ram/client.rb', line 2159 def reject_resource_share_invitation(params = {}, = {}) req = build_request(:reject_resource_share_invitation, params) req.send_request() end |
#tag_resource(params = {}) ⇒ Struct
Adds the specified tag keys and values to the specified resource share. The tags are attached only to the resource share, not to the resources that are in the resource share.
2199 2200 2201 2202 |
# File 'gems/aws-sdk-ram/lib/aws-sdk-ram/client.rb', line 2199 def tag_resource(params = {}, = {}) req = build_request(:tag_resource, params) req.send_request() end |
#untag_resource(params = {}) ⇒ Struct
Removes the specified tag key and value pairs from the specified resource share.
2232 2233 2234 2235 |
# File 'gems/aws-sdk-ram/lib/aws-sdk-ram/client.rb', line 2232 def untag_resource(params = {}, = {}) req = build_request(:untag_resource, params) req.send_request() end |
#update_resource_share(params = {}) ⇒ Types::UpdateResourceShareResponse
Modifies some of the properties of the specified resource share.
2304 2305 2306 2307 |
# File 'gems/aws-sdk-ram/lib/aws-sdk-ram/client.rb', line 2304 def update_resource_share(params = {}, = {}) req = build_request(:update_resource_share, params) req.send_request() end |