amazonka-cloudfront-2.0: Amazon CloudFront 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.CloudFront.GetFunction

Description

Gets the code of a CloudFront function. To get configuration information and metadata about a function, use DescribeFunction.

To get a function's code, you must provide the function's name and stage. To get these values, you can use ListFunctions.

Synopsis

Creating a Request

data GetFunction Source #

See: newGetFunction smart constructor.

Constructors

GetFunction' 

Fields

Instances

Instances details
ToHeaders GetFunction Source # 
Instance details

Defined in Amazonka.CloudFront.GetFunction

Methods

toHeaders :: GetFunction -> [Header] #

ToPath GetFunction Source # 
Instance details

Defined in Amazonka.CloudFront.GetFunction

ToQuery GetFunction Source # 
Instance details

Defined in Amazonka.CloudFront.GetFunction

AWSRequest GetFunction Source # 
Instance details

Defined in Amazonka.CloudFront.GetFunction

Associated Types

type AWSResponse GetFunction #

Generic GetFunction Source # 
Instance details

Defined in Amazonka.CloudFront.GetFunction

Associated Types

type Rep GetFunction :: Type -> Type #

Read GetFunction Source # 
Instance details

Defined in Amazonka.CloudFront.GetFunction

Show GetFunction Source # 
Instance details

Defined in Amazonka.CloudFront.GetFunction

NFData GetFunction Source # 
Instance details

Defined in Amazonka.CloudFront.GetFunction

Methods

rnf :: GetFunction -> () #

Eq GetFunction Source # 
Instance details

Defined in Amazonka.CloudFront.GetFunction

Hashable GetFunction Source # 
Instance details

Defined in Amazonka.CloudFront.GetFunction

type AWSResponse GetFunction Source # 
Instance details

Defined in Amazonka.CloudFront.GetFunction

type Rep GetFunction Source # 
Instance details

Defined in Amazonka.CloudFront.GetFunction

type Rep GetFunction = D1 ('MetaData "GetFunction" "Amazonka.CloudFront.GetFunction" "amazonka-cloudfront-2.0-8Jb7luniAuUfLdUxCxW4K" 'False) (C1 ('MetaCons "GetFunction'" 'PrefixI 'True) (S1 ('MetaSel ('Just "stage") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe FunctionStage)) :*: S1 ('MetaSel ('Just "name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))

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:

GetFunction, getFunction_stage - The function's stage, either DEVELOPMENT or LIVE.

GetFunction, getFunction_name - The name of the function whose code you are getting.

Request Lenses

getFunction_stage :: Lens' GetFunction (Maybe FunctionStage) Source #

The function's stage, either DEVELOPMENT or LIVE.

getFunction_name :: Lens' GetFunction Text Source #

The name of the function whose code you are getting.

Destructuring the Response

data GetFunctionResponse Source #

See: newGetFunctionResponse smart constructor.

Constructors

GetFunctionResponse' 

Fields

Instances

Instances details
Generic GetFunctionResponse Source # 
Instance details

Defined in Amazonka.CloudFront.GetFunction

Associated Types

type Rep GetFunctionResponse :: Type -> Type #

Show GetFunctionResponse Source # 
Instance details

Defined in Amazonka.CloudFront.GetFunction

NFData GetFunctionResponse Source # 
Instance details

Defined in Amazonka.CloudFront.GetFunction

Methods

rnf :: GetFunctionResponse -> () #

Eq GetFunctionResponse Source # 
Instance details

Defined in Amazonka.CloudFront.GetFunction

type Rep GetFunctionResponse Source # 
Instance details

Defined in Amazonka.CloudFront.GetFunction

type Rep GetFunctionResponse = D1 ('MetaData "GetFunctionResponse" "Amazonka.CloudFront.GetFunction" "amazonka-cloudfront-2.0-8Jb7luniAuUfLdUxCxW4K" 'False) (C1 ('MetaCons "GetFunctionResponse'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "contentType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "eTag") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "functionCode") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (Sensitive ByteString))) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

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:

GetFunctionResponse, getFunctionResponse_contentType - The content type (media type) of the response.

$sel:eTag:GetFunctionResponse', getFunctionResponse_eTag - The version identifier for the current version of the CloudFront function.

$sel:functionCode:GetFunctionResponse', getFunctionResponse_functionCode - The function code of a CloudFront function.

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

Response Lenses

getFunctionResponse_contentType :: Lens' GetFunctionResponse (Maybe Text) Source #

The content type (media type) of the response.

getFunctionResponse_eTag :: Lens' GetFunctionResponse (Maybe Text) Source #

The version identifier for the current version of the CloudFront function.

getFunctionResponse_functionCode :: Lens' GetFunctionResponse (Maybe ByteString) Source #

The function code of a CloudFront function.