@Generated(value="software.amazon.awssdk:codegen") public interface RamClient 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 AcceptResourceShareInvitationResponse |
acceptResourceShareInvitation(AcceptResourceShareInvitationRequest acceptResourceShareInvitationRequest)
Accepts an invitation to a resource share from another AWS account.
|
default AcceptResourceShareInvitationResponse |
acceptResourceShareInvitation(Consumer<AcceptResourceShareInvitationRequest.Builder> acceptResourceShareInvitationRequest)
Accepts an invitation to a resource share from another AWS account.
|
default AssociateResourceShareResponse |
associateResourceShare(AssociateResourceShareRequest associateResourceShareRequest)
Associates the specified resource share with the specified principals and resources.
|
default AssociateResourceShareResponse |
associateResourceShare(Consumer<AssociateResourceShareRequest.Builder> associateResourceShareRequest)
Associates the specified resource share with the specified principals and resources.
|
static RamClientBuilder |
builder()
Create a builder that can be used to configure and create a
RamClient . |
static RamClient |
create()
Create a
RamClient with the region loaded from the
DefaultAwsRegionProviderChain and credentials loaded from the
DefaultCredentialsProvider . |
default CreateResourceShareResponse |
createResourceShare(Consumer<CreateResourceShareRequest.Builder> createResourceShareRequest)
Creates a resource share.
|
default CreateResourceShareResponse |
createResourceShare(CreateResourceShareRequest createResourceShareRequest)
Creates a resource share.
|
default DeleteResourceShareResponse |
deleteResourceShare(Consumer<DeleteResourceShareRequest.Builder> deleteResourceShareRequest)
Deletes the specified resource share.
|
default DeleteResourceShareResponse |
deleteResourceShare(DeleteResourceShareRequest deleteResourceShareRequest)
Deletes the specified resource share.
|
default DisassociateResourceShareResponse |
disassociateResourceShare(Consumer<DisassociateResourceShareRequest.Builder> disassociateResourceShareRequest)
Disassociates the specified principals or resources from the specified resource share.
|
default DisassociateResourceShareResponse |
disassociateResourceShare(DisassociateResourceShareRequest disassociateResourceShareRequest)
Disassociates the specified principals or resources from the specified resource share.
|
default EnableSharingWithAwsOrganizationResponse |
enableSharingWithAwsOrganization(Consumer<EnableSharingWithAwsOrganizationRequest.Builder> enableSharingWithAwsOrganizationRequest)
Enables resource sharing within your organization.
|
default EnableSharingWithAwsOrganizationResponse |
enableSharingWithAwsOrganization(EnableSharingWithAwsOrganizationRequest enableSharingWithAwsOrganizationRequest)
Enables resource sharing within your organization.
|
default GetResourcePoliciesResponse |
getResourcePolicies(Consumer<GetResourcePoliciesRequest.Builder> getResourcePoliciesRequest)
Gets the policies for the specifies resources.
|
default GetResourcePoliciesResponse |
getResourcePolicies(GetResourcePoliciesRequest getResourcePoliciesRequest)
Gets the policies for the specifies resources.
|
default GetResourcePoliciesIterable |
getResourcePoliciesPaginator(Consumer<GetResourcePoliciesRequest.Builder> getResourcePoliciesRequest)
Gets the policies for the specifies resources.
|
default GetResourcePoliciesIterable |
getResourcePoliciesPaginator(GetResourcePoliciesRequest getResourcePoliciesRequest)
Gets the policies for the specifies resources.
|
default GetResourceShareAssociationsResponse |
getResourceShareAssociations(Consumer<GetResourceShareAssociationsRequest.Builder> getResourceShareAssociationsRequest)
Gets the associations for the specified resource share.
|
default GetResourceShareAssociationsResponse |
getResourceShareAssociations(GetResourceShareAssociationsRequest getResourceShareAssociationsRequest)
Gets the associations for the specified resource share.
|
default GetResourceShareAssociationsIterable |
getResourceShareAssociationsPaginator(Consumer<GetResourceShareAssociationsRequest.Builder> getResourceShareAssociationsRequest)
Gets the associations for the specified resource share.
|
default GetResourceShareAssociationsIterable |
getResourceShareAssociationsPaginator(GetResourceShareAssociationsRequest getResourceShareAssociationsRequest)
Gets the associations for the specified resource share.
|
default GetResourceShareInvitationsResponse |
getResourceShareInvitations()
Gets the specified invitations for resource sharing.
|
default GetResourceShareInvitationsResponse |
getResourceShareInvitations(Consumer<GetResourceShareInvitationsRequest.Builder> getResourceShareInvitationsRequest)
Gets the specified invitations for resource sharing.
|
default GetResourceShareInvitationsResponse |
getResourceShareInvitations(GetResourceShareInvitationsRequest getResourceShareInvitationsRequest)
Gets the specified invitations for resource sharing.
|
default GetResourceShareInvitationsIterable |
getResourceShareInvitationsPaginator()
Gets the specified invitations for resource sharing.
|
default GetResourceShareInvitationsIterable |
getResourceShareInvitationsPaginator(Consumer<GetResourceShareInvitationsRequest.Builder> getResourceShareInvitationsRequest)
Gets the specified invitations for resource sharing.
|
default GetResourceShareInvitationsIterable |
getResourceShareInvitationsPaginator(GetResourceShareInvitationsRequest getResourceShareInvitationsRequest)
Gets the specified invitations for resource sharing.
|
default GetResourceSharesResponse |
getResourceShares(Consumer<GetResourceSharesRequest.Builder> getResourceSharesRequest)
Gets the specified resource shares or all of your resource shares.
|
default GetResourceSharesResponse |
getResourceShares(GetResourceSharesRequest getResourceSharesRequest)
Gets the specified resource shares or all of your resource shares.
|
default GetResourceSharesIterable |
getResourceSharesPaginator(Consumer<GetResourceSharesRequest.Builder> getResourceSharesRequest)
Gets the specified resource shares or all of your resource shares.
|
default GetResourceSharesIterable |
getResourceSharesPaginator(GetResourceSharesRequest getResourceSharesRequest)
Gets the specified resource shares or all of your resource shares.
|
default ListPrincipalsResponse |
listPrincipals(Consumer<ListPrincipalsRequest.Builder> listPrincipalsRequest)
Lists the principals with access to the specified resource.
|
default ListPrincipalsResponse |
listPrincipals(ListPrincipalsRequest listPrincipalsRequest)
Lists the principals with access to the specified resource.
|
default ListPrincipalsIterable |
listPrincipalsPaginator(Consumer<ListPrincipalsRequest.Builder> listPrincipalsRequest)
Lists the principals with access to the specified resource.
|
default ListPrincipalsIterable |
listPrincipalsPaginator(ListPrincipalsRequest listPrincipalsRequest)
Lists the principals with access to the specified resource.
|
default ListResourcesResponse |
listResources(Consumer<ListResourcesRequest.Builder> listResourcesRequest)
Lists the resources that the specified principal can access.
|
default ListResourcesResponse |
listResources(ListResourcesRequest listResourcesRequest)
Lists the resources that the specified principal can access.
|
default ListResourcesIterable |
listResourcesPaginator(Consumer<ListResourcesRequest.Builder> listResourcesRequest)
Lists the resources that the specified principal can access.
|
default ListResourcesIterable |
listResourcesPaginator(ListResourcesRequest listResourcesRequest)
Lists the resources that the specified principal can access.
|
default RejectResourceShareInvitationResponse |
rejectResourceShareInvitation(Consumer<RejectResourceShareInvitationRequest.Builder> rejectResourceShareInvitationRequest)
Rejects an invitation to a resource share from another AWS account.
|
default RejectResourceShareInvitationResponse |
rejectResourceShareInvitation(RejectResourceShareInvitationRequest rejectResourceShareInvitationRequest)
Rejects an invitation to a resource share from another AWS account.
|
static ServiceMetadata |
serviceMetadata() |
default TagResourceResponse |
tagResource(Consumer<TagResourceRequest.Builder> tagResourceRequest)
Adds the specified tags to the specified resource share.
|
default TagResourceResponse |
tagResource(TagResourceRequest tagResourceRequest)
Adds the specified tags to the specified resource share.
|
default UntagResourceResponse |
untagResource(Consumer<UntagResourceRequest.Builder> untagResourceRequest)
Removes the specified tags from the specified resource share.
|
default UntagResourceResponse |
untagResource(UntagResourceRequest untagResourceRequest)
Removes the specified tags from the specified resource share.
|
default UpdateResourceShareResponse |
updateResourceShare(Consumer<UpdateResourceShareRequest.Builder> updateResourceShareRequest)
Updates the specified resource share.
|
default UpdateResourceShareResponse |
updateResourceShare(UpdateResourceShareRequest updateResourceShareRequest)
Updates the specified resource share.
|
serviceName
close
static final String SERVICE_NAME
static RamClient create()
RamClient
with the region loaded from the
DefaultAwsRegionProviderChain
and credentials loaded from the
DefaultCredentialsProvider
.static RamClientBuilder builder()
RamClient
.default AcceptResourceShareInvitationResponse acceptResourceShareInvitation(AcceptResourceShareInvitationRequest acceptResourceShareInvitationRequest) throws MalformedArnException, OperationNotPermittedException, ResourceShareInvitationArnNotFoundException, ResourceShareInvitationAlreadyAcceptedException, ResourceShareInvitationAlreadyRejectedException, ResourceShareInvitationExpiredException, ServerInternalException, ServiceUnavailableException, AwsServiceException, SdkClientException, RamException
Accepts an invitation to a resource share from another AWS account.
acceptResourceShareInvitationRequest
- MalformedArnException
- The format of an Amazon Resource Name (ARN) is not valid.OperationNotPermittedException
- The requested operation is not permitted.ResourceShareInvitationArnNotFoundException
- The Amazon Resource Name (ARN) for an invitation was not found.ResourceShareInvitationAlreadyAcceptedException
- The invitation was already accepted.ResourceShareInvitationAlreadyRejectedException
- The invitation was already rejected.ResourceShareInvitationExpiredException
- The invitation is expired.ServerInternalException
- The service could not respond to the request due to an internal problem.ServiceUnavailableException
- The service is not available.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.RamException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
default AcceptResourceShareInvitationResponse acceptResourceShareInvitation(Consumer<AcceptResourceShareInvitationRequest.Builder> acceptResourceShareInvitationRequest) throws MalformedArnException, OperationNotPermittedException, ResourceShareInvitationArnNotFoundException, ResourceShareInvitationAlreadyAcceptedException, ResourceShareInvitationAlreadyRejectedException, ResourceShareInvitationExpiredException, ServerInternalException, ServiceUnavailableException, AwsServiceException, SdkClientException, RamException
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.MalformedArnException
- The format of an Amazon Resource Name (ARN) is not valid.OperationNotPermittedException
- The requested operation is not permitted.ResourceShareInvitationArnNotFoundException
- The Amazon Resource Name (ARN) for an invitation was not found.ResourceShareInvitationAlreadyAcceptedException
- The invitation was already accepted.ResourceShareInvitationAlreadyRejectedException
- The invitation was already rejected.ResourceShareInvitationExpiredException
- The invitation is expired.ServerInternalException
- The service could not respond to the request due to an internal problem.ServiceUnavailableException
- The service is not available.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.RamException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
default AssociateResourceShareResponse associateResourceShare(AssociateResourceShareRequest associateResourceShareRequest) throws IdempotentParameterMismatchException, UnknownResourceException, InvalidStateTransitionException, ResourceShareLimitExceededException, MalformedArnException, InvalidClientTokenException, InvalidParameterException, OperationNotPermittedException, ServerInternalException, ServiceUnavailableException, AwsServiceException, SdkClientException, RamException
Associates the specified resource share with the specified principals and resources.
associateResourceShareRequest
- IdempotentParameterMismatchException
- A client token input parameter was reused with an operation, but at least one of the other input
parameters is different from the previous call to the operation.UnknownResourceException
- A specified resource was not found.InvalidStateTransitionException
- The requested state transition is not valid.ResourceShareLimitExceededException
- The requested resource share exceeds the limit for your account.MalformedArnException
- The format of an Amazon Resource Name (ARN) is not valid.InvalidStateTransitionException
- The requested state transition is not valid.InvalidClientTokenException
- A client token is not valid.InvalidParameterException
- A parameter is not valid.OperationNotPermittedException
- The requested operation is not permitted.ServerInternalException
- The service could not respond to the request due to an internal problem.ServiceUnavailableException
- The service is not available.UnknownResourceException
- A specified resource was not found.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.RamException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
default AssociateResourceShareResponse associateResourceShare(Consumer<AssociateResourceShareRequest.Builder> associateResourceShareRequest) throws IdempotentParameterMismatchException, UnknownResourceException, InvalidStateTransitionException, ResourceShareLimitExceededException, MalformedArnException, InvalidClientTokenException, InvalidParameterException, OperationNotPermittedException, ServerInternalException, ServiceUnavailableException, AwsServiceException, SdkClientException, RamException
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.IdempotentParameterMismatchException
- A client token input parameter was reused with an operation, but at least one of the other input
parameters is different from the previous call to the operation.UnknownResourceException
- A specified resource was not found.InvalidStateTransitionException
- The requested state transition is not valid.ResourceShareLimitExceededException
- The requested resource share exceeds the limit for your account.MalformedArnException
- The format of an Amazon Resource Name (ARN) is not valid.InvalidStateTransitionException
- The requested state transition is not valid.InvalidClientTokenException
- A client token is not valid.InvalidParameterException
- A parameter is not valid.OperationNotPermittedException
- The requested operation is not permitted.ServerInternalException
- The service could not respond to the request due to an internal problem.ServiceUnavailableException
- The service is not available.UnknownResourceException
- A specified resource was not found.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.RamException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
default CreateResourceShareResponse createResourceShare(CreateResourceShareRequest createResourceShareRequest) throws IdempotentParameterMismatchException, InvalidStateTransitionException, UnknownResourceException, MalformedArnException, InvalidClientTokenException, InvalidParameterException, OperationNotPermittedException, ResourceShareLimitExceededException, ServerInternalException, ServiceUnavailableException, AwsServiceException, SdkClientException, RamException
Creates a resource share.
createResourceShareRequest
- IdempotentParameterMismatchException
- A client token input parameter was reused with an operation, but at least one of the other input
parameters is different from the previous call to the operation.InvalidStateTransitionException
- The requested state transition is not valid.UnknownResourceException
- A specified resource was not found.MalformedArnException
- The format of an Amazon Resource Name (ARN) is not valid.InvalidClientTokenException
- A client token is not valid.InvalidParameterException
- A parameter is not valid.OperationNotPermittedException
- The requested operation is not permitted.ResourceShareLimitExceededException
- The requested resource share exceeds the limit for your account.ServerInternalException
- The service could not respond to the request due to an internal problem.ServiceUnavailableException
- The service is not available.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.RamException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
default CreateResourceShareResponse createResourceShare(Consumer<CreateResourceShareRequest.Builder> createResourceShareRequest) throws IdempotentParameterMismatchException, InvalidStateTransitionException, UnknownResourceException, MalformedArnException, InvalidClientTokenException, InvalidParameterException, OperationNotPermittedException, ResourceShareLimitExceededException, ServerInternalException, ServiceUnavailableException, AwsServiceException, SdkClientException, RamException
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.IdempotentParameterMismatchException
- A client token input parameter was reused with an operation, but at least one of the other input
parameters is different from the previous call to the operation.InvalidStateTransitionException
- The requested state transition is not valid.UnknownResourceException
- A specified resource was not found.MalformedArnException
- The format of an Amazon Resource Name (ARN) is not valid.InvalidClientTokenException
- A client token is not valid.InvalidParameterException
- A parameter is not valid.OperationNotPermittedException
- The requested operation is not permitted.ResourceShareLimitExceededException
- The requested resource share exceeds the limit for your account.ServerInternalException
- The service could not respond to the request due to an internal problem.ServiceUnavailableException
- The service is not available.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.RamException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
default DeleteResourceShareResponse deleteResourceShare(DeleteResourceShareRequest deleteResourceShareRequest) throws OperationNotPermittedException, IdempotentParameterMismatchException, InvalidStateTransitionException, UnknownResourceException, MalformedArnException, InvalidClientTokenException, InvalidParameterException, ServerInternalException, ServiceUnavailableException, AwsServiceException, SdkClientException, RamException
Deletes the specified resource share.
deleteResourceShareRequest
- OperationNotPermittedException
- The requested operation is not permitted.IdempotentParameterMismatchException
- A client token input parameter was reused with an operation, but at least one of the other input
parameters is different from the previous call to the operation.InvalidStateTransitionException
- The requested state transition is not valid.UnknownResourceException
- A specified resource was not found.MalformedArnException
- The format of an Amazon Resource Name (ARN) is not valid.InvalidClientTokenException
- A client token is not valid.InvalidParameterException
- A parameter is not valid.ServerInternalException
- The service could not respond to the request due to an internal problem.ServiceUnavailableException
- The service is not available.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.RamException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
default DeleteResourceShareResponse deleteResourceShare(Consumer<DeleteResourceShareRequest.Builder> deleteResourceShareRequest) throws OperationNotPermittedException, IdempotentParameterMismatchException, InvalidStateTransitionException, UnknownResourceException, MalformedArnException, InvalidClientTokenException, InvalidParameterException, ServerInternalException, ServiceUnavailableException, AwsServiceException, SdkClientException, RamException
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.OperationNotPermittedException
- The requested operation is not permitted.IdempotentParameterMismatchException
- A client token input parameter was reused with an operation, but at least one of the other input
parameters is different from the previous call to the operation.InvalidStateTransitionException
- The requested state transition is not valid.UnknownResourceException
- A specified resource was not found.MalformedArnException
- The format of an Amazon Resource Name (ARN) is not valid.InvalidClientTokenException
- A client token is not valid.InvalidParameterException
- A parameter is not valid.ServerInternalException
- The service could not respond to the request due to an internal problem.ServiceUnavailableException
- The service is not available.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.RamException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
default DisassociateResourceShareResponse disassociateResourceShare(DisassociateResourceShareRequest disassociateResourceShareRequest) throws IdempotentParameterMismatchException, ResourceShareLimitExceededException, MalformedArnException, InvalidStateTransitionException, InvalidClientTokenException, InvalidParameterException, OperationNotPermittedException, ServerInternalException, ServiceUnavailableException, UnknownResourceException, AwsServiceException, SdkClientException, RamException
Disassociates the specified principals or resources from the specified resource share.
disassociateResourceShareRequest
- IdempotentParameterMismatchException
- A client token input parameter was reused with an operation, but at least one of the other input
parameters is different from the previous call to the operation.ResourceShareLimitExceededException
- The requested resource share exceeds the limit for your account.MalformedArnException
- The format of an Amazon Resource Name (ARN) is not valid.InvalidStateTransitionException
- The requested state transition is not valid.InvalidClientTokenException
- A client token is not valid.InvalidParameterException
- A parameter is not valid.OperationNotPermittedException
- The requested operation is not permitted.ServerInternalException
- The service could not respond to the request due to an internal problem.ServiceUnavailableException
- The service is not available.UnknownResourceException
- A specified resource was not found.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.RamException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
default DisassociateResourceShareResponse disassociateResourceShare(Consumer<DisassociateResourceShareRequest.Builder> disassociateResourceShareRequest) throws IdempotentParameterMismatchException, ResourceShareLimitExceededException, MalformedArnException, InvalidStateTransitionException, InvalidClientTokenException, InvalidParameterException, OperationNotPermittedException, ServerInternalException, ServiceUnavailableException, UnknownResourceException, AwsServiceException, SdkClientException, RamException
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.IdempotentParameterMismatchException
- A client token input parameter was reused with an operation, but at least one of the other input
parameters is different from the previous call to the operation.ResourceShareLimitExceededException
- The requested resource share exceeds the limit for your account.MalformedArnException
- The format of an Amazon Resource Name (ARN) is not valid.InvalidStateTransitionException
- The requested state transition is not valid.InvalidClientTokenException
- A client token is not valid.InvalidParameterException
- A parameter is not valid.OperationNotPermittedException
- The requested operation is not permitted.ServerInternalException
- The service could not respond to the request due to an internal problem.ServiceUnavailableException
- The service is not available.UnknownResourceException
- A specified resource was not found.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.RamException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
default EnableSharingWithAwsOrganizationResponse enableSharingWithAwsOrganization(EnableSharingWithAwsOrganizationRequest enableSharingWithAwsOrganizationRequest) throws OperationNotPermittedException, ServerInternalException, ServiceUnavailableException, AwsServiceException, SdkClientException, RamException
Enables resource sharing within your organization.
enableSharingWithAwsOrganizationRequest
- OperationNotPermittedException
- The requested operation is not permitted.ServerInternalException
- The service could not respond to the request due to an internal problem.ServiceUnavailableException
- The service is not available.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.RamException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
default EnableSharingWithAwsOrganizationResponse enableSharingWithAwsOrganization(Consumer<EnableSharingWithAwsOrganizationRequest.Builder> enableSharingWithAwsOrganizationRequest) throws OperationNotPermittedException, ServerInternalException, ServiceUnavailableException, AwsServiceException, SdkClientException, RamException
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.OperationNotPermittedException
- The requested operation is not permitted.ServerInternalException
- The service could not respond to the request due to an internal problem.ServiceUnavailableException
- The service is not available.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.RamException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
default GetResourcePoliciesResponse getResourcePolicies(GetResourcePoliciesRequest getResourcePoliciesRequest) throws MalformedArnException, InvalidNextTokenException, InvalidParameterException, ServerInternalException, ServiceUnavailableException, AwsServiceException, SdkClientException, RamException
Gets the policies for the specifies resources.
getResourcePoliciesRequest
- MalformedArnException
- The format of an Amazon Resource Name (ARN) is not valid.InvalidNextTokenException
- The specified value for NextToken is not valid.InvalidParameterException
- A parameter is not valid.ServerInternalException
- The service could not respond to the request due to an internal problem.ServiceUnavailableException
- The service is not available.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.RamException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
default GetResourcePoliciesResponse getResourcePolicies(Consumer<GetResourcePoliciesRequest.Builder> getResourcePoliciesRequest) throws MalformedArnException, InvalidNextTokenException, InvalidParameterException, ServerInternalException, ServiceUnavailableException, AwsServiceException, SdkClientException, RamException
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.MalformedArnException
- The format of an Amazon Resource Name (ARN) is not valid.InvalidNextTokenException
- The specified value for NextToken is not valid.InvalidParameterException
- A parameter is not valid.ServerInternalException
- The service could not respond to the request due to an internal problem.ServiceUnavailableException
- The service is not available.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.RamException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
default GetResourcePoliciesIterable getResourcePoliciesPaginator(GetResourcePoliciesRequest getResourcePoliciesRequest) throws MalformedArnException, InvalidNextTokenException, InvalidParameterException, ServerInternalException, ServiceUnavailableException, AwsServiceException, SdkClientException, RamException
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 iterable that can be used to iterate through all the pages. SDK will internally handle
making service calls for you.
When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
software.amazon.awssdk.services.ram.paginators.GetResourcePoliciesIterable responses = client.getResourcePoliciesPaginator(request);
responses.stream().forEach(....);
2) Using For loop
{ @code software.amazon.awssdk.services.ram.paginators.GetResourcePoliciesIterable responses = client .getResourcePoliciesPaginator(request); for (software.amazon.awssdk.services.ram.model.GetResourcePoliciesResponse response : responses) { // do something; } }3) Use iterator directly
software.amazon.awssdk.services.ram.paginators.GetResourcePoliciesIterable responses = client.getResourcePoliciesPaginator(request);
responses.iterator().forEachRemaining(....);
Note: If you prefer to have control on service calls, use the
getResourcePolicies(software.amazon.awssdk.services.ram.model.GetResourcePoliciesRequest)
operation.
getResourcePoliciesRequest
- MalformedArnException
- The format of an Amazon Resource Name (ARN) is not valid.InvalidNextTokenException
- The specified value for NextToken is not valid.InvalidParameterException
- A parameter is not valid.ServerInternalException
- The service could not respond to the request due to an internal problem.ServiceUnavailableException
- The service is not available.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.RamException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
default GetResourcePoliciesIterable getResourcePoliciesPaginator(Consumer<GetResourcePoliciesRequest.Builder> getResourcePoliciesRequest) throws MalformedArnException, InvalidNextTokenException, InvalidParameterException, ServerInternalException, ServiceUnavailableException, AwsServiceException, SdkClientException, RamException
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 iterable that can be used to iterate through all the pages. SDK will internally handle
making service calls for you.
When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
software.amazon.awssdk.services.ram.paginators.GetResourcePoliciesIterable responses = client.getResourcePoliciesPaginator(request);
responses.stream().forEach(....);
2) Using For loop
{ @code software.amazon.awssdk.services.ram.paginators.GetResourcePoliciesIterable responses = client .getResourcePoliciesPaginator(request); for (software.amazon.awssdk.services.ram.model.GetResourcePoliciesResponse response : responses) { // do something; } }3) Use iterator directly
software.amazon.awssdk.services.ram.paginators.GetResourcePoliciesIterable responses = client.getResourcePoliciesPaginator(request);
responses.iterator().forEachRemaining(....);
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.MalformedArnException
- The format of an Amazon Resource Name (ARN) is not valid.InvalidNextTokenException
- The specified value for NextToken is not valid.InvalidParameterException
- A parameter is not valid.ServerInternalException
- The service could not respond to the request due to an internal problem.ServiceUnavailableException
- The service is not available.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.RamException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
default GetResourceShareAssociationsResponse getResourceShareAssociations(GetResourceShareAssociationsRequest getResourceShareAssociationsRequest) throws UnknownResourceException, MalformedArnException, InvalidNextTokenException, InvalidParameterException, OperationNotPermittedException, ServerInternalException, ServiceUnavailableException, AwsServiceException, SdkClientException, RamException
Gets the associations for the specified resource share.
getResourceShareAssociationsRequest
- UnknownResourceException
- A specified resource was not found.MalformedArnException
- The format of an Amazon Resource Name (ARN) is not valid.InvalidNextTokenException
- The specified value for NextToken is not valid.InvalidParameterException
- A parameter is not valid.OperationNotPermittedException
- The requested operation is not permitted.ServerInternalException
- The service could not respond to the request due to an internal problem.ServiceUnavailableException
- The service is not available.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.RamException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
default GetResourceShareAssociationsResponse getResourceShareAssociations(Consumer<GetResourceShareAssociationsRequest.Builder> getResourceShareAssociationsRequest) throws UnknownResourceException, MalformedArnException, InvalidNextTokenException, InvalidParameterException, OperationNotPermittedException, ServerInternalException, ServiceUnavailableException, AwsServiceException, SdkClientException, RamException
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.UnknownResourceException
- A specified resource was not found.MalformedArnException
- The format of an Amazon Resource Name (ARN) is not valid.InvalidNextTokenException
- The specified value for NextToken is not valid.InvalidParameterException
- A parameter is not valid.OperationNotPermittedException
- The requested operation is not permitted.ServerInternalException
- The service could not respond to the request due to an internal problem.ServiceUnavailableException
- The service is not available.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.RamException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
default GetResourceShareAssociationsIterable getResourceShareAssociationsPaginator(GetResourceShareAssociationsRequest getResourceShareAssociationsRequest) throws UnknownResourceException, MalformedArnException, InvalidNextTokenException, InvalidParameterException, OperationNotPermittedException, ServerInternalException, ServiceUnavailableException, AwsServiceException, SdkClientException, RamException
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 iterable that can be used to iterate through all the pages. SDK will
internally handle making service calls for you.
When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
software.amazon.awssdk.services.ram.paginators.GetResourceShareAssociationsIterable responses = client.getResourceShareAssociationsPaginator(request);
responses.stream().forEach(....);
2) Using For loop
{ @code software.amazon.awssdk.services.ram.paginators.GetResourceShareAssociationsIterable responses = client .getResourceShareAssociationsPaginator(request); for (software.amazon.awssdk.services.ram.model.GetResourceShareAssociationsResponse response : responses) { // do something; } }3) Use iterator directly
software.amazon.awssdk.services.ram.paginators.GetResourceShareAssociationsIterable responses = client.getResourceShareAssociationsPaginator(request);
responses.iterator().forEachRemaining(....);
Note: If you prefer to have control on service calls, use the
getResourceShareAssociations(software.amazon.awssdk.services.ram.model.GetResourceShareAssociationsRequest)
operation.
getResourceShareAssociationsRequest
- UnknownResourceException
- A specified resource was not found.MalformedArnException
- The format of an Amazon Resource Name (ARN) is not valid.InvalidNextTokenException
- The specified value for NextToken is not valid.InvalidParameterException
- A parameter is not valid.OperationNotPermittedException
- The requested operation is not permitted.ServerInternalException
- The service could not respond to the request due to an internal problem.ServiceUnavailableException
- The service is not available.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.RamException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
default GetResourceShareAssociationsIterable getResourceShareAssociationsPaginator(Consumer<GetResourceShareAssociationsRequest.Builder> getResourceShareAssociationsRequest) throws UnknownResourceException, MalformedArnException, InvalidNextTokenException, InvalidParameterException, OperationNotPermittedException, ServerInternalException, ServiceUnavailableException, AwsServiceException, SdkClientException, RamException
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 iterable that can be used to iterate through all the pages. SDK will
internally handle making service calls for you.
When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
software.amazon.awssdk.services.ram.paginators.GetResourceShareAssociationsIterable responses = client.getResourceShareAssociationsPaginator(request);
responses.stream().forEach(....);
2) Using For loop
{ @code software.amazon.awssdk.services.ram.paginators.GetResourceShareAssociationsIterable responses = client .getResourceShareAssociationsPaginator(request); for (software.amazon.awssdk.services.ram.model.GetResourceShareAssociationsResponse response : responses) { // do something; } }3) Use iterator directly
software.amazon.awssdk.services.ram.paginators.GetResourceShareAssociationsIterable responses = client.getResourceShareAssociationsPaginator(request);
responses.iterator().forEachRemaining(....);
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.UnknownResourceException
- A specified resource was not found.MalformedArnException
- The format of an Amazon Resource Name (ARN) is not valid.InvalidNextTokenException
- The specified value for NextToken is not valid.InvalidParameterException
- A parameter is not valid.OperationNotPermittedException
- The requested operation is not permitted.ServerInternalException
- The service could not respond to the request due to an internal problem.ServiceUnavailableException
- The service is not available.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.RamException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
default GetResourceShareInvitationsResponse getResourceShareInvitations() throws ResourceShareInvitationArnNotFoundException, InvalidMaxResultsException, MalformedArnException, InvalidNextTokenException, InvalidParameterException, ServerInternalException, ServiceUnavailableException, AwsServiceException, SdkClientException, RamException
Gets the specified invitations for resource sharing.
ResourceShareInvitationArnNotFoundException
- The Amazon Resource Name (ARN) for an invitation was not found.InvalidMaxResultsException
- The specified value for MaxResults is not valid.MalformedArnException
- The format of an Amazon Resource Name (ARN) is not valid.InvalidNextTokenException
- The specified value for NextToken is not valid.InvalidParameterException
- A parameter is not valid.ServerInternalException
- The service could not respond to the request due to an internal problem.ServiceUnavailableException
- The service is not available.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.RamException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
getResourceShareInvitations(GetResourceShareInvitationsRequest)
,
AWS API Documentationdefault GetResourceShareInvitationsResponse getResourceShareInvitations(GetResourceShareInvitationsRequest getResourceShareInvitationsRequest) throws ResourceShareInvitationArnNotFoundException, InvalidMaxResultsException, MalformedArnException, InvalidNextTokenException, InvalidParameterException, ServerInternalException, ServiceUnavailableException, AwsServiceException, SdkClientException, RamException
Gets the specified invitations for resource sharing.
getResourceShareInvitationsRequest
- ResourceShareInvitationArnNotFoundException
- The Amazon Resource Name (ARN) for an invitation was not found.InvalidMaxResultsException
- The specified value for MaxResults is not valid.MalformedArnException
- The format of an Amazon Resource Name (ARN) is not valid.InvalidNextTokenException
- The specified value for NextToken is not valid.InvalidParameterException
- A parameter is not valid.ServerInternalException
- The service could not respond to the request due to an internal problem.ServiceUnavailableException
- The service is not available.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.RamException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
default GetResourceShareInvitationsResponse getResourceShareInvitations(Consumer<GetResourceShareInvitationsRequest.Builder> getResourceShareInvitationsRequest) throws ResourceShareInvitationArnNotFoundException, InvalidMaxResultsException, MalformedArnException, InvalidNextTokenException, InvalidParameterException, ServerInternalException, ServiceUnavailableException, AwsServiceException, SdkClientException, RamException
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.ResourceShareInvitationArnNotFoundException
- The Amazon Resource Name (ARN) for an invitation was not found.InvalidMaxResultsException
- The specified value for MaxResults is not valid.MalformedArnException
- The format of an Amazon Resource Name (ARN) is not valid.InvalidNextTokenException
- The specified value for NextToken is not valid.InvalidParameterException
- A parameter is not valid.ServerInternalException
- The service could not respond to the request due to an internal problem.ServiceUnavailableException
- The service is not available.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.RamException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
default GetResourceShareInvitationsIterable getResourceShareInvitationsPaginator() throws ResourceShareInvitationArnNotFoundException, InvalidMaxResultsException, MalformedArnException, InvalidNextTokenException, InvalidParameterException, ServerInternalException, ServiceUnavailableException, AwsServiceException, SdkClientException, RamException
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 iterable that can be used to iterate through all the pages. SDK will
internally handle making service calls for you.
When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
software.amazon.awssdk.services.ram.paginators.GetResourceShareInvitationsIterable responses = client.getResourceShareInvitationsPaginator(request);
responses.stream().forEach(....);
2) Using For loop
{ @code software.amazon.awssdk.services.ram.paginators.GetResourceShareInvitationsIterable responses = client .getResourceShareInvitationsPaginator(request); for (software.amazon.awssdk.services.ram.model.GetResourceShareInvitationsResponse response : responses) { // do something; } }3) Use iterator directly
software.amazon.awssdk.services.ram.paginators.GetResourceShareInvitationsIterable responses = client.getResourceShareInvitationsPaginator(request);
responses.iterator().forEachRemaining(....);
Note: If you prefer to have control on service calls, use the
getResourceShareInvitations(software.amazon.awssdk.services.ram.model.GetResourceShareInvitationsRequest)
operation.
ResourceShareInvitationArnNotFoundException
- The Amazon Resource Name (ARN) for an invitation was not found.InvalidMaxResultsException
- The specified value for MaxResults is not valid.MalformedArnException
- The format of an Amazon Resource Name (ARN) is not valid.InvalidNextTokenException
- The specified value for NextToken is not valid.InvalidParameterException
- A parameter is not valid.ServerInternalException
- The service could not respond to the request due to an internal problem.ServiceUnavailableException
- The service is not available.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.RamException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
getResourceShareInvitationsPaginator(GetResourceShareInvitationsRequest)
,
AWS API Documentationdefault GetResourceShareInvitationsIterable getResourceShareInvitationsPaginator(GetResourceShareInvitationsRequest getResourceShareInvitationsRequest) throws ResourceShareInvitationArnNotFoundException, InvalidMaxResultsException, MalformedArnException, InvalidNextTokenException, InvalidParameterException, ServerInternalException, ServiceUnavailableException, AwsServiceException, SdkClientException, RamException
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 iterable that can be used to iterate through all the pages. SDK will
internally handle making service calls for you.
When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
software.amazon.awssdk.services.ram.paginators.GetResourceShareInvitationsIterable responses = client.getResourceShareInvitationsPaginator(request);
responses.stream().forEach(....);
2) Using For loop
{ @code software.amazon.awssdk.services.ram.paginators.GetResourceShareInvitationsIterable responses = client .getResourceShareInvitationsPaginator(request); for (software.amazon.awssdk.services.ram.model.GetResourceShareInvitationsResponse response : responses) { // do something; } }3) Use iterator directly
software.amazon.awssdk.services.ram.paginators.GetResourceShareInvitationsIterable responses = client.getResourceShareInvitationsPaginator(request);
responses.iterator().forEachRemaining(....);
Note: If you prefer to have control on service calls, use the
getResourceShareInvitations(software.amazon.awssdk.services.ram.model.GetResourceShareInvitationsRequest)
operation.
getResourceShareInvitationsRequest
- ResourceShareInvitationArnNotFoundException
- The Amazon Resource Name (ARN) for an invitation was not found.InvalidMaxResultsException
- The specified value for MaxResults is not valid.MalformedArnException
- The format of an Amazon Resource Name (ARN) is not valid.InvalidNextTokenException
- The specified value for NextToken is not valid.InvalidParameterException
- A parameter is not valid.ServerInternalException
- The service could not respond to the request due to an internal problem.ServiceUnavailableException
- The service is not available.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.RamException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
default GetResourceShareInvitationsIterable getResourceShareInvitationsPaginator(Consumer<GetResourceShareInvitationsRequest.Builder> getResourceShareInvitationsRequest) throws ResourceShareInvitationArnNotFoundException, InvalidMaxResultsException, MalformedArnException, InvalidNextTokenException, InvalidParameterException, ServerInternalException, ServiceUnavailableException, AwsServiceException, SdkClientException, RamException
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 iterable that can be used to iterate through all the pages. SDK will
internally handle making service calls for you.
When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
software.amazon.awssdk.services.ram.paginators.GetResourceShareInvitationsIterable responses = client.getResourceShareInvitationsPaginator(request);
responses.stream().forEach(....);
2) Using For loop
{ @code software.amazon.awssdk.services.ram.paginators.GetResourceShareInvitationsIterable responses = client .getResourceShareInvitationsPaginator(request); for (software.amazon.awssdk.services.ram.model.GetResourceShareInvitationsResponse response : responses) { // do something; } }3) Use iterator directly
software.amazon.awssdk.services.ram.paginators.GetResourceShareInvitationsIterable responses = client.getResourceShareInvitationsPaginator(request);
responses.iterator().forEachRemaining(....);
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.ResourceShareInvitationArnNotFoundException
- The Amazon Resource Name (ARN) for an invitation was not found.InvalidMaxResultsException
- The specified value for MaxResults is not valid.MalformedArnException
- The format of an Amazon Resource Name (ARN) is not valid.InvalidNextTokenException
- The specified value for NextToken is not valid.InvalidParameterException
- A parameter is not valid.ServerInternalException
- The service could not respond to the request due to an internal problem.ServiceUnavailableException
- The service is not available.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.RamException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
default GetResourceSharesResponse getResourceShares(GetResourceSharesRequest getResourceSharesRequest) throws UnknownResourceException, MalformedArnException, InvalidNextTokenException, InvalidParameterException, ServerInternalException, ServiceUnavailableException, AwsServiceException, SdkClientException, RamException
Gets the specified resource shares or all of your resource shares.
getResourceSharesRequest
- UnknownResourceException
- A specified resource was not found.MalformedArnException
- The format of an Amazon Resource Name (ARN) is not valid.InvalidNextTokenException
- The specified value for NextToken is not valid.InvalidParameterException
- A parameter is not valid.ServerInternalException
- The service could not respond to the request due to an internal problem.ServiceUnavailableException
- The service is not available.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.RamException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
default GetResourceSharesResponse getResourceShares(Consumer<GetResourceSharesRequest.Builder> getResourceSharesRequest) throws UnknownResourceException, MalformedArnException, InvalidNextTokenException, InvalidParameterException, ServerInternalException, ServiceUnavailableException, AwsServiceException, SdkClientException, RamException
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.UnknownResourceException
- A specified resource was not found.MalformedArnException
- The format of an Amazon Resource Name (ARN) is not valid.InvalidNextTokenException
- The specified value for NextToken is not valid.InvalidParameterException
- A parameter is not valid.ServerInternalException
- The service could not respond to the request due to an internal problem.ServiceUnavailableException
- The service is not available.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.RamException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
default GetResourceSharesIterable getResourceSharesPaginator(GetResourceSharesRequest getResourceSharesRequest) throws UnknownResourceException, MalformedArnException, InvalidNextTokenException, InvalidParameterException, ServerInternalException, ServiceUnavailableException, AwsServiceException, SdkClientException, RamException
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 iterable that can be used to iterate through all the pages. SDK will internally handle
making service calls for you.
When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
software.amazon.awssdk.services.ram.paginators.GetResourceSharesIterable responses = client.getResourceSharesPaginator(request);
responses.stream().forEach(....);
2) Using For loop
{ @code software.amazon.awssdk.services.ram.paginators.GetResourceSharesIterable responses = client .getResourceSharesPaginator(request); for (software.amazon.awssdk.services.ram.model.GetResourceSharesResponse response : responses) { // do something; } }3) Use iterator directly
software.amazon.awssdk.services.ram.paginators.GetResourceSharesIterable responses = client.getResourceSharesPaginator(request);
responses.iterator().forEachRemaining(....);
Note: If you prefer to have control on service calls, use the
getResourceShares(software.amazon.awssdk.services.ram.model.GetResourceSharesRequest)
operation.
getResourceSharesRequest
- UnknownResourceException
- A specified resource was not found.MalformedArnException
- The format of an Amazon Resource Name (ARN) is not valid.InvalidNextTokenException
- The specified value for NextToken is not valid.InvalidParameterException
- A parameter is not valid.ServerInternalException
- The service could not respond to the request due to an internal problem.ServiceUnavailableException
- The service is not available.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.RamException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
default GetResourceSharesIterable getResourceSharesPaginator(Consumer<GetResourceSharesRequest.Builder> getResourceSharesRequest) throws UnknownResourceException, MalformedArnException, InvalidNextTokenException, InvalidParameterException, ServerInternalException, ServiceUnavailableException, AwsServiceException, SdkClientException, RamException
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 iterable that can be used to iterate through all the pages. SDK will internally handle
making service calls for you.
When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
software.amazon.awssdk.services.ram.paginators.GetResourceSharesIterable responses = client.getResourceSharesPaginator(request);
responses.stream().forEach(....);
2) Using For loop
{ @code software.amazon.awssdk.services.ram.paginators.GetResourceSharesIterable responses = client .getResourceSharesPaginator(request); for (software.amazon.awssdk.services.ram.model.GetResourceSharesResponse response : responses) { // do something; } }3) Use iterator directly
software.amazon.awssdk.services.ram.paginators.GetResourceSharesIterable responses = client.getResourceSharesPaginator(request);
responses.iterator().forEachRemaining(....);
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.UnknownResourceException
- A specified resource was not found.MalformedArnException
- The format of an Amazon Resource Name (ARN) is not valid.InvalidNextTokenException
- The specified value for NextToken is not valid.InvalidParameterException
- A parameter is not valid.ServerInternalException
- The service could not respond to the request due to an internal problem.ServiceUnavailableException
- The service is not available.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.RamException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
default ListPrincipalsResponse listPrincipals(ListPrincipalsRequest listPrincipalsRequest) throws MalformedArnException, UnknownResourceException, InvalidNextTokenException, InvalidParameterException, ServerInternalException, ServiceUnavailableException, AwsServiceException, SdkClientException, RamException
Lists the principals with access to the specified resource.
listPrincipalsRequest
- MalformedArnException
- The format of an Amazon Resource Name (ARN) is not valid.UnknownResourceException
- A specified resource was not found.InvalidNextTokenException
- The specified value for NextToken is not valid.InvalidParameterException
- A parameter is not valid.ServerInternalException
- The service could not respond to the request due to an internal problem.ServiceUnavailableException
- The service is not available.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.RamException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
default ListPrincipalsResponse listPrincipals(Consumer<ListPrincipalsRequest.Builder> listPrincipalsRequest) throws MalformedArnException, UnknownResourceException, InvalidNextTokenException, InvalidParameterException, ServerInternalException, ServiceUnavailableException, AwsServiceException, SdkClientException, RamException
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.MalformedArnException
- The format of an Amazon Resource Name (ARN) is not valid.UnknownResourceException
- A specified resource was not found.InvalidNextTokenException
- The specified value for NextToken is not valid.InvalidParameterException
- A parameter is not valid.ServerInternalException
- The service could not respond to the request due to an internal problem.ServiceUnavailableException
- The service is not available.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.RamException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
default ListPrincipalsIterable listPrincipalsPaginator(ListPrincipalsRequest listPrincipalsRequest) throws MalformedArnException, UnknownResourceException, InvalidNextTokenException, InvalidParameterException, ServerInternalException, ServiceUnavailableException, AwsServiceException, SdkClientException, RamException
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 iterable that can be used to iterate through all the pages. SDK will
internally handle making service calls for you.
When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
software.amazon.awssdk.services.ram.paginators.ListPrincipalsIterable responses = client.listPrincipalsPaginator(request);
responses.stream().forEach(....);
2) Using For loop
{ @code software.amazon.awssdk.services.ram.paginators.ListPrincipalsIterable responses = client.listPrincipalsPaginator(request); for (software.amazon.awssdk.services.ram.model.ListPrincipalsResponse response : responses) { // do something; } }3) Use iterator directly
software.amazon.awssdk.services.ram.paginators.ListPrincipalsIterable responses = client.listPrincipalsPaginator(request);
responses.iterator().forEachRemaining(....);
Note: If you prefer to have control on service calls, use the
listPrincipals(software.amazon.awssdk.services.ram.model.ListPrincipalsRequest)
operation.
listPrincipalsRequest
- MalformedArnException
- The format of an Amazon Resource Name (ARN) is not valid.UnknownResourceException
- A specified resource was not found.InvalidNextTokenException
- The specified value for NextToken is not valid.InvalidParameterException
- A parameter is not valid.ServerInternalException
- The service could not respond to the request due to an internal problem.ServiceUnavailableException
- The service is not available.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.RamException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
default ListPrincipalsIterable listPrincipalsPaginator(Consumer<ListPrincipalsRequest.Builder> listPrincipalsRequest) throws MalformedArnException, UnknownResourceException, InvalidNextTokenException, InvalidParameterException, ServerInternalException, ServiceUnavailableException, AwsServiceException, SdkClientException, RamException
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 iterable that can be used to iterate through all the pages. SDK will
internally handle making service calls for you.
When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
software.amazon.awssdk.services.ram.paginators.ListPrincipalsIterable responses = client.listPrincipalsPaginator(request);
responses.stream().forEach(....);
2) Using For loop
{ @code software.amazon.awssdk.services.ram.paginators.ListPrincipalsIterable responses = client.listPrincipalsPaginator(request); for (software.amazon.awssdk.services.ram.model.ListPrincipalsResponse response : responses) { // do something; } }3) Use iterator directly
software.amazon.awssdk.services.ram.paginators.ListPrincipalsIterable responses = client.listPrincipalsPaginator(request);
responses.iterator().forEachRemaining(....);
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.MalformedArnException
- The format of an Amazon Resource Name (ARN) is not valid.UnknownResourceException
- A specified resource was not found.InvalidNextTokenException
- The specified value for NextToken is not valid.InvalidParameterException
- A parameter is not valid.ServerInternalException
- The service could not respond to the request due to an internal problem.ServiceUnavailableException
- The service is not available.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.RamException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
default ListResourcesResponse listResources(ListResourcesRequest listResourcesRequest) throws InvalidResourceTypeException, UnknownResourceException, MalformedArnException, InvalidNextTokenException, InvalidParameterException, ServerInternalException, ServiceUnavailableException, AwsServiceException, SdkClientException, RamException
Lists the resources that the specified principal can access.
listResourcesRequest
- InvalidResourceTypeException
- The specified resource type is not valid.UnknownResourceException
- A specified resource was not found.MalformedArnException
- The format of an Amazon Resource Name (ARN) is not valid.InvalidNextTokenException
- The specified value for NextToken is not valid.InvalidParameterException
- A parameter is not valid.ServerInternalException
- The service could not respond to the request due to an internal problem.ServiceUnavailableException
- The service is not available.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.RamException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
default ListResourcesResponse listResources(Consumer<ListResourcesRequest.Builder> listResourcesRequest) throws InvalidResourceTypeException, UnknownResourceException, MalformedArnException, InvalidNextTokenException, InvalidParameterException, ServerInternalException, ServiceUnavailableException, AwsServiceException, SdkClientException, RamException
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.InvalidResourceTypeException
- The specified resource type is not valid.UnknownResourceException
- A specified resource was not found.MalformedArnException
- The format of an Amazon Resource Name (ARN) is not valid.InvalidNextTokenException
- The specified value for NextToken is not valid.InvalidParameterException
- A parameter is not valid.ServerInternalException
- The service could not respond to the request due to an internal problem.ServiceUnavailableException
- The service is not available.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.RamException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
default ListResourcesIterable listResourcesPaginator(ListResourcesRequest listResourcesRequest) throws InvalidResourceTypeException, UnknownResourceException, MalformedArnException, InvalidNextTokenException, InvalidParameterException, ServerInternalException, ServiceUnavailableException, AwsServiceException, SdkClientException, RamException
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 iterable that can be used to iterate through all the pages. SDK will
internally handle making service calls for you.
When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
software.amazon.awssdk.services.ram.paginators.ListResourcesIterable responses = client.listResourcesPaginator(request);
responses.stream().forEach(....);
2) Using For loop
{ @code software.amazon.awssdk.services.ram.paginators.ListResourcesIterable responses = client.listResourcesPaginator(request); for (software.amazon.awssdk.services.ram.model.ListResourcesResponse response : responses) { // do something; } }3) Use iterator directly
software.amazon.awssdk.services.ram.paginators.ListResourcesIterable responses = client.listResourcesPaginator(request);
responses.iterator().forEachRemaining(....);
Note: If you prefer to have control on service calls, use the
listResources(software.amazon.awssdk.services.ram.model.ListResourcesRequest)
operation.
listResourcesRequest
- InvalidResourceTypeException
- The specified resource type is not valid.UnknownResourceException
- A specified resource was not found.MalformedArnException
- The format of an Amazon Resource Name (ARN) is not valid.InvalidNextTokenException
- The specified value for NextToken is not valid.InvalidParameterException
- A parameter is not valid.ServerInternalException
- The service could not respond to the request due to an internal problem.ServiceUnavailableException
- The service is not available.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.RamException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
default ListResourcesIterable listResourcesPaginator(Consumer<ListResourcesRequest.Builder> listResourcesRequest) throws InvalidResourceTypeException, UnknownResourceException, MalformedArnException, InvalidNextTokenException, InvalidParameterException, ServerInternalException, ServiceUnavailableException, AwsServiceException, SdkClientException, RamException
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 iterable that can be used to iterate through all the pages. SDK will
internally handle making service calls for you.
When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
software.amazon.awssdk.services.ram.paginators.ListResourcesIterable responses = client.listResourcesPaginator(request);
responses.stream().forEach(....);
2) Using For loop
{ @code software.amazon.awssdk.services.ram.paginators.ListResourcesIterable responses = client.listResourcesPaginator(request); for (software.amazon.awssdk.services.ram.model.ListResourcesResponse response : responses) { // do something; } }3) Use iterator directly
software.amazon.awssdk.services.ram.paginators.ListResourcesIterable responses = client.listResourcesPaginator(request);
responses.iterator().forEachRemaining(....);
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.InvalidResourceTypeException
- The specified resource type is not valid.UnknownResourceException
- A specified resource was not found.MalformedArnException
- The format of an Amazon Resource Name (ARN) is not valid.InvalidNextTokenException
- The specified value for NextToken is not valid.InvalidParameterException
- A parameter is not valid.ServerInternalException
- The service could not respond to the request due to an internal problem.ServiceUnavailableException
- The service is not available.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.RamException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
default RejectResourceShareInvitationResponse rejectResourceShareInvitation(RejectResourceShareInvitationRequest rejectResourceShareInvitationRequest) throws MalformedArnException, OperationNotPermittedException, ResourceShareInvitationArnNotFoundException, ResourceShareInvitationAlreadyAcceptedException, ResourceShareInvitationAlreadyRejectedException, ResourceShareInvitationExpiredException, ServerInternalException, ServiceUnavailableException, AwsServiceException, SdkClientException, RamException
Rejects an invitation to a resource share from another AWS account.
rejectResourceShareInvitationRequest
- MalformedArnException
- The format of an Amazon Resource Name (ARN) is not valid.OperationNotPermittedException
- The requested operation is not permitted.ResourceShareInvitationArnNotFoundException
- The Amazon Resource Name (ARN) for an invitation was not found.ResourceShareInvitationAlreadyAcceptedException
- The invitation was already accepted.ResourceShareInvitationAlreadyRejectedException
- The invitation was already rejected.ResourceShareInvitationExpiredException
- The invitation is expired.ServerInternalException
- The service could not respond to the request due to an internal problem.ServiceUnavailableException
- The service is not available.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.RamException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
default RejectResourceShareInvitationResponse rejectResourceShareInvitation(Consumer<RejectResourceShareInvitationRequest.Builder> rejectResourceShareInvitationRequest) throws MalformedArnException, OperationNotPermittedException, ResourceShareInvitationArnNotFoundException, ResourceShareInvitationAlreadyAcceptedException, ResourceShareInvitationAlreadyRejectedException, ResourceShareInvitationExpiredException, ServerInternalException, ServiceUnavailableException, AwsServiceException, SdkClientException, RamException
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.MalformedArnException
- The format of an Amazon Resource Name (ARN) is not valid.OperationNotPermittedException
- The requested operation is not permitted.ResourceShareInvitationArnNotFoundException
- The Amazon Resource Name (ARN) for an invitation was not found.ResourceShareInvitationAlreadyAcceptedException
- The invitation was already accepted.ResourceShareInvitationAlreadyRejectedException
- The invitation was already rejected.ResourceShareInvitationExpiredException
- The invitation is expired.ServerInternalException
- The service could not respond to the request due to an internal problem.ServiceUnavailableException
- The service is not available.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.RamException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
default TagResourceResponse tagResource(TagResourceRequest tagResourceRequest) throws InvalidParameterException, MalformedArnException, TagLimitExceededException, ResourceArnNotFoundException, ServerInternalException, ServiceUnavailableException, AwsServiceException, SdkClientException, RamException
Adds the specified tags to the specified resource share.
tagResourceRequest
- InvalidParameterException
- A parameter is not valid.MalformedArnException
- The format of an Amazon Resource Name (ARN) is not valid.TagLimitExceededException
- The requested tags exceed the limit for your account.ResourceArnNotFoundException
- An Amazon Resource Name (ARN) was not found.ServerInternalException
- The service could not respond to the request due to an internal problem.ServiceUnavailableException
- The service is not available.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.RamException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
default TagResourceResponse tagResource(Consumer<TagResourceRequest.Builder> tagResourceRequest) throws InvalidParameterException, MalformedArnException, TagLimitExceededException, ResourceArnNotFoundException, ServerInternalException, ServiceUnavailableException, AwsServiceException, SdkClientException, RamException
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.InvalidParameterException
- A parameter is not valid.MalformedArnException
- The format of an Amazon Resource Name (ARN) is not valid.TagLimitExceededException
- The requested tags exceed the limit for your account.ResourceArnNotFoundException
- An Amazon Resource Name (ARN) was not found.ServerInternalException
- The service could not respond to the request due to an internal problem.ServiceUnavailableException
- The service is not available.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.RamException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
default UntagResourceResponse untagResource(UntagResourceRequest untagResourceRequest) throws InvalidParameterException, ServerInternalException, ServiceUnavailableException, AwsServiceException, SdkClientException, RamException
Removes the specified tags from the specified resource share.
untagResourceRequest
- InvalidParameterException
- A parameter is not valid.ServerInternalException
- The service could not respond to the request due to an internal problem.ServiceUnavailableException
- The service is not available.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.RamException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
default UntagResourceResponse untagResource(Consumer<UntagResourceRequest.Builder> untagResourceRequest) throws InvalidParameterException, ServerInternalException, ServiceUnavailableException, AwsServiceException, SdkClientException, RamException
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.InvalidParameterException
- A parameter is not valid.ServerInternalException
- The service could not respond to the request due to an internal problem.ServiceUnavailableException
- The service is not available.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.RamException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
default UpdateResourceShareResponse updateResourceShare(UpdateResourceShareRequest updateResourceShareRequest) throws IdempotentParameterMismatchException, MissingRequiredParameterException, UnknownResourceException, MalformedArnException, InvalidClientTokenException, InvalidParameterException, OperationNotPermittedException, ServerInternalException, ServiceUnavailableException, AwsServiceException, SdkClientException, RamException
Updates the specified resource share.
updateResourceShareRequest
- IdempotentParameterMismatchException
- A client token input parameter was reused with an operation, but at least one of the other input
parameters is different from the previous call to the operation.MissingRequiredParameterException
- A required input parameter is missing.UnknownResourceException
- A specified resource was not found.MalformedArnException
- The format of an Amazon Resource Name (ARN) is not valid.InvalidClientTokenException
- A client token is not valid.InvalidParameterException
- A parameter is not valid.OperationNotPermittedException
- The requested operation is not permitted.ServerInternalException
- The service could not respond to the request due to an internal problem.ServiceUnavailableException
- The service is not available.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.RamException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
default UpdateResourceShareResponse updateResourceShare(Consumer<UpdateResourceShareRequest.Builder> updateResourceShareRequest) throws IdempotentParameterMismatchException, MissingRequiredParameterException, UnknownResourceException, MalformedArnException, InvalidClientTokenException, InvalidParameterException, OperationNotPermittedException, ServerInternalException, ServiceUnavailableException, AwsServiceException, SdkClientException, RamException
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.IdempotentParameterMismatchException
- A client token input parameter was reused with an operation, but at least one of the other input
parameters is different from the previous call to the operation.MissingRequiredParameterException
- A required input parameter is missing.UnknownResourceException
- A specified resource was not found.MalformedArnException
- The format of an Amazon Resource Name (ARN) is not valid.InvalidClientTokenException
- A client token is not valid.InvalidParameterException
- A parameter is not valid.OperationNotPermittedException
- The requested operation is not permitted.ServerInternalException
- The service could not respond to the request due to an internal problem.ServiceUnavailableException
- The service is not available.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.RamException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
static ServiceMetadata serviceMetadata()
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.