Skip to content

describe_feature_transformation

describe_feature_transformation(
    feature_transformation_arn: Arn,
    *,
    config_overrides: Optional[PersonalizeClientConfig] = None,
) -> DescribeFeatureTransformationResponse

Describes the given feature transformation.

Parameters:

  • feature_transformation_arn (Arn) –

    The Amazon Resource Name (ARN) of the feature transformation to describe.

Raises:

Source code in docs_src/capo_personalize/_services/personalize.py
def describe_feature_transformation(
    self,
    feature_transformation_arn: "capo_personalize.types.arn.Arn",
    *,
    config_overrides: Optional[PersonalizeClientConfig] = None,
) -> "capo_personalize.types.describe_feature_transformation_response.DescribeFeatureTransformationResponse":
    """<p>Describes the given feature transformation.</p>

    Args:
        feature_transformation_arn: <p>The Amazon Resource Name (ARN) of the feature transformation to describe.</p>

    Raises:
        capo_personalize.errors.invalid_input_exception.InvalidInputException: <p>Provide a valid value for the field or parameter.</p>
        capo_personalize.errors.resource_not_found_exception.ResourceNotFoundException: <p>Could not find the specified resource.</p>
        capo_personalize.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    def _handler(
        req: "OperationRequest[capo_personalize.types.describe_feature_transformation_request.DescribeFeatureTransformationRequest]",
    ) -> OperationResponse[
        "capo_personalize.types.describe_feature_transformation_response.DescribeFeatureTransformationResponse"
    ]:
        import capo_personalize._operations.amazon_personalize.describe_feature_transformation

        output, http_response = (
            capo_personalize._operations.amazon_personalize.describe_feature_transformation.describe_feature_transformation(
                req.options, req.input
            )
        )
        return OperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("DescribeFeatureTransformation")
    )
    input_: capo_personalize.types.describe_feature_transformation_request.DescribeFeatureTransformationRequest = {
        "feature_transformation_arn": feature_transformation_arn
    }

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