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.DescribeFunction

Description

Gets configuration information and metadata about a CloudFront function, but not the function’s code. To get a function’s code, use GetFunction.

To get configuration information and metadata about a function, you must provide the function’s name and stage. To get these values, you can use ListFunctions.

Synopsis

Creating a Request

data DescribeFunction Source #

See: newDescribeFunction smart constructor.

Constructors

DescribeFunction' 

Fields

  • stage :: Maybe FunctionStage

    The function’s stage, either DEVELOPMENT or LIVE.

  • name :: Text

    The name of the function that you are getting information about.

Instances

Instances details
Eq DescribeFunction Source # 
Instance details

Defined in Amazonka.CloudFront.DescribeFunction

Read DescribeFunction Source # 
Instance details

Defined in Amazonka.CloudFront.DescribeFunction

Show DescribeFunction Source # 
Instance details

Defined in Amazonka.CloudFront.DescribeFunction

Generic DescribeFunction Source # 
Instance details

Defined in Amazonka.CloudFront.DescribeFunction

Associated Types

type Rep DescribeFunction :: Type -> Type #

NFData DescribeFunction Source # 
Instance details

Defined in Amazonka.CloudFront.DescribeFunction

Methods

rnf :: DescribeFunction -> () #

Hashable DescribeFunction Source # 
Instance details

Defined in Amazonka.CloudFront.DescribeFunction

AWSRequest DescribeFunction Source # 
Instance details

Defined in Amazonka.CloudFront.DescribeFunction

Associated Types

type AWSResponse DescribeFunction #

ToHeaders DescribeFunction Source # 
Instance details

Defined in Amazonka.CloudFront.DescribeFunction

ToPath DescribeFunction Source # 
Instance details

Defined in Amazonka.CloudFront.DescribeFunction

ToQuery DescribeFunction Source # 
Instance details

Defined in Amazonka.CloudFront.DescribeFunction

type Rep DescribeFunction Source # 
Instance details

Defined in Amazonka.CloudFront.DescribeFunction

type Rep DescribeFunction = D1 ('MetaData "DescribeFunction" "Amazonka.CloudFront.DescribeFunction" "libZSservicesZSamazonka-cloudfrontZSamazonka-cloudfront" 'False) (C1 ('MetaCons "DescribeFunction'" 'PrefixI 'True) (S1 ('MetaSel ('Just "stage") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe FunctionStage)) :*: S1 ('MetaSel ('Just "name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))
type AWSResponse DescribeFunction Source # 
Instance details

Defined in Amazonka.CloudFront.DescribeFunction

newDescribeFunction Source #

Create a value of DescribeFunction 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:DescribeFunction', describeFunction_stage - The function’s stage, either DEVELOPMENT or LIVE.

$sel:name:DescribeFunction', describeFunction_name - The name of the function that you are getting information about.

Request Lenses

describeFunction_stage :: Lens' DescribeFunction (Maybe FunctionStage) Source #

The function’s stage, either DEVELOPMENT or LIVE.

describeFunction_name :: Lens' DescribeFunction Text Source #

The name of the function that you are getting information about.

Destructuring the Response

data DescribeFunctionResponse Source #

See: newDescribeFunctionResponse smart constructor.

Constructors

DescribeFunctionResponse' 

Fields

Instances

Instances details
Eq DescribeFunctionResponse Source # 
Instance details

Defined in Amazonka.CloudFront.DescribeFunction

Read DescribeFunctionResponse Source # 
Instance details

Defined in Amazonka.CloudFront.DescribeFunction

Show DescribeFunctionResponse Source # 
Instance details

Defined in Amazonka.CloudFront.DescribeFunction

Generic DescribeFunctionResponse Source # 
Instance details

Defined in Amazonka.CloudFront.DescribeFunction

Associated Types

type Rep DescribeFunctionResponse :: Type -> Type #

NFData DescribeFunctionResponse Source # 
Instance details

Defined in Amazonka.CloudFront.DescribeFunction

type Rep DescribeFunctionResponse Source # 
Instance details

Defined in Amazonka.CloudFront.DescribeFunction

type Rep DescribeFunctionResponse = D1 ('MetaData "DescribeFunctionResponse" "Amazonka.CloudFront.DescribeFunction" "libZSservicesZSamazonka-cloudfrontZSamazonka-cloudfront" 'False) (C1 ('MetaCons "DescribeFunctionResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "eTag") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "functionSummary") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe FunctionSummary)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

newDescribeFunctionResponse Source #

Create a value of DescribeFunctionResponse 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:DescribeFunctionResponse', describeFunctionResponse_eTag - The version identifier for the current version of the CloudFront function.

$sel:functionSummary:DescribeFunctionResponse', describeFunctionResponse_functionSummary - Contains configuration information and metadata about a CloudFront function.

$sel:httpStatus:DescribeFunctionResponse', describeFunctionResponse_httpStatus - The response's http status code.

Response Lenses

describeFunctionResponse_eTag :: Lens' DescribeFunctionResponse (Maybe Text) Source #

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

describeFunctionResponse_functionSummary :: Lens' DescribeFunctionResponse (Maybe FunctionSummary) Source #

Contains configuration information and metadata about a CloudFront function.