Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Updates the template alias of a template.
Synopsis
- data UpdateTemplateAlias = UpdateTemplateAlias' {}
- newUpdateTemplateAlias :: Text -> Text -> Text -> Natural -> UpdateTemplateAlias
- updateTemplateAlias_awsAccountId :: Lens' UpdateTemplateAlias Text
- updateTemplateAlias_templateId :: Lens' UpdateTemplateAlias Text
- updateTemplateAlias_aliasName :: Lens' UpdateTemplateAlias Text
- updateTemplateAlias_templateVersionNumber :: Lens' UpdateTemplateAlias Natural
- data UpdateTemplateAliasResponse = UpdateTemplateAliasResponse' {}
- newUpdateTemplateAliasResponse :: Int -> UpdateTemplateAliasResponse
- updateTemplateAliasResponse_requestId :: Lens' UpdateTemplateAliasResponse (Maybe Text)
- updateTemplateAliasResponse_templateAlias :: Lens' UpdateTemplateAliasResponse (Maybe TemplateAlias)
- updateTemplateAliasResponse_status :: Lens' UpdateTemplateAliasResponse Int
Creating a Request
data UpdateTemplateAlias Source #
See: newUpdateTemplateAlias
smart constructor.
UpdateTemplateAlias' | |
|
Instances
newUpdateTemplateAlias Source #
:: Text | |
-> Text | |
-> Text | |
-> Natural | |
-> UpdateTemplateAlias |
Create a value of UpdateTemplateAlias
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:awsAccountId:UpdateTemplateAlias'
, updateTemplateAlias_awsAccountId
- The ID of the Amazon Web Services account that contains the template
alias that you're updating.
$sel:templateId:UpdateTemplateAlias'
, updateTemplateAlias_templateId
- The ID for the template.
$sel:aliasName:UpdateTemplateAlias'
, updateTemplateAlias_aliasName
- The alias of the template that you want to update. If you name a
specific alias, you update the version that the alias points to. You can
specify the latest version of the template by providing the keyword
$LATEST
in the AliasName
parameter. The keyword $PUBLISHED
doesn't apply to templates.
$sel:templateVersionNumber:UpdateTemplateAlias'
, updateTemplateAlias_templateVersionNumber
- The version number of the template.
Request Lenses
updateTemplateAlias_awsAccountId :: Lens' UpdateTemplateAlias Text Source #
The ID of the Amazon Web Services account that contains the template alias that you're updating.
updateTemplateAlias_templateId :: Lens' UpdateTemplateAlias Text Source #
The ID for the template.
updateTemplateAlias_aliasName :: Lens' UpdateTemplateAlias Text Source #
The alias of the template that you want to update. If you name a
specific alias, you update the version that the alias points to. You can
specify the latest version of the template by providing the keyword
$LATEST
in the AliasName
parameter. The keyword $PUBLISHED
doesn't apply to templates.
updateTemplateAlias_templateVersionNumber :: Lens' UpdateTemplateAlias Natural Source #
The version number of the template.
Destructuring the Response
data UpdateTemplateAliasResponse Source #
See: newUpdateTemplateAliasResponse
smart constructor.
UpdateTemplateAliasResponse' | |
|
Instances
newUpdateTemplateAliasResponse Source #
Create a value of UpdateTemplateAliasResponse
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:requestId:UpdateTemplateAliasResponse'
, updateTemplateAliasResponse_requestId
- The Amazon Web Services request ID for this operation.
$sel:templateAlias:UpdateTemplateAliasResponse'
, updateTemplateAliasResponse_templateAlias
- The template alias.
$sel:status:UpdateTemplateAliasResponse'
, updateTemplateAliasResponse_status
- The HTTP status of the request.
Response Lenses
updateTemplateAliasResponse_requestId :: Lens' UpdateTemplateAliasResponse (Maybe Text) Source #
The Amazon Web Services request ID for this operation.
updateTemplateAliasResponse_templateAlias :: Lens' UpdateTemplateAliasResponse (Maybe TemplateAlias) Source #
The template alias.
updateTemplateAliasResponse_status :: Lens' UpdateTemplateAliasResponse Int Source #
The HTTP status of the request.