libZSservicesZSamazonka-cloudfrontZSamazonka-cloudfront
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.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
Eq GetFunction Source # 
Instance details

Defined in Amazonka.CloudFront.GetFunction

Read GetFunction Source # 
Instance details

Defined in Amazonka.CloudFront.GetFunction

Show GetFunction Source # 
Instance details

Defined in Amazonka.CloudFront.GetFunction

Generic GetFunction Source # 
Instance details

Defined in Amazonka.CloudFront.GetFunction

Associated Types

type Rep GetFunction :: Type -> Type #

NFData GetFunction Source # 
Instance details

Defined in Amazonka.CloudFront.GetFunction

Methods

rnf :: GetFunction -> () #

Hashable GetFunction Source # 
Instance details

Defined in Amazonka.CloudFront.GetFunction

AWSRequest GetFunction Source # 
Instance details

Defined in Amazonka.CloudFront.GetFunction

Associated Types

type AWSResponse GetFunction #

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

type Rep GetFunction Source # 
Instance details

Defined in Amazonka.CloudFront.GetFunction

type Rep GetFunction = D1 ('MetaData "GetFunction" "Amazonka.CloudFront.GetFunction" "libZSservicesZSamazonka-cloudfrontZSamazonka-cloudfront" '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)))
type AWSResponse GetFunction Source # 
Instance details

Defined in Amazonka.CloudFront.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:stage:GetFunction', getFunction_stage - The function’s stage, either DEVELOPMENT or LIVE.

$sel:name: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
Eq GetFunctionResponse Source # 
Instance details

Defined in Amazonka.CloudFront.GetFunction

Show GetFunctionResponse Source # 
Instance details

Defined in Amazonka.CloudFront.GetFunction

Generic GetFunctionResponse Source # 
Instance details

Defined in Amazonka.CloudFront.GetFunction

Associated Types

type Rep GetFunctionResponse :: Type -> Type #

NFData GetFunctionResponse Source # 
Instance details

Defined in Amazonka.CloudFront.GetFunction

Methods

rnf :: GetFunctionResponse -> () #

type Rep GetFunctionResponse Source # 
Instance details

Defined in Amazonka.CloudFront.GetFunction

type Rep GetFunctionResponse = D1 ('MetaData "GetFunctionResponse" "Amazonka.CloudFront.GetFunction" "libZSservicesZSamazonka-cloudfrontZSamazonka-cloudfront" 'False) (C1 ('MetaCons "GetFunctionResponse'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "eTag") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "functionCode") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (Sensitive ByteString)))) :*: (S1 ('MetaSel ('Just "contentType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: 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:

$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:contentType:GetFunctionResponse', getFunctionResponse_contentType - The content type (media type) of the response.

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

Response Lenses

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.

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

The content type (media type) of the response.