amazonka-lambda-2.0: Amazon Lambda SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.Lambda.ListVersionsByFunction

Description

Returns a list of versions, with the version-specific configuration of each. Lambda returns up to 50 versions per call.

This operation returns paginated results.

Synopsis

Creating a Request

data ListVersionsByFunction Source #

See: newListVersionsByFunction smart constructor.

Constructors

ListVersionsByFunction' 

Fields

  • marker :: Maybe Text

    Specify the pagination token that's returned by a previous request to retrieve the next page of results.

  • maxItems :: Maybe Natural

    The maximum number of versions to return. Note that ListVersionsByFunction returns a maximum of 50 items in each response, even if you set the number higher.

  • functionName :: Text

    The name of the Lambda function.

    Name formats

    • Function name - MyFunction.
    • Function ARN - arn:aws:lambda:us-west-2:123456789012:function:MyFunction.
    • Partial ARN - 123456789012:function:MyFunction.

    The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.

Instances

Instances details
ToHeaders ListVersionsByFunction Source # 
Instance details

Defined in Amazonka.Lambda.ListVersionsByFunction

ToPath ListVersionsByFunction Source # 
Instance details

Defined in Amazonka.Lambda.ListVersionsByFunction

ToQuery ListVersionsByFunction Source # 
Instance details

Defined in Amazonka.Lambda.ListVersionsByFunction

AWSPager ListVersionsByFunction Source # 
Instance details

Defined in Amazonka.Lambda.ListVersionsByFunction

AWSRequest ListVersionsByFunction Source # 
Instance details

Defined in Amazonka.Lambda.ListVersionsByFunction

Associated Types

type AWSResponse ListVersionsByFunction #

Generic ListVersionsByFunction Source # 
Instance details

Defined in Amazonka.Lambda.ListVersionsByFunction

Associated Types

type Rep ListVersionsByFunction :: Type -> Type #

Read ListVersionsByFunction Source # 
Instance details

Defined in Amazonka.Lambda.ListVersionsByFunction

Show ListVersionsByFunction Source # 
Instance details

Defined in Amazonka.Lambda.ListVersionsByFunction

NFData ListVersionsByFunction Source # 
Instance details

Defined in Amazonka.Lambda.ListVersionsByFunction

Methods

rnf :: ListVersionsByFunction -> () #

Eq ListVersionsByFunction Source # 
Instance details

Defined in Amazonka.Lambda.ListVersionsByFunction

Hashable ListVersionsByFunction Source # 
Instance details

Defined in Amazonka.Lambda.ListVersionsByFunction

type AWSResponse ListVersionsByFunction Source # 
Instance details

Defined in Amazonka.Lambda.ListVersionsByFunction

type Rep ListVersionsByFunction Source # 
Instance details

Defined in Amazonka.Lambda.ListVersionsByFunction

type Rep ListVersionsByFunction = D1 ('MetaData "ListVersionsByFunction" "Amazonka.Lambda.ListVersionsByFunction" "amazonka-lambda-2.0-FcjxCCKaCGK94C2lDO9alC" 'False) (C1 ('MetaCons "ListVersionsByFunction'" 'PrefixI 'True) (S1 ('MetaSel ('Just "marker") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "maxItems") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural)) :*: S1 ('MetaSel ('Just "functionName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))

newListVersionsByFunction Source #

Create a value of ListVersionsByFunction with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:marker:ListVersionsByFunction', listVersionsByFunction_marker - Specify the pagination token that's returned by a previous request to retrieve the next page of results.

$sel:maxItems:ListVersionsByFunction', listVersionsByFunction_maxItems - The maximum number of versions to return. Note that ListVersionsByFunction returns a maximum of 50 items in each response, even if you set the number higher.

ListVersionsByFunction, listVersionsByFunction_functionName - The name of the Lambda function.

Name formats

  • Function name - MyFunction.
  • Function ARN - arn:aws:lambda:us-west-2:123456789012:function:MyFunction.
  • Partial ARN - 123456789012:function:MyFunction.

The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.

Request Lenses

listVersionsByFunction_marker :: Lens' ListVersionsByFunction (Maybe Text) Source #

Specify the pagination token that's returned by a previous request to retrieve the next page of results.

listVersionsByFunction_maxItems :: Lens' ListVersionsByFunction (Maybe Natural) Source #

The maximum number of versions to return. Note that ListVersionsByFunction returns a maximum of 50 items in each response, even if you set the number higher.

listVersionsByFunction_functionName :: Lens' ListVersionsByFunction Text Source #

The name of the Lambda function.

Name formats

  • Function name - MyFunction.
  • Function ARN - arn:aws:lambda:us-west-2:123456789012:function:MyFunction.
  • Partial ARN - 123456789012:function:MyFunction.

The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.

Destructuring the Response

data ListVersionsByFunctionResponse Source #

See: newListVersionsByFunctionResponse smart constructor.

Constructors

ListVersionsByFunctionResponse' 

Fields

Instances

Instances details
Generic ListVersionsByFunctionResponse Source # 
Instance details

Defined in Amazonka.Lambda.ListVersionsByFunction

Associated Types

type Rep ListVersionsByFunctionResponse :: Type -> Type #

Show ListVersionsByFunctionResponse Source # 
Instance details

Defined in Amazonka.Lambda.ListVersionsByFunction

NFData ListVersionsByFunctionResponse Source # 
Instance details

Defined in Amazonka.Lambda.ListVersionsByFunction

Eq ListVersionsByFunctionResponse Source # 
Instance details

Defined in Amazonka.Lambda.ListVersionsByFunction

type Rep ListVersionsByFunctionResponse Source # 
Instance details

Defined in Amazonka.Lambda.ListVersionsByFunction

type Rep ListVersionsByFunctionResponse = D1 ('MetaData "ListVersionsByFunctionResponse" "Amazonka.Lambda.ListVersionsByFunction" "amazonka-lambda-2.0-FcjxCCKaCGK94C2lDO9alC" 'False) (C1 ('MetaCons "ListVersionsByFunctionResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "nextMarker") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "versions") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [FunctionConfiguration])) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

newListVersionsByFunctionResponse Source #

Create a value of ListVersionsByFunctionResponse with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:nextMarker:ListVersionsByFunctionResponse', listVersionsByFunctionResponse_nextMarker - The pagination token that's included if more results are available.

$sel:versions:ListVersionsByFunctionResponse', listVersionsByFunctionResponse_versions - A list of Lambda function versions.

$sel:httpStatus:ListVersionsByFunctionResponse', listVersionsByFunctionResponse_httpStatus - The response's http status code.

Response Lenses

listVersionsByFunctionResponse_nextMarker :: Lens' ListVersionsByFunctionResponse (Maybe Text) Source #

The pagination token that's included if more results are available.