Removes one Collector association from this Environment, preserving its other associations. The stored Collector data-access role is cleared when no Collector associations remain. The Environment owner must have permission to disassociate. A current Collector access grant is not required, and the Collector does not need to remain active or present, so stale or revoked associations can be cleaned up.
Parameters:
-
environment_id
(EnvironmentId)
–
The unique identifier of the Environment whose associations are updated.
-
collector_arn
(CollectorArn)
–
The ARN of the Collector to disassociate from this Environment.
Raises:
-
AccessDeniedException
–
The request is not authorized. Verify that your credentials and request signature are valid and that you have permission to perform this action.
-
ConflictException
–
The request could not be completed due to a conflict with the current state of the resource.
-
InternalServerException
–
The request couldn't be processed because of an internal server issue. Try again later. If the problem persists, contact AWS Support.
-
ThrottlingException
–
The request was denied due to request throttling.
-
UnknownServiceError
–
The service returned an error code this client does not model.
Source code in docs_src/capo_continuum/_services/continuum.py
| def disassociate_collector(
self,
environment_id: "capo_continuum.types.environment_id.EnvironmentId",
collector_arn: "capo_continuum.types.collector_arn.CollectorArn",
*,
config_overrides: Optional[ContinuumClientConfig] = None,
) -> None:
"""Removes one Collector association from this Environment, preserving its other associations. The stored Collector data-access role is cleared when no Collector associations remain. The Environment owner must have permission to disassociate. A current Collector access grant is not required, and the Collector does not need to remain active or present, so stale or revoked associations can be cleaned up.
Args:
environment_id: The unique identifier of the Environment whose associations are updated.
collector_arn: The ARN of the Collector to disassociate from this Environment.
Raises:
capo_continuum.errors.access_denied_exception.AccessDeniedException: The request is not authorized. Verify that your credentials and request signature are valid and that you have permission to perform this action.
capo_continuum.errors.conflict_exception.ConflictException: The request could not be completed due to a conflict with the current state of the resource.
capo_continuum.errors.internal_server_exception.InternalServerException: The request couldn't be processed because of an internal server issue. Try again later. If the problem persists, contact AWS Support.
capo_continuum.errors.throttling_exception.ThrottlingException: The request was denied due to request throttling.
capo_continuum.errors.validation_exception.ValidationException
capo_continuum.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
def _handler(
req: "OperationRequest[capo_continuum.types.disassociate_collector_input.DisassociateCollectorInput]",
) -> OperationResponse[None]:
import capo_continuum._operations.continuum_control_plane.disassociate_collector
output, http_response = (
capo_continuum._operations.continuum_control_plane.disassociate_collector.disassociate_collector(
req.options, req.input
)
)
return OperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("DisassociateCollector")
)
input_: capo_continuum.types.disassociate_collector_input.DisassociateCollectorInput = {
"environment_id": environment_id,
"collector_arn": collector_arn,
}
response = execute_pipeline(
OperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
response.response.close()
return response.output
|