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 |
Amazonka.CloudFront.AssociateAlias
Description
Associates an alias (also known as a CNAME or an alternate domain name) with a CloudFront distribution.
With this operation you can move an alias that’s already in use on a CloudFront distribution to a different distribution in one step. This prevents the downtime that could occur if you first remove the alias from one distribution and then separately add the alias to another distribution.
To use this operation to associate an alias with a distribution, you provide the alias and the ID of the target distribution for the alias. For more information, including how to set up the target distribution, prerequisites that you must complete, and other restrictions, see Moving an alternate domain name to a different distribution in the Amazon CloudFront Developer Guide.
Synopsis
- data AssociateAlias = AssociateAlias' {}
- newAssociateAlias :: Text -> Text -> AssociateAlias
- associateAlias_targetDistributionId :: Lens' AssociateAlias Text
- associateAlias_alias :: Lens' AssociateAlias Text
- data AssociateAliasResponse = AssociateAliasResponse' {
- newAssociateAliasResponse :: AssociateAliasResponse
Creating a Request
data AssociateAlias Source #
See: newAssociateAlias
smart constructor.
Constructors
AssociateAlias' | |
Fields
|
Instances
Arguments
:: Text | |
-> Text | |
-> AssociateAlias |
Create a value of AssociateAlias
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:targetDistributionId:AssociateAlias'
, associateAlias_targetDistributionId
- The ID of the distribution that you’re associating the alias with.
$sel:alias:AssociateAlias'
, associateAlias_alias
- The alias (also known as a CNAME) to add to the target distribution.
Request Lenses
associateAlias_targetDistributionId :: Lens' AssociateAlias Text Source #
The ID of the distribution that you’re associating the alias with.
associateAlias_alias :: Lens' AssociateAlias Text Source #
The alias (also known as a CNAME) to add to the target distribution.
Destructuring the Response
data AssociateAliasResponse Source #
See: newAssociateAliasResponse
smart constructor.
Constructors
AssociateAliasResponse' | |
Instances
newAssociateAliasResponse :: AssociateAliasResponse Source #
Create a value of AssociateAliasResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.