The Custom::CertificateDNSRecord
returns the DNS record for a domain name on a certificate.
To declare this entity in your AWS CloudFormation template, use the following syntax:
DomainDNSRecord:
Type: Custom::CertificateDNSRecord
Properties:
CertificateArn: !Ref Certificate
DomainName: !Ref DomainName
ServiceToken: !Sub 'arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:binxio-cfn-certificate-provider'
You can specify the following properties:
"CertificateArn" - of the certificate to get the DNS record for (required).
"DomainName" - on the certificate to get the DNS record for (required).
"ServiceToken" - pointing to the function implementing this resource (required).
The resource returns the Name of the DNS record.
With 'Fn::GetAtt' the following values are available:
Name
- of the DNS recordD for the DomainName on the certificate.Type
- of the DNS record for DomainName on the certificate.Value
- of the DNS record for DomainName on the certificate.
For more information about using Fn::GetAtt, see Fn::GetAtt.