Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
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
- data CreateExtension = CreateExtension' {}
- newCreateExtension :: Text -> CreateExtension
- createExtension_description :: Lens' CreateExtension (Maybe Text)
- createExtension_latestVersionNumber :: Lens' CreateExtension (Maybe Int)
- createExtension_parameters :: Lens' CreateExtension (Maybe (HashMap Text Parameter))
- createExtension_tags :: Lens' CreateExtension (Maybe (HashMap Text Text))
- createExtension_name :: Lens' CreateExtension Text
- createExtension_actions :: Lens' CreateExtension (HashMap ActionPoint (NonEmpty Action))
- data Extension = Extension' {}
- newExtension :: Extension
- extension_actions :: Lens' Extension (Maybe (HashMap ActionPoint (NonEmpty Action)))
- extension_arn :: Lens' Extension (Maybe Text)
- extension_description :: Lens' Extension (Maybe Text)
- extension_id :: Lens' Extension (Maybe Text)
- extension_name :: Lens' Extension (Maybe Text)
- extension_parameters :: Lens' Extension (Maybe (HashMap Text Parameter))
- extension_versionNumber :: Lens' Extension (Maybe Int)
Creating a Request
data CreateExtension Source #
See: newCreateExtension
smart constructor.
CreateExtension' | |
|
Instances
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.
createExtension_actions :: Lens' CreateExtension (HashMap ActionPoint (NonEmpty Action)) Source #
The actions defined in the extension.
Destructuring the Response
See: newExtension
smart constructor.
Extension' | |
|
Instances
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_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.