From ef4662990a8d5b7bb216866e2c9a6c4537a0afa7 Mon Sep 17 00:00:00 2001 From: team-tf-cdk <84392119+team-tf-cdk@users.noreply.github.com> Date: Wed, 1 Feb 2023 04:18:37 +0100 Subject: [PATCH] chore: upgrade provider from `2.25.2` to version `2.26.0` (#348) This PR upgrades provider to version 2.26.0 --- API.md | 3611 +++++++++++++++++ package.json | 2 +- src/app/index.ts | 2 +- src/cdn/index.ts | 2 +- src/certificate/index.ts | 2 +- .../index.ts | 2 +- src/container-registry/index.ts | 2 +- src/custom-image/index.ts | 2 +- src/data-digitalocean-account/index.ts | 2 +- src/data-digitalocean-app/index.ts | 2 +- src/data-digitalocean-certificate/index.ts | 2 +- .../index.ts | 2 +- src/data-digitalocean-database-ca/index.ts | 2 +- .../index.ts | 2 +- .../index.ts | 2 +- src/data-digitalocean-domain/index.ts | 2 +- src/data-digitalocean-domains/index.ts | 2 +- .../index.ts | 2 +- src/data-digitalocean-droplet/index.ts | 2 +- src/data-digitalocean-droplets/index.ts | 2 +- src/data-digitalocean-firewall/index.ts | 2 +- src/data-digitalocean-floating-ip/index.ts | 2 +- src/data-digitalocean-image/index.ts | 2 +- src/data-digitalocean-images/index.ts | 2 +- .../index.ts | 2 +- .../index.ts | 2 +- src/data-digitalocean-loadbalancer/index.ts | 77 +- src/data-digitalocean-project/index.ts | 2 +- src/data-digitalocean-projects/index.ts | 2 +- src/data-digitalocean-record/index.ts | 2 +- src/data-digitalocean-records/index.ts | 2 +- src/data-digitalocean-region/index.ts | 2 +- src/data-digitalocean-regions/index.ts | 2 +- src/data-digitalocean-reserved-ip/index.ts | 2 +- src/data-digitalocean-sizes/index.ts | 2 +- .../index.ts | 2 +- .../index.ts | 2 +- src/data-digitalocean-spaces-bucket/index.ts | 2 +- src/data-digitalocean-spaces-buckets/index.ts | 2 +- src/data-digitalocean-ssh-key/index.ts | 2 +- src/data-digitalocean-ssh-keys/index.ts | 2 +- src/data-digitalocean-tag/index.ts | 2 +- src/data-digitalocean-tags/index.ts | 2 +- .../index.ts | 2 +- src/data-digitalocean-volume/index.ts | 2 +- src/data-digitalocean-vpc/index.ts | 2 +- src/database-cluster/index.ts | 2 +- src/database-connection-pool/index.ts | 2 +- src/database-db/index.ts | 2 +- src/database-firewall/index.ts | 2 +- src/database-replica/index.ts | 7 +- src/database-user/index.ts | 2 +- src/domain/index.ts | 2 +- src/droplet-snapshot/index.ts | 2 +- src/droplet/index.ts | 2 +- src/firewall/index.ts | 2 +- src/floating-ip-assignment/index.ts | 2 +- src/floating-ip/index.ts | 2 +- src/index.ts | 2 + src/kubernetes-cluster/index.ts | 2 +- src/kubernetes-node-pool/index.ts | 2 +- src/loadbalancer/index.ts | 122 +- src/monitor-alert/index.ts | 2 +- src/project-resources/index.ts | 2 +- src/project/index.ts | 2 +- src/provider/index.ts | 2 +- src/record/index.ts | 2 +- src/reserved-ip-assignment/index.ts | 2 +- src/reserved-ip/index.ts | 2 +- src/spaces-bucket-object/index.ts | 2 +- src/spaces-bucket-policy/index.ts | 2 +- src/spaces-bucket/index.ts | 2 +- src/ssh-key/index.ts | 2 +- src/tag/index.ts | 2 +- src/uptime-alert/README.md | 3 + src/uptime-alert/index.ts | 474 +++ src/uptime-check/README.md | 3 + src/uptime-check/index.ts | 182 + src/version.json | 2 +- src/volume-attachment/index.ts | 2 +- src/volume-snapshot/index.ts | 2 +- src/volume/index.ts | 2 +- src/vpc/index.ts | 2 +- 83 files changed, 4552 insertions(+), 77 deletions(-) create mode 100644 src/uptime-alert/README.md create mode 100644 src/uptime-alert/index.ts create mode 100644 src/uptime-check/README.md create mode 100644 src/uptime-check/index.ts diff --git a/API.md b/API.md index 062dfdbfe..7d52a7b20 100644 --- a/API.md +++ b/API.md @@ -7419,6 +7419,7 @@ databaseReplica.DatabaseReplica.isTerraformResource(x: any) | privateUri | string | *No description.* | | uri | string | *No description.* | | user | string | *No description.* | +| uuid | string | *No description.* | | clusterIdInput | string | *No description.* | | idInput | string | *No description.* | | nameInput | string | *No description.* | @@ -7658,6 +7659,16 @@ public readonly user: string; --- +##### `uuid`Required + +```typescript +public readonly uuid: string; +``` + +- *Type:* string + +--- + ##### `clusterIdInput`Optional ```typescript @@ -20349,6 +20360,7 @@ dataDigitaloceanLoadbalancer.DataDigitaloceanLoadbalancer.isTerraformDataSource( | dropletTag | string | *No description.* | | enableBackendKeepalive | cdktf.IResolvable | *No description.* | | enableProxyProtocol | cdktf.IResolvable | *No description.* | +| firewall | @cdktf/provider-digitalocean.dataDigitaloceanLoadbalancer.DataDigitaloceanLoadbalancerFirewallList | *No description.* | | forwardingRule | @cdktf/provider-digitalocean.dataDigitaloceanLoadbalancer.DataDigitaloceanLoadbalancerForwardingRuleList | *No description.* | | healthcheck | @cdktf/provider-digitalocean.dataDigitaloceanLoadbalancer.DataDigitaloceanLoadbalancerHealthcheckList | *No description.* | | httpIdleTimeoutSeconds | number | *No description.* | @@ -20551,6 +20563,16 @@ public readonly enableProxyProtocol: IResolvable; --- +##### `firewall`Required + +```typescript +public readonly firewall: DataDigitaloceanLoadbalancerFirewallList; +``` + +- *Type:* @cdktf/provider-digitalocean.dataDigitaloceanLoadbalancer.DataDigitaloceanLoadbalancerFirewallList + +--- + ##### `forwardingRule`Required ```typescript @@ -39247,6 +39269,7 @@ Must be unique amongst siblings in the same scope | getStringAttribute | *No description.* | | getStringMapAttribute | *No description.* | | interpolationForAttribute | *No description.* | +| putFirewall | *No description.* | | putForwardingRule | *No description.* | | putHealthcheck | *No description.* | | putStickySessions | *No description.* | @@ -39256,6 +39279,7 @@ Must be unique amongst siblings in the same scope | resetDropletTag | *No description.* | | resetEnableBackendKeepalive | *No description.* | | resetEnableProxyProtocol | *No description.* | +| resetFirewall | *No description.* | | resetHealthcheck | *No description.* | | resetHttpIdleTimeoutSeconds | *No description.* | | resetId | *No description.* | @@ -39452,6 +39476,18 @@ public interpolationForAttribute(terraformAttribute: string): IResolvable --- +##### `putFirewall` + +```typescript +public putFirewall(value: LoadbalancerFirewall): void +``` + +###### `value`Required + +- *Type:* @cdktf/provider-digitalocean.loadbalancer.LoadbalancerFirewall + +--- + ##### `putForwardingRule` ```typescript @@ -39524,6 +39560,12 @@ public resetEnableBackendKeepalive(): void public resetEnableProxyProtocol(): void ``` +##### `resetFirewall` + +```typescript +public resetFirewall(): void +``` + ##### `resetHealthcheck` ```typescript @@ -39666,6 +39708,7 @@ loadbalancer.Loadbalancer.isTerraformResource(x: any) | lifecycle | cdktf.TerraformResourceLifecycle | *No description.* | | provider | cdktf.TerraformProvider | *No description.* | | provisioners | cdktf.FileProvisioner \| cdktf.LocalExecProvisioner \| cdktf.RemoteExecProvisioner[] | *No description.* | +| firewall | @cdktf/provider-digitalocean.loadbalancer.LoadbalancerFirewallOutputReference | *No description.* | | forwardingRule | @cdktf/provider-digitalocean.loadbalancer.LoadbalancerForwardingRuleList | *No description.* | | healthcheck | @cdktf/provider-digitalocean.loadbalancer.LoadbalancerHealthcheckOutputReference | *No description.* | | ip | string | *No description.* | @@ -39678,6 +39721,7 @@ loadbalancer.Loadbalancer.isTerraformResource(x: any) | dropletTagInput | string | *No description.* | | enableBackendKeepaliveInput | boolean \| cdktf.IResolvable | *No description.* | | enableProxyProtocolInput | boolean \| cdktf.IResolvable | *No description.* | +| firewallInput | @cdktf/provider-digitalocean.loadbalancer.LoadbalancerFirewall | *No description.* | | forwardingRuleInput | cdktf.IResolvable \| @cdktf/provider-digitalocean.loadbalancer.LoadbalancerForwardingRule[] | *No description.* | | healthcheckInput | @cdktf/provider-digitalocean.loadbalancer.LoadbalancerHealthcheck | *No description.* | | httpIdleTimeoutSecondsInput | number | *No description.* | @@ -39850,6 +39894,16 @@ public readonly provisioners: FileProvisioner | LocalExecProvisioner | RemoteExe --- +##### `firewall`Required + +```typescript +public readonly firewall: LoadbalancerFirewallOutputReference; +``` + +- *Type:* @cdktf/provider-digitalocean.loadbalancer.LoadbalancerFirewallOutputReference + +--- + ##### `forwardingRule`Required ```typescript @@ -39970,6 +40024,16 @@ public readonly enableProxyProtocolInput: boolean | IResolvable; --- +##### `firewallInput`Optional + +```typescript +public readonly firewallInput: LoadbalancerFirewall; +``` + +- *Type:* @cdktf/provider-digitalocean.loadbalancer.LoadbalancerFirewall + +--- + ##### `forwardingRuleInput`Optional ```typescript @@ -47936,6 +48000,1351 @@ public readonly tfResourceType: string; --- +### UptimeAlert + +Represents a {@link https://www.terraform.io/docs/providers/digitalocean/r/uptime_alert digitalocean_uptime_alert}. + +#### Initializers + +```typescript +import { uptimeAlert } from '@cdktf/provider-digitalocean' + +new uptimeAlert.UptimeAlert(scope: Construct, id: string, config: UptimeAlertConfig) +``` + +| **Name** | **Type** | **Description** | +| --- | --- | --- | +| scope | constructs.Construct | The scope in which to define this construct. | +| id | string | The scoped construct ID. | +| config | @cdktf/provider-digitalocean.uptimeAlert.UptimeAlertConfig | *No description.* | + +--- + +##### `scope`Required + +- *Type:* constructs.Construct + +The scope in which to define this construct. + +--- + +##### `id`Required + +- *Type:* string + +The scoped construct ID. + +Must be unique amongst siblings in the same scope + +--- + +##### `config`Required + +- *Type:* @cdktf/provider-digitalocean.uptimeAlert.UptimeAlertConfig + +--- + +#### Methods + +| **Name** | **Description** | +| --- | --- | +| toString | Returns a string representation of this construct. | +| addOverride | *No description.* | +| overrideLogicalId | Overrides the auto-generated logical ID with a specific ID. | +| resetOverrideLogicalId | Resets a previously passed logical Id to use the auto-generated logical id again. | +| toMetadata | *No description.* | +| toTerraform | Adds this resource to the terraform JSON output. | +| getAnyMapAttribute | *No description.* | +| getBooleanAttribute | *No description.* | +| getBooleanMapAttribute | *No description.* | +| getListAttribute | *No description.* | +| getNumberAttribute | *No description.* | +| getNumberListAttribute | *No description.* | +| getNumberMapAttribute | *No description.* | +| getStringAttribute | *No description.* | +| getStringMapAttribute | *No description.* | +| interpolationForAttribute | *No description.* | +| putNotifications | *No description.* | +| resetComparison | *No description.* | +| resetPeriod | *No description.* | +| resetThreshold | *No description.* | + +--- + +##### `toString` + +```typescript +public toString(): string +``` + +Returns a string representation of this construct. + +##### `addOverride` + +```typescript +public addOverride(path: string, value: any): void +``` + +###### `path`Required + +- *Type:* string + +--- + +###### `value`Required + +- *Type:* any + +--- + +##### `overrideLogicalId` + +```typescript +public overrideLogicalId(newLogicalId: string): void +``` + +Overrides the auto-generated logical ID with a specific ID. + +###### `newLogicalId`Required + +- *Type:* string + +The new logical ID to use for this stack element. + +--- + +##### `resetOverrideLogicalId` + +```typescript +public resetOverrideLogicalId(): void +``` + +Resets a previously passed logical Id to use the auto-generated logical id again. + +##### `toMetadata` + +```typescript +public toMetadata(): any +``` + +##### `toTerraform` + +```typescript +public toTerraform(): any +``` + +Adds this resource to the terraform JSON output. + +##### `getAnyMapAttribute` + +```typescript +public getAnyMapAttribute(terraformAttribute: string): {[ key: string ]: any} +``` + +###### `terraformAttribute`Required + +- *Type:* string + +--- + +##### `getBooleanAttribute` + +```typescript +public getBooleanAttribute(terraformAttribute: string): IResolvable +``` + +###### `terraformAttribute`Required + +- *Type:* string + +--- + +##### `getBooleanMapAttribute` + +```typescript +public getBooleanMapAttribute(terraformAttribute: string): {[ key: string ]: boolean} +``` + +###### `terraformAttribute`Required + +- *Type:* string + +--- + +##### `getListAttribute` + +```typescript +public getListAttribute(terraformAttribute: string): string[] +``` + +###### `terraformAttribute`Required + +- *Type:* string + +--- + +##### `getNumberAttribute` + +```typescript +public getNumberAttribute(terraformAttribute: string): number +``` + +###### `terraformAttribute`Required + +- *Type:* string + +--- + +##### `getNumberListAttribute` + +```typescript +public getNumberListAttribute(terraformAttribute: string): number[] +``` + +###### `terraformAttribute`Required + +- *Type:* string + +--- + +##### `getNumberMapAttribute` + +```typescript +public getNumberMapAttribute(terraformAttribute: string): {[ key: string ]: number} +``` + +###### `terraformAttribute`Required + +- *Type:* string + +--- + +##### `getStringAttribute` + +```typescript +public getStringAttribute(terraformAttribute: string): string +``` + +###### `terraformAttribute`Required + +- *Type:* string + +--- + +##### `getStringMapAttribute` + +```typescript +public getStringMapAttribute(terraformAttribute: string): {[ key: string ]: string} +``` + +###### `terraformAttribute`Required + +- *Type:* string + +--- + +##### `interpolationForAttribute` + +```typescript +public interpolationForAttribute(terraformAttribute: string): IResolvable +``` + +###### `terraformAttribute`Required + +- *Type:* string + +--- + +##### `putNotifications` + +```typescript +public putNotifications(value: IResolvable | UptimeAlertNotifications[]): void +``` + +###### `value`Required + +- *Type:* cdktf.IResolvable | @cdktf/provider-digitalocean.uptimeAlert.UptimeAlertNotifications[] + +--- + +##### `resetComparison` + +```typescript +public resetComparison(): void +``` + +##### `resetPeriod` + +```typescript +public resetPeriod(): void +``` + +##### `resetThreshold` + +```typescript +public resetThreshold(): void +``` + +#### Static Functions + +| **Name** | **Description** | +| --- | --- | +| isConstruct | Checks if `x` is a construct. | +| isTerraformElement | *No description.* | +| isTerraformResource | *No description.* | + +--- + +##### `isConstruct` + +```typescript +import { uptimeAlert } from '@cdktf/provider-digitalocean' + +uptimeAlert.UptimeAlert.isConstruct(x: any) +``` + +Checks if `x` is a construct. + +Use this method instead of `instanceof` to properly detect `Construct` +instances, even when the construct library is symlinked. + +Explanation: in JavaScript, multiple copies of the `constructs` library on +disk are seen as independent, completely different libraries. As a +consequence, the class `Construct` in each copy of the `constructs` library +is seen as a different class, and an instance of one class will not test as +`instanceof` the other class. `npm install` will not create installations +like this, but users may manually symlink construct libraries together or +use a monorepo tool: in those cases, multiple copies of the `constructs` +library can be accidentally installed, and `instanceof` will behave +unpredictably. It is safest to avoid using `instanceof`, and using +this type-testing method instead. + +###### `x`Required + +- *Type:* any + +Any object. + +--- + +##### `isTerraformElement` + +```typescript +import { uptimeAlert } from '@cdktf/provider-digitalocean' + +uptimeAlert.UptimeAlert.isTerraformElement(x: any) +``` + +###### `x`Required + +- *Type:* any + +--- + +##### `isTerraformResource` + +```typescript +import { uptimeAlert } from '@cdktf/provider-digitalocean' + +uptimeAlert.UptimeAlert.isTerraformResource(x: any) +``` + +###### `x`Required + +- *Type:* any + +--- + +#### Properties + +| **Name** | **Type** | **Description** | +| --- | --- | --- | +| node | constructs.Node | The tree node. | +| cdktfStack | cdktf.TerraformStack | *No description.* | +| fqn | string | *No description.* | +| friendlyUniqueId | string | *No description.* | +| terraformMetaArguments | {[ key: string ]: any} | *No description.* | +| terraformResourceType | string | *No description.* | +| terraformGeneratorMetadata | cdktf.TerraformProviderGeneratorMetadata | *No description.* | +| connection | cdktf.SSHProvisionerConnection \| cdktf.WinrmProvisionerConnection | *No description.* | +| count | number | *No description.* | +| dependsOn | string[] | *No description.* | +| forEach | cdktf.ITerraformIterator | *No description.* | +| lifecycle | cdktf.TerraformResourceLifecycle | *No description.* | +| provider | cdktf.TerraformProvider | *No description.* | +| provisioners | cdktf.FileProvisioner \| cdktf.LocalExecProvisioner \| cdktf.RemoteExecProvisioner[] | *No description.* | +| id | string | *No description.* | +| notifications | @cdktf/provider-digitalocean.uptimeAlert.UptimeAlertNotificationsList | *No description.* | +| checkIdInput | string | *No description.* | +| comparisonInput | string | *No description.* | +| nameInput | string | *No description.* | +| notificationsInput | cdktf.IResolvable \| @cdktf/provider-digitalocean.uptimeAlert.UptimeAlertNotifications[] | *No description.* | +| periodInput | string | *No description.* | +| thresholdInput | number | *No description.* | +| typeInput | string | *No description.* | +| checkId | string | *No description.* | +| comparison | string | *No description.* | +| name | string | *No description.* | +| period | string | *No description.* | +| threshold | number | *No description.* | +| type | string | *No description.* | + +--- + +##### `node`Required + +```typescript +public readonly node: Node; +``` + +- *Type:* constructs.Node + +The tree node. + +--- + +##### `cdktfStack`Required + +```typescript +public readonly cdktfStack: TerraformStack; +``` + +- *Type:* cdktf.TerraformStack + +--- + +##### `fqn`Required + +```typescript +public readonly fqn: string; +``` + +- *Type:* string + +--- + +##### `friendlyUniqueId`Required + +```typescript +public readonly friendlyUniqueId: string; +``` + +- *Type:* string + +--- + +##### `terraformMetaArguments`Required + +```typescript +public readonly terraformMetaArguments: {[ key: string ]: any}; +``` + +- *Type:* {[ key: string ]: any} + +--- + +##### `terraformResourceType`Required + +```typescript +public readonly terraformResourceType: string; +``` + +- *Type:* string + +--- + +##### `terraformGeneratorMetadata`Optional + +```typescript +public readonly terraformGeneratorMetadata: TerraformProviderGeneratorMetadata; +``` + +- *Type:* cdktf.TerraformProviderGeneratorMetadata + +--- + +##### `connection`Optional + +```typescript +public readonly connection: SSHProvisionerConnection | WinrmProvisionerConnection; +``` + +- *Type:* cdktf.SSHProvisionerConnection | cdktf.WinrmProvisionerConnection + +--- + +##### `count`Optional + +```typescript +public readonly count: number; +``` + +- *Type:* number + +--- + +##### `dependsOn`Optional + +```typescript +public readonly dependsOn: string[]; +``` + +- *Type:* string[] + +--- + +##### `forEach`Optional + +```typescript +public readonly forEach: ITerraformIterator; +``` + +- *Type:* cdktf.ITerraformIterator + +--- + +##### `lifecycle`Optional + +```typescript +public readonly lifecycle: TerraformResourceLifecycle; +``` + +- *Type:* cdktf.TerraformResourceLifecycle + +--- + +##### `provider`Optional + +```typescript +public readonly provider: TerraformProvider; +``` + +- *Type:* cdktf.TerraformProvider + +--- + +##### `provisioners`Optional + +```typescript +public readonly provisioners: FileProvisioner | LocalExecProvisioner | RemoteExecProvisioner[]; +``` + +- *Type:* cdktf.FileProvisioner | cdktf.LocalExecProvisioner | cdktf.RemoteExecProvisioner[] + +--- + +##### `id`Required + +```typescript +public readonly id: string; +``` + +- *Type:* string + +--- + +##### `notifications`Required + +```typescript +public readonly notifications: UptimeAlertNotificationsList; +``` + +- *Type:* @cdktf/provider-digitalocean.uptimeAlert.UptimeAlertNotificationsList + +--- + +##### `checkIdInput`Optional + +```typescript +public readonly checkIdInput: string; +``` + +- *Type:* string + +--- + +##### `comparisonInput`Optional + +```typescript +public readonly comparisonInput: string; +``` + +- *Type:* string + +--- + +##### `nameInput`Optional + +```typescript +public readonly nameInput: string; +``` + +- *Type:* string + +--- + +##### `notificationsInput`Optional + +```typescript +public readonly notificationsInput: IResolvable | UptimeAlertNotifications[]; +``` + +- *Type:* cdktf.IResolvable | @cdktf/provider-digitalocean.uptimeAlert.UptimeAlertNotifications[] + +--- + +##### `periodInput`Optional + +```typescript +public readonly periodInput: string; +``` + +- *Type:* string + +--- + +##### `thresholdInput`Optional + +```typescript +public readonly thresholdInput: number; +``` + +- *Type:* number + +--- + +##### `typeInput`Optional + +```typescript +public readonly typeInput: string; +``` + +- *Type:* string + +--- + +##### `checkId`Required + +```typescript +public readonly checkId: string; +``` + +- *Type:* string + +--- + +##### `comparison`Required + +```typescript +public readonly comparison: string; +``` + +- *Type:* string + +--- + +##### `name`Required + +```typescript +public readonly name: string; +``` + +- *Type:* string + +--- + +##### `period`Required + +```typescript +public readonly period: string; +``` + +- *Type:* string + +--- + +##### `threshold`Required + +```typescript +public readonly threshold: number; +``` + +- *Type:* number + +--- + +##### `type`Required + +```typescript +public readonly type: string; +``` + +- *Type:* string + +--- + +#### Constants + +| **Name** | **Type** | **Description** | +| --- | --- | --- | +| tfResourceType | string | *No description.* | + +--- + +##### `tfResourceType`Required + +```typescript +public readonly tfResourceType: string; +``` + +- *Type:* string + +--- + +### UptimeCheck + +Represents a {@link https://www.terraform.io/docs/providers/digitalocean/r/uptime_check digitalocean_uptime_check}. + +#### Initializers + +```typescript +import { uptimeCheck } from '@cdktf/provider-digitalocean' + +new uptimeCheck.UptimeCheck(scope: Construct, id: string, config: UptimeCheckConfig) +``` + +| **Name** | **Type** | **Description** | +| --- | --- | --- | +| scope | constructs.Construct | The scope in which to define this construct. | +| id | string | The scoped construct ID. | +| config | @cdktf/provider-digitalocean.uptimeCheck.UptimeCheckConfig | *No description.* | + +--- + +##### `scope`Required + +- *Type:* constructs.Construct + +The scope in which to define this construct. + +--- + +##### `id`Required + +- *Type:* string + +The scoped construct ID. + +Must be unique amongst siblings in the same scope + +--- + +##### `config`Required + +- *Type:* @cdktf/provider-digitalocean.uptimeCheck.UptimeCheckConfig + +--- + +#### Methods + +| **Name** | **Description** | +| --- | --- | +| toString | Returns a string representation of this construct. | +| addOverride | *No description.* | +| overrideLogicalId | Overrides the auto-generated logical ID with a specific ID. | +| resetOverrideLogicalId | Resets a previously passed logical Id to use the auto-generated logical id again. | +| toMetadata | *No description.* | +| toTerraform | Adds this resource to the terraform JSON output. | +| getAnyMapAttribute | *No description.* | +| getBooleanAttribute | *No description.* | +| getBooleanMapAttribute | *No description.* | +| getListAttribute | *No description.* | +| getNumberAttribute | *No description.* | +| getNumberListAttribute | *No description.* | +| getNumberMapAttribute | *No description.* | +| getStringAttribute | *No description.* | +| getStringMapAttribute | *No description.* | +| interpolationForAttribute | *No description.* | +| resetEnabled | *No description.* | +| resetRegions | *No description.* | +| resetType | *No description.* | + +--- + +##### `toString` + +```typescript +public toString(): string +``` + +Returns a string representation of this construct. + +##### `addOverride` + +```typescript +public addOverride(path: string, value: any): void +``` + +###### `path`Required + +- *Type:* string + +--- + +###### `value`Required + +- *Type:* any + +--- + +##### `overrideLogicalId` + +```typescript +public overrideLogicalId(newLogicalId: string): void +``` + +Overrides the auto-generated logical ID with a specific ID. + +###### `newLogicalId`Required + +- *Type:* string + +The new logical ID to use for this stack element. + +--- + +##### `resetOverrideLogicalId` + +```typescript +public resetOverrideLogicalId(): void +``` + +Resets a previously passed logical Id to use the auto-generated logical id again. + +##### `toMetadata` + +```typescript +public toMetadata(): any +``` + +##### `toTerraform` + +```typescript +public toTerraform(): any +``` + +Adds this resource to the terraform JSON output. + +##### `getAnyMapAttribute` + +```typescript +public getAnyMapAttribute(terraformAttribute: string): {[ key: string ]: any} +``` + +###### `terraformAttribute`Required + +- *Type:* string + +--- + +##### `getBooleanAttribute` + +```typescript +public getBooleanAttribute(terraformAttribute: string): IResolvable +``` + +###### `terraformAttribute`Required + +- *Type:* string + +--- + +##### `getBooleanMapAttribute` + +```typescript +public getBooleanMapAttribute(terraformAttribute: string): {[ key: string ]: boolean} +``` + +###### `terraformAttribute`Required + +- *Type:* string + +--- + +##### `getListAttribute` + +```typescript +public getListAttribute(terraformAttribute: string): string[] +``` + +###### `terraformAttribute`Required + +- *Type:* string + +--- + +##### `getNumberAttribute` + +```typescript +public getNumberAttribute(terraformAttribute: string): number +``` + +###### `terraformAttribute`Required + +- *Type:* string + +--- + +##### `getNumberListAttribute` + +```typescript +public getNumberListAttribute(terraformAttribute: string): number[] +``` + +###### `terraformAttribute`Required + +- *Type:* string + +--- + +##### `getNumberMapAttribute` + +```typescript +public getNumberMapAttribute(terraformAttribute: string): {[ key: string ]: number} +``` + +###### `terraformAttribute`Required + +- *Type:* string + +--- + +##### `getStringAttribute` + +```typescript +public getStringAttribute(terraformAttribute: string): string +``` + +###### `terraformAttribute`Required + +- *Type:* string + +--- + +##### `getStringMapAttribute` + +```typescript +public getStringMapAttribute(terraformAttribute: string): {[ key: string ]: string} +``` + +###### `terraformAttribute`Required + +- *Type:* string + +--- + +##### `interpolationForAttribute` + +```typescript +public interpolationForAttribute(terraformAttribute: string): IResolvable +``` + +###### `terraformAttribute`Required + +- *Type:* string + +--- + +##### `resetEnabled` + +```typescript +public resetEnabled(): void +``` + +##### `resetRegions` + +```typescript +public resetRegions(): void +``` + +##### `resetType` + +```typescript +public resetType(): void +``` + +#### Static Functions + +| **Name** | **Description** | +| --- | --- | +| isConstruct | Checks if `x` is a construct. | +| isTerraformElement | *No description.* | +| isTerraformResource | *No description.* | + +--- + +##### `isConstruct` + +```typescript +import { uptimeCheck } from '@cdktf/provider-digitalocean' + +uptimeCheck.UptimeCheck.isConstruct(x: any) +``` + +Checks if `x` is a construct. + +Use this method instead of `instanceof` to properly detect `Construct` +instances, even when the construct library is symlinked. + +Explanation: in JavaScript, multiple copies of the `constructs` library on +disk are seen as independent, completely different libraries. As a +consequence, the class `Construct` in each copy of the `constructs` library +is seen as a different class, and an instance of one class will not test as +`instanceof` the other class. `npm install` will not create installations +like this, but users may manually symlink construct libraries together or +use a monorepo tool: in those cases, multiple copies of the `constructs` +library can be accidentally installed, and `instanceof` will behave +unpredictably. It is safest to avoid using `instanceof`, and using +this type-testing method instead. + +###### `x`Required + +- *Type:* any + +Any object. + +--- + +##### `isTerraformElement` + +```typescript +import { uptimeCheck } from '@cdktf/provider-digitalocean' + +uptimeCheck.UptimeCheck.isTerraformElement(x: any) +``` + +###### `x`Required + +- *Type:* any + +--- + +##### `isTerraformResource` + +```typescript +import { uptimeCheck } from '@cdktf/provider-digitalocean' + +uptimeCheck.UptimeCheck.isTerraformResource(x: any) +``` + +###### `x`Required + +- *Type:* any + +--- + +#### Properties + +| **Name** | **Type** | **Description** | +| --- | --- | --- | +| node | constructs.Node | The tree node. | +| cdktfStack | cdktf.TerraformStack | *No description.* | +| fqn | string | *No description.* | +| friendlyUniqueId | string | *No description.* | +| terraformMetaArguments | {[ key: string ]: any} | *No description.* | +| terraformResourceType | string | *No description.* | +| terraformGeneratorMetadata | cdktf.TerraformProviderGeneratorMetadata | *No description.* | +| connection | cdktf.SSHProvisionerConnection \| cdktf.WinrmProvisionerConnection | *No description.* | +| count | number | *No description.* | +| dependsOn | string[] | *No description.* | +| forEach | cdktf.ITerraformIterator | *No description.* | +| lifecycle | cdktf.TerraformResourceLifecycle | *No description.* | +| provider | cdktf.TerraformProvider | *No description.* | +| provisioners | cdktf.FileProvisioner \| cdktf.LocalExecProvisioner \| cdktf.RemoteExecProvisioner[] | *No description.* | +| id | string | *No description.* | +| enabledInput | boolean \| cdktf.IResolvable | *No description.* | +| nameInput | string | *No description.* | +| regionsInput | string[] | *No description.* | +| targetInput | string | *No description.* | +| typeInput | string | *No description.* | +| enabled | boolean \| cdktf.IResolvable | *No description.* | +| name | string | *No description.* | +| regions | string[] | *No description.* | +| target | string | *No description.* | +| type | string | *No description.* | + +--- + +##### `node`Required + +```typescript +public readonly node: Node; +``` + +- *Type:* constructs.Node + +The tree node. + +--- + +##### `cdktfStack`Required + +```typescript +public readonly cdktfStack: TerraformStack; +``` + +- *Type:* cdktf.TerraformStack + +--- + +##### `fqn`Required + +```typescript +public readonly fqn: string; +``` + +- *Type:* string + +--- + +##### `friendlyUniqueId`Required + +```typescript +public readonly friendlyUniqueId: string; +``` + +- *Type:* string + +--- + +##### `terraformMetaArguments`Required + +```typescript +public readonly terraformMetaArguments: {[ key: string ]: any}; +``` + +- *Type:* {[ key: string ]: any} + +--- + +##### `terraformResourceType`Required + +```typescript +public readonly terraformResourceType: string; +``` + +- *Type:* string + +--- + +##### `terraformGeneratorMetadata`Optional + +```typescript +public readonly terraformGeneratorMetadata: TerraformProviderGeneratorMetadata; +``` + +- *Type:* cdktf.TerraformProviderGeneratorMetadata + +--- + +##### `connection`Optional + +```typescript +public readonly connection: SSHProvisionerConnection | WinrmProvisionerConnection; +``` + +- *Type:* cdktf.SSHProvisionerConnection | cdktf.WinrmProvisionerConnection + +--- + +##### `count`Optional + +```typescript +public readonly count: number; +``` + +- *Type:* number + +--- + +##### `dependsOn`Optional + +```typescript +public readonly dependsOn: string[]; +``` + +- *Type:* string[] + +--- + +##### `forEach`Optional + +```typescript +public readonly forEach: ITerraformIterator; +``` + +- *Type:* cdktf.ITerraformIterator + +--- + +##### `lifecycle`Optional + +```typescript +public readonly lifecycle: TerraformResourceLifecycle; +``` + +- *Type:* cdktf.TerraformResourceLifecycle + +--- + +##### `provider`Optional + +```typescript +public readonly provider: TerraformProvider; +``` + +- *Type:* cdktf.TerraformProvider + +--- + +##### `provisioners`Optional + +```typescript +public readonly provisioners: FileProvisioner | LocalExecProvisioner | RemoteExecProvisioner[]; +``` + +- *Type:* cdktf.FileProvisioner | cdktf.LocalExecProvisioner | cdktf.RemoteExecProvisioner[] + +--- + +##### `id`Required + +```typescript +public readonly id: string; +``` + +- *Type:* string + +--- + +##### `enabledInput`Optional + +```typescript +public readonly enabledInput: boolean | IResolvable; +``` + +- *Type:* boolean | cdktf.IResolvable + +--- + +##### `nameInput`Optional + +```typescript +public readonly nameInput: string; +``` + +- *Type:* string + +--- + +##### `regionsInput`Optional + +```typescript +public readonly regionsInput: string[]; +``` + +- *Type:* string[] + +--- + +##### `targetInput`Optional + +```typescript +public readonly targetInput: string; +``` + +- *Type:* string + +--- + +##### `typeInput`Optional + +```typescript +public readonly typeInput: string; +``` + +- *Type:* string + +--- + +##### `enabled`Required + +```typescript +public readonly enabled: boolean | IResolvable; +``` + +- *Type:* boolean | cdktf.IResolvable + +--- + +##### `name`Required + +```typescript +public readonly name: string; +``` + +- *Type:* string + +--- + +##### `regions`Required + +```typescript +public readonly regions: string[]; +``` + +- *Type:* string[] + +--- + +##### `target`Required + +```typescript +public readonly target: string; +``` + +- *Type:* string + +--- + +##### `type`Required + +```typescript +public readonly type: string; +``` + +- *Type:* string + +--- + +#### Constants + +| **Name** | **Type** | **Description** | +| --- | --- | --- | +| tfResourceType | string | *No description.* | + +--- + +##### `tfResourceType`Required + +```typescript +public readonly tfResourceType: string; +``` + +- *Type:* string + +--- + ### Volume Represents a {@link https://www.terraform.io/docs/providers/digitalocean/r/volume digitalocean_volume}. @@ -62064,6 +63473,17 @@ Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/digit --- +### DataDigitaloceanLoadbalancerFirewall + +#### Initializer + +```typescript +import { dataDigitaloceanLoadbalancer } from '@cdktf/provider-digitalocean' + +const dataDigitaloceanLoadbalancerFirewall: dataDigitaloceanLoadbalancer.DataDigitaloceanLoadbalancerFirewall = { ... } +``` + + ### DataDigitaloceanLoadbalancerForwardingRule #### Initializer @@ -68054,6 +69474,7 @@ const loadbalancerConfig: loadbalancer.LoadbalancerConfig = { ... } | dropletTag | string | Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/digitalocean/r/loadbalancer#droplet_tag Loadbalancer#droplet_tag}. | | enableBackendKeepalive | boolean \| cdktf.IResolvable | Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/digitalocean/r/loadbalancer#enable_backend_keepalive Loadbalancer#enable_backend_keepalive}. | | enableProxyProtocol | boolean \| cdktf.IResolvable | Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/digitalocean/r/loadbalancer#enable_proxy_protocol Loadbalancer#enable_proxy_protocol}. | +| firewall | @cdktf/provider-digitalocean.loadbalancer.LoadbalancerFirewall | firewall block. | | healthcheck | @cdktf/provider-digitalocean.loadbalancer.LoadbalancerHealthcheck | healthcheck block. | | httpIdleTimeoutSeconds | number | Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/digitalocean/r/loadbalancer#http_idle_timeout_seconds Loadbalancer#http_idle_timeout_seconds}. | | id | string | Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/digitalocean/r/loadbalancer#id Loadbalancer#id}. | @@ -68246,6 +69667,20 @@ Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/digit --- +##### `firewall`Optional + +```typescript +public readonly firewall: LoadbalancerFirewall; +``` + +- *Type:* @cdktf/provider-digitalocean.loadbalancer.LoadbalancerFirewall + +firewall block. + +Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/digitalocean/r/loadbalancer#firewall Loadbalancer#firewall} + +--- + ##### `healthcheck`Optional ```typescript @@ -68361,6 +69796,53 @@ Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/digit --- +### LoadbalancerFirewall + +#### Initializer + +```typescript +import { loadbalancer } from '@cdktf/provider-digitalocean' + +const loadbalancerFirewall: loadbalancer.LoadbalancerFirewall = { ... } +``` + +#### Properties + +| **Name** | **Type** | **Description** | +| --- | --- | --- | +| allow | string[] | the rules for ALLOWING traffic to the LB (strings in the form: 'ip:1.2.3.4' or 'cidr:1.2.0.0/16'). | +| deny | string[] | the rules for DENYING traffic to the LB (strings in the form: 'ip:1.2.3.4' or 'cidr:1.2.0.0/16'). | + +--- + +##### `allow`Optional + +```typescript +public readonly allow: string[]; +``` + +- *Type:* string[] + +the rules for ALLOWING traffic to the LB (strings in the form: 'ip:1.2.3.4' or 'cidr:1.2.0.0/16'). + +Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/digitalocean/r/loadbalancer#allow Loadbalancer#allow} + +--- + +##### `deny`Optional + +```typescript +public readonly deny: string[]; +``` + +- *Type:* string[] + +the rules for DENYING traffic to the LB (strings in the form: 'ip:1.2.3.4' or 'cidr:1.2.0.0/16'). + +Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/digitalocean/r/loadbalancer#deny Loadbalancer#deny} + +--- + ### LoadbalancerForwardingRule #### Initializer @@ -71065,6 +72547,472 @@ If you experience problems setting this value it might not be settable. Please t --- +### UptimeAlertConfig + +#### Initializer + +```typescript +import { uptimeAlert } from '@cdktf/provider-digitalocean' + +const uptimeAlertConfig: uptimeAlert.UptimeAlertConfig = { ... } +``` + +#### Properties + +| **Name** | **Type** | **Description** | +| --- | --- | --- | +| connection | cdktf.SSHProvisionerConnection \| cdktf.WinrmProvisionerConnection | *No description.* | +| count | number | *No description.* | +| dependsOn | cdktf.ITerraformDependable[] | *No description.* | +| forEach | cdktf.ITerraformIterator | *No description.* | +| lifecycle | cdktf.TerraformResourceLifecycle | *No description.* | +| provider | cdktf.TerraformProvider | *No description.* | +| provisioners | cdktf.FileProvisioner \| cdktf.LocalExecProvisioner \| cdktf.RemoteExecProvisioner[] | *No description.* | +| checkId | string | A unique identifier for a check. | +| name | string | A human-friendly display name for the alert. | +| notifications | cdktf.IResolvable \| @cdktf/provider-digitalocean.uptimeAlert.UptimeAlertNotifications[] | notifications block. | +| type | string | The type of health check to perform. Enum: 'latency' 'down' 'down_global' 'ssl_expiry'. | +| comparison | string | The comparison operator used against the alert's threshold. Enum: 'greater_than' 'less_than. | +| period | string | Period of time the threshold must be exceeded to trigger the alert. | +| threshold | number | The threshold at which the alert will enter a trigger state. | + +--- + +##### `connection`Optional + +```typescript +public readonly connection: SSHProvisionerConnection | WinrmProvisionerConnection; +``` + +- *Type:* cdktf.SSHProvisionerConnection | cdktf.WinrmProvisionerConnection + +--- + +##### `count`Optional + +```typescript +public readonly count: number; +``` + +- *Type:* number + +--- + +##### `dependsOn`Optional + +```typescript +public readonly dependsOn: ITerraformDependable[]; +``` + +- *Type:* cdktf.ITerraformDependable[] + +--- + +##### `forEach`Optional + +```typescript +public readonly forEach: ITerraformIterator; +``` + +- *Type:* cdktf.ITerraformIterator + +--- + +##### `lifecycle`Optional + +```typescript +public readonly lifecycle: TerraformResourceLifecycle; +``` + +- *Type:* cdktf.TerraformResourceLifecycle + +--- + +##### `provider`Optional + +```typescript +public readonly provider: TerraformProvider; +``` + +- *Type:* cdktf.TerraformProvider + +--- + +##### `provisioners`Optional + +```typescript +public readonly provisioners: FileProvisioner | LocalExecProvisioner | RemoteExecProvisioner[]; +``` + +- *Type:* cdktf.FileProvisioner | cdktf.LocalExecProvisioner | cdktf.RemoteExecProvisioner[] + +--- + +##### `checkId`Required + +```typescript +public readonly checkId: string; +``` + +- *Type:* string + +A unique identifier for a check. + +Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/digitalocean/r/uptime_alert#check_id UptimeAlert#check_id} + +--- + +##### `name`Required + +```typescript +public readonly name: string; +``` + +- *Type:* string + +A human-friendly display name for the alert. + +Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/digitalocean/r/uptime_alert#name UptimeAlert#name} + +--- + +##### `notifications`Required + +```typescript +public readonly notifications: IResolvable | UptimeAlertNotifications[]; +``` + +- *Type:* cdktf.IResolvable | @cdktf/provider-digitalocean.uptimeAlert.UptimeAlertNotifications[] + +notifications block. + +Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/digitalocean/r/uptime_alert#notifications UptimeAlert#notifications} + +--- + +##### `type`Required + +```typescript +public readonly type: string; +``` + +- *Type:* string + +The type of health check to perform. Enum: 'latency' 'down' 'down_global' 'ssl_expiry'. + +Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/digitalocean/r/uptime_alert#type UptimeAlert#type} + +--- + +##### `comparison`Optional + +```typescript +public readonly comparison: string; +``` + +- *Type:* string + +The comparison operator used against the alert's threshold. Enum: 'greater_than' 'less_than. + +Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/digitalocean/r/uptime_alert#comparison UptimeAlert#comparison} + +--- + +##### `period`Optional + +```typescript +public readonly period: string; +``` + +- *Type:* string + +Period of time the threshold must be exceeded to trigger the alert. + +Enum '2m' '3m' '5m' '10m' '15m' '30m' '1h' + +Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/digitalocean/r/uptime_alert#period UptimeAlert#period} + +--- + +##### `threshold`Optional + +```typescript +public readonly threshold: number; +``` + +- *Type:* number + +The threshold at which the alert will enter a trigger state. + +The specific threshold is dependent on the alert type. + +Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/digitalocean/r/uptime_alert#threshold UptimeAlert#threshold} + +--- + +### UptimeAlertNotifications + +#### Initializer + +```typescript +import { uptimeAlert } from '@cdktf/provider-digitalocean' + +const uptimeAlertNotifications: uptimeAlert.UptimeAlertNotifications = { ... } +``` + +#### Properties + +| **Name** | **Type** | **Description** | +| --- | --- | --- | +| email | string[] | List of email addresses to sent notifications to. | +| slack | cdktf.IResolvable \| @cdktf/provider-digitalocean.uptimeAlert.UptimeAlertNotificationsSlack[] | slack block. | + +--- + +##### `email`Optional + +```typescript +public readonly email: string[]; +``` + +- *Type:* string[] + +List of email addresses to sent notifications to. + +Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/digitalocean/r/uptime_alert#email UptimeAlert#email} + +--- + +##### `slack`Optional + +```typescript +public readonly slack: IResolvable | UptimeAlertNotificationsSlack[]; +``` + +- *Type:* cdktf.IResolvable | @cdktf/provider-digitalocean.uptimeAlert.UptimeAlertNotificationsSlack[] + +slack block. + +Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/digitalocean/r/uptime_alert#slack UptimeAlert#slack} + +--- + +### UptimeAlertNotificationsSlack + +#### Initializer + +```typescript +import { uptimeAlert } from '@cdktf/provider-digitalocean' + +const uptimeAlertNotificationsSlack: uptimeAlert.UptimeAlertNotificationsSlack = { ... } +``` + +#### Properties + +| **Name** | **Type** | **Description** | +| --- | --- | --- | +| channel | string | The Slack channel to send alerts to. | +| url | string | The webhook URL for Slack. | + +--- + +##### `channel`Required + +```typescript +public readonly channel: string; +``` + +- *Type:* string + +The Slack channel to send alerts to. + +Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/digitalocean/r/uptime_alert#channel UptimeAlert#channel} + +--- + +##### `url`Required + +```typescript +public readonly url: string; +``` + +- *Type:* string + +The webhook URL for Slack. + +Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/digitalocean/r/uptime_alert#url UptimeAlert#url} + +--- + +### UptimeCheckConfig + +#### Initializer + +```typescript +import { uptimeCheck } from '@cdktf/provider-digitalocean' + +const uptimeCheckConfig: uptimeCheck.UptimeCheckConfig = { ... } +``` + +#### Properties + +| **Name** | **Type** | **Description** | +| --- | --- | --- | +| connection | cdktf.SSHProvisionerConnection \| cdktf.WinrmProvisionerConnection | *No description.* | +| count | number | *No description.* | +| dependsOn | cdktf.ITerraformDependable[] | *No description.* | +| forEach | cdktf.ITerraformIterator | *No description.* | +| lifecycle | cdktf.TerraformResourceLifecycle | *No description.* | +| provider | cdktf.TerraformProvider | *No description.* | +| provisioners | cdktf.FileProvisioner \| cdktf.LocalExecProvisioner \| cdktf.RemoteExecProvisioner[] | *No description.* | +| name | string | A human-friendly display name for the check. | +| target | string | The endpoint to perform healthchecks on. | +| enabled | boolean \| cdktf.IResolvable | A boolean value indicating whether the check is enabled/disabled. | +| regions | string[] | An array containing the selected regions to perform healthchecks from. | +| type | string | The type of health check to perform. Enum: 'ping' 'http' 'https'. | + +--- + +##### `connection`Optional + +```typescript +public readonly connection: SSHProvisionerConnection | WinrmProvisionerConnection; +``` + +- *Type:* cdktf.SSHProvisionerConnection | cdktf.WinrmProvisionerConnection + +--- + +##### `count`Optional + +```typescript +public readonly count: number; +``` + +- *Type:* number + +--- + +##### `dependsOn`Optional + +```typescript +public readonly dependsOn: ITerraformDependable[]; +``` + +- *Type:* cdktf.ITerraformDependable[] + +--- + +##### `forEach`Optional + +```typescript +public readonly forEach: ITerraformIterator; +``` + +- *Type:* cdktf.ITerraformIterator + +--- + +##### `lifecycle`Optional + +```typescript +public readonly lifecycle: TerraformResourceLifecycle; +``` + +- *Type:* cdktf.TerraformResourceLifecycle + +--- + +##### `provider`Optional + +```typescript +public readonly provider: TerraformProvider; +``` + +- *Type:* cdktf.TerraformProvider + +--- + +##### `provisioners`Optional + +```typescript +public readonly provisioners: FileProvisioner | LocalExecProvisioner | RemoteExecProvisioner[]; +``` + +- *Type:* cdktf.FileProvisioner | cdktf.LocalExecProvisioner | cdktf.RemoteExecProvisioner[] + +--- + +##### `name`Required + +```typescript +public readonly name: string; +``` + +- *Type:* string + +A human-friendly display name for the check. + +Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/digitalocean/r/uptime_check#name UptimeCheck#name} + +--- + +##### `target`Required + +```typescript +public readonly target: string; +``` + +- *Type:* string + +The endpoint to perform healthchecks on. + +Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/digitalocean/r/uptime_check#target UptimeCheck#target} + +--- + +##### `enabled`Optional + +```typescript +public readonly enabled: boolean | IResolvable; +``` + +- *Type:* boolean | cdktf.IResolvable + +A boolean value indicating whether the check is enabled/disabled. + +Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/digitalocean/r/uptime_check#enabled UptimeCheck#enabled} + +--- + +##### `regions`Optional + +```typescript +public readonly regions: string[]; +``` + +- *Type:* string[] + +An array containing the selected regions to perform healthchecks from. + +Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/digitalocean/r/uptime_check#regions UptimeCheck#regions} + +--- + +##### `type`Optional + +```typescript +public readonly type: string; +``` + +- *Type:* string + +The type of health check to perform. Enum: 'ping' 'http' 'https'. + +Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/digitalocean/r/uptime_check#type UptimeCheck#type} + +--- + ### VolumeAttachmentConfig #### Initializer @@ -141029,6 +142977,427 @@ public readonly internalValue: DataDigitaloceanKubernetesClusterNodePoolTaint; --- +### DataDigitaloceanLoadbalancerFirewallList + +#### Initializers + +```typescript +import { dataDigitaloceanLoadbalancer } from '@cdktf/provider-digitalocean' + +new dataDigitaloceanLoadbalancer.DataDigitaloceanLoadbalancerFirewallList(terraformResource: IInterpolatingParent, terraformAttribute: string, wrapsSet: boolean) +``` + +| **Name** | **Type** | **Description** | +| --- | --- | --- | +| terraformResource | cdktf.IInterpolatingParent | The parent resource. | +| terraformAttribute | string | The attribute on the parent resource this class is referencing. | +| wrapsSet | boolean | whether the list is wrapping a set (will add tolist() to be able to access an item via an index). | + +--- + +##### `terraformResource`Required + +- *Type:* cdktf.IInterpolatingParent + +The parent resource. + +--- + +##### `terraformAttribute`Required + +- *Type:* string + +The attribute on the parent resource this class is referencing. + +--- + +##### `wrapsSet`Required + +- *Type:* boolean + +whether the list is wrapping a set (will add tolist() to be able to access an item via an index). + +--- + +#### Methods + +| **Name** | **Description** | +| --- | --- | +| computeFqn | *No description.* | +| resolve | Produce the Token's value at resolution time. | +| toString | Return a string representation of this resolvable object. | +| get | *No description.* | + +--- + +##### `computeFqn` + +```typescript +public computeFqn(): string +``` + +##### `resolve` + +```typescript +public resolve(_context: IResolveContext): any +``` + +Produce the Token's value at resolution time. + +###### `_context`Required + +- *Type:* cdktf.IResolveContext + +--- + +##### `toString` + +```typescript +public toString(): string +``` + +Return a string representation of this resolvable object. + +Returns a reversible string representation. + +##### `get` + +```typescript +public get(index: number): DataDigitaloceanLoadbalancerFirewallOutputReference +``` + +###### `index`Required + +- *Type:* number + +the index of the item to return. + +--- + + +#### Properties + +| **Name** | **Type** | **Description** | +| --- | --- | --- | +| creationStack | string[] | The creation stack of this resolvable which will be appended to errors thrown during resolution. | +| fqn | string | *No description.* | + +--- + +##### `creationStack`Required + +```typescript +public readonly creationStack: string[]; +``` + +- *Type:* string[] + +The creation stack of this resolvable which will be appended to errors thrown during resolution. + +If this returns an empty array the stack will not be attached. + +--- + +##### `fqn`Required + +```typescript +public readonly fqn: string; +``` + +- *Type:* string + +--- + + +### DataDigitaloceanLoadbalancerFirewallOutputReference + +#### Initializers + +```typescript +import { dataDigitaloceanLoadbalancer } from '@cdktf/provider-digitalocean' + +new dataDigitaloceanLoadbalancer.DataDigitaloceanLoadbalancerFirewallOutputReference(terraformResource: IInterpolatingParent, terraformAttribute: string, complexObjectIndex: number, complexObjectIsFromSet: boolean) +``` + +| **Name** | **Type** | **Description** | +| --- | --- | --- | +| terraformResource | cdktf.IInterpolatingParent | The parent resource. | +| terraformAttribute | string | The attribute on the parent resource this class is referencing. | +| complexObjectIndex | number | the index of this item in the list. | +| complexObjectIsFromSet | boolean | whether the list is wrapping a set (will add tolist() to be able to access an item via an index). | + +--- + +##### `terraformResource`Required + +- *Type:* cdktf.IInterpolatingParent + +The parent resource. + +--- + +##### `terraformAttribute`Required + +- *Type:* string + +The attribute on the parent resource this class is referencing. + +--- + +##### `complexObjectIndex`Required + +- *Type:* number + +the index of this item in the list. + +--- + +##### `complexObjectIsFromSet`Required + +- *Type:* boolean + +whether the list is wrapping a set (will add tolist() to be able to access an item via an index). + +--- + +#### Methods + +| **Name** | **Description** | +| --- | --- | +| computeFqn | *No description.* | +| getAnyMapAttribute | *No description.* | +| getBooleanAttribute | *No description.* | +| getBooleanMapAttribute | *No description.* | +| getListAttribute | *No description.* | +| getNumberAttribute | *No description.* | +| getNumberListAttribute | *No description.* | +| getNumberMapAttribute | *No description.* | +| getStringAttribute | *No description.* | +| getStringMapAttribute | *No description.* | +| interpolationForAttribute | *No description.* | +| resolve | Produce the Token's value at resolution time. | +| toString | Return a string representation of this resolvable object. | + +--- + +##### `computeFqn` + +```typescript +public computeFqn(): string +``` + +##### `getAnyMapAttribute` + +```typescript +public getAnyMapAttribute(terraformAttribute: string): {[ key: string ]: any} +``` + +###### `terraformAttribute`Required + +- *Type:* string + +--- + +##### `getBooleanAttribute` + +```typescript +public getBooleanAttribute(terraformAttribute: string): IResolvable +``` + +###### `terraformAttribute`Required + +- *Type:* string + +--- + +##### `getBooleanMapAttribute` + +```typescript +public getBooleanMapAttribute(terraformAttribute: string): {[ key: string ]: boolean} +``` + +###### `terraformAttribute`Required + +- *Type:* string + +--- + +##### `getListAttribute` + +```typescript +public getListAttribute(terraformAttribute: string): string[] +``` + +###### `terraformAttribute`Required + +- *Type:* string + +--- + +##### `getNumberAttribute` + +```typescript +public getNumberAttribute(terraformAttribute: string): number +``` + +###### `terraformAttribute`Required + +- *Type:* string + +--- + +##### `getNumberListAttribute` + +```typescript +public getNumberListAttribute(terraformAttribute: string): number[] +``` + +###### `terraformAttribute`Required + +- *Type:* string + +--- + +##### `getNumberMapAttribute` + +```typescript +public getNumberMapAttribute(terraformAttribute: string): {[ key: string ]: number} +``` + +###### `terraformAttribute`Required + +- *Type:* string + +--- + +##### `getStringAttribute` + +```typescript +public getStringAttribute(terraformAttribute: string): string +``` + +###### `terraformAttribute`Required + +- *Type:* string + +--- + +##### `getStringMapAttribute` + +```typescript +public getStringMapAttribute(terraformAttribute: string): {[ key: string ]: string} +``` + +###### `terraformAttribute`Required + +- *Type:* string + +--- + +##### `interpolationForAttribute` + +```typescript +public interpolationForAttribute(property: string): IResolvable +``` + +###### `property`Required + +- *Type:* string + +--- + +##### `resolve` + +```typescript +public resolve(_context: IResolveContext): any +``` + +Produce the Token's value at resolution time. + +###### `_context`Required + +- *Type:* cdktf.IResolveContext + +--- + +##### `toString` + +```typescript +public toString(): string +``` + +Return a string representation of this resolvable object. + +Returns a reversible string representation. + + +#### Properties + +| **Name** | **Type** | **Description** | +| --- | --- | --- | +| creationStack | string[] | The creation stack of this resolvable which will be appended to errors thrown during resolution. | +| fqn | string | *No description.* | +| allow | string[] | *No description.* | +| deny | string[] | *No description.* | +| internalValue | @cdktf/provider-digitalocean.dataDigitaloceanLoadbalancer.DataDigitaloceanLoadbalancerFirewall | *No description.* | + +--- + +##### `creationStack`Required + +```typescript +public readonly creationStack: string[]; +``` + +- *Type:* string[] + +The creation stack of this resolvable which will be appended to errors thrown during resolution. + +If this returns an empty array the stack will not be attached. + +--- + +##### `fqn`Required + +```typescript +public readonly fqn: string; +``` + +- *Type:* string + +--- + +##### `allow`Required + +```typescript +public readonly allow: string[]; +``` + +- *Type:* string[] + +--- + +##### `deny`Required + +```typescript +public readonly deny: string[]; +``` + +- *Type:* string[] + +--- + +##### `internalValue`Optional + +```typescript +public readonly internalValue: DataDigitaloceanLoadbalancerFirewall; +``` + +- *Type:* @cdktf/provider-digitalocean.dataDigitaloceanLoadbalancer.DataDigitaloceanLoadbalancerFirewall + +--- + + ### DataDigitaloceanLoadbalancerForwardingRuleList #### Initializers @@ -158372,6 +160741,313 @@ public readonly internalValue: KubernetesNodePoolTimeouts | IResolvable; --- +### LoadbalancerFirewallOutputReference + +#### Initializers + +```typescript +import { loadbalancer } from '@cdktf/provider-digitalocean' + +new loadbalancer.LoadbalancerFirewallOutputReference(terraformResource: IInterpolatingParent, terraformAttribute: string) +``` + +| **Name** | **Type** | **Description** | +| --- | --- | --- | +| terraformResource | cdktf.IInterpolatingParent | The parent resource. | +| terraformAttribute | string | The attribute on the parent resource this class is referencing. | + +--- + +##### `terraformResource`Required + +- *Type:* cdktf.IInterpolatingParent + +The parent resource. + +--- + +##### `terraformAttribute`Required + +- *Type:* string + +The attribute on the parent resource this class is referencing. + +--- + +#### Methods + +| **Name** | **Description** | +| --- | --- | +| computeFqn | *No description.* | +| getAnyMapAttribute | *No description.* | +| getBooleanAttribute | *No description.* | +| getBooleanMapAttribute | *No description.* | +| getListAttribute | *No description.* | +| getNumberAttribute | *No description.* | +| getNumberListAttribute | *No description.* | +| getNumberMapAttribute | *No description.* | +| getStringAttribute | *No description.* | +| getStringMapAttribute | *No description.* | +| interpolationForAttribute | *No description.* | +| resolve | Produce the Token's value at resolution time. | +| toString | Return a string representation of this resolvable object. | +| resetAllow | *No description.* | +| resetDeny | *No description.* | + +--- + +##### `computeFqn` + +```typescript +public computeFqn(): string +``` + +##### `getAnyMapAttribute` + +```typescript +public getAnyMapAttribute(terraformAttribute: string): {[ key: string ]: any} +``` + +###### `terraformAttribute`Required + +- *Type:* string + +--- + +##### `getBooleanAttribute` + +```typescript +public getBooleanAttribute(terraformAttribute: string): IResolvable +``` + +###### `terraformAttribute`Required + +- *Type:* string + +--- + +##### `getBooleanMapAttribute` + +```typescript +public getBooleanMapAttribute(terraformAttribute: string): {[ key: string ]: boolean} +``` + +###### `terraformAttribute`Required + +- *Type:* string + +--- + +##### `getListAttribute` + +```typescript +public getListAttribute(terraformAttribute: string): string[] +``` + +###### `terraformAttribute`Required + +- *Type:* string + +--- + +##### `getNumberAttribute` + +```typescript +public getNumberAttribute(terraformAttribute: string): number +``` + +###### `terraformAttribute`Required + +- *Type:* string + +--- + +##### `getNumberListAttribute` + +```typescript +public getNumberListAttribute(terraformAttribute: string): number[] +``` + +###### `terraformAttribute`Required + +- *Type:* string + +--- + +##### `getNumberMapAttribute` + +```typescript +public getNumberMapAttribute(terraformAttribute: string): {[ key: string ]: number} +``` + +###### `terraformAttribute`Required + +- *Type:* string + +--- + +##### `getStringAttribute` + +```typescript +public getStringAttribute(terraformAttribute: string): string +``` + +###### `terraformAttribute`Required + +- *Type:* string + +--- + +##### `getStringMapAttribute` + +```typescript +public getStringMapAttribute(terraformAttribute: string): {[ key: string ]: string} +``` + +###### `terraformAttribute`Required + +- *Type:* string + +--- + +##### `interpolationForAttribute` + +```typescript +public interpolationForAttribute(property: string): IResolvable +``` + +###### `property`Required + +- *Type:* string + +--- + +##### `resolve` + +```typescript +public resolve(_context: IResolveContext): any +``` + +Produce the Token's value at resolution time. + +###### `_context`Required + +- *Type:* cdktf.IResolveContext + +--- + +##### `toString` + +```typescript +public toString(): string +``` + +Return a string representation of this resolvable object. + +Returns a reversible string representation. + +##### `resetAllow` + +```typescript +public resetAllow(): void +``` + +##### `resetDeny` + +```typescript +public resetDeny(): void +``` + + +#### Properties + +| **Name** | **Type** | **Description** | +| --- | --- | --- | +| creationStack | string[] | The creation stack of this resolvable which will be appended to errors thrown during resolution. | +| fqn | string | *No description.* | +| allowInput | string[] | *No description.* | +| denyInput | string[] | *No description.* | +| allow | string[] | *No description.* | +| deny | string[] | *No description.* | +| internalValue | @cdktf/provider-digitalocean.loadbalancer.LoadbalancerFirewall | *No description.* | + +--- + +##### `creationStack`Required + +```typescript +public readonly creationStack: string[]; +``` + +- *Type:* string[] + +The creation stack of this resolvable which will be appended to errors thrown during resolution. + +If this returns an empty array the stack will not be attached. + +--- + +##### `fqn`Required + +```typescript +public readonly fqn: string; +``` + +- *Type:* string + +--- + +##### `allowInput`Optional + +```typescript +public readonly allowInput: string[]; +``` + +- *Type:* string[] + +--- + +##### `denyInput`Optional + +```typescript +public readonly denyInput: string[]; +``` + +- *Type:* string[] + +--- + +##### `allow`Required + +```typescript +public readonly allow: string[]; +``` + +- *Type:* string[] + +--- + +##### `deny`Required + +```typescript +public readonly deny: string[]; +``` + +- *Type:* string[] + +--- + +##### `internalValue`Optional + +```typescript +public readonly internalValue: LoadbalancerFirewall; +``` + +- *Type:* @cdktf/provider-digitalocean.loadbalancer.LoadbalancerFirewall + +--- + + ### LoadbalancerForwardingRuleList #### Initializers @@ -162512,6 +165188,941 @@ public readonly internalValue: SpacesBucketVersioning; --- +### UptimeAlertNotificationsList + +#### Initializers + +```typescript +import { uptimeAlert } from '@cdktf/provider-digitalocean' + +new uptimeAlert.UptimeAlertNotificationsList(terraformResource: IInterpolatingParent, terraformAttribute: string, wrapsSet: boolean) +``` + +| **Name** | **Type** | **Description** | +| --- | --- | --- | +| terraformResource | cdktf.IInterpolatingParent | The parent resource. | +| terraformAttribute | string | The attribute on the parent resource this class is referencing. | +| wrapsSet | boolean | whether the list is wrapping a set (will add tolist() to be able to access an item via an index). | + +--- + +##### `terraformResource`Required + +- *Type:* cdktf.IInterpolatingParent + +The parent resource. + +--- + +##### `terraformAttribute`Required + +- *Type:* string + +The attribute on the parent resource this class is referencing. + +--- + +##### `wrapsSet`Required + +- *Type:* boolean + +whether the list is wrapping a set (will add tolist() to be able to access an item via an index). + +--- + +#### Methods + +| **Name** | **Description** | +| --- | --- | +| computeFqn | *No description.* | +| resolve | Produce the Token's value at resolution time. | +| toString | Return a string representation of this resolvable object. | +| get | *No description.* | + +--- + +##### `computeFqn` + +```typescript +public computeFqn(): string +``` + +##### `resolve` + +```typescript +public resolve(_context: IResolveContext): any +``` + +Produce the Token's value at resolution time. + +###### `_context`Required + +- *Type:* cdktf.IResolveContext + +--- + +##### `toString` + +```typescript +public toString(): string +``` + +Return a string representation of this resolvable object. + +Returns a reversible string representation. + +##### `get` + +```typescript +public get(index: number): UptimeAlertNotificationsOutputReference +``` + +###### `index`Required + +- *Type:* number + +the index of the item to return. + +--- + + +#### Properties + +| **Name** | **Type** | **Description** | +| --- | --- | --- | +| creationStack | string[] | The creation stack of this resolvable which will be appended to errors thrown during resolution. | +| fqn | string | *No description.* | +| internalValue | cdktf.IResolvable \| @cdktf/provider-digitalocean.uptimeAlert.UptimeAlertNotifications[] | *No description.* | + +--- + +##### `creationStack`Required + +```typescript +public readonly creationStack: string[]; +``` + +- *Type:* string[] + +The creation stack of this resolvable which will be appended to errors thrown during resolution. + +If this returns an empty array the stack will not be attached. + +--- + +##### `fqn`Required + +```typescript +public readonly fqn: string; +``` + +- *Type:* string + +--- + +##### `internalValue`Optional + +```typescript +public readonly internalValue: IResolvable | UptimeAlertNotifications[]; +``` + +- *Type:* cdktf.IResolvable | @cdktf/provider-digitalocean.uptimeAlert.UptimeAlertNotifications[] + +--- + + +### UptimeAlertNotificationsOutputReference + +#### Initializers + +```typescript +import { uptimeAlert } from '@cdktf/provider-digitalocean' + +new uptimeAlert.UptimeAlertNotificationsOutputReference(terraformResource: IInterpolatingParent, terraformAttribute: string, complexObjectIndex: number, complexObjectIsFromSet: boolean) +``` + +| **Name** | **Type** | **Description** | +| --- | --- | --- | +| terraformResource | cdktf.IInterpolatingParent | The parent resource. | +| terraformAttribute | string | The attribute on the parent resource this class is referencing. | +| complexObjectIndex | number | the index of this item in the list. | +| complexObjectIsFromSet | boolean | whether the list is wrapping a set (will add tolist() to be able to access an item via an index). | + +--- + +##### `terraformResource`Required + +- *Type:* cdktf.IInterpolatingParent + +The parent resource. + +--- + +##### `terraformAttribute`Required + +- *Type:* string + +The attribute on the parent resource this class is referencing. + +--- + +##### `complexObjectIndex`Required + +- *Type:* number + +the index of this item in the list. + +--- + +##### `complexObjectIsFromSet`Required + +- *Type:* boolean + +whether the list is wrapping a set (will add tolist() to be able to access an item via an index). + +--- + +#### Methods + +| **Name** | **Description** | +| --- | --- | +| computeFqn | *No description.* | +| getAnyMapAttribute | *No description.* | +| getBooleanAttribute | *No description.* | +| getBooleanMapAttribute | *No description.* | +| getListAttribute | *No description.* | +| getNumberAttribute | *No description.* | +| getNumberListAttribute | *No description.* | +| getNumberMapAttribute | *No description.* | +| getStringAttribute | *No description.* | +| getStringMapAttribute | *No description.* | +| interpolationForAttribute | *No description.* | +| resolve | Produce the Token's value at resolution time. | +| toString | Return a string representation of this resolvable object. | +| putSlack | *No description.* | +| resetEmail | *No description.* | +| resetSlack | *No description.* | + +--- + +##### `computeFqn` + +```typescript +public computeFqn(): string +``` + +##### `getAnyMapAttribute` + +```typescript +public getAnyMapAttribute(terraformAttribute: string): {[ key: string ]: any} +``` + +###### `terraformAttribute`Required + +- *Type:* string + +--- + +##### `getBooleanAttribute` + +```typescript +public getBooleanAttribute(terraformAttribute: string): IResolvable +``` + +###### `terraformAttribute`Required + +- *Type:* string + +--- + +##### `getBooleanMapAttribute` + +```typescript +public getBooleanMapAttribute(terraformAttribute: string): {[ key: string ]: boolean} +``` + +###### `terraformAttribute`Required + +- *Type:* string + +--- + +##### `getListAttribute` + +```typescript +public getListAttribute(terraformAttribute: string): string[] +``` + +###### `terraformAttribute`Required + +- *Type:* string + +--- + +##### `getNumberAttribute` + +```typescript +public getNumberAttribute(terraformAttribute: string): number +``` + +###### `terraformAttribute`Required + +- *Type:* string + +--- + +##### `getNumberListAttribute` + +```typescript +public getNumberListAttribute(terraformAttribute: string): number[] +``` + +###### `terraformAttribute`Required + +- *Type:* string + +--- + +##### `getNumberMapAttribute` + +```typescript +public getNumberMapAttribute(terraformAttribute: string): {[ key: string ]: number} +``` + +###### `terraformAttribute`Required + +- *Type:* string + +--- + +##### `getStringAttribute` + +```typescript +public getStringAttribute(terraformAttribute: string): string +``` + +###### `terraformAttribute`Required + +- *Type:* string + +--- + +##### `getStringMapAttribute` + +```typescript +public getStringMapAttribute(terraformAttribute: string): {[ key: string ]: string} +``` + +###### `terraformAttribute`Required + +- *Type:* string + +--- + +##### `interpolationForAttribute` + +```typescript +public interpolationForAttribute(property: string): IResolvable +``` + +###### `property`Required + +- *Type:* string + +--- + +##### `resolve` + +```typescript +public resolve(_context: IResolveContext): any +``` + +Produce the Token's value at resolution time. + +###### `_context`Required + +- *Type:* cdktf.IResolveContext + +--- + +##### `toString` + +```typescript +public toString(): string +``` + +Return a string representation of this resolvable object. + +Returns a reversible string representation. + +##### `putSlack` + +```typescript +public putSlack(value: IResolvable | UptimeAlertNotificationsSlack[]): void +``` + +###### `value`Required + +- *Type:* cdktf.IResolvable | @cdktf/provider-digitalocean.uptimeAlert.UptimeAlertNotificationsSlack[] + +--- + +##### `resetEmail` + +```typescript +public resetEmail(): void +``` + +##### `resetSlack` + +```typescript +public resetSlack(): void +``` + + +#### Properties + +| **Name** | **Type** | **Description** | +| --- | --- | --- | +| creationStack | string[] | The creation stack of this resolvable which will be appended to errors thrown during resolution. | +| fqn | string | *No description.* | +| slack | @cdktf/provider-digitalocean.uptimeAlert.UptimeAlertNotificationsSlackList | *No description.* | +| emailInput | string[] | *No description.* | +| slackInput | cdktf.IResolvable \| @cdktf/provider-digitalocean.uptimeAlert.UptimeAlertNotificationsSlack[] | *No description.* | +| email | string[] | *No description.* | +| internalValue | @cdktf/provider-digitalocean.uptimeAlert.UptimeAlertNotifications \| cdktf.IResolvable | *No description.* | + +--- + +##### `creationStack`Required + +```typescript +public readonly creationStack: string[]; +``` + +- *Type:* string[] + +The creation stack of this resolvable which will be appended to errors thrown during resolution. + +If this returns an empty array the stack will not be attached. + +--- + +##### `fqn`Required + +```typescript +public readonly fqn: string; +``` + +- *Type:* string + +--- + +##### `slack`Required + +```typescript +public readonly slack: UptimeAlertNotificationsSlackList; +``` + +- *Type:* @cdktf/provider-digitalocean.uptimeAlert.UptimeAlertNotificationsSlackList + +--- + +##### `emailInput`Optional + +```typescript +public readonly emailInput: string[]; +``` + +- *Type:* string[] + +--- + +##### `slackInput`Optional + +```typescript +public readonly slackInput: IResolvable | UptimeAlertNotificationsSlack[]; +``` + +- *Type:* cdktf.IResolvable | @cdktf/provider-digitalocean.uptimeAlert.UptimeAlertNotificationsSlack[] + +--- + +##### `email`Required + +```typescript +public readonly email: string[]; +``` + +- *Type:* string[] + +--- + +##### `internalValue`Optional + +```typescript +public readonly internalValue: UptimeAlertNotifications | IResolvable; +``` + +- *Type:* @cdktf/provider-digitalocean.uptimeAlert.UptimeAlertNotifications | cdktf.IResolvable + +--- + + +### UptimeAlertNotificationsSlackList + +#### Initializers + +```typescript +import { uptimeAlert } from '@cdktf/provider-digitalocean' + +new uptimeAlert.UptimeAlertNotificationsSlackList(terraformResource: IInterpolatingParent, terraformAttribute: string, wrapsSet: boolean) +``` + +| **Name** | **Type** | **Description** | +| --- | --- | --- | +| terraformResource | cdktf.IInterpolatingParent | The parent resource. | +| terraformAttribute | string | The attribute on the parent resource this class is referencing. | +| wrapsSet | boolean | whether the list is wrapping a set (will add tolist() to be able to access an item via an index). | + +--- + +##### `terraformResource`Required + +- *Type:* cdktf.IInterpolatingParent + +The parent resource. + +--- + +##### `terraformAttribute`Required + +- *Type:* string + +The attribute on the parent resource this class is referencing. + +--- + +##### `wrapsSet`Required + +- *Type:* boolean + +whether the list is wrapping a set (will add tolist() to be able to access an item via an index). + +--- + +#### Methods + +| **Name** | **Description** | +| --- | --- | +| computeFqn | *No description.* | +| resolve | Produce the Token's value at resolution time. | +| toString | Return a string representation of this resolvable object. | +| get | *No description.* | + +--- + +##### `computeFqn` + +```typescript +public computeFqn(): string +``` + +##### `resolve` + +```typescript +public resolve(_context: IResolveContext): any +``` + +Produce the Token's value at resolution time. + +###### `_context`Required + +- *Type:* cdktf.IResolveContext + +--- + +##### `toString` + +```typescript +public toString(): string +``` + +Return a string representation of this resolvable object. + +Returns a reversible string representation. + +##### `get` + +```typescript +public get(index: number): UptimeAlertNotificationsSlackOutputReference +``` + +###### `index`Required + +- *Type:* number + +the index of the item to return. + +--- + + +#### Properties + +| **Name** | **Type** | **Description** | +| --- | --- | --- | +| creationStack | string[] | The creation stack of this resolvable which will be appended to errors thrown during resolution. | +| fqn | string | *No description.* | +| internalValue | cdktf.IResolvable \| @cdktf/provider-digitalocean.uptimeAlert.UptimeAlertNotificationsSlack[] | *No description.* | + +--- + +##### `creationStack`Required + +```typescript +public readonly creationStack: string[]; +``` + +- *Type:* string[] + +The creation stack of this resolvable which will be appended to errors thrown during resolution. + +If this returns an empty array the stack will not be attached. + +--- + +##### `fqn`Required + +```typescript +public readonly fqn: string; +``` + +- *Type:* string + +--- + +##### `internalValue`Optional + +```typescript +public readonly internalValue: IResolvable | UptimeAlertNotificationsSlack[]; +``` + +- *Type:* cdktf.IResolvable | @cdktf/provider-digitalocean.uptimeAlert.UptimeAlertNotificationsSlack[] + +--- + + +### UptimeAlertNotificationsSlackOutputReference + +#### Initializers + +```typescript +import { uptimeAlert } from '@cdktf/provider-digitalocean' + +new uptimeAlert.UptimeAlertNotificationsSlackOutputReference(terraformResource: IInterpolatingParent, terraformAttribute: string, complexObjectIndex: number, complexObjectIsFromSet: boolean) +``` + +| **Name** | **Type** | **Description** | +| --- | --- | --- | +| terraformResource | cdktf.IInterpolatingParent | The parent resource. | +| terraformAttribute | string | The attribute on the parent resource this class is referencing. | +| complexObjectIndex | number | the index of this item in the list. | +| complexObjectIsFromSet | boolean | whether the list is wrapping a set (will add tolist() to be able to access an item via an index). | + +--- + +##### `terraformResource`Required + +- *Type:* cdktf.IInterpolatingParent + +The parent resource. + +--- + +##### `terraformAttribute`Required + +- *Type:* string + +The attribute on the parent resource this class is referencing. + +--- + +##### `complexObjectIndex`Required + +- *Type:* number + +the index of this item in the list. + +--- + +##### `complexObjectIsFromSet`Required + +- *Type:* boolean + +whether the list is wrapping a set (will add tolist() to be able to access an item via an index). + +--- + +#### Methods + +| **Name** | **Description** | +| --- | --- | +| computeFqn | *No description.* | +| getAnyMapAttribute | *No description.* | +| getBooleanAttribute | *No description.* | +| getBooleanMapAttribute | *No description.* | +| getListAttribute | *No description.* | +| getNumberAttribute | *No description.* | +| getNumberListAttribute | *No description.* | +| getNumberMapAttribute | *No description.* | +| getStringAttribute | *No description.* | +| getStringMapAttribute | *No description.* | +| interpolationForAttribute | *No description.* | +| resolve | Produce the Token's value at resolution time. | +| toString | Return a string representation of this resolvable object. | + +--- + +##### `computeFqn` + +```typescript +public computeFqn(): string +``` + +##### `getAnyMapAttribute` + +```typescript +public getAnyMapAttribute(terraformAttribute: string): {[ key: string ]: any} +``` + +###### `terraformAttribute`Required + +- *Type:* string + +--- + +##### `getBooleanAttribute` + +```typescript +public getBooleanAttribute(terraformAttribute: string): IResolvable +``` + +###### `terraformAttribute`Required + +- *Type:* string + +--- + +##### `getBooleanMapAttribute` + +```typescript +public getBooleanMapAttribute(terraformAttribute: string): {[ key: string ]: boolean} +``` + +###### `terraformAttribute`Required + +- *Type:* string + +--- + +##### `getListAttribute` + +```typescript +public getListAttribute(terraformAttribute: string): string[] +``` + +###### `terraformAttribute`Required + +- *Type:* string + +--- + +##### `getNumberAttribute` + +```typescript +public getNumberAttribute(terraformAttribute: string): number +``` + +###### `terraformAttribute`Required + +- *Type:* string + +--- + +##### `getNumberListAttribute` + +```typescript +public getNumberListAttribute(terraformAttribute: string): number[] +``` + +###### `terraformAttribute`Required + +- *Type:* string + +--- + +##### `getNumberMapAttribute` + +```typescript +public getNumberMapAttribute(terraformAttribute: string): {[ key: string ]: number} +``` + +###### `terraformAttribute`Required + +- *Type:* string + +--- + +##### `getStringAttribute` + +```typescript +public getStringAttribute(terraformAttribute: string): string +``` + +###### `terraformAttribute`Required + +- *Type:* string + +--- + +##### `getStringMapAttribute` + +```typescript +public getStringMapAttribute(terraformAttribute: string): {[ key: string ]: string} +``` + +###### `terraformAttribute`Required + +- *Type:* string + +--- + +##### `interpolationForAttribute` + +```typescript +public interpolationForAttribute(property: string): IResolvable +``` + +###### `property`Required + +- *Type:* string + +--- + +##### `resolve` + +```typescript +public resolve(_context: IResolveContext): any +``` + +Produce the Token's value at resolution time. + +###### `_context`Required + +- *Type:* cdktf.IResolveContext + +--- + +##### `toString` + +```typescript +public toString(): string +``` + +Return a string representation of this resolvable object. + +Returns a reversible string representation. + + +#### Properties + +| **Name** | **Type** | **Description** | +| --- | --- | --- | +| creationStack | string[] | The creation stack of this resolvable which will be appended to errors thrown during resolution. | +| fqn | string | *No description.* | +| channelInput | string | *No description.* | +| urlInput | string | *No description.* | +| channel | string | *No description.* | +| url | string | *No description.* | +| internalValue | @cdktf/provider-digitalocean.uptimeAlert.UptimeAlertNotificationsSlack \| cdktf.IResolvable | *No description.* | + +--- + +##### `creationStack`Required + +```typescript +public readonly creationStack: string[]; +``` + +- *Type:* string[] + +The creation stack of this resolvable which will be appended to errors thrown during resolution. + +If this returns an empty array the stack will not be attached. + +--- + +##### `fqn`Required + +```typescript +public readonly fqn: string; +``` + +- *Type:* string + +--- + +##### `channelInput`Optional + +```typescript +public readonly channelInput: string; +``` + +- *Type:* string + +--- + +##### `urlInput`Optional + +```typescript +public readonly urlInput: string; +``` + +- *Type:* string + +--- + +##### `channel`Required + +```typescript +public readonly channel: string; +``` + +- *Type:* string + +--- + +##### `url`Required + +```typescript +public readonly url: string; +``` + +- *Type:* string + +--- + +##### `internalValue`Optional + +```typescript +public readonly internalValue: UptimeAlertNotificationsSlack | IResolvable; +``` + +- *Type:* @cdktf/provider-digitalocean.uptimeAlert.UptimeAlertNotificationsSlack | cdktf.IResolvable + +--- + + ### VpcTimeoutsOutputReference #### Initializers diff --git a/package.json b/package.json index 49dba5e74..0cea5dd12 100644 --- a/package.json +++ b/package.json @@ -149,7 +149,7 @@ "cdktf": { "provider": { "name": "registry.terraform.io/digitalocean/digitalocean", - "version": "2.25.2" + "version": "2.26.0" } }, "resolutions": { diff --git a/src/app/index.ts b/src/app/index.ts index bdc10d4fb..92909702f 100644 --- a/src/app/index.ts +++ b/src/app/index.ts @@ -11293,7 +11293,7 @@ export class App extends cdktf.TerraformResource { terraformResourceType: 'digitalocean_app', terraformGeneratorMetadata: { providerName: 'digitalocean', - providerVersion: '2.25.2', + providerVersion: '2.26.0', providerVersionConstraint: '~> 2.19' }, provider: config.provider, diff --git a/src/cdn/index.ts b/src/cdn/index.ts index 43677b2be..19738448a 100644 --- a/src/cdn/index.ts +++ b/src/cdn/index.ts @@ -70,7 +70,7 @@ export class Cdn extends cdktf.TerraformResource { terraformResourceType: 'digitalocean_cdn', terraformGeneratorMetadata: { providerName: 'digitalocean', - providerVersion: '2.25.2', + providerVersion: '2.26.0', providerVersionConstraint: '~> 2.19' }, provider: config.provider, diff --git a/src/certificate/index.ts b/src/certificate/index.ts index 9b95cdd7e..0abff8ed9 100644 --- a/src/certificate/index.ts +++ b/src/certificate/index.ts @@ -66,7 +66,7 @@ export class Certificate extends cdktf.TerraformResource { terraformResourceType: 'digitalocean_certificate', terraformGeneratorMetadata: { providerName: 'digitalocean', - providerVersion: '2.25.2', + providerVersion: '2.26.0', providerVersionConstraint: '~> 2.19' }, provider: config.provider, diff --git a/src/container-registry-docker-credentials/index.ts b/src/container-registry-docker-credentials/index.ts index e7d7d72a2..717d2e866 100644 --- a/src/container-registry-docker-credentials/index.ts +++ b/src/container-registry-docker-credentials/index.ts @@ -54,7 +54,7 @@ export class ContainerRegistryDockerCredentials extends cdktf.TerraformResource terraformResourceType: 'digitalocean_container_registry_docker_credentials', terraformGeneratorMetadata: { providerName: 'digitalocean', - providerVersion: '2.25.2', + providerVersion: '2.26.0', providerVersionConstraint: '~> 2.19' }, provider: config.provider, diff --git a/src/container-registry/index.ts b/src/container-registry/index.ts index d2f8adce7..8f2a16783 100644 --- a/src/container-registry/index.ts +++ b/src/container-registry/index.ts @@ -54,7 +54,7 @@ export class ContainerRegistry extends cdktf.TerraformResource { terraformResourceType: 'digitalocean_container_registry', terraformGeneratorMetadata: { providerName: 'digitalocean', - providerVersion: '2.25.2', + providerVersion: '2.26.0', providerVersionConstraint: '~> 2.19' }, provider: config.provider, diff --git a/src/custom-image/index.ts b/src/custom-image/index.ts index f9219ce86..a90f7ea02 100644 --- a/src/custom-image/index.ts +++ b/src/custom-image/index.ts @@ -66,7 +66,7 @@ export class CustomImage extends cdktf.TerraformResource { terraformResourceType: 'digitalocean_custom_image', terraformGeneratorMetadata: { providerName: 'digitalocean', - providerVersion: '2.25.2', + providerVersion: '2.26.0', providerVersionConstraint: '~> 2.19' }, provider: config.provider, diff --git a/src/data-digitalocean-account/index.ts b/src/data-digitalocean-account/index.ts index f87cd14f6..2108a4020 100644 --- a/src/data-digitalocean-account/index.ts +++ b/src/data-digitalocean-account/index.ts @@ -42,7 +42,7 @@ export class DataDigitaloceanAccount extends cdktf.TerraformDataSource { terraformResourceType: 'digitalocean_account', terraformGeneratorMetadata: { providerName: 'digitalocean', - providerVersion: '2.25.2', + providerVersion: '2.26.0', providerVersionConstraint: '~> 2.19' }, provider: config.provider, diff --git a/src/data-digitalocean-app/index.ts b/src/data-digitalocean-app/index.ts index 5a7e58695..028cc1458 100644 --- a/src/data-digitalocean-app/index.ts +++ b/src/data-digitalocean-app/index.ts @@ -5375,7 +5375,7 @@ export class DataDigitaloceanApp extends cdktf.TerraformDataSource { terraformResourceType: 'digitalocean_app', terraformGeneratorMetadata: { providerName: 'digitalocean', - providerVersion: '2.25.2', + providerVersion: '2.26.0', providerVersionConstraint: '~> 2.19' }, provider: config.provider, diff --git a/src/data-digitalocean-certificate/index.ts b/src/data-digitalocean-certificate/index.ts index a40aecf1d..3db5e31a5 100644 --- a/src/data-digitalocean-certificate/index.ts +++ b/src/data-digitalocean-certificate/index.ts @@ -48,7 +48,7 @@ export class DataDigitaloceanCertificate extends cdktf.TerraformDataSource { terraformResourceType: 'digitalocean_certificate', terraformGeneratorMetadata: { providerName: 'digitalocean', - providerVersion: '2.25.2', + providerVersion: '2.26.0', providerVersionConstraint: '~> 2.19' }, provider: config.provider, diff --git a/src/data-digitalocean-container-registry/index.ts b/src/data-digitalocean-container-registry/index.ts index 003475f5b..546be8b84 100644 --- a/src/data-digitalocean-container-registry/index.ts +++ b/src/data-digitalocean-container-registry/index.ts @@ -48,7 +48,7 @@ export class DataDigitaloceanContainerRegistry extends cdktf.TerraformDataSource terraformResourceType: 'digitalocean_container_registry', terraformGeneratorMetadata: { providerName: 'digitalocean', - providerVersion: '2.25.2', + providerVersion: '2.26.0', providerVersionConstraint: '~> 2.19' }, provider: config.provider, diff --git a/src/data-digitalocean-database-ca/index.ts b/src/data-digitalocean-database-ca/index.ts index 8bc3abaaa..fb08c0ee3 100644 --- a/src/data-digitalocean-database-ca/index.ts +++ b/src/data-digitalocean-database-ca/index.ts @@ -46,7 +46,7 @@ export class DataDigitaloceanDatabaseCa extends cdktf.TerraformDataSource { terraformResourceType: 'digitalocean_database_ca', terraformGeneratorMetadata: { providerName: 'digitalocean', - providerVersion: '2.25.2', + providerVersion: '2.26.0', providerVersionConstraint: '~> 2.19' }, provider: config.provider, diff --git a/src/data-digitalocean-database-cluster/index.ts b/src/data-digitalocean-database-cluster/index.ts index 4d93cc8bd..46b247f31 100644 --- a/src/data-digitalocean-database-cluster/index.ts +++ b/src/data-digitalocean-database-cluster/index.ts @@ -119,7 +119,7 @@ export class DataDigitaloceanDatabaseCluster extends cdktf.TerraformDataSource { terraformResourceType: 'digitalocean_database_cluster', terraformGeneratorMetadata: { providerName: 'digitalocean', - providerVersion: '2.25.2', + providerVersion: '2.26.0', providerVersionConstraint: '~> 2.19' }, provider: config.provider, diff --git a/src/data-digitalocean-database-replica/index.ts b/src/data-digitalocean-database-replica/index.ts index 0db0c1e18..a7b357cb5 100644 --- a/src/data-digitalocean-database-replica/index.ts +++ b/src/data-digitalocean-database-replica/index.ts @@ -54,7 +54,7 @@ export class DataDigitaloceanDatabaseReplica extends cdktf.TerraformDataSource { terraformResourceType: 'digitalocean_database_replica', terraformGeneratorMetadata: { providerName: 'digitalocean', - providerVersion: '2.25.2', + providerVersion: '2.26.0', providerVersionConstraint: '~> 2.19' }, provider: config.provider, diff --git a/src/data-digitalocean-domain/index.ts b/src/data-digitalocean-domain/index.ts index 6c2f41698..f35a076d0 100644 --- a/src/data-digitalocean-domain/index.ts +++ b/src/data-digitalocean-domain/index.ts @@ -48,7 +48,7 @@ export class DataDigitaloceanDomain extends cdktf.TerraformDataSource { terraformResourceType: 'digitalocean_domain', terraformGeneratorMetadata: { providerName: 'digitalocean', - providerVersion: '2.25.2', + providerVersion: '2.26.0', providerVersionConstraint: '~> 2.19' }, provider: config.provider, diff --git a/src/data-digitalocean-domains/index.ts b/src/data-digitalocean-domains/index.ts index c89ce148d..6472a1971 100644 --- a/src/data-digitalocean-domains/index.ts +++ b/src/data-digitalocean-domains/index.ts @@ -421,7 +421,7 @@ export class DataDigitaloceanDomains extends cdktf.TerraformDataSource { terraformResourceType: 'digitalocean_domains', terraformGeneratorMetadata: { providerName: 'digitalocean', - providerVersion: '2.25.2', + providerVersion: '2.26.0', providerVersionConstraint: '~> 2.19' }, provider: config.provider, diff --git a/src/data-digitalocean-droplet-snapshot/index.ts b/src/data-digitalocean-droplet-snapshot/index.ts index 369cec10e..aeabe0547 100644 --- a/src/data-digitalocean-droplet-snapshot/index.ts +++ b/src/data-digitalocean-droplet-snapshot/index.ts @@ -58,7 +58,7 @@ export class DataDigitaloceanDropletSnapshot extends cdktf.TerraformDataSource { terraformResourceType: 'digitalocean_droplet_snapshot', terraformGeneratorMetadata: { providerName: 'digitalocean', - providerVersion: '2.25.2', + providerVersion: '2.26.0', providerVersionConstraint: '~> 2.19' }, provider: config.provider, diff --git a/src/data-digitalocean-droplet/index.ts b/src/data-digitalocean-droplet/index.ts index 4b9f62301..929c2227c 100644 --- a/src/data-digitalocean-droplet/index.ts +++ b/src/data-digitalocean-droplet/index.ts @@ -56,7 +56,7 @@ export class DataDigitaloceanDroplet extends cdktf.TerraformDataSource { terraformResourceType: 'digitalocean_droplet', terraformGeneratorMetadata: { providerName: 'digitalocean', - providerVersion: '2.25.2', + providerVersion: '2.26.0', providerVersionConstraint: '~> 2.19' }, provider: config.provider, diff --git a/src/data-digitalocean-droplets/index.ts b/src/data-digitalocean-droplets/index.ts index 21815d936..01293403b 100644 --- a/src/data-digitalocean-droplets/index.ts +++ b/src/data-digitalocean-droplets/index.ts @@ -531,7 +531,7 @@ export class DataDigitaloceanDroplets extends cdktf.TerraformDataSource { terraformResourceType: 'digitalocean_droplets', terraformGeneratorMetadata: { providerName: 'digitalocean', - providerVersion: '2.25.2', + providerVersion: '2.26.0', providerVersionConstraint: '~> 2.19' }, provider: config.provider, diff --git a/src/data-digitalocean-firewall/index.ts b/src/data-digitalocean-firewall/index.ts index 19bb81a6b..183114c84 100644 --- a/src/data-digitalocean-firewall/index.ts +++ b/src/data-digitalocean-firewall/index.ts @@ -652,7 +652,7 @@ export class DataDigitaloceanFirewall extends cdktf.TerraformDataSource { terraformResourceType: 'digitalocean_firewall', terraformGeneratorMetadata: { providerName: 'digitalocean', - providerVersion: '2.25.2', + providerVersion: '2.26.0', providerVersionConstraint: '~> 2.19' }, provider: config.provider, diff --git a/src/data-digitalocean-floating-ip/index.ts b/src/data-digitalocean-floating-ip/index.ts index 8dbca1aa4..ee9c23948 100644 --- a/src/data-digitalocean-floating-ip/index.ts +++ b/src/data-digitalocean-floating-ip/index.ts @@ -48,7 +48,7 @@ export class DataDigitaloceanFloatingIp extends cdktf.TerraformDataSource { terraformResourceType: 'digitalocean_floating_ip', terraformGeneratorMetadata: { providerName: 'digitalocean', - providerVersion: '2.25.2', + providerVersion: '2.26.0', providerVersionConstraint: '~> 2.19' }, provider: config.provider, diff --git a/src/data-digitalocean-image/index.ts b/src/data-digitalocean-image/index.ts index f7f776eca..30436e1d9 100644 --- a/src/data-digitalocean-image/index.ts +++ b/src/data-digitalocean-image/index.ts @@ -60,7 +60,7 @@ export class DataDigitaloceanImage extends cdktf.TerraformDataSource { terraformResourceType: 'digitalocean_image', terraformGeneratorMetadata: { providerName: 'digitalocean', - providerVersion: '2.25.2', + providerVersion: '2.26.0', providerVersionConstraint: '~> 2.19' }, provider: config.provider, diff --git a/src/data-digitalocean-images/index.ts b/src/data-digitalocean-images/index.ts index a24ad4ce8..fe071a695 100644 --- a/src/data-digitalocean-images/index.ts +++ b/src/data-digitalocean-images/index.ts @@ -481,7 +481,7 @@ export class DataDigitaloceanImages extends cdktf.TerraformDataSource { terraformResourceType: 'digitalocean_images', terraformGeneratorMetadata: { providerName: 'digitalocean', - providerVersion: '2.25.2', + providerVersion: '2.26.0', providerVersionConstraint: '~> 2.19' }, provider: config.provider, diff --git a/src/data-digitalocean-kubernetes-cluster/index.ts b/src/data-digitalocean-kubernetes-cluster/index.ts index 045a33630..a734aca59 100644 --- a/src/data-digitalocean-kubernetes-cluster/index.ts +++ b/src/data-digitalocean-kubernetes-cluster/index.ts @@ -503,7 +503,7 @@ export class DataDigitaloceanKubernetesCluster extends cdktf.TerraformDataSource terraformResourceType: 'digitalocean_kubernetes_cluster', terraformGeneratorMetadata: { providerName: 'digitalocean', - providerVersion: '2.25.2', + providerVersion: '2.26.0', providerVersionConstraint: '~> 2.19' }, provider: config.provider, diff --git a/src/data-digitalocean-kubernetes-versions/index.ts b/src/data-digitalocean-kubernetes-versions/index.ts index 5aaa7f7fb..f12bf2759 100644 --- a/src/data-digitalocean-kubernetes-versions/index.ts +++ b/src/data-digitalocean-kubernetes-versions/index.ts @@ -46,7 +46,7 @@ export class DataDigitaloceanKubernetesVersions extends cdktf.TerraformDataSourc terraformResourceType: 'digitalocean_kubernetes_versions', terraformGeneratorMetadata: { providerName: 'digitalocean', - providerVersion: '2.25.2', + providerVersion: '2.26.0', providerVersionConstraint: '~> 2.19' }, provider: config.provider, diff --git a/src/data-digitalocean-loadbalancer/index.ts b/src/data-digitalocean-loadbalancer/index.ts index 8e789f549..42be9ff80 100644 --- a/src/data-digitalocean-loadbalancer/index.ts +++ b/src/data-digitalocean-loadbalancer/index.ts @@ -23,6 +23,75 @@ export interface DataDigitaloceanLoadbalancerConfig extends cdktf.TerraformMetaA */ readonly name?: string; } +export interface DataDigitaloceanLoadbalancerFirewall { +} + +export function dataDigitaloceanLoadbalancerFirewallToTerraform(struct?: DataDigitaloceanLoadbalancerFirewall): any { + if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) { return struct; } + if (cdktf.isComplexElement(struct)) { + throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); + } + return { + } +} + +export class DataDigitaloceanLoadbalancerFirewallOutputReference extends cdktf.ComplexObject { + private isEmptyObject = false; + + /** + * @param terraformResource The parent resource + * @param terraformAttribute The attribute on the parent resource this class is referencing + * @param complexObjectIndex the index of this item in the list + * @param complexObjectIsFromSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index) + */ + public constructor(terraformResource: cdktf.IInterpolatingParent, terraformAttribute: string, complexObjectIndex: number, complexObjectIsFromSet: boolean) { + super(terraformResource, terraformAttribute, complexObjectIsFromSet, complexObjectIndex); + } + + public get internalValue(): DataDigitaloceanLoadbalancerFirewall | undefined { + let hasAnyValues = this.isEmptyObject; + const internalValueResult: any = {}; + return hasAnyValues ? internalValueResult : undefined; + } + + public set internalValue(value: DataDigitaloceanLoadbalancerFirewall | undefined) { + if (value === undefined) { + this.isEmptyObject = false; + } + else { + this.isEmptyObject = Object.keys(value).length === 0; + } + } + + // allow - computed: true, optional: false, required: false + public get allow() { + return cdktf.Fn.tolist(this.getListAttribute('allow')); + } + + // deny - computed: true, optional: false, required: false + public get deny() { + return cdktf.Fn.tolist(this.getListAttribute('deny')); + } +} + +export class DataDigitaloceanLoadbalancerFirewallList extends cdktf.ComplexList { + + /** + * @param terraformResource The parent resource + * @param terraformAttribute The attribute on the parent resource this class is referencing + * @param wrapsSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index) + */ + constructor(protected terraformResource: cdktf.IInterpolatingParent, protected terraformAttribute: string, protected wrapsSet: boolean) { + super(terraformResource, terraformAttribute, wrapsSet) + } + + /** + * @param index the index of the item to return + */ + public get(index: number): DataDigitaloceanLoadbalancerFirewallOutputReference { + return new DataDigitaloceanLoadbalancerFirewallOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); + } +} export interface DataDigitaloceanLoadbalancerForwardingRule { } @@ -312,7 +381,7 @@ export class DataDigitaloceanLoadbalancer extends cdktf.TerraformDataSource { terraformResourceType: 'digitalocean_loadbalancer', terraformGeneratorMetadata: { providerName: 'digitalocean', - providerVersion: '2.25.2', + providerVersion: '2.26.0', providerVersionConstraint: '~> 2.19' }, provider: config.provider, @@ -361,6 +430,12 @@ export class DataDigitaloceanLoadbalancer extends cdktf.TerraformDataSource { return this.getBooleanAttribute('enable_proxy_protocol'); } + // firewall - computed: true, optional: false, required: false + private _firewall = new DataDigitaloceanLoadbalancerFirewallList(this, "firewall", false); + public get firewall() { + return this._firewall; + } + // forwarding_rule - computed: true, optional: false, required: false private _forwardingRule = new DataDigitaloceanLoadbalancerForwardingRuleList(this, "forwarding_rule", true); public get forwardingRule() { diff --git a/src/data-digitalocean-project/index.ts b/src/data-digitalocean-project/index.ts index 86a95295a..ed9e5d649 100644 --- a/src/data-digitalocean-project/index.ts +++ b/src/data-digitalocean-project/index.ts @@ -46,7 +46,7 @@ export class DataDigitaloceanProject extends cdktf.TerraformDataSource { terraformResourceType: 'digitalocean_project', terraformGeneratorMetadata: { providerName: 'digitalocean', - providerVersion: '2.25.2', + providerVersion: '2.26.0', providerVersionConstraint: '~> 2.19' }, provider: config.provider, diff --git a/src/data-digitalocean-projects/index.ts b/src/data-digitalocean-projects/index.ts index cfb46b3e4..5d968ee07 100644 --- a/src/data-digitalocean-projects/index.ts +++ b/src/data-digitalocean-projects/index.ts @@ -461,7 +461,7 @@ export class DataDigitaloceanProjects extends cdktf.TerraformDataSource { terraformResourceType: 'digitalocean_projects', terraformGeneratorMetadata: { providerName: 'digitalocean', - providerVersion: '2.25.2', + providerVersion: '2.26.0', providerVersionConstraint: '~> 2.19' }, provider: config.provider, diff --git a/src/data-digitalocean-record/index.ts b/src/data-digitalocean-record/index.ts index 3b66cc11c..38ea779d9 100644 --- a/src/data-digitalocean-record/index.ts +++ b/src/data-digitalocean-record/index.ts @@ -54,7 +54,7 @@ export class DataDigitaloceanRecord extends cdktf.TerraformDataSource { terraformResourceType: 'digitalocean_record', terraformGeneratorMetadata: { providerName: 'digitalocean', - providerVersion: '2.25.2', + providerVersion: '2.26.0', providerVersionConstraint: '~> 2.19' }, provider: config.provider, diff --git a/src/data-digitalocean-records/index.ts b/src/data-digitalocean-records/index.ts index a7b6ec014..c1b779a82 100644 --- a/src/data-digitalocean-records/index.ts +++ b/src/data-digitalocean-records/index.ts @@ -465,7 +465,7 @@ export class DataDigitaloceanRecords extends cdktf.TerraformDataSource { terraformResourceType: 'digitalocean_records', terraformGeneratorMetadata: { providerName: 'digitalocean', - providerVersion: '2.25.2', + providerVersion: '2.26.0', providerVersionConstraint: '~> 2.19' }, provider: config.provider, diff --git a/src/data-digitalocean-region/index.ts b/src/data-digitalocean-region/index.ts index 4fa0ac308..a5d0c522b 100644 --- a/src/data-digitalocean-region/index.ts +++ b/src/data-digitalocean-region/index.ts @@ -46,7 +46,7 @@ export class DataDigitaloceanRegion extends cdktf.TerraformDataSource { terraformResourceType: 'digitalocean_region', terraformGeneratorMetadata: { providerName: 'digitalocean', - providerVersion: '2.25.2', + providerVersion: '2.26.0', providerVersionConstraint: '~> 2.19' }, provider: config.provider, diff --git a/src/data-digitalocean-regions/index.ts b/src/data-digitalocean-regions/index.ts index 2c47590e7..4e1bac6a7 100644 --- a/src/data-digitalocean-regions/index.ts +++ b/src/data-digitalocean-regions/index.ts @@ -431,7 +431,7 @@ export class DataDigitaloceanRegions extends cdktf.TerraformDataSource { terraformResourceType: 'digitalocean_regions', terraformGeneratorMetadata: { providerName: 'digitalocean', - providerVersion: '2.25.2', + providerVersion: '2.26.0', providerVersionConstraint: '~> 2.19' }, provider: config.provider, diff --git a/src/data-digitalocean-reserved-ip/index.ts b/src/data-digitalocean-reserved-ip/index.ts index aff384ed4..db23616a7 100644 --- a/src/data-digitalocean-reserved-ip/index.ts +++ b/src/data-digitalocean-reserved-ip/index.ts @@ -48,7 +48,7 @@ export class DataDigitaloceanReservedIp extends cdktf.TerraformDataSource { terraformResourceType: 'digitalocean_reserved_ip', terraformGeneratorMetadata: { providerName: 'digitalocean', - providerVersion: '2.25.2', + providerVersion: '2.26.0', providerVersionConstraint: '~> 2.19' }, provider: config.provider, diff --git a/src/data-digitalocean-sizes/index.ts b/src/data-digitalocean-sizes/index.ts index 5f9341207..baec9f122 100644 --- a/src/data-digitalocean-sizes/index.ts +++ b/src/data-digitalocean-sizes/index.ts @@ -451,7 +451,7 @@ export class DataDigitaloceanSizes extends cdktf.TerraformDataSource { terraformResourceType: 'digitalocean_sizes', terraformGeneratorMetadata: { providerName: 'digitalocean', - providerVersion: '2.25.2', + providerVersion: '2.26.0', providerVersionConstraint: '~> 2.19' }, provider: config.provider, diff --git a/src/data-digitalocean-spaces-bucket-object/index.ts b/src/data-digitalocean-spaces-bucket-object/index.ts index 2cc948bd3..d0ed2b45c 100644 --- a/src/data-digitalocean-spaces-bucket-object/index.ts +++ b/src/data-digitalocean-spaces-bucket-object/index.ts @@ -62,7 +62,7 @@ export class DataDigitaloceanSpacesBucketObject extends cdktf.TerraformDataSourc terraformResourceType: 'digitalocean_spaces_bucket_object', terraformGeneratorMetadata: { providerName: 'digitalocean', - providerVersion: '2.25.2', + providerVersion: '2.26.0', providerVersionConstraint: '~> 2.19' }, provider: config.provider, diff --git a/src/data-digitalocean-spaces-bucket-objects/index.ts b/src/data-digitalocean-spaces-bucket-objects/index.ts index b9250c164..537c5d166 100644 --- a/src/data-digitalocean-spaces-bucket-objects/index.ts +++ b/src/data-digitalocean-spaces-bucket-objects/index.ts @@ -66,7 +66,7 @@ export class DataDigitaloceanSpacesBucketObjects extends cdktf.TerraformDataSour terraformResourceType: 'digitalocean_spaces_bucket_objects', terraformGeneratorMetadata: { providerName: 'digitalocean', - providerVersion: '2.25.2', + providerVersion: '2.26.0', providerVersionConstraint: '~> 2.19' }, provider: config.provider, diff --git a/src/data-digitalocean-spaces-bucket/index.ts b/src/data-digitalocean-spaces-bucket/index.ts index 989b94735..ae3a2b18b 100644 --- a/src/data-digitalocean-spaces-bucket/index.ts +++ b/src/data-digitalocean-spaces-bucket/index.ts @@ -54,7 +54,7 @@ export class DataDigitaloceanSpacesBucket extends cdktf.TerraformDataSource { terraformResourceType: 'digitalocean_spaces_bucket', terraformGeneratorMetadata: { providerName: 'digitalocean', - providerVersion: '2.25.2', + providerVersion: '2.26.0', providerVersionConstraint: '~> 2.19' }, provider: config.provider, diff --git a/src/data-digitalocean-spaces-buckets/index.ts b/src/data-digitalocean-spaces-buckets/index.ts index 01bf64560..ca8022756 100644 --- a/src/data-digitalocean-spaces-buckets/index.ts +++ b/src/data-digitalocean-spaces-buckets/index.ts @@ -431,7 +431,7 @@ export class DataDigitaloceanSpacesBuckets extends cdktf.TerraformDataSource { terraformResourceType: 'digitalocean_spaces_buckets', terraformGeneratorMetadata: { providerName: 'digitalocean', - providerVersion: '2.25.2', + providerVersion: '2.26.0', providerVersionConstraint: '~> 2.19' }, provider: config.provider, diff --git a/src/data-digitalocean-ssh-key/index.ts b/src/data-digitalocean-ssh-key/index.ts index fa698d60e..ffed8f8df 100644 --- a/src/data-digitalocean-ssh-key/index.ts +++ b/src/data-digitalocean-ssh-key/index.ts @@ -41,7 +41,7 @@ export class DataDigitaloceanSshKey extends cdktf.TerraformDataSource { terraformResourceType: 'digitalocean_ssh_key', terraformGeneratorMetadata: { providerName: 'digitalocean', - providerVersion: '2.25.2', + providerVersion: '2.26.0', providerVersionConstraint: '~> 2.19' }, provider: config.provider, diff --git a/src/data-digitalocean-ssh-keys/index.ts b/src/data-digitalocean-ssh-keys/index.ts index bf594d749..0b1027730 100644 --- a/src/data-digitalocean-ssh-keys/index.ts +++ b/src/data-digitalocean-ssh-keys/index.ts @@ -426,7 +426,7 @@ export class DataDigitaloceanSshKeys extends cdktf.TerraformDataSource { terraformResourceType: 'digitalocean_ssh_keys', terraformGeneratorMetadata: { providerName: 'digitalocean', - providerVersion: '2.25.2', + providerVersion: '2.26.0', providerVersionConstraint: '~> 2.19' }, provider: config.provider, diff --git a/src/data-digitalocean-tag/index.ts b/src/data-digitalocean-tag/index.ts index c80b47462..283b98165 100644 --- a/src/data-digitalocean-tag/index.ts +++ b/src/data-digitalocean-tag/index.ts @@ -48,7 +48,7 @@ export class DataDigitaloceanTag extends cdktf.TerraformDataSource { terraformResourceType: 'digitalocean_tag', terraformGeneratorMetadata: { providerName: 'digitalocean', - providerVersion: '2.25.2', + providerVersion: '2.26.0', providerVersionConstraint: '~> 2.19' }, provider: config.provider, diff --git a/src/data-digitalocean-tags/index.ts b/src/data-digitalocean-tags/index.ts index 2c1248b44..4981fa314 100644 --- a/src/data-digitalocean-tags/index.ts +++ b/src/data-digitalocean-tags/index.ts @@ -441,7 +441,7 @@ export class DataDigitaloceanTags extends cdktf.TerraformDataSource { terraformResourceType: 'digitalocean_tags', terraformGeneratorMetadata: { providerName: 'digitalocean', - providerVersion: '2.25.2', + providerVersion: '2.26.0', providerVersionConstraint: '~> 2.19' }, provider: config.provider, diff --git a/src/data-digitalocean-volume-snapshot/index.ts b/src/data-digitalocean-volume-snapshot/index.ts index e4b2ef564..f944a5366 100644 --- a/src/data-digitalocean-volume-snapshot/index.ts +++ b/src/data-digitalocean-volume-snapshot/index.ts @@ -58,7 +58,7 @@ export class DataDigitaloceanVolumeSnapshot extends cdktf.TerraformDataSource { terraformResourceType: 'digitalocean_volume_snapshot', terraformGeneratorMetadata: { providerName: 'digitalocean', - providerVersion: '2.25.2', + providerVersion: '2.26.0', providerVersionConstraint: '~> 2.19' }, provider: config.provider, diff --git a/src/data-digitalocean-volume/index.ts b/src/data-digitalocean-volume/index.ts index 0665b2ce6..44a2fe930 100644 --- a/src/data-digitalocean-volume/index.ts +++ b/src/data-digitalocean-volume/index.ts @@ -60,7 +60,7 @@ export class DataDigitaloceanVolume extends cdktf.TerraformDataSource { terraformResourceType: 'digitalocean_volume', terraformGeneratorMetadata: { providerName: 'digitalocean', - providerVersion: '2.25.2', + providerVersion: '2.26.0', providerVersionConstraint: '~> 2.19' }, provider: config.provider, diff --git a/src/data-digitalocean-vpc/index.ts b/src/data-digitalocean-vpc/index.ts index 54733b0c0..3e711155b 100644 --- a/src/data-digitalocean-vpc/index.ts +++ b/src/data-digitalocean-vpc/index.ts @@ -50,7 +50,7 @@ export class DataDigitaloceanVpc extends cdktf.TerraformDataSource { terraformResourceType: 'digitalocean_vpc', terraformGeneratorMetadata: { providerName: 'digitalocean', - providerVersion: '2.25.2', + providerVersion: '2.26.0', providerVersionConstraint: '~> 2.19' }, provider: config.provider, diff --git a/src/database-cluster/index.ts b/src/database-cluster/index.ts index c0ff2f81d..2ef9953c0 100644 --- a/src/database-cluster/index.ts +++ b/src/database-cluster/index.ts @@ -287,7 +287,7 @@ export class DatabaseCluster extends cdktf.TerraformResource { terraformResourceType: 'digitalocean_database_cluster', terraformGeneratorMetadata: { providerName: 'digitalocean', - providerVersion: '2.25.2', + providerVersion: '2.26.0', providerVersionConstraint: '~> 2.19' }, provider: config.provider, diff --git a/src/database-connection-pool/index.ts b/src/database-connection-pool/index.ts index bd3ea552e..fe745d87e 100644 --- a/src/database-connection-pool/index.ts +++ b/src/database-connection-pool/index.ts @@ -66,7 +66,7 @@ export class DatabaseConnectionPool extends cdktf.TerraformResource { terraformResourceType: 'digitalocean_database_connection_pool', terraformGeneratorMetadata: { providerName: 'digitalocean', - providerVersion: '2.25.2', + providerVersion: '2.26.0', providerVersionConstraint: '~> 2.19' }, provider: config.provider, diff --git a/src/database-db/index.ts b/src/database-db/index.ts index 21766142f..39e5ceba8 100644 --- a/src/database-db/index.ts +++ b/src/database-db/index.ts @@ -50,7 +50,7 @@ export class DatabaseDb extends cdktf.TerraformResource { terraformResourceType: 'digitalocean_database_db', terraformGeneratorMetadata: { providerName: 'digitalocean', - providerVersion: '2.25.2', + providerVersion: '2.26.0', providerVersionConstraint: '~> 2.19' }, provider: config.provider, diff --git a/src/database-firewall/index.ts b/src/database-firewall/index.ts index 2f6276eb4..cff9a1625 100644 --- a/src/database-firewall/index.ts +++ b/src/database-firewall/index.ts @@ -180,7 +180,7 @@ export class DatabaseFirewall extends cdktf.TerraformResource { terraformResourceType: 'digitalocean_database_firewall', terraformGeneratorMetadata: { providerName: 'digitalocean', - providerVersion: '2.25.2', + providerVersion: '2.26.0', providerVersionConstraint: '~> 2.19' }, provider: config.provider, diff --git a/src/database-replica/index.ts b/src/database-replica/index.ts index bde57070d..f1f7c8162 100644 --- a/src/database-replica/index.ts +++ b/src/database-replica/index.ts @@ -66,7 +66,7 @@ export class DatabaseReplica extends cdktf.TerraformResource { terraformResourceType: 'digitalocean_database_replica', terraformGeneratorMetadata: { providerName: 'digitalocean', - providerVersion: '2.25.2', + providerVersion: '2.26.0', providerVersionConstraint: '~> 2.19' }, provider: config.provider, @@ -236,6 +236,11 @@ export class DatabaseReplica extends cdktf.TerraformResource { return this.getStringAttribute('user'); } + // uuid - computed: true, optional: false, required: false + public get uuid() { + return this.getStringAttribute('uuid'); + } + // ========= // SYNTHESIS // ========= diff --git a/src/database-user/index.ts b/src/database-user/index.ts index a1d447ab3..53a1b3745 100644 --- a/src/database-user/index.ts +++ b/src/database-user/index.ts @@ -54,7 +54,7 @@ export class DatabaseUser extends cdktf.TerraformResource { terraformResourceType: 'digitalocean_database_user', terraformGeneratorMetadata: { providerName: 'digitalocean', - providerVersion: '2.25.2', + providerVersion: '2.26.0', providerVersionConstraint: '~> 2.19' }, provider: config.provider, diff --git a/src/domain/index.ts b/src/domain/index.ts index cf48a3fcb..7a6d703f6 100644 --- a/src/domain/index.ts +++ b/src/domain/index.ts @@ -50,7 +50,7 @@ export class Domain extends cdktf.TerraformResource { terraformResourceType: 'digitalocean_domain', terraformGeneratorMetadata: { providerName: 'digitalocean', - providerVersion: '2.25.2', + providerVersion: '2.26.0', providerVersionConstraint: '~> 2.19' }, provider: config.provider, diff --git a/src/droplet-snapshot/index.ts b/src/droplet-snapshot/index.ts index 64f15f388..ae689c001 100644 --- a/src/droplet-snapshot/index.ts +++ b/src/droplet-snapshot/index.ts @@ -50,7 +50,7 @@ export class DropletSnapshot extends cdktf.TerraformResource { terraformResourceType: 'digitalocean_droplet_snapshot', terraformGeneratorMetadata: { providerName: 'digitalocean', - providerVersion: '2.25.2', + providerVersion: '2.26.0', providerVersionConstraint: '~> 2.19' }, provider: config.provider, diff --git a/src/droplet/index.ts b/src/droplet/index.ts index be7bcdaf1..f81e4bfbd 100644 --- a/src/droplet/index.ts +++ b/src/droplet/index.ts @@ -241,7 +241,7 @@ export class Droplet extends cdktf.TerraformResource { terraformResourceType: 'digitalocean_droplet', terraformGeneratorMetadata: { providerName: 'digitalocean', - providerVersion: '2.25.2', + providerVersion: '2.26.0', providerVersionConstraint: '~> 2.19' }, provider: config.provider, diff --git a/src/firewall/index.ts b/src/firewall/index.ts index 24f5f376b..8da18912c 100644 --- a/src/firewall/index.ts +++ b/src/firewall/index.ts @@ -652,7 +652,7 @@ export class Firewall extends cdktf.TerraformResource { terraformResourceType: 'digitalocean_firewall', terraformGeneratorMetadata: { providerName: 'digitalocean', - providerVersion: '2.25.2', + providerVersion: '2.26.0', providerVersionConstraint: '~> 2.19' }, provider: config.provider, diff --git a/src/floating-ip-assignment/index.ts b/src/floating-ip-assignment/index.ts index f7397ac70..27b47dba9 100644 --- a/src/floating-ip-assignment/index.ts +++ b/src/floating-ip-assignment/index.ts @@ -50,7 +50,7 @@ export class FloatingIpAssignment extends cdktf.TerraformResource { terraformResourceType: 'digitalocean_floating_ip_assignment', terraformGeneratorMetadata: { providerName: 'digitalocean', - providerVersion: '2.25.2', + providerVersion: '2.26.0', providerVersionConstraint: '~> 2.19' }, provider: config.provider, diff --git a/src/floating-ip/index.ts b/src/floating-ip/index.ts index bd741e5a1..382861c8c 100644 --- a/src/floating-ip/index.ts +++ b/src/floating-ip/index.ts @@ -54,7 +54,7 @@ export class FloatingIp extends cdktf.TerraformResource { terraformResourceType: 'digitalocean_floating_ip', terraformGeneratorMetadata: { providerName: 'digitalocean', - providerVersion: '2.25.2', + providerVersion: '2.26.0', providerVersionConstraint: '~> 2.19' }, provider: config.provider, diff --git a/src/index.ts b/src/index.ts index 02bab7945..94b7bd60f 100644 --- a/src/index.ts +++ b/src/index.ts @@ -31,6 +31,8 @@ export * as spacesBucketObject from './spaces-bucket-object'; export * as spacesBucketPolicy from './spaces-bucket-policy'; export * as sshKey from './ssh-key'; export * as tag from './tag'; +export * as uptimeAlert from './uptime-alert'; +export * as uptimeCheck from './uptime-check'; export * as volume from './volume'; export * as volumeAttachment from './volume-attachment'; export * as volumeSnapshot from './volume-snapshot'; diff --git a/src/kubernetes-cluster/index.ts b/src/kubernetes-cluster/index.ts index 1ccb98090..b91385e54 100644 --- a/src/kubernetes-cluster/index.ts +++ b/src/kubernetes-cluster/index.ts @@ -882,7 +882,7 @@ export class KubernetesCluster extends cdktf.TerraformResource { terraformResourceType: 'digitalocean_kubernetes_cluster', terraformGeneratorMetadata: { providerName: 'digitalocean', - providerVersion: '2.25.2', + providerVersion: '2.26.0', providerVersionConstraint: '~> 2.19' }, provider: config.provider, diff --git a/src/kubernetes-node-pool/index.ts b/src/kubernetes-node-pool/index.ts index e64fa2683..4238e4d71 100644 --- a/src/kubernetes-node-pool/index.ts +++ b/src/kubernetes-node-pool/index.ts @@ -423,7 +423,7 @@ export class KubernetesNodePool extends cdktf.TerraformResource { terraformResourceType: 'digitalocean_kubernetes_node_pool', terraformGeneratorMetadata: { providerName: 'digitalocean', - providerVersion: '2.25.2', + providerVersion: '2.26.0', providerVersionConstraint: '~> 2.19' }, provider: config.provider, diff --git a/src/loadbalancer/index.ts b/src/loadbalancer/index.ts index 5f3a6b821..ed885b477 100644 --- a/src/loadbalancer/index.ts +++ b/src/loadbalancer/index.ts @@ -71,6 +71,12 @@ export interface LoadbalancerConfig extends cdktf.TerraformMetaArguments { */ readonly vpcUuid?: string; /** + * firewall block + * + * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/digitalocean/r/loadbalancer#firewall Loadbalancer#firewall} + */ + readonly firewall?: LoadbalancerFirewall; + /** * forwarding_rule block * * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/digitalocean/r/loadbalancer#forwarding_rule Loadbalancer#forwarding_rule} @@ -89,6 +95,102 @@ export interface LoadbalancerConfig extends cdktf.TerraformMetaArguments { */ readonly stickySessions?: LoadbalancerStickySessions; } +export interface LoadbalancerFirewall { + /** + * the rules for ALLOWING traffic to the LB (strings in the form: 'ip:1.2.3.4' or 'cidr:1.2.0.0/16') + * + * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/digitalocean/r/loadbalancer#allow Loadbalancer#allow} + */ + readonly allow?: string[]; + /** + * the rules for DENYING traffic to the LB (strings in the form: 'ip:1.2.3.4' or 'cidr:1.2.0.0/16') + * + * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/digitalocean/r/loadbalancer#deny Loadbalancer#deny} + */ + readonly deny?: string[]; +} + +export function loadbalancerFirewallToTerraform(struct?: LoadbalancerFirewallOutputReference | LoadbalancerFirewall): any { + if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) { return struct; } + if (cdktf.isComplexElement(struct)) { + throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); + } + return { + allow: cdktf.listMapper(cdktf.stringToTerraform, false)(struct!.allow), + deny: cdktf.listMapper(cdktf.stringToTerraform, false)(struct!.deny), + } +} + +export class LoadbalancerFirewallOutputReference extends cdktf.ComplexObject { + private isEmptyObject = false; + + /** + * @param terraformResource The parent resource + * @param terraformAttribute The attribute on the parent resource this class is referencing + */ + public constructor(terraformResource: cdktf.IInterpolatingParent, terraformAttribute: string) { + super(terraformResource, terraformAttribute, false, 0); + } + + public get internalValue(): LoadbalancerFirewall | undefined { + let hasAnyValues = this.isEmptyObject; + const internalValueResult: any = {}; + if (this._allow !== undefined) { + hasAnyValues = true; + internalValueResult.allow = this._allow; + } + if (this._deny !== undefined) { + hasAnyValues = true; + internalValueResult.deny = this._deny; + } + return hasAnyValues ? internalValueResult : undefined; + } + + public set internalValue(value: LoadbalancerFirewall | undefined) { + if (value === undefined) { + this.isEmptyObject = false; + this._allow = undefined; + this._deny = undefined; + } + else { + this.isEmptyObject = Object.keys(value).length === 0; + this._allow = value.allow; + this._deny = value.deny; + } + } + + // allow - computed: false, optional: true, required: false + private _allow?: string[]; + public get allow() { + return this.getListAttribute('allow'); + } + public set allow(value: string[]) { + this._allow = value; + } + public resetAllow() { + this._allow = undefined; + } + // Temporarily expose input value. Use with caution. + public get allowInput() { + return this._allow; + } + + // deny - computed: false, optional: true, required: false + private _deny?: string[]; + public get deny() { + return this.getListAttribute('deny'); + } + public set deny(value: string[]) { + this._deny = value; + } + public resetDeny() { + this._deny = undefined; + } + // Temporarily expose input value. Use with caution. + public get denyInput() { + return this._deny; + } +} export interface LoadbalancerForwardingRule { /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/digitalocean/r/loadbalancer#certificate_id Loadbalancer#certificate_id} @@ -703,7 +805,7 @@ export class Loadbalancer extends cdktf.TerraformResource { terraformResourceType: 'digitalocean_loadbalancer', terraformGeneratorMetadata: { providerName: 'digitalocean', - providerVersion: '2.25.2', + providerVersion: '2.26.0', providerVersionConstraint: '~> 2.19' }, provider: config.provider, @@ -729,6 +831,7 @@ export class Loadbalancer extends cdktf.TerraformResource { this._size = config.size; this._sizeUnit = config.sizeUnit; this._vpcUuid = config.vpcUuid; + this._firewall.internalValue = config.firewall; this._forwardingRule.internalValue = config.forwardingRule; this._healthcheck.internalValue = config.healthcheck; this._stickySessions.internalValue = config.stickySessions; @@ -987,6 +1090,22 @@ export class Loadbalancer extends cdktf.TerraformResource { return this._vpcUuid; } + // firewall - computed: false, optional: true, required: false + private _firewall = new LoadbalancerFirewallOutputReference(this, "firewall"); + public get firewall() { + return this._firewall; + } + public putFirewall(value: LoadbalancerFirewall) { + this._firewall.internalValue = value; + } + public resetFirewall() { + this._firewall.internalValue = undefined; + } + // Temporarily expose input value. Use with caution. + public get firewallInput() { + return this._firewall.internalValue; + } + // forwarding_rule - computed: false, optional: false, required: true private _forwardingRule = new LoadbalancerForwardingRuleList(this, "forwarding_rule", true); public get forwardingRule() { @@ -1053,6 +1172,7 @@ export class Loadbalancer extends cdktf.TerraformResource { size: cdktf.stringToTerraform(this._size), size_unit: cdktf.numberToTerraform(this._sizeUnit), vpc_uuid: cdktf.stringToTerraform(this._vpcUuid), + firewall: loadbalancerFirewallToTerraform(this._firewall.internalValue), forwarding_rule: cdktf.listMapper(loadbalancerForwardingRuleToTerraform, true)(this._forwardingRule.internalValue), healthcheck: loadbalancerHealthcheckToTerraform(this._healthcheck.internalValue), sticky_sessions: loadbalancerStickySessionsToTerraform(this._stickySessions.internalValue), diff --git a/src/monitor-alert/index.ts b/src/monitor-alert/index.ts index 2312420b2..84edc8abe 100644 --- a/src/monitor-alert/index.ts +++ b/src/monitor-alert/index.ts @@ -304,7 +304,7 @@ export class MonitorAlert extends cdktf.TerraformResource { terraformResourceType: 'digitalocean_monitor_alert', terraformGeneratorMetadata: { providerName: 'digitalocean', - providerVersion: '2.25.2', + providerVersion: '2.26.0', providerVersionConstraint: '~> 2.19' }, provider: config.provider, diff --git a/src/project-resources/index.ts b/src/project-resources/index.ts index 986f6d0b2..052119767 100644 --- a/src/project-resources/index.ts +++ b/src/project-resources/index.ts @@ -54,7 +54,7 @@ export class ProjectResources extends cdktf.TerraformResource { terraformResourceType: 'digitalocean_project_resources', terraformGeneratorMetadata: { providerName: 'digitalocean', - providerVersion: '2.25.2', + providerVersion: '2.26.0', providerVersionConstraint: '~> 2.19' }, provider: config.provider, diff --git a/src/project/index.ts b/src/project/index.ts index cc08a6c6c..a47cbf780 100644 --- a/src/project/index.ts +++ b/src/project/index.ts @@ -78,7 +78,7 @@ export class Project extends cdktf.TerraformResource { terraformResourceType: 'digitalocean_project', terraformGeneratorMetadata: { providerName: 'digitalocean', - providerVersion: '2.25.2', + providerVersion: '2.26.0', providerVersionConstraint: '~> 2.19' }, provider: config.provider, diff --git a/src/provider/index.ts b/src/provider/index.ts index 7b3bd1fa6..6e4d476f7 100644 --- a/src/provider/index.ts +++ b/src/provider/index.ts @@ -71,7 +71,7 @@ export class DigitaloceanProvider extends cdktf.TerraformProvider { terraformResourceType: 'digitalocean', terraformGeneratorMetadata: { providerName: 'digitalocean', - providerVersion: '2.25.2', + providerVersion: '2.26.0', providerVersionConstraint: '~> 2.19' }, terraformProviderSource: 'digitalocean/digitalocean' diff --git a/src/record/index.ts b/src/record/index.ts index 4396fbdff..e043ecb32 100644 --- a/src/record/index.ts +++ b/src/record/index.ts @@ -82,7 +82,7 @@ export class Record extends cdktf.TerraformResource { terraformResourceType: 'digitalocean_record', terraformGeneratorMetadata: { providerName: 'digitalocean', - providerVersion: '2.25.2', + providerVersion: '2.26.0', providerVersionConstraint: '~> 2.19' }, provider: config.provider, diff --git a/src/reserved-ip-assignment/index.ts b/src/reserved-ip-assignment/index.ts index 926e1a6c5..6af74233d 100644 --- a/src/reserved-ip-assignment/index.ts +++ b/src/reserved-ip-assignment/index.ts @@ -50,7 +50,7 @@ export class ReservedIpAssignment extends cdktf.TerraformResource { terraformResourceType: 'digitalocean_reserved_ip_assignment', terraformGeneratorMetadata: { providerName: 'digitalocean', - providerVersion: '2.25.2', + providerVersion: '2.26.0', providerVersionConstraint: '~> 2.19' }, provider: config.provider, diff --git a/src/reserved-ip/index.ts b/src/reserved-ip/index.ts index 5e2fb482f..2f0951eb9 100644 --- a/src/reserved-ip/index.ts +++ b/src/reserved-ip/index.ts @@ -54,7 +54,7 @@ export class ReservedIp extends cdktf.TerraformResource { terraformResourceType: 'digitalocean_reserved_ip', terraformGeneratorMetadata: { providerName: 'digitalocean', - providerVersion: '2.25.2', + providerVersion: '2.26.0', providerVersionConstraint: '~> 2.19' }, provider: config.provider, diff --git a/src/spaces-bucket-object/index.ts b/src/spaces-bucket-object/index.ts index cef556b30..33754d1cf 100644 --- a/src/spaces-bucket-object/index.ts +++ b/src/spaces-bucket-object/index.ts @@ -106,7 +106,7 @@ export class SpacesBucketObject extends cdktf.TerraformResource { terraformResourceType: 'digitalocean_spaces_bucket_object', terraformGeneratorMetadata: { providerName: 'digitalocean', - providerVersion: '2.25.2', + providerVersion: '2.26.0', providerVersionConstraint: '~> 2.19' }, provider: config.provider, diff --git a/src/spaces-bucket-policy/index.ts b/src/spaces-bucket-policy/index.ts index 0a00069a7..557ef92d6 100644 --- a/src/spaces-bucket-policy/index.ts +++ b/src/spaces-bucket-policy/index.ts @@ -54,7 +54,7 @@ export class SpacesBucketPolicy extends cdktf.TerraformResource { terraformResourceType: 'digitalocean_spaces_bucket_policy', terraformGeneratorMetadata: { providerName: 'digitalocean', - providerVersion: '2.25.2', + providerVersion: '2.26.0', providerVersionConstraint: '~> 2.19' }, provider: config.provider, diff --git a/src/spaces-bucket/index.ts b/src/spaces-bucket/index.ts index ce521fe79..20db111c2 100644 --- a/src/spaces-bucket/index.ts +++ b/src/spaces-bucket/index.ts @@ -747,7 +747,7 @@ export class SpacesBucket extends cdktf.TerraformResource { terraformResourceType: 'digitalocean_spaces_bucket', terraformGeneratorMetadata: { providerName: 'digitalocean', - providerVersion: '2.25.2', + providerVersion: '2.26.0', providerVersionConstraint: '~> 2.19' }, provider: config.provider, diff --git a/src/ssh-key/index.ts b/src/ssh-key/index.ts index 9f25868cd..b84074bf0 100644 --- a/src/ssh-key/index.ts +++ b/src/ssh-key/index.ts @@ -50,7 +50,7 @@ export class SshKey extends cdktf.TerraformResource { terraformResourceType: 'digitalocean_ssh_key', terraformGeneratorMetadata: { providerName: 'digitalocean', - providerVersion: '2.25.2', + providerVersion: '2.26.0', providerVersionConstraint: '~> 2.19' }, provider: config.provider, diff --git a/src/tag/index.ts b/src/tag/index.ts index 5c5ed0a57..d40c54399 100644 --- a/src/tag/index.ts +++ b/src/tag/index.ts @@ -46,7 +46,7 @@ export class Tag extends cdktf.TerraformResource { terraformResourceType: 'digitalocean_tag', terraformGeneratorMetadata: { providerName: 'digitalocean', - providerVersion: '2.25.2', + providerVersion: '2.26.0', providerVersionConstraint: '~> 2.19' }, provider: config.provider, diff --git a/src/uptime-alert/README.md b/src/uptime-alert/README.md new file mode 100644 index 000000000..f00be8be9 --- /dev/null +++ b/src/uptime-alert/README.md @@ -0,0 +1,3 @@ +# `digitalocean_uptime_alert` + +Refer to the Terraform Registory for docs: [`digitalocean_uptime_alert`](https://www.terraform.io/docs/providers/digitalocean/r/uptime_alert). diff --git a/src/uptime-alert/index.ts b/src/uptime-alert/index.ts new file mode 100644 index 000000000..f756db514 --- /dev/null +++ b/src/uptime-alert/index.ts @@ -0,0 +1,474 @@ +// https://www.terraform.io/docs/providers/digitalocean/r/uptime_alert +// generated from terraform resource schema + +import { Construct } from 'constructs'; +import * as cdktf from 'cdktf'; + +// Configuration + +export interface UptimeAlertConfig extends cdktf.TerraformMetaArguments { + /** + * A unique identifier for a check. + * + * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/digitalocean/r/uptime_alert#check_id UptimeAlert#check_id} + */ + readonly checkId: string; + /** + * The comparison operator used against the alert's threshold. Enum: 'greater_than' 'less_than + * + * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/digitalocean/r/uptime_alert#comparison UptimeAlert#comparison} + */ + readonly comparison?: string; + /** + * A human-friendly display name for the alert. + * + * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/digitalocean/r/uptime_alert#name UptimeAlert#name} + */ + readonly name: string; + /** + * Period of time the threshold must be exceeded to trigger the alert. Enum '2m' '3m' '5m' '10m' '15m' '30m' '1h' + * + * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/digitalocean/r/uptime_alert#period UptimeAlert#period} + */ + readonly period?: string; + /** + * The threshold at which the alert will enter a trigger state. The specific threshold is dependent on the alert type. + * + * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/digitalocean/r/uptime_alert#threshold UptimeAlert#threshold} + */ + readonly threshold?: number; + /** + * The type of health check to perform. Enum: 'latency' 'down' 'down_global' 'ssl_expiry' + * + * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/digitalocean/r/uptime_alert#type UptimeAlert#type} + */ + readonly type: string; + /** + * notifications block + * + * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/digitalocean/r/uptime_alert#notifications UptimeAlert#notifications} + */ + readonly notifications: UptimeAlertNotifications[] | cdktf.IResolvable; +} +export interface UptimeAlertNotificationsSlack { + /** + * The Slack channel to send alerts to + * + * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/digitalocean/r/uptime_alert#channel UptimeAlert#channel} + */ + readonly channel: string; + /** + * The webhook URL for Slack + * + * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/digitalocean/r/uptime_alert#url UptimeAlert#url} + */ + readonly url: string; +} + +export function uptimeAlertNotificationsSlackToTerraform(struct?: UptimeAlertNotificationsSlack | cdktf.IResolvable): any { + if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) { return struct; } + if (cdktf.isComplexElement(struct)) { + throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); + } + return { + channel: cdktf.stringToTerraform(struct!.channel), + url: cdktf.stringToTerraform(struct!.url), + } +} + +export class UptimeAlertNotificationsSlackOutputReference extends cdktf.ComplexObject { + private isEmptyObject = false; + private resolvableValue?: cdktf.IResolvable; + + /** + * @param terraformResource The parent resource + * @param terraformAttribute The attribute on the parent resource this class is referencing + * @param complexObjectIndex the index of this item in the list + * @param complexObjectIsFromSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index) + */ + public constructor(terraformResource: cdktf.IInterpolatingParent, terraformAttribute: string, complexObjectIndex: number, complexObjectIsFromSet: boolean) { + super(terraformResource, terraformAttribute, complexObjectIsFromSet, complexObjectIndex); + } + + public get internalValue(): UptimeAlertNotificationsSlack | cdktf.IResolvable | undefined { + if (this.resolvableValue) { + return this.resolvableValue; + } + let hasAnyValues = this.isEmptyObject; + const internalValueResult: any = {}; + if (this._channel !== undefined) { + hasAnyValues = true; + internalValueResult.channel = this._channel; + } + if (this._url !== undefined) { + hasAnyValues = true; + internalValueResult.url = this._url; + } + return hasAnyValues ? internalValueResult : undefined; + } + + public set internalValue(value: UptimeAlertNotificationsSlack | cdktf.IResolvable | undefined) { + if (value === undefined) { + this.isEmptyObject = false; + this.resolvableValue = undefined; + this._channel = undefined; + this._url = undefined; + } + else if (cdktf.Tokenization.isResolvable(value)) { + this.isEmptyObject = false; + this.resolvableValue = value; + } + else { + this.isEmptyObject = Object.keys(value).length === 0; + this.resolvableValue = undefined; + this._channel = value.channel; + this._url = value.url; + } + } + + // channel - computed: false, optional: false, required: true + private _channel?: string; + public get channel() { + return this.getStringAttribute('channel'); + } + public set channel(value: string) { + this._channel = value; + } + // Temporarily expose input value. Use with caution. + public get channelInput() { + return this._channel; + } + + // url - computed: false, optional: false, required: true + private _url?: string; + public get url() { + return this.getStringAttribute('url'); + } + public set url(value: string) { + this._url = value; + } + // Temporarily expose input value. Use with caution. + public get urlInput() { + return this._url; + } +} + +export class UptimeAlertNotificationsSlackList extends cdktf.ComplexList { + public internalValue? : UptimeAlertNotificationsSlack[] | cdktf.IResolvable + + /** + * @param terraformResource The parent resource + * @param terraformAttribute The attribute on the parent resource this class is referencing + * @param wrapsSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index) + */ + constructor(protected terraformResource: cdktf.IInterpolatingParent, protected terraformAttribute: string, protected wrapsSet: boolean) { + super(terraformResource, terraformAttribute, wrapsSet) + } + + /** + * @param index the index of the item to return + */ + public get(index: number): UptimeAlertNotificationsSlackOutputReference { + return new UptimeAlertNotificationsSlackOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); + } +} +export interface UptimeAlertNotifications { + /** + * List of email addresses to sent notifications to + * + * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/digitalocean/r/uptime_alert#email UptimeAlert#email} + */ + readonly email?: string[]; + /** + * slack block + * + * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/digitalocean/r/uptime_alert#slack UptimeAlert#slack} + */ + readonly slack?: UptimeAlertNotificationsSlack[] | cdktf.IResolvable; +} + +export function uptimeAlertNotificationsToTerraform(struct?: UptimeAlertNotifications | cdktf.IResolvable): any { + if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) { return struct; } + if (cdktf.isComplexElement(struct)) { + throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); + } + return { + email: cdktf.listMapper(cdktf.stringToTerraform, false)(struct!.email), + slack: cdktf.listMapper(uptimeAlertNotificationsSlackToTerraform, true)(struct!.slack), + } +} + +export class UptimeAlertNotificationsOutputReference extends cdktf.ComplexObject { + private isEmptyObject = false; + private resolvableValue?: cdktf.IResolvable; + + /** + * @param terraformResource The parent resource + * @param terraformAttribute The attribute on the parent resource this class is referencing + * @param complexObjectIndex the index of this item in the list + * @param complexObjectIsFromSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index) + */ + public constructor(terraformResource: cdktf.IInterpolatingParent, terraformAttribute: string, complexObjectIndex: number, complexObjectIsFromSet: boolean) { + super(terraformResource, terraformAttribute, complexObjectIsFromSet, complexObjectIndex); + } + + public get internalValue(): UptimeAlertNotifications | cdktf.IResolvable | undefined { + if (this.resolvableValue) { + return this.resolvableValue; + } + let hasAnyValues = this.isEmptyObject; + const internalValueResult: any = {}; + if (this._email !== undefined) { + hasAnyValues = true; + internalValueResult.email = this._email; + } + if (this._slack?.internalValue !== undefined) { + hasAnyValues = true; + internalValueResult.slack = this._slack?.internalValue; + } + return hasAnyValues ? internalValueResult : undefined; + } + + public set internalValue(value: UptimeAlertNotifications | cdktf.IResolvable | undefined) { + if (value === undefined) { + this.isEmptyObject = false; + this.resolvableValue = undefined; + this._email = undefined; + this._slack.internalValue = undefined; + } + else if (cdktf.Tokenization.isResolvable(value)) { + this.isEmptyObject = false; + this.resolvableValue = value; + } + else { + this.isEmptyObject = Object.keys(value).length === 0; + this.resolvableValue = undefined; + this._email = value.email; + this._slack.internalValue = value.slack; + } + } + + // email - computed: false, optional: true, required: false + private _email?: string[]; + public get email() { + return this.getListAttribute('email'); + } + public set email(value: string[]) { + this._email = value; + } + public resetEmail() { + this._email = undefined; + } + // Temporarily expose input value. Use with caution. + public get emailInput() { + return this._email; + } + + // slack - computed: false, optional: true, required: false + private _slack = new UptimeAlertNotificationsSlackList(this, "slack", false); + public get slack() { + return this._slack; + } + public putSlack(value: UptimeAlertNotificationsSlack[] | cdktf.IResolvable) { + this._slack.internalValue = value; + } + public resetSlack() { + this._slack.internalValue = undefined; + } + // Temporarily expose input value. Use with caution. + public get slackInput() { + return this._slack.internalValue; + } +} + +export class UptimeAlertNotificationsList extends cdktf.ComplexList { + public internalValue? : UptimeAlertNotifications[] | cdktf.IResolvable + + /** + * @param terraformResource The parent resource + * @param terraformAttribute The attribute on the parent resource this class is referencing + * @param wrapsSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index) + */ + constructor(protected terraformResource: cdktf.IInterpolatingParent, protected terraformAttribute: string, protected wrapsSet: boolean) { + super(terraformResource, terraformAttribute, wrapsSet) + } + + /** + * @param index the index of the item to return + */ + public get(index: number): UptimeAlertNotificationsOutputReference { + return new UptimeAlertNotificationsOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); + } +} + +/** +* Represents a {@link https://www.terraform.io/docs/providers/digitalocean/r/uptime_alert digitalocean_uptime_alert} +*/ +export class UptimeAlert extends cdktf.TerraformResource { + + // ================= + // STATIC PROPERTIES + // ================= + public static readonly tfResourceType = "digitalocean_uptime_alert"; + + // =========== + // INITIALIZER + // =========== + + /** + * Create a new {@link https://www.terraform.io/docs/providers/digitalocean/r/uptime_alert digitalocean_uptime_alert} Resource + * + * @param scope The scope in which to define this construct + * @param id The scoped construct ID. Must be unique amongst siblings in the same scope + * @param options UptimeAlertConfig + */ + public constructor(scope: Construct, id: string, config: UptimeAlertConfig) { + super(scope, id, { + terraformResourceType: 'digitalocean_uptime_alert', + terraformGeneratorMetadata: { + providerName: 'digitalocean', + providerVersion: '2.26.0', + providerVersionConstraint: '~> 2.19' + }, + provider: config.provider, + dependsOn: config.dependsOn, + count: config.count, + lifecycle: config.lifecycle, + provisioners: config.provisioners, + connection: config.connection, + forEach: config.forEach + }); + this._checkId = config.checkId; + this._comparison = config.comparison; + this._name = config.name; + this._period = config.period; + this._threshold = config.threshold; + this._type = config.type; + this._notifications.internalValue = config.notifications; + } + + // ========== + // ATTRIBUTES + // ========== + + // check_id - computed: false, optional: false, required: true + private _checkId?: string; + public get checkId() { + return this.getStringAttribute('check_id'); + } + public set checkId(value: string) { + this._checkId = value; + } + // Temporarily expose input value. Use with caution. + public get checkIdInput() { + return this._checkId; + } + + // comparison - computed: false, optional: true, required: false + private _comparison?: string; + public get comparison() { + return this.getStringAttribute('comparison'); + } + public set comparison(value: string) { + this._comparison = value; + } + public resetComparison() { + this._comparison = undefined; + } + // Temporarily expose input value. Use with caution. + public get comparisonInput() { + return this._comparison; + } + + // id - computed: true, optional: false, required: false + public get id() { + return this.getStringAttribute('id'); + } + + // name - computed: false, optional: false, required: true + private _name?: string; + public get name() { + return this.getStringAttribute('name'); + } + public set name(value: string) { + this._name = value; + } + // Temporarily expose input value. Use with caution. + public get nameInput() { + return this._name; + } + + // period - computed: false, optional: true, required: false + private _period?: string; + public get period() { + return this.getStringAttribute('period'); + } + public set period(value: string) { + this._period = value; + } + public resetPeriod() { + this._period = undefined; + } + // Temporarily expose input value. Use with caution. + public get periodInput() { + return this._period; + } + + // threshold - computed: false, optional: true, required: false + private _threshold?: number; + public get threshold() { + return this.getNumberAttribute('threshold'); + } + public set threshold(value: number) { + this._threshold = value; + } + public resetThreshold() { + this._threshold = undefined; + } + // Temporarily expose input value. Use with caution. + public get thresholdInput() { + return this._threshold; + } + + // type - computed: false, optional: false, required: true + private _type?: string; + public get type() { + return this.getStringAttribute('type'); + } + public set type(value: string) { + this._type = value; + } + // Temporarily expose input value. Use with caution. + public get typeInput() { + return this._type; + } + + // notifications - computed: false, optional: false, required: true + private _notifications = new UptimeAlertNotificationsList(this, "notifications", false); + public get notifications() { + return this._notifications; + } + public putNotifications(value: UptimeAlertNotifications[] | cdktf.IResolvable) { + this._notifications.internalValue = value; + } + // Temporarily expose input value. Use with caution. + public get notificationsInput() { + return this._notifications.internalValue; + } + + // ========= + // SYNTHESIS + // ========= + + protected synthesizeAttributes(): { [name: string]: any } { + return { + check_id: cdktf.stringToTerraform(this._checkId), + comparison: cdktf.stringToTerraform(this._comparison), + name: cdktf.stringToTerraform(this._name), + period: cdktf.stringToTerraform(this._period), + threshold: cdktf.numberToTerraform(this._threshold), + type: cdktf.stringToTerraform(this._type), + notifications: cdktf.listMapper(uptimeAlertNotificationsToTerraform, true)(this._notifications.internalValue), + }; + } +} diff --git a/src/uptime-check/README.md b/src/uptime-check/README.md new file mode 100644 index 000000000..1aee3f515 --- /dev/null +++ b/src/uptime-check/README.md @@ -0,0 +1,3 @@ +# `digitalocean_uptime_check` + +Refer to the Terraform Registory for docs: [`digitalocean_uptime_check`](https://www.terraform.io/docs/providers/digitalocean/r/uptime_check). diff --git a/src/uptime-check/index.ts b/src/uptime-check/index.ts new file mode 100644 index 000000000..aed125cea --- /dev/null +++ b/src/uptime-check/index.ts @@ -0,0 +1,182 @@ +// https://www.terraform.io/docs/providers/digitalocean/r/uptime_check +// generated from terraform resource schema + +import { Construct } from 'constructs'; +import * as cdktf from 'cdktf'; + +// Configuration + +export interface UptimeCheckConfig extends cdktf.TerraformMetaArguments { + /** + * A boolean value indicating whether the check is enabled/disabled. + * + * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/digitalocean/r/uptime_check#enabled UptimeCheck#enabled} + */ + readonly enabled?: boolean | cdktf.IResolvable; + /** + * A human-friendly display name for the check. + * + * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/digitalocean/r/uptime_check#name UptimeCheck#name} + */ + readonly name: string; + /** + * An array containing the selected regions to perform healthchecks from. + * + * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/digitalocean/r/uptime_check#regions UptimeCheck#regions} + */ + readonly regions?: string[]; + /** + * The endpoint to perform healthchecks on. + * + * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/digitalocean/r/uptime_check#target UptimeCheck#target} + */ + readonly target: string; + /** + * The type of health check to perform. Enum: 'ping' 'http' 'https' + * + * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/digitalocean/r/uptime_check#type UptimeCheck#type} + */ + readonly type?: string; +} + +/** +* Represents a {@link https://www.terraform.io/docs/providers/digitalocean/r/uptime_check digitalocean_uptime_check} +*/ +export class UptimeCheck extends cdktf.TerraformResource { + + // ================= + // STATIC PROPERTIES + // ================= + public static readonly tfResourceType = "digitalocean_uptime_check"; + + // =========== + // INITIALIZER + // =========== + + /** + * Create a new {@link https://www.terraform.io/docs/providers/digitalocean/r/uptime_check digitalocean_uptime_check} Resource + * + * @param scope The scope in which to define this construct + * @param id The scoped construct ID. Must be unique amongst siblings in the same scope + * @param options UptimeCheckConfig + */ + public constructor(scope: Construct, id: string, config: UptimeCheckConfig) { + super(scope, id, { + terraformResourceType: 'digitalocean_uptime_check', + terraformGeneratorMetadata: { + providerName: 'digitalocean', + providerVersion: '2.26.0', + providerVersionConstraint: '~> 2.19' + }, + provider: config.provider, + dependsOn: config.dependsOn, + count: config.count, + lifecycle: config.lifecycle, + provisioners: config.provisioners, + connection: config.connection, + forEach: config.forEach + }); + this._enabled = config.enabled; + this._name = config.name; + this._regions = config.regions; + this._target = config.target; + this._type = config.type; + } + + // ========== + // ATTRIBUTES + // ========== + + // enabled - computed: false, optional: true, required: false + private _enabled?: boolean | cdktf.IResolvable; + public get enabled() { + return this.getBooleanAttribute('enabled'); + } + public set enabled(value: boolean | cdktf.IResolvable) { + this._enabled = value; + } + public resetEnabled() { + this._enabled = undefined; + } + // Temporarily expose input value. Use with caution. + public get enabledInput() { + return this._enabled; + } + + // id - computed: true, optional: false, required: false + public get id() { + return this.getStringAttribute('id'); + } + + // name - computed: false, optional: false, required: true + private _name?: string; + public get name() { + return this.getStringAttribute('name'); + } + public set name(value: string) { + this._name = value; + } + // Temporarily expose input value. Use with caution. + public get nameInput() { + return this._name; + } + + // regions - computed: false, optional: true, required: false + private _regions?: string[]; + public get regions() { + return cdktf.Fn.tolist(this.getListAttribute('regions')); + } + public set regions(value: string[]) { + this._regions = value; + } + public resetRegions() { + this._regions = undefined; + } + // Temporarily expose input value. Use with caution. + public get regionsInput() { + return this._regions; + } + + // target - computed: false, optional: false, required: true + private _target?: string; + public get target() { + return this.getStringAttribute('target'); + } + public set target(value: string) { + this._target = value; + } + // Temporarily expose input value. Use with caution. + public get targetInput() { + return this._target; + } + + // type - computed: false, optional: true, required: false + private _type?: string; + public get type() { + return this.getStringAttribute('type'); + } + public set type(value: string) { + this._type = value; + } + public resetType() { + this._type = undefined; + } + // Temporarily expose input value. Use with caution. + public get typeInput() { + return this._type; + } + + // ========= + // SYNTHESIS + // ========= + + protected synthesizeAttributes(): { [name: string]: any } { + return { + enabled: cdktf.booleanToTerraform(this._enabled), + name: cdktf.stringToTerraform(this._name), + regions: cdktf.listMapper(cdktf.stringToTerraform, false)(this._regions), + target: cdktf.stringToTerraform(this._target), + type: cdktf.stringToTerraform(this._type), + }; + } +} diff --git a/src/version.json b/src/version.json index c188850ee..eb2cda478 100644 --- a/src/version.json +++ b/src/version.json @@ -1,3 +1,3 @@ { - "registry.terraform.io/digitalocean/digitalocean": "2.25.2" + "registry.terraform.io/digitalocean/digitalocean": "2.26.0" } diff --git a/src/volume-attachment/index.ts b/src/volume-attachment/index.ts index e76236f36..ab385df9f 100644 --- a/src/volume-attachment/index.ts +++ b/src/volume-attachment/index.ts @@ -50,7 +50,7 @@ export class VolumeAttachment extends cdktf.TerraformResource { terraformResourceType: 'digitalocean_volume_attachment', terraformGeneratorMetadata: { providerName: 'digitalocean', - providerVersion: '2.25.2', + providerVersion: '2.26.0', providerVersionConstraint: '~> 2.19' }, provider: config.provider, diff --git a/src/volume-snapshot/index.ts b/src/volume-snapshot/index.ts index 5814214c6..fd3064c21 100644 --- a/src/volume-snapshot/index.ts +++ b/src/volume-snapshot/index.ts @@ -54,7 +54,7 @@ export class VolumeSnapshot extends cdktf.TerraformResource { terraformResourceType: 'digitalocean_volume_snapshot', terraformGeneratorMetadata: { providerName: 'digitalocean', - providerVersion: '2.25.2', + providerVersion: '2.26.0', providerVersionConstraint: '~> 2.19' }, provider: config.provider, diff --git a/src/volume/index.ts b/src/volume/index.ts index 6888f377d..d8874b8b9 100644 --- a/src/volume/index.ts +++ b/src/volume/index.ts @@ -78,7 +78,7 @@ export class Volume extends cdktf.TerraformResource { terraformResourceType: 'digitalocean_volume', terraformGeneratorMetadata: { providerName: 'digitalocean', - providerVersion: '2.25.2', + providerVersion: '2.26.0', providerVersionConstraint: '~> 2.19' }, provider: config.provider, diff --git a/src/vpc/index.ts b/src/vpc/index.ts index dcb64283a..e33d91a09 100644 --- a/src/vpc/index.ts +++ b/src/vpc/index.ts @@ -147,7 +147,7 @@ export class Vpc extends cdktf.TerraformResource { terraformResourceType: 'digitalocean_vpc', terraformGeneratorMetadata: { providerName: 'digitalocean', - providerVersion: '2.25.2', + providerVersion: '2.26.0', providerVersionConstraint: '~> 2.19' }, provider: config.provider,