@Generated(value="software.amazon.awssdk:codegen") public interface RamAsyncClient extends SdkClient
builder()
method.
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 resource. The following principals are supported:
The ID of an AWS account
The Amazon Resource Name (ARN) of an OU from AWS Organizations
The Amazon Resource Name (ARN) of an organization from AWS Organizations
If you specify an AWS account that doesn't exist in the same organization as the account that owns the resource share, the owner of the specified account receives an invitation to accept the resource share. After the owner accepts the invitation, they can access the resources in the resource share. An administrator of the specified account can use IAM policies to restrict access resources in the resource share.
Modifier and Type | Field and Description |
---|---|
static String |
SERVICE_NAME |
Modifier and Type | Method and Description |
---|---|
default CompletableFuture<AcceptResourceShareInvitationResponse> |
acceptResourceShareInvitation(AcceptResourceShareInvitationRequest acceptResourceShareInvitationRequest)
Accepts an invitation to a resource share from another AWS account.
|
default CompletableFuture<AcceptResourceShareInvitationResponse> |
acceptResourceShareInvitation(Consumer<AcceptResourceShareInvitationRequest.Builder> acceptResourceShareInvitationRequest)
Accepts an invitation to a resource share from another AWS account.
|
default CompletableFuture<AssociateResourceShareResponse> |
associateResourceShare(AssociateResourceShareRequest associateResourceShareRequest)
Associates the specified resource share with the specified principals and resources.
|
default CompletableFuture<AssociateResourceShareResponse> |
associateResourceShare(Consumer<AssociateResourceShareRequest.Builder> associateResourceShareRequest)
Associates the specified resource share with the specified principals and resources.
|
static RamAsyncClientBuilder |
builder()
Create a builder that can be used to configure and create a
RamAsyncClient . |
static RamAsyncClient |
create()
Create a
RamAsyncClient with the region loaded from the
DefaultAwsRegionProviderChain and credentials loaded from the
DefaultCredentialsProvider . |
default CompletableFuture<CreateResourceShareResponse> |
createResourceShare(Consumer<CreateResourceShareRequest.Builder> createResourceShareRequest)
Creates a resource share.
|
default CompletableFuture<CreateResourceShareResponse> |
createResourceShare(CreateResourceShareRequest createResourceShareRequest)
Creates a resource share.
|
default CompletableFuture<DeleteResourceShareResponse> |
deleteResourceShare(Consumer<DeleteResourceShareRequest.Builder> deleteResourceShareRequest)
Deletes the specified resource share.
|
default CompletableFuture<DeleteResourceShareResponse> |
deleteResourceShare(DeleteResourceShareRequest deleteResourceShareRequest)
Deletes the specified resource share.
|
default CompletableFuture<DisassociateResourceShareResponse> |
disassociateResourceShare(Consumer<DisassociateResourceShareRequest.Builder> disassociateResourceShareRequest)
Disassociates the specified principals or resources from the specified resource share.
|
default CompletableFuture<DisassociateResourceShareResponse> |
disassociateResourceShare(DisassociateResourceShareRequest disassociateResourceShareRequest)
Disassociates the specified principals or resources from the specified resource share.
|
default CompletableFuture<EnableSharingWithAwsOrganizationResponse> |
enableSharingWithAwsOrganization(Consumer<EnableSharingWithAwsOrganizationRequest.Builder> enableSharingWithAwsOrganizationRequest)
Enables resource sharing within your organization.
|
default CompletableFuture<EnableSharingWithAwsOrganizationResponse> |
enableSharingWithAwsOrganization(EnableSharingWithAwsOrganizationRequest enableSharingWithAwsOrganizationRequest)
Enables resource sharing within your organization.
|
default CompletableFuture<GetResourcePoliciesResponse> |
getResourcePolicies(Consumer<GetResourcePoliciesRequest.Builder> getResourcePoliciesRequest)
Gets the policies for the specifies resources.
|
default CompletableFuture<GetResourcePoliciesResponse> |
getResourcePolicies(GetResourcePoliciesRequest getResourcePoliciesRequest)
Gets the policies for the specifies resources.
|
default GetResourcePoliciesPublisher |
getResourcePoliciesPaginator(Consumer<GetResourcePoliciesRequest.Builder> getResourcePoliciesRequest)
Gets the policies for the specifies resources.
|
default GetResourcePoliciesPublisher |
getResourcePoliciesPaginator(GetResourcePoliciesRequest getResourcePoliciesRequest)
Gets the policies for the specifies resources.
|
default CompletableFuture<GetResourceShareAssociationsResponse> |
getResourceShareAssociations(Consumer<GetResourceShareAssociationsRequest.Builder> getResourceShareAssociationsRequest)
Gets the associations for the specified resource share.
|
default CompletableFuture<GetResourceShareAssociationsResponse> |
getResourceShareAssociations(GetResourceShareAssociationsRequest getResourceShareAssociationsRequest)
Gets the associations for the specified resource share.
|
default GetResourceShareAssociationsPublisher |
getResourceShareAssociationsPaginator(Consumer<GetResourceShareAssociationsRequest.Builder> getResourceShareAssociationsRequest)
Gets the associations for the specified resource share.
|
default GetResourceShareAssociationsPublisher |
getResourceShareAssociationsPaginator(GetResourceShareAssociationsRequest getResourceShareAssociationsRequest)
Gets the associations for the specified resource share.
|
default CompletableFuture<GetResourceShareInvitationsResponse> |
getResourceShareInvitations()
Gets the specified invitations for resource sharing.
|
default CompletableFuture<GetResourceShareInvitationsResponse> |
getResourceShareInvitations(Consumer<GetResourceShareInvitationsRequest.Builder> getResourceShareInvitationsRequest)
Gets the specified invitations for resource sharing.
|
default CompletableFuture<GetResourceShareInvitationsResponse> |
getResourceShareInvitations(GetResourceShareInvitationsRequest getResourceShareInvitationsRequest)
Gets the specified invitations for resource sharing.
|
default GetResourceShareInvitationsPublisher |
getResourceShareInvitationsPaginator()
Gets the specified invitations for resource sharing.
|
default GetResourceShareInvitationsPublisher |
getResourceShareInvitationsPaginator(Consumer<GetResourceShareInvitationsRequest.Builder> getResourceShareInvitationsRequest)
Gets the specified invitations for resource sharing.
|
default GetResourceShareInvitationsPublisher |
getResourceShareInvitationsPaginator(GetResourceShareInvitationsRequest getResourceShareInvitationsRequest)
Gets the specified invitations for resource sharing.
|
default CompletableFuture<GetResourceSharesResponse> |
getResourceShares(Consumer<GetResourceSharesRequest.Builder> getResourceSharesRequest)
Gets the specified resource shares or all of your resource shares.
|
default CompletableFuture<GetResourceSharesResponse> |
getResourceShares(GetResourceSharesRequest getResourceSharesRequest)
Gets the specified resource shares or all of your resource shares.
|
default GetResourceSharesPublisher |
getResourceSharesPaginator(Consumer<GetResourceSharesRequest.Builder> getResourceSharesRequest)
Gets the specified resource shares or all of your resource shares.
|
default GetResourceSharesPublisher |
getResourceSharesPaginator(GetResourceSharesRequest getResourceSharesRequest)
Gets the specified resource shares or all of your resource shares.
|
default CompletableFuture<ListPrincipalsResponse> |
listPrincipals(Consumer<ListPrincipalsRequest.Builder> listPrincipalsRequest)
Lists the principals with access to the specified resource.
|
default CompletableFuture<ListPrincipalsResponse> |
listPrincipals(ListPrincipalsRequest listPrincipalsRequest)
Lists the principals with access to the specified resource.
|
default ListPrincipalsPublisher |
listPrincipalsPaginator(Consumer<ListPrincipalsRequest.Builder> listPrincipalsRequest)
Lists the principals with access to the specified resource.
|
default ListPrincipalsPublisher |
listPrincipalsPaginator(ListPrincipalsRequest listPrincipalsRequest)
Lists the principals with access to the specified resource.
|
default CompletableFuture<ListResourcesResponse> |
listResources(Consumer<ListResourcesRequest.Builder> listResourcesRequest)
Lists the resources that the specified principal can access.
|
default CompletableFuture<ListResourcesResponse> |
listResources(ListResourcesRequest listResourcesRequest)
Lists the resources that the specified principal can access.
|
default ListResourcesPublisher |
listResourcesPaginator(Consumer<ListResourcesRequest.Builder> listResourcesRequest)
Lists the resources that the specified principal can access.
|
default ListResourcesPublisher |
listResourcesPaginator(ListResourcesRequest listResourcesRequest)
Lists the resources that the specified principal can access.
|
default CompletableFuture<RejectResourceShareInvitationResponse> |
rejectResourceShareInvitation(Consumer<RejectResourceShareInvitationRequest.Builder> rejectResourceShareInvitationRequest)
Rejects an invitation to a resource share from another AWS account.
|
default CompletableFuture<RejectResourceShareInvitationResponse> |
rejectResourceShareInvitation(RejectResourceShareInvitationRequest rejectResourceShareInvitationRequest)
Rejects an invitation to a resource share from another AWS account.
|
default CompletableFuture<TagResourceResponse> |
tagResource(Consumer<TagResourceRequest.Builder> tagResourceRequest)
Adds the specified tags to the specified resource share.
|
default CompletableFuture<TagResourceResponse> |
tagResource(TagResourceRequest tagResourceRequest)
Adds the specified tags to the specified resource share.
|
default CompletableFuture<UntagResourceResponse> |
untagResource(Consumer<UntagResourceRequest.Builder> untagResourceRequest)
Removes the specified tags from the specified resource share.
|
default CompletableFuture<UntagResourceResponse> |
untagResource(UntagResourceRequest untagResourceRequest)
Removes the specified tags from the specified resource share.
|
default CompletableFuture<UpdateResourceShareResponse> |
updateResourceShare(Consumer<UpdateResourceShareRequest.Builder> updateResourceShareRequest)
Updates the specified resource share.
|
default CompletableFuture<UpdateResourceShareResponse> |
updateResourceShare(UpdateResourceShareRequest updateResourceShareRequest)
Updates the specified resource share.
|
serviceName
close
static final String SERVICE_NAME
static RamAsyncClient create()
RamAsyncClient
with the region loaded from the
DefaultAwsRegionProviderChain
and credentials loaded from the
DefaultCredentialsProvider
.static RamAsyncClientBuilder builder()
RamAsyncClient
.default CompletableFuture<AcceptResourceShareInvitationResponse> acceptResourceShareInvitation(AcceptResourceShareInvitationRequest acceptResourceShareInvitationRequest)
Accepts an invitation to a resource share from another AWS account.
acceptResourceShareInvitationRequest
- default CompletableFuture<AcceptResourceShareInvitationResponse> acceptResourceShareInvitation(Consumer<AcceptResourceShareInvitationRequest.Builder> acceptResourceShareInvitationRequest)
Accepts an invitation to a resource share from another AWS account.
This is a convenience which creates an instance of the AcceptResourceShareInvitationRequest.Builder
avoiding the need to create one manually via AcceptResourceShareInvitationRequest.builder()
acceptResourceShareInvitationRequest
- A Consumer
that will call methods on AcceptResourceShareInvitationRequest.Builder
to
create a request.default CompletableFuture<AssociateResourceShareResponse> associateResourceShare(AssociateResourceShareRequest associateResourceShareRequest)
Associates the specified resource share with the specified principals and resources.
associateResourceShareRequest
- default CompletableFuture<AssociateResourceShareResponse> associateResourceShare(Consumer<AssociateResourceShareRequest.Builder> associateResourceShareRequest)
Associates the specified resource share with the specified principals and resources.
This is a convenience which creates an instance of the AssociateResourceShareRequest.Builder
avoiding the
need to create one manually via AssociateResourceShareRequest.builder()
associateResourceShareRequest
- A Consumer
that will call methods on AssociateResourceShareRequest.Builder
to create a
request.default CompletableFuture<CreateResourceShareResponse> createResourceShare(CreateResourceShareRequest createResourceShareRequest)
Creates a resource share.
createResourceShareRequest
- default CompletableFuture<CreateResourceShareResponse> createResourceShare(Consumer<CreateResourceShareRequest.Builder> createResourceShareRequest)
Creates a resource share.
This is a convenience which creates an instance of the CreateResourceShareRequest.Builder
avoiding the
need to create one manually via CreateResourceShareRequest.builder()
createResourceShareRequest
- A Consumer
that will call methods on CreateResourceShareRequest.Builder
to create a
request.default CompletableFuture<DeleteResourceShareResponse> deleteResourceShare(DeleteResourceShareRequest deleteResourceShareRequest)
Deletes the specified resource share.
deleteResourceShareRequest
- default CompletableFuture<DeleteResourceShareResponse> deleteResourceShare(Consumer<DeleteResourceShareRequest.Builder> deleteResourceShareRequest)
Deletes the specified resource share.
This is a convenience which creates an instance of the DeleteResourceShareRequest.Builder
avoiding the
need to create one manually via DeleteResourceShareRequest.builder()
deleteResourceShareRequest
- A Consumer
that will call methods on DeleteResourceShareRequest.Builder
to create a
request.default CompletableFuture<DisassociateResourceShareResponse> disassociateResourceShare(DisassociateResourceShareRequest disassociateResourceShareRequest)
Disassociates the specified principals or resources from the specified resource share.
disassociateResourceShareRequest
- default CompletableFuture<DisassociateResourceShareResponse> disassociateResourceShare(Consumer<DisassociateResourceShareRequest.Builder> disassociateResourceShareRequest)
Disassociates the specified principals or resources from the specified resource share.
This is a convenience which creates an instance of the DisassociateResourceShareRequest.Builder
avoiding
the need to create one manually via DisassociateResourceShareRequest.builder()
disassociateResourceShareRequest
- A Consumer
that will call methods on DisassociateResourceShareRequest.Builder
to create a
request.default CompletableFuture<EnableSharingWithAwsOrganizationResponse> enableSharingWithAwsOrganization(EnableSharingWithAwsOrganizationRequest enableSharingWithAwsOrganizationRequest)
Enables resource sharing within your organization.
enableSharingWithAwsOrganizationRequest
- default CompletableFuture<EnableSharingWithAwsOrganizationResponse> enableSharingWithAwsOrganization(Consumer<EnableSharingWithAwsOrganizationRequest.Builder> enableSharingWithAwsOrganizationRequest)
Enables resource sharing within your organization.
This is a convenience which creates an instance of the EnableSharingWithAwsOrganizationRequest.Builder
avoiding the need to create one manually via EnableSharingWithAwsOrganizationRequest.builder()
enableSharingWithAwsOrganizationRequest
- A Consumer
that will call methods on EnableSharingWithAwsOrganizationRequest.Builder
to
create a request.default CompletableFuture<GetResourcePoliciesResponse> getResourcePolicies(GetResourcePoliciesRequest getResourcePoliciesRequest)
Gets the policies for the specifies resources.
getResourcePoliciesRequest
- default CompletableFuture<GetResourcePoliciesResponse> getResourcePolicies(Consumer<GetResourcePoliciesRequest.Builder> getResourcePoliciesRequest)
Gets the policies for the specifies resources.
This is a convenience which creates an instance of the GetResourcePoliciesRequest.Builder
avoiding the
need to create one manually via GetResourcePoliciesRequest.builder()
getResourcePoliciesRequest
- A Consumer
that will call methods on GetResourcePoliciesRequest.Builder
to create a
request.default GetResourcePoliciesPublisher getResourcePoliciesPaginator(GetResourcePoliciesRequest getResourcePoliciesRequest)
Gets the policies for the specifies resources.
This is a variant of
getResourcePolicies(software.amazon.awssdk.services.ram.model.GetResourcePoliciesRequest)
operation. The
return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will
internally handle making service calls for you.
When the operation is called, an instance of this class is returned. At this point, no service calls are made yet
and so there is no guarantee that the request is valid. If there are errors in your request, you will see the
failures only after you start streaming the data. The subscribe method should be called as a request to start
streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber)
. Each call to the subscribe
method will result in a new Subscription
i.e., a new contract to stream data from the
starting request.
The following are few ways to use the response class:
1) Using the subscribe helper method
software.amazon.awssdk.services.ram.paginators.GetResourcePoliciesPublisher publisher = client.getResourcePoliciesPaginator(request);
CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
future.get();
2) Using a custom subscriber
software.amazon.awssdk.services.ram.paginators.GetResourcePoliciesPublisher publisher = client.getResourcePoliciesPaginator(request);
publisher.subscribe(new Subscriber<software.amazon.awssdk.services.ram.model.GetResourcePoliciesResponse>() {
public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
public void onNext(software.amazon.awssdk.services.ram.model.GetResourcePoliciesResponse response) { //... };
});
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.
Note: If you prefer to have control on service calls, use the
getResourcePolicies(software.amazon.awssdk.services.ram.model.GetResourcePoliciesRequest)
operation.
getResourcePoliciesRequest
- default GetResourcePoliciesPublisher getResourcePoliciesPaginator(Consumer<GetResourcePoliciesRequest.Builder> getResourcePoliciesRequest)
Gets the policies for the specifies resources.
This is a variant of
getResourcePolicies(software.amazon.awssdk.services.ram.model.GetResourcePoliciesRequest)
operation. The
return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will
internally handle making service calls for you.
When the operation is called, an instance of this class is returned. At this point, no service calls are made yet
and so there is no guarantee that the request is valid. If there are errors in your request, you will see the
failures only after you start streaming the data. The subscribe method should be called as a request to start
streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber)
. Each call to the subscribe
method will result in a new Subscription
i.e., a new contract to stream data from the
starting request.
The following are few ways to use the response class:
1) Using the subscribe helper method
software.amazon.awssdk.services.ram.paginators.GetResourcePoliciesPublisher publisher = client.getResourcePoliciesPaginator(request);
CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
future.get();
2) Using a custom subscriber
software.amazon.awssdk.services.ram.paginators.GetResourcePoliciesPublisher publisher = client.getResourcePoliciesPaginator(request);
publisher.subscribe(new Subscriber<software.amazon.awssdk.services.ram.model.GetResourcePoliciesResponse>() {
public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
public void onNext(software.amazon.awssdk.services.ram.model.GetResourcePoliciesResponse response) { //... };
});
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.
Note: If you prefer to have control on service calls, use the
getResourcePolicies(software.amazon.awssdk.services.ram.model.GetResourcePoliciesRequest)
operation.
This is a convenience which creates an instance of the GetResourcePoliciesRequest.Builder
avoiding the
need to create one manually via GetResourcePoliciesRequest.builder()
getResourcePoliciesRequest
- A Consumer
that will call methods on GetResourcePoliciesRequest.Builder
to create a
request.default CompletableFuture<GetResourceShareAssociationsResponse> getResourceShareAssociations(GetResourceShareAssociationsRequest getResourceShareAssociationsRequest)
Gets the associations for the specified resource share.
getResourceShareAssociationsRequest
- default CompletableFuture<GetResourceShareAssociationsResponse> getResourceShareAssociations(Consumer<GetResourceShareAssociationsRequest.Builder> getResourceShareAssociationsRequest)
Gets the associations for the specified resource share.
This is a convenience which creates an instance of the GetResourceShareAssociationsRequest.Builder
avoiding the need to create one manually via GetResourceShareAssociationsRequest.builder()
getResourceShareAssociationsRequest
- A Consumer
that will call methods on GetResourceShareAssociationsRequest.Builder
to create
a request.default GetResourceShareAssociationsPublisher getResourceShareAssociationsPaginator(GetResourceShareAssociationsRequest getResourceShareAssociationsRequest)
Gets the associations for the specified resource share.
This is a variant of
getResourceShareAssociations(software.amazon.awssdk.services.ram.model.GetResourceShareAssociationsRequest)
operation. The return type is a custom publisher that can be subscribed to request a stream of response pages.
SDK will internally handle making service calls for you.
When the operation is called, an instance of this class is returned. At this point, no service calls are made yet
and so there is no guarantee that the request is valid. If there are errors in your request, you will see the
failures only after you start streaming the data. The subscribe method should be called as a request to start
streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber)
. Each call to the subscribe
method will result in a new Subscription
i.e., a new contract to stream data from the
starting request.
The following are few ways to use the response class:
1) Using the subscribe helper method
software.amazon.awssdk.services.ram.paginators.GetResourceShareAssociationsPublisher publisher = client.getResourceShareAssociationsPaginator(request);
CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
future.get();
2) Using a custom subscriber
software.amazon.awssdk.services.ram.paginators.GetResourceShareAssociationsPublisher publisher = client.getResourceShareAssociationsPaginator(request);
publisher.subscribe(new Subscriber<software.amazon.awssdk.services.ram.model.GetResourceShareAssociationsResponse>() {
public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
public void onNext(software.amazon.awssdk.services.ram.model.GetResourceShareAssociationsResponse response) { //... };
});
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.
Note: If you prefer to have control on service calls, use the
getResourceShareAssociations(software.amazon.awssdk.services.ram.model.GetResourceShareAssociationsRequest)
operation.
getResourceShareAssociationsRequest
- default GetResourceShareAssociationsPublisher getResourceShareAssociationsPaginator(Consumer<GetResourceShareAssociationsRequest.Builder> getResourceShareAssociationsRequest)
Gets the associations for the specified resource share.
This is a variant of
getResourceShareAssociations(software.amazon.awssdk.services.ram.model.GetResourceShareAssociationsRequest)
operation. The return type is a custom publisher that can be subscribed to request a stream of response pages.
SDK will internally handle making service calls for you.
When the operation is called, an instance of this class is returned. At this point, no service calls are made yet
and so there is no guarantee that the request is valid. If there are errors in your request, you will see the
failures only after you start streaming the data. The subscribe method should be called as a request to start
streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber)
. Each call to the subscribe
method will result in a new Subscription
i.e., a new contract to stream data from the
starting request.
The following are few ways to use the response class:
1) Using the subscribe helper method
software.amazon.awssdk.services.ram.paginators.GetResourceShareAssociationsPublisher publisher = client.getResourceShareAssociationsPaginator(request);
CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
future.get();
2) Using a custom subscriber
software.amazon.awssdk.services.ram.paginators.GetResourceShareAssociationsPublisher publisher = client.getResourceShareAssociationsPaginator(request);
publisher.subscribe(new Subscriber<software.amazon.awssdk.services.ram.model.GetResourceShareAssociationsResponse>() {
public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
public void onNext(software.amazon.awssdk.services.ram.model.GetResourceShareAssociationsResponse response) { //... };
});
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.
Note: If you prefer to have control on service calls, use the
getResourceShareAssociations(software.amazon.awssdk.services.ram.model.GetResourceShareAssociationsRequest)
operation.
This is a convenience which creates an instance of the GetResourceShareAssociationsRequest.Builder
avoiding the need to create one manually via GetResourceShareAssociationsRequest.builder()
getResourceShareAssociationsRequest
- A Consumer
that will call methods on GetResourceShareAssociationsRequest.Builder
to create
a request.default CompletableFuture<GetResourceShareInvitationsResponse> getResourceShareInvitations(GetResourceShareInvitationsRequest getResourceShareInvitationsRequest)
Gets the specified invitations for resource sharing.
getResourceShareInvitationsRequest
- default CompletableFuture<GetResourceShareInvitationsResponse> getResourceShareInvitations(Consumer<GetResourceShareInvitationsRequest.Builder> getResourceShareInvitationsRequest)
Gets the specified invitations for resource sharing.
This is a convenience which creates an instance of the GetResourceShareInvitationsRequest.Builder
avoiding the need to create one manually via GetResourceShareInvitationsRequest.builder()
getResourceShareInvitationsRequest
- A Consumer
that will call methods on GetResourceShareInvitationsRequest.Builder
to create
a request.default CompletableFuture<GetResourceShareInvitationsResponse> getResourceShareInvitations()
Gets the specified invitations for resource sharing.
default GetResourceShareInvitationsPublisher getResourceShareInvitationsPaginator()
Gets the specified invitations for resource sharing.
This is a variant of
getResourceShareInvitations(software.amazon.awssdk.services.ram.model.GetResourceShareInvitationsRequest)
operation. The return type is a custom publisher that can be subscribed to request a stream of response pages.
SDK will internally handle making service calls for you.
When the operation is called, an instance of this class is returned. At this point, no service calls are made yet
and so there is no guarantee that the request is valid. If there are errors in your request, you will see the
failures only after you start streaming the data. The subscribe method should be called as a request to start
streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber)
. Each call to the subscribe
method will result in a new Subscription
i.e., a new contract to stream data from the
starting request.
The following are few ways to use the response class:
1) Using the subscribe helper method
software.amazon.awssdk.services.ram.paginators.GetResourceShareInvitationsPublisher publisher = client.getResourceShareInvitationsPaginator(request);
CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
future.get();
2) Using a custom subscriber
software.amazon.awssdk.services.ram.paginators.GetResourceShareInvitationsPublisher publisher = client.getResourceShareInvitationsPaginator(request);
publisher.subscribe(new Subscriber<software.amazon.awssdk.services.ram.model.GetResourceShareInvitationsResponse>() {
public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
public void onNext(software.amazon.awssdk.services.ram.model.GetResourceShareInvitationsResponse response) { //... };
});
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.
Note: If you prefer to have control on service calls, use the
getResourceShareInvitations(software.amazon.awssdk.services.ram.model.GetResourceShareInvitationsRequest)
operation.
default GetResourceShareInvitationsPublisher getResourceShareInvitationsPaginator(GetResourceShareInvitationsRequest getResourceShareInvitationsRequest)
Gets the specified invitations for resource sharing.
This is a variant of
getResourceShareInvitations(software.amazon.awssdk.services.ram.model.GetResourceShareInvitationsRequest)
operation. The return type is a custom publisher that can be subscribed to request a stream of response pages.
SDK will internally handle making service calls for you.
When the operation is called, an instance of this class is returned. At this point, no service calls are made yet
and so there is no guarantee that the request is valid. If there are errors in your request, you will see the
failures only after you start streaming the data. The subscribe method should be called as a request to start
streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber)
. Each call to the subscribe
method will result in a new Subscription
i.e., a new contract to stream data from the
starting request.
The following are few ways to use the response class:
1) Using the subscribe helper method
software.amazon.awssdk.services.ram.paginators.GetResourceShareInvitationsPublisher publisher = client.getResourceShareInvitationsPaginator(request);
CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
future.get();
2) Using a custom subscriber
software.amazon.awssdk.services.ram.paginators.GetResourceShareInvitationsPublisher publisher = client.getResourceShareInvitationsPaginator(request);
publisher.subscribe(new Subscriber<software.amazon.awssdk.services.ram.model.GetResourceShareInvitationsResponse>() {
public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
public void onNext(software.amazon.awssdk.services.ram.model.GetResourceShareInvitationsResponse response) { //... };
});
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.
Note: If you prefer to have control on service calls, use the
getResourceShareInvitations(software.amazon.awssdk.services.ram.model.GetResourceShareInvitationsRequest)
operation.
getResourceShareInvitationsRequest
- default GetResourceShareInvitationsPublisher getResourceShareInvitationsPaginator(Consumer<GetResourceShareInvitationsRequest.Builder> getResourceShareInvitationsRequest)
Gets the specified invitations for resource sharing.
This is a variant of
getResourceShareInvitations(software.amazon.awssdk.services.ram.model.GetResourceShareInvitationsRequest)
operation. The return type is a custom publisher that can be subscribed to request a stream of response pages.
SDK will internally handle making service calls for you.
When the operation is called, an instance of this class is returned. At this point, no service calls are made yet
and so there is no guarantee that the request is valid. If there are errors in your request, you will see the
failures only after you start streaming the data. The subscribe method should be called as a request to start
streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber)
. Each call to the subscribe
method will result in a new Subscription
i.e., a new contract to stream data from the
starting request.
The following are few ways to use the response class:
1) Using the subscribe helper method
software.amazon.awssdk.services.ram.paginators.GetResourceShareInvitationsPublisher publisher = client.getResourceShareInvitationsPaginator(request);
CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
future.get();
2) Using a custom subscriber
software.amazon.awssdk.services.ram.paginators.GetResourceShareInvitationsPublisher publisher = client.getResourceShareInvitationsPaginator(request);
publisher.subscribe(new Subscriber<software.amazon.awssdk.services.ram.model.GetResourceShareInvitationsResponse>() {
public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
public void onNext(software.amazon.awssdk.services.ram.model.GetResourceShareInvitationsResponse response) { //... };
});
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.
Note: If you prefer to have control on service calls, use the
getResourceShareInvitations(software.amazon.awssdk.services.ram.model.GetResourceShareInvitationsRequest)
operation.
This is a convenience which creates an instance of the GetResourceShareInvitationsRequest.Builder
avoiding the need to create one manually via GetResourceShareInvitationsRequest.builder()
getResourceShareInvitationsRequest
- A Consumer
that will call methods on GetResourceShareInvitationsRequest.Builder
to create
a request.default CompletableFuture<GetResourceSharesResponse> getResourceShares(GetResourceSharesRequest getResourceSharesRequest)
Gets the specified resource shares or all of your resource shares.
getResourceSharesRequest
- default CompletableFuture<GetResourceSharesResponse> getResourceShares(Consumer<GetResourceSharesRequest.Builder> getResourceSharesRequest)
Gets the specified resource shares or all of your resource shares.
This is a convenience which creates an instance of the GetResourceSharesRequest.Builder
avoiding the need
to create one manually via GetResourceSharesRequest.builder()
getResourceSharesRequest
- A Consumer
that will call methods on GetResourceSharesRequest.Builder
to create a request.default GetResourceSharesPublisher getResourceSharesPaginator(GetResourceSharesRequest getResourceSharesRequest)
Gets the specified resource shares or all of your resource shares.
This is a variant of
getResourceShares(software.amazon.awssdk.services.ram.model.GetResourceSharesRequest)
operation. The
return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will
internally handle making service calls for you.
When the operation is called, an instance of this class is returned. At this point, no service calls are made yet
and so there is no guarantee that the request is valid. If there are errors in your request, you will see the
failures only after you start streaming the data. The subscribe method should be called as a request to start
streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber)
. Each call to the subscribe
method will result in a new Subscription
i.e., a new contract to stream data from the
starting request.
The following are few ways to use the response class:
1) Using the subscribe helper method
software.amazon.awssdk.services.ram.paginators.GetResourceSharesPublisher publisher = client.getResourceSharesPaginator(request);
CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
future.get();
2) Using a custom subscriber
software.amazon.awssdk.services.ram.paginators.GetResourceSharesPublisher publisher = client.getResourceSharesPaginator(request);
publisher.subscribe(new Subscriber<software.amazon.awssdk.services.ram.model.GetResourceSharesResponse>() {
public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
public void onNext(software.amazon.awssdk.services.ram.model.GetResourceSharesResponse response) { //... };
});
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.
Note: If you prefer to have control on service calls, use the
getResourceShares(software.amazon.awssdk.services.ram.model.GetResourceSharesRequest)
operation.
getResourceSharesRequest
- default GetResourceSharesPublisher getResourceSharesPaginator(Consumer<GetResourceSharesRequest.Builder> getResourceSharesRequest)
Gets the specified resource shares or all of your resource shares.
This is a variant of
getResourceShares(software.amazon.awssdk.services.ram.model.GetResourceSharesRequest)
operation. The
return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will
internally handle making service calls for you.
When the operation is called, an instance of this class is returned. At this point, no service calls are made yet
and so there is no guarantee that the request is valid. If there are errors in your request, you will see the
failures only after you start streaming the data. The subscribe method should be called as a request to start
streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber)
. Each call to the subscribe
method will result in a new Subscription
i.e., a new contract to stream data from the
starting request.
The following are few ways to use the response class:
1) Using the subscribe helper method
software.amazon.awssdk.services.ram.paginators.GetResourceSharesPublisher publisher = client.getResourceSharesPaginator(request);
CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
future.get();
2) Using a custom subscriber
software.amazon.awssdk.services.ram.paginators.GetResourceSharesPublisher publisher = client.getResourceSharesPaginator(request);
publisher.subscribe(new Subscriber<software.amazon.awssdk.services.ram.model.GetResourceSharesResponse>() {
public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
public void onNext(software.amazon.awssdk.services.ram.model.GetResourceSharesResponse response) { //... };
});
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.
Note: If you prefer to have control on service calls, use the
getResourceShares(software.amazon.awssdk.services.ram.model.GetResourceSharesRequest)
operation.
This is a convenience which creates an instance of the GetResourceSharesRequest.Builder
avoiding the need
to create one manually via GetResourceSharesRequest.builder()
getResourceSharesRequest
- A Consumer
that will call methods on GetResourceSharesRequest.Builder
to create a request.default CompletableFuture<ListPrincipalsResponse> listPrincipals(ListPrincipalsRequest listPrincipalsRequest)
Lists the principals with access to the specified resource.
listPrincipalsRequest
- default CompletableFuture<ListPrincipalsResponse> listPrincipals(Consumer<ListPrincipalsRequest.Builder> listPrincipalsRequest)
Lists the principals with access to the specified resource.
This is a convenience which creates an instance of the ListPrincipalsRequest.Builder
avoiding the need to
create one manually via ListPrincipalsRequest.builder()
listPrincipalsRequest
- A Consumer
that will call methods on ListPrincipalsRequest.Builder
to create a request.default ListPrincipalsPublisher listPrincipalsPaginator(ListPrincipalsRequest listPrincipalsRequest)
Lists the principals with access to the specified resource.
This is a variant of listPrincipals(software.amazon.awssdk.services.ram.model.ListPrincipalsRequest)
operation. The return type is a custom publisher that can be subscribed to request a stream of response pages.
SDK will internally handle making service calls for you.
When the operation is called, an instance of this class is returned. At this point, no service calls are made yet
and so there is no guarantee that the request is valid. If there are errors in your request, you will see the
failures only after you start streaming the data. The subscribe method should be called as a request to start
streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber)
. Each call to the subscribe
method will result in a new Subscription
i.e., a new contract to stream data from the
starting request.
The following are few ways to use the response class:
1) Using the subscribe helper method
software.amazon.awssdk.services.ram.paginators.ListPrincipalsPublisher publisher = client.listPrincipalsPaginator(request);
CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
future.get();
2) Using a custom subscriber
software.amazon.awssdk.services.ram.paginators.ListPrincipalsPublisher publisher = client.listPrincipalsPaginator(request);
publisher.subscribe(new Subscriber<software.amazon.awssdk.services.ram.model.ListPrincipalsResponse>() {
public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
public void onNext(software.amazon.awssdk.services.ram.model.ListPrincipalsResponse response) { //... };
});
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.
Note: If you prefer to have control on service calls, use the
listPrincipals(software.amazon.awssdk.services.ram.model.ListPrincipalsRequest)
operation.
listPrincipalsRequest
- default ListPrincipalsPublisher listPrincipalsPaginator(Consumer<ListPrincipalsRequest.Builder> listPrincipalsRequest)
Lists the principals with access to the specified resource.
This is a variant of listPrincipals(software.amazon.awssdk.services.ram.model.ListPrincipalsRequest)
operation. The return type is a custom publisher that can be subscribed to request a stream of response pages.
SDK will internally handle making service calls for you.
When the operation is called, an instance of this class is returned. At this point, no service calls are made yet
and so there is no guarantee that the request is valid. If there are errors in your request, you will see the
failures only after you start streaming the data. The subscribe method should be called as a request to start
streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber)
. Each call to the subscribe
method will result in a new Subscription
i.e., a new contract to stream data from the
starting request.
The following are few ways to use the response class:
1) Using the subscribe helper method
software.amazon.awssdk.services.ram.paginators.ListPrincipalsPublisher publisher = client.listPrincipalsPaginator(request);
CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
future.get();
2) Using a custom subscriber
software.amazon.awssdk.services.ram.paginators.ListPrincipalsPublisher publisher = client.listPrincipalsPaginator(request);
publisher.subscribe(new Subscriber<software.amazon.awssdk.services.ram.model.ListPrincipalsResponse>() {
public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
public void onNext(software.amazon.awssdk.services.ram.model.ListPrincipalsResponse response) { //... };
});
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.
Note: If you prefer to have control on service calls, use the
listPrincipals(software.amazon.awssdk.services.ram.model.ListPrincipalsRequest)
operation.
This is a convenience which creates an instance of the ListPrincipalsRequest.Builder
avoiding the need to
create one manually via ListPrincipalsRequest.builder()
listPrincipalsRequest
- A Consumer
that will call methods on ListPrincipalsRequest.Builder
to create a request.default CompletableFuture<ListResourcesResponse> listResources(ListResourcesRequest listResourcesRequest)
Lists the resources that the specified principal can access.
listResourcesRequest
- default CompletableFuture<ListResourcesResponse> listResources(Consumer<ListResourcesRequest.Builder> listResourcesRequest)
Lists the resources that the specified principal can access.
This is a convenience which creates an instance of the ListResourcesRequest.Builder
avoiding the need to
create one manually via ListResourcesRequest.builder()
listResourcesRequest
- A Consumer
that will call methods on ListResourcesRequest.Builder
to create a request.default ListResourcesPublisher listResourcesPaginator(ListResourcesRequest listResourcesRequest)
Lists the resources that the specified principal can access.
This is a variant of listResources(software.amazon.awssdk.services.ram.model.ListResourcesRequest)
operation. The return type is a custom publisher that can be subscribed to request a stream of response pages.
SDK will internally handle making service calls for you.
When the operation is called, an instance of this class is returned. At this point, no service calls are made yet
and so there is no guarantee that the request is valid. If there are errors in your request, you will see the
failures only after you start streaming the data. The subscribe method should be called as a request to start
streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber)
. Each call to the subscribe
method will result in a new Subscription
i.e., a new contract to stream data from the
starting request.
The following are few ways to use the response class:
1) Using the subscribe helper method
software.amazon.awssdk.services.ram.paginators.ListResourcesPublisher publisher = client.listResourcesPaginator(request);
CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
future.get();
2) Using a custom subscriber
software.amazon.awssdk.services.ram.paginators.ListResourcesPublisher publisher = client.listResourcesPaginator(request);
publisher.subscribe(new Subscriber<software.amazon.awssdk.services.ram.model.ListResourcesResponse>() {
public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
public void onNext(software.amazon.awssdk.services.ram.model.ListResourcesResponse response) { //... };
});
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.
Note: If you prefer to have control on service calls, use the
listResources(software.amazon.awssdk.services.ram.model.ListResourcesRequest)
operation.
listResourcesRequest
- default ListResourcesPublisher listResourcesPaginator(Consumer<ListResourcesRequest.Builder> listResourcesRequest)
Lists the resources that the specified principal can access.
This is a variant of listResources(software.amazon.awssdk.services.ram.model.ListResourcesRequest)
operation. The return type is a custom publisher that can be subscribed to request a stream of response pages.
SDK will internally handle making service calls for you.
When the operation is called, an instance of this class is returned. At this point, no service calls are made yet
and so there is no guarantee that the request is valid. If there are errors in your request, you will see the
failures only after you start streaming the data. The subscribe method should be called as a request to start
streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber)
. Each call to the subscribe
method will result in a new Subscription
i.e., a new contract to stream data from the
starting request.
The following are few ways to use the response class:
1) Using the subscribe helper method
software.amazon.awssdk.services.ram.paginators.ListResourcesPublisher publisher = client.listResourcesPaginator(request);
CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
future.get();
2) Using a custom subscriber
software.amazon.awssdk.services.ram.paginators.ListResourcesPublisher publisher = client.listResourcesPaginator(request);
publisher.subscribe(new Subscriber<software.amazon.awssdk.services.ram.model.ListResourcesResponse>() {
public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
public void onNext(software.amazon.awssdk.services.ram.model.ListResourcesResponse response) { //... };
});
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.
Note: If you prefer to have control on service calls, use the
listResources(software.amazon.awssdk.services.ram.model.ListResourcesRequest)
operation.
This is a convenience which creates an instance of the ListResourcesRequest.Builder
avoiding the need to
create one manually via ListResourcesRequest.builder()
listResourcesRequest
- A Consumer
that will call methods on ListResourcesRequest.Builder
to create a request.default CompletableFuture<RejectResourceShareInvitationResponse> rejectResourceShareInvitation(RejectResourceShareInvitationRequest rejectResourceShareInvitationRequest)
Rejects an invitation to a resource share from another AWS account.
rejectResourceShareInvitationRequest
- default CompletableFuture<RejectResourceShareInvitationResponse> rejectResourceShareInvitation(Consumer<RejectResourceShareInvitationRequest.Builder> rejectResourceShareInvitationRequest)
Rejects an invitation to a resource share from another AWS account.
This is a convenience which creates an instance of the RejectResourceShareInvitationRequest.Builder
avoiding the need to create one manually via RejectResourceShareInvitationRequest.builder()
rejectResourceShareInvitationRequest
- A Consumer
that will call methods on RejectResourceShareInvitationRequest.Builder
to
create a request.default CompletableFuture<TagResourceResponse> tagResource(TagResourceRequest tagResourceRequest)
Adds the specified tags to the specified resource share.
tagResourceRequest
- default CompletableFuture<TagResourceResponse> tagResource(Consumer<TagResourceRequest.Builder> tagResourceRequest)
Adds the specified tags to the specified resource share.
This is a convenience which creates an instance of the TagResourceRequest.Builder
avoiding the need to
create one manually via TagResourceRequest.builder()
tagResourceRequest
- A Consumer
that will call methods on TagResourceRequest.Builder
to create a request.default CompletableFuture<UntagResourceResponse> untagResource(UntagResourceRequest untagResourceRequest)
Removes the specified tags from the specified resource share.
untagResourceRequest
- default CompletableFuture<UntagResourceResponse> untagResource(Consumer<UntagResourceRequest.Builder> untagResourceRequest)
Removes the specified tags from the specified resource share.
This is a convenience which creates an instance of the UntagResourceRequest.Builder
avoiding the need to
create one manually via UntagResourceRequest.builder()
untagResourceRequest
- A Consumer
that will call methods on UntagResourceRequest.Builder
to create a request.default CompletableFuture<UpdateResourceShareResponse> updateResourceShare(UpdateResourceShareRequest updateResourceShareRequest)
Updates the specified resource share.
updateResourceShareRequest
- default CompletableFuture<UpdateResourceShareResponse> updateResourceShare(Consumer<UpdateResourceShareRequest.Builder> updateResourceShareRequest)
Updates the specified resource share.
This is a convenience which creates an instance of the UpdateResourceShareRequest.Builder
avoiding the
need to create one manually via UpdateResourceShareRequest.builder()
updateResourceShareRequest
- A Consumer
that will call methods on UpdateResourceShareRequest.Builder
to create a
request.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.