@Generated(value="software.amazon.awssdk:codegen") @ThreadSafe public interface RamClient extends SdkClient
builder() method.
This is the Resource Access Manager API Reference. This documentation provides descriptions and syntax for each of the actions and data types in RAM. RAM is a service that helps you securely share your Amazon Web Services resources across Amazon Web Services accounts. If you have multiple Amazon Web Services accounts, you can use RAM to share those resources with other accounts. If you use Organizations to manage your accounts, then you share your resources with your organization or organizational units (OUs). For supported resource types, you can also share resources with individual Identity and Access Management (IAM) roles an users.
To learn more about RAM, see the following resources:
| Modifier and Type | Field and Description |
|---|---|
static String |
SERVICE_METADATA_ID
Value for looking up the service's metadata from the
ServiceMetadataProvider. |
static String |
SERVICE_NAME |
| Modifier and Type | Method and Description |
|---|---|
default AcceptResourceShareInvitationResponse |
acceptResourceShareInvitation(AcceptResourceShareInvitationRequest acceptResourceShareInvitationRequest)
Accepts an invitation to a resource share from another Amazon Web Services account.
|
default AcceptResourceShareInvitationResponse |
acceptResourceShareInvitation(Consumer<AcceptResourceShareInvitationRequest.Builder> acceptResourceShareInvitationRequest)
Accepts an invitation to a resource share from another Amazon Web Services account.
|
default AssociateResourceShareResponse |
associateResourceShare(AssociateResourceShareRequest associateResourceShareRequest)
Adds the specified list of principals and list of resources to a resource share.
|
default AssociateResourceShareResponse |
associateResourceShare(Consumer<AssociateResourceShareRequest.Builder> associateResourceShareRequest)
Adds the specified list of principals and list of resources to a resource share.
|
default AssociateResourceSharePermissionResponse |
associateResourceSharePermission(AssociateResourceSharePermissionRequest associateResourceSharePermissionRequest)
Adds or replaces the RAM permission for a resource type included in a resource share.
|
default AssociateResourceSharePermissionResponse |
associateResourceSharePermission(Consumer<AssociateResourceSharePermissionRequest.Builder> associateResourceSharePermissionRequest)
Adds or replaces the RAM permission for a resource type included in a resource share.
|
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 DisassociateResourceSharePermissionResponse |
disassociateResourceSharePermission(Consumer<DisassociateResourceSharePermissionRequest.Builder> disassociateResourceSharePermissionRequest)
Disassociates an RAM permission from a resource share.
|
default DisassociateResourceSharePermissionResponse |
disassociateResourceSharePermission(DisassociateResourceSharePermissionRequest disassociateResourceSharePermissionRequest)
Disassociates an RAM permission from a resource share.
|
default EnableSharingWithAwsOrganizationResponse |
enableSharingWithAwsOrganization()
Enables resource sharing within your organization in Organizations.
|
default EnableSharingWithAwsOrganizationResponse |
enableSharingWithAwsOrganization(Consumer<EnableSharingWithAwsOrganizationRequest.Builder> enableSharingWithAwsOrganizationRequest)
Enables resource sharing within your organization in Organizations.
|
default EnableSharingWithAwsOrganizationResponse |
enableSharingWithAwsOrganization(EnableSharingWithAwsOrganizationRequest enableSharingWithAwsOrganizationRequest)
Enables resource sharing within your organization in Organizations.
|
default GetPermissionResponse |
getPermission(Consumer<GetPermissionRequest.Builder> getPermissionRequest)
Gets the contents of an RAM permission in JSON format.
|
default GetPermissionResponse |
getPermission(GetPermissionRequest getPermissionRequest)
Gets the contents of an RAM permission in JSON format.
|
default GetResourcePoliciesResponse |
getResourcePolicies(Consumer<GetResourcePoliciesRequest.Builder> getResourcePoliciesRequest)
Retrieves the resource policies for the specified resources that you own and have shared.
|
default GetResourcePoliciesResponse |
getResourcePolicies(GetResourcePoliciesRequest getResourcePoliciesRequest)
Retrieves the resource policies for the specified resources that you own and have shared.
|
default GetResourcePoliciesIterable |
getResourcePoliciesPaginator(Consumer<GetResourcePoliciesRequest.Builder> getResourcePoliciesRequest)
Retrieves the resource policies for the specified resources that you own and have shared.
|
default GetResourcePoliciesIterable |
getResourcePoliciesPaginator(GetResourcePoliciesRequest getResourcePoliciesRequest)
Retrieves the resource policies for the specified resources that you own and have shared.
|
default GetResourceShareAssociationsResponse |
getResourceShareAssociations(Consumer<GetResourceShareAssociationsRequest.Builder> getResourceShareAssociationsRequest)
Retrieves the resource and principal associations for resource shares that you own.
|
default GetResourceShareAssociationsResponse |
getResourceShareAssociations(GetResourceShareAssociationsRequest getResourceShareAssociationsRequest)
Retrieves the resource and principal associations for resource shares that you own.
|
default GetResourceShareAssociationsIterable |
getResourceShareAssociationsPaginator(Consumer<GetResourceShareAssociationsRequest.Builder> getResourceShareAssociationsRequest)
Retrieves the resource and principal associations for resource shares that you own.
|
default GetResourceShareAssociationsIterable |
getResourceShareAssociationsPaginator(GetResourceShareAssociationsRequest getResourceShareAssociationsRequest)
Retrieves the resource and principal associations for resource shares that you own.
|
default GetResourceShareInvitationsResponse |
getResourceShareInvitations()
Retrieves details about invitations that you have received for resource shares.
|
default GetResourceShareInvitationsResponse |
getResourceShareInvitations(Consumer<GetResourceShareInvitationsRequest.Builder> getResourceShareInvitationsRequest)
Retrieves details about invitations that you have received for resource shares.
|
default GetResourceShareInvitationsResponse |
getResourceShareInvitations(GetResourceShareInvitationsRequest getResourceShareInvitationsRequest)
Retrieves details about invitations that you have received for resource shares.
|
default GetResourceShareInvitationsIterable |
getResourceShareInvitationsPaginator()
Retrieves details about invitations that you have received for resource shares.
|
default GetResourceShareInvitationsIterable |
getResourceShareInvitationsPaginator(Consumer<GetResourceShareInvitationsRequest.Builder> getResourceShareInvitationsRequest)
Retrieves details about invitations that you have received for resource shares.
|
default GetResourceShareInvitationsIterable |
getResourceShareInvitationsPaginator(GetResourceShareInvitationsRequest getResourceShareInvitationsRequest)
Retrieves details about invitations that you have received for resource shares.
|
default GetResourceSharesResponse |
getResourceShares(Consumer<GetResourceSharesRequest.Builder> getResourceSharesRequest)
Retrieves details about the resource shares that you own or that are shared with you.
|
default GetResourceSharesResponse |
getResourceShares(GetResourceSharesRequest getResourceSharesRequest)
Retrieves details about the resource shares that you own or that are shared with you.
|
default GetResourceSharesIterable |
getResourceSharesPaginator(Consumer<GetResourceSharesRequest.Builder> getResourceSharesRequest)
Retrieves details about the resource shares that you own or that are shared with you.
|
default GetResourceSharesIterable |
getResourceSharesPaginator(GetResourceSharesRequest getResourceSharesRequest)
Retrieves details about the resource shares that you own or that are shared with you.
|
default ListPendingInvitationResourcesResponse |
listPendingInvitationResources(Consumer<ListPendingInvitationResourcesRequest.Builder> listPendingInvitationResourcesRequest)
Lists the resources in a resource share that is shared with you but for which the invitation is still
PENDING. |
default ListPendingInvitationResourcesResponse |
listPendingInvitationResources(ListPendingInvitationResourcesRequest listPendingInvitationResourcesRequest)
Lists the resources in a resource share that is shared with you but for which the invitation is still
PENDING. |
default ListPendingInvitationResourcesIterable |
listPendingInvitationResourcesPaginator(Consumer<ListPendingInvitationResourcesRequest.Builder> listPendingInvitationResourcesRequest)
Lists the resources in a resource share that is shared with you but for which the invitation is still
PENDING. |
default ListPendingInvitationResourcesIterable |
listPendingInvitationResourcesPaginator(ListPendingInvitationResourcesRequest listPendingInvitationResourcesRequest)
Lists the resources in a resource share that is shared with you but for which the invitation is still
PENDING. |
default ListPermissionsResponse |
listPermissions(Consumer<ListPermissionsRequest.Builder> listPermissionsRequest)
Retrieves a list of available RAM permissions that you can use for the supported resource types.
|
default ListPermissionsResponse |
listPermissions(ListPermissionsRequest listPermissionsRequest)
Retrieves a list of available RAM permissions that you can use for the supported resource types.
|
default ListPermissionsIterable |
listPermissionsPaginator(Consumer<ListPermissionsRequest.Builder> listPermissionsRequest)
Retrieves a list of available RAM permissions that you can use for the supported resource types.
|
default ListPermissionsIterable |
listPermissionsPaginator(ListPermissionsRequest listPermissionsRequest)
Retrieves a list of available RAM permissions that you can use for the supported resource types.
|
default ListPermissionVersionsResponse |
listPermissionVersions(Consumer<ListPermissionVersionsRequest.Builder> listPermissionVersionsRequest)
Lists the available versions of the specified RAM permission.
|
default ListPermissionVersionsResponse |
listPermissionVersions(ListPermissionVersionsRequest listPermissionVersionsRequest)
Lists the available versions of the specified RAM permission.
|
default ListPermissionVersionsIterable |
listPermissionVersionsPaginator(Consumer<ListPermissionVersionsRequest.Builder> listPermissionVersionsRequest)
Lists the available versions of the specified RAM permission.
|
default ListPermissionVersionsIterable |
listPermissionVersionsPaginator(ListPermissionVersionsRequest listPermissionVersionsRequest)
Lists the available versions of the specified RAM permission.
|
default ListPrincipalsResponse |
listPrincipals(Consumer<ListPrincipalsRequest.Builder> listPrincipalsRequest)
Lists the principals that you are sharing resources with or that are sharing resources with you.
|
default ListPrincipalsResponse |
listPrincipals(ListPrincipalsRequest listPrincipalsRequest)
Lists the principals that you are sharing resources with or that are sharing resources with you.
|
default ListPrincipalsIterable |
listPrincipalsPaginator(Consumer<ListPrincipalsRequest.Builder> listPrincipalsRequest)
Lists the principals that you are sharing resources with or that are sharing resources with you.
|
default ListPrincipalsIterable |
listPrincipalsPaginator(ListPrincipalsRequest listPrincipalsRequest)
Lists the principals that you are sharing resources with or that are sharing resources with you.
|
default ListResourcesResponse |
listResources(Consumer<ListResourcesRequest.Builder> listResourcesRequest)
Lists the resources that you added to a resource share or the resources that are shared with you.
|
default ListResourcesResponse |
listResources(ListResourcesRequest listResourcesRequest)
Lists the resources that you added to a resource share or the resources that are shared with you.
|
default ListResourceSharePermissionsResponse |
listResourceSharePermissions(Consumer<ListResourceSharePermissionsRequest.Builder> listResourceSharePermissionsRequest)
Lists the RAM permissions that are associated with a resource share.
|
default ListResourceSharePermissionsResponse |
listResourceSharePermissions(ListResourceSharePermissionsRequest listResourceSharePermissionsRequest)
Lists the RAM permissions that are associated with a resource share.
|
default ListResourceSharePermissionsIterable |
listResourceSharePermissionsPaginator(Consumer<ListResourceSharePermissionsRequest.Builder> listResourceSharePermissionsRequest)
Lists the RAM permissions that are associated with a resource share.
|
default ListResourceSharePermissionsIterable |
listResourceSharePermissionsPaginator(ListResourceSharePermissionsRequest listResourceSharePermissionsRequest)
Lists the RAM permissions that are associated with a resource share.
|
default ListResourcesIterable |
listResourcesPaginator(Consumer<ListResourcesRequest.Builder> listResourcesRequest)
Lists the resources that you added to a resource share or the resources that are shared with you.
|
default ListResourcesIterable |
listResourcesPaginator(ListResourcesRequest listResourcesRequest)
Lists the resources that you added to a resource share or the resources that are shared with you.
|
default ListResourceTypesResponse |
listResourceTypes(Consumer<ListResourceTypesRequest.Builder> listResourceTypesRequest)
Lists the resource types that can be shared by RAM.
|
default ListResourceTypesResponse |
listResourceTypes(ListResourceTypesRequest listResourceTypesRequest)
Lists the resource types that can be shared by RAM.
|
default ListResourceTypesIterable |
listResourceTypesPaginator(Consumer<ListResourceTypesRequest.Builder> listResourceTypesRequest)
Lists the resource types that can be shared by RAM.
|
default ListResourceTypesIterable |
listResourceTypesPaginator(ListResourceTypesRequest listResourceTypesRequest)
Lists the resource types that can be shared by RAM.
|
default PromoteResourceShareCreatedFromPolicyResponse |
promoteResourceShareCreatedFromPolicy(Consumer<PromoteResourceShareCreatedFromPolicyRequest.Builder> promoteResourceShareCreatedFromPolicyRequest)
When you attach a resource-based permission policy to a resource, it automatically creates a resource share.
|
default PromoteResourceShareCreatedFromPolicyResponse |
promoteResourceShareCreatedFromPolicy(PromoteResourceShareCreatedFromPolicyRequest promoteResourceShareCreatedFromPolicyRequest)
When you attach a resource-based permission policy to a resource, it automatically creates a resource share.
|
default RejectResourceShareInvitationResponse |
rejectResourceShareInvitation(Consumer<RejectResourceShareInvitationRequest.Builder> rejectResourceShareInvitationRequest)
Rejects an invitation to a resource share from another Amazon Web Services account.
|
default RejectResourceShareInvitationResponse |
rejectResourceShareInvitation(RejectResourceShareInvitationRequest rejectResourceShareInvitationRequest)
Rejects an invitation to a resource share from another Amazon Web Services account.
|
static ServiceMetadata |
serviceMetadata() |
default TagResourceResponse |
tagResource(Consumer<TagResourceRequest.Builder> tagResourceRequest)
Adds the specified tag keys and values to the specified resource share.
|
default TagResourceResponse |
tagResource(TagResourceRequest tagResourceRequest)
Adds the specified tag keys and values to the specified resource share.
|
default UntagResourceResponse |
untagResource(Consumer<UntagResourceRequest.Builder> untagResourceRequest)
Removes the specified tag key and value pairs from the specified resource share.
|
default UntagResourceResponse |
untagResource(UntagResourceRequest untagResourceRequest)
Removes the specified tag key and value pairs from the specified resource share.
|
default UpdateResourceShareResponse |
updateResourceShare(Consumer<UpdateResourceShareRequest.Builder> updateResourceShareRequest)
Modifies some of the properties of the specified resource share.
|
default UpdateResourceShareResponse |
updateResourceShare(UpdateResourceShareRequest updateResourceShareRequest)
Modifies some of the properties of the specified resource share.
|
serviceNameclosestatic final String SERVICE_NAME
static final String SERVICE_METADATA_ID
ServiceMetadataProvider.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, InvalidClientTokenException, IdempotentParameterMismatchException, AwsServiceException, SdkClientException, RamException
Accepts an invitation to a resource share from another Amazon Web Services account. After you accept the invitation, the resources included in the resource share are available to interact with in the relevant Amazon Web Services Management Consoles and tools.
acceptResourceShareInvitationRequest - MalformedArnException - The format of an Amazon Resource Name (ARN) is not valid.OperationNotPermittedException - The requested operation is not permitted.ResourceShareInvitationArnNotFoundException - The specified Amazon Resource Name (ARN) for an invitation was not found.ResourceShareInvitationAlreadyAcceptedException - The specified invitation was already accepted.ResourceShareInvitationAlreadyRejectedException - The specified invitation was already rejected.ResourceShareInvitationExpiredException - The specified invitation is expired.ServerInternalException - The service could not respond to the request due to an internal problem.ServiceUnavailableException - The service is not available.InvalidClientTokenException - The client token is not valid.IdempotentParameterMismatchException - The client token input parameter was matched one used with a previous call to the operation, but at least
one of the other input parameters is different from the previous call.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.AwsServiceExceptiondefault AcceptResourceShareInvitationResponse acceptResourceShareInvitation(Consumer<AcceptResourceShareInvitationRequest.Builder> acceptResourceShareInvitationRequest) throws MalformedArnException, OperationNotPermittedException, ResourceShareInvitationArnNotFoundException, ResourceShareInvitationAlreadyAcceptedException, ResourceShareInvitationAlreadyRejectedException, ResourceShareInvitationExpiredException, ServerInternalException, ServiceUnavailableException, InvalidClientTokenException, IdempotentParameterMismatchException, AwsServiceException, SdkClientException, RamException
Accepts an invitation to a resource share from another Amazon Web Services account. After you accept the invitation, the resources included in the resource share are available to interact with in the relevant Amazon Web Services Management Consoles and tools.
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 specified Amazon Resource Name (ARN) for an invitation was not found.ResourceShareInvitationAlreadyAcceptedException - The specified invitation was already accepted.ResourceShareInvitationAlreadyRejectedException - The specified invitation was already rejected.ResourceShareInvitationExpiredException - The specified invitation is expired.ServerInternalException - The service could not respond to the request due to an internal problem.ServiceUnavailableException - The service is not available.InvalidClientTokenException - The client token is not valid.IdempotentParameterMismatchException - The client token input parameter was matched one used with a previous call to the operation, but at least
one of the other input parameters is different from the previous call.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.AwsServiceExceptiondefault AssociateResourceShareResponse associateResourceShare(AssociateResourceShareRequest associateResourceShareRequest) throws IdempotentParameterMismatchException, UnknownResourceException, InvalidStateTransitionException, ResourceShareLimitExceededException, MalformedArnException, InvalidClientTokenException, InvalidParameterException, OperationNotPermittedException, ServerInternalException, ServiceUnavailableException, ThrottlingException, AwsServiceException, SdkClientException, RamException
Adds the specified list of principals and list of resources to a resource share. Principals that already have access to this resource share immediately receive access to the added resources. Newly added principals immediately receive access to the resources shared in this resource share.
associateResourceShareRequest - IdempotentParameterMismatchException - The client token input parameter was matched one used with a previous call to the operation, but at least
one of the other input parameters is different from the previous call.UnknownResourceException - A specified resource was not found.InvalidStateTransitionException - The requested state transition is not valid.ResourceShareLimitExceededException - This request would exceed the limit for resource shares for your account.MalformedArnException - The format of an Amazon Resource Name (ARN) is not valid.InvalidStateTransitionException - The requested state transition is not valid.InvalidClientTokenException - The 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.ThrottlingException - You exceeded the rate at which you are allowed to perform this operation. Please try again later.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.AwsServiceExceptiondefault AssociateResourceShareResponse associateResourceShare(Consumer<AssociateResourceShareRequest.Builder> associateResourceShareRequest) throws IdempotentParameterMismatchException, UnknownResourceException, InvalidStateTransitionException, ResourceShareLimitExceededException, MalformedArnException, InvalidClientTokenException, InvalidParameterException, OperationNotPermittedException, ServerInternalException, ServiceUnavailableException, ThrottlingException, AwsServiceException, SdkClientException, RamException
Adds the specified list of principals and list of resources to a resource share. Principals that already have access to this resource share immediately receive access to the added resources. Newly added principals immediately receive access to the resources shared in this resource share.
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 - The client token input parameter was matched one used with a previous call to the operation, but at least
one of the other input parameters is different from the previous call.UnknownResourceException - A specified resource was not found.InvalidStateTransitionException - The requested state transition is not valid.ResourceShareLimitExceededException - This request would exceed the limit for resource shares for your account.MalformedArnException - The format of an Amazon Resource Name (ARN) is not valid.InvalidStateTransitionException - The requested state transition is not valid.InvalidClientTokenException - The 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.ThrottlingException - You exceeded the rate at which you are allowed to perform this operation. Please try again later.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.AwsServiceExceptiondefault AssociateResourceSharePermissionResponse associateResourceSharePermission(AssociateResourceSharePermissionRequest associateResourceSharePermissionRequest) throws MalformedArnException, UnknownResourceException, InvalidParameterException, InvalidClientTokenException, ServerInternalException, ServiceUnavailableException, OperationNotPermittedException, AwsServiceException, SdkClientException, RamException
Adds or replaces the RAM permission for a resource type included in a resource share. You can have exactly one permission associated with each resource type in the resource share. You can add a new RAM permission only if there are currently no resources of that resource type currently in the resource share.
associateResourceSharePermissionRequest - MalformedArnException - The format of an Amazon Resource Name (ARN) is not valid.UnknownResourceException - A specified resource was not found.InvalidParameterException - A parameter is not valid.InvalidClientTokenException - The client token is not valid.ServerInternalException - The service could not respond to the request due to an internal problem.ServiceUnavailableException - The service is not available.OperationNotPermittedException - The requested operation is not permitted.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.AwsServiceExceptiondefault AssociateResourceSharePermissionResponse associateResourceSharePermission(Consumer<AssociateResourceSharePermissionRequest.Builder> associateResourceSharePermissionRequest) throws MalformedArnException, UnknownResourceException, InvalidParameterException, InvalidClientTokenException, ServerInternalException, ServiceUnavailableException, OperationNotPermittedException, AwsServiceException, SdkClientException, RamException
Adds or replaces the RAM permission for a resource type included in a resource share. You can have exactly one permission associated with each resource type in the resource share. You can add a new RAM permission only if there are currently no resources of that resource type currently in the resource share.
This is a convenience which creates an instance of the AssociateResourceSharePermissionRequest.Builder
avoiding the need to create one manually via AssociateResourceSharePermissionRequest.builder()
associateResourceSharePermissionRequest - A Consumer that will call methods on AssociateResourceSharePermissionRequest.Builder to
create a request.MalformedArnException - The format of an Amazon Resource Name (ARN) is not valid.UnknownResourceException - A specified resource was not found.InvalidParameterException - A parameter is not valid.InvalidClientTokenException - The client token is not valid.ServerInternalException - The service could not respond to the request due to an internal problem.ServiceUnavailableException - The service is not available.OperationNotPermittedException - The requested operation is not permitted.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.AwsServiceExceptiondefault CreateResourceShareResponse createResourceShare(CreateResourceShareRequest createResourceShareRequest) throws IdempotentParameterMismatchException, InvalidStateTransitionException, UnknownResourceException, MalformedArnException, InvalidClientTokenException, InvalidParameterException, OperationNotPermittedException, ResourceShareLimitExceededException, TagPolicyViolationException, ServerInternalException, ServiceUnavailableException, AwsServiceException, SdkClientException, RamException
Creates a resource share. You can provide a list of the Amazon Resource Names (ARNs) for the resources that you want to share, a list of principals you want to share the resources with, and the permissions to grant those principals.
Sharing a resource makes it available for use by principals outside of the Amazon Web Services account that created the resource. Sharing doesn't change any permissions or quotas that apply to the resource in the account that created it.
createResourceShareRequest - IdempotentParameterMismatchException - The client token input parameter was matched one used with a previous call to the operation, but at least
one of the other input parameters is different from the previous call.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 - The client token is not valid.InvalidParameterException - A parameter is not valid.OperationNotPermittedException - The requested operation is not permitted.ResourceShareLimitExceededException - This request would exceed the limit for resource shares for your account.TagPolicyViolationException - The specified tag key is a reserved word and can't be used.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.AwsServiceExceptiondefault CreateResourceShareResponse createResourceShare(Consumer<CreateResourceShareRequest.Builder> createResourceShareRequest) throws IdempotentParameterMismatchException, InvalidStateTransitionException, UnknownResourceException, MalformedArnException, InvalidClientTokenException, InvalidParameterException, OperationNotPermittedException, ResourceShareLimitExceededException, TagPolicyViolationException, ServerInternalException, ServiceUnavailableException, AwsServiceException, SdkClientException, RamException
Creates a resource share. You can provide a list of the Amazon Resource Names (ARNs) for the resources that you want to share, a list of principals you want to share the resources with, and the permissions to grant those principals.
Sharing a resource makes it available for use by principals outside of the Amazon Web Services account that created the resource. Sharing doesn't change any permissions or quotas that apply to the resource in the account that created it.
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 - The client token input parameter was matched one used with a previous call to the operation, but at least
one of the other input parameters is different from the previous call.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 - The client token is not valid.InvalidParameterException - A parameter is not valid.OperationNotPermittedException - The requested operation is not permitted.ResourceShareLimitExceededException - This request would exceed the limit for resource shares for your account.TagPolicyViolationException - The specified tag key is a reserved word and can't be used.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.AwsServiceExceptiondefault DeleteResourceShareResponse deleteResourceShare(DeleteResourceShareRequest deleteResourceShareRequest) throws OperationNotPermittedException, IdempotentParameterMismatchException, InvalidStateTransitionException, UnknownResourceException, MalformedArnException, InvalidClientTokenException, InvalidParameterException, ServerInternalException, ServiceUnavailableException, AwsServiceException, SdkClientException, RamException
Deletes the specified resource share. This doesn't delete any of the resources that were associated with the resource share; it only stops the sharing of those resources outside of the Amazon Web Services account that created them.
deleteResourceShareRequest - OperationNotPermittedException - The requested operation is not permitted.IdempotentParameterMismatchException - The client token input parameter was matched one used with a previous call to the operation, but at least
one of the other input parameters is different from the previous call.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 - The 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.AwsServiceExceptiondefault 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 doesn't delete any of the resources that were associated with the resource share; it only stops the sharing of those resources outside of the Amazon Web Services account that created them.
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 - The client token input parameter was matched one used with a previous call to the operation, but at least
one of the other input parameters is different from the previous call.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 - The 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.AwsServiceExceptiondefault 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 - The client token input parameter was matched one used with a previous call to the operation, but at least
one of the other input parameters is different from the previous call.ResourceShareLimitExceededException - This request would exceed the limit for resource shares for your account.MalformedArnException - The format of an Amazon Resource Name (ARN) is not valid.InvalidStateTransitionException - The requested state transition is not valid.InvalidClientTokenException - The 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.AwsServiceExceptiondefault 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 - The client token input parameter was matched one used with a previous call to the operation, but at least
one of the other input parameters is different from the previous call.ResourceShareLimitExceededException - This request would exceed the limit for resource shares for your account.MalformedArnException - The format of an Amazon Resource Name (ARN) is not valid.InvalidStateTransitionException - The requested state transition is not valid.InvalidClientTokenException - The 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.AwsServiceExceptiondefault DisassociateResourceSharePermissionResponse disassociateResourceSharePermission(DisassociateResourceSharePermissionRequest disassociateResourceSharePermissionRequest) throws MalformedArnException, UnknownResourceException, InvalidParameterException, InvalidClientTokenException, ServerInternalException, ServiceUnavailableException, OperationNotPermittedException, InvalidStateTransitionException, AwsServiceException, SdkClientException, RamException
Disassociates an RAM permission from a resource share. Permission changes take effect immediately. You can remove a RAM permission from a resource share only if there are currently no resources of the relevant resource type currently attached to the resource share.
disassociateResourceSharePermissionRequest - MalformedArnException - The format of an Amazon Resource Name (ARN) is not valid.UnknownResourceException - A specified resource was not found.InvalidParameterException - A parameter is not valid.InvalidClientTokenException - The client token is not valid.ServerInternalException - The service could not respond to the request due to an internal problem.ServiceUnavailableException - The service is not available.OperationNotPermittedException - The requested operation is not permitted.InvalidStateTransitionException - The requested state transition is not valid.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.AwsServiceExceptiondefault DisassociateResourceSharePermissionResponse disassociateResourceSharePermission(Consumer<DisassociateResourceSharePermissionRequest.Builder> disassociateResourceSharePermissionRequest) throws MalformedArnException, UnknownResourceException, InvalidParameterException, InvalidClientTokenException, ServerInternalException, ServiceUnavailableException, OperationNotPermittedException, InvalidStateTransitionException, AwsServiceException, SdkClientException, RamException
Disassociates an RAM permission from a resource share. Permission changes take effect immediately. You can remove a RAM permission from a resource share only if there are currently no resources of the relevant resource type currently attached to the resource share.
This is a convenience which creates an instance of the DisassociateResourceSharePermissionRequest.Builder
avoiding the need to create one manually via DisassociateResourceSharePermissionRequest.builder()
disassociateResourceSharePermissionRequest - A Consumer that will call methods on DisassociateResourceSharePermissionRequest.Builder to
create a request.MalformedArnException - The format of an Amazon Resource Name (ARN) is not valid.UnknownResourceException - A specified resource was not found.InvalidParameterException - A parameter is not valid.InvalidClientTokenException - The client token is not valid.ServerInternalException - The service could not respond to the request due to an internal problem.ServiceUnavailableException - The service is not available.OperationNotPermittedException - The requested operation is not permitted.InvalidStateTransitionException - The requested state transition is not valid.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.AwsServiceExceptiondefault EnableSharingWithAwsOrganizationResponse enableSharingWithAwsOrganization() throws OperationNotPermittedException, ServerInternalException, ServiceUnavailableException, AwsServiceException, SdkClientException, RamException
Enables resource sharing within your organization in Organizations. Calling this operation enables RAM to retrieve information about the organization and its structure. This lets you share resources with all of the accounts in an organization by specifying the organization's ID, or all of the accounts in an organizational unit (OU) by specifying the OU's ID. Until you enable sharing within the organization, you can specify only individual Amazon Web Services accounts, or for supported resource types, IAM users and roles.
You must call this operation from an IAM user or role in the organization's management account.
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.AwsServiceExceptionenableSharingWithAwsOrganization(EnableSharingWithAwsOrganizationRequest),
AWS API Documentationdefault EnableSharingWithAwsOrganizationResponse enableSharingWithAwsOrganization(EnableSharingWithAwsOrganizationRequest enableSharingWithAwsOrganizationRequest) throws OperationNotPermittedException, ServerInternalException, ServiceUnavailableException, AwsServiceException, SdkClientException, RamException
Enables resource sharing within your organization in Organizations. Calling this operation enables RAM to retrieve information about the organization and its structure. This lets you share resources with all of the accounts in an organization by specifying the organization's ID, or all of the accounts in an organizational unit (OU) by specifying the OU's ID. Until you enable sharing within the organization, you can specify only individual Amazon Web Services accounts, or for supported resource types, IAM users and roles.
You must call this operation from an IAM user or role in the organization's management account.
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.AwsServiceExceptiondefault EnableSharingWithAwsOrganizationResponse enableSharingWithAwsOrganization(Consumer<EnableSharingWithAwsOrganizationRequest.Builder> enableSharingWithAwsOrganizationRequest) throws OperationNotPermittedException, ServerInternalException, ServiceUnavailableException, AwsServiceException, SdkClientException, RamException
Enables resource sharing within your organization in Organizations. Calling this operation enables RAM to retrieve information about the organization and its structure. This lets you share resources with all of the accounts in an organization by specifying the organization's ID, or all of the accounts in an organizational unit (OU) by specifying the OU's ID. Until you enable sharing within the organization, you can specify only individual Amazon Web Services accounts, or for supported resource types, IAM users and roles.
You must call this operation from an IAM user or role in the organization's management account.
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.AwsServiceExceptiondefault GetPermissionResponse getPermission(GetPermissionRequest getPermissionRequest) throws InvalidParameterException, MalformedArnException, UnknownResourceException, ServerInternalException, ServiceUnavailableException, OperationNotPermittedException, AwsServiceException, SdkClientException, RamException
Gets the contents of an RAM permission in JSON format.
getPermissionRequest - InvalidParameterException - A parameter is not valid.MalformedArnException - The format of an Amazon Resource Name (ARN) is not valid.UnknownResourceException - A specified resource was not found.ServerInternalException - The service could not respond to the request due to an internal problem.ServiceUnavailableException - The service is not available.OperationNotPermittedException - The requested operation is not permitted.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.AwsServiceExceptiondefault GetPermissionResponse getPermission(Consumer<GetPermissionRequest.Builder> getPermissionRequest) throws InvalidParameterException, MalformedArnException, UnknownResourceException, ServerInternalException, ServiceUnavailableException, OperationNotPermittedException, AwsServiceException, SdkClientException, RamException
Gets the contents of an RAM permission in JSON format.
This is a convenience which creates an instance of the GetPermissionRequest.Builder avoiding the need to
create one manually via GetPermissionRequest.builder()
getPermissionRequest - A Consumer that will call methods on GetPermissionRequest.Builder to create a request.InvalidParameterException - A parameter is not valid.MalformedArnException - The format of an Amazon Resource Name (ARN) is not valid.UnknownResourceException - A specified resource was not found.ServerInternalException - The service could not respond to the request due to an internal problem.ServiceUnavailableException - The service is not available.OperationNotPermittedException - The requested operation is not permitted.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.AwsServiceExceptiondefault GetResourcePoliciesResponse getResourcePolicies(GetResourcePoliciesRequest getResourcePoliciesRequest) throws MalformedArnException, InvalidNextTokenException, InvalidParameterException, ResourceArnNotFoundException, ServerInternalException, ServiceUnavailableException, AwsServiceException, SdkClientException, RamException
Retrieves the resource policies for the specified resources that you own and have shared.
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.ResourceArnNotFoundException - The specified 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.AwsServiceExceptiondefault GetResourcePoliciesResponse getResourcePolicies(Consumer<GetResourcePoliciesRequest.Builder> getResourcePoliciesRequest) throws MalformedArnException, InvalidNextTokenException, InvalidParameterException, ResourceArnNotFoundException, ServerInternalException, ServiceUnavailableException, AwsServiceException, SdkClientException, RamException
Retrieves the resource policies for the specified resources that you own and have shared.
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.ResourceArnNotFoundException - The specified 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.AwsServiceExceptiondefault GetResourcePoliciesIterable getResourcePoliciesPaginator(GetResourcePoliciesRequest getResourcePoliciesRequest) throws MalformedArnException, InvalidNextTokenException, InvalidParameterException, ResourceArnNotFoundException, ServerInternalException, ServiceUnavailableException, AwsServiceException, SdkClientException, RamException
Retrieves the resource policies for the specified resources that you own and have shared.
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(....);
Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
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.ResourceArnNotFoundException - The specified 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.AwsServiceExceptiondefault GetResourcePoliciesIterable getResourcePoliciesPaginator(Consumer<GetResourcePoliciesRequest.Builder> getResourcePoliciesRequest) throws MalformedArnException, InvalidNextTokenException, InvalidParameterException, ResourceArnNotFoundException, ServerInternalException, ServiceUnavailableException, AwsServiceException, SdkClientException, RamException
Retrieves the resource policies for the specified resources that you own and have shared.
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(....);
Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
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.ResourceArnNotFoundException - The specified 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.AwsServiceExceptiondefault GetResourceShareAssociationsResponse getResourceShareAssociations(GetResourceShareAssociationsRequest getResourceShareAssociationsRequest) throws UnknownResourceException, MalformedArnException, InvalidNextTokenException, InvalidParameterException, OperationNotPermittedException, ServerInternalException, ServiceUnavailableException, AwsServiceException, SdkClientException, RamException
Retrieves the resource and principal associations for resource shares that you own.
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.AwsServiceExceptiondefault GetResourceShareAssociationsResponse getResourceShareAssociations(Consumer<GetResourceShareAssociationsRequest.Builder> getResourceShareAssociationsRequest) throws UnknownResourceException, MalformedArnException, InvalidNextTokenException, InvalidParameterException, OperationNotPermittedException, ServerInternalException, ServiceUnavailableException, AwsServiceException, SdkClientException, RamException
Retrieves the resource and principal associations for resource shares that you own.
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.AwsServiceExceptiondefault GetResourceShareAssociationsIterable getResourceShareAssociationsPaginator(GetResourceShareAssociationsRequest getResourceShareAssociationsRequest) throws UnknownResourceException, MalformedArnException, InvalidNextTokenException, InvalidParameterException, OperationNotPermittedException, ServerInternalException, ServiceUnavailableException, AwsServiceException, SdkClientException, RamException
Retrieves the resource and principal associations for resource shares that you own.
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(....);
Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
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.AwsServiceExceptiondefault GetResourceShareAssociationsIterable getResourceShareAssociationsPaginator(Consumer<GetResourceShareAssociationsRequest.Builder> getResourceShareAssociationsRequest) throws UnknownResourceException, MalformedArnException, InvalidNextTokenException, InvalidParameterException, OperationNotPermittedException, ServerInternalException, ServiceUnavailableException, AwsServiceException, SdkClientException, RamException
Retrieves the resource and principal associations for resource shares that you own.
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(....);
Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
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.AwsServiceExceptiondefault GetResourceShareInvitationsResponse getResourceShareInvitations() throws ResourceShareInvitationArnNotFoundException, InvalidMaxResultsException, MalformedArnException, UnknownResourceException, InvalidNextTokenException, InvalidParameterException, ServerInternalException, ServiceUnavailableException, AwsServiceException, SdkClientException, RamException
Retrieves details about invitations that you have received for resource shares.
ResourceShareInvitationArnNotFoundException - The specified 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.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.AwsServiceExceptiongetResourceShareInvitations(GetResourceShareInvitationsRequest),
AWS API Documentationdefault GetResourceShareInvitationsResponse getResourceShareInvitations(GetResourceShareInvitationsRequest getResourceShareInvitationsRequest) throws ResourceShareInvitationArnNotFoundException, InvalidMaxResultsException, MalformedArnException, UnknownResourceException, InvalidNextTokenException, InvalidParameterException, ServerInternalException, ServiceUnavailableException, AwsServiceException, SdkClientException, RamException
Retrieves details about invitations that you have received for resource shares.
getResourceShareInvitationsRequest - ResourceShareInvitationArnNotFoundException - The specified 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.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.AwsServiceExceptiondefault GetResourceShareInvitationsResponse getResourceShareInvitations(Consumer<GetResourceShareInvitationsRequest.Builder> getResourceShareInvitationsRequest) throws ResourceShareInvitationArnNotFoundException, InvalidMaxResultsException, MalformedArnException, UnknownResourceException, InvalidNextTokenException, InvalidParameterException, ServerInternalException, ServiceUnavailableException, AwsServiceException, SdkClientException, RamException
Retrieves details about invitations that you have received for resource shares.
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 specified 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.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.AwsServiceExceptiondefault GetResourceShareInvitationsIterable getResourceShareInvitationsPaginator() throws ResourceShareInvitationArnNotFoundException, InvalidMaxResultsException, MalformedArnException, UnknownResourceException, InvalidNextTokenException, InvalidParameterException, ServerInternalException, ServiceUnavailableException, AwsServiceException, SdkClientException, RamException
Retrieves details about invitations that you have received for resource shares.
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(....);
Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
getResourceShareInvitations(software.amazon.awssdk.services.ram.model.GetResourceShareInvitationsRequest)
operation.
ResourceShareInvitationArnNotFoundException - The specified 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.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.AwsServiceExceptiongetResourceShareInvitationsPaginator(GetResourceShareInvitationsRequest),
AWS API Documentationdefault GetResourceShareInvitationsIterable getResourceShareInvitationsPaginator(GetResourceShareInvitationsRequest getResourceShareInvitationsRequest) throws ResourceShareInvitationArnNotFoundException, InvalidMaxResultsException, MalformedArnException, UnknownResourceException, InvalidNextTokenException, InvalidParameterException, ServerInternalException, ServiceUnavailableException, AwsServiceException, SdkClientException, RamException
Retrieves details about invitations that you have received for resource shares.
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(....);
Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
getResourceShareInvitations(software.amazon.awssdk.services.ram.model.GetResourceShareInvitationsRequest)
operation.
getResourceShareInvitationsRequest - ResourceShareInvitationArnNotFoundException - The specified 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.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.AwsServiceExceptiondefault GetResourceShareInvitationsIterable getResourceShareInvitationsPaginator(Consumer<GetResourceShareInvitationsRequest.Builder> getResourceShareInvitationsRequest) throws ResourceShareInvitationArnNotFoundException, InvalidMaxResultsException, MalformedArnException, UnknownResourceException, InvalidNextTokenException, InvalidParameterException, ServerInternalException, ServiceUnavailableException, AwsServiceException, SdkClientException, RamException
Retrieves details about invitations that you have received for resource shares.
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(....);
Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
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 specified 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.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.AwsServiceExceptiondefault GetResourceSharesResponse getResourceShares(GetResourceSharesRequest getResourceSharesRequest) throws UnknownResourceException, MalformedArnException, InvalidNextTokenException, InvalidParameterException, ServerInternalException, ServiceUnavailableException, AwsServiceException, SdkClientException, RamException
Retrieves details about the resource shares that you own or that are shared with you.
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.AwsServiceExceptiondefault GetResourceSharesResponse getResourceShares(Consumer<GetResourceSharesRequest.Builder> getResourceSharesRequest) throws UnknownResourceException, MalformedArnException, InvalidNextTokenException, InvalidParameterException, ServerInternalException, ServiceUnavailableException, AwsServiceException, SdkClientException, RamException
Retrieves details about the resource shares that you own or that are shared with you.
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.AwsServiceExceptiondefault GetResourceSharesIterable getResourceSharesPaginator(GetResourceSharesRequest getResourceSharesRequest) throws UnknownResourceException, MalformedArnException, InvalidNextTokenException, InvalidParameterException, ServerInternalException, ServiceUnavailableException, AwsServiceException, SdkClientException, RamException
Retrieves details about the resource shares that you own or that are shared with you.
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(....);
Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
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.AwsServiceExceptiondefault GetResourceSharesIterable getResourceSharesPaginator(Consumer<GetResourceSharesRequest.Builder> getResourceSharesRequest) throws UnknownResourceException, MalformedArnException, InvalidNextTokenException, InvalidParameterException, ServerInternalException, ServiceUnavailableException, AwsServiceException, SdkClientException, RamException
Retrieves details about the resource shares that you own or that are shared with you.
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(....);
Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
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.AwsServiceExceptiondefault ListPendingInvitationResourcesResponse listPendingInvitationResources(ListPendingInvitationResourcesRequest listPendingInvitationResourcesRequest) throws MalformedArnException, InvalidNextTokenException, InvalidParameterException, ServerInternalException, ServiceUnavailableException, ResourceShareInvitationArnNotFoundException, MissingRequiredParameterException, ResourceShareInvitationAlreadyRejectedException, ResourceShareInvitationExpiredException, AwsServiceException, SdkClientException, RamException
Lists the resources in a resource share that is shared with you but for which the invitation is still
PENDING. That means that you haven't accepted or rejected the invitation and the invitation hasn't
expired.
listPendingInvitationResourcesRequest - 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.ResourceShareInvitationArnNotFoundException - The specified Amazon Resource Name (ARN) for an invitation was not found.MissingRequiredParameterException - A required input parameter is missing.ResourceShareInvitationAlreadyRejectedException - The specified invitation was already rejected.ResourceShareInvitationExpiredException - The specified invitation is expired.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.AwsServiceExceptiondefault ListPendingInvitationResourcesResponse listPendingInvitationResources(Consumer<ListPendingInvitationResourcesRequest.Builder> listPendingInvitationResourcesRequest) throws MalformedArnException, InvalidNextTokenException, InvalidParameterException, ServerInternalException, ServiceUnavailableException, ResourceShareInvitationArnNotFoundException, MissingRequiredParameterException, ResourceShareInvitationAlreadyRejectedException, ResourceShareInvitationExpiredException, AwsServiceException, SdkClientException, RamException
Lists the resources in a resource share that is shared with you but for which the invitation is still
PENDING. That means that you haven't accepted or rejected the invitation and the invitation hasn't
expired.
This is a convenience which creates an instance of the ListPendingInvitationResourcesRequest.Builder
avoiding the need to create one manually via ListPendingInvitationResourcesRequest.builder()
listPendingInvitationResourcesRequest - A Consumer that will call methods on ListPendingInvitationResourcesRequest.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.ResourceShareInvitationArnNotFoundException - The specified Amazon Resource Name (ARN) for an invitation was not found.MissingRequiredParameterException - A required input parameter is missing.ResourceShareInvitationAlreadyRejectedException - The specified invitation was already rejected.ResourceShareInvitationExpiredException - The specified invitation is expired.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.AwsServiceExceptiondefault ListPendingInvitationResourcesIterable listPendingInvitationResourcesPaginator(ListPendingInvitationResourcesRequest listPendingInvitationResourcesRequest) throws MalformedArnException, InvalidNextTokenException, InvalidParameterException, ServerInternalException, ServiceUnavailableException, ResourceShareInvitationArnNotFoundException, MissingRequiredParameterException, ResourceShareInvitationAlreadyRejectedException, ResourceShareInvitationExpiredException, AwsServiceException, SdkClientException, RamException
Lists the resources in a resource share that is shared with you but for which the invitation is still
PENDING. That means that you haven't accepted or rejected the invitation and the invitation hasn't
expired.
This is a variant of
listPendingInvitationResources(software.amazon.awssdk.services.ram.model.ListPendingInvitationResourcesRequest)
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.ListPendingInvitationResourcesIterable responses = client.listPendingInvitationResourcesPaginator(request);
responses.stream().forEach(....);
2) Using For loop
{
@code
software.amazon.awssdk.services.ram.paginators.ListPendingInvitationResourcesIterable responses = client
.listPendingInvitationResourcesPaginator(request);
for (software.amazon.awssdk.services.ram.model.ListPendingInvitationResourcesResponse response : responses) {
// do something;
}
}
3) Use iterator directly
software.amazon.awssdk.services.ram.paginators.ListPendingInvitationResourcesIterable responses = client.listPendingInvitationResourcesPaginator(request);
responses.iterator().forEachRemaining(....);
Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listPendingInvitationResources(software.amazon.awssdk.services.ram.model.ListPendingInvitationResourcesRequest)
operation.
listPendingInvitationResourcesRequest - 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.ResourceShareInvitationArnNotFoundException - The specified Amazon Resource Name (ARN) for an invitation was not found.MissingRequiredParameterException - A required input parameter is missing.ResourceShareInvitationAlreadyRejectedException - The specified invitation was already rejected.ResourceShareInvitationExpiredException - The specified invitation is expired.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.AwsServiceExceptiondefault ListPendingInvitationResourcesIterable listPendingInvitationResourcesPaginator(Consumer<ListPendingInvitationResourcesRequest.Builder> listPendingInvitationResourcesRequest) throws MalformedArnException, InvalidNextTokenException, InvalidParameterException, ServerInternalException, ServiceUnavailableException, ResourceShareInvitationArnNotFoundException, MissingRequiredParameterException, ResourceShareInvitationAlreadyRejectedException, ResourceShareInvitationExpiredException, AwsServiceException, SdkClientException, RamException
Lists the resources in a resource share that is shared with you but for which the invitation is still
PENDING. That means that you haven't accepted or rejected the invitation and the invitation hasn't
expired.
This is a variant of
listPendingInvitationResources(software.amazon.awssdk.services.ram.model.ListPendingInvitationResourcesRequest)
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.ListPendingInvitationResourcesIterable responses = client.listPendingInvitationResourcesPaginator(request);
responses.stream().forEach(....);
2) Using For loop
{
@code
software.amazon.awssdk.services.ram.paginators.ListPendingInvitationResourcesIterable responses = client
.listPendingInvitationResourcesPaginator(request);
for (software.amazon.awssdk.services.ram.model.ListPendingInvitationResourcesResponse response : responses) {
// do something;
}
}
3) Use iterator directly
software.amazon.awssdk.services.ram.paginators.ListPendingInvitationResourcesIterable responses = client.listPendingInvitationResourcesPaginator(request);
responses.iterator().forEachRemaining(....);
Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listPendingInvitationResources(software.amazon.awssdk.services.ram.model.ListPendingInvitationResourcesRequest)
operation.
This is a convenience which creates an instance of the ListPendingInvitationResourcesRequest.Builder
avoiding the need to create one manually via ListPendingInvitationResourcesRequest.builder()
listPendingInvitationResourcesRequest - A Consumer that will call methods on ListPendingInvitationResourcesRequest.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.ResourceShareInvitationArnNotFoundException - The specified Amazon Resource Name (ARN) for an invitation was not found.MissingRequiredParameterException - A required input parameter is missing.ResourceShareInvitationAlreadyRejectedException - The specified invitation was already rejected.ResourceShareInvitationExpiredException - The specified invitation is expired.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.AwsServiceExceptiondefault ListPermissionVersionsResponse listPermissionVersions(ListPermissionVersionsRequest listPermissionVersionsRequest) throws MalformedArnException, UnknownResourceException, InvalidNextTokenException, ServerInternalException, ServiceUnavailableException, OperationNotPermittedException, InvalidParameterException, AwsServiceException, SdkClientException, RamException
Lists the available versions of the specified RAM permission.
listPermissionVersionsRequest - 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.ServerInternalException - The service could not respond to the request due to an internal problem.ServiceUnavailableException - The service is not available.OperationNotPermittedException - The requested operation is not permitted.InvalidParameterException - A parameter is not valid.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.AwsServiceExceptiondefault ListPermissionVersionsResponse listPermissionVersions(Consumer<ListPermissionVersionsRequest.Builder> listPermissionVersionsRequest) throws MalformedArnException, UnknownResourceException, InvalidNextTokenException, ServerInternalException, ServiceUnavailableException, OperationNotPermittedException, InvalidParameterException, AwsServiceException, SdkClientException, RamException
Lists the available versions of the specified RAM permission.
This is a convenience which creates an instance of the ListPermissionVersionsRequest.Builder avoiding the
need to create one manually via ListPermissionVersionsRequest.builder()
listPermissionVersionsRequest - A Consumer that will call methods on ListPermissionVersionsRequest.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.ServerInternalException - The service could not respond to the request due to an internal problem.ServiceUnavailableException - The service is not available.OperationNotPermittedException - The requested operation is not permitted.InvalidParameterException - A parameter is not valid.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.AwsServiceExceptiondefault ListPermissionVersionsIterable listPermissionVersionsPaginator(ListPermissionVersionsRequest listPermissionVersionsRequest) throws MalformedArnException, UnknownResourceException, InvalidNextTokenException, ServerInternalException, ServiceUnavailableException, OperationNotPermittedException, InvalidParameterException, AwsServiceException, SdkClientException, RamException
Lists the available versions of the specified RAM permission.
This is a variant of
listPermissionVersions(software.amazon.awssdk.services.ram.model.ListPermissionVersionsRequest)
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.ListPermissionVersionsIterable responses = client.listPermissionVersionsPaginator(request);
responses.stream().forEach(....);
2) Using For loop
{
@code
software.amazon.awssdk.services.ram.paginators.ListPermissionVersionsIterable responses = client
.listPermissionVersionsPaginator(request);
for (software.amazon.awssdk.services.ram.model.ListPermissionVersionsResponse response : responses) {
// do something;
}
}
3) Use iterator directly
software.amazon.awssdk.services.ram.paginators.ListPermissionVersionsIterable responses = client.listPermissionVersionsPaginator(request);
responses.iterator().forEachRemaining(....);
Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listPermissionVersions(software.amazon.awssdk.services.ram.model.ListPermissionVersionsRequest)
operation.
listPermissionVersionsRequest - 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.ServerInternalException - The service could not respond to the request due to an internal problem.ServiceUnavailableException - The service is not available.OperationNotPermittedException - The requested operation is not permitted.InvalidParameterException - A parameter is not valid.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.AwsServiceExceptiondefault ListPermissionVersionsIterable listPermissionVersionsPaginator(Consumer<ListPermissionVersionsRequest.Builder> listPermissionVersionsRequest) throws MalformedArnException, UnknownResourceException, InvalidNextTokenException, ServerInternalException, ServiceUnavailableException, OperationNotPermittedException, InvalidParameterException, AwsServiceException, SdkClientException, RamException
Lists the available versions of the specified RAM permission.
This is a variant of
listPermissionVersions(software.amazon.awssdk.services.ram.model.ListPermissionVersionsRequest)
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.ListPermissionVersionsIterable responses = client.listPermissionVersionsPaginator(request);
responses.stream().forEach(....);
2) Using For loop
{
@code
software.amazon.awssdk.services.ram.paginators.ListPermissionVersionsIterable responses = client
.listPermissionVersionsPaginator(request);
for (software.amazon.awssdk.services.ram.model.ListPermissionVersionsResponse response : responses) {
// do something;
}
}
3) Use iterator directly
software.amazon.awssdk.services.ram.paginators.ListPermissionVersionsIterable responses = client.listPermissionVersionsPaginator(request);
responses.iterator().forEachRemaining(....);
Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listPermissionVersions(software.amazon.awssdk.services.ram.model.ListPermissionVersionsRequest)
operation.
This is a convenience which creates an instance of the ListPermissionVersionsRequest.Builder avoiding the
need to create one manually via ListPermissionVersionsRequest.builder()
listPermissionVersionsRequest - A Consumer that will call methods on ListPermissionVersionsRequest.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.ServerInternalException - The service could not respond to the request due to an internal problem.ServiceUnavailableException - The service is not available.OperationNotPermittedException - The requested operation is not permitted.InvalidParameterException - A parameter is not valid.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.AwsServiceExceptiondefault ListPermissionsResponse listPermissions(ListPermissionsRequest listPermissionsRequest) throws InvalidParameterException, InvalidNextTokenException, ServerInternalException, ServiceUnavailableException, OperationNotPermittedException, AwsServiceException, SdkClientException, RamException
Retrieves a list of available RAM permissions that you can use for the supported resource types.
listPermissionsRequest - InvalidParameterException - A parameter is not valid.InvalidNextTokenException - The specified value for NextToken is not valid.ServerInternalException - The service could not respond to the request due to an internal problem.ServiceUnavailableException - The service is not available.OperationNotPermittedException - The requested operation is not permitted.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.AwsServiceExceptiondefault ListPermissionsResponse listPermissions(Consumer<ListPermissionsRequest.Builder> listPermissionsRequest) throws InvalidParameterException, InvalidNextTokenException, ServerInternalException, ServiceUnavailableException, OperationNotPermittedException, AwsServiceException, SdkClientException, RamException
Retrieves a list of available RAM permissions that you can use for the supported resource types.
This is a convenience which creates an instance of the ListPermissionsRequest.Builder avoiding the need
to create one manually via ListPermissionsRequest.builder()
listPermissionsRequest - A Consumer that will call methods on ListPermissionsRequest.Builder to create a request.InvalidParameterException - A parameter is not valid.InvalidNextTokenException - The specified value for NextToken is not valid.ServerInternalException - The service could not respond to the request due to an internal problem.ServiceUnavailableException - The service is not available.OperationNotPermittedException - The requested operation is not permitted.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.AwsServiceExceptiondefault ListPermissionsIterable listPermissionsPaginator(ListPermissionsRequest listPermissionsRequest) throws InvalidParameterException, InvalidNextTokenException, ServerInternalException, ServiceUnavailableException, OperationNotPermittedException, AwsServiceException, SdkClientException, RamException
Retrieves a list of available RAM permissions that you can use for the supported resource types.
This is a variant of listPermissions(software.amazon.awssdk.services.ram.model.ListPermissionsRequest)
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.ListPermissionsIterable responses = client.listPermissionsPaginator(request);
responses.stream().forEach(....);
2) Using For loop
{
@code
software.amazon.awssdk.services.ram.paginators.ListPermissionsIterable responses = client.listPermissionsPaginator(request);
for (software.amazon.awssdk.services.ram.model.ListPermissionsResponse response : responses) {
// do something;
}
}
3) Use iterator directly
software.amazon.awssdk.services.ram.paginators.ListPermissionsIterable responses = client.listPermissionsPaginator(request);
responses.iterator().forEachRemaining(....);
Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listPermissions(software.amazon.awssdk.services.ram.model.ListPermissionsRequest) operation.
listPermissionsRequest - InvalidParameterException - A parameter is not valid.InvalidNextTokenException - The specified value for NextToken is not valid.ServerInternalException - The service could not respond to the request due to an internal problem.ServiceUnavailableException - The service is not available.OperationNotPermittedException - The requested operation is not permitted.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.AwsServiceExceptiondefault ListPermissionsIterable listPermissionsPaginator(Consumer<ListPermissionsRequest.Builder> listPermissionsRequest) throws InvalidParameterException, InvalidNextTokenException, ServerInternalException, ServiceUnavailableException, OperationNotPermittedException, AwsServiceException, SdkClientException, RamException
Retrieves a list of available RAM permissions that you can use for the supported resource types.
This is a variant of listPermissions(software.amazon.awssdk.services.ram.model.ListPermissionsRequest)
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.ListPermissionsIterable responses = client.listPermissionsPaginator(request);
responses.stream().forEach(....);
2) Using For loop
{
@code
software.amazon.awssdk.services.ram.paginators.ListPermissionsIterable responses = client.listPermissionsPaginator(request);
for (software.amazon.awssdk.services.ram.model.ListPermissionsResponse response : responses) {
// do something;
}
}
3) Use iterator directly
software.amazon.awssdk.services.ram.paginators.ListPermissionsIterable responses = client.listPermissionsPaginator(request);
responses.iterator().forEachRemaining(....);
Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listPermissions(software.amazon.awssdk.services.ram.model.ListPermissionsRequest) operation.
This is a convenience which creates an instance of the ListPermissionsRequest.Builder avoiding the need
to create one manually via ListPermissionsRequest.builder()
listPermissionsRequest - A Consumer that will call methods on ListPermissionsRequest.Builder to create a request.InvalidParameterException - A parameter is not valid.InvalidNextTokenException - The specified value for NextToken is not valid.ServerInternalException - The service could not respond to the request due to an internal problem.ServiceUnavailableException - The service is not available.OperationNotPermittedException - The requested operation is not permitted.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.AwsServiceExceptiondefault ListPrincipalsResponse listPrincipals(ListPrincipalsRequest listPrincipalsRequest) throws MalformedArnException, UnknownResourceException, InvalidNextTokenException, InvalidParameterException, ServerInternalException, ServiceUnavailableException, AwsServiceException, SdkClientException, RamException
Lists the principals that you are sharing resources with or that are sharing resources with you.
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.AwsServiceExceptiondefault ListPrincipalsResponse listPrincipals(Consumer<ListPrincipalsRequest.Builder> listPrincipalsRequest) throws MalformedArnException, UnknownResourceException, InvalidNextTokenException, InvalidParameterException, ServerInternalException, ServiceUnavailableException, AwsServiceException, SdkClientException, RamException
Lists the principals that you are sharing resources with or that are sharing resources with you.
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.AwsServiceExceptiondefault ListPrincipalsIterable listPrincipalsPaginator(ListPrincipalsRequest listPrincipalsRequest) throws MalformedArnException, UnknownResourceException, InvalidNextTokenException, InvalidParameterException, ServerInternalException, ServiceUnavailableException, AwsServiceException, SdkClientException, RamException
Lists the principals that you are sharing resources with or that are sharing resources with you.
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(....);
Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
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.AwsServiceExceptiondefault ListPrincipalsIterable listPrincipalsPaginator(Consumer<ListPrincipalsRequest.Builder> listPrincipalsRequest) throws MalformedArnException, UnknownResourceException, InvalidNextTokenException, InvalidParameterException, ServerInternalException, ServiceUnavailableException, AwsServiceException, SdkClientException, RamException
Lists the principals that you are sharing resources with or that are sharing resources with you.
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(....);
Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
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.AwsServiceExceptiondefault ListResourceSharePermissionsResponse listResourceSharePermissions(ListResourceSharePermissionsRequest listResourceSharePermissionsRequest) throws InvalidParameterException, MalformedArnException, UnknownResourceException, InvalidNextTokenException, ServerInternalException, ServiceUnavailableException, OperationNotPermittedException, AwsServiceException, SdkClientException, RamException
Lists the RAM permissions that are associated with a resource share.
listResourceSharePermissionsRequest - InvalidParameterException - A parameter is not valid.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.ServerInternalException - The service could not respond to the request due to an internal problem.ServiceUnavailableException - The service is not available.OperationNotPermittedException - The requested operation is not permitted.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.AwsServiceExceptiondefault ListResourceSharePermissionsResponse listResourceSharePermissions(Consumer<ListResourceSharePermissionsRequest.Builder> listResourceSharePermissionsRequest) throws InvalidParameterException, MalformedArnException, UnknownResourceException, InvalidNextTokenException, ServerInternalException, ServiceUnavailableException, OperationNotPermittedException, AwsServiceException, SdkClientException, RamException
Lists the RAM permissions that are associated with a resource share.
This is a convenience which creates an instance of the ListResourceSharePermissionsRequest.Builder
avoiding the need to create one manually via ListResourceSharePermissionsRequest.builder()
listResourceSharePermissionsRequest - A Consumer that will call methods on ListResourceSharePermissionsRequest.Builder to create
a request.InvalidParameterException - A parameter is not valid.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.ServerInternalException - The service could not respond to the request due to an internal problem.ServiceUnavailableException - The service is not available.OperationNotPermittedException - The requested operation is not permitted.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.AwsServiceExceptiondefault ListResourceSharePermissionsIterable listResourceSharePermissionsPaginator(ListResourceSharePermissionsRequest listResourceSharePermissionsRequest) throws InvalidParameterException, MalformedArnException, UnknownResourceException, InvalidNextTokenException, ServerInternalException, ServiceUnavailableException, OperationNotPermittedException, AwsServiceException, SdkClientException, RamException
Lists the RAM permissions that are associated with a resource share.
This is a variant of
listResourceSharePermissions(software.amazon.awssdk.services.ram.model.ListResourceSharePermissionsRequest)
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.ListResourceSharePermissionsIterable responses = client.listResourceSharePermissionsPaginator(request);
responses.stream().forEach(....);
2) Using For loop
{
@code
software.amazon.awssdk.services.ram.paginators.ListResourceSharePermissionsIterable responses = client
.listResourceSharePermissionsPaginator(request);
for (software.amazon.awssdk.services.ram.model.ListResourceSharePermissionsResponse response : responses) {
// do something;
}
}
3) Use iterator directly
software.amazon.awssdk.services.ram.paginators.ListResourceSharePermissionsIterable responses = client.listResourceSharePermissionsPaginator(request);
responses.iterator().forEachRemaining(....);
Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listResourceSharePermissions(software.amazon.awssdk.services.ram.model.ListResourceSharePermissionsRequest)
operation.
listResourceSharePermissionsRequest - InvalidParameterException - A parameter is not valid.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.ServerInternalException - The service could not respond to the request due to an internal problem.ServiceUnavailableException - The service is not available.OperationNotPermittedException - The requested operation is not permitted.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.AwsServiceExceptiondefault ListResourceSharePermissionsIterable listResourceSharePermissionsPaginator(Consumer<ListResourceSharePermissionsRequest.Builder> listResourceSharePermissionsRequest) throws InvalidParameterException, MalformedArnException, UnknownResourceException, InvalidNextTokenException, ServerInternalException, ServiceUnavailableException, OperationNotPermittedException, AwsServiceException, SdkClientException, RamException
Lists the RAM permissions that are associated with a resource share.
This is a variant of
listResourceSharePermissions(software.amazon.awssdk.services.ram.model.ListResourceSharePermissionsRequest)
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.ListResourceSharePermissionsIterable responses = client.listResourceSharePermissionsPaginator(request);
responses.stream().forEach(....);
2) Using For loop
{
@code
software.amazon.awssdk.services.ram.paginators.ListResourceSharePermissionsIterable responses = client
.listResourceSharePermissionsPaginator(request);
for (software.amazon.awssdk.services.ram.model.ListResourceSharePermissionsResponse response : responses) {
// do something;
}
}
3) Use iterator directly
software.amazon.awssdk.services.ram.paginators.ListResourceSharePermissionsIterable responses = client.listResourceSharePermissionsPaginator(request);
responses.iterator().forEachRemaining(....);
Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listResourceSharePermissions(software.amazon.awssdk.services.ram.model.ListResourceSharePermissionsRequest)
operation.
This is a convenience which creates an instance of the ListResourceSharePermissionsRequest.Builder
avoiding the need to create one manually via ListResourceSharePermissionsRequest.builder()
listResourceSharePermissionsRequest - A Consumer that will call methods on ListResourceSharePermissionsRequest.Builder to create
a request.InvalidParameterException - A parameter is not valid.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.ServerInternalException - The service could not respond to the request due to an internal problem.ServiceUnavailableException - The service is not available.OperationNotPermittedException - The requested operation is not permitted.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.AwsServiceExceptiondefault ListResourceTypesResponse listResourceTypes(ListResourceTypesRequest listResourceTypesRequest) throws InvalidNextTokenException, InvalidParameterException, ServerInternalException, ServiceUnavailableException, AwsServiceException, SdkClientException, RamException
Lists the resource types that can be shared by RAM.
listResourceTypesRequest - 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.AwsServiceExceptiondefault ListResourceTypesResponse listResourceTypes(Consumer<ListResourceTypesRequest.Builder> listResourceTypesRequest) throws InvalidNextTokenException, InvalidParameterException, ServerInternalException, ServiceUnavailableException, AwsServiceException, SdkClientException, RamException
Lists the resource types that can be shared by RAM.
This is a convenience which creates an instance of the ListResourceTypesRequest.Builder avoiding the need
to create one manually via ListResourceTypesRequest.builder()
listResourceTypesRequest - A Consumer that will call methods on ListResourceTypesRequest.Builder to create a request.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.AwsServiceExceptiondefault ListResourceTypesIterable listResourceTypesPaginator(ListResourceTypesRequest listResourceTypesRequest) throws InvalidNextTokenException, InvalidParameterException, ServerInternalException, ServiceUnavailableException, AwsServiceException, SdkClientException, RamException
Lists the resource types that can be shared by RAM.
This is a variant of
listResourceTypes(software.amazon.awssdk.services.ram.model.ListResourceTypesRequest) 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.ListResourceTypesIterable responses = client.listResourceTypesPaginator(request);
responses.stream().forEach(....);
2) Using For loop
{
@code
software.amazon.awssdk.services.ram.paginators.ListResourceTypesIterable responses = client
.listResourceTypesPaginator(request);
for (software.amazon.awssdk.services.ram.model.ListResourceTypesResponse response : responses) {
// do something;
}
}
3) Use iterator directly
software.amazon.awssdk.services.ram.paginators.ListResourceTypesIterable responses = client.listResourceTypesPaginator(request);
responses.iterator().forEachRemaining(....);
Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listResourceTypes(software.amazon.awssdk.services.ram.model.ListResourceTypesRequest) operation.
listResourceTypesRequest - 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.AwsServiceExceptiondefault ListResourceTypesIterable listResourceTypesPaginator(Consumer<ListResourceTypesRequest.Builder> listResourceTypesRequest) throws InvalidNextTokenException, InvalidParameterException, ServerInternalException, ServiceUnavailableException, AwsServiceException, SdkClientException, RamException
Lists the resource types that can be shared by RAM.
This is a variant of
listResourceTypes(software.amazon.awssdk.services.ram.model.ListResourceTypesRequest) 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.ListResourceTypesIterable responses = client.listResourceTypesPaginator(request);
responses.stream().forEach(....);
2) Using For loop
{
@code
software.amazon.awssdk.services.ram.paginators.ListResourceTypesIterable responses = client
.listResourceTypesPaginator(request);
for (software.amazon.awssdk.services.ram.model.ListResourceTypesResponse response : responses) {
// do something;
}
}
3) Use iterator directly
software.amazon.awssdk.services.ram.paginators.ListResourceTypesIterable responses = client.listResourceTypesPaginator(request);
responses.iterator().forEachRemaining(....);
Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listResourceTypes(software.amazon.awssdk.services.ram.model.ListResourceTypesRequest) operation.
This is a convenience which creates an instance of the ListResourceTypesRequest.Builder avoiding the need
to create one manually via ListResourceTypesRequest.builder()
listResourceTypesRequest - A Consumer that will call methods on ListResourceTypesRequest.Builder to create a request.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.AwsServiceExceptiondefault ListResourcesResponse listResources(ListResourcesRequest listResourcesRequest) throws InvalidResourceTypeException, UnknownResourceException, MalformedArnException, InvalidNextTokenException, InvalidParameterException, ServerInternalException, ServiceUnavailableException, AwsServiceException, SdkClientException, RamException
Lists the resources that you added to a resource share or the resources that are shared with you.
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.AwsServiceExceptiondefault ListResourcesResponse listResources(Consumer<ListResourcesRequest.Builder> listResourcesRequest) throws InvalidResourceTypeException, UnknownResourceException, MalformedArnException, InvalidNextTokenException, InvalidParameterException, ServerInternalException, ServiceUnavailableException, AwsServiceException, SdkClientException, RamException
Lists the resources that you added to a resource share or the resources that are shared with you.
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.AwsServiceExceptiondefault ListResourcesIterable listResourcesPaginator(ListResourcesRequest listResourcesRequest) throws InvalidResourceTypeException, UnknownResourceException, MalformedArnException, InvalidNextTokenException, InvalidParameterException, ServerInternalException, ServiceUnavailableException, AwsServiceException, SdkClientException, RamException
Lists the resources that you added to a resource share or the resources that are shared with you.
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(....);
Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
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.AwsServiceExceptiondefault ListResourcesIterable listResourcesPaginator(Consumer<ListResourcesRequest.Builder> listResourcesRequest) throws InvalidResourceTypeException, UnknownResourceException, MalformedArnException, InvalidNextTokenException, InvalidParameterException, ServerInternalException, ServiceUnavailableException, AwsServiceException, SdkClientException, RamException
Lists the resources that you added to a resource share or the resources that are shared with you.
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(....);
Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
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.AwsServiceExceptiondefault PromoteResourceShareCreatedFromPolicyResponse promoteResourceShareCreatedFromPolicy(PromoteResourceShareCreatedFromPolicyRequest promoteResourceShareCreatedFromPolicyRequest) throws MalformedArnException, ResourceShareLimitExceededException, OperationNotPermittedException, InvalidParameterException, MissingRequiredParameterException, ServerInternalException, ServiceUnavailableException, UnknownResourceException, AwsServiceException, SdkClientException, RamException
When you attach a resource-based permission policy to a resource, it automatically creates a resource share. However, resource shares created this way are visible only to the resource share owner, and the resource share can't be modified in RAM.
You can use this operation to promote the resource share to a full RAM resource share. When you promote a resource share, you can then manage the resource share in RAM and it becomes visible to all of the principals you shared it with.
promoteResourceShareCreatedFromPolicyRequest - MalformedArnException - The format of an Amazon Resource Name (ARN) is not valid.ResourceShareLimitExceededException - This request would exceed the limit for resource shares for your account.OperationNotPermittedException - The requested operation is not permitted.InvalidParameterException - A parameter is not valid.MissingRequiredParameterException - A required input parameter is missing.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.AwsServiceExceptiondefault PromoteResourceShareCreatedFromPolicyResponse promoteResourceShareCreatedFromPolicy(Consumer<PromoteResourceShareCreatedFromPolicyRequest.Builder> promoteResourceShareCreatedFromPolicyRequest) throws MalformedArnException, ResourceShareLimitExceededException, OperationNotPermittedException, InvalidParameterException, MissingRequiredParameterException, ServerInternalException, ServiceUnavailableException, UnknownResourceException, AwsServiceException, SdkClientException, RamException
When you attach a resource-based permission policy to a resource, it automatically creates a resource share. However, resource shares created this way are visible only to the resource share owner, and the resource share can't be modified in RAM.
You can use this operation to promote the resource share to a full RAM resource share. When you promote a resource share, you can then manage the resource share in RAM and it becomes visible to all of the principals you shared it with.
This is a convenience which creates an instance of the
PromoteResourceShareCreatedFromPolicyRequest.Builder avoiding the need to create one manually via
PromoteResourceShareCreatedFromPolicyRequest.builder()
promoteResourceShareCreatedFromPolicyRequest - A Consumer that will call methods on PromoteResourceShareCreatedFromPolicyRequest.Builder
to create a request.MalformedArnException - The format of an Amazon Resource Name (ARN) is not valid.ResourceShareLimitExceededException - This request would exceed the limit for resource shares for your account.OperationNotPermittedException - The requested operation is not permitted.InvalidParameterException - A parameter is not valid.MissingRequiredParameterException - A required input parameter is missing.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.AwsServiceExceptiondefault RejectResourceShareInvitationResponse rejectResourceShareInvitation(RejectResourceShareInvitationRequest rejectResourceShareInvitationRequest) throws MalformedArnException, OperationNotPermittedException, ResourceShareInvitationArnNotFoundException, ResourceShareInvitationAlreadyAcceptedException, ResourceShareInvitationAlreadyRejectedException, ResourceShareInvitationExpiredException, ServerInternalException, ServiceUnavailableException, InvalidClientTokenException, IdempotentParameterMismatchException, AwsServiceException, SdkClientException, RamException
Rejects an invitation to a resource share from another Amazon Web Services account.
rejectResourceShareInvitationRequest - MalformedArnException - The format of an Amazon Resource Name (ARN) is not valid.OperationNotPermittedException - The requested operation is not permitted.ResourceShareInvitationArnNotFoundException - The specified Amazon Resource Name (ARN) for an invitation was not found.ResourceShareInvitationAlreadyAcceptedException - The specified invitation was already accepted.ResourceShareInvitationAlreadyRejectedException - The specified invitation was already rejected.ResourceShareInvitationExpiredException - The specified invitation is expired.ServerInternalException - The service could not respond to the request due to an internal problem.ServiceUnavailableException - The service is not available.InvalidClientTokenException - The client token is not valid.IdempotentParameterMismatchException - The client token input parameter was matched one used with a previous call to the operation, but at least
one of the other input parameters is different from the previous call.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.AwsServiceExceptiondefault RejectResourceShareInvitationResponse rejectResourceShareInvitation(Consumer<RejectResourceShareInvitationRequest.Builder> rejectResourceShareInvitationRequest) throws MalformedArnException, OperationNotPermittedException, ResourceShareInvitationArnNotFoundException, ResourceShareInvitationAlreadyAcceptedException, ResourceShareInvitationAlreadyRejectedException, ResourceShareInvitationExpiredException, ServerInternalException, ServiceUnavailableException, InvalidClientTokenException, IdempotentParameterMismatchException, AwsServiceException, SdkClientException, RamException
Rejects an invitation to a resource share from another Amazon Web Services 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 specified Amazon Resource Name (ARN) for an invitation was not found.ResourceShareInvitationAlreadyAcceptedException - The specified invitation was already accepted.ResourceShareInvitationAlreadyRejectedException - The specified invitation was already rejected.ResourceShareInvitationExpiredException - The specified invitation is expired.ServerInternalException - The service could not respond to the request due to an internal problem.ServiceUnavailableException - The service is not available.InvalidClientTokenException - The client token is not valid.IdempotentParameterMismatchException - The client token input parameter was matched one used with a previous call to the operation, but at least
one of the other input parameters is different from the previous call.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.AwsServiceExceptiondefault TagResourceResponse tagResource(TagResourceRequest tagResourceRequest) throws InvalidParameterException, MalformedArnException, UnknownResourceException, TagLimitExceededException, ResourceArnNotFoundException, TagPolicyViolationException, ServerInternalException, ServiceUnavailableException, AwsServiceException, SdkClientException, RamException
Adds the specified tag keys and values to the specified resource share. The tags are attached only to the resource share, not to the resources that are in the resource share.
tagResourceRequest - InvalidParameterException - A parameter is not valid.MalformedArnException - The format of an Amazon Resource Name (ARN) is not valid.UnknownResourceException - A specified resource was not found.TagLimitExceededException - This request would exceed the limit for tags for your account.ResourceArnNotFoundException - The specified Amazon Resource Name (ARN) was not found.TagPolicyViolationException - The specified tag key is a reserved word and can't be used.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.AwsServiceExceptiondefault TagResourceResponse tagResource(Consumer<TagResourceRequest.Builder> tagResourceRequest) throws InvalidParameterException, MalformedArnException, UnknownResourceException, TagLimitExceededException, ResourceArnNotFoundException, TagPolicyViolationException, ServerInternalException, ServiceUnavailableException, AwsServiceException, SdkClientException, RamException
Adds the specified tag keys and values to the specified resource share. The tags are attached only to the resource share, not to the resources that are in the resource share.
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.UnknownResourceException - A specified resource was not found.TagLimitExceededException - This request would exceed the limit for tags for your account.ResourceArnNotFoundException - The specified Amazon Resource Name (ARN) was not found.TagPolicyViolationException - The specified tag key is a reserved word and can't be used.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.AwsServiceExceptiondefault UntagResourceResponse untagResource(UntagResourceRequest untagResourceRequest) throws InvalidParameterException, ServerInternalException, ServiceUnavailableException, AwsServiceException, SdkClientException, RamException
Removes the specified tag key and value pairs 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.AwsServiceExceptiondefault UntagResourceResponse untagResource(Consumer<UntagResourceRequest.Builder> untagResourceRequest) throws InvalidParameterException, ServerInternalException, ServiceUnavailableException, AwsServiceException, SdkClientException, RamException
Removes the specified tag key and value pairs 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.AwsServiceExceptiondefault UpdateResourceShareResponse updateResourceShare(UpdateResourceShareRequest updateResourceShareRequest) throws IdempotentParameterMismatchException, MissingRequiredParameterException, UnknownResourceException, MalformedArnException, InvalidClientTokenException, InvalidParameterException, OperationNotPermittedException, ServerInternalException, ServiceUnavailableException, AwsServiceException, SdkClientException, RamException
Modifies some of the properties of the specified resource share.
updateResourceShareRequest - IdempotentParameterMismatchException - The client token input parameter was matched one used with a previous call to the operation, but at least
one of the other input parameters is different from the previous call.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 - The 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.AwsServiceExceptiondefault UpdateResourceShareResponse updateResourceShare(Consumer<UpdateResourceShareRequest.Builder> updateResourceShareRequest) throws IdempotentParameterMismatchException, MissingRequiredParameterException, UnknownResourceException, MalformedArnException, InvalidClientTokenException, InvalidParameterException, OperationNotPermittedException, ServerInternalException, ServiceUnavailableException, AwsServiceException, SdkClientException, RamException
Modifies some of the properties of 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 - The client token input parameter was matched one used with a previous call to the operation, but at least
one of the other input parameters is different from the previous call.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 - The 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.AwsServiceExceptionstatic ServiceMetadata serviceMetadata()
Copyright © 2022. All rights reserved.