amazonka-lambda-1.6.1: Amazon Lambda SDK.

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

Network.AWS.Lambda.GetFunction

Contents

Description

Returns the configuration information of the Lambda function and a presigned URL link to the .zip file you uploaded with CreateFunction so you can download the .zip file. Note that the URL is valid for up to 10 minutes. The configuration information is the same information you provided as parameters when uploading the function.

Using the optional Qualifier parameter, you can specify a specific function version for which you want this information. If you don't specify this parameter, the API uses unqualified function ARN which return information about the > LATEST version of the Lambda function. For more information, see AWS Lambda Function Versioning and Aliases .

This operation requires permission for the lambda:GetFunction action.

Synopsis

Creating a Request

getFunction Source #

Creates a value of GetFunction with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

  • gfQualifier - Use this optional parameter to specify a function version or an alias name. If you specify function version, the API uses qualified function ARN for the request and returns information about the specific Lambda function version. If you specify an alias name, the API uses the alias ARN and returns information about the function version to which the alias points. If you don't provide this parameter, the API uses unqualified function ARN and returns information about the > LATEST version of the Lambda function.
  • gfFunctionName - The Lambda function name. You can specify a function name (for example, Thumbnail ) or you can specify Amazon Resource Name (ARN) of the function (for example, arn:aws:lambda:us-west-2:account-id:function:ThumbNail ). AWS Lambda also allows you to specify a partial ARN (for example, account-id:Thumbnail ). Note that the length constraint applies only to the ARN. If you specify only the function name, it is limited to 64 characters in length.

data GetFunction Source #

See: getFunction smart constructor.

Instances
Eq GetFunction Source # 
Instance details

Defined in Network.AWS.Lambda.GetFunction

Data GetFunction Source # 
Instance details

Defined in Network.AWS.Lambda.GetFunction

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> GetFunction -> c GetFunction #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c GetFunction #

toConstr :: GetFunction -> Constr #

dataTypeOf :: GetFunction -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c GetFunction) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c GetFunction) #

gmapT :: (forall b. Data b => b -> b) -> GetFunction -> GetFunction #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> GetFunction -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> GetFunction -> r #

gmapQ :: (forall d. Data d => d -> u) -> GetFunction -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> GetFunction -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> GetFunction -> m GetFunction #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> GetFunction -> m GetFunction #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> GetFunction -> m GetFunction #

Read GetFunction Source # 
Instance details

Defined in Network.AWS.Lambda.GetFunction

Show GetFunction Source # 
Instance details

Defined in Network.AWS.Lambda.GetFunction

Generic GetFunction Source # 
Instance details

Defined in Network.AWS.Lambda.GetFunction

Associated Types

type Rep GetFunction :: Type -> Type #

Hashable GetFunction Source # 
Instance details

Defined in Network.AWS.Lambda.GetFunction

AWSRequest GetFunction Source # 
Instance details

Defined in Network.AWS.Lambda.GetFunction

Associated Types

type Rs GetFunction :: Type #

ToHeaders GetFunction Source # 
Instance details

Defined in Network.AWS.Lambda.GetFunction

Methods

toHeaders :: GetFunction -> [Header] #

ToPath GetFunction Source # 
Instance details

Defined in Network.AWS.Lambda.GetFunction

ToQuery GetFunction Source # 
Instance details

Defined in Network.AWS.Lambda.GetFunction

NFData GetFunction Source # 
Instance details

Defined in Network.AWS.Lambda.GetFunction

Methods

rnf :: GetFunction -> () #

type Rep GetFunction Source # 
Instance details

Defined in Network.AWS.Lambda.GetFunction

type Rep GetFunction = D1 (MetaData "GetFunction" "Network.AWS.Lambda.GetFunction" "amazonka-lambda-1.6.1-KQvkrTCQjBWL6Bwjq8xw0f" False) (C1 (MetaCons "GetFunction'" PrefixI True) (S1 (MetaSel (Just "_gfQualifier") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_gfFunctionName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)))
type Rs GetFunction Source # 
Instance details

Defined in Network.AWS.Lambda.GetFunction

Request Lenses

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

Use this optional parameter to specify a function version or an alias name. If you specify function version, the API uses qualified function ARN for the request and returns information about the specific Lambda function version. If you specify an alias name, the API uses the alias ARN and returns information about the function version to which the alias points. If you don't provide this parameter, the API uses unqualified function ARN and returns information about the > LATEST version of the Lambda function.

gfFunctionName :: Lens' GetFunction Text Source #

The Lambda function name. You can specify a function name (for example, Thumbnail ) or you can specify Amazon Resource Name (ARN) of the function (for example, arn:aws:lambda:us-west-2:account-id:function:ThumbNail ). AWS Lambda also allows you to specify a partial ARN (for example, account-id:Thumbnail ). Note that the length constraint applies only to the ARN. If you specify only the function name, it is limited to 64 characters in length.

Destructuring the Response

getFunctionResponse Source #

Creates a value of GetFunctionResponse with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

data GetFunctionResponse Source #

This response contains the object for the Lambda function location (see FunctionCodeLocation .

See: getFunctionResponse smart constructor.

Instances
Eq GetFunctionResponse Source # 
Instance details

Defined in Network.AWS.Lambda.GetFunction

Data GetFunctionResponse Source # 
Instance details

Defined in Network.AWS.Lambda.GetFunction

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> GetFunctionResponse -> c GetFunctionResponse #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c GetFunctionResponse #

toConstr :: GetFunctionResponse -> Constr #

dataTypeOf :: GetFunctionResponse -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c GetFunctionResponse) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c GetFunctionResponse) #

gmapT :: (forall b. Data b => b -> b) -> GetFunctionResponse -> GetFunctionResponse #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> GetFunctionResponse -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> GetFunctionResponse -> r #

gmapQ :: (forall d. Data d => d -> u) -> GetFunctionResponse -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> GetFunctionResponse -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> GetFunctionResponse -> m GetFunctionResponse #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> GetFunctionResponse -> m GetFunctionResponse #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> GetFunctionResponse -> m GetFunctionResponse #

Show GetFunctionResponse Source # 
Instance details

Defined in Network.AWS.Lambda.GetFunction

Generic GetFunctionResponse Source # 
Instance details

Defined in Network.AWS.Lambda.GetFunction

Associated Types

type Rep GetFunctionResponse :: Type -> Type #

NFData GetFunctionResponse Source # 
Instance details

Defined in Network.AWS.Lambda.GetFunction

Methods

rnf :: GetFunctionResponse -> () #

type Rep GetFunctionResponse Source # 
Instance details

Defined in Network.AWS.Lambda.GetFunction

type Rep GetFunctionResponse = D1 (MetaData "GetFunctionResponse" "Network.AWS.Lambda.GetFunction" "amazonka-lambda-1.6.1-KQvkrTCQjBWL6Bwjq8xw0f" False) (C1 (MetaCons "GetFunctionResponse'" PrefixI True) ((S1 (MetaSel (Just "_gfrsConcurrency") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Concurrency)) :*: S1 (MetaSel (Just "_gfrsCode") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe FunctionCodeLocation))) :*: (S1 (MetaSel (Just "_gfrsConfiguration") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe FunctionConfiguration)) :*: (S1 (MetaSel (Just "_gfrsTags") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe (Map Text Text))) :*: S1 (MetaSel (Just "_gfrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int)))))

Response Lenses

gfrsConcurrency :: Lens' GetFunctionResponse (Maybe Concurrency) Source #

The concurrent execution limit set for this function. For more information, see 'concurrent-executions' .

gfrsTags :: Lens' GetFunctionResponse (HashMap Text Text) Source #

Returns the list of tags associated with the function. For more information, see Tagging Lambda Functions in the AWS Lambda Developer Guide .

gfrsResponseStatus :: Lens' GetFunctionResponse Int Source #

  • - | The response status code.