Skip to content

Instantly share code, notes, and snippets.

@cwparsons
cwparsons / pca.d.ts
Last active February 12, 2024 21:17
A TypeScript definition file for Canada Post's AddressComplete.
declare namespace pca {
class Eventable {
constructor(source: any);
listen: (event: string, action: any) => void;
}
class Address extends Eventable {
constructor(fields?: Address.Binding[], options?: Address.Options);
}
@onlybakam
onlybakam / setup.md
Last active September 6, 2023 13:39
Create an appsync custom domain association in your Amplify project

Pre-req

Create the custom domain name separately. Since the domain name is a longer-lived resource, you may not want it modified, or deleted by your application stack.

Do this in the console as shown in this blog, or use your favorite IaC tool.

Example with CDK:

import * as cdk from '@aws-cdk/core'