Interface AccountAccessClient
- All Superinterfaces:
AutoCloseable,AwsClient,SdkAutoCloseable,SdkClient
builder() method.
Account access manager enables you to manage applications and entitlements that grant IAM Identity Center principals access to IAM roles across accounts.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringValue for looking up the service's metadata from theServiceMetadataProvider.static final String -
Method Summary
Modifier and TypeMethodDescriptionstatic AccountAccessClientBuilderbuilder()Create a builder that can be used to configure and create aAccountAccessClient.static AccountAccessClientcreate()Create aAccountAccessClientwith the region loaded from theDefaultAwsRegionProviderChainand credentials loaded from theDefaultCredentialsProvider.default CreateApplicationResponsecreateApplication(Consumer<CreateApplicationRequest.Builder> createApplicationRequest) Creates an account access manager instance and its Amazon Web Services account access application in the associated IAM Identity Center instance.default CreateApplicationResponsecreateApplication(CreateApplicationRequest createApplicationRequest) Creates an account access manager instance and its Amazon Web Services account access application in the associated IAM Identity Center instance.default CreateEntitlementResponsecreateEntitlement(Consumer<CreateEntitlementRequest.Builder> createEntitlementRequest) Creates an entitlement (assignment) in account access manager.default CreateEntitlementResponsecreateEntitlement(CreateEntitlementRequest createEntitlementRequest) Creates an entitlement (assignment) in account access manager.default DeleteApplicationResponsedeleteApplication(Consumer<DeleteApplicationRequest.Builder> deleteApplicationRequest) Deletes an account access manager application.default DeleteApplicationResponsedeleteApplication(DeleteApplicationRequest deleteApplicationRequest) Deletes an account access manager application.default DeleteEntitlementResponsedeleteEntitlement(Consumer<DeleteEntitlementRequest.Builder> deleteEntitlementRequest) Deletes an entitlement from an account access manager application.default DeleteEntitlementResponsedeleteEntitlement(DeleteEntitlementRequest deleteEntitlementRequest) Deletes an entitlement from an account access manager application.default GetApplicationResponsegetApplication(Consumer<GetApplicationRequest.Builder> getApplicationRequest) Retrieves details about an account access manager application, including its status, identity source, and tags.default GetApplicationResponsegetApplication(GetApplicationRequest getApplicationRequest) Retrieves details about an account access manager application, including its status, identity source, and tags.default GetEntitlementResponsegetEntitlement(Consumer<GetEntitlementRequest.Builder> getEntitlementRequest) Retrieves details about a specific entitlement for an account access manager application, including the principal, IAM role, and target account.default GetEntitlementResponsegetEntitlement(GetEntitlementRequest getEntitlementRequest) Retrieves details about a specific entitlement for an account access manager application, including the principal, IAM role, and target account.default ListApplicationsResponselistApplications(Consumer<ListApplicationsRequest.Builder> listApplicationsRequest) Lists the account access manager applications in your account.default ListApplicationsResponselistApplications(ListApplicationsRequest listApplicationsRequest) Lists the account access manager applications in your account.default ListApplicationsIterablelistApplicationsPaginator(Consumer<ListApplicationsRequest.Builder> listApplicationsRequest) This is a variant oflistApplications(software.amazon.awssdk.services.accountaccess.model.ListApplicationsRequest)operation.default ListApplicationsIterablelistApplicationsPaginator(ListApplicationsRequest listApplicationsRequest) This is a variant oflistApplications(software.amazon.awssdk.services.accountaccess.model.ListApplicationsRequest)operation.default ListEntitlementsResponselistEntitlements(Consumer<ListEntitlementsRequest.Builder> listEntitlementsRequest) Lists the entitlements for a specified account access manager application.default ListEntitlementsResponselistEntitlements(ListEntitlementsRequest listEntitlementsRequest) Lists the entitlements for a specified account access manager application.default ListEntitlementsIterablelistEntitlementsPaginator(Consumer<ListEntitlementsRequest.Builder> listEntitlementsRequest) This is a variant oflistEntitlements(software.amazon.awssdk.services.accountaccess.model.ListEntitlementsRequest)operation.default ListEntitlementsIterablelistEntitlementsPaginator(ListEntitlementsRequest listEntitlementsRequest) This is a variant oflistEntitlements(software.amazon.awssdk.services.accountaccess.model.ListEntitlementsRequest)operation.default ListTagsForResourceResponselistTagsForResource(Consumer<ListTagsForResourceRequest.Builder> listTagsForResourceRequest) Lists the tags associated with an account access manager resource.default ListTagsForResourceResponselistTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest) Lists the tags associated with an account access manager resource.The SDK service client configuration exposes client settings to the user, e.g., ClientOverrideConfigurationstatic ServiceMetadatadefault TagResourceResponsetagResource(Consumer<TagResourceRequest.Builder> tagResourceRequest) Adds tags to an account access manager resource.default TagResourceResponsetagResource(TagResourceRequest tagResourceRequest) Adds tags to an account access manager resource.default UntagResourceResponseuntagResource(Consumer<UntagResourceRequest.Builder> untagResourceRequest) Removes tags from an account access manager resource.default UntagResourceResponseuntagResource(UntagResourceRequest untagResourceRequest) Removes tags from an account access manager resource.default AccountAccessWaiterwaiter()Create an instance ofAccountAccessWaiterusing this client.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
-
createApplication
default CreateApplicationResponse createApplication(CreateApplicationRequest createApplicationRequest) throws AlreadyCreatedException, AccessDeniedException, ConflictException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, AccountAccessException Creates an account access manager instance and its Amazon Web Services account access application in the associated IAM Identity Center instance. This operation is idempotent; calling it multiple times with the same parameters returns the existing application.
- Parameters:
createApplicationRequest-- Returns:
- Result of the CreateApplication operation returned by the service.
- See Also:
-
createApplication
default CreateApplicationResponse createApplication(Consumer<CreateApplicationRequest.Builder> createApplicationRequest) throws AlreadyCreatedException, AccessDeniedException, ConflictException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, AccountAccessException Creates an account access manager instance and its Amazon Web Services account access application in the associated IAM Identity Center instance. This operation is idempotent; calling it multiple times with the same parameters returns the existing application.
This is a convenience which creates an instance of the
CreateApplicationRequest.Builderavoiding the need to create one manually viaCreateApplicationRequest.builder()- Parameters:
createApplicationRequest- AConsumerthat will call methods onCreateApplicationRequest.Builderto create a request.- Returns:
- Result of the CreateApplication operation returned by the service.
- See Also:
-
createEntitlement
default CreateEntitlementResponse createEntitlement(CreateEntitlementRequest createEntitlementRequest) throws AccessDeniedException, ResourceNotFoundException, ThrottlingException, ConflictException, ValidationException, ServiceQuotaExceededException, InternalServerException, AwsServiceException, SdkClientException, AccountAccessException Creates an entitlement (assignment) in account access manager. An entitlement (assignment) grants a principal (IAM Identity Center user or group) permission to assume a specified IAM role in an Amazon Web Services account. This operation is idempotent.
- Parameters:
createEntitlementRequest-- Returns:
- Result of the CreateEntitlement operation returned by the service.
- See Also:
-
createEntitlement
default CreateEntitlementResponse createEntitlement(Consumer<CreateEntitlementRequest.Builder> createEntitlementRequest) throws AccessDeniedException, ResourceNotFoundException, ThrottlingException, ConflictException, ValidationException, ServiceQuotaExceededException, InternalServerException, AwsServiceException, SdkClientException, AccountAccessException Creates an entitlement (assignment) in account access manager. An entitlement (assignment) grants a principal (IAM Identity Center user or group) permission to assume a specified IAM role in an Amazon Web Services account. This operation is idempotent.
This is a convenience which creates an instance of the
CreateEntitlementRequest.Builderavoiding the need to create one manually viaCreateEntitlementRequest.builder()- Parameters:
createEntitlementRequest- AConsumerthat will call methods onCreateEntitlementRequest.Builderto create a request.- Returns:
- Result of the CreateEntitlement operation returned by the service.
- See Also:
-
deleteApplication
default DeleteApplicationResponse deleteApplication(DeleteApplicationRequest deleteApplicationRequest) throws AccessDeniedException, ResourceNotFoundException, ConflictException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, AccountAccessException Deletes an account access manager application. This operation is idempotent; deleting an application that has already been deleted does not return an error.
- Parameters:
deleteApplicationRequest-- Returns:
- Result of the DeleteApplication operation returned by the service.
- See Also:
-
deleteApplication
default DeleteApplicationResponse deleteApplication(Consumer<DeleteApplicationRequest.Builder> deleteApplicationRequest) throws AccessDeniedException, ResourceNotFoundException, ConflictException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, AccountAccessException Deletes an account access manager application. This operation is idempotent; deleting an application that has already been deleted does not return an error.
This is a convenience which creates an instance of the
DeleteApplicationRequest.Builderavoiding the need to create one manually viaDeleteApplicationRequest.builder()- Parameters:
deleteApplicationRequest- AConsumerthat will call methods onDeleteApplicationRequest.Builderto create a request.- Returns:
- Result of the DeleteApplication operation returned by the service.
- See Also:
-
deleteEntitlement
default DeleteEntitlementResponse deleteEntitlement(DeleteEntitlementRequest deleteEntitlementRequest) throws AccessDeniedException, ResourceNotFoundException, ThrottlingException, ConflictException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, AccountAccessException Deletes an entitlement from an account access manager application. This operation is idempotent; deleting an entitlement that has already been deleted does not return an error.
- Parameters:
deleteEntitlementRequest-- Returns:
- Result of the DeleteEntitlement operation returned by the service.
- See Also:
-
deleteEntitlement
default DeleteEntitlementResponse deleteEntitlement(Consumer<DeleteEntitlementRequest.Builder> deleteEntitlementRequest) throws AccessDeniedException, ResourceNotFoundException, ThrottlingException, ConflictException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, AccountAccessException Deletes an entitlement from an account access manager application. This operation is idempotent; deleting an entitlement that has already been deleted does not return an error.
This is a convenience which creates an instance of the
DeleteEntitlementRequest.Builderavoiding the need to create one manually viaDeleteEntitlementRequest.builder()- Parameters:
deleteEntitlementRequest- AConsumerthat will call methods onDeleteEntitlementRequest.Builderto create a request.- Returns:
- Result of the DeleteEntitlement operation returned by the service.
- See Also:
-
getApplication
default GetApplicationResponse getApplication(GetApplicationRequest getApplicationRequest) throws AccessDeniedException, ResourceNotFoundException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, AccountAccessException Retrieves details about an account access manager application, including its status, identity source, and tags.
- Parameters:
getApplicationRequest-- Returns:
- Result of the GetApplication operation returned by the service.
- See Also:
-
getApplication
default GetApplicationResponse getApplication(Consumer<GetApplicationRequest.Builder> getApplicationRequest) throws AccessDeniedException, ResourceNotFoundException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, AccountAccessException Retrieves details about an account access manager application, including its status, identity source, and tags.
This is a convenience which creates an instance of the
GetApplicationRequest.Builderavoiding the need to create one manually viaGetApplicationRequest.builder()- Parameters:
getApplicationRequest- AConsumerthat will call methods onGetApplicationRequest.Builderto create a request.- Returns:
- Result of the GetApplication operation returned by the service.
- See Also:
-
getEntitlement
default GetEntitlementResponse getEntitlement(GetEntitlementRequest getEntitlementRequest) throws AccessDeniedException, ResourceNotFoundException, ThrottlingException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, AccountAccessException Retrieves details about a specific entitlement for an account access manager application, including the principal, IAM role, and target account.
- Parameters:
getEntitlementRequest-- Returns:
- Result of the GetEntitlement operation returned by the service.
- See Also:
-
getEntitlement
default GetEntitlementResponse getEntitlement(Consumer<GetEntitlementRequest.Builder> getEntitlementRequest) throws AccessDeniedException, ResourceNotFoundException, ThrottlingException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, AccountAccessException Retrieves details about a specific entitlement for an account access manager application, including the principal, IAM role, and target account.
This is a convenience which creates an instance of the
GetEntitlementRequest.Builderavoiding the need to create one manually viaGetEntitlementRequest.builder()- Parameters:
getEntitlementRequest- AConsumerthat will call methods onGetEntitlementRequest.Builderto create a request.- Returns:
- Result of the GetEntitlement operation returned by the service.
- See Also:
-
listApplications
default ListApplicationsResponse listApplications(ListApplicationsRequest listApplicationsRequest) throws AccessDeniedException, ThrottlingException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, AccountAccessException Lists the account access manager applications in your account. Use pagination to ensure that the operation returns quickly and successfully.
- Parameters:
listApplicationsRequest-- Returns:
- Result of the ListApplications operation returned by the service.
- See Also:
-
listApplications
default ListApplicationsResponse listApplications(Consumer<ListApplicationsRequest.Builder> listApplicationsRequest) throws AccessDeniedException, ThrottlingException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, AccountAccessException Lists the account access manager applications in your account. Use pagination to ensure that the operation returns quickly and successfully.
This is a convenience which creates an instance of the
ListApplicationsRequest.Builderavoiding the need to create one manually viaListApplicationsRequest.builder()- Parameters:
listApplicationsRequest- AConsumerthat will call methods onListApplicationsRequest.Builderto create a request.- Returns:
- Result of the ListApplications operation returned by the service.
- See Also:
-
listApplicationsPaginator
default ListApplicationsIterable listApplicationsPaginator(ListApplicationsRequest listApplicationsRequest) throws AccessDeniedException, ThrottlingException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, AccountAccessException This is a variant of
listApplications(software.amazon.awssdk.services.accountaccess.model.ListApplicationsRequest)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.accountaccess.paginators.ListApplicationsIterable responses = client.listApplicationsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.accountaccess.paginators.ListApplicationsIterable responses = client .listApplicationsPaginator(request); for (software.amazon.awssdk.services.accountaccess.model.ListApplicationsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.accountaccess.paginators.ListApplicationsIterable responses = client.listApplicationsPaginator(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
listApplications(software.amazon.awssdk.services.accountaccess.model.ListApplicationsRequest)operation.- Parameters:
listApplicationsRequest-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listApplicationsPaginator
default ListApplicationsIterable listApplicationsPaginator(Consumer<ListApplicationsRequest.Builder> listApplicationsRequest) throws AccessDeniedException, ThrottlingException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, AccountAccessException This is a variant of
listApplications(software.amazon.awssdk.services.accountaccess.model.ListApplicationsRequest)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.accountaccess.paginators.ListApplicationsIterable responses = client.listApplicationsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.accountaccess.paginators.ListApplicationsIterable responses = client .listApplicationsPaginator(request); for (software.amazon.awssdk.services.accountaccess.model.ListApplicationsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.accountaccess.paginators.ListApplicationsIterable responses = client.listApplicationsPaginator(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
listApplications(software.amazon.awssdk.services.accountaccess.model.ListApplicationsRequest)operation.
This is a convenience which creates an instance of the
ListApplicationsRequest.Builderavoiding the need to create one manually viaListApplicationsRequest.builder()- Parameters:
listApplicationsRequest- AConsumerthat will call methods onListApplicationsRequest.Builderto create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listEntitlements
default ListEntitlementsResponse listEntitlements(ListEntitlementsRequest listEntitlementsRequest) throws AccessDeniedException, ResourceNotFoundException, ThrottlingException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, AccountAccessException Lists the entitlements for a specified account access manager application. You can filter results by principal, IAM role, or account. Use pagination to ensure that the operation returns quickly and successfully.
- Parameters:
listEntitlementsRequest-- Returns:
- Result of the ListEntitlements operation returned by the service.
- See Also:
-
listEntitlements
default ListEntitlementsResponse listEntitlements(Consumer<ListEntitlementsRequest.Builder> listEntitlementsRequest) throws AccessDeniedException, ResourceNotFoundException, ThrottlingException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, AccountAccessException Lists the entitlements for a specified account access manager application. You can filter results by principal, IAM role, or account. Use pagination to ensure that the operation returns quickly and successfully.
This is a convenience which creates an instance of the
ListEntitlementsRequest.Builderavoiding the need to create one manually viaListEntitlementsRequest.builder()- Parameters:
listEntitlementsRequest- AConsumerthat will call methods onListEntitlementsRequest.Builderto create a request.- Returns:
- Result of the ListEntitlements operation returned by the service.
- See Also:
-
listEntitlementsPaginator
default ListEntitlementsIterable listEntitlementsPaginator(ListEntitlementsRequest listEntitlementsRequest) throws AccessDeniedException, ResourceNotFoundException, ThrottlingException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, AccountAccessException This is a variant of
listEntitlements(software.amazon.awssdk.services.accountaccess.model.ListEntitlementsRequest)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.accountaccess.paginators.ListEntitlementsIterable responses = client.listEntitlementsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.accountaccess.paginators.ListEntitlementsIterable responses = client .listEntitlementsPaginator(request); for (software.amazon.awssdk.services.accountaccess.model.ListEntitlementsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.accountaccess.paginators.ListEntitlementsIterable responses = client.listEntitlementsPaginator(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
listEntitlements(software.amazon.awssdk.services.accountaccess.model.ListEntitlementsRequest)operation.- Parameters:
listEntitlementsRequest-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listEntitlementsPaginator
default ListEntitlementsIterable listEntitlementsPaginator(Consumer<ListEntitlementsRequest.Builder> listEntitlementsRequest) throws AccessDeniedException, ResourceNotFoundException, ThrottlingException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, AccountAccessException This is a variant of
listEntitlements(software.amazon.awssdk.services.accountaccess.model.ListEntitlementsRequest)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.accountaccess.paginators.ListEntitlementsIterable responses = client.listEntitlementsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.accountaccess.paginators.ListEntitlementsIterable responses = client .listEntitlementsPaginator(request); for (software.amazon.awssdk.services.accountaccess.model.ListEntitlementsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.accountaccess.paginators.ListEntitlementsIterable responses = client.listEntitlementsPaginator(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
listEntitlements(software.amazon.awssdk.services.accountaccess.model.ListEntitlementsRequest)operation.
This is a convenience which creates an instance of the
ListEntitlementsRequest.Builderavoiding the need to create one manually viaListEntitlementsRequest.builder()- Parameters:
listEntitlementsRequest- AConsumerthat will call methods onListEntitlementsRequest.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 ResourceNotFoundException, ThrottlingException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, AccountAccessException Lists the tags associated with an account access manager resource.
- Parameters:
listTagsForResourceRequest-- Returns:
- Result of the ListTagsForResource operation returned by the service.
- See Also:
-
listTagsForResource
default ListTagsForResourceResponse listTagsForResource(Consumer<ListTagsForResourceRequest.Builder> listTagsForResourceRequest) throws ResourceNotFoundException, ThrottlingException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, AccountAccessException Lists the tags associated with an account access manager 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:
-
tagResource
default TagResourceResponse tagResource(TagResourceRequest tagResourceRequest) throws ResourceNotFoundException, ThrottlingException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, AccountAccessException Adds tags to an account access manager resource.
- Parameters:
tagResourceRequest-- Returns:
- Result of the TagResource operation returned by the service.
- See Also:
-
tagResource
default TagResourceResponse tagResource(Consumer<TagResourceRequest.Builder> tagResourceRequest) throws ResourceNotFoundException, ThrottlingException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, AccountAccessException Adds tags to an account access manager 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 ResourceNotFoundException, ThrottlingException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, AccountAccessException Removes tags from an account access manager resource.
- Parameters:
untagResourceRequest-- Returns:
- Result of the UntagResource operation returned by the service.
- See Also:
-
untagResource
default UntagResourceResponse untagResource(Consumer<UntagResourceRequest.Builder> untagResourceRequest) throws ResourceNotFoundException, ThrottlingException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, AccountAccessException Removes tags from an account access manager 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:
-
waiter
Create an instance ofAccountAccessWaiterusing this client.Waiters created via this method are managed by the SDK and resources will be released when the service client is closed.
- Returns:
- an instance of
AccountAccessWaiter
-
create
Create aAccountAccessClientwith the region loaded from theDefaultAwsRegionProviderChainand credentials loaded from theDefaultCredentialsProvider. -
builder
Create a builder that can be used to configure and create aAccountAccessClient. -
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
-