Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rename
Browse files Browse the repository at this point in the history
spg committed Mar 12, 2019
1 parent 424cfe3 commit e89632f
Showing 3 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions packages/@aws-cdk/aws-certificatemanager/README.md
Original file line number Diff line number Diff line change
@@ -17,14 +17,14 @@ zone `example.com` that provides authoritative records for the domain.

```ts
import { HostedZoneProvider } from '@aws-cdk/aws-route53';
import { DNSValidatedCertificate } from '@aws-cdk/aws-certificatemanager';
import { DnsValidatedCertificate } from '@aws-cdk/aws-certificatemanager';

const hostedZone = new HostedZoneProvider(this, {
domainName: 'example.com',
privateZone: false
}).findAndImport(this, 'ExampleDotCom');

const certificate = new DNSValidatedCertificate(this, 'TestCertificate', {
const certificate = new DnsValidatedCertificate(this, 'TestCertificate', {
domainName: 'test.example.com',
hostedZone: hostedZone
});
Original file line number Diff line number Diff line change
@@ -6,7 +6,7 @@ import cdk = require('@aws-cdk/cdk');
import path = require('path');
import { CertificateImportProps, CertificateProps, ICertificate } from './certificate';

export interface DNSValidatedCertificateProps extends CertificateProps {
export interface DnsValidatedCertificateProps extends CertificateProps {
/**
* Route 53 Hosted Zone used to perform DNS validation of the request. The zone
* must be authoritative for the domain name specified in the Certificate Request.
@@ -18,13 +18,13 @@ export interface DNSValidatedCertificateProps extends CertificateProps {
* A certificate managed by AWS Certificate Manager. Will be automatically
* validated using DNS validation against the specified Route 53 hosted zone.
*/
export class DNSValidatedCertificate extends cdk.Construct implements ICertificate {
export class DnsValidatedCertificate extends cdk.Construct implements ICertificate {
public readonly certificateArn: string;
private normalizedZoneName: string;
private hostedZoneId: string;
private domainName: string;

constructor(scope: cdk.Construct, id: string, props: DNSValidatedCertificateProps) {
constructor(scope: cdk.Construct, id: string, props: DnsValidatedCertificateProps) {
super(scope, id);

this.domainName = props.domainName;
Original file line number Diff line number Diff line change
@@ -2,7 +2,7 @@ import { expect, haveResource } from '@aws-cdk/assert';
import { PublicHostedZone } from '@aws-cdk/aws-route53';
import { Stack } from '@aws-cdk/cdk';
import { Test } from 'nodeunit';
import { DNSValidatedCertificate } from '../lib/dns-validated-certificate';
import { DnsValidatedCertificate } from '../lib/dns-validated-certificate';

export = {
'creates CloudFormation Custom Resource'(test: Test) {
@@ -12,7 +12,7 @@ export = {
zoneName: 'example.com'
});

const cert = new DNSValidatedCertificate(stack, 'Certificate', {
const cert = new DnsValidatedCertificate(stack, 'Certificate', {
domainName: 'test.example.com',
hostedZone: exampleDotComZone,
});
@@ -90,7 +90,7 @@ export = {
zoneName: 'hello.com'
});

const refProps = new DNSValidatedCertificate(stack, 'Cert', {
const refProps = new DnsValidatedCertificate(stack, 'Cert', {
domainName: 'hello.com',
hostedZone: helloDotComZone,
}).export();
@@ -106,7 +106,7 @@ export = {
zoneName: 'hello.com'
});

const cert = new DNSValidatedCertificate(stack, 'Cert', {
const cert = new DnsValidatedCertificate(stack, 'Cert', {
domainName: 'example.com',
hostedZone: helloDotComZone,
});

0 comments on commit e89632f

Please sign in to comment.