Skip to content

Latest commit

 

History

History
1385 lines (853 loc) · 47.5 KB

File metadata and controls

1385 lines (853 loc) · 47.5 KB

API Reference

Constructs

PostgresRDSCluster

Initializers

import { PostgresRDSCluster } from '@smallcase/cdk-rds-module'

new PostgresRDSCluster(scope: Construct, id: string, props: PostgresProps)
Name Type Description
scope constructs.Construct No description.
id string No description.
props PostgresProps No description.

scopeRequired
  • Type: constructs.Construct

idRequired
  • Type: string

propsRequired

Methods

Name Description
toString Returns a string representation of this construct.

toString
public toString(): string

Returns a string representation of this construct.

Static Functions

Name Description
isConstruct Checks if x is a construct.

isConstruct
import { PostgresRDSCluster } from '@smallcase/cdk-rds-module'

PostgresRDSCluster.isConstruct(x: any)

Checks if x is a construct.

xRequired
  • Type: any

Any object.


Properties

Name Type Description
node constructs.Node The tree node.
readReplicas aws-cdk-lib.aws_rds.DatabaseInstanceReadReplica[] No description.
securityGroup aws-cdk-lib.aws_ec2.ISecurityGroup No description.
metricSnsTopic aws-cdk-lib.aws_sns.ITopic No description.

nodeRequired
public readonly node: Node;
  • Type: constructs.Node

The tree node.


readReplicasRequired
public readonly readReplicas: DatabaseInstanceReadReplica[];
  • Type: aws-cdk-lib.aws_rds.DatabaseInstanceReadReplica[]

securityGroupRequired
public readonly securityGroup: ISecurityGroup;
  • Type: aws-cdk-lib.aws_ec2.ISecurityGroup

metricSnsTopicOptional
public readonly metricSnsTopic: ITopic;
  • Type: aws-cdk-lib.aws_sns.ITopic

RDSMonitoring

Initializers

import { RDSMonitoring } from '@smallcase/cdk-rds-module'

new RDSMonitoring(scope: Construct, id: string, config: MonitoringConfig)
Name Type Description
scope constructs.Construct No description.
id string No description.
config MonitoringConfig No description.

scopeRequired
  • Type: constructs.Construct

idRequired
  • Type: string

configRequired

Methods

Name Description
toString Returns a string representation of this construct.
createPrimaryMonitoring Create all monitoring for primary instance.
createReplicaMonitoring Create all monitoring for read replicas.

toString
public toString(): string

Returns a string representation of this construct.

createPrimaryMonitoring
public createPrimaryMonitoring(primaryInstance: DatabaseInstance): void

Create all monitoring for primary instance.

primaryInstanceRequired
  • Type: aws-cdk-lib.aws_rds.DatabaseInstance

createReplicaMonitoring
public createReplicaMonitoring(replicaInstance: DatabaseInstanceReadReplica, replicaIndex: number): void

Create all monitoring for read replicas.

replicaInstanceRequired
  • Type: aws-cdk-lib.aws_rds.DatabaseInstanceReadReplica

replicaIndexRequired
  • Type: number

Static Functions

Name Description
isConstruct Checks if x is a construct.

isConstruct
import { RDSMonitoring } from '@smallcase/cdk-rds-module'

RDSMonitoring.isConstruct(x: any)

Checks if x is a construct.

xRequired
  • Type: any

Any object.


Properties

Name Type Description
node constructs.Node The tree node.
metricSnsTopic aws-cdk-lib.aws_sns.ITopic No description.

nodeRequired
public readonly node: Node;
  • Type: constructs.Node

The tree node.


metricSnsTopicOptional
public readonly metricSnsTopic: ITopic;
  • Type: aws-cdk-lib.aws_sns.ITopic

SlackChatbotIntegration

Initializers

import { SlackChatbotIntegration } from '@smallcase/cdk-rds-module'

new SlackChatbotIntegration(scope: Construct, id: string, props: SlackChatbotProps)
Name Type Description
scope constructs.Construct No description.
id string No description.
props SlackChatbotProps No description.

scopeRequired
  • Type: constructs.Construct

idRequired
  • Type: string

propsRequired

Methods

Name Description
toString Returns a string representation of this construct.

toString
public toString(): string

Returns a string representation of this construct.

Static Functions

Name Description
isConstruct Checks if x is a construct.

isConstruct
import { SlackChatbotIntegration } from '@smallcase/cdk-rds-module'

SlackChatbotIntegration.isConstruct(x: any)

Checks if x is a construct.

xRequired
  • Type: any

Any object.


Properties

Name Type Description
node constructs.Node The tree node.
chatbotRole aws-cdk-lib.aws_iam.Role No description.
slackChannel aws-cdk-lib.aws_chatbot.SlackChannelConfiguration No description.

nodeRequired
public readonly node: Node;
  • Type: constructs.Node

The tree node.


chatbotRoleRequired
public readonly chatbotRole: Role;
  • Type: aws-cdk-lib.aws_iam.Role

slackChannelRequired
public readonly slackChannel: SlackChannelConfiguration;
  • Type: aws-cdk-lib.aws_chatbot.SlackChannelConfiguration

Structs

AlertThresholds

Initializer

import { AlertThresholds } from '@smallcase/cdk-rds-module'

const alertThresholds: AlertThresholds = { ... }

Properties

Name Type Description
cpu number No description.
dbConnections number No description.
diskQueueDepth number No description.
freeStorage number No description.
memory number No description.
networkThroughput number No description.
readIops number No description.
replicationLag number No description.
writeIops number No description.

cpuOptional
public readonly cpu: number;
  • Type: number

dbConnectionsOptional
public readonly dbConnections: number;
  • Type: number

diskQueueDepthOptional
public readonly diskQueueDepth: number;
  • Type: number

freeStorageOptional
public readonly freeStorage: number;
  • Type: number

memoryOptional
public readonly memory: number;
  • Type: number

networkThroughputOptional
public readonly networkThroughput: number;
  • Type: number

readIopsOptional
public readonly readIops: number;
  • Type: number

replicationLagOptional
public readonly replicationLag: number;
  • Type: number

writeIopsOptional
public readonly writeIops: number;
  • Type: number

IngressRule

Initializer

import { IngressRule } from '@smallcase/cdk-rds-module'

const ingressRule: IngressRule = { ... }

Properties

Name Type Description
connection aws-cdk-lib.aws_ec2.Port No description.
peer aws-cdk-lib.aws_ec2.IPeer | aws-cdk-lib.aws_ec2.ISecurityGroup No description.
description string No description.
remoteRule boolean No description.

connectionRequired
public readonly connection: Port;
  • Type: aws-cdk-lib.aws_ec2.Port

peerRequired
public readonly peer: IPeer | ISecurityGroup;
  • Type: aws-cdk-lib.aws_ec2.IPeer | aws-cdk-lib.aws_ec2.ISecurityGroup

descriptionOptional
public readonly description: string;
  • Type: string

remoteRuleOptional
public readonly remoteRule: boolean;
  • Type: boolean

InternalRole

Initializer

import { InternalRole } from '@smallcase/cdk-rds-module'

const internalRole: InternalRole = { ... }

Properties

Name Type Description
type ResourceType No description.
roleArn string No description.
roleProps aws-cdk-lib.aws_iam.RoleProps No description.

typeRequired
public readonly type: ResourceType;

roleArnOptional
public readonly roleArn: string;
  • Type: string

rolePropsOptional
public readonly roleProps: RoleProps;
  • Type: aws-cdk-lib.aws_iam.RoleProps

MonitoringConfig

Initializer

import { MonitoringConfig } from '@smallcase/cdk-rds-module'

const monitoringConfig: MonitoringConfig = { ... }

Properties

Name Type Description
clusterName string No description.
instanceType aws-cdk-lib.aws_ec2.InstanceType No description.
alertSubcriptionWebhooks string[] No description.
backupRetention number No description.
enableAlerts boolean No description.
metricTopicName string No description.
multiAz boolean No description.
primaryAlertThresholds AlertThresholds No description.
readReplicas ReadReplicaConfig No description.
replicaAlertThresholds AlertThresholds No description.

clusterNameRequired
public readonly clusterName: string;
  • Type: string

instanceTypeRequired
public readonly instanceType: InstanceType;
  • Type: aws-cdk-lib.aws_ec2.InstanceType

alertSubcriptionWebhooksOptional
public readonly alertSubcriptionWebhooks: string[];
  • Type: string[]

backupRetentionOptional
public readonly backupRetention: number;
  • Type: number

enableAlertsOptional
public readonly enableAlerts: boolean;
  • Type: boolean

metricTopicNameOptional
public readonly metricTopicName: string;
  • Type: string

multiAzOptional
public readonly multiAz: boolean;
  • Type: boolean

primaryAlertThresholdsOptional
public readonly primaryAlertThresholds: AlertThresholds;

readReplicasOptional
public readonly readReplicas: ReadReplicaConfig;

replicaAlertThresholdsOptional
public readonly replicaAlertThresholds: AlertThresholds;

Network

Initializer

import { Network } from '@smallcase/cdk-rds-module'

const network: Network = { ... }

Properties

Name Type Description
subnetsId string[] No description.
vpcId string No description.
existingSecurityGroupId string No description.
ingressSgRule IngressRule[] No description.

subnetsIdRequired
public readonly subnetsId: string[];
  • Type: string[]

vpcIdRequired
public readonly vpcId: string;
  • Type: string

existingSecurityGroupIdOptional
public readonly existingSecurityGroupId: string;
  • Type: string

ingressSgRuleOptional
public readonly ingressSgRule: IngressRule[];

PostgresProps

Initializer

import { PostgresProps } from '@smallcase/cdk-rds-module'

const postgresProps: PostgresProps = { ... }

Properties

Name Type Description
clusterName string No description.
databaseMasterUserName string No description.
databaseName string No description.
instanceType aws-cdk-lib.aws_ec2.InstanceType No description.
network Network No description.
postgresVersion aws-cdk-lib.aws_rds.IInstanceEngine No description.
alertSubcriptionWebhooks string[] No description.
allocatedStorage number No description.
allowMajorVersionUpgrade boolean No description.
autoMinorVersionUpgrade boolean No description.
backupRetention number No description.
deletionProtection boolean No description.
enableAlerts boolean No description.
enablePerformanceInsights boolean No description.
maxAllocatedStorage number No description.
metricTopicName string No description.
monitoringInterval number No description.
multiAz boolean No description.
parameters {[ key: string ]: string} No description.
performanceInsightRetention aws-cdk-lib.aws_rds.PerformanceInsightRetention No description.
primaryAlertThresholds AlertThresholds No description.
publiclyAccessible boolean No description.
readReplicas ReadReplica No description.
replicaAlertThresholds AlertThresholds No description.
replicaAllocatedStorage number No description.
replicaMaxAllocatedStorage number No description.
replicaStorageType aws-cdk-lib.aws_rds.StorageType No description.
snapshotIdentifier string No description.
snsTopicCreate boolean No description.
storageEncrypted boolean No description.
storageType aws-cdk-lib.aws_rds.StorageType No description.
tags {[ key: string ]: string} No description.

clusterNameRequired
public readonly clusterName: string;
  • Type: string

databaseMasterUserNameRequired
public readonly databaseMasterUserName: string;
  • Type: string

databaseNameRequired
public readonly databaseName: string;
  • Type: string

instanceTypeRequired
public readonly instanceType: InstanceType;
  • Type: aws-cdk-lib.aws_ec2.InstanceType

networkRequired
public readonly network: Network;

postgresVersionRequired
public readonly postgresVersion: IInstanceEngine;
  • Type: aws-cdk-lib.aws_rds.IInstanceEngine

alertSubcriptionWebhooksOptional
public readonly alertSubcriptionWebhooks: string[];
  • Type: string[]

allocatedStorageOptional
public readonly allocatedStorage: number;
  • Type: number

allowMajorVersionUpgradeOptional
public readonly allowMajorVersionUpgrade: boolean;
  • Type: boolean

autoMinorVersionUpgradeOptional
public readonly autoMinorVersionUpgrade: boolean;
  • Type: boolean

backupRetentionOptional
public readonly backupRetention: number;
  • Type: number

deletionProtectionOptional
public readonly deletionProtection: boolean;
  • Type: boolean

enableAlertsOptional
public readonly enableAlerts: boolean;
  • Type: boolean

enablePerformanceInsightsOptional
public readonly enablePerformanceInsights: boolean;
  • Type: boolean

maxAllocatedStorageOptional
public readonly maxAllocatedStorage: number;
  • Type: number

metricTopicNameOptional
public readonly metricTopicName: string;
  • Type: string

monitoringIntervalOptional
public readonly monitoringInterval: number;
  • Type: number

multiAzOptional
public readonly multiAz: boolean;
  • Type: boolean

parametersOptional
public readonly parameters: {[ key: string ]: string};
  • Type: {[ key: string ]: string}

performanceInsightRetentionOptional
public readonly performanceInsightRetention: PerformanceInsightRetention;
  • Type: aws-cdk-lib.aws_rds.PerformanceInsightRetention

primaryAlertThresholdsOptional
public readonly primaryAlertThresholds: AlertThresholds;

publiclyAccessibleOptional
public readonly publiclyAccessible: boolean;
  • Type: boolean

readReplicasOptional
public readonly readReplicas: ReadReplica;

replicaAlertThresholdsOptional
public readonly replicaAlertThresholds: AlertThresholds;

replicaAllocatedStorageOptional
public readonly replicaAllocatedStorage: number;
  • Type: number

replicaMaxAllocatedStorageOptional
public readonly replicaMaxAllocatedStorage: number;
  • Type: number

replicaStorageTypeOptional
public readonly replicaStorageType: StorageType;
  • Type: aws-cdk-lib.aws_rds.StorageType

snapshotIdentifierOptional
public readonly snapshotIdentifier: string;
  • Type: string

snsTopicCreateOptional
public readonly snsTopicCreate: boolean;
  • Type: boolean

storageEncryptedOptional
public readonly storageEncrypted: boolean;
  • Type: boolean

storageTypeOptional
public readonly storageType: StorageType;
  • Type: aws-cdk-lib.aws_rds.StorageType

tagsOptional
public readonly tags: {[ key: string ]: string};
  • Type: {[ key: string ]: string}

ReadReplica

Initializer

import { ReadReplica } from '@smallcase/cdk-rds-module'

const readReplica: ReadReplica = { ... }

Properties

Name Type Description
instanceType aws-cdk-lib.aws_ec2.InstanceType No description.
replicas number No description.
alertThresholds AlertThresholds No description.
parameters {[ key: string ]: string} No description.

instanceTypeRequired
public readonly instanceType: InstanceType;
  • Type: aws-cdk-lib.aws_ec2.InstanceType

replicasRequired
public readonly replicas: number;
  • Type: number

alertThresholdsOptional
public readonly alertThresholds: AlertThresholds;

parametersOptional
public readonly parameters: {[ key: string ]: string};
  • Type: {[ key: string ]: string}

ReadReplicaConfig

Initializer

import { ReadReplicaConfig } from '@smallcase/cdk-rds-module'

const readReplicaConfig: ReadReplicaConfig = { ... }

Properties

Name Type Description
instanceType aws-cdk-lib.aws_ec2.InstanceType No description.
replicas number No description.
alertThresholds AlertThresholds No description.

instanceTypeRequired
public readonly instanceType: InstanceType;
  • Type: aws-cdk-lib.aws_ec2.InstanceType

replicasRequired
public readonly replicas: number;
  • Type: number

alertThresholdsOptional
public readonly alertThresholds: AlertThresholds;

SlackChatbotProps

Initializer

import { SlackChatbotProps } from '@smallcase/cdk-rds-module'

const slackChatbotProps: SlackChatbotProps = { ... }

Properties

Name Type Description
notificationTopics aws-cdk-lib.aws_sns.ITopic[] No description.
slackChannelConfigurationName string No description.
slackChannelId string No description.
slackWorkspaceId string No description.

notificationTopicsRequired
public readonly notificationTopics: ITopic[];
  • Type: aws-cdk-lib.aws_sns.ITopic[]

slackChannelConfigurationNameRequired
public readonly slackChannelConfigurationName: string;
  • Type: string

slackChannelIdRequired
public readonly slackChannelId: string;
  • Type: string

slackWorkspaceIdRequired
public readonly slackWorkspaceId: string;
  • Type: string

Enums

ResourceType

Members

Name Description
NEW No description.
EXISTING No description.

NEW

EXISTING