amazonka-lambda-1.4.5: Amazon Lambda SDK.

Copyright(c) 2013-2016 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay@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 #

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 - Using 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 character in length.

data GetFunction #

See: getFunction smart constructor.

Instances

Eq GetFunction # 
Data 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 # 
Show GetFunction # 
Generic GetFunction # 

Associated Types

type Rep GetFunction :: * -> * #

Hashable GetFunction # 
NFData GetFunction # 

Methods

rnf :: GetFunction -> () #

AWSRequest GetFunction # 
ToQuery GetFunction # 
ToPath GetFunction # 
ToHeaders GetFunction # 

Methods

toHeaders :: GetFunction -> [Header] #

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

Request Lenses

gfQualifier :: Lens' GetFunction (Maybe Text) #

Using 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 #

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 character in length.

Destructuring the Response

getFunctionResponse #

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 #

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

See: getFunctionResponse smart constructor.

Instances

Eq GetFunctionResponse # 
Data GetFunctionResponse # 

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 #

Read GetFunctionResponse # 
Show GetFunctionResponse # 
Generic GetFunctionResponse # 
NFData GetFunctionResponse # 

Methods

rnf :: GetFunctionResponse -> () #

type Rep GetFunctionResponse # 
type Rep GetFunctionResponse = D1 (MetaData "GetFunctionResponse" "Network.AWS.Lambda.GetFunction" "amazonka-lambda-1.4.5-HBw5BdgXNtO3bSf0cOyCBw" False) (C1 (MetaCons "GetFunctionResponse'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_gfrsCode") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe FunctionCodeLocation))) ((:*:) (S1 (MetaSel (Just Symbol "_gfrsConfiguration") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe FunctionConfiguration))) (S1 (MetaSel (Just Symbol "_gfrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedUnpack) (Rec0 Int)))))

Response Lenses

gfrsResponseStatus :: Lens' GetFunctionResponse Int #

  • - | The response status code.