amazonka-appconfig-2.0: Amazon AppConfig 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.AppConfig.CreateExtension

Description

Creates an AppConfig extension. An extension augments your ability to inject logic or behavior at different points during the AppConfig workflow of creating or deploying a configuration.

You can create your own extensions or use the Amazon Web Services-authored extensions provided by AppConfig. For most use-cases, to create your own extension, you must create an Lambda function to perform any computation and processing defined in the extension. For more information about extensions, see Working with AppConfig extensions in the AppConfig User Guide.

Synopsis

Creating a Request

data CreateExtension Source #

See: newCreateExtension smart constructor.

Constructors

CreateExtension' 

Fields

  • description :: Maybe Text

    Information about the extension.

  • latestVersionNumber :: Maybe Int

    You can omit this field when you create an extension. When you create a new version, specify the most recent current version number. For example, you create version 3, enter 2 for this field.

  • parameters :: Maybe (HashMap Text Parameter)

    The parameters accepted by the extension. You specify parameter values when you associate the extension to an AppConfig resource by using the CreateExtensionAssociation API action. For Lambda extension actions, these parameters are included in the Lambda request object.

  • tags :: Maybe (HashMap Text Text)

    Adds one or more tags for the specified extension. Tags are metadata that help you categorize resources in different ways, for example, by purpose, owner, or environment. Each tag consists of a key and an optional value, both of which you define.

  • name :: Text

    A name for the extension. Each extension name in your account must be unique. Extension versions use the same name.

  • actions :: HashMap ActionPoint (NonEmpty Action)

    The actions defined in the extension.

Instances

Instances details
ToJSON CreateExtension Source # 
Instance details

Defined in Amazonka.AppConfig.CreateExtension

ToHeaders CreateExtension Source # 
Instance details

Defined in Amazonka.AppConfig.CreateExtension

ToPath CreateExtension Source # 
Instance details

Defined in Amazonka.AppConfig.CreateExtension

ToQuery CreateExtension Source # 
Instance details

Defined in Amazonka.AppConfig.CreateExtension

AWSRequest CreateExtension Source # 
Instance details

Defined in Amazonka.AppConfig.CreateExtension

Associated Types

type AWSResponse CreateExtension #

Generic CreateExtension Source # 
Instance details

Defined in Amazonka.AppConfig.CreateExtension

Associated Types

type Rep CreateExtension :: Type -> Type #

Read CreateExtension Source # 
Instance details

Defined in Amazonka.AppConfig.CreateExtension

Show CreateExtension Source # 
Instance details

Defined in Amazonka.AppConfig.CreateExtension

NFData CreateExtension Source # 
Instance details

Defined in Amazonka.AppConfig.CreateExtension

Methods

rnf :: CreateExtension -> () #

Eq CreateExtension Source # 
Instance details

Defined in Amazonka.AppConfig.CreateExtension

Hashable CreateExtension Source # 
Instance details

Defined in Amazonka.AppConfig.CreateExtension

type AWSResponse CreateExtension Source # 
Instance details

Defined in Amazonka.AppConfig.CreateExtension

type Rep CreateExtension Source # 
Instance details

Defined in Amazonka.AppConfig.CreateExtension

newCreateExtension Source #

Create a value of CreateExtension 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:

CreateExtension, createExtension_description - Information about the extension.

$sel:latestVersionNumber:CreateExtension', createExtension_latestVersionNumber - You can omit this field when you create an extension. When you create a new version, specify the most recent current version number. For example, you create version 3, enter 2 for this field.

CreateExtension, createExtension_parameters - The parameters accepted by the extension. You specify parameter values when you associate the extension to an AppConfig resource by using the CreateExtensionAssociation API action. For Lambda extension actions, these parameters are included in the Lambda request object.

$sel:tags:CreateExtension', createExtension_tags - Adds one or more tags for the specified extension. Tags are metadata that help you categorize resources in different ways, for example, by purpose, owner, or environment. Each tag consists of a key and an optional value, both of which you define.

CreateExtension, createExtension_name - A name for the extension. Each extension name in your account must be unique. Extension versions use the same name.

CreateExtension, createExtension_actions - The actions defined in the extension.

Request Lenses

createExtension_description :: Lens' CreateExtension (Maybe Text) Source #

Information about the extension.

createExtension_latestVersionNumber :: Lens' CreateExtension (Maybe Int) Source #

You can omit this field when you create an extension. When you create a new version, specify the most recent current version number. For example, you create version 3, enter 2 for this field.

createExtension_parameters :: Lens' CreateExtension (Maybe (HashMap Text Parameter)) Source #

The parameters accepted by the extension. You specify parameter values when you associate the extension to an AppConfig resource by using the CreateExtensionAssociation API action. For Lambda extension actions, these parameters are included in the Lambda request object.

createExtension_tags :: Lens' CreateExtension (Maybe (HashMap Text Text)) Source #

Adds one or more tags for the specified extension. Tags are metadata that help you categorize resources in different ways, for example, by purpose, owner, or environment. Each tag consists of a key and an optional value, both of which you define.

createExtension_name :: Lens' CreateExtension Text Source #

A name for the extension. Each extension name in your account must be unique. Extension versions use the same name.

Destructuring the Response

data Extension Source #

See: newExtension smart constructor.

Constructors

Extension' 

Fields

Instances

Instances details
FromJSON Extension Source # 
Instance details

Defined in Amazonka.AppConfig.Types.Extension

Generic Extension Source # 
Instance details

Defined in Amazonka.AppConfig.Types.Extension

Associated Types

type Rep Extension :: Type -> Type #

Read Extension Source # 
Instance details

Defined in Amazonka.AppConfig.Types.Extension

Show Extension Source # 
Instance details

Defined in Amazonka.AppConfig.Types.Extension

NFData Extension Source # 
Instance details

Defined in Amazonka.AppConfig.Types.Extension

Methods

rnf :: Extension -> () #

Eq Extension Source # 
Instance details

Defined in Amazonka.AppConfig.Types.Extension

Hashable Extension Source # 
Instance details

Defined in Amazonka.AppConfig.Types.Extension

type Rep Extension Source # 
Instance details

Defined in Amazonka.AppConfig.Types.Extension

newExtension :: Extension Source #

Create a value of Extension 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:actions:Extension', extension_actions - The actions defined in the extension.

$sel:arn:Extension', extension_arn - The system-generated Amazon Resource Name (ARN) for the extension.

Extension, extension_description - Information about the extension.

$sel:id:Extension', extension_id - The system-generated ID of the extension.

Extension, extension_name - The extension name.

$sel:parameters:Extension', extension_parameters - The parameters accepted by the extension. You specify parameter values when you associate the extension to an AppConfig resource by using the CreateExtensionAssociation API action. For Lambda extension actions, these parameters are included in the Lambda request object.

$sel:versionNumber:Extension', extension_versionNumber - The extension version number.

Response Lenses

extension_actions :: Lens' Extension (Maybe (HashMap ActionPoint (NonEmpty Action))) Source #

The actions defined in the extension.

extension_arn :: Lens' Extension (Maybe Text) Source #

The system-generated Amazon Resource Name (ARN) for the extension.

extension_description :: Lens' Extension (Maybe Text) Source #

Information about the extension.

extension_id :: Lens' Extension (Maybe Text) Source #

The system-generated ID of the extension.

extension_name :: Lens' Extension (Maybe Text) Source #

The extension name.

extension_parameters :: Lens' Extension (Maybe (HashMap Text Parameter)) Source #

The parameters accepted by the extension. You specify parameter values when you associate the extension to an AppConfig resource by using the CreateExtensionAssociation API action. For Lambda extension actions, these parameters are included in the Lambda request object.

extension_versionNumber :: Lens' Extension (Maybe Int) Source #

The extension version number.