libZSservicesZSamazonka-lambdaZSamazonka-lambda
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.Lambda.GetFunction

Description

Returns information about the function or function version, with a link to download the deployment package that's valid for 10 minutes. If you specify a function version, only details that are specific to that version are returned.

Synopsis

Creating a Request

data GetFunction Source #

See: newGetFunction smart constructor.

Constructors

GetFunction' 

Fields

  • qualifier :: Maybe Text

    Specify a version or alias to get details about a published version of the function.

  • functionName :: Text

    The name of the Lambda function, version, or alias.

    Name formats

    • Function name - my-function (name-only), my-function:v1 (with alias).
    • Function ARN - arn:aws:lambda:us-west-2:123456789012:function:my-function.
    • Partial ARN - 123456789012:function:my-function.

    You can append a version number or alias to any of the formats. 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
Eq GetFunction Source # 
Instance details

Defined in Amazonka.Lambda.GetFunction

Read GetFunction Source # 
Instance details

Defined in Amazonka.Lambda.GetFunction

Show GetFunction Source # 
Instance details

Defined in Amazonka.Lambda.GetFunction

Generic GetFunction Source # 
Instance details

Defined in Amazonka.Lambda.GetFunction

Associated Types

type Rep GetFunction :: Type -> Type #

NFData GetFunction Source # 
Instance details

Defined in Amazonka.Lambda.GetFunction

Methods

rnf :: GetFunction -> () #

Hashable GetFunction Source # 
Instance details

Defined in Amazonka.Lambda.GetFunction

AWSRequest GetFunction Source # 
Instance details

Defined in Amazonka.Lambda.GetFunction

Associated Types

type AWSResponse GetFunction #

ToHeaders GetFunction Source # 
Instance details

Defined in Amazonka.Lambda.GetFunction

Methods

toHeaders :: GetFunction -> [Header] #

ToPath GetFunction Source # 
Instance details

Defined in Amazonka.Lambda.GetFunction

ToQuery GetFunction Source # 
Instance details

Defined in Amazonka.Lambda.GetFunction

type Rep GetFunction Source # 
Instance details

Defined in Amazonka.Lambda.GetFunction

type Rep GetFunction = D1 ('MetaData "GetFunction" "Amazonka.Lambda.GetFunction" "libZSservicesZSamazonka-lambdaZSamazonka-lambda" 'False) (C1 ('MetaCons "GetFunction'" 'PrefixI 'True) (S1 ('MetaSel ('Just "qualifier") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "functionName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))
type AWSResponse GetFunction Source # 
Instance details

Defined in Amazonka.Lambda.GetFunction

newGetFunction Source #

Create a value of GetFunction 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:qualifier:GetFunction', getFunction_qualifier - Specify a version or alias to get details about a published version of the function.

$sel:functionName:GetFunction', getFunction_functionName - The name of the Lambda function, version, or alias.

Name formats

  • Function name - my-function (name-only), my-function:v1 (with alias).
  • Function ARN - arn:aws:lambda:us-west-2:123456789012:function:my-function.
  • Partial ARN - 123456789012:function:my-function.

You can append a version number or alias to any of the formats. 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

getFunction_qualifier :: Lens' GetFunction (Maybe Text) Source #

Specify a version or alias to get details about a published version of the function.

getFunction_functionName :: Lens' GetFunction Text Source #

The name of the Lambda function, version, or alias.

Name formats

  • Function name - my-function (name-only), my-function:v1 (with alias).
  • Function ARN - arn:aws:lambda:us-west-2:123456789012:function:my-function.
  • Partial ARN - 123456789012:function:my-function.

You can append a version number or alias to any of the formats. 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 GetFunctionResponse Source #

See: newGetFunctionResponse smart constructor.

Constructors

GetFunctionResponse' 

Fields

Instances

Instances details
Eq GetFunctionResponse Source # 
Instance details

Defined in Amazonka.Lambda.GetFunction

Show GetFunctionResponse Source # 
Instance details

Defined in Amazonka.Lambda.GetFunction

Generic GetFunctionResponse Source # 
Instance details

Defined in Amazonka.Lambda.GetFunction

Associated Types

type Rep GetFunctionResponse :: Type -> Type #

NFData GetFunctionResponse Source # 
Instance details

Defined in Amazonka.Lambda.GetFunction

Methods

rnf :: GetFunctionResponse -> () #

type Rep GetFunctionResponse Source # 
Instance details

Defined in Amazonka.Lambda.GetFunction

newGetFunctionResponse Source #

Create a value of GetFunctionResponse 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:concurrency:GetFunctionResponse', getFunctionResponse_concurrency - The function's reserved concurrency.

$sel:code:GetFunctionResponse', getFunctionResponse_code - The deployment package of the function or version.

$sel:configuration:GetFunctionResponse', getFunctionResponse_configuration - The configuration of the function or version.

$sel:tags:GetFunctionResponse', getFunctionResponse_tags - The function's tags.

$sel:httpStatus:GetFunctionResponse', getFunctionResponse_httpStatus - The response's http status code.

Response Lenses

getFunctionResponse_code :: Lens' GetFunctionResponse (Maybe FunctionCodeLocation) Source #

The deployment package of the function or version.