Interface SupportAuthzClient
- All Superinterfaces:
AutoCloseable,AwsClient,SdkAutoCloseable,SdkClient
builder() method.
AWS SupportAuthZ enables you to control and authorize the actions that AWS support operators can perform on your resources. You create cryptographically signed support permits specifying which actions operators can perform, on which resources, and under what time-window conditions. Permits are signed using a customer-managed AWS KMS key (ECC_NIST_P384, SIGN_VERIFY) to ensure non-repudiation.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringValue for looking up the service's metadata from theServiceMetadataProvider.static final String -
Method Summary
Modifier and TypeMethodDescriptionstatic SupportAuthzClientBuilderbuilder()Create a builder that can be used to configure and create aSupportAuthzClient.static SupportAuthzClientcreate()Create aSupportAuthzClientwith the region loaded from theDefaultAwsRegionProviderChainand credentials loaded from theDefaultCredentialsProvider.default CreateSupportPermitResponsecreateSupportPermit(Consumer<CreateSupportPermitRequest.Builder> createSupportPermitRequest) Creates a support permit that authorizes an AWS support operator to perform specified actions on specified resources.default CreateSupportPermitResponsecreateSupportPermit(CreateSupportPermitRequest createSupportPermitRequest) Creates a support permit that authorizes an AWS support operator to perform specified actions on specified resources.default DeleteSupportPermitResponsedeleteSupportPermit(Consumer<DeleteSupportPermitRequest.Builder> deleteSupportPermitRequest) Deletes a support permit, revoking the authorization previously granted to the AWS support operator.default DeleteSupportPermitResponsedeleteSupportPermit(DeleteSupportPermitRequest deleteSupportPermitRequest) Deletes a support permit, revoking the authorization previously granted to the AWS support operator.default GetActionResponsegetAction(Consumer<GetActionRequest.Builder> getActionRequest) Retrieves the description of a specific support action.default GetActionResponsegetAction(GetActionRequest getActionRequest) Retrieves the description of a specific support action.default GetSupportPermitResponsegetSupportPermit(Consumer<GetSupportPermitRequest.Builder> getSupportPermitRequest) Retrieves the details of a support permit by its ARN or name.default GetSupportPermitResponsegetSupportPermit(GetSupportPermitRequest getSupportPermitRequest) Retrieves the details of a support permit by its ARN or name.default ListActionsResponselistActions(Consumer<ListActionsRequest.Builder> listActionsRequest) Lists available support actions for a specified AWS service.default ListActionsResponselistActions(ListActionsRequest listActionsRequest) Lists available support actions for a specified AWS service.default ListActionsIterablelistActionsPaginator(Consumer<ListActionsRequest.Builder> listActionsRequest) This is a variant oflistActions(software.amazon.awssdk.services.supportauthz.model.ListActionsRequest)operation.default ListActionsIterablelistActionsPaginator(ListActionsRequest listActionsRequest) This is a variant oflistActions(software.amazon.awssdk.services.supportauthz.model.ListActionsRequest)operation.listSupportPermitRequests(Consumer<ListSupportPermitRequestsRequest.Builder> listSupportPermitRequestsRequest) Lists permit requests from AWS support operators.listSupportPermitRequests(ListSupportPermitRequestsRequest listSupportPermitRequestsRequest) Lists permit requests from AWS support operators.listSupportPermitRequestsPaginator(Consumer<ListSupportPermitRequestsRequest.Builder> listSupportPermitRequestsRequest) This is a variant oflistSupportPermitRequests(software.amazon.awssdk.services.supportauthz.model.ListSupportPermitRequestsRequest)operation.listSupportPermitRequestsPaginator(ListSupportPermitRequestsRequest listSupportPermitRequestsRequest) This is a variant oflistSupportPermitRequests(software.amazon.awssdk.services.supportauthz.model.ListSupportPermitRequestsRequest)operation.default ListSupportPermitsResponselistSupportPermits(Consumer<ListSupportPermitsRequest.Builder> listSupportPermitsRequest) Lists all support permits in the caller's account.default ListSupportPermitsResponselistSupportPermits(ListSupportPermitsRequest listSupportPermitsRequest) Lists all support permits in the caller's account.default ListSupportPermitsIterablelistSupportPermitsPaginator(Consumer<ListSupportPermitsRequest.Builder> listSupportPermitsRequest) This is a variant oflistSupportPermits(software.amazon.awssdk.services.supportauthz.model.ListSupportPermitsRequest)operation.default ListSupportPermitsIterablelistSupportPermitsPaginator(ListSupportPermitsRequest listSupportPermitsRequest) This is a variant oflistSupportPermits(software.amazon.awssdk.services.supportauthz.model.ListSupportPermitsRequest)operation.default ListTagsForResourceResponselistTagsForResource(Consumer<ListTagsForResourceRequest.Builder> listTagsForResourceRequest) Lists the tags associated with a support permit resource.default ListTagsForResourceResponselistTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest) Lists the tags associated with a support permit resource.rejectSupportPermitRequest(Consumer<RejectSupportPermitRequestRequest.Builder> rejectSupportPermitRequestRequest) Rejects a permit request from an AWS support operator.rejectSupportPermitRequest(RejectSupportPermitRequestRequest rejectSupportPermitRequestRequest) Rejects a permit request from an AWS support operator.The SDK service client configuration exposes client settings to the user, e.g., ClientOverrideConfigurationstatic ServiceMetadatadefault TagResourceResponsetagResource(Consumer<TagResourceRequest.Builder> tagResourceRequest) Adds or overwrites one or more tags for a support permit resource.default TagResourceResponsetagResource(TagResourceRequest tagResourceRequest) Adds or overwrites one or more tags for a support permit resource.default UntagResourceResponseuntagResource(Consumer<UntagResourceRequest.Builder> untagResourceRequest) Removes one or more tags from a support permit resource.default UntagResourceResponseuntagResource(UntagResourceRequest untagResourceRequest) Removes one or more tags from a support permit resource.Methods inherited from interface software.amazon.awssdk.utils.SdkAutoCloseable
closeMethods inherited from interface software.amazon.awssdk.core.SdkClient
serviceName
-
Field Details
-
SERVICE_NAME
- See Also:
-
SERVICE_METADATA_ID
Value for looking up the service's metadata from theServiceMetadataProvider.- See Also:
-
-
Method Details
-
createSupportPermit
default CreateSupportPermitResponse createSupportPermit(CreateSupportPermitRequest createSupportPermitRequest) throws ValidationException, ConflictException, AccessDeniedException, ThrottlingException, ServiceQuotaExceededException, InternalServerException, AwsServiceException, SdkClientException, SupportAuthzException Creates a support permit that authorizes an AWS support operator to perform specified actions on specified resources. The permit is cryptographically signed using a customer-managed AWS KMS key (ECC_NIST_P384, SIGN_VERIFY) to ensure non-repudiation.
- Parameters:
createSupportPermitRequest-- Returns:
- Result of the CreateSupportPermit operation returned by the service.
- See Also:
-
createSupportPermit
default CreateSupportPermitResponse createSupportPermit(Consumer<CreateSupportPermitRequest.Builder> createSupportPermitRequest) throws ValidationException, ConflictException, AccessDeniedException, ThrottlingException, ServiceQuotaExceededException, InternalServerException, AwsServiceException, SdkClientException, SupportAuthzException Creates a support permit that authorizes an AWS support operator to perform specified actions on specified resources. The permit is cryptographically signed using a customer-managed AWS KMS key (ECC_NIST_P384, SIGN_VERIFY) to ensure non-repudiation.
This is a convenience which creates an instance of the
CreateSupportPermitRequest.Builderavoiding the need to create one manually viaCreateSupportPermitRequest.builder()- Parameters:
createSupportPermitRequest- AConsumerthat will call methods onCreateSupportPermitRequest.Builderto create a request.- Returns:
- Result of the CreateSupportPermit operation returned by the service.
- See Also:
-
deleteSupportPermit
default DeleteSupportPermitResponse deleteSupportPermit(DeleteSupportPermitRequest deleteSupportPermitRequest) throws ValidationException, ResourceNotFoundException, AccessDeniedException, ThrottlingException, InternalServerException, AwsServiceException, SdkClientException, SupportAuthzException Deletes a support permit, revoking the authorization previously granted to the AWS support operator.
- Parameters:
deleteSupportPermitRequest-- Returns:
- Result of the DeleteSupportPermit operation returned by the service.
- See Also:
-
deleteSupportPermit
default DeleteSupportPermitResponse deleteSupportPermit(Consumer<DeleteSupportPermitRequest.Builder> deleteSupportPermitRequest) throws ValidationException, ResourceNotFoundException, AccessDeniedException, ThrottlingException, InternalServerException, AwsServiceException, SdkClientException, SupportAuthzException Deletes a support permit, revoking the authorization previously granted to the AWS support operator.
This is a convenience which creates an instance of the
DeleteSupportPermitRequest.Builderavoiding the need to create one manually viaDeleteSupportPermitRequest.builder()- Parameters:
deleteSupportPermitRequest- AConsumerthat will call methods onDeleteSupportPermitRequest.Builderto create a request.- Returns:
- Result of the DeleteSupportPermit operation returned by the service.
- See Also:
-
getAction
default GetActionResponse getAction(GetActionRequest getActionRequest) throws ValidationException, ResourceNotFoundException, AccessDeniedException, ThrottlingException, InternalServerException, AwsServiceException, SdkClientException, SupportAuthzException Retrieves the description of a specific support action.
- Parameters:
getActionRequest-- Returns:
- Result of the GetAction operation returned by the service.
- See Also:
-
getAction
default GetActionResponse getAction(Consumer<GetActionRequest.Builder> getActionRequest) throws ValidationException, ResourceNotFoundException, AccessDeniedException, ThrottlingException, InternalServerException, AwsServiceException, SdkClientException, SupportAuthzException Retrieves the description of a specific support action.
This is a convenience which creates an instance of the
GetActionRequest.Builderavoiding the need to create one manually viaGetActionRequest.builder()- Parameters:
getActionRequest- AConsumerthat will call methods onGetActionRequest.Builderto create a request.- Returns:
- Result of the GetAction operation returned by the service.
- See Also:
-
getSupportPermit
default GetSupportPermitResponse getSupportPermit(GetSupportPermitRequest getSupportPermitRequest) throws ValidationException, ResourceNotFoundException, AccessDeniedException, ThrottlingException, InternalServerException, AwsServiceException, SdkClientException, SupportAuthzException Retrieves the details of a support permit by its ARN or name.
- Parameters:
getSupportPermitRequest-- Returns:
- Result of the GetSupportPermit operation returned by the service.
- See Also:
-
getSupportPermit
default GetSupportPermitResponse getSupportPermit(Consumer<GetSupportPermitRequest.Builder> getSupportPermitRequest) throws ValidationException, ResourceNotFoundException, AccessDeniedException, ThrottlingException, InternalServerException, AwsServiceException, SdkClientException, SupportAuthzException Retrieves the details of a support permit by its ARN or name.
This is a convenience which creates an instance of the
GetSupportPermitRequest.Builderavoiding the need to create one manually viaGetSupportPermitRequest.builder()- Parameters:
getSupportPermitRequest- AConsumerthat will call methods onGetSupportPermitRequest.Builderto create a request.- Returns:
- Result of the GetSupportPermit operation returned by the service.
- See Also:
-
listActions
default ListActionsResponse listActions(ListActionsRequest listActionsRequest) throws ValidationException, AccessDeniedException, ThrottlingException, InternalServerException, AwsServiceException, SdkClientException, SupportAuthzException Lists available support actions for a specified AWS service. Use pagination to ensure that the operation returns quickly and successfully.
- Parameters:
listActionsRequest-- Returns:
- Result of the ListActions operation returned by the service.
- See Also:
-
listActions
default ListActionsResponse listActions(Consumer<ListActionsRequest.Builder> listActionsRequest) throws ValidationException, AccessDeniedException, ThrottlingException, InternalServerException, AwsServiceException, SdkClientException, SupportAuthzException Lists available support actions for a specified AWS service. Use pagination to ensure that the operation returns quickly and successfully.
This is a convenience which creates an instance of the
ListActionsRequest.Builderavoiding the need to create one manually viaListActionsRequest.builder()- Parameters:
listActionsRequest- AConsumerthat will call methods onListActionsRequest.Builderto create a request.- Returns:
- Result of the ListActions operation returned by the service.
- See Also:
-
listActionsPaginator
default ListActionsIterable listActionsPaginator(ListActionsRequest listActionsRequest) throws ValidationException, AccessDeniedException, ThrottlingException, InternalServerException, AwsServiceException, SdkClientException, SupportAuthzException This is a variant of
listActions(software.amazon.awssdk.services.supportauthz.model.ListActionsRequest)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
2) Using For loopsoftware.amazon.awssdk.services.supportauthz.paginators.ListActionsIterable responses = client.listActionsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.supportauthz.paginators.ListActionsIterable responses = client.listActionsPaginator(request); for (software.amazon.awssdk.services.supportauthz.model.ListActionsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.supportauthz.paginators.ListActionsIterable responses = client.listActionsPaginator(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
listActions(software.amazon.awssdk.services.supportauthz.model.ListActionsRequest)operation.- Parameters:
listActionsRequest-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listActionsPaginator
default ListActionsIterable listActionsPaginator(Consumer<ListActionsRequest.Builder> listActionsRequest) throws ValidationException, AccessDeniedException, ThrottlingException, InternalServerException, AwsServiceException, SdkClientException, SupportAuthzException This is a variant of
listActions(software.amazon.awssdk.services.supportauthz.model.ListActionsRequest)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
2) Using For loopsoftware.amazon.awssdk.services.supportauthz.paginators.ListActionsIterable responses = client.listActionsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.supportauthz.paginators.ListActionsIterable responses = client.listActionsPaginator(request); for (software.amazon.awssdk.services.supportauthz.model.ListActionsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.supportauthz.paginators.ListActionsIterable responses = client.listActionsPaginator(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
listActions(software.amazon.awssdk.services.supportauthz.model.ListActionsRequest)operation.
This is a convenience which creates an instance of the
ListActionsRequest.Builderavoiding the need to create one manually viaListActionsRequest.builder()- Parameters:
listActionsRequest- AConsumerthat will call methods onListActionsRequest.Builderto create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listSupportPermitRequests
default ListSupportPermitRequestsResponse listSupportPermitRequests(ListSupportPermitRequestsRequest listSupportPermitRequestsRequest) throws ValidationException, AccessDeniedException, ThrottlingException, InternalServerException, AwsServiceException, SdkClientException, SupportAuthzException Lists permit requests from AWS support operators. Use pagination to ensure that the operation returns quickly and successfully.
- Parameters:
listSupportPermitRequestsRequest-- Returns:
- Result of the ListSupportPermitRequests operation returned by the service.
- See Also:
-
listSupportPermitRequests
default ListSupportPermitRequestsResponse listSupportPermitRequests(Consumer<ListSupportPermitRequestsRequest.Builder> listSupportPermitRequestsRequest) throws ValidationException, AccessDeniedException, ThrottlingException, InternalServerException, AwsServiceException, SdkClientException, SupportAuthzException Lists permit requests from AWS support operators. Use pagination to ensure that the operation returns quickly and successfully.
This is a convenience which creates an instance of the
ListSupportPermitRequestsRequest.Builderavoiding the need to create one manually viaListSupportPermitRequestsRequest.builder()- Parameters:
listSupportPermitRequestsRequest- AConsumerthat will call methods onListSupportPermitRequestsRequest.Builderto create a request.- Returns:
- Result of the ListSupportPermitRequests operation returned by the service.
- See Also:
-
listSupportPermitRequestsPaginator
default ListSupportPermitRequestsIterable listSupportPermitRequestsPaginator(ListSupportPermitRequestsRequest listSupportPermitRequestsRequest) throws ValidationException, AccessDeniedException, ThrottlingException, InternalServerException, AwsServiceException, SdkClientException, SupportAuthzException This is a variant of
listSupportPermitRequests(software.amazon.awssdk.services.supportauthz.model.ListSupportPermitRequestsRequest)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
2) Using For loopsoftware.amazon.awssdk.services.supportauthz.paginators.ListSupportPermitRequestsIterable responses = client.listSupportPermitRequestsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.supportauthz.paginators.ListSupportPermitRequestsIterable responses = client .listSupportPermitRequestsPaginator(request); for (software.amazon.awssdk.services.supportauthz.model.ListSupportPermitRequestsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.supportauthz.paginators.ListSupportPermitRequestsIterable responses = client.listSupportPermitRequestsPaginator(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
listSupportPermitRequests(software.amazon.awssdk.services.supportauthz.model.ListSupportPermitRequestsRequest)operation.- Parameters:
listSupportPermitRequestsRequest-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listSupportPermitRequestsPaginator
default ListSupportPermitRequestsIterable listSupportPermitRequestsPaginator(Consumer<ListSupportPermitRequestsRequest.Builder> listSupportPermitRequestsRequest) throws ValidationException, AccessDeniedException, ThrottlingException, InternalServerException, AwsServiceException, SdkClientException, SupportAuthzException This is a variant of
listSupportPermitRequests(software.amazon.awssdk.services.supportauthz.model.ListSupportPermitRequestsRequest)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
2) Using For loopsoftware.amazon.awssdk.services.supportauthz.paginators.ListSupportPermitRequestsIterable responses = client.listSupportPermitRequestsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.supportauthz.paginators.ListSupportPermitRequestsIterable responses = client .listSupportPermitRequestsPaginator(request); for (software.amazon.awssdk.services.supportauthz.model.ListSupportPermitRequestsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.supportauthz.paginators.ListSupportPermitRequestsIterable responses = client.listSupportPermitRequestsPaginator(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
listSupportPermitRequests(software.amazon.awssdk.services.supportauthz.model.ListSupportPermitRequestsRequest)operation.
This is a convenience which creates an instance of the
ListSupportPermitRequestsRequest.Builderavoiding the need to create one manually viaListSupportPermitRequestsRequest.builder()- Parameters:
listSupportPermitRequestsRequest- AConsumerthat will call methods onListSupportPermitRequestsRequest.Builderto create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listSupportPermits
default ListSupportPermitsResponse listSupportPermits(ListSupportPermitsRequest listSupportPermitsRequest) throws ValidationException, AccessDeniedException, ThrottlingException, InternalServerException, AwsServiceException, SdkClientException, SupportAuthzException Lists all support permits in the caller's account. Use pagination to ensure that the operation returns quickly and successfully.
- Parameters:
listSupportPermitsRequest-- Returns:
- Result of the ListSupportPermits operation returned by the service.
- See Also:
-
listSupportPermits
default ListSupportPermitsResponse listSupportPermits(Consumer<ListSupportPermitsRequest.Builder> listSupportPermitsRequest) throws ValidationException, AccessDeniedException, ThrottlingException, InternalServerException, AwsServiceException, SdkClientException, SupportAuthzException Lists all support permits in the caller's account. Use pagination to ensure that the operation returns quickly and successfully.
This is a convenience which creates an instance of the
ListSupportPermitsRequest.Builderavoiding the need to create one manually viaListSupportPermitsRequest.builder()- Parameters:
listSupportPermitsRequest- AConsumerthat will call methods onListSupportPermitsRequest.Builderto create a request.- Returns:
- Result of the ListSupportPermits operation returned by the service.
- See Also:
-
listSupportPermitsPaginator
default ListSupportPermitsIterable listSupportPermitsPaginator(ListSupportPermitsRequest listSupportPermitsRequest) throws ValidationException, AccessDeniedException, ThrottlingException, InternalServerException, AwsServiceException, SdkClientException, SupportAuthzException This is a variant of
listSupportPermits(software.amazon.awssdk.services.supportauthz.model.ListSupportPermitsRequest)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
2) Using For loopsoftware.amazon.awssdk.services.supportauthz.paginators.ListSupportPermitsIterable responses = client.listSupportPermitsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.supportauthz.paginators.ListSupportPermitsIterable responses = client .listSupportPermitsPaginator(request); for (software.amazon.awssdk.services.supportauthz.model.ListSupportPermitsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.supportauthz.paginators.ListSupportPermitsIterable responses = client.listSupportPermitsPaginator(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
listSupportPermits(software.amazon.awssdk.services.supportauthz.model.ListSupportPermitsRequest)operation.- Parameters:
listSupportPermitsRequest-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listSupportPermitsPaginator
default ListSupportPermitsIterable listSupportPermitsPaginator(Consumer<ListSupportPermitsRequest.Builder> listSupportPermitsRequest) throws ValidationException, AccessDeniedException, ThrottlingException, InternalServerException, AwsServiceException, SdkClientException, SupportAuthzException This is a variant of
listSupportPermits(software.amazon.awssdk.services.supportauthz.model.ListSupportPermitsRequest)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
2) Using For loopsoftware.amazon.awssdk.services.supportauthz.paginators.ListSupportPermitsIterable responses = client.listSupportPermitsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.supportauthz.paginators.ListSupportPermitsIterable responses = client .listSupportPermitsPaginator(request); for (software.amazon.awssdk.services.supportauthz.model.ListSupportPermitsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.supportauthz.paginators.ListSupportPermitsIterable responses = client.listSupportPermitsPaginator(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
listSupportPermits(software.amazon.awssdk.services.supportauthz.model.ListSupportPermitsRequest)operation.
This is a convenience which creates an instance of the
ListSupportPermitsRequest.Builderavoiding the need to create one manually viaListSupportPermitsRequest.builder()- Parameters:
listSupportPermitsRequest- AConsumerthat will call methods onListSupportPermitsRequest.Builderto create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listTagsForResource
default ListTagsForResourceResponse listTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest) throws ValidationException, ResourceNotFoundException, AccessDeniedException, ThrottlingException, InternalServerException, AwsServiceException, SdkClientException, SupportAuthzException Lists the tags associated with a support permit resource.
- Parameters:
listTagsForResourceRequest-- Returns:
- Result of the ListTagsForResource operation returned by the service.
- See Also:
-
listTagsForResource
default ListTagsForResourceResponse listTagsForResource(Consumer<ListTagsForResourceRequest.Builder> listTagsForResourceRequest) throws ValidationException, ResourceNotFoundException, AccessDeniedException, ThrottlingException, InternalServerException, AwsServiceException, SdkClientException, SupportAuthzException Lists the tags associated with a support permit resource.
This is a convenience which creates an instance of the
ListTagsForResourceRequest.Builderavoiding the need to create one manually viaListTagsForResourceRequest.builder()- Parameters:
listTagsForResourceRequest- AConsumerthat will call methods onListTagsForResourceRequest.Builderto create a request.- Returns:
- Result of the ListTagsForResource operation returned by the service.
- See Also:
-
rejectSupportPermitRequest
default RejectSupportPermitRequestResponse rejectSupportPermitRequest(RejectSupportPermitRequestRequest rejectSupportPermitRequestRequest) throws ValidationException, ConflictException, ResourceNotFoundException, AccessDeniedException, ThrottlingException, InternalServerException, AwsServiceException, SdkClientException, SupportAuthzException Rejects a permit request from an AWS support operator. The operator cannot proceed with the requested action.
- Parameters:
rejectSupportPermitRequestRequest-- Returns:
- Result of the RejectSupportPermitRequest operation returned by the service.
- See Also:
-
rejectSupportPermitRequest
default RejectSupportPermitRequestResponse rejectSupportPermitRequest(Consumer<RejectSupportPermitRequestRequest.Builder> rejectSupportPermitRequestRequest) throws ValidationException, ConflictException, ResourceNotFoundException, AccessDeniedException, ThrottlingException, InternalServerException, AwsServiceException, SdkClientException, SupportAuthzException Rejects a permit request from an AWS support operator. The operator cannot proceed with the requested action.
This is a convenience which creates an instance of the
RejectSupportPermitRequestRequest.Builderavoiding the need to create one manually viaRejectSupportPermitRequestRequest.builder()- Parameters:
rejectSupportPermitRequestRequest- AConsumerthat will call methods onRejectSupportPermitRequestRequest.Builderto create a request.- Returns:
- Result of the RejectSupportPermitRequest operation returned by the service.
- See Also:
-
tagResource
default TagResourceResponse tagResource(TagResourceRequest tagResourceRequest) throws ValidationException, ResourceNotFoundException, AccessDeniedException, ThrottlingException, InternalServerException, AwsServiceException, SdkClientException, SupportAuthzException Adds or overwrites one or more tags for a support permit resource.
- Parameters:
tagResourceRequest-- Returns:
- Result of the TagResource operation returned by the service.
- See Also:
-
tagResource
default TagResourceResponse tagResource(Consumer<TagResourceRequest.Builder> tagResourceRequest) throws ValidationException, ResourceNotFoundException, AccessDeniedException, ThrottlingException, InternalServerException, AwsServiceException, SdkClientException, SupportAuthzException Adds or overwrites one or more tags for a support permit resource.
This is a convenience which creates an instance of the
TagResourceRequest.Builderavoiding the need to create one manually viaTagResourceRequest.builder()- Parameters:
tagResourceRequest- AConsumerthat will call methods onTagResourceRequest.Builderto create a request.- Returns:
- Result of the TagResource operation returned by the service.
- See Also:
-
untagResource
default UntagResourceResponse untagResource(UntagResourceRequest untagResourceRequest) throws ValidationException, ResourceNotFoundException, AccessDeniedException, ThrottlingException, InternalServerException, AwsServiceException, SdkClientException, SupportAuthzException Removes one or more tags from a support permit resource.
- Parameters:
untagResourceRequest-- Returns:
- Result of the UntagResource operation returned by the service.
- See Also:
-
untagResource
default UntagResourceResponse untagResource(Consumer<UntagResourceRequest.Builder> untagResourceRequest) throws ValidationException, ResourceNotFoundException, AccessDeniedException, ThrottlingException, InternalServerException, AwsServiceException, SdkClientException, SupportAuthzException Removes one or more tags from a support permit resource.
This is a convenience which creates an instance of the
UntagResourceRequest.Builderavoiding the need to create one manually viaUntagResourceRequest.builder()- Parameters:
untagResourceRequest- AConsumerthat will call methods onUntagResourceRequest.Builderto create a request.- Returns:
- Result of the UntagResource operation returned by the service.
- See Also:
-
create
Create aSupportAuthzClientwith the region loaded from theDefaultAwsRegionProviderChainand credentials loaded from theDefaultCredentialsProvider. -
builder
Create a builder that can be used to configure and create aSupportAuthzClient. -
serviceMetadata
-
serviceClientConfiguration
Description copied from interface:SdkClientThe SDK service client configuration exposes client settings to the user, e.g., ClientOverrideConfiguration- Specified by:
serviceClientConfigurationin interfaceAwsClient- Specified by:
serviceClientConfigurationin interfaceSdkClient- Returns:
- SdkServiceClientConfiguration
-