Interface CredentialBrokerControlAsyncClient
- All Superinterfaces:
AutoCloseable,AwsClient,SdkAutoCloseable,SdkClient
builder() method.The asynchronous client performs non-blocking I/O when configured with any
SdkAsyncHttpClient supported in the SDK. However, full non-blocking is not guaranteed as the async client may
perform blocking calls in some cases such as credentials retrieval and endpoint discovery as part of the async API
call.
AWS IAM CredentialBroker obtains, refreshes, authorizes and vaults credentials issued by external identity providers and authorization servers on behalf of your workloads, so the workloads never handle long-lived secrets directly.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringValue for looking up the service's metadata from theServiceMetadataProvider.static final String -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Create a builder that can be used to configure and create aCredentialBrokerControlAsyncClient.create()Create aCredentialBrokerControlAsyncClientwith the region loaded from theDefaultAwsRegionProviderChainand credentials loaded from theDefaultCredentialsProvider.createCredentialProvider(Consumer<CreateCredentialProviderRequest.Builder> createCredentialProviderRequest) Creates a CredentialProvider under a parent CredentialProviderPool.createCredentialProvider(CreateCredentialProviderRequest createCredentialProviderRequest) Creates a CredentialProvider under a parent CredentialProviderPool.createCredentialProviderPool(Consumer<CreateCredentialProviderPoolRequest.Builder> createCredentialProviderPoolRequest) Creates a CredentialProviderPool.createCredentialProviderPool(CreateCredentialProviderPoolRequest createCredentialProviderPoolRequest) Creates a CredentialProviderPool.deleteCredentialProvider(Consumer<DeleteCredentialProviderRequest.Builder> deleteCredentialProviderRequest) Accepts an asynchronous request to delete a CredentialProvider of any provider type.deleteCredentialProvider(DeleteCredentialProviderRequest deleteCredentialProviderRequest) Accepts an asynchronous request to delete a CredentialProvider of any provider type.deleteCredentialProviderPool(Consumer<DeleteCredentialProviderPoolRequest.Builder> deleteCredentialProviderPoolRequest) Deletes a CredentialProviderPool.deleteCredentialProviderPool(DeleteCredentialProviderPoolRequest deleteCredentialProviderPoolRequest) Deletes a CredentialProviderPool.getCredentialProvider(Consumer<GetCredentialProviderRequest.Builder> getCredentialProviderRequest) Retrieves a CredentialProvider of any provider type.getCredentialProvider(GetCredentialProviderRequest getCredentialProviderRequest) Retrieves a CredentialProvider of any provider type.getCredentialProviderPool(Consumer<GetCredentialProviderPoolRequest.Builder> getCredentialProviderPoolRequest) Retrieves a CredentialProviderPool by identifier.getCredentialProviderPool(GetCredentialProviderPoolRequest getCredentialProviderPoolRequest) Retrieves a CredentialProviderPool by identifier.listCredentialProviderPools(Consumer<ListCredentialProviderPoolsRequest.Builder> listCredentialProviderPoolsRequest) Lists the CredentialProviderPools in your account, optionally filtered by name substring.listCredentialProviderPools(ListCredentialProviderPoolsRequest listCredentialProviderPoolsRequest) Lists the CredentialProviderPools in your account, optionally filtered by name substring.listCredentialProviderPoolsPaginator(Consumer<ListCredentialProviderPoolsRequest.Builder> listCredentialProviderPoolsRequest) This is a variant oflistCredentialProviderPools(software.amazon.awssdk.services.credentialbrokercontrol.model.ListCredentialProviderPoolsRequest)operation.listCredentialProviderPoolsPaginator(ListCredentialProviderPoolsRequest listCredentialProviderPoolsRequest) This is a variant oflistCredentialProviderPools(software.amazon.awssdk.services.credentialbrokercontrol.model.ListCredentialProviderPoolsRequest)operation.listCredentialProviders(Consumer<ListCredentialProvidersRequest.Builder> listCredentialProvidersRequest) Lists the CredentialProviders in a pool, optionally filtered by name substring and provider type.listCredentialProviders(ListCredentialProvidersRequest listCredentialProvidersRequest) Lists the CredentialProviders in a pool, optionally filtered by name substring and provider type.default ListCredentialProvidersPublisherlistCredentialProvidersPaginator(Consumer<ListCredentialProvidersRequest.Builder> listCredentialProvidersRequest) This is a variant oflistCredentialProviders(software.amazon.awssdk.services.credentialbrokercontrol.model.ListCredentialProvidersRequest)operation.default ListCredentialProvidersPublisherlistCredentialProvidersPaginator(ListCredentialProvidersRequest listCredentialProvidersRequest) This is a variant oflistCredentialProviders(software.amazon.awssdk.services.credentialbrokercontrol.model.ListCredentialProvidersRequest)operation.listTagsForResource(Consumer<ListTagsForResourceRequest.Builder> listTagsForResourceRequest) Lists the tags attached to a credential provider pool or a credential provider.listTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest) Lists the tags attached to a credential provider pool or a credential provider.The SDK service client configuration exposes client settings to the user, e.g., ClientOverrideConfigurationdefault CompletableFuture<TagResourceResponse> tagResource(Consumer<TagResourceRequest.Builder> tagResourceRequest) Adds or replaces tags on a credential provider pool or a credential provider.default CompletableFuture<TagResourceResponse> tagResource(TagResourceRequest tagResourceRequest) Adds or replaces tags on a credential provider pool or a credential provider.default CompletableFuture<UntagResourceResponse> untagResource(Consumer<UntagResourceRequest.Builder> untagResourceRequest) Removes tags from a credential provider pool or a credential provider.default CompletableFuture<UntagResourceResponse> untagResource(UntagResourceRequest untagResourceRequest) Removes tags from a credential provider pool or a credential provider.updateCredentialProvider(Consumer<UpdateCredentialProviderRequest.Builder> updateCredentialProviderRequest) Updates a CredentialProvider asynchronously.updateCredentialProvider(UpdateCredentialProviderRequest updateCredentialProviderRequest) Updates a CredentialProvider asynchronously.updateCredentialProviderPool(Consumer<UpdateCredentialProviderPoolRequest.Builder> updateCredentialProviderPoolRequest) Updates a CredentialProviderPool.updateCredentialProviderPool(UpdateCredentialProviderPoolRequest updateCredentialProviderPoolRequest) Updates a CredentialProviderPool.waiter()Create an instance ofCredentialBrokerControlAsyncWaiterusing 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
-
createCredentialProvider
default CompletableFuture<CreateCredentialProviderResponse> createCredentialProvider(CreateCredentialProviderRequest createCredentialProviderRequest) Creates a CredentialProvider under a parent CredentialProviderPool. The provider type is determined by which member of
providerConfigurationInputyou set:oauthConfigurationcreates anOAUTHprovider,apiKeyConfigurationanAPI_KEYprovider. Set exactly one. The operation always returns 202 Accepted.Creation is asynchronous. The provider is returned with a transitional
statusand reachesREADYorFAILEDon its own; pollGetCredentialProviderto observe the transition.Credentials this provider caches are encrypted under the parent pool's encryption configuration unless the provider overrides it. Within
oauthConfiguration, setproviderEncryptionConfigurationto a customer managed key to use that key in place of the pool's, or toinheritFromPoolto follow the pool. A provider cannot select service-managed encryption on its own, the only way to use the service-owned key is to inherit it from a pool configured that way. An OAuth provider's response reports which applies inencryptionSource, asINHERITEDorPROVIDER_OVERRIDE, alongside the resolvedencryptionConfiguration.Required permissions: in addition to permission for this operation, the service performs these actions on your behalf, each only when the request calls for it:
secretsmanager:GetSecretValueandsecretsmanager:DescribeSecretwhen the provider references a secret you own;secretsmanager:CreateSecretwhen you supply the credential value instead, so that the service stores it in a secret it creates; andkms:CreateGrant,kms:DescribeKey,kms:GenerateDataKeyWithoutPlaintext,kms:ReEncryptFrom,kms:ReEncryptTo,kms:Encrypt, andkms:Decryptwhen a customer managed KMS key is in use.- Parameters:
createCredentialProviderRequest-- Returns:
- A Java Future containing the result of the CreateCredentialProvider operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ServiceQuotaExceededException The request would exceed a service quota, so it was rejected and
nothing was created or changed. Delete resources that are no longer needed, or request a quota increase
in Service Quotas using
serviceCodeandquotaCode, then retry. - ThrottlingException The request was denied because the caller exceeded a request rate limit. Nothing
was changed. Retry with exponential backoff, honoring
retryAfterSecondswhen it is present. - ResourceNotFoundException The requested resource does not exist, or the caller is not permitted to know that it exists. A resource that was deleted, or that is still being created, can also be reported this way.
- InternalServerException The request failed because of an unexpected error in the service. Whether the request took effect is undefined, so for a create or update, read the resource back before retrying. Retryable: the same request may succeed later.
- AccessDeniedException The caller is not authorized to perform the request, or a resource the request
depends on refused access.
reasondistinguishes a denial by this service from a denial reported by a dependency the caller configured, such as a customer-owned secret, KMS key, or external identity provider, which usually points at a permission or configuration fix outside this API. - ConflictException The request conflicts with the current state of the resource. Nothing was changed.
Depending on
reason, the request may succeed if retried once the resource reaches a settled state, or it may require different input (for example a name that is not already taken). - ValidationException The request is not valid. The request was rejected before any change was made, so
it is safe to correct the input and retry. Use
reasonto branch in code andmessagefor the human-readable detail of which field or combination of fields was at fault. - 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.
- CredentialBrokerControlException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- ServiceQuotaExceededException The request would exceed a service quota, so it was rejected and
nothing was created or changed. Delete resources that are no longer needed, or request a quota increase
in Service Quotas using
- See Also:
-
createCredentialProvider
default CompletableFuture<CreateCredentialProviderResponse> createCredentialProvider(Consumer<CreateCredentialProviderRequest.Builder> createCredentialProviderRequest) Creates a CredentialProvider under a parent CredentialProviderPool. The provider type is determined by which member of
providerConfigurationInputyou set:oauthConfigurationcreates anOAUTHprovider,apiKeyConfigurationanAPI_KEYprovider. Set exactly one. The operation always returns 202 Accepted.Creation is asynchronous. The provider is returned with a transitional
statusand reachesREADYorFAILEDon its own; pollGetCredentialProviderto observe the transition.Credentials this provider caches are encrypted under the parent pool's encryption configuration unless the provider overrides it. Within
oauthConfiguration, setproviderEncryptionConfigurationto a customer managed key to use that key in place of the pool's, or toinheritFromPoolto follow the pool. A provider cannot select service-managed encryption on its own, the only way to use the service-owned key is to inherit it from a pool configured that way. An OAuth provider's response reports which applies inencryptionSource, asINHERITEDorPROVIDER_OVERRIDE, alongside the resolvedencryptionConfiguration.Required permissions: in addition to permission for this operation, the service performs these actions on your behalf, each only when the request calls for it:
secretsmanager:GetSecretValueandsecretsmanager:DescribeSecretwhen the provider references a secret you own;secretsmanager:CreateSecretwhen you supply the credential value instead, so that the service stores it in a secret it creates; andkms:CreateGrant,kms:DescribeKey,kms:GenerateDataKeyWithoutPlaintext,kms:ReEncryptFrom,kms:ReEncryptTo,kms:Encrypt, andkms:Decryptwhen a customer managed KMS key is in use.
This is a convenience which creates an instance of the
CreateCredentialProviderRequest.Builderavoiding the need to create one manually viaCreateCredentialProviderRequest.builder()- Parameters:
createCredentialProviderRequest- AConsumerthat will call methods onCreateCredentialProviderRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the CreateCredentialProvider operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ServiceQuotaExceededException The request would exceed a service quota, so it was rejected and
nothing was created or changed. Delete resources that are no longer needed, or request a quota increase
in Service Quotas using
serviceCodeandquotaCode, then retry. - ThrottlingException The request was denied because the caller exceeded a request rate limit. Nothing
was changed. Retry with exponential backoff, honoring
retryAfterSecondswhen it is present. - ResourceNotFoundException The requested resource does not exist, or the caller is not permitted to know that it exists. A resource that was deleted, or that is still being created, can also be reported this way.
- InternalServerException The request failed because of an unexpected error in the service. Whether the request took effect is undefined, so for a create or update, read the resource back before retrying. Retryable: the same request may succeed later.
- AccessDeniedException The caller is not authorized to perform the request, or a resource the request
depends on refused access.
reasondistinguishes a denial by this service from a denial reported by a dependency the caller configured, such as a customer-owned secret, KMS key, or external identity provider, which usually points at a permission or configuration fix outside this API. - ConflictException The request conflicts with the current state of the resource. Nothing was changed.
Depending on
reason, the request may succeed if retried once the resource reaches a settled state, or it may require different input (for example a name that is not already taken). - ValidationException The request is not valid. The request was rejected before any change was made, so
it is safe to correct the input and retry. Use
reasonto branch in code andmessagefor the human-readable detail of which field or combination of fields was at fault. - 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.
- CredentialBrokerControlException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- ServiceQuotaExceededException The request would exceed a service quota, so it was rejected and
nothing was created or changed. Delete resources that are no longer needed, or request a quota increase
in Service Quotas using
- See Also:
-
createCredentialProviderPool
default CompletableFuture<CreateCredentialProviderPoolResponse> createCredentialProviderPool(CreateCredentialProviderPoolRequest createCredentialProviderPoolRequest) Creates a CredentialProviderPool. The customer provides the pool name; the service generates the pool id and ARN.
Creation is asynchronous. The operation returns the pool with a transitional
status, and the pool reachesREADYorFAILEDon its own; pollGetCredentialProviderPoolto observe the transition.The encryption configuration you set here governs every credential provider in the pool: a provider encrypts the credentials it caches under the pool's configuration unless it overrides that with a customer managed key of its own. A provider that inherits follows the pool, so setting or changing the pool's key later moves those providers onto the new key, while a provider that set its own key is unaffected.
Required permissions: this operation needs additional permissions depending on how you configure the pool. If you associate an IAM Identity Center instance, you also need
sso:CreateApplication,sso:PutApplicationAuthenticationMethod,sso:PutApplicationGrant, andsso:PutApplicationAssignmentConfiguration. If you encrypt with a customer managed KMS key, you also needkms:CreateGrantandkms:DescribeKeyon that key.- Parameters:
createCredentialProviderPoolRequest-- Returns:
- A Java Future containing the result of the CreateCredentialProviderPool operation returned by the
service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ServiceQuotaExceededException The request would exceed a service quota, so it was rejected and
nothing was created or changed. Delete resources that are no longer needed, or request a quota increase
in Service Quotas using
serviceCodeandquotaCode, then retry. - ThrottlingException The request was denied because the caller exceeded a request rate limit. Nothing
was changed. Retry with exponential backoff, honoring
retryAfterSecondswhen it is present. - InternalServerException The request failed because of an unexpected error in the service. Whether the request took effect is undefined, so for a create or update, read the resource back before retrying. Retryable: the same request may succeed later.
- AccessDeniedException The caller is not authorized to perform the request, or a resource the request
depends on refused access.
reasondistinguishes a denial by this service from a denial reported by a dependency the caller configured, such as a customer-owned secret, KMS key, or external identity provider, which usually points at a permission or configuration fix outside this API. - ConflictException The request conflicts with the current state of the resource. Nothing was changed.
Depending on
reason, the request may succeed if retried once the resource reaches a settled state, or it may require different input (for example a name that is not already taken). - ValidationException The request is not valid. The request was rejected before any change was made, so
it is safe to correct the input and retry. Use
reasonto branch in code andmessagefor the human-readable detail of which field or combination of fields was at fault. - 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.
- CredentialBrokerControlException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- ServiceQuotaExceededException The request would exceed a service quota, so it was rejected and
nothing was created or changed. Delete resources that are no longer needed, or request a quota increase
in Service Quotas using
- See Also:
-
createCredentialProviderPool
default CompletableFuture<CreateCredentialProviderPoolResponse> createCredentialProviderPool(Consumer<CreateCredentialProviderPoolRequest.Builder> createCredentialProviderPoolRequest) Creates a CredentialProviderPool. The customer provides the pool name; the service generates the pool id and ARN.
Creation is asynchronous. The operation returns the pool with a transitional
status, and the pool reachesREADYorFAILEDon its own; pollGetCredentialProviderPoolto observe the transition.The encryption configuration you set here governs every credential provider in the pool: a provider encrypts the credentials it caches under the pool's configuration unless it overrides that with a customer managed key of its own. A provider that inherits follows the pool, so setting or changing the pool's key later moves those providers onto the new key, while a provider that set its own key is unaffected.
Required permissions: this operation needs additional permissions depending on how you configure the pool. If you associate an IAM Identity Center instance, you also need
sso:CreateApplication,sso:PutApplicationAuthenticationMethod,sso:PutApplicationGrant, andsso:PutApplicationAssignmentConfiguration. If you encrypt with a customer managed KMS key, you also needkms:CreateGrantandkms:DescribeKeyon that key.
This is a convenience which creates an instance of the
CreateCredentialProviderPoolRequest.Builderavoiding the need to create one manually viaCreateCredentialProviderPoolRequest.builder()- Parameters:
createCredentialProviderPoolRequest- AConsumerthat will call methods onCreateCredentialProviderPoolRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the CreateCredentialProviderPool operation returned by the
service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ServiceQuotaExceededException The request would exceed a service quota, so it was rejected and
nothing was created or changed. Delete resources that are no longer needed, or request a quota increase
in Service Quotas using
serviceCodeandquotaCode, then retry. - ThrottlingException The request was denied because the caller exceeded a request rate limit. Nothing
was changed. Retry with exponential backoff, honoring
retryAfterSecondswhen it is present. - InternalServerException The request failed because of an unexpected error in the service. Whether the request took effect is undefined, so for a create or update, read the resource back before retrying. Retryable: the same request may succeed later.
- AccessDeniedException The caller is not authorized to perform the request, or a resource the request
depends on refused access.
reasondistinguishes a denial by this service from a denial reported by a dependency the caller configured, such as a customer-owned secret, KMS key, or external identity provider, which usually points at a permission or configuration fix outside this API. - ConflictException The request conflicts with the current state of the resource. Nothing was changed.
Depending on
reason, the request may succeed if retried once the resource reaches a settled state, or it may require different input (for example a name that is not already taken). - ValidationException The request is not valid. The request was rejected before any change was made, so
it is safe to correct the input and retry. Use
reasonto branch in code andmessagefor the human-readable detail of which field or combination of fields was at fault. - 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.
- CredentialBrokerControlException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- ServiceQuotaExceededException The request would exceed a service quota, so it was rejected and
nothing was created or changed. Delete resources that are no longer needed, or request a quota increase
in Service Quotas using
- See Also:
-
deleteCredentialProvider
default CompletableFuture<DeleteCredentialProviderResponse> deleteCredentialProvider(DeleteCredentialProviderRequest deleteCredentialProviderRequest) Accepts an asynchronous request to delete a CredentialProvider of any provider type.
The operation is idempotent. Poll
GetCredentialProvideruntil it returns a resource-not-found error to observe that deletion has finished.Required permissions: in addition to permission for this operation, the service performs
secretsmanager:DeleteSecreton your behalf, but only when the provider's credential is held in a secret the service created. A provider that references a secret you own leaves that secret untouched.- Parameters:
deleteCredentialProviderRequest-- Returns:
- A Java Future containing the result of the DeleteCredentialProvider operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ThrottlingException The request was denied because the caller exceeded a request rate limit. Nothing
was changed. Retry with exponential backoff, honoring
retryAfterSecondswhen it is present. - ResourceNotFoundException The requested resource does not exist, or the caller is not permitted to know that it exists. A resource that was deleted, or that is still being created, can also be reported this way.
- InternalServerException The request failed because of an unexpected error in the service. Whether the request took effect is undefined, so for a create or update, read the resource back before retrying. Retryable: the same request may succeed later.
- AccessDeniedException The caller is not authorized to perform the request, or a resource the request
depends on refused access.
reasondistinguishes a denial by this service from a denial reported by a dependency the caller configured, such as a customer-owned secret, KMS key, or external identity provider, which usually points at a permission or configuration fix outside this API. - ConflictException The request conflicts with the current state of the resource. Nothing was changed.
Depending on
reason, the request may succeed if retried once the resource reaches a settled state, or it may require different input (for example a name that is not already taken). - ValidationException The request is not valid. The request was rejected before any change was made, so
it is safe to correct the input and retry. Use
reasonto branch in code andmessagefor the human-readable detail of which field or combination of fields was at fault. - 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.
- CredentialBrokerControlException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- ThrottlingException The request was denied because the caller exceeded a request rate limit. Nothing
was changed. Retry with exponential backoff, honoring
- See Also:
-
deleteCredentialProvider
default CompletableFuture<DeleteCredentialProviderResponse> deleteCredentialProvider(Consumer<DeleteCredentialProviderRequest.Builder> deleteCredentialProviderRequest) Accepts an asynchronous request to delete a CredentialProvider of any provider type.
The operation is idempotent. Poll
GetCredentialProvideruntil it returns a resource-not-found error to observe that deletion has finished.Required permissions: in addition to permission for this operation, the service performs
secretsmanager:DeleteSecreton your behalf, but only when the provider's credential is held in a secret the service created. A provider that references a secret you own leaves that secret untouched.
This is a convenience which creates an instance of the
DeleteCredentialProviderRequest.Builderavoiding the need to create one manually viaDeleteCredentialProviderRequest.builder()- Parameters:
deleteCredentialProviderRequest- AConsumerthat will call methods onDeleteCredentialProviderRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the DeleteCredentialProvider operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ThrottlingException The request was denied because the caller exceeded a request rate limit. Nothing
was changed. Retry with exponential backoff, honoring
retryAfterSecondswhen it is present. - ResourceNotFoundException The requested resource does not exist, or the caller is not permitted to know that it exists. A resource that was deleted, or that is still being created, can also be reported this way.
- InternalServerException The request failed because of an unexpected error in the service. Whether the request took effect is undefined, so for a create or update, read the resource back before retrying. Retryable: the same request may succeed later.
- AccessDeniedException The caller is not authorized to perform the request, or a resource the request
depends on refused access.
reasondistinguishes a denial by this service from a denial reported by a dependency the caller configured, such as a customer-owned secret, KMS key, or external identity provider, which usually points at a permission or configuration fix outside this API. - ConflictException The request conflicts with the current state of the resource. Nothing was changed.
Depending on
reason, the request may succeed if retried once the resource reaches a settled state, or it may require different input (for example a name that is not already taken). - ValidationException The request is not valid. The request was rejected before any change was made, so
it is safe to correct the input and retry. Use
reasonto branch in code andmessagefor the human-readable detail of which field or combination of fields was at fault. - 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.
- CredentialBrokerControlException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- ThrottlingException The request was denied because the caller exceeded a request rate limit. Nothing
was changed. Retry with exponential backoff, honoring
- See Also:
-
deleteCredentialProviderPool
default CompletableFuture<DeleteCredentialProviderPoolResponse> deleteCredentialProviderPool(DeleteCredentialProviderPoolRequest deleteCredentialProviderPoolRequest) Deletes a CredentialProviderPool. Deletion is asynchronous; the pool transitions to DELETING.
The operation is idempotent. Poll
GetCredentialProviderPooluntil it returns a resource-not-found error to observe that deletion has finished.Required permissions: in addition to permission for this operation, the service performs
sso:DeleteApplicationon your behalf, but only when the pool is associated with an IAM Identity Center instance.- Parameters:
deleteCredentialProviderPoolRequest-- Returns:
- A Java Future containing the result of the DeleteCredentialProviderPool operation returned by the
service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ThrottlingException The request was denied because the caller exceeded a request rate limit. Nothing
was changed. Retry with exponential backoff, honoring
retryAfterSecondswhen it is present. - ResourceNotFoundException The requested resource does not exist, or the caller is not permitted to know that it exists. A resource that was deleted, or that is still being created, can also be reported this way.
- InternalServerException The request failed because of an unexpected error in the service. Whether the request took effect is undefined, so for a create or update, read the resource back before retrying. Retryable: the same request may succeed later.
- AccessDeniedException The caller is not authorized to perform the request, or a resource the request
depends on refused access.
reasondistinguishes a denial by this service from a denial reported by a dependency the caller configured, such as a customer-owned secret, KMS key, or external identity provider, which usually points at a permission or configuration fix outside this API. - ConflictException The request conflicts with the current state of the resource. Nothing was changed.
Depending on
reason, the request may succeed if retried once the resource reaches a settled state, or it may require different input (for example a name that is not already taken). - ValidationException The request is not valid. The request was rejected before any change was made, so
it is safe to correct the input and retry. Use
reasonto branch in code andmessagefor the human-readable detail of which field or combination of fields was at fault. - 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.
- CredentialBrokerControlException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- ThrottlingException The request was denied because the caller exceeded a request rate limit. Nothing
was changed. Retry with exponential backoff, honoring
- See Also:
-
deleteCredentialProviderPool
default CompletableFuture<DeleteCredentialProviderPoolResponse> deleteCredentialProviderPool(Consumer<DeleteCredentialProviderPoolRequest.Builder> deleteCredentialProviderPoolRequest) Deletes a CredentialProviderPool. Deletion is asynchronous; the pool transitions to DELETING.
The operation is idempotent. Poll
GetCredentialProviderPooluntil it returns a resource-not-found error to observe that deletion has finished.Required permissions: in addition to permission for this operation, the service performs
sso:DeleteApplicationon your behalf, but only when the pool is associated with an IAM Identity Center instance.
This is a convenience which creates an instance of the
DeleteCredentialProviderPoolRequest.Builderavoiding the need to create one manually viaDeleteCredentialProviderPoolRequest.builder()- Parameters:
deleteCredentialProviderPoolRequest- AConsumerthat will call methods onDeleteCredentialProviderPoolRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the DeleteCredentialProviderPool operation returned by the
service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ThrottlingException The request was denied because the caller exceeded a request rate limit. Nothing
was changed. Retry with exponential backoff, honoring
retryAfterSecondswhen it is present. - ResourceNotFoundException The requested resource does not exist, or the caller is not permitted to know that it exists. A resource that was deleted, or that is still being created, can also be reported this way.
- InternalServerException The request failed because of an unexpected error in the service. Whether the request took effect is undefined, so for a create or update, read the resource back before retrying. Retryable: the same request may succeed later.
- AccessDeniedException The caller is not authorized to perform the request, or a resource the request
depends on refused access.
reasondistinguishes a denial by this service from a denial reported by a dependency the caller configured, such as a customer-owned secret, KMS key, or external identity provider, which usually points at a permission or configuration fix outside this API. - ConflictException The request conflicts with the current state of the resource. Nothing was changed.
Depending on
reason, the request may succeed if retried once the resource reaches a settled state, or it may require different input (for example a name that is not already taken). - ValidationException The request is not valid. The request was rejected before any change was made, so
it is safe to correct the input and retry. Use
reasonto branch in code andmessagefor the human-readable detail of which field or combination of fields was at fault. - 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.
- CredentialBrokerControlException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- ThrottlingException The request was denied because the caller exceeded a request rate limit. Nothing
was changed. Retry with exponential backoff, honoring
- See Also:
-
getCredentialProvider
default CompletableFuture<GetCredentialProviderResponse> getCredentialProvider(GetCredentialProviderRequest getCredentialProviderRequest) Retrieves a CredentialProvider of any provider type. Credential material is never returned: the response reports the Amazon Resource Name of the secret holding each credential, not its value. Nor does the response include the provider's tags; call
ListTagsForResourcefor those.This is also the operation to poll while an asynchronous create, update, or delete settles:
statusreports the transition. Once a delete finishes the provider no longer exists, so this operation returnsResourceNotFoundExceptionrather than a deleted status.- Parameters:
getCredentialProviderRequest-- Returns:
- A Java Future containing the result of the GetCredentialProvider operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ThrottlingException The request was denied because the caller exceeded a request rate limit. Nothing
was changed. Retry with exponential backoff, honoring
retryAfterSecondswhen it is present. - ResourceNotFoundException The requested resource does not exist, or the caller is not permitted to know that it exists. A resource that was deleted, or that is still being created, can also be reported this way.
- InternalServerException The request failed because of an unexpected error in the service. Whether the request took effect is undefined, so for a create or update, read the resource back before retrying. Retryable: the same request may succeed later.
- AccessDeniedException The caller is not authorized to perform the request, or a resource the request
depends on refused access.
reasondistinguishes a denial by this service from a denial reported by a dependency the caller configured, such as a customer-owned secret, KMS key, or external identity provider, which usually points at a permission or configuration fix outside this API. - ValidationException The request is not valid. The request was rejected before any change was made, so
it is safe to correct the input and retry. Use
reasonto branch in code andmessagefor the human-readable detail of which field or combination of fields was at fault. - 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.
- CredentialBrokerControlException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- ThrottlingException The request was denied because the caller exceeded a request rate limit. Nothing
was changed. Retry with exponential backoff, honoring
- See Also:
-
getCredentialProvider
default CompletableFuture<GetCredentialProviderResponse> getCredentialProvider(Consumer<GetCredentialProviderRequest.Builder> getCredentialProviderRequest) Retrieves a CredentialProvider of any provider type. Credential material is never returned: the response reports the Amazon Resource Name of the secret holding each credential, not its value. Nor does the response include the provider's tags; call
ListTagsForResourcefor those.This is also the operation to poll while an asynchronous create, update, or delete settles:
statusreports the transition. Once a delete finishes the provider no longer exists, so this operation returnsResourceNotFoundExceptionrather than a deleted status.
This is a convenience which creates an instance of the
GetCredentialProviderRequest.Builderavoiding the need to create one manually viaGetCredentialProviderRequest.builder()- Parameters:
getCredentialProviderRequest- AConsumerthat will call methods onGetCredentialProviderRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the GetCredentialProvider operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ThrottlingException The request was denied because the caller exceeded a request rate limit. Nothing
was changed. Retry with exponential backoff, honoring
retryAfterSecondswhen it is present. - ResourceNotFoundException The requested resource does not exist, or the caller is not permitted to know that it exists. A resource that was deleted, or that is still being created, can also be reported this way.
- InternalServerException The request failed because of an unexpected error in the service. Whether the request took effect is undefined, so for a create or update, read the resource back before retrying. Retryable: the same request may succeed later.
- AccessDeniedException The caller is not authorized to perform the request, or a resource the request
depends on refused access.
reasondistinguishes a denial by this service from a denial reported by a dependency the caller configured, such as a customer-owned secret, KMS key, or external identity provider, which usually points at a permission or configuration fix outside this API. - ValidationException The request is not valid. The request was rejected before any change was made, so
it is safe to correct the input and retry. Use
reasonto branch in code andmessagefor the human-readable detail of which field or combination of fields was at fault. - 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.
- CredentialBrokerControlException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- ThrottlingException The request was denied because the caller exceeded a request rate limit. Nothing
was changed. Retry with exponential backoff, honoring
- See Also:
-
getCredentialProviderPool
default CompletableFuture<GetCredentialProviderPoolResponse> getCredentialProviderPool(GetCredentialProviderPoolRequest getCredentialProviderPoolRequest) Retrieves a CredentialProviderPool by identifier. The response does not include the pool's tags; call
ListTagsForResourcefor those.This is also the operation to poll while an asynchronous create, update, or delete settles:
statusreports the transition. Once a delete finishes the pool no longer exists, so this operation returnsResourceNotFoundExceptionrather than a deleted status.- Parameters:
getCredentialProviderPoolRequest-- Returns:
- A Java Future containing the result of the GetCredentialProviderPool operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ThrottlingException The request was denied because the caller exceeded a request rate limit. Nothing
was changed. Retry with exponential backoff, honoring
retryAfterSecondswhen it is present. - ResourceNotFoundException The requested resource does not exist, or the caller is not permitted to know that it exists. A resource that was deleted, or that is still being created, can also be reported this way.
- InternalServerException The request failed because of an unexpected error in the service. Whether the request took effect is undefined, so for a create or update, read the resource back before retrying. Retryable: the same request may succeed later.
- AccessDeniedException The caller is not authorized to perform the request, or a resource the request
depends on refused access.
reasondistinguishes a denial by this service from a denial reported by a dependency the caller configured, such as a customer-owned secret, KMS key, or external identity provider, which usually points at a permission or configuration fix outside this API. - ValidationException The request is not valid. The request was rejected before any change was made, so
it is safe to correct the input and retry. Use
reasonto branch in code andmessagefor the human-readable detail of which field or combination of fields was at fault. - 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.
- CredentialBrokerControlException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- ThrottlingException The request was denied because the caller exceeded a request rate limit. Nothing
was changed. Retry with exponential backoff, honoring
- See Also:
-
getCredentialProviderPool
default CompletableFuture<GetCredentialProviderPoolResponse> getCredentialProviderPool(Consumer<GetCredentialProviderPoolRequest.Builder> getCredentialProviderPoolRequest) Retrieves a CredentialProviderPool by identifier. The response does not include the pool's tags; call
ListTagsForResourcefor those.This is also the operation to poll while an asynchronous create, update, or delete settles:
statusreports the transition. Once a delete finishes the pool no longer exists, so this operation returnsResourceNotFoundExceptionrather than a deleted status.
This is a convenience which creates an instance of the
GetCredentialProviderPoolRequest.Builderavoiding the need to create one manually viaGetCredentialProviderPoolRequest.builder()- Parameters:
getCredentialProviderPoolRequest- AConsumerthat will call methods onGetCredentialProviderPoolRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the GetCredentialProviderPool operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ThrottlingException The request was denied because the caller exceeded a request rate limit. Nothing
was changed. Retry with exponential backoff, honoring
retryAfterSecondswhen it is present. - ResourceNotFoundException The requested resource does not exist, or the caller is not permitted to know that it exists. A resource that was deleted, or that is still being created, can also be reported this way.
- InternalServerException The request failed because of an unexpected error in the service. Whether the request took effect is undefined, so for a create or update, read the resource back before retrying. Retryable: the same request may succeed later.
- AccessDeniedException The caller is not authorized to perform the request, or a resource the request
depends on refused access.
reasondistinguishes a denial by this service from a denial reported by a dependency the caller configured, such as a customer-owned secret, KMS key, or external identity provider, which usually points at a permission or configuration fix outside this API. - ValidationException The request is not valid. The request was rejected before any change was made, so
it is safe to correct the input and retry. Use
reasonto branch in code andmessagefor the human-readable detail of which field or combination of fields was at fault. - 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.
- CredentialBrokerControlException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- ThrottlingException The request was denied because the caller exceeded a request rate limit. Nothing
was changed. Retry with exponential backoff, honoring
- See Also:
-
listCredentialProviderPools
default CompletableFuture<ListCredentialProviderPoolsResponse> listCredentialProviderPools(ListCredentialProviderPoolsRequest listCredentialProviderPoolsRequest) Lists the CredentialProviderPools in your account, optionally filtered by name substring. Each entry is a summary that omits the pool's encryption and IAM Identity Center configuration; call
GetCredentialProviderPoolfor a single pool's full detail.- Parameters:
listCredentialProviderPoolsRequest-- Returns:
- A Java Future containing the result of the ListCredentialProviderPools operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ThrottlingException The request was denied because the caller exceeded a request rate limit. Nothing
was changed. Retry with exponential backoff, honoring
retryAfterSecondswhen it is present. - InternalServerException The request failed because of an unexpected error in the service. Whether the request took effect is undefined, so for a create or update, read the resource back before retrying. Retryable: the same request may succeed later.
- AccessDeniedException The caller is not authorized to perform the request, or a resource the request
depends on refused access.
reasondistinguishes a denial by this service from a denial reported by a dependency the caller configured, such as a customer-owned secret, KMS key, or external identity provider, which usually points at a permission or configuration fix outside this API. - ValidationException The request is not valid. The request was rejected before any change was made, so
it is safe to correct the input and retry. Use
reasonto branch in code andmessagefor the human-readable detail of which field or combination of fields was at fault. - 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.
- CredentialBrokerControlException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- ThrottlingException The request was denied because the caller exceeded a request rate limit. Nothing
was changed. Retry with exponential backoff, honoring
- See Also:
-
listCredentialProviderPools
default CompletableFuture<ListCredentialProviderPoolsResponse> listCredentialProviderPools(Consumer<ListCredentialProviderPoolsRequest.Builder> listCredentialProviderPoolsRequest) Lists the CredentialProviderPools in your account, optionally filtered by name substring. Each entry is a summary that omits the pool's encryption and IAM Identity Center configuration; call
GetCredentialProviderPoolfor a single pool's full detail.
This is a convenience which creates an instance of the
ListCredentialProviderPoolsRequest.Builderavoiding the need to create one manually viaListCredentialProviderPoolsRequest.builder()- Parameters:
listCredentialProviderPoolsRequest- AConsumerthat will call methods onListCredentialProviderPoolsRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the ListCredentialProviderPools operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ThrottlingException The request was denied because the caller exceeded a request rate limit. Nothing
was changed. Retry with exponential backoff, honoring
retryAfterSecondswhen it is present. - InternalServerException The request failed because of an unexpected error in the service. Whether the request took effect is undefined, so for a create or update, read the resource back before retrying. Retryable: the same request may succeed later.
- AccessDeniedException The caller is not authorized to perform the request, or a resource the request
depends on refused access.
reasondistinguishes a denial by this service from a denial reported by a dependency the caller configured, such as a customer-owned secret, KMS key, or external identity provider, which usually points at a permission or configuration fix outside this API. - ValidationException The request is not valid. The request was rejected before any change was made, so
it is safe to correct the input and retry. Use
reasonto branch in code andmessagefor the human-readable detail of which field or combination of fields was at fault. - 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.
- CredentialBrokerControlException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- ThrottlingException The request was denied because the caller exceeded a request rate limit. Nothing
was changed. Retry with exponential backoff, honoring
- See Also:
-
listCredentialProviderPoolsPaginator
default ListCredentialProviderPoolsPublisher listCredentialProviderPoolsPaginator(ListCredentialProviderPoolsRequest listCredentialProviderPoolsRequest) This is a variant of
listCredentialProviderPools(software.amazon.awssdk.services.credentialbrokercontrol.model.ListCredentialProviderPoolsRequest)operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe method will result in a newSubscriptioni.e., a new contract to stream data from the starting request.The following are few ways to use the response class:
1) Using the subscribe helper method
2) Using a custom subscribersoftware.amazon.awssdk.services.credentialbrokercontrol.paginators.ListCredentialProviderPoolsPublisher publisher = client.listCredentialProviderPoolsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.software.amazon.awssdk.services.credentialbrokercontrol.paginators.ListCredentialProviderPoolsPublisher publisher = client.listCredentialProviderPoolsPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.credentialbrokercontrol.model.ListCredentialProviderPoolsResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.credentialbrokercontrol.model.ListCredentialProviderPoolsResponse response) { //... }; });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
listCredentialProviderPools(software.amazon.awssdk.services.credentialbrokercontrol.model.ListCredentialProviderPoolsRequest)operation.- Parameters:
listCredentialProviderPoolsRequest-- Returns:
- A custom publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ThrottlingException The request was denied because the caller exceeded a request rate limit. Nothing
was changed. Retry with exponential backoff, honoring
retryAfterSecondswhen it is present. - InternalServerException The request failed because of an unexpected error in the service. Whether the request took effect is undefined, so for a create or update, read the resource back before retrying. Retryable: the same request may succeed later.
- AccessDeniedException The caller is not authorized to perform the request, or a resource the request
depends on refused access.
reasondistinguishes a denial by this service from a denial reported by a dependency the caller configured, such as a customer-owned secret, KMS key, or external identity provider, which usually points at a permission or configuration fix outside this API. - ValidationException The request is not valid. The request was rejected before any change was made, so
it is safe to correct the input and retry. Use
reasonto branch in code andmessagefor the human-readable detail of which field or combination of fields was at fault. - 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.
- CredentialBrokerControlException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- ThrottlingException The request was denied because the caller exceeded a request rate limit. Nothing
was changed. Retry with exponential backoff, honoring
- See Also:
-
listCredentialProviderPoolsPaginator
default ListCredentialProviderPoolsPublisher listCredentialProviderPoolsPaginator(Consumer<ListCredentialProviderPoolsRequest.Builder> listCredentialProviderPoolsRequest) This is a variant of
listCredentialProviderPools(software.amazon.awssdk.services.credentialbrokercontrol.model.ListCredentialProviderPoolsRequest)operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe method will result in a newSubscriptioni.e., a new contract to stream data from the starting request.The following are few ways to use the response class:
1) Using the subscribe helper method
2) Using a custom subscribersoftware.amazon.awssdk.services.credentialbrokercontrol.paginators.ListCredentialProviderPoolsPublisher publisher = client.listCredentialProviderPoolsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.software.amazon.awssdk.services.credentialbrokercontrol.paginators.ListCredentialProviderPoolsPublisher publisher = client.listCredentialProviderPoolsPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.credentialbrokercontrol.model.ListCredentialProviderPoolsResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.credentialbrokercontrol.model.ListCredentialProviderPoolsResponse response) { //... }; });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
listCredentialProviderPools(software.amazon.awssdk.services.credentialbrokercontrol.model.ListCredentialProviderPoolsRequest)operation.
This is a convenience which creates an instance of the
ListCredentialProviderPoolsRequest.Builderavoiding the need to create one manually viaListCredentialProviderPoolsRequest.builder()- Parameters:
listCredentialProviderPoolsRequest- AConsumerthat will call methods onListCredentialProviderPoolsRequest.Builderto create a request.- Returns:
- A custom publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ThrottlingException The request was denied because the caller exceeded a request rate limit. Nothing
was changed. Retry with exponential backoff, honoring
retryAfterSecondswhen it is present. - InternalServerException The request failed because of an unexpected error in the service. Whether the request took effect is undefined, so for a create or update, read the resource back before retrying. Retryable: the same request may succeed later.
- AccessDeniedException The caller is not authorized to perform the request, or a resource the request
depends on refused access.
reasondistinguishes a denial by this service from a denial reported by a dependency the caller configured, such as a customer-owned secret, KMS key, or external identity provider, which usually points at a permission or configuration fix outside this API. - ValidationException The request is not valid. The request was rejected before any change was made, so
it is safe to correct the input and retry. Use
reasonto branch in code andmessagefor the human-readable detail of which field or combination of fields was at fault. - 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.
- CredentialBrokerControlException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- ThrottlingException The request was denied because the caller exceeded a request rate limit. Nothing
was changed. Retry with exponential backoff, honoring
- See Also:
-
listCredentialProviders
default CompletableFuture<ListCredentialProvidersResponse> listCredentialProviders(ListCredentialProvidersRequest listCredentialProvidersRequest) Lists the CredentialProviders in a pool, optionally filtered by name substring and provider type. Each entry is a summary that omits the provider's type-specific configuration; call
GetCredentialProviderfor a single provider's full detail.Results are returned in no particular order, and the order may change between calls. Do not rely on it.
- Parameters:
listCredentialProvidersRequest-- Returns:
- A Java Future containing the result of the ListCredentialProviders operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ThrottlingException The request was denied because the caller exceeded a request rate limit. Nothing
was changed. Retry with exponential backoff, honoring
retryAfterSecondswhen it is present. - ResourceNotFoundException The requested resource does not exist, or the caller is not permitted to know that it exists. A resource that was deleted, or that is still being created, can also be reported this way.
- InternalServerException The request failed because of an unexpected error in the service. Whether the request took effect is undefined, so for a create or update, read the resource back before retrying. Retryable: the same request may succeed later.
- AccessDeniedException The caller is not authorized to perform the request, or a resource the request
depends on refused access.
reasondistinguishes a denial by this service from a denial reported by a dependency the caller configured, such as a customer-owned secret, KMS key, or external identity provider, which usually points at a permission or configuration fix outside this API. - ValidationException The request is not valid. The request was rejected before any change was made, so
it is safe to correct the input and retry. Use
reasonto branch in code andmessagefor the human-readable detail of which field or combination of fields was at fault. - 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.
- CredentialBrokerControlException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- ThrottlingException The request was denied because the caller exceeded a request rate limit. Nothing
was changed. Retry with exponential backoff, honoring
- See Also:
-
listCredentialProviders
default CompletableFuture<ListCredentialProvidersResponse> listCredentialProviders(Consumer<ListCredentialProvidersRequest.Builder> listCredentialProvidersRequest) Lists the CredentialProviders in a pool, optionally filtered by name substring and provider type. Each entry is a summary that omits the provider's type-specific configuration; call
GetCredentialProviderfor a single provider's full detail.Results are returned in no particular order, and the order may change between calls. Do not rely on it.
This is a convenience which creates an instance of the
ListCredentialProvidersRequest.Builderavoiding the need to create one manually viaListCredentialProvidersRequest.builder()- Parameters:
listCredentialProvidersRequest- AConsumerthat will call methods onListCredentialProvidersRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the ListCredentialProviders operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ThrottlingException The request was denied because the caller exceeded a request rate limit. Nothing
was changed. Retry with exponential backoff, honoring
retryAfterSecondswhen it is present. - ResourceNotFoundException The requested resource does not exist, or the caller is not permitted to know that it exists. A resource that was deleted, or that is still being created, can also be reported this way.
- InternalServerException The request failed because of an unexpected error in the service. Whether the request took effect is undefined, so for a create or update, read the resource back before retrying. Retryable: the same request may succeed later.
- AccessDeniedException The caller is not authorized to perform the request, or a resource the request
depends on refused access.
reasondistinguishes a denial by this service from a denial reported by a dependency the caller configured, such as a customer-owned secret, KMS key, or external identity provider, which usually points at a permission or configuration fix outside this API. - ValidationException The request is not valid. The request was rejected before any change was made, so
it is safe to correct the input and retry. Use
reasonto branch in code andmessagefor the human-readable detail of which field or combination of fields was at fault. - 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.
- CredentialBrokerControlException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- ThrottlingException The request was denied because the caller exceeded a request rate limit. Nothing
was changed. Retry with exponential backoff, honoring
- See Also:
-
listCredentialProvidersPaginator
default ListCredentialProvidersPublisher listCredentialProvidersPaginator(ListCredentialProvidersRequest listCredentialProvidersRequest) This is a variant of
listCredentialProviders(software.amazon.awssdk.services.credentialbrokercontrol.model.ListCredentialProvidersRequest)operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe method will result in a newSubscriptioni.e., a new contract to stream data from the starting request.The following are few ways to use the response class:
1) Using the subscribe helper method
2) Using a custom subscribersoftware.amazon.awssdk.services.credentialbrokercontrol.paginators.ListCredentialProvidersPublisher publisher = client.listCredentialProvidersPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.software.amazon.awssdk.services.credentialbrokercontrol.paginators.ListCredentialProvidersPublisher publisher = client.listCredentialProvidersPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.credentialbrokercontrol.model.ListCredentialProvidersResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.credentialbrokercontrol.model.ListCredentialProvidersResponse response) { //... }; });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
listCredentialProviders(software.amazon.awssdk.services.credentialbrokercontrol.model.ListCredentialProvidersRequest)operation.- Parameters:
listCredentialProvidersRequest-- Returns:
- A custom publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ThrottlingException The request was denied because the caller exceeded a request rate limit. Nothing
was changed. Retry with exponential backoff, honoring
retryAfterSecondswhen it is present. - ResourceNotFoundException The requested resource does not exist, or the caller is not permitted to know that it exists. A resource that was deleted, or that is still being created, can also be reported this way.
- InternalServerException The request failed because of an unexpected error in the service. Whether the request took effect is undefined, so for a create or update, read the resource back before retrying. Retryable: the same request may succeed later.
- AccessDeniedException The caller is not authorized to perform the request, or a resource the request
depends on refused access.
reasondistinguishes a denial by this service from a denial reported by a dependency the caller configured, such as a customer-owned secret, KMS key, or external identity provider, which usually points at a permission or configuration fix outside this API. - ValidationException The request is not valid. The request was rejected before any change was made, so
it is safe to correct the input and retry. Use
reasonto branch in code andmessagefor the human-readable detail of which field or combination of fields was at fault. - 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.
- CredentialBrokerControlException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- ThrottlingException The request was denied because the caller exceeded a request rate limit. Nothing
was changed. Retry with exponential backoff, honoring
- See Also:
-
listCredentialProvidersPaginator
default ListCredentialProvidersPublisher listCredentialProvidersPaginator(Consumer<ListCredentialProvidersRequest.Builder> listCredentialProvidersRequest) This is a variant of
listCredentialProviders(software.amazon.awssdk.services.credentialbrokercontrol.model.ListCredentialProvidersRequest)operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe method will result in a newSubscriptioni.e., a new contract to stream data from the starting request.The following are few ways to use the response class:
1) Using the subscribe helper method
2) Using a custom subscribersoftware.amazon.awssdk.services.credentialbrokercontrol.paginators.ListCredentialProvidersPublisher publisher = client.listCredentialProvidersPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.software.amazon.awssdk.services.credentialbrokercontrol.paginators.ListCredentialProvidersPublisher publisher = client.listCredentialProvidersPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.credentialbrokercontrol.model.ListCredentialProvidersResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.credentialbrokercontrol.model.ListCredentialProvidersResponse response) { //... }; });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
listCredentialProviders(software.amazon.awssdk.services.credentialbrokercontrol.model.ListCredentialProvidersRequest)operation.
This is a convenience which creates an instance of the
ListCredentialProvidersRequest.Builderavoiding the need to create one manually viaListCredentialProvidersRequest.builder()- Parameters:
listCredentialProvidersRequest- AConsumerthat will call methods onListCredentialProvidersRequest.Builderto create a request.- Returns:
- A custom publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ThrottlingException The request was denied because the caller exceeded a request rate limit. Nothing
was changed. Retry with exponential backoff, honoring
retryAfterSecondswhen it is present. - ResourceNotFoundException The requested resource does not exist, or the caller is not permitted to know that it exists. A resource that was deleted, or that is still being created, can also be reported this way.
- InternalServerException The request failed because of an unexpected error in the service. Whether the request took effect is undefined, so for a create or update, read the resource back before retrying. Retryable: the same request may succeed later.
- AccessDeniedException The caller is not authorized to perform the request, or a resource the request
depends on refused access.
reasondistinguishes a denial by this service from a denial reported by a dependency the caller configured, such as a customer-owned secret, KMS key, or external identity provider, which usually points at a permission or configuration fix outside this API. - ValidationException The request is not valid. The request was rejected before any change was made, so
it is safe to correct the input and retry. Use
reasonto branch in code andmessagefor the human-readable detail of which field or combination of fields was at fault. - 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.
- CredentialBrokerControlException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- ThrottlingException The request was denied because the caller exceeded a request rate limit. Nothing
was changed. Retry with exponential backoff, honoring
- See Also:
-
listTagsForResource
default CompletableFuture<ListTagsForResourceResponse> listTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest) Lists the tags attached to a credential provider pool or a credential provider. Returns an empty map when the resource has no tags.
- Parameters:
listTagsForResourceRequest-- Returns:
- A Java Future containing the result of the ListTagsForResource operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ThrottlingException The request was denied because the caller exceeded a request rate limit. Nothing
was changed. Retry with exponential backoff, honoring
retryAfterSecondswhen it is present. - ResourceNotFoundException The requested resource does not exist, or the caller is not permitted to know that it exists. A resource that was deleted, or that is still being created, can also be reported this way.
- InternalServerException The request failed because of an unexpected error in the service. Whether the request took effect is undefined, so for a create or update, read the resource back before retrying. Retryable: the same request may succeed later.
- AccessDeniedException The caller is not authorized to perform the request, or a resource the request
depends on refused access.
reasondistinguishes a denial by this service from a denial reported by a dependency the caller configured, such as a customer-owned secret, KMS key, or external identity provider, which usually points at a permission or configuration fix outside this API. - ValidationException The request is not valid. The request was rejected before any change was made, so
it is safe to correct the input and retry. Use
reasonto branch in code andmessagefor the human-readable detail of which field or combination of fields was at fault. - 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.
- CredentialBrokerControlException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- ThrottlingException The request was denied because the caller exceeded a request rate limit. Nothing
was changed. Retry with exponential backoff, honoring
- See Also:
-
listTagsForResource
default CompletableFuture<ListTagsForResourceResponse> listTagsForResource(Consumer<ListTagsForResourceRequest.Builder> listTagsForResourceRequest) Lists the tags attached to a credential provider pool or a credential provider. Returns an empty map when the resource has no tags.
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:
- A Java Future containing the result of the ListTagsForResource operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ThrottlingException The request was denied because the caller exceeded a request rate limit. Nothing
was changed. Retry with exponential backoff, honoring
retryAfterSecondswhen it is present. - ResourceNotFoundException The requested resource does not exist, or the caller is not permitted to know that it exists. A resource that was deleted, or that is still being created, can also be reported this way.
- InternalServerException The request failed because of an unexpected error in the service. Whether the request took effect is undefined, so for a create or update, read the resource back before retrying. Retryable: the same request may succeed later.
- AccessDeniedException The caller is not authorized to perform the request, or a resource the request
depends on refused access.
reasondistinguishes a denial by this service from a denial reported by a dependency the caller configured, such as a customer-owned secret, KMS key, or external identity provider, which usually points at a permission or configuration fix outside this API. - ValidationException The request is not valid. The request was rejected before any change was made, so
it is safe to correct the input and retry. Use
reasonto branch in code andmessagefor the human-readable detail of which field or combination of fields was at fault. - 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.
- CredentialBrokerControlException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- ThrottlingException The request was denied because the caller exceeded a request rate limit. Nothing
was changed. Retry with exponential backoff, honoring
- See Also:
-
tagResource
Adds or replaces tags on a credential provider pool or a credential provider. A key that is already present on the resource has its value overwritten; keys that are not named are left alone. Takes effect immediately.
The operation is idempotent.
- Parameters:
tagResourceRequest-- Returns:
- A Java Future containing the result of the TagResource operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ThrottlingException The request was denied because the caller exceeded a request rate limit. Nothing
was changed. Retry with exponential backoff, honoring
retryAfterSecondswhen it is present. - ResourceNotFoundException The requested resource does not exist, or the caller is not permitted to know that it exists. A resource that was deleted, or that is still being created, can also be reported this way.
- InternalServerException The request failed because of an unexpected error in the service. Whether the request took effect is undefined, so for a create or update, read the resource back before retrying. Retryable: the same request may succeed later.
- AccessDeniedException The caller is not authorized to perform the request, or a resource the request
depends on refused access.
reasondistinguishes a denial by this service from a denial reported by a dependency the caller configured, such as a customer-owned secret, KMS key, or external identity provider, which usually points at a permission or configuration fix outside this API. - ValidationException The request is not valid. The request was rejected before any change was made, so
it is safe to correct the input and retry. Use
reasonto branch in code andmessagefor the human-readable detail of which field or combination of fields was at fault. - 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.
- CredentialBrokerControlException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- ThrottlingException The request was denied because the caller exceeded a request rate limit. Nothing
was changed. Retry with exponential backoff, honoring
- See Also:
-
tagResource
default CompletableFuture<TagResourceResponse> tagResource(Consumer<TagResourceRequest.Builder> tagResourceRequest) Adds or replaces tags on a credential provider pool or a credential provider. A key that is already present on the resource has its value overwritten; keys that are not named are left alone. Takes effect immediately.
The operation is idempotent.
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:
- A Java Future containing the result of the TagResource operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ThrottlingException The request was denied because the caller exceeded a request rate limit. Nothing
was changed. Retry with exponential backoff, honoring
retryAfterSecondswhen it is present. - ResourceNotFoundException The requested resource does not exist, or the caller is not permitted to know that it exists. A resource that was deleted, or that is still being created, can also be reported this way.
- InternalServerException The request failed because of an unexpected error in the service. Whether the request took effect is undefined, so for a create or update, read the resource back before retrying. Retryable: the same request may succeed later.
- AccessDeniedException The caller is not authorized to perform the request, or a resource the request
depends on refused access.
reasondistinguishes a denial by this service from a denial reported by a dependency the caller configured, such as a customer-owned secret, KMS key, or external identity provider, which usually points at a permission or configuration fix outside this API. - ValidationException The request is not valid. The request was rejected before any change was made, so
it is safe to correct the input and retry. Use
reasonto branch in code andmessagefor the human-readable detail of which field or combination of fields was at fault. - 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.
- CredentialBrokerControlException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- ThrottlingException The request was denied because the caller exceeded a request rate limit. Nothing
was changed. Retry with exponential backoff, honoring
- See Also:
-
untagResource
default CompletableFuture<UntagResourceResponse> untagResource(UntagResourceRequest untagResourceRequest) Removes tags from a credential provider pool or a credential provider. Keys that are not present on the resource are ignored, so removing the same keys twice succeeds. Takes effect immediately.
The operation is idempotent.
- Parameters:
untagResourceRequest-- Returns:
- A Java Future containing the result of the UntagResource operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ThrottlingException The request was denied because the caller exceeded a request rate limit. Nothing
was changed. Retry with exponential backoff, honoring
retryAfterSecondswhen it is present. - ResourceNotFoundException The requested resource does not exist, or the caller is not permitted to know that it exists. A resource that was deleted, or that is still being created, can also be reported this way.
- InternalServerException The request failed because of an unexpected error in the service. Whether the request took effect is undefined, so for a create or update, read the resource back before retrying. Retryable: the same request may succeed later.
- AccessDeniedException The caller is not authorized to perform the request, or a resource the request
depends on refused access.
reasondistinguishes a denial by this service from a denial reported by a dependency the caller configured, such as a customer-owned secret, KMS key, or external identity provider, which usually points at a permission or configuration fix outside this API. - ValidationException The request is not valid. The request was rejected before any change was made, so
it is safe to correct the input and retry. Use
reasonto branch in code andmessagefor the human-readable detail of which field or combination of fields was at fault. - 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.
- CredentialBrokerControlException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- ThrottlingException The request was denied because the caller exceeded a request rate limit. Nothing
was changed. Retry with exponential backoff, honoring
- See Also:
-
untagResource
default CompletableFuture<UntagResourceResponse> untagResource(Consumer<UntagResourceRequest.Builder> untagResourceRequest) Removes tags from a credential provider pool or a credential provider. Keys that are not present on the resource are ignored, so removing the same keys twice succeeds. Takes effect immediately.
The operation is idempotent.
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:
- A Java Future containing the result of the UntagResource operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ThrottlingException The request was denied because the caller exceeded a request rate limit. Nothing
was changed. Retry with exponential backoff, honoring
retryAfterSecondswhen it is present. - ResourceNotFoundException The requested resource does not exist, or the caller is not permitted to know that it exists. A resource that was deleted, or that is still being created, can also be reported this way.
- InternalServerException The request failed because of an unexpected error in the service. Whether the request took effect is undefined, so for a create or update, read the resource back before retrying. Retryable: the same request may succeed later.
- AccessDeniedException The caller is not authorized to perform the request, or a resource the request
depends on refused access.
reasondistinguishes a denial by this service from a denial reported by a dependency the caller configured, such as a customer-owned secret, KMS key, or external identity provider, which usually points at a permission or configuration fix outside this API. - ValidationException The request is not valid. The request was rejected before any change was made, so
it is safe to correct the input and retry. Use
reasonto branch in code andmessagefor the human-readable detail of which field or combination of fields was at fault. - 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.
- CredentialBrokerControlException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- ThrottlingException The request was denied because the caller exceeded a request rate limit. Nothing
was changed. Retry with exponential backoff, honoring
- See Also:
-
updateCredentialProvider
default CompletableFuture<UpdateCredentialProviderResponse> updateCredentialProvider(UpdateCredentialProviderRequest updateCredentialProviderRequest) Updates a CredentialProvider asynchronously. Supply only the fields to change; omitted fields are left unchanged (partial update). The configuration member you set must match the provider's existing type — an update cannot change the provider type.
The operation is idempotent. It returns the provider with a transitional
status; pollGetCredentialProviderto observe the transition.Required permissions: in addition to permission for this operation, the service performs these actions on your behalf, each only when the request calls for it:
secretsmanager:GetSecretValueandsecretsmanager:DescribeSecretwhen the provider references a secret you own;secretsmanager:CreateSecretandsecretsmanager:PutSecretValuewhen you supply the credential value instead, so that the service stores it in a secret it creates or updates;secretsmanager:DeleteSecretwhen an update leaves a service-created secret no longer needed; andkms:CreateGrant,kms:DescribeKey,kms:GenerateDataKeyWithoutPlaintext,kms:ReEncryptFrom,kms:ReEncryptTo,kms:Encrypt, andkms:Decryptwhen a customer managed KMS key is in use.- Parameters:
updateCredentialProviderRequest-- Returns:
- A Java Future containing the result of the UpdateCredentialProvider operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ThrottlingException The request was denied because the caller exceeded a request rate limit. Nothing
was changed. Retry with exponential backoff, honoring
retryAfterSecondswhen it is present. - ResourceNotFoundException The requested resource does not exist, or the caller is not permitted to know that it exists. A resource that was deleted, or that is still being created, can also be reported this way.
- InternalServerException The request failed because of an unexpected error in the service. Whether the request took effect is undefined, so for a create or update, read the resource back before retrying. Retryable: the same request may succeed later.
- AccessDeniedException The caller is not authorized to perform the request, or a resource the request
depends on refused access.
reasondistinguishes a denial by this service from a denial reported by a dependency the caller configured, such as a customer-owned secret, KMS key, or external identity provider, which usually points at a permission or configuration fix outside this API. - ConflictException The request conflicts with the current state of the resource. Nothing was changed.
Depending on
reason, the request may succeed if retried once the resource reaches a settled state, or it may require different input (for example a name that is not already taken). - ValidationException The request is not valid. The request was rejected before any change was made, so
it is safe to correct the input and retry. Use
reasonto branch in code andmessagefor the human-readable detail of which field or combination of fields was at fault. - 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.
- CredentialBrokerControlException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- ThrottlingException The request was denied because the caller exceeded a request rate limit. Nothing
was changed. Retry with exponential backoff, honoring
- See Also:
-
updateCredentialProvider
default CompletableFuture<UpdateCredentialProviderResponse> updateCredentialProvider(Consumer<UpdateCredentialProviderRequest.Builder> updateCredentialProviderRequest) Updates a CredentialProvider asynchronously. Supply only the fields to change; omitted fields are left unchanged (partial update). The configuration member you set must match the provider's existing type — an update cannot change the provider type.
The operation is idempotent. It returns the provider with a transitional
status; pollGetCredentialProviderto observe the transition.Required permissions: in addition to permission for this operation, the service performs these actions on your behalf, each only when the request calls for it:
secretsmanager:GetSecretValueandsecretsmanager:DescribeSecretwhen the provider references a secret you own;secretsmanager:CreateSecretandsecretsmanager:PutSecretValuewhen you supply the credential value instead, so that the service stores it in a secret it creates or updates;secretsmanager:DeleteSecretwhen an update leaves a service-created secret no longer needed; andkms:CreateGrant,kms:DescribeKey,kms:GenerateDataKeyWithoutPlaintext,kms:ReEncryptFrom,kms:ReEncryptTo,kms:Encrypt, andkms:Decryptwhen a customer managed KMS key is in use.
This is a convenience which creates an instance of the
UpdateCredentialProviderRequest.Builderavoiding the need to create one manually viaUpdateCredentialProviderRequest.builder()- Parameters:
updateCredentialProviderRequest- AConsumerthat will call methods onUpdateCredentialProviderRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the UpdateCredentialProvider operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ThrottlingException The request was denied because the caller exceeded a request rate limit. Nothing
was changed. Retry with exponential backoff, honoring
retryAfterSecondswhen it is present. - ResourceNotFoundException The requested resource does not exist, or the caller is not permitted to know that it exists. A resource that was deleted, or that is still being created, can also be reported this way.
- InternalServerException The request failed because of an unexpected error in the service. Whether the request took effect is undefined, so for a create or update, read the resource back before retrying. Retryable: the same request may succeed later.
- AccessDeniedException The caller is not authorized to perform the request, or a resource the request
depends on refused access.
reasondistinguishes a denial by this service from a denial reported by a dependency the caller configured, such as a customer-owned secret, KMS key, or external identity provider, which usually points at a permission or configuration fix outside this API. - ConflictException The request conflicts with the current state of the resource. Nothing was changed.
Depending on
reason, the request may succeed if retried once the resource reaches a settled state, or it may require different input (for example a name that is not already taken). - ValidationException The request is not valid. The request was rejected before any change was made, so
it is safe to correct the input and retry. Use
reasonto branch in code andmessagefor the human-readable detail of which field or combination of fields was at fault. - 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.
- CredentialBrokerControlException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- ThrottlingException The request was denied because the caller exceeded a request rate limit. Nothing
was changed. Retry with exponential backoff, honoring
- See Also:
-
updateCredentialProviderPool
default CompletableFuture<UpdateCredentialProviderPoolResponse> updateCredentialProviderPool(UpdateCredentialProviderPoolRequest updateCredentialProviderPoolRequest) Updates a CredentialProviderPool. Partial update, only provided fields are modified; omitted fields are left unchanged.
The update is applied asynchronously and the operation is idempotent. The operation returns the pool with a transitional
status; pollGetCredentialProviderPoolto observe the transition.Required permissions: in addition to permission for this operation, the service performs these actions on your behalf, each only when the request calls for it:
sso:CreateApplication,sso:PutApplicationAuthenticationMethod,sso:PutApplicationGrant, andsso:PutApplicationAssignmentConfigurationwhen the request associates an IAM Identity Center instance;sso:DeleteApplicationwhen it disassociates one; andkms:CreateGrant,kms:DescribeKey,kms:GenerateDataKeyWithoutPlaintext,kms:ReEncryptFrom,kms:ReEncryptTo,kms:Encrypt, andkms:Decryptwhen it sets or changes a customer managed KMS key, which re-encrypts the pool's stored credentials under that key.- Parameters:
updateCredentialProviderPoolRequest-- Returns:
- A Java Future containing the result of the UpdateCredentialProviderPool operation returned by the
service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ServiceQuotaExceededException The request would exceed a service quota, so it was rejected and
nothing was created or changed. Delete resources that are no longer needed, or request a quota increase
in Service Quotas using
serviceCodeandquotaCode, then retry. - ThrottlingException The request was denied because the caller exceeded a request rate limit. Nothing
was changed. Retry with exponential backoff, honoring
retryAfterSecondswhen it is present. - ResourceNotFoundException The requested resource does not exist, or the caller is not permitted to know that it exists. A resource that was deleted, or that is still being created, can also be reported this way.
- InternalServerException The request failed because of an unexpected error in the service. Whether the request took effect is undefined, so for a create or update, read the resource back before retrying. Retryable: the same request may succeed later.
- AccessDeniedException The caller is not authorized to perform the request, or a resource the request
depends on refused access.
reasondistinguishes a denial by this service from a denial reported by a dependency the caller configured, such as a customer-owned secret, KMS key, or external identity provider, which usually points at a permission or configuration fix outside this API. - ConflictException The request conflicts with the current state of the resource. Nothing was changed.
Depending on
reason, the request may succeed if retried once the resource reaches a settled state, or it may require different input (for example a name that is not already taken). - ValidationException The request is not valid. The request was rejected before any change was made, so
it is safe to correct the input and retry. Use
reasonto branch in code andmessagefor the human-readable detail of which field or combination of fields was at fault. - 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.
- CredentialBrokerControlException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- ServiceQuotaExceededException The request would exceed a service quota, so it was rejected and
nothing was created or changed. Delete resources that are no longer needed, or request a quota increase
in Service Quotas using
- See Also:
-
updateCredentialProviderPool
default CompletableFuture<UpdateCredentialProviderPoolResponse> updateCredentialProviderPool(Consumer<UpdateCredentialProviderPoolRequest.Builder> updateCredentialProviderPoolRequest) Updates a CredentialProviderPool. Partial update, only provided fields are modified; omitted fields are left unchanged.
The update is applied asynchronously and the operation is idempotent. The operation returns the pool with a transitional
status; pollGetCredentialProviderPoolto observe the transition.Required permissions: in addition to permission for this operation, the service performs these actions on your behalf, each only when the request calls for it:
sso:CreateApplication,sso:PutApplicationAuthenticationMethod,sso:PutApplicationGrant, andsso:PutApplicationAssignmentConfigurationwhen the request associates an IAM Identity Center instance;sso:DeleteApplicationwhen it disassociates one; andkms:CreateGrant,kms:DescribeKey,kms:GenerateDataKeyWithoutPlaintext,kms:ReEncryptFrom,kms:ReEncryptTo,kms:Encrypt, andkms:Decryptwhen it sets or changes a customer managed KMS key, which re-encrypts the pool's stored credentials under that key.
This is a convenience which creates an instance of the
UpdateCredentialProviderPoolRequest.Builderavoiding the need to create one manually viaUpdateCredentialProviderPoolRequest.builder()- Parameters:
updateCredentialProviderPoolRequest- AConsumerthat will call methods onUpdateCredentialProviderPoolRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the UpdateCredentialProviderPool operation returned by the
service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ServiceQuotaExceededException The request would exceed a service quota, so it was rejected and
nothing was created or changed. Delete resources that are no longer needed, or request a quota increase
in Service Quotas using
serviceCodeandquotaCode, then retry. - ThrottlingException The request was denied because the caller exceeded a request rate limit. Nothing
was changed. Retry with exponential backoff, honoring
retryAfterSecondswhen it is present. - ResourceNotFoundException The requested resource does not exist, or the caller is not permitted to know that it exists. A resource that was deleted, or that is still being created, can also be reported this way.
- InternalServerException The request failed because of an unexpected error in the service. Whether the request took effect is undefined, so for a create or update, read the resource back before retrying. Retryable: the same request may succeed later.
- AccessDeniedException The caller is not authorized to perform the request, or a resource the request
depends on refused access.
reasondistinguishes a denial by this service from a denial reported by a dependency the caller configured, such as a customer-owned secret, KMS key, or external identity provider, which usually points at a permission or configuration fix outside this API. - ConflictException The request conflicts with the current state of the resource. Nothing was changed.
Depending on
reason, the request may succeed if retried once the resource reaches a settled state, or it may require different input (for example a name that is not already taken). - ValidationException The request is not valid. The request was rejected before any change was made, so
it is safe to correct the input and retry. Use
reasonto branch in code andmessagefor the human-readable detail of which field or combination of fields was at fault. - 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.
- CredentialBrokerControlException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- ServiceQuotaExceededException The request would exceed a service quota, so it was rejected and
nothing was created or changed. Delete resources that are no longer needed, or request a quota increase
in Service Quotas using
- See Also:
-
waiter
Create an instance ofCredentialBrokerControlAsyncWaiterusing 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
CredentialBrokerControlAsyncWaiter
-
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
-
create
Create aCredentialBrokerControlAsyncClientwith the region loaded from theDefaultAwsRegionProviderChainand credentials loaded from theDefaultCredentialsProvider. -
builder
Create a builder that can be used to configure and create aCredentialBrokerControlAsyncClient.
-