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.Types.FunctionMetadata

Description

 
Synopsis

Documentation

data FunctionMetadata Source #

Contains metadata about a CloudFront function.

See: newFunctionMetadata smart constructor.

Constructors

FunctionMetadata' 

Fields

  • stage :: Maybe FunctionStage

    The stage that the function is in, either DEVELOPMENT or LIVE.

    When a function is in the DEVELOPMENT stage, you can test the function with TestFunction, and update it with UpdateFunction.

    When a function is in the LIVE stage, you can attach the function to a distribution’s cache behavior, using the function’s ARN.

  • createdTime :: Maybe ISO8601

    The date and time when the function was created.

  • functionARN :: Text

    The Amazon Resource Name (ARN) of the function. The ARN uniquely identifies the function.

  • lastModifiedTime :: ISO8601

    The date and time when the function was most recently updated.

Instances

Instances details
Eq FunctionMetadata Source # 
Instance details

Defined in Amazonka.CloudFront.Types.FunctionMetadata

Read FunctionMetadata Source # 
Instance details

Defined in Amazonka.CloudFront.Types.FunctionMetadata

Show FunctionMetadata Source # 
Instance details

Defined in Amazonka.CloudFront.Types.FunctionMetadata

Generic FunctionMetadata Source # 
Instance details

Defined in Amazonka.CloudFront.Types.FunctionMetadata

Associated Types

type Rep FunctionMetadata :: Type -> Type #

NFData FunctionMetadata Source # 
Instance details

Defined in Amazonka.CloudFront.Types.FunctionMetadata

Methods

rnf :: FunctionMetadata -> () #

Hashable FunctionMetadata Source # 
Instance details

Defined in Amazonka.CloudFront.Types.FunctionMetadata

FromXML FunctionMetadata Source # 
Instance details

Defined in Amazonka.CloudFront.Types.FunctionMetadata

type Rep FunctionMetadata Source # 
Instance details

Defined in Amazonka.CloudFront.Types.FunctionMetadata

type Rep FunctionMetadata = D1 ('MetaData "FunctionMetadata" "Amazonka.CloudFront.Types.FunctionMetadata" "libZSservicesZSamazonka-cloudfrontZSamazonka-cloudfront" 'False) (C1 ('MetaCons "FunctionMetadata'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "stage") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe FunctionStage)) :*: S1 ('MetaSel ('Just "createdTime") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe ISO8601))) :*: (S1 ('MetaSel ('Just "functionARN") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "lastModifiedTime") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 ISO8601))))

newFunctionMetadata Source #

Create a value of FunctionMetadata 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:FunctionMetadata', functionMetadata_stage - The stage that the function is in, either DEVELOPMENT or LIVE.

When a function is in the DEVELOPMENT stage, you can test the function with TestFunction, and update it with UpdateFunction.

When a function is in the LIVE stage, you can attach the function to a distribution’s cache behavior, using the function’s ARN.

$sel:createdTime:FunctionMetadata', functionMetadata_createdTime - The date and time when the function was created.

$sel:functionARN:FunctionMetadata', functionMetadata_functionARN - The Amazon Resource Name (ARN) of the function. The ARN uniquely identifies the function.

$sel:lastModifiedTime:FunctionMetadata', functionMetadata_lastModifiedTime - The date and time when the function was most recently updated.

functionMetadata_stage :: Lens' FunctionMetadata (Maybe FunctionStage) Source #

The stage that the function is in, either DEVELOPMENT or LIVE.

When a function is in the DEVELOPMENT stage, you can test the function with TestFunction, and update it with UpdateFunction.

When a function is in the LIVE stage, you can attach the function to a distribution’s cache behavior, using the function’s ARN.

functionMetadata_createdTime :: Lens' FunctionMetadata (Maybe UTCTime) Source #

The date and time when the function was created.

functionMetadata_functionARN :: Lens' FunctionMetadata Text Source #

The Amazon Resource Name (ARN) of the function. The ARN uniquely identifies the function.

functionMetadata_lastModifiedTime :: Lens' FunctionMetadata UTCTime Source #

The date and time when the function was most recently updated.