Interface CredentialBrokerControlClient
- All Superinterfaces:
AutoCloseable,AwsClient,SdkAutoCloseable,SdkClient
builder() method.
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 aCredentialBrokerControlClient.create()Create aCredentialBrokerControlClientwith the region loaded from theDefaultAwsRegionProviderChainand credentials loaded from theDefaultCredentialsProvider.default CreateCredentialProviderResponsecreateCredentialProvider(Consumer<CreateCredentialProviderRequest.Builder> createCredentialProviderRequest) Creates a CredentialProvider under a parent CredentialProviderPool.default CreateCredentialProviderResponsecreateCredentialProvider(CreateCredentialProviderRequest createCredentialProviderRequest) Creates a CredentialProvider under a parent CredentialProviderPool.createCredentialProviderPool(Consumer<CreateCredentialProviderPoolRequest.Builder> createCredentialProviderPoolRequest) Creates a CredentialProviderPool.createCredentialProviderPool(CreateCredentialProviderPoolRequest createCredentialProviderPoolRequest) Creates a CredentialProviderPool.default DeleteCredentialProviderResponsedeleteCredentialProvider(Consumer<DeleteCredentialProviderRequest.Builder> deleteCredentialProviderRequest) Accepts an asynchronous request to delete a CredentialProvider of any provider type.default DeleteCredentialProviderResponsedeleteCredentialProvider(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.default GetCredentialProviderResponsegetCredentialProvider(Consumer<GetCredentialProviderRequest.Builder> getCredentialProviderRequest) Retrieves a CredentialProvider of any provider type.default GetCredentialProviderResponsegetCredentialProvider(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.default ListCredentialProvidersResponselistCredentialProviders(Consumer<ListCredentialProvidersRequest.Builder> listCredentialProvidersRequest) Lists the CredentialProviders in a pool, optionally filtered by name substring and provider type.default ListCredentialProvidersResponselistCredentialProviders(ListCredentialProvidersRequest listCredentialProvidersRequest) Lists the CredentialProviders in a pool, optionally filtered by name substring and provider type.default ListCredentialProvidersIterablelistCredentialProvidersPaginator(Consumer<ListCredentialProvidersRequest.Builder> listCredentialProvidersRequest) This is a variant oflistCredentialProviders(software.amazon.awssdk.services.credentialbrokercontrol.model.ListCredentialProvidersRequest)operation.default ListCredentialProvidersIterablelistCredentialProvidersPaginator(ListCredentialProvidersRequest listCredentialProvidersRequest) This is a variant oflistCredentialProviders(software.amazon.awssdk.services.credentialbrokercontrol.model.ListCredentialProvidersRequest)operation.default ListTagsForResourceResponselistTagsForResource(Consumer<ListTagsForResourceRequest.Builder> listTagsForResourceRequest) Lists the tags attached to a credential provider pool or a credential provider.default ListTagsForResourceResponselistTagsForResource(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., ClientOverrideConfigurationstatic ServiceMetadatadefault TagResourceResponsetagResource(Consumer<TagResourceRequest.Builder> tagResourceRequest) Adds or replaces tags on a credential provider pool or a credential provider.default TagResourceResponsetagResource(TagResourceRequest tagResourceRequest) Adds or replaces tags on a credential provider pool or a credential provider.default UntagResourceResponseuntagResource(Consumer<UntagResourceRequest.Builder> untagResourceRequest) Removes tags from a credential provider pool or a credential provider.default UntagResourceResponseuntagResource(UntagResourceRequest untagResourceRequest) Removes tags from a credential provider pool or a credential provider.default UpdateCredentialProviderResponseupdateCredentialProvider(Consumer<UpdateCredentialProviderRequest.Builder> updateCredentialProviderRequest) Updates a CredentialProvider asynchronously.default UpdateCredentialProviderResponseupdateCredentialProvider(UpdateCredentialProviderRequest updateCredentialProviderRequest) Updates a CredentialProvider asynchronously.updateCredentialProviderPool(Consumer<UpdateCredentialProviderPoolRequest.Builder> updateCredentialProviderPoolRequest) Updates a CredentialProviderPool.updateCredentialProviderPool(UpdateCredentialProviderPoolRequest updateCredentialProviderPoolRequest) Updates a CredentialProviderPool.default CredentialBrokerControlWaiterwaiter()Create an instance ofCredentialBrokerControlWaiterusing 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 CreateCredentialProviderResponse createCredentialProvider(CreateCredentialProviderRequest createCredentialProviderRequest) throws ServiceQuotaExceededException, ThrottlingException, ResourceNotFoundException, InternalServerException, AccessDeniedException, ConflictException, ValidationException, AwsServiceException, SdkClientException, CredentialBrokerControlException 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:
- Result of the CreateCredentialProvider operation returned by the service.
- See Also:
-
createCredentialProvider
default CreateCredentialProviderResponse createCredentialProvider(Consumer<CreateCredentialProviderRequest.Builder> createCredentialProviderRequest) throws ServiceQuotaExceededException, ThrottlingException, ResourceNotFoundException, InternalServerException, AccessDeniedException, ConflictException, ValidationException, AwsServiceException, SdkClientException, CredentialBrokerControlException 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:
- Result of the CreateCredentialProvider operation returned by the service.
- See Also:
-
createCredentialProviderPool
default CreateCredentialProviderPoolResponse createCredentialProviderPool(CreateCredentialProviderPoolRequest createCredentialProviderPoolRequest) throws ServiceQuotaExceededException, ThrottlingException, InternalServerException, AccessDeniedException, ConflictException, ValidationException, AwsServiceException, SdkClientException, CredentialBrokerControlException 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:
- Result of the CreateCredentialProviderPool operation returned by the service.
- See Also:
-
createCredentialProviderPool
default CreateCredentialProviderPoolResponse createCredentialProviderPool(Consumer<CreateCredentialProviderPoolRequest.Builder> createCredentialProviderPoolRequest) throws ServiceQuotaExceededException, ThrottlingException, InternalServerException, AccessDeniedException, ConflictException, ValidationException, AwsServiceException, SdkClientException, CredentialBrokerControlException 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:
- Result of the CreateCredentialProviderPool operation returned by the service.
- See Also:
-
deleteCredentialProvider
default DeleteCredentialProviderResponse deleteCredentialProvider(DeleteCredentialProviderRequest deleteCredentialProviderRequest) throws ThrottlingException, ResourceNotFoundException, InternalServerException, AccessDeniedException, ConflictException, ValidationException, AwsServiceException, SdkClientException, CredentialBrokerControlException 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:
- Result of the DeleteCredentialProvider operation returned by the service.
- See Also:
-
deleteCredentialProvider
default DeleteCredentialProviderResponse deleteCredentialProvider(Consumer<DeleteCredentialProviderRequest.Builder> deleteCredentialProviderRequest) throws ThrottlingException, ResourceNotFoundException, InternalServerException, AccessDeniedException, ConflictException, ValidationException, AwsServiceException, SdkClientException, CredentialBrokerControlException 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:
- Result of the DeleteCredentialProvider operation returned by the service.
- See Also:
-
deleteCredentialProviderPool
default DeleteCredentialProviderPoolResponse deleteCredentialProviderPool(DeleteCredentialProviderPoolRequest deleteCredentialProviderPoolRequest) throws ThrottlingException, ResourceNotFoundException, InternalServerException, AccessDeniedException, ConflictException, ValidationException, AwsServiceException, SdkClientException, CredentialBrokerControlException 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:
- Result of the DeleteCredentialProviderPool operation returned by the service.
- See Also:
-
deleteCredentialProviderPool
default DeleteCredentialProviderPoolResponse deleteCredentialProviderPool(Consumer<DeleteCredentialProviderPoolRequest.Builder> deleteCredentialProviderPoolRequest) throws ThrottlingException, ResourceNotFoundException, InternalServerException, AccessDeniedException, ConflictException, ValidationException, AwsServiceException, SdkClientException, CredentialBrokerControlException 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:
- Result of the DeleteCredentialProviderPool operation returned by the service.
- See Also:
-
getCredentialProvider
default GetCredentialProviderResponse getCredentialProvider(GetCredentialProviderRequest getCredentialProviderRequest) throws ThrottlingException, ResourceNotFoundException, InternalServerException, AccessDeniedException, ValidationException, AwsServiceException, SdkClientException, CredentialBrokerControlException 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:
- Result of the GetCredentialProvider operation returned by the service.
- See Also:
-
getCredentialProvider
default GetCredentialProviderResponse getCredentialProvider(Consumer<GetCredentialProviderRequest.Builder> getCredentialProviderRequest) throws ThrottlingException, ResourceNotFoundException, InternalServerException, AccessDeniedException, ValidationException, AwsServiceException, SdkClientException, CredentialBrokerControlException 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:
- Result of the GetCredentialProvider operation returned by the service.
- See Also:
-
getCredentialProviderPool
default GetCredentialProviderPoolResponse getCredentialProviderPool(GetCredentialProviderPoolRequest getCredentialProviderPoolRequest) throws ThrottlingException, ResourceNotFoundException, InternalServerException, AccessDeniedException, ValidationException, AwsServiceException, SdkClientException, CredentialBrokerControlException 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:
- Result of the GetCredentialProviderPool operation returned by the service.
- See Also:
-
getCredentialProviderPool
default GetCredentialProviderPoolResponse getCredentialProviderPool(Consumer<GetCredentialProviderPoolRequest.Builder> getCredentialProviderPoolRequest) throws ThrottlingException, ResourceNotFoundException, InternalServerException, AccessDeniedException, ValidationException, AwsServiceException, SdkClientException, CredentialBrokerControlException 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:
- Result of the GetCredentialProviderPool operation returned by the service.
- See Also:
-
listCredentialProviderPools
default ListCredentialProviderPoolsResponse listCredentialProviderPools(ListCredentialProviderPoolsRequest listCredentialProviderPoolsRequest) throws ThrottlingException, InternalServerException, AccessDeniedException, ValidationException, AwsServiceException, SdkClientException, CredentialBrokerControlException 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:
- Result of the ListCredentialProviderPools operation returned by the service.
- See Also:
-
listCredentialProviderPools
default ListCredentialProviderPoolsResponse listCredentialProviderPools(Consumer<ListCredentialProviderPoolsRequest.Builder> listCredentialProviderPoolsRequest) throws ThrottlingException, InternalServerException, AccessDeniedException, ValidationException, AwsServiceException, SdkClientException, CredentialBrokerControlException 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:
- Result of the ListCredentialProviderPools operation returned by the service.
- See Also:
-
listCredentialProviderPoolsPaginator
default ListCredentialProviderPoolsIterable listCredentialProviderPoolsPaginator(ListCredentialProviderPoolsRequest listCredentialProviderPoolsRequest) throws ThrottlingException, InternalServerException, AccessDeniedException, ValidationException, AwsServiceException, SdkClientException, CredentialBrokerControlException This is a variant of
listCredentialProviderPools(software.amazon.awssdk.services.credentialbrokercontrol.model.ListCredentialProviderPoolsRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.credentialbrokercontrol.paginators.ListCredentialProviderPoolsIterable responses = client.listCredentialProviderPoolsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.credentialbrokercontrol.paginators.ListCredentialProviderPoolsIterable responses = client .listCredentialProviderPoolsPaginator(request); for (software.amazon.awssdk.services.credentialbrokercontrol.model.ListCredentialProviderPoolsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.credentialbrokercontrol.paginators.ListCredentialProviderPoolsIterable responses = client.listCredentialProviderPoolsPaginator(request); responses.iterator().forEachRemaining(....);Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listCredentialProviderPools(software.amazon.awssdk.services.credentialbrokercontrol.model.ListCredentialProviderPoolsRequest)operation.- Parameters:
listCredentialProviderPoolsRequest-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listCredentialProviderPoolsPaginator
default ListCredentialProviderPoolsIterable listCredentialProviderPoolsPaginator(Consumer<ListCredentialProviderPoolsRequest.Builder> listCredentialProviderPoolsRequest) throws ThrottlingException, InternalServerException, AccessDeniedException, ValidationException, AwsServiceException, SdkClientException, CredentialBrokerControlException This is a variant of
listCredentialProviderPools(software.amazon.awssdk.services.credentialbrokercontrol.model.ListCredentialProviderPoolsRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.credentialbrokercontrol.paginators.ListCredentialProviderPoolsIterable responses = client.listCredentialProviderPoolsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.credentialbrokercontrol.paginators.ListCredentialProviderPoolsIterable responses = client .listCredentialProviderPoolsPaginator(request); for (software.amazon.awssdk.services.credentialbrokercontrol.model.ListCredentialProviderPoolsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.credentialbrokercontrol.paginators.ListCredentialProviderPoolsIterable responses = client.listCredentialProviderPoolsPaginator(request); responses.iterator().forEachRemaining(....);Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
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 iterable that can be used to iterate through all the response pages.
- See Also:
-
listCredentialProviders
default ListCredentialProvidersResponse listCredentialProviders(ListCredentialProvidersRequest listCredentialProvidersRequest) throws ThrottlingException, ResourceNotFoundException, InternalServerException, AccessDeniedException, ValidationException, AwsServiceException, SdkClientException, CredentialBrokerControlException 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:
- Result of the ListCredentialProviders operation returned by the service.
- See Also:
-
listCredentialProviders
default ListCredentialProvidersResponse listCredentialProviders(Consumer<ListCredentialProvidersRequest.Builder> listCredentialProvidersRequest) throws ThrottlingException, ResourceNotFoundException, InternalServerException, AccessDeniedException, ValidationException, AwsServiceException, SdkClientException, CredentialBrokerControlException 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:
- Result of the ListCredentialProviders operation returned by the service.
- See Also:
-
listCredentialProvidersPaginator
default ListCredentialProvidersIterable listCredentialProvidersPaginator(ListCredentialProvidersRequest listCredentialProvidersRequest) throws ThrottlingException, ResourceNotFoundException, InternalServerException, AccessDeniedException, ValidationException, AwsServiceException, SdkClientException, CredentialBrokerControlException This is a variant of
listCredentialProviders(software.amazon.awssdk.services.credentialbrokercontrol.model.ListCredentialProvidersRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.credentialbrokercontrol.paginators.ListCredentialProvidersIterable responses = client.listCredentialProvidersPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.credentialbrokercontrol.paginators.ListCredentialProvidersIterable responses = client .listCredentialProvidersPaginator(request); for (software.amazon.awssdk.services.credentialbrokercontrol.model.ListCredentialProvidersResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.credentialbrokercontrol.paginators.ListCredentialProvidersIterable responses = client.listCredentialProvidersPaginator(request); responses.iterator().forEachRemaining(....);Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listCredentialProviders(software.amazon.awssdk.services.credentialbrokercontrol.model.ListCredentialProvidersRequest)operation.- Parameters:
listCredentialProvidersRequest-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listCredentialProvidersPaginator
default ListCredentialProvidersIterable listCredentialProvidersPaginator(Consumer<ListCredentialProvidersRequest.Builder> listCredentialProvidersRequest) throws ThrottlingException, ResourceNotFoundException, InternalServerException, AccessDeniedException, ValidationException, AwsServiceException, SdkClientException, CredentialBrokerControlException This is a variant of
listCredentialProviders(software.amazon.awssdk.services.credentialbrokercontrol.model.ListCredentialProvidersRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.credentialbrokercontrol.paginators.ListCredentialProvidersIterable responses = client.listCredentialProvidersPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.credentialbrokercontrol.paginators.ListCredentialProvidersIterable responses = client .listCredentialProvidersPaginator(request); for (software.amazon.awssdk.services.credentialbrokercontrol.model.ListCredentialProvidersResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.credentialbrokercontrol.paginators.ListCredentialProvidersIterable responses = client.listCredentialProvidersPaginator(request); responses.iterator().forEachRemaining(....);Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
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 iterable that can be used to iterate through all the response pages.
- See Also:
-
listTagsForResource
default ListTagsForResourceResponse listTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest) throws ThrottlingException, ResourceNotFoundException, InternalServerException, AccessDeniedException, ValidationException, AwsServiceException, SdkClientException, CredentialBrokerControlException 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:
- Result of the ListTagsForResource operation returned by the service.
- See Also:
-
listTagsForResource
default ListTagsForResourceResponse listTagsForResource(Consumer<ListTagsForResourceRequest.Builder> listTagsForResourceRequest) throws ThrottlingException, ResourceNotFoundException, InternalServerException, AccessDeniedException, ValidationException, AwsServiceException, SdkClientException, CredentialBrokerControlException 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:
- Result of the ListTagsForResource operation returned by the service.
- See Also:
-
tagResource
default TagResourceResponse tagResource(TagResourceRequest tagResourceRequest) throws ThrottlingException, ResourceNotFoundException, InternalServerException, AccessDeniedException, ValidationException, AwsServiceException, SdkClientException, CredentialBrokerControlException 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:
- Result of the TagResource operation returned by the service.
- See Also:
-
tagResource
default TagResourceResponse tagResource(Consumer<TagResourceRequest.Builder> tagResourceRequest) throws ThrottlingException, ResourceNotFoundException, InternalServerException, AccessDeniedException, ValidationException, AwsServiceException, SdkClientException, CredentialBrokerControlException 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:
- Result of the TagResource operation returned by the service.
- See Also:
-
untagResource
default UntagResourceResponse untagResource(UntagResourceRequest untagResourceRequest) throws ThrottlingException, ResourceNotFoundException, InternalServerException, AccessDeniedException, ValidationException, AwsServiceException, SdkClientException, CredentialBrokerControlException 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:
- Result of the UntagResource operation returned by the service.
- See Also:
-
untagResource
default UntagResourceResponse untagResource(Consumer<UntagResourceRequest.Builder> untagResourceRequest) throws ThrottlingException, ResourceNotFoundException, InternalServerException, AccessDeniedException, ValidationException, AwsServiceException, SdkClientException, CredentialBrokerControlException 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:
- Result of the UntagResource operation returned by the service.
- See Also:
-
updateCredentialProvider
default UpdateCredentialProviderResponse updateCredentialProvider(UpdateCredentialProviderRequest updateCredentialProviderRequest) throws ThrottlingException, ResourceNotFoundException, InternalServerException, AccessDeniedException, ConflictException, ValidationException, AwsServiceException, SdkClientException, CredentialBrokerControlException 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:
- Result of the UpdateCredentialProvider operation returned by the service.
- See Also:
-
updateCredentialProvider
default UpdateCredentialProviderResponse updateCredentialProvider(Consumer<UpdateCredentialProviderRequest.Builder> updateCredentialProviderRequest) throws ThrottlingException, ResourceNotFoundException, InternalServerException, AccessDeniedException, ConflictException, ValidationException, AwsServiceException, SdkClientException, CredentialBrokerControlException 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:
- Result of the UpdateCredentialProvider operation returned by the service.
- See Also:
-
updateCredentialProviderPool
default UpdateCredentialProviderPoolResponse updateCredentialProviderPool(UpdateCredentialProviderPoolRequest updateCredentialProviderPoolRequest) throws ServiceQuotaExceededException, ThrottlingException, ResourceNotFoundException, InternalServerException, AccessDeniedException, ConflictException, ValidationException, AwsServiceException, SdkClientException, CredentialBrokerControlException 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:
- Result of the UpdateCredentialProviderPool operation returned by the service.
- See Also:
-
updateCredentialProviderPool
default UpdateCredentialProviderPoolResponse updateCredentialProviderPool(Consumer<UpdateCredentialProviderPoolRequest.Builder> updateCredentialProviderPoolRequest) throws ServiceQuotaExceededException, ThrottlingException, ResourceNotFoundException, InternalServerException, AccessDeniedException, ConflictException, ValidationException, AwsServiceException, SdkClientException, CredentialBrokerControlException 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:
- Result of the UpdateCredentialProviderPool operation returned by the service.
- See Also:
-
waiter
Create an instance ofCredentialBrokerControlWaiterusing 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
CredentialBrokerControlWaiter
-
create
Create aCredentialBrokerControlClientwith the region loaded from theDefaultAwsRegionProviderChainand credentials loaded from theDefaultCredentialsProvider. -
builder
Create a builder that can be used to configure and create aCredentialBrokerControlClient. -
serviceMetadata
-
serviceClientConfiguration
Description copied from interface:SdkClientThe SDK service client configuration exposes client settings to the user, e.g., ClientOverrideConfiguration- Specified by:
serviceClientConfigurationin interfaceAwsClient- Specified by:
serviceClientConfigurationin interfaceSdkClient- Returns:
- SdkServiceClientConfiguration
-