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 name.
Synopsis
- data CreateDomainName = CreateDomainName' {
- certificateName :: Maybe Text
- ownershipVerificationCertificateArn :: Maybe Text
- regionalCertificateArn :: Maybe Text
- certificateArn :: Maybe Text
- securityPolicy :: Maybe SecurityPolicy
- mutualTlsAuthentication :: Maybe MutualTlsAuthenticationInput
- certificatePrivateKey :: Maybe Text
- regionalCertificateName :: Maybe Text
- certificateBody :: Maybe Text
- certificateChain :: Maybe Text
- endpointConfiguration :: Maybe EndpointConfiguration
- tags :: Maybe (HashMap Text Text)
- domainName :: Text
- newCreateDomainName :: Text -> CreateDomainName
- createDomainName_certificateName :: Lens' CreateDomainName (Maybe Text)
- createDomainName_ownershipVerificationCertificateArn :: Lens' CreateDomainName (Maybe Text)
- createDomainName_regionalCertificateArn :: Lens' CreateDomainName (Maybe Text)
- createDomainName_certificateArn :: Lens' CreateDomainName (Maybe Text)
- createDomainName_securityPolicy :: Lens' CreateDomainName (Maybe SecurityPolicy)
- createDomainName_mutualTlsAuthentication :: Lens' CreateDomainName (Maybe MutualTlsAuthenticationInput)
- createDomainName_certificatePrivateKey :: Lens' CreateDomainName (Maybe Text)
- createDomainName_regionalCertificateName :: Lens' CreateDomainName (Maybe Text)
- createDomainName_certificateBody :: Lens' CreateDomainName (Maybe Text)
- createDomainName_certificateChain :: Lens' CreateDomainName (Maybe Text)
- createDomainName_endpointConfiguration :: Lens' CreateDomainName (Maybe EndpointConfiguration)
- createDomainName_tags :: Lens' CreateDomainName (Maybe (HashMap Text Text))
- createDomainName_domainName :: Lens' CreateDomainName Text
- data DomainName = DomainName' {
- regionalHostedZoneId :: Maybe Text
- certificateName :: Maybe Text
- ownershipVerificationCertificateArn :: Maybe Text
- regionalCertificateArn :: Maybe Text
- certificateArn :: Maybe Text
- distributionHostedZoneId :: Maybe Text
- securityPolicy :: Maybe SecurityPolicy
- domainName :: Maybe Text
- mutualTlsAuthentication :: Maybe MutualTlsAuthentication
- regionalCertificateName :: Maybe Text
- regionalDomainName :: Maybe Text
- certificateUploadDate :: Maybe POSIX
- distributionDomainName :: Maybe Text
- domainNameStatusMessage :: Maybe Text
- endpointConfiguration :: Maybe EndpointConfiguration
- domainNameStatus :: Maybe DomainNameStatus
- tags :: Maybe (HashMap Text Text)
- newDomainName :: DomainName
- domainName_regionalHostedZoneId :: Lens' DomainName (Maybe Text)
- domainName_certificateName :: Lens' DomainName (Maybe Text)
- domainName_ownershipVerificationCertificateArn :: Lens' DomainName (Maybe Text)
- domainName_regionalCertificateArn :: Lens' DomainName (Maybe Text)
- domainName_certificateArn :: Lens' DomainName (Maybe Text)
- domainName_distributionHostedZoneId :: Lens' DomainName (Maybe Text)
- domainName_securityPolicy :: Lens' DomainName (Maybe SecurityPolicy)
- domainName_domainName :: Lens' DomainName (Maybe Text)
- domainName_mutualTlsAuthentication :: Lens' DomainName (Maybe MutualTlsAuthentication)
- domainName_regionalCertificateName :: Lens' DomainName (Maybe Text)
- domainName_regionalDomainName :: Lens' DomainName (Maybe Text)
- domainName_certificateUploadDate :: Lens' DomainName (Maybe UTCTime)
- domainName_distributionDomainName :: Lens' DomainName (Maybe Text)
- domainName_domainNameStatusMessage :: Lens' DomainName (Maybe Text)
- domainName_endpointConfiguration :: Lens' DomainName (Maybe EndpointConfiguration)
- domainName_domainNameStatus :: Lens' DomainName (Maybe DomainNameStatus)
- domainName_tags :: Lens' DomainName (Maybe (HashMap Text Text))
Creating a Request
data CreateDomainName Source #
A request to create a new domain name.
See: newCreateDomainName
smart constructor.
CreateDomainName' | |
|
Instances
Create a value of CreateDomainName
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:certificateName:CreateDomainName'
, createDomainName_certificateName
- The user-friendly name of the certificate that will be used by
edge-optimized endpoint for this domain name.
$sel:ownershipVerificationCertificateArn:CreateDomainName'
, createDomainName_ownershipVerificationCertificateArn
- The ARN of the public certificate issued by ACM to validate ownership of
your custom domain. Only required when configuring mutual TLS and using
an ACM imported or private CA certificate ARN as the
regionalCertificateArn.
$sel:regionalCertificateArn:CreateDomainName'
, createDomainName_regionalCertificateArn
- The reference to an AWS-managed certificate that will be used by
regional endpoint for this domain name. AWS Certificate Manager is the
only supported source.
$sel:certificateArn:CreateDomainName'
, createDomainName_certificateArn
- The reference to an AWS-managed certificate that will be used by
edge-optimized endpoint for this domain name. AWS Certificate Manager is
the only supported source.
$sel:securityPolicy:CreateDomainName'
, createDomainName_securityPolicy
- The Transport Layer Security (TLS) version + cipher suite for this
DomainName. The valid values are TLS_1_0
and TLS_1_2
.
$sel:mutualTlsAuthentication:CreateDomainName'
, createDomainName_mutualTlsAuthentication
- Undocumented member.
$sel:certificatePrivateKey:CreateDomainName'
, createDomainName_certificatePrivateKey
- [Deprecated] Your edge-optimized endpoint's domain name certificate's
private key.
$sel:regionalCertificateName:CreateDomainName'
, createDomainName_regionalCertificateName
- The user-friendly name of the certificate that will be used by regional
endpoint for this domain name.
$sel:certificateBody:CreateDomainName'
, createDomainName_certificateBody
- [Deprecated] The body of the server certificate that will be used by
edge-optimized endpoint for this domain name provided by your
certificate authority.
$sel:certificateChain:CreateDomainName'
, createDomainName_certificateChain
- [Deprecated] The intermediate certificates and optionally the root
certificate, one after the other without any blank lines, used by an
edge-optimized endpoint for this domain name. If you include the root
certificate, your certificate chain must start with intermediate
certificates and end with the root certificate. Use the intermediate
certificates that were provided by your certificate authority. Do not
include any intermediaries that are not in the chain of trust path.
$sel:endpointConfiguration:CreateDomainName'
, createDomainName_endpointConfiguration
- The endpoint configuration of this DomainName showing the endpoint types
of the domain name.
$sel:tags:CreateDomainName'
, createDomainName_tags
- The key-value map of strings. The valid character set is
[a-zA-Z+-=._:/]. The tag key can be up to 128 characters and must not
start with aws:
. The tag value can be up to 256 characters.
$sel:domainName:CreateDomainName'
, createDomainName_domainName
- [Required] The name of the DomainName resource.
Request Lenses
createDomainName_certificateName :: Lens' CreateDomainName (Maybe Text) Source #
The user-friendly name of the certificate that will be used by edge-optimized endpoint for this domain name.
createDomainName_ownershipVerificationCertificateArn :: Lens' CreateDomainName (Maybe Text) Source #
The ARN of the public certificate issued by ACM to validate ownership of your custom domain. Only required when configuring mutual TLS and using an ACM imported or private CA certificate ARN as the regionalCertificateArn.
createDomainName_regionalCertificateArn :: Lens' CreateDomainName (Maybe Text) Source #
The reference to an AWS-managed certificate that will be used by regional endpoint for this domain name. AWS Certificate Manager is the only supported source.
createDomainName_certificateArn :: Lens' CreateDomainName (Maybe Text) Source #
The reference to an AWS-managed certificate that will be used by edge-optimized endpoint for this domain name. AWS Certificate Manager is the only supported source.
createDomainName_securityPolicy :: Lens' CreateDomainName (Maybe SecurityPolicy) Source #
The Transport Layer Security (TLS) version + cipher suite for this
DomainName. The valid values are TLS_1_0
and TLS_1_2
.
createDomainName_mutualTlsAuthentication :: Lens' CreateDomainName (Maybe MutualTlsAuthenticationInput) Source #
Undocumented member.
createDomainName_certificatePrivateKey :: Lens' CreateDomainName (Maybe Text) Source #
- Deprecated
- Your edge-optimized endpoint's domain name certificate's private key.
createDomainName_regionalCertificateName :: Lens' CreateDomainName (Maybe Text) Source #
The user-friendly name of the certificate that will be used by regional endpoint for this domain name.
createDomainName_certificateBody :: Lens' CreateDomainName (Maybe Text) Source #
- Deprecated
- The body of the server certificate that will be used by edge-optimized endpoint for this domain name provided by your certificate authority.
createDomainName_certificateChain :: Lens' CreateDomainName (Maybe Text) Source #
- Deprecated
- The intermediate certificates and optionally the root certificate, one after the other without any blank lines, used by an edge-optimized endpoint for this domain name. If you include the root certificate, your certificate chain must start with intermediate certificates and end with the root certificate. Use the intermediate certificates that were provided by your certificate authority. Do not include any intermediaries that are not in the chain of trust path.
createDomainName_endpointConfiguration :: Lens' CreateDomainName (Maybe EndpointConfiguration) Source #
The endpoint configuration of this DomainName showing the endpoint types of the domain name.
createDomainName_tags :: Lens' CreateDomainName (Maybe (HashMap Text Text)) Source #
The key-value map of strings. The valid character set is
[a-zA-Z+-=._:/]. The tag key can be up to 128 characters and must not
start with aws:
. The tag value can be up to 256 characters.
createDomainName_domainName :: Lens' CreateDomainName Text Source #
- Required
- The name of the DomainName resource.
Destructuring the Response
data DomainName Source #
Represents a custom domain name as a user-friendly host name of an API (RestApi).
When you deploy an API, API Gateway creates a default host name for the
API. This default API host name is of the
{restapi-id}.execute-api.{region}.amazonaws.com
format. With the
default host name, you can access the API's root resource with the URL
of
https://{restapi-id}.execute-api.{region}.amazonaws.com/{stage}/
.
When you set up a custom domain name of apis.example.com
for this API,
you can then access the same resource using the URL of the
https://apis.examples.com/myApi
, where myApi
is the base path
mapping (BasePathMapping) of your API under the custom domain name.
Set a Custom Host Name for an API
See: newDomainName
smart constructor.
DomainName' | |
|
Instances
newDomainName :: DomainName Source #
Create a value of DomainName
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:regionalHostedZoneId:DomainName'
, domainName_regionalHostedZoneId
- The region-specific Amazon Route 53 Hosted Zone ID of the regional
endpoint. For more information, see
Set up a Regional Custom Domain Name
and
AWS Regions and Endpoints for API Gateway.
$sel:certificateName:DomainName'
, domainName_certificateName
- The name of the certificate that will be used by edge-optimized endpoint
for this domain name.
$sel:ownershipVerificationCertificateArn:DomainName'
, domainName_ownershipVerificationCertificateArn
- The ARN of the public certificate issued by ACM to validate ownership of
your custom domain. Only required when configuring mutual TLS and using
an ACM imported or private CA certificate ARN as the
regionalCertificateArn.
$sel:regionalCertificateArn:DomainName'
, domainName_regionalCertificateArn
- The reference to an AWS-managed certificate that will be used for
validating the regional domain name. AWS Certificate Manager is the only
supported source.
$sel:certificateArn:DomainName'
, domainName_certificateArn
- The reference to an AWS-managed certificate that will be used by
edge-optimized endpoint for this domain name. AWS Certificate Manager is
the only supported source.
$sel:distributionHostedZoneId:DomainName'
, domainName_distributionHostedZoneId
- The region-agnostic Amazon Route 53 Hosted Zone ID of the edge-optimized
endpoint. The valid value is Z2FDTNDATAQYW2
for all the regions. For
more information, see
Set up a Regional Custom Domain Name
and
AWS Regions and Endpoints for API Gateway.
$sel:securityPolicy:DomainName'
, domainName_securityPolicy
- The Transport Layer Security (TLS) version + cipher suite for this
DomainName. The valid values are TLS_1_0
and TLS_1_2
.
$sel:domainName:DomainName'
, domainName_domainName
- The custom domain name as an API host name, for example,
my-api.example.com
.
$sel:mutualTlsAuthentication:DomainName'
, domainName_mutualTlsAuthentication
- The mutual TLS authentication configuration for a custom domain name. If
specified, API Gateway performs two-way authentication between the
client and the server. Clients must present a trusted certificate to
access your API.
$sel:regionalCertificateName:DomainName'
, domainName_regionalCertificateName
- The name of the certificate that will be used for validating the
regional domain name.
$sel:regionalDomainName:DomainName'
, domainName_regionalDomainName
- The domain name associated with the regional endpoint for this custom
domain name. You set up this association by adding a DNS record that
points the custom domain name to this regional domain name. The regional
domain name is returned by API Gateway when you create a regional
endpoint.
$sel:certificateUploadDate:DomainName'
, domainName_certificateUploadDate
- The timestamp when the certificate that was used by edge-optimized
endpoint for this domain name was uploaded.
$sel:distributionDomainName:DomainName'
, domainName_distributionDomainName
- The domain name of the Amazon CloudFront distribution associated with
this custom domain name for an edge-optimized endpoint. You set up this
association when adding a DNS record pointing the custom domain name to
this distribution name. For more information about CloudFront
distributions, see the
Amazon CloudFront documentation.
$sel:domainNameStatusMessage:DomainName'
, domainName_domainNameStatusMessage
- An optional text message containing detailed information about status of
the DomainName migration.
$sel:endpointConfiguration:DomainName'
, domainName_endpointConfiguration
- The endpoint configuration of this DomainName showing the endpoint types
of the domain name.
$sel:domainNameStatus:DomainName'
, domainName_domainNameStatus
- The status of the DomainName migration. The valid values are
AVAILABLE
, UPDATING
, PENDING_CERTIFICATE_REIMPORT
, and
PENDING_OWNERSHIP_VERIFICATION
. If the status is UPDATING
, the
domain cannot be modified further until the existing operation is
complete. If it is AVAILABLE
, the domain can be updated.
$sel:tags:DomainName'
, domainName_tags
- The collection of tags. Each tag element is associated with a given
resource.
Response Lenses
domainName_regionalHostedZoneId :: Lens' DomainName (Maybe Text) Source #
The region-specific Amazon Route 53 Hosted Zone ID of the regional endpoint. For more information, see Set up a Regional Custom Domain Name and AWS Regions and Endpoints for API Gateway.
domainName_certificateName :: Lens' DomainName (Maybe Text) Source #
The name of the certificate that will be used by edge-optimized endpoint for this domain name.
domainName_ownershipVerificationCertificateArn :: Lens' DomainName (Maybe Text) Source #
The ARN of the public certificate issued by ACM to validate ownership of your custom domain. Only required when configuring mutual TLS and using an ACM imported or private CA certificate ARN as the regionalCertificateArn.
domainName_regionalCertificateArn :: Lens' DomainName (Maybe Text) Source #
The reference to an AWS-managed certificate that will be used for validating the regional domain name. AWS Certificate Manager is the only supported source.
domainName_certificateArn :: Lens' DomainName (Maybe Text) Source #
The reference to an AWS-managed certificate that will be used by edge-optimized endpoint for this domain name. AWS Certificate Manager is the only supported source.
domainName_distributionHostedZoneId :: Lens' DomainName (Maybe Text) Source #
The region-agnostic Amazon Route 53 Hosted Zone ID of the edge-optimized
endpoint. The valid value is Z2FDTNDATAQYW2
for all the regions. For
more information, see
Set up a Regional Custom Domain Name
and
AWS Regions and Endpoints for API Gateway.
domainName_securityPolicy :: Lens' DomainName (Maybe SecurityPolicy) Source #
The Transport Layer Security (TLS) version + cipher suite for this
DomainName. The valid values are TLS_1_0
and TLS_1_2
.
domainName_domainName :: Lens' DomainName (Maybe Text) Source #
The custom domain name as an API host name, for example,
my-api.example.com
.
domainName_mutualTlsAuthentication :: Lens' DomainName (Maybe MutualTlsAuthentication) Source #
The mutual TLS authentication configuration for a custom domain name. If specified, API Gateway performs two-way authentication between the client and the server. Clients must present a trusted certificate to access your API.
domainName_regionalCertificateName :: Lens' DomainName (Maybe Text) Source #
The name of the certificate that will be used for validating the regional domain name.
domainName_regionalDomainName :: Lens' DomainName (Maybe Text) Source #
The domain name associated with the regional endpoint for this custom domain name. You set up this association by adding a DNS record that points the custom domain name to this regional domain name. The regional domain name is returned by API Gateway when you create a regional endpoint.
domainName_certificateUploadDate :: Lens' DomainName (Maybe UTCTime) Source #
The timestamp when the certificate that was used by edge-optimized endpoint for this domain name was uploaded.
domainName_distributionDomainName :: Lens' DomainName (Maybe Text) Source #
The domain name of the Amazon CloudFront distribution associated with this custom domain name for an edge-optimized endpoint. You set up this association when adding a DNS record pointing the custom domain name to this distribution name. For more information about CloudFront distributions, see the Amazon CloudFront documentation.
domainName_domainNameStatusMessage :: Lens' DomainName (Maybe Text) Source #
An optional text message containing detailed information about status of the DomainName migration.
domainName_endpointConfiguration :: Lens' DomainName (Maybe EndpointConfiguration) Source #
The endpoint configuration of this DomainName showing the endpoint types of the domain name.
domainName_domainNameStatus :: Lens' DomainName (Maybe DomainNameStatus) Source #
The status of the DomainName migration. The valid values are
AVAILABLE
, UPDATING
, PENDING_CERTIFICATE_REIMPORT
, and
PENDING_OWNERSHIP_VERIFICATION
. If the status is UPDATING
, the
domain cannot be modified further until the existing operation is
complete. If it is AVAILABLE
, the domain can be updated.
domainName_tags :: Lens' DomainName (Maybe (HashMap Text Text)) Source #
The collection of tags. Each tag element is associated with a given resource.