| 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 |
Amazonka.Lambda.UpdateAlias
Description
Updates the configuration of a Lambda function alias.
Synopsis
- data UpdateAlias = UpdateAlias' {}
- newUpdateAlias :: Text -> Text -> UpdateAlias
- updateAlias_description :: Lens' UpdateAlias (Maybe Text)
- updateAlias_functionVersion :: Lens' UpdateAlias (Maybe Text)
- updateAlias_revisionId :: Lens' UpdateAlias (Maybe Text)
- updateAlias_routingConfig :: Lens' UpdateAlias (Maybe AliasRoutingConfiguration)
- updateAlias_functionName :: Lens' UpdateAlias Text
- updateAlias_name :: Lens' UpdateAlias Text
- data AliasConfiguration = AliasConfiguration' {}
- newAliasConfiguration :: AliasConfiguration
- aliasConfiguration_aliasArn :: Lens' AliasConfiguration (Maybe Text)
- aliasConfiguration_description :: Lens' AliasConfiguration (Maybe Text)
- aliasConfiguration_functionVersion :: Lens' AliasConfiguration (Maybe Text)
- aliasConfiguration_name :: Lens' AliasConfiguration (Maybe Text)
- aliasConfiguration_revisionId :: Lens' AliasConfiguration (Maybe Text)
- aliasConfiguration_routingConfig :: Lens' AliasConfiguration (Maybe AliasRoutingConfiguration)
Creating a Request
data UpdateAlias Source #
See: newUpdateAlias smart constructor.
Constructors
| UpdateAlias' | |
Fields
| |
Instances
Arguments
| :: Text | |
| -> Text | |
| -> UpdateAlias |
Create a value of UpdateAlias 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:
UpdateAlias, updateAlias_description - A description of the alias.
UpdateAlias, updateAlias_functionVersion - The function version that the alias invokes.
UpdateAlias, updateAlias_revisionId - Only update the alias if the revision ID matches the ID that's
specified. Use this option to avoid modifying an alias that has changed
since you last read it.
UpdateAlias, updateAlias_routingConfig - The
routing configuration
of the alias.
UpdateAlias, updateAlias_functionName - The name of the Lambda function.
Name formats
- Function name -
MyFunction. - Function ARN -
arn:aws:lambda:us-west-2:123456789012:function:MyFunction. - Partial ARN -
123456789012:function:MyFunction.
The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.
UpdateAlias, updateAlias_name - The name of the alias.
Request Lenses
updateAlias_description :: Lens' UpdateAlias (Maybe Text) Source #
A description of the alias.
updateAlias_functionVersion :: Lens' UpdateAlias (Maybe Text) Source #
The function version that the alias invokes.
updateAlias_revisionId :: Lens' UpdateAlias (Maybe Text) Source #
Only update the alias if the revision ID matches the ID that's specified. Use this option to avoid modifying an alias that has changed since you last read it.
updateAlias_routingConfig :: Lens' UpdateAlias (Maybe AliasRoutingConfiguration) Source #
The routing configuration of the alias.
updateAlias_functionName :: Lens' UpdateAlias Text Source #
The name of the Lambda function.
Name formats
- Function name -
MyFunction. - Function ARN -
arn:aws:lambda:us-west-2:123456789012:function:MyFunction. - Partial ARN -
123456789012:function:MyFunction.
The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.
updateAlias_name :: Lens' UpdateAlias Text Source #
The name of the alias.
Destructuring the Response
data AliasConfiguration Source #
Provides configuration information about a Lambda function alias.
See: newAliasConfiguration smart constructor.
Constructors
| AliasConfiguration' | |
Fields
| |
Instances
newAliasConfiguration :: AliasConfiguration Source #
Create a value of AliasConfiguration 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:aliasArn:AliasConfiguration', aliasConfiguration_aliasArn - The Amazon Resource Name (ARN) of the alias.
$sel:description:AliasConfiguration', aliasConfiguration_description - A description of the alias.
$sel:functionVersion:AliasConfiguration', aliasConfiguration_functionVersion - The function version that the alias invokes.
$sel:name:AliasConfiguration', aliasConfiguration_name - The name of the alias.
$sel:revisionId:AliasConfiguration', aliasConfiguration_revisionId - A unique identifier that changes when you update the alias.
$sel:routingConfig:AliasConfiguration', aliasConfiguration_routingConfig - The
routing configuration
of the alias.
Response Lenses
aliasConfiguration_aliasArn :: Lens' AliasConfiguration (Maybe Text) Source #
The Amazon Resource Name (ARN) of the alias.
aliasConfiguration_description :: Lens' AliasConfiguration (Maybe Text) Source #
A description of the alias.
aliasConfiguration_functionVersion :: Lens' AliasConfiguration (Maybe Text) Source #
The function version that the alias invokes.
aliasConfiguration_name :: Lens' AliasConfiguration (Maybe Text) Source #
The name of the alias.
aliasConfiguration_revisionId :: Lens' AliasConfiguration (Maybe Text) Source #
A unique identifier that changes when you update the alias.
aliasConfiguration_routingConfig :: Lens' AliasConfiguration (Maybe AliasRoutingConfiguration) Source #
The routing configuration of the alias.