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 |
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.
AssociateAlias' | |
|
Instances
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.
Instances
Eq AssociateAliasResponse Source # | |
Defined in Amazonka.CloudFront.AssociateAlias | |
Read AssociateAliasResponse Source # | |
Show AssociateAliasResponse Source # | |
Defined in Amazonka.CloudFront.AssociateAlias showsPrec :: Int -> AssociateAliasResponse -> ShowS # show :: AssociateAliasResponse -> String # showList :: [AssociateAliasResponse] -> ShowS # | |
Generic AssociateAliasResponse Source # | |
Defined in Amazonka.CloudFront.AssociateAlias type Rep AssociateAliasResponse :: Type -> Type # | |
NFData AssociateAliasResponse Source # | |
Defined in Amazonka.CloudFront.AssociateAlias rnf :: AssociateAliasResponse -> () # | |
type Rep AssociateAliasResponse Source # | |
Defined in Amazonka.CloudFront.AssociateAlias |
newAssociateAliasResponse :: AssociateAliasResponse Source #
Create a value of AssociateAliasResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.