update_credential_provider
¶
update_credential_provider(
credential_provider_pool_identifier: CredentialProviderPoolIdentifier,
credential_provider_identifier: CredentialProviderIdentifier,
*,
config_overrides: Optional[CredentialBrokerControlClientConfig] = None,
name: Optional[ProviderName] = None,
provider_configuration_input: Optional[CredentialProviderConfigurationInput] = None,
) -> UpdateCredentialProviderResponse
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; poll GetCredentialProvider to 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:GetSecretValue and secretsmanager:DescribeSecret when the provider references a secret you own; secretsmanager:CreateSecret and secretsmanager:PutSecretValue when you supply the credential value instead, so that the service stores it in a secret it creates or updates; secretsmanager:DeleteSecret when an update leaves a service-created secret no longer needed; and kms:CreateGrant, kms:DescribeKey, kms:GenerateDataKeyWithoutPlaintext, kms:ReEncryptFrom, kms:ReEncryptTo, kms:Encrypt, and kms:Decrypt when a customer managed KMS key is in use.
Parameters:
-
credential_provider_pool_identifier(CredentialProviderPoolIdentifier) –Identifies a credential provider pool. Accepts either the pool's ARN or its service-generated ID; both refer to the same pool.
-
credential_provider_identifier(CredentialProviderIdentifier) –Identifies a credential provider. Accepts either the provider's ARN or its service-generated ID; both refer to the same provider.
-
name(Optional[ProviderName], default:None) –Rename the provider. If provided, MUST be unique within the pool; omitting leaves the name unchanged.
-
provider_configuration_input(Optional[CredentialProviderConfigurationInput], default:None) –Type-specific fields to update. Omit to change only the name; within that member, omit any field to leave it unchanged. The member must match the provider's existing type.
Raises:
-
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). -
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.
-
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.
-
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. -
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. -
UnknownServiceError–The service returned an error code this client does not model.