aws-lambda#CloudFormationCustomResourceCreateEvent TypeScript Examples

The following examples show how to use aws-lambda#CloudFormationCustomResourceCreateEvent. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: create.ts    From aws-cdk-ses-domain-identity with MIT License 6 votes vote down vote up
export class CreateCustomResourceHandler extends CustomResourceHandler<CloudFormationCustomResourceCreateEvent> {
  public async consumeEvent() {
    const verifier = Verifier.from(this.event.ResourceProperties);

    await verifier.verifyIdentity();
    if (this.event.ResourceProperties.DKIM) {
      await verifier.enableDKIM();
    }

    return {
      physicalResourceId: verifier.domainName,
      data: {},
    };
  }
}