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.
348 349 350 |
# File 'gems/aws-sdk-ram/lib/aws-sdk-ram/client.rb', line 348 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.
420 421 422 423 |
# File 'gems/aws-sdk-ram/lib/aws-sdk-ram/client.rb', line 420 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.
530 531 532 533 |
# File 'gems/aws-sdk-ram/lib/aws-sdk-ram/client.rb', line 530 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.
620 621 622 623 |
# File 'gems/aws-sdk-ram/lib/aws-sdk-ram/client.rb', line 620 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.
760 761 762 763 |
# File 'gems/aws-sdk-ram/lib/aws-sdk-ram/client.rb', line 760 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.
814 815 816 817 |
# File 'gems/aws-sdk-ram/lib/aws-sdk-ram/client.rb', line 814 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.
918 919 920 921 |
# File 'gems/aws-sdk-ram/lib/aws-sdk-ram/client.rb', line 918 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.
982 983 984 985 |
# File 'gems/aws-sdk-ram/lib/aws-sdk-ram/client.rb', line 982 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.
1011 1012 1013 1014 |
# File 'gems/aws-sdk-ram/lib/aws-sdk-ram/client.rb', line 1011 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.
1062 1063 1064 1065 |
# File 'gems/aws-sdk-ram/lib/aws-sdk-ram/client.rb', line 1062 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.
1126 1127 1128 1129 |
# File 'gems/aws-sdk-ram/lib/aws-sdk-ram/client.rb', line 1126 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.
1236 1237 1238 1239 |
# File 'gems/aws-sdk-ram/lib/aws-sdk-ram/client.rb', line 1236 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.
1323 1324 1325 1326 |
# File 'gems/aws-sdk-ram/lib/aws-sdk-ram/client.rb', line 1323 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.
1435 1436 1437 1438 |
# File 'gems/aws-sdk-ram/lib/aws-sdk-ram/client.rb', line 1435 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.
1521 1522 1523 1524 |
# File 'gems/aws-sdk-ram/lib/aws-sdk-ram/client.rb', line 1521 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.
1590 1591 1592 1593 |
# File 'gems/aws-sdk-ram/lib/aws-sdk-ram/client.rb', line 1590 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.
1656 1657 1658 1659 |
# File 'gems/aws-sdk-ram/lib/aws-sdk-ram/client.rb', line 1656 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.
1781 1782 1783 1784 |
# File 'gems/aws-sdk-ram/lib/aws-sdk-ram/client.rb', line 1781 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.
1848 1849 1850 1851 |
# File 'gems/aws-sdk-ram/lib/aws-sdk-ram/client.rb', line 1848 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.
1916 1917 1918 1919 |
# File 'gems/aws-sdk-ram/lib/aws-sdk-ram/client.rb', line 1916 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.
2032 2033 2034 2035 |
# File 'gems/aws-sdk-ram/lib/aws-sdk-ram/client.rb', line 2032 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.
2073 2074 2075 2076 |
# File 'gems/aws-sdk-ram/lib/aws-sdk-ram/client.rb', line 2073 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.
2142 2143 2144 2145 |
# File 'gems/aws-sdk-ram/lib/aws-sdk-ram/client.rb', line 2142 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.
2182 2183 2184 2185 |
# File 'gems/aws-sdk-ram/lib/aws-sdk-ram/client.rb', line 2182 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.
2215 2216 2217 2218 |
# File 'gems/aws-sdk-ram/lib/aws-sdk-ram/client.rb', line 2215 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.
2287 2288 2289 2290 |
# File 'gems/aws-sdk-ram/lib/aws-sdk-ram/client.rb', line 2287 def update_resource_share(params = {}, = {}) req = build_request(:update_resource_share, params) req.send_request() end |