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 |
Creates a new domain association for an Amplify app. This action associates a custom domain with the Amplify app
Synopsis
- data CreateDomainAssociation = CreateDomainAssociation' {}
- newCreateDomainAssociation :: Text -> Text -> CreateDomainAssociation
- createDomainAssociation_enableAutoSubDomain :: Lens' CreateDomainAssociation (Maybe Bool)
- createDomainAssociation_autoSubDomainCreationPatterns :: Lens' CreateDomainAssociation (Maybe [Text])
- createDomainAssociation_autoSubDomainIAMRole :: Lens' CreateDomainAssociation (Maybe Text)
- createDomainAssociation_appId :: Lens' CreateDomainAssociation Text
- createDomainAssociation_domainName :: Lens' CreateDomainAssociation Text
- createDomainAssociation_subDomainSettings :: Lens' CreateDomainAssociation [SubDomainSetting]
- data CreateDomainAssociationResponse = CreateDomainAssociationResponse' {}
- newCreateDomainAssociationResponse :: Int -> DomainAssociation -> CreateDomainAssociationResponse
- createDomainAssociationResponse_httpStatus :: Lens' CreateDomainAssociationResponse Int
- createDomainAssociationResponse_domainAssociation :: Lens' CreateDomainAssociationResponse DomainAssociation
Creating a Request
data CreateDomainAssociation Source #
The request structure for the create domain association request.
See: newCreateDomainAssociation
smart constructor.
CreateDomainAssociation' | |
|
Instances
newCreateDomainAssociation Source #
:: Text | |
-> Text | |
-> CreateDomainAssociation |
Create a value of CreateDomainAssociation
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:enableAutoSubDomain:CreateDomainAssociation'
, createDomainAssociation_enableAutoSubDomain
- Enables the automated creation of subdomains for branches.
$sel:autoSubDomainCreationPatterns:CreateDomainAssociation'
, createDomainAssociation_autoSubDomainCreationPatterns
- Sets the branch patterns for automatic subdomain creation.
$sel:autoSubDomainIAMRole:CreateDomainAssociation'
, createDomainAssociation_autoSubDomainIAMRole
- The required AWS Identity and Access Management (IAM) service role for
the Amazon Resource Name (ARN) for automatically creating subdomains.
$sel:appId:CreateDomainAssociation'
, createDomainAssociation_appId
- The unique ID for an Amplify app.
$sel:domainName:CreateDomainAssociation'
, createDomainAssociation_domainName
- The domain name for the domain association.
$sel:subDomainSettings:CreateDomainAssociation'
, createDomainAssociation_subDomainSettings
- The setting for the subdomain.
Request Lenses
createDomainAssociation_enableAutoSubDomain :: Lens' CreateDomainAssociation (Maybe Bool) Source #
Enables the automated creation of subdomains for branches.
createDomainAssociation_autoSubDomainCreationPatterns :: Lens' CreateDomainAssociation (Maybe [Text]) Source #
Sets the branch patterns for automatic subdomain creation.
createDomainAssociation_autoSubDomainIAMRole :: Lens' CreateDomainAssociation (Maybe Text) Source #
The required AWS Identity and Access Management (IAM) service role for the Amazon Resource Name (ARN) for automatically creating subdomains.
createDomainAssociation_appId :: Lens' CreateDomainAssociation Text Source #
The unique ID for an Amplify app.
createDomainAssociation_domainName :: Lens' CreateDomainAssociation Text Source #
The domain name for the domain association.
createDomainAssociation_subDomainSettings :: Lens' CreateDomainAssociation [SubDomainSetting] Source #
The setting for the subdomain.
Destructuring the Response
data CreateDomainAssociationResponse Source #
The result structure for the create domain association request.
See: newCreateDomainAssociationResponse
smart constructor.
CreateDomainAssociationResponse' | |
|
Instances
Eq CreateDomainAssociationResponse Source # | |
Read CreateDomainAssociationResponse Source # | |
Show CreateDomainAssociationResponse Source # | |
Defined in Amazonka.Amplify.CreateDomainAssociation | |
Generic CreateDomainAssociationResponse Source # | |
NFData CreateDomainAssociationResponse Source # | |
Defined in Amazonka.Amplify.CreateDomainAssociation rnf :: CreateDomainAssociationResponse -> () # | |
type Rep CreateDomainAssociationResponse Source # | |
Defined in Amazonka.Amplify.CreateDomainAssociation type Rep CreateDomainAssociationResponse = D1 ('MetaData "CreateDomainAssociationResponse" "Amazonka.Amplify.CreateDomainAssociation" "libZSservicesZSamazonka-amplifyZSamazonka-amplify" 'False) (C1 ('MetaCons "CreateDomainAssociationResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int) :*: S1 ('MetaSel ('Just "domainAssociation") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 DomainAssociation))) |
newCreateDomainAssociationResponse Source #
Create a value of CreateDomainAssociationResponse
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:httpStatus:CreateDomainAssociationResponse'
, createDomainAssociationResponse_httpStatus
- The response's http status code.
$sel:domainAssociation:CreateDomainAssociationResponse'
, createDomainAssociationResponse_domainAssociation
- Describes the structure of a domain association, which associates a
custom domain with an Amplify app.
Response Lenses
createDomainAssociationResponse_httpStatus :: Lens' CreateDomainAssociationResponse Int Source #
The response's http status code.
createDomainAssociationResponse_domainAssociation :: Lens' CreateDomainAssociationResponse DomainAssociation Source #
Describes the structure of a domain association, which associates a custom domain with an Amplify app.