Skip to content

get_connector_telemetry_setup

get_connector_telemetry_setup(
    connector_identifier: ConnectorIdentifier,
    *,
    config_overrides: Optional[ObservabilityAdminClientConfig] = None,
    format: Optional[SetupFormat] = None,
) -> GetConnectorTelemetrySetupOutput

Generates the artifacts that you use to create the infrastructure in your cloud provider that delivers the telemetry declared in the connector's telemetry manifest. This operation doesn't change any resources in your cloud provider or in Amazon Web Services.

Parameters:

  • connector_identifier (ConnectorIdentifier) –

    The connector whose telemetry manifest you want to generate the setup from. Specify one of the following:

    • The Amazon Resource Name (ARN) of the connector

    • The ID of the connector

  • format (Optional[SetupFormat], default: None ) –

    The format of the setup artifacts. If you omit this value, the service uses the default format for the connector's provider (BICEP for an Azure connector). If the provider doesn't support the format, the service returns a ValidationException.

Raises:

Source code in docs_src/capo_observabilityadmin/_services/observability_admin.py
def get_connector_telemetry_setup(
    self,
    connector_identifier: "capo_observabilityadmin.types.connector_identifier.ConnectorIdentifier",
    *,
    config_overrides: Optional[ObservabilityAdminClientConfig] = None,
    format: Optional[
        "capo_observabilityadmin.types.setup_format.SetupFormat"
    ] = None,
) -> "capo_observabilityadmin.types.get_connector_telemetry_setup_output.GetConnectorTelemetrySetupOutput":
    """<p>Generates the artifacts that you use to create the infrastructure in your cloud provider that delivers the telemetry declared in the connector's telemetry manifest. This operation doesn't change any resources in your cloud provider or in Amazon Web Services.</p>

    Args:
        connector_identifier: <p>The connector whose telemetry manifest you want to generate the setup from. Specify one of the following:</p> <ul> <li> <p>The Amazon Resource Name (ARN) of the connector</p> </li> <li> <p>The ID of the connector</p> </li> </ul>
        format: <p>The format of the setup artifacts. If you omit this value, the service uses the default format for the connector's provider (<code>BICEP</code> for an Azure connector). If the provider doesn't support the format, the service returns a <code>ValidationException</code>.</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.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.resource_not_found_exception.ResourceNotFoundException: <p> The specified resource (such as a telemetry rule) could not be found. </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.get_connector_telemetry_setup_input.GetConnectorTelemetrySetupInput]",
    ) -> OperationResponse[
        "capo_observabilityadmin.types.get_connector_telemetry_setup_output.GetConnectorTelemetrySetupOutput"
    ]:
        import capo_observabilityadmin._operations.observability_admin.get_connector_telemetry_setup

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

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("GetConnectorTelemetrySetup")
    )
    input_: capo_observabilityadmin.types.get_connector_telemetry_setup_input.GetConnectorTelemetrySetupInput = {
        "connector_identifier": connector_identifier
    }
    if format is not None:
        input_["format"] = format

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