Search Results for

    Show / Hide Table of Contents

    Interface ITransformerManager

    Represents a type used to manage transformers.

    Namespace: AWS.Lambda.Powertools.Parameters.Transform
    Assembly: AWS.Lambda.Powertools.Parameters.dll
    Syntax
    public interface ITransformerManager

    Methods

    AddTransformer(string, ITransformer)

    Add an instance of a transformer by a unique name

    Declaration
    void AddTransformer(string transformerName, ITransformer transformer)
    Parameters
    Type Name Description
    string transformerName

    name of the transformer

    ITransformer transformer

    the transformer instance

    Exceptions
    Type Condition
    ArgumentException

    GetTransformer(Transformation)

    Gets an instance of transformer for the provided transformation type.

    Declaration
    ITransformer GetTransformer(Transformation transformation)
    Parameters
    Type Name Description
    Transformation transformation

    Type of the transformation.

    Returns
    Type Description
    ITransformer

    The transformer instance

    Exceptions
    Type Condition
    NotSupportedException

    GetTransformer(string)

    Gets an instance of transformer for the provided transformer name.

    Declaration
    ITransformer GetTransformer(string transformerName)
    Parameters
    Type Name Description
    string transformerName

    The unique name for the transformer

    Returns
    Type Description
    ITransformer

    The transformer instance

    Exceptions
    Type Condition
    KeyNotFoundException

    TryGetTransformer(Transformation, string)

    Gets an instance of transformer for the provided transformation type and parameter key.

    Declaration
    ITransformer? TryGetTransformer(Transformation transformation, string key)
    Parameters
    Type Name Description
    Transformation transformation

    Type of the transformation.

    string key

    Parameter key, it's required for Transformation.Auto

    Returns
    Type Description
    ITransformer

    The transformer instance

    TryGetTransformer(string)

    Gets an instance of transformer for the provided transformer name.

    Declaration
    ITransformer? TryGetTransformer(string transformerName)
    Parameters
    Type Name Description
    string transformerName

    The unique name for the transformer

    Returns
    Type Description
    ITransformer

    The transformer instance

    Exceptions
    Type Condition
    ArgumentException
    In this article
    Back to top Powertools for AWS Lambda (.NET) API Documentation