Skip to content

start_third_party_telemetry_enrichment

start_third_party_telemetry_enrichment(
    name: ThirdPartyTelemetryEnrichmentName,
    telemetry_source_configuration: TelemetrySourceConfigurationInput,
    *,
    config_overrides: Optional[ObservabilityAdminClientConfig] = None,
    tags: Optional[TagMapInput] = None,
) -> StartThirdPartyTelemetryEnrichmentOutput

Starts a third-party telemetry enrichment. An enrichment adds resource metadata, such as tags, from a third-party telemetry source to the telemetry that CloudWatch receives from the resources of that source.

You specify an Amazon Web Services Config connector for your third-party environment, such as a Microsoft Azure tenant. You can use each connector for only one enrichment.

To use this operation, you must have the config:PutThirdPartyServiceLinkedConfigurationRecorder permission. If the Amazon Web Services Config service-linked role does not exist in your account, you must also have the iam:CreateServiceLinkedRole permission.

Parameters:

  • name (ThirdPartyTelemetryEnrichmentName) –

    A name for the enrichment. The name must be unique in your account and Region. You can use the name instead of the ARN to identify the enrichment in other operations.

  • telemetry_source_configuration (TelemetrySourceConfigurationInput) –

    The third-party telemetry source to collect resource metadata from. Specify exactly one telemetry source.

  • tags (Optional[TagMapInput], default: None ) –

    The tags to associate with the enrichment resource.

Raises:

Source code in docs_src/capo_observabilityadmin/_services/observability_admin.py
def start_third_party_telemetry_enrichment(
    self,
    name: "capo_observabilityadmin.types.third_party_telemetry_enrichment_name.ThirdPartyTelemetryEnrichmentName",
    telemetry_source_configuration: "capo_observabilityadmin.types.telemetry_source_configuration_input.TelemetrySourceConfigurationInput",
    *,
    config_overrides: Optional[ObservabilityAdminClientConfig] = None,
    tags: Optional[
        "capo_observabilityadmin.types.tag_map_input.TagMapInput"
    ] = None,
) -> "capo_observabilityadmin.types.start_third_party_telemetry_enrichment_output.StartThirdPartyTelemetryEnrichmentOutput":
    """<p>Starts a third-party telemetry enrichment. An enrichment adds resource metadata, such as tags, from a third-party telemetry source to the telemetry that CloudWatch receives from the resources of that source.</p> <p>You specify an Amazon Web Services Config connector for your third-party environment, such as a Microsoft Azure tenant. You can use each connector for only one enrichment.</p> <p>To use this operation, you must have the <code>config:PutThirdPartyServiceLinkedConfigurationRecorder</code> permission. If the Amazon Web Services Config service-linked role does not exist in your account, you must also have the <code>iam:CreateServiceLinkedRole</code> permission.</p>

    Args:
        name: <p>A name for the enrichment. The name must be unique in your account and Region. You can use the name instead of the ARN to identify the enrichment in other operations.</p>
        telemetry_source_configuration: <p>The third-party telemetry source to collect resource metadata from. Specify exactly one telemetry source.</p>
        tags: <p>The tags to associate with the enrichment resource.</p>

    Raises:
        capo_observabilityadmin.errors.access_denied_exception.AccessDeniedException: <p> Indicates you don't have permissions to perform the requested operation. The user or role that is making the request must have at least one IAM permissions policy attached that grants the required permissions. For more information, see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/access.html">Access management for Amazon Web Services resources</a> in the IAM user guide. </p>
        capo_observabilityadmin.errors.conflict_exception.ConflictException: <p> The requested operation conflicts with the current state of the specified resource or with another request. </p>
        capo_observabilityadmin.errors.internal_server_exception.InternalServerException: <p> Indicates the request has failed to process because of an unknown server error, exception, or failure. </p>
        capo_observabilityadmin.errors.service_quota_exceeded_exception.ServiceQuotaExceededException: <p> The requested operation would exceed the allowed quota for the specified resource type. </p>
        capo_observabilityadmin.errors.too_many_requests_exception.TooManyRequestsException: <p> The request throughput limit was exceeded. </p>
        capo_observabilityadmin.errors.validation_exception.ValidationException: <p> Indicates input validation failed. Check your request parameters and retry the request. </p>
        capo_observabilityadmin.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    def _handler(
        req: "OperationRequest[capo_observabilityadmin.types.start_third_party_telemetry_enrichment_input.StartThirdPartyTelemetryEnrichmentInput]",
    ) -> OperationResponse[
        "capo_observabilityadmin.types.start_third_party_telemetry_enrichment_output.StartThirdPartyTelemetryEnrichmentOutput"
    ]:
        import capo_observabilityadmin._operations.observability_admin.start_third_party_telemetry_enrichment

        output, http_response = (
            capo_observabilityadmin._operations.observability_admin.start_third_party_telemetry_enrichment.start_third_party_telemetry_enrichment(
                req.options, req.input
            )
        )
        return OperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("StartThirdPartyTelemetryEnrichment")
    )
    input_: capo_observabilityadmin.types.start_third_party_telemetry_enrichment_input.StartThirdPartyTelemetryEnrichmentInput = {
        "name": name,
        "telemetry_source_configuration": telemetry_source_configuration,
    }
    if tags is not None:
        input_["tags"] = tags

    response = execute_pipeline(
        OperationRequest(input=input_, options=options_),
        handler=_handler,
        interceptors=list(interceptors_),
    )
    response.response.close()
    return response.output