create_collector
async
¶
create_collector(
*,
config_overrides: Optional[AsyncContinuumClientConfig] = None,
type: Optional[CollectorType] = None,
kubernetes_cluster_role: Optional[KubernetesClusterRoleConfiguration] = None,
client_token: Optional[CollectorClientToken] = None,
) -> CreateCollectorOutput
Creates the Collector for the caller's account. Provisions an AWS Config service-linked recorder using the caller's federated access session and begins recording infrastructure changes.
Parameters:
-
type(Optional[CollectorType], default:None) –Source to collect. Defaults to AWS_COLLECTOR when omitted.
-
kubernetes_cluster_role(Optional[KubernetesClusterRoleConfiguration], default:None) –IAM role configuration used to collect Kubernetes cluster metadata. The authenticated caller must be allowed to pass its exact roleArn to Continuum.
-
client_token(Optional[CollectorClientToken], default:None) –Caller-provided token that makes retried create requests return the original Collector rather than creating a duplicate.
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.
-
ServiceQuotaExceededException–The request would exceed a service quota. Review your quota and request an increase if needed.
-
ThrottlingException–The request was denied due to request throttling.
-
UnknownServiceError–The service returned an error code this client does not model.