Skip to content

Latest commit

 

History

History
440 lines (246 loc) · 11.2 KB

API.md

File metadata and controls

440 lines (246 loc) · 11.2 KB

API Reference

Constructs

BashExecFunction

Initializers

import { BashExecFunction } from 'cdk-certbot-dns-route53'

new BashExecFunction(scope: Construct, id: string, props: BashExecFunctionProps)
scopeRequired

idRequired
  • Type: string

propsRequired

Properties

handlerRequired
public readonly handler: DockerImageFunction;

CertbotDnsRoute53Job

Initializers

import { CertbotDnsRoute53Job } from 'cdk-certbot-dns-route53'

new CertbotDnsRoute53Job(scope: Construct, id: string, props: CertbotDnsRoute53JobProps)
scopeRequired

idRequired
  • Type: string

propsRequired

CertbotDnsRoute53JobPython

Initializers

import { CertbotDnsRoute53JobPython } from 'cdk-certbot-dns-route53'

new CertbotDnsRoute53JobPython(scope: Construct, id: string, props: CertbotDnsRoute53JobProps)
scopeRequired

idRequired
  • Type: string

propsRequired

LambdaPythonFunction

Initializers

import { LambdaPythonFunction } from 'cdk-certbot-dns-route53'

new LambdaPythonFunction(scope: Construct, id: string, props: LambdaFunctionProps)
scopeRequired

idRequired
  • Type: string

propsRequired

Properties

handlerRequired
public readonly handler: PythonFunction;

Structs

BashExecFunctionProps

Initializer

import { BashExecFunctionProps } from 'cdk-certbot-dns-route53'

const bashExecFunctionProps: BashExecFunctionProps = { ... }
scriptRequired
public readonly script: string;
  • Type: string

The path of the shell script to be executed.


architectureOptional
public readonly architecture: Architecture;

Custom lambda Image Architecture.


dockerfileOptional
public readonly dockerfile: string;
  • Type: string

The path of your custom dockerfile.


environmentOptional
public readonly environment: {[ key: string ]: string};
  • Type: {[ key: string ]: string}

Lambda environment variables.


roleOptional
public readonly role: IRole;

Custom lambda execution role.


timeoutOptional
public readonly timeout: Duration;

The function execution time (in seconds) after which Lambda terminates the function.

Because the execution time affects cost, set this value based on the function's expected execution time.


CertbotDnsRoute53JobProps

Initializer

import { CertbotDnsRoute53JobProps } from 'cdk-certbot-dns-route53'

const certbotDnsRoute53JobProps: CertbotDnsRoute53JobProps = { ... }
certbotOptionsRequired
public readonly certbotOptions: CertbotOptions;

certbot cmd options.


destinationBucketRequired
public readonly destinationBucket: IBucket;

The S3 bucket to store certificate.


zoneRequired
public readonly zone: IHostedZone;

The HostZone on route53 to dns-01 challenge.


architectureOptional
public readonly architecture: Architecture;

Custom lambda Image Architecture.


enabledLambdaFunctionUrlOptional
public readonly enabledLambdaFunctionUrl: boolean;
  • Type: boolean
  • Default: false

Enabled Lambda Function URL.


functionUrlOptionsOptional
public readonly functionUrlOptions: FunctionUrlOptions;

Options to add a url to a Lambda function.


scheduleOptional
public readonly schedule: Schedule;

run the Job with defined schedule.


CertbotOptions

Initializer

import { CertbotOptions } from 'cdk-certbot-dns-route53'

const certbotOptions: CertbotOptions = { ... }
domainNameRequired
public readonly domainName: string;
  • Type: string

the domain must host on route53 like example.com.


emailRequired
public readonly email: string;
  • Type: string

Email address for important account notifications.


customPrefixDirectoryOptional
public readonly customPrefixDirectory: string;
  • Type: string
  • Default: s3://YOUR_BUCKET_NAME/2021-01-01/your.domain.name/

Custom prefix directory on s3 bucket object path.


LambdaFunctionProps

Initializer

import { LambdaFunctionProps } from 'cdk-certbot-dns-route53'

const lambdaFunctionProps: LambdaFunctionProps = { ... }
architectureRequired
public readonly architecture: Architecture;

timeoutRequired
public readonly timeout: Duration;

environmentOptional
public readonly environment: {[ key: string ]: string};
  • Type: {[ key: string ]: string}

roleOptional
public readonly role: IRole;