diff --git a/API.md b/API.md index 98e4b52d3..703a85d13 100644 --- a/API.md +++ b/API.md @@ -22594,6 +22594,529 @@ public readonly tfResourceType: string; --- +### DataDigitaloceanReservedIp + +Represents a {@link https://www.terraform.io/docs/providers/digitalocean/d/reserved_ip digitalocean_reserved_ip}. + +#### Initializers + +```typescript +import { DataDigitaloceanReservedIp } from '@cdktf/provider-digitalocean' + +new DataDigitaloceanReservedIp(scope: Construct, id: string, config: DataDigitaloceanReservedIpConfig) +``` + +| **Name** | **Type** | **Description** | +| --- | --- | --- | +| scope | constructs.Construct | The scope in which to define this construct. | +| id | string | The scoped construct ID. | +| config | DataDigitaloceanReservedIpConfig | *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:* DataDigitaloceanReservedIpConfig + +--- + +#### 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.* | +| resetId | *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 + +--- + +##### `resetId` + +```typescript +public resetId(): void +``` + +#### Static Functions + +| **Name** | **Description** | +| --- | --- | +| isConstruct | Checks if `x` is a construct. | + +--- + +##### `isConstruct` + +```typescript +import { DataDigitaloceanReservedIp } from '@cdktf/provider-digitalocean' + +DataDigitaloceanReservedIp.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. + +--- + +#### 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.* | +| count | number | *No description.* | +| dependsOn | string[] | *No description.* | +| lifecycle | cdktf.TerraformResourceLifecycle | *No description.* | +| provider | cdktf.TerraformProvider | *No description.* | +| dropletId | number | *No description.* | +| region | string | *No description.* | +| urn | string | *No description.* | +| idInput | string | *No description.* | +| ipAddressInput | string | *No description.* | +| id | string | *No description.* | +| ipAddress | 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 + +--- + +##### `count`Optional + +```typescript +public readonly count: number; +``` + +- *Type:* number + +--- + +##### `dependsOn`Optional + +```typescript +public readonly dependsOn: string[]; +``` + +- *Type:* string[] + +--- + +##### `lifecycle`Optional + +```typescript +public readonly lifecycle: TerraformResourceLifecycle; +``` + +- *Type:* cdktf.TerraformResourceLifecycle + +--- + +##### `provider`Optional + +```typescript +public readonly provider: TerraformProvider; +``` + +- *Type:* cdktf.TerraformProvider + +--- + +##### `dropletId`Required + +```typescript +public readonly dropletId: number; +``` + +- *Type:* number + +--- + +##### `region`Required + +```typescript +public readonly region: string; +``` + +- *Type:* string + +--- + +##### `urn`Required + +```typescript +public readonly urn: string; +``` + +- *Type:* string + +--- + +##### `idInput`Optional + +```typescript +public readonly idInput: string; +``` + +- *Type:* string + +--- + +##### `ipAddressInput`Optional + +```typescript +public readonly ipAddressInput: string; +``` + +- *Type:* string + +--- + +##### `id`Required + +```typescript +public readonly id: string; +``` + +- *Type:* string + +--- + +##### `ipAddress`Required + +```typescript +public readonly ipAddress: string; +``` + +- *Type:* string + +--- + +#### Constants + +| **Name** | **Type** | **Description** | +| --- | --- | --- | +| tfResourceType | string | *No description.* | + +--- + +##### `tfResourceType`Required + +```typescript +public readonly tfResourceType: string; +``` + +- *Type:* string + +--- + ### DataDigitaloceanSizes Represents a {@link https://www.terraform.io/docs/providers/digitalocean/d/sizes digitalocean_sizes}. @@ -39280,6 +39803,1077 @@ public readonly tfResourceType: string; --- +### ReservedIp + +Represents a {@link https://www.terraform.io/docs/providers/digitalocean/r/reserved_ip digitalocean_reserved_ip}. + +#### Initializers + +```typescript +import { ReservedIp } from '@cdktf/provider-digitalocean' + +new ReservedIp(scope: Construct, id: string, config: ReservedIpConfig) +``` + +| **Name** | **Type** | **Description** | +| --- | --- | --- | +| scope | constructs.Construct | The scope in which to define this construct. | +| id | string | The scoped construct ID. | +| config | ReservedIpConfig | *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:* ReservedIpConfig + +--- + +#### 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.* | +| resetDropletId | *No description.* | +| resetId | *No description.* | +| resetIpAddress | *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 + +--- + +##### `resetDropletId` + +```typescript +public resetDropletId(): void +``` + +##### `resetId` + +```typescript +public resetId(): void +``` + +##### `resetIpAddress` + +```typescript +public resetIpAddress(): void +``` + +#### Static Functions + +| **Name** | **Description** | +| --- | --- | +| isConstruct | Checks if `x` is a construct. | + +--- + +##### `isConstruct` + +```typescript +import { ReservedIp } from '@cdktf/provider-digitalocean' + +ReservedIp.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. + +--- + +#### 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.* | +| count | number | *No description.* | +| dependsOn | string[] | *No description.* | +| lifecycle | cdktf.TerraformResourceLifecycle | *No description.* | +| provider | cdktf.TerraformProvider | *No description.* | +| urn | string | *No description.* | +| dropletIdInput | number | *No description.* | +| idInput | string | *No description.* | +| ipAddressInput | string | *No description.* | +| regionInput | string | *No description.* | +| dropletId | number | *No description.* | +| id | string | *No description.* | +| ipAddress | string | *No description.* | +| region | 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 + +--- + +##### `count`Optional + +```typescript +public readonly count: number; +``` + +- *Type:* number + +--- + +##### `dependsOn`Optional + +```typescript +public readonly dependsOn: string[]; +``` + +- *Type:* string[] + +--- + +##### `lifecycle`Optional + +```typescript +public readonly lifecycle: TerraformResourceLifecycle; +``` + +- *Type:* cdktf.TerraformResourceLifecycle + +--- + +##### `provider`Optional + +```typescript +public readonly provider: TerraformProvider; +``` + +- *Type:* cdktf.TerraformProvider + +--- + +##### `urn`Required + +```typescript +public readonly urn: string; +``` + +- *Type:* string + +--- + +##### `dropletIdInput`Optional + +```typescript +public readonly dropletIdInput: number; +``` + +- *Type:* number + +--- + +##### `idInput`Optional + +```typescript +public readonly idInput: string; +``` + +- *Type:* string + +--- + +##### `ipAddressInput`Optional + +```typescript +public readonly ipAddressInput: string; +``` + +- *Type:* string + +--- + +##### `regionInput`Optional + +```typescript +public readonly regionInput: string; +``` + +- *Type:* string + +--- + +##### `dropletId`Required + +```typescript +public readonly dropletId: number; +``` + +- *Type:* number + +--- + +##### `id`Required + +```typescript +public readonly id: string; +``` + +- *Type:* string + +--- + +##### `ipAddress`Required + +```typescript +public readonly ipAddress: string; +``` + +- *Type:* string + +--- + +##### `region`Required + +```typescript +public readonly region: string; +``` + +- *Type:* string + +--- + +#### Constants + +| **Name** | **Type** | **Description** | +| --- | --- | --- | +| tfResourceType | string | *No description.* | + +--- + +##### `tfResourceType`Required + +```typescript +public readonly tfResourceType: string; +``` + +- *Type:* string + +--- + +### ReservedIpAssignment + +Represents a {@link https://www.terraform.io/docs/providers/digitalocean/r/reserved_ip_assignment digitalocean_reserved_ip_assignment}. + +#### Initializers + +```typescript +import { ReservedIpAssignment } from '@cdktf/provider-digitalocean' + +new ReservedIpAssignment(scope: Construct, id: string, config: ReservedIpAssignmentConfig) +``` + +| **Name** | **Type** | **Description** | +| --- | --- | --- | +| scope | constructs.Construct | The scope in which to define this construct. | +| id | string | The scoped construct ID. | +| config | ReservedIpAssignmentConfig | *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:* ReservedIpAssignmentConfig + +--- + +#### 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.* | +| resetId | *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 + +--- + +##### `resetId` + +```typescript +public resetId(): void +``` + +#### Static Functions + +| **Name** | **Description** | +| --- | --- | +| isConstruct | Checks if `x` is a construct. | + +--- + +##### `isConstruct` + +```typescript +import { ReservedIpAssignment } from '@cdktf/provider-digitalocean' + +ReservedIpAssignment.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. + +--- + +#### 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.* | +| count | number | *No description.* | +| dependsOn | string[] | *No description.* | +| lifecycle | cdktf.TerraformResourceLifecycle | *No description.* | +| provider | cdktf.TerraformProvider | *No description.* | +| dropletIdInput | number | *No description.* | +| idInput | string | *No description.* | +| ipAddressInput | string | *No description.* | +| dropletId | number | *No description.* | +| id | string | *No description.* | +| ipAddress | 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 + +--- + +##### `count`Optional + +```typescript +public readonly count: number; +``` + +- *Type:* number + +--- + +##### `dependsOn`Optional + +```typescript +public readonly dependsOn: string[]; +``` + +- *Type:* string[] + +--- + +##### `lifecycle`Optional + +```typescript +public readonly lifecycle: TerraformResourceLifecycle; +``` + +- *Type:* cdktf.TerraformResourceLifecycle + +--- + +##### `provider`Optional + +```typescript +public readonly provider: TerraformProvider; +``` + +- *Type:* cdktf.TerraformProvider + +--- + +##### `dropletIdInput`Optional + +```typescript +public readonly dropletIdInput: number; +``` + +- *Type:* number + +--- + +##### `idInput`Optional + +```typescript +public readonly idInput: string; +``` + +- *Type:* string + +--- + +##### `ipAddressInput`Optional + +```typescript +public readonly ipAddressInput: string; +``` + +- *Type:* string + +--- + +##### `dropletId`Required + +```typescript +public readonly dropletId: number; +``` + +- *Type:* number + +--- + +##### `id`Required + +```typescript +public readonly id: string; +``` + +- *Type:* string + +--- + +##### `ipAddress`Required + +```typescript +public readonly ipAddress: string; +``` + +- *Type:* string + +--- + +#### Constants + +| **Name** | **Type** | **Description** | +| --- | --- | --- | +| tfResourceType | string | *No description.* | + +--- + +##### `tfResourceType`Required + +```typescript +public readonly tfResourceType: string; +``` + +- *Type:* string + +--- + ### SpacesBucket Represents a {@link https://www.terraform.io/docs/providers/digitalocean/r/spaces_bucket digitalocean_spaces_bucket}. @@ -56242,6 +57836,98 @@ Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/digit --- +### DataDigitaloceanReservedIpConfig + +#### Initializer + +```typescript +import { DataDigitaloceanReservedIpConfig } from '@cdktf/provider-digitalocean' + +const dataDigitaloceanReservedIpConfig: DataDigitaloceanReservedIpConfig = { ... } +``` + +#### Properties + +| **Name** | **Type** | **Description** | +| --- | --- | --- | +| count | number | *No description.* | +| dependsOn | cdktf.ITerraformDependable[] | *No description.* | +| lifecycle | cdktf.TerraformResourceLifecycle | *No description.* | +| provider | cdktf.TerraformProvider | *No description.* | +| ipAddress | string | reserved ip address. | +| id | string | Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/digitalocean/d/reserved_ip#id DataDigitaloceanReservedIp#id}. | + +--- + +##### `count`Optional + +```typescript +public readonly count: number; +``` + +- *Type:* number + +--- + +##### `dependsOn`Optional + +```typescript +public readonly dependsOn: ITerraformDependable[]; +``` + +- *Type:* cdktf.ITerraformDependable[] + +--- + +##### `lifecycle`Optional + +```typescript +public readonly lifecycle: TerraformResourceLifecycle; +``` + +- *Type:* cdktf.TerraformResourceLifecycle + +--- + +##### `provider`Optional + +```typescript +public readonly provider: TerraformProvider; +``` + +- *Type:* cdktf.TerraformProvider + +--- + +##### `ipAddress`Required + +```typescript +public readonly ipAddress: string; +``` + +- *Type:* string + +reserved ip address. + +Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/digitalocean/d/reserved_ip#ip_address DataDigitaloceanReservedIp#ip_address} + +--- + +##### `id`Optional + +```typescript +public readonly id: string; +``` + +- *Type:* string + +Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/digitalocean/d/reserved_ip#id DataDigitaloceanReservedIp#id}. + +Please be aware that the id field is automatically added to all resources in Terraform providers using a Terraform provider SDK version below 2. +If you experience problems setting this value it might not be settable. Please take a look at the provider documentation to ensure it should be settable. + +--- + ### DataDigitaloceanSizesConfig #### Initializer @@ -61437,6 +63123,225 @@ Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/digit --- +### ReservedIpAssignmentConfig + +#### Initializer + +```typescript +import { ReservedIpAssignmentConfig } from '@cdktf/provider-digitalocean' + +const reservedIpAssignmentConfig: ReservedIpAssignmentConfig = { ... } +``` + +#### Properties + +| **Name** | **Type** | **Description** | +| --- | --- | --- | +| count | number | *No description.* | +| dependsOn | cdktf.ITerraformDependable[] | *No description.* | +| lifecycle | cdktf.TerraformResourceLifecycle | *No description.* | +| provider | cdktf.TerraformProvider | *No description.* | +| dropletId | number | Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/digitalocean/r/reserved_ip_assignment#droplet_id ReservedIpAssignment#droplet_id}. | +| ipAddress | string | Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/digitalocean/r/reserved_ip_assignment#ip_address ReservedIpAssignment#ip_address}. | +| id | string | Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/digitalocean/r/reserved_ip_assignment#id ReservedIpAssignment#id}. | + +--- + +##### `count`Optional + +```typescript +public readonly count: number; +``` + +- *Type:* number + +--- + +##### `dependsOn`Optional + +```typescript +public readonly dependsOn: ITerraformDependable[]; +``` + +- *Type:* cdktf.ITerraformDependable[] + +--- + +##### `lifecycle`Optional + +```typescript +public readonly lifecycle: TerraformResourceLifecycle; +``` + +- *Type:* cdktf.TerraformResourceLifecycle + +--- + +##### `provider`Optional + +```typescript +public readonly provider: TerraformProvider; +``` + +- *Type:* cdktf.TerraformProvider + +--- + +##### `dropletId`Required + +```typescript +public readonly dropletId: number; +``` + +- *Type:* number + +Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/digitalocean/r/reserved_ip_assignment#droplet_id ReservedIpAssignment#droplet_id}. + +--- + +##### `ipAddress`Required + +```typescript +public readonly ipAddress: string; +``` + +- *Type:* string + +Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/digitalocean/r/reserved_ip_assignment#ip_address ReservedIpAssignment#ip_address}. + +--- + +##### `id`Optional + +```typescript +public readonly id: string; +``` + +- *Type:* string + +Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/digitalocean/r/reserved_ip_assignment#id ReservedIpAssignment#id}. + +Please be aware that the id field is automatically added to all resources in Terraform providers using a Terraform provider SDK version below 2. +If you experience problems setting this value it might not be settable. Please take a look at the provider documentation to ensure it should be settable. + +--- + +### ReservedIpConfig + +#### Initializer + +```typescript +import { ReservedIpConfig } from '@cdktf/provider-digitalocean' + +const reservedIpConfig: ReservedIpConfig = { ... } +``` + +#### Properties + +| **Name** | **Type** | **Description** | +| --- | --- | --- | +| count | number | *No description.* | +| dependsOn | cdktf.ITerraformDependable[] | *No description.* | +| lifecycle | cdktf.TerraformResourceLifecycle | *No description.* | +| provider | cdktf.TerraformProvider | *No description.* | +| region | string | Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/digitalocean/r/reserved_ip#region ReservedIp#region}. | +| dropletId | number | Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/digitalocean/r/reserved_ip#droplet_id ReservedIp#droplet_id}. | +| id | string | Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/digitalocean/r/reserved_ip#id ReservedIp#id}. | +| ipAddress | string | Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/digitalocean/r/reserved_ip#ip_address ReservedIp#ip_address}. | + +--- + +##### `count`Optional + +```typescript +public readonly count: number; +``` + +- *Type:* number + +--- + +##### `dependsOn`Optional + +```typescript +public readonly dependsOn: ITerraformDependable[]; +``` + +- *Type:* cdktf.ITerraformDependable[] + +--- + +##### `lifecycle`Optional + +```typescript +public readonly lifecycle: TerraformResourceLifecycle; +``` + +- *Type:* cdktf.TerraformResourceLifecycle + +--- + +##### `provider`Optional + +```typescript +public readonly provider: TerraformProvider; +``` + +- *Type:* cdktf.TerraformProvider + +--- + +##### `region`Required + +```typescript +public readonly region: string; +``` + +- *Type:* string + +Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/digitalocean/r/reserved_ip#region ReservedIp#region}. + +--- + +##### `dropletId`Optional + +```typescript +public readonly dropletId: number; +``` + +- *Type:* number + +Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/digitalocean/r/reserved_ip#droplet_id ReservedIp#droplet_id}. + +--- + +##### `id`Optional + +```typescript +public readonly id: string; +``` + +- *Type:* string + +Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/digitalocean/r/reserved_ip#id ReservedIp#id}. + +Please be aware that the id field is automatically added to all resources in Terraform providers using a Terraform provider SDK version below 2. +If you experience problems setting this value it might not be settable. Please take a look at the provider documentation to ensure it should be settable. + +--- + +##### `ipAddress`Optional + +```typescript +public readonly ipAddress: string; +``` + +- *Type:* string + +Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/digitalocean/r/reserved_ip#ip_address ReservedIp#ip_address}. + +--- + ### SpacesBucketConfig #### Initializer diff --git a/package.json b/package.json index 063b1e7a1..d77438317 100644 --- a/package.json +++ b/package.json @@ -52,7 +52,7 @@ "jsii-docgen": "^6.3.27", "jsii-pacmak": "^1.60.1", "npm-check-updates": "^12", - "projen": "^0.58.14", + "projen": "^0.58.15", "standard-version": "^9", "typescript": "^4.7.3" }, @@ -105,7 +105,7 @@ "cdktf": { "provider": { "name": "registry.terraform.io/digitalocean/digitalocean", - "version": "2.20.0" + "version": "2.21.0" } }, "resolutions": { diff --git a/src/app.ts b/src/app.ts index acad49f6c..8b7dade5a 100644 --- a/src/app.ts +++ b/src/app.ts @@ -10909,7 +10909,7 @@ export class App extends cdktf.TerraformResource { terraformResourceType: 'digitalocean_app', terraformGeneratorMetadata: { providerName: 'digitalocean', - providerVersion: '2.20.0', + providerVersion: '2.21.0', providerVersionConstraint: '~> 2.19' }, provider: config.provider, diff --git a/src/cdn.ts b/src/cdn.ts index 3246afa89..25e2baafa 100644 --- a/src/cdn.ts +++ b/src/cdn.ts @@ -70,7 +70,7 @@ export class Cdn extends cdktf.TerraformResource { terraformResourceType: 'digitalocean_cdn', terraformGeneratorMetadata: { providerName: 'digitalocean', - providerVersion: '2.20.0', + providerVersion: '2.21.0', providerVersionConstraint: '~> 2.19' }, provider: config.provider, diff --git a/src/certificate.ts b/src/certificate.ts index 78a7b2faa..c4373a081 100644 --- a/src/certificate.ts +++ b/src/certificate.ts @@ -66,7 +66,7 @@ export class Certificate extends cdktf.TerraformResource { terraformResourceType: 'digitalocean_certificate', terraformGeneratorMetadata: { providerName: 'digitalocean', - providerVersion: '2.20.0', + providerVersion: '2.21.0', providerVersionConstraint: '~> 2.19' }, provider: config.provider, diff --git a/src/container-registry-docker-credentials.ts b/src/container-registry-docker-credentials.ts index a9b015d8d..6e0eef8a9 100644 --- a/src/container-registry-docker-credentials.ts +++ b/src/container-registry-docker-credentials.ts @@ -54,7 +54,7 @@ export class ContainerRegistryDockerCredentials extends cdktf.TerraformResource terraformResourceType: 'digitalocean_container_registry_docker_credentials', terraformGeneratorMetadata: { providerName: 'digitalocean', - providerVersion: '2.20.0', + providerVersion: '2.21.0', providerVersionConstraint: '~> 2.19' }, provider: config.provider, diff --git a/src/container-registry.ts b/src/container-registry.ts index d29ed7218..236559315 100644 --- a/src/container-registry.ts +++ b/src/container-registry.ts @@ -54,7 +54,7 @@ export class ContainerRegistry extends cdktf.TerraformResource { terraformResourceType: 'digitalocean_container_registry', terraformGeneratorMetadata: { providerName: 'digitalocean', - providerVersion: '2.20.0', + providerVersion: '2.21.0', providerVersionConstraint: '~> 2.19' }, provider: config.provider, diff --git a/src/custom-image.ts b/src/custom-image.ts index 5dfbe6fbe..4cf1fa229 100644 --- a/src/custom-image.ts +++ b/src/custom-image.ts @@ -66,7 +66,7 @@ export class CustomImage extends cdktf.TerraformResource { terraformResourceType: 'digitalocean_custom_image', terraformGeneratorMetadata: { providerName: 'digitalocean', - providerVersion: '2.20.0', + providerVersion: '2.21.0', providerVersionConstraint: '~> 2.19' }, provider: config.provider, diff --git a/src/data-digitalocean-account.ts b/src/data-digitalocean-account.ts index 61e5d3807..e30b3b675 100644 --- a/src/data-digitalocean-account.ts +++ b/src/data-digitalocean-account.ts @@ -42,7 +42,7 @@ export class DataDigitaloceanAccount extends cdktf.TerraformDataSource { terraformResourceType: 'digitalocean_account', terraformGeneratorMetadata: { providerName: 'digitalocean', - providerVersion: '2.20.0', + providerVersion: '2.21.0', providerVersionConstraint: '~> 2.19' }, provider: config.provider, diff --git a/src/data-digitalocean-app.ts b/src/data-digitalocean-app.ts index 7ebad5af4..8f3dd6c14 100644 --- a/src/data-digitalocean-app.ts +++ b/src/data-digitalocean-app.ts @@ -5165,7 +5165,7 @@ export class DataDigitaloceanApp extends cdktf.TerraformDataSource { terraformResourceType: 'digitalocean_app', terraformGeneratorMetadata: { providerName: 'digitalocean', - providerVersion: '2.20.0', + providerVersion: '2.21.0', providerVersionConstraint: '~> 2.19' }, provider: config.provider, diff --git a/src/data-digitalocean-certificate.ts b/src/data-digitalocean-certificate.ts index 913865680..8a97be52b 100644 --- a/src/data-digitalocean-certificate.ts +++ b/src/data-digitalocean-certificate.ts @@ -48,7 +48,7 @@ export class DataDigitaloceanCertificate extends cdktf.TerraformDataSource { terraformResourceType: 'digitalocean_certificate', terraformGeneratorMetadata: { providerName: 'digitalocean', - providerVersion: '2.20.0', + providerVersion: '2.21.0', providerVersionConstraint: '~> 2.19' }, provider: config.provider, diff --git a/src/data-digitalocean-container-registry.ts b/src/data-digitalocean-container-registry.ts index cd15f4795..84c1ca403 100644 --- a/src/data-digitalocean-container-registry.ts +++ b/src/data-digitalocean-container-registry.ts @@ -48,7 +48,7 @@ export class DataDigitaloceanContainerRegistry extends cdktf.TerraformDataSource terraformResourceType: 'digitalocean_container_registry', terraformGeneratorMetadata: { providerName: 'digitalocean', - providerVersion: '2.20.0', + providerVersion: '2.21.0', providerVersionConstraint: '~> 2.19' }, provider: config.provider, diff --git a/src/data-digitalocean-database-ca.ts b/src/data-digitalocean-database-ca.ts index aafa7035c..09c6fa1fd 100644 --- a/src/data-digitalocean-database-ca.ts +++ b/src/data-digitalocean-database-ca.ts @@ -46,7 +46,7 @@ export class DataDigitaloceanDatabaseCa extends cdktf.TerraformDataSource { terraformResourceType: 'digitalocean_database_ca', terraformGeneratorMetadata: { providerName: 'digitalocean', - providerVersion: '2.20.0', + providerVersion: '2.21.0', providerVersionConstraint: '~> 2.19' }, provider: config.provider, diff --git a/src/data-digitalocean-database-cluster.ts b/src/data-digitalocean-database-cluster.ts index 6ae2a7596..336b11afa 100644 --- a/src/data-digitalocean-database-cluster.ts +++ b/src/data-digitalocean-database-cluster.ts @@ -119,7 +119,7 @@ export class DataDigitaloceanDatabaseCluster extends cdktf.TerraformDataSource { terraformResourceType: 'digitalocean_database_cluster', terraformGeneratorMetadata: { providerName: 'digitalocean', - providerVersion: '2.20.0', + providerVersion: '2.21.0', providerVersionConstraint: '~> 2.19' }, provider: config.provider, diff --git a/src/data-digitalocean-database-replica.ts b/src/data-digitalocean-database-replica.ts index 574f92eea..cc290c2cf 100644 --- a/src/data-digitalocean-database-replica.ts +++ b/src/data-digitalocean-database-replica.ts @@ -54,7 +54,7 @@ export class DataDigitaloceanDatabaseReplica extends cdktf.TerraformDataSource { terraformResourceType: 'digitalocean_database_replica', terraformGeneratorMetadata: { providerName: 'digitalocean', - providerVersion: '2.20.0', + providerVersion: '2.21.0', providerVersionConstraint: '~> 2.19' }, provider: config.provider, diff --git a/src/data-digitalocean-domain.ts b/src/data-digitalocean-domain.ts index 5e84fd00a..c91c60385 100644 --- a/src/data-digitalocean-domain.ts +++ b/src/data-digitalocean-domain.ts @@ -48,7 +48,7 @@ export class DataDigitaloceanDomain extends cdktf.TerraformDataSource { terraformResourceType: 'digitalocean_domain', terraformGeneratorMetadata: { providerName: 'digitalocean', - providerVersion: '2.20.0', + providerVersion: '2.21.0', providerVersionConstraint: '~> 2.19' }, provider: config.provider, diff --git a/src/data-digitalocean-domains.ts b/src/data-digitalocean-domains.ts index 8206db8b7..9698fdf2c 100644 --- a/src/data-digitalocean-domains.ts +++ b/src/data-digitalocean-domains.ts @@ -421,7 +421,7 @@ export class DataDigitaloceanDomains extends cdktf.TerraformDataSource { terraformResourceType: 'digitalocean_domains', terraformGeneratorMetadata: { providerName: 'digitalocean', - providerVersion: '2.20.0', + providerVersion: '2.21.0', providerVersionConstraint: '~> 2.19' }, provider: config.provider, diff --git a/src/data-digitalocean-droplet-snapshot.ts b/src/data-digitalocean-droplet-snapshot.ts index 6b8238d9f..33a6b5edb 100644 --- a/src/data-digitalocean-droplet-snapshot.ts +++ b/src/data-digitalocean-droplet-snapshot.ts @@ -58,7 +58,7 @@ export class DataDigitaloceanDropletSnapshot extends cdktf.TerraformDataSource { terraformResourceType: 'digitalocean_droplet_snapshot', terraformGeneratorMetadata: { providerName: 'digitalocean', - providerVersion: '2.20.0', + providerVersion: '2.21.0', providerVersionConstraint: '~> 2.19' }, provider: config.provider, diff --git a/src/data-digitalocean-droplet.ts b/src/data-digitalocean-droplet.ts index e940042fd..5dcbd31da 100644 --- a/src/data-digitalocean-droplet.ts +++ b/src/data-digitalocean-droplet.ts @@ -56,7 +56,7 @@ export class DataDigitaloceanDroplet extends cdktf.TerraformDataSource { terraformResourceType: 'digitalocean_droplet', terraformGeneratorMetadata: { providerName: 'digitalocean', - providerVersion: '2.20.0', + providerVersion: '2.21.0', providerVersionConstraint: '~> 2.19' }, provider: config.provider, diff --git a/src/data-digitalocean-droplets.ts b/src/data-digitalocean-droplets.ts index 66674efc6..330fa22d4 100644 --- a/src/data-digitalocean-droplets.ts +++ b/src/data-digitalocean-droplets.ts @@ -531,7 +531,7 @@ export class DataDigitaloceanDroplets extends cdktf.TerraformDataSource { terraformResourceType: 'digitalocean_droplets', terraformGeneratorMetadata: { providerName: 'digitalocean', - providerVersion: '2.20.0', + providerVersion: '2.21.0', providerVersionConstraint: '~> 2.19' }, provider: config.provider, diff --git a/src/data-digitalocean-firewall.ts b/src/data-digitalocean-firewall.ts index 1de556541..5e7125a85 100644 --- a/src/data-digitalocean-firewall.ts +++ b/src/data-digitalocean-firewall.ts @@ -652,7 +652,7 @@ export class DataDigitaloceanFirewall extends cdktf.TerraformDataSource { terraformResourceType: 'digitalocean_firewall', terraformGeneratorMetadata: { providerName: 'digitalocean', - providerVersion: '2.20.0', + providerVersion: '2.21.0', providerVersionConstraint: '~> 2.19' }, provider: config.provider, diff --git a/src/data-digitalocean-floating-ip.ts b/src/data-digitalocean-floating-ip.ts index 0e19c1c95..3010c0d14 100644 --- a/src/data-digitalocean-floating-ip.ts +++ b/src/data-digitalocean-floating-ip.ts @@ -48,7 +48,7 @@ export class DataDigitaloceanFloatingIp extends cdktf.TerraformDataSource { terraformResourceType: 'digitalocean_floating_ip', terraformGeneratorMetadata: { providerName: 'digitalocean', - providerVersion: '2.20.0', + providerVersion: '2.21.0', providerVersionConstraint: '~> 2.19' }, provider: config.provider, diff --git a/src/data-digitalocean-image.ts b/src/data-digitalocean-image.ts index cd3e8ced9..db2acd160 100644 --- a/src/data-digitalocean-image.ts +++ b/src/data-digitalocean-image.ts @@ -60,7 +60,7 @@ export class DataDigitaloceanImage extends cdktf.TerraformDataSource { terraformResourceType: 'digitalocean_image', terraformGeneratorMetadata: { providerName: 'digitalocean', - providerVersion: '2.20.0', + providerVersion: '2.21.0', providerVersionConstraint: '~> 2.19' }, provider: config.provider, diff --git a/src/data-digitalocean-images.ts b/src/data-digitalocean-images.ts index 38c14799c..7a66909be 100644 --- a/src/data-digitalocean-images.ts +++ b/src/data-digitalocean-images.ts @@ -481,7 +481,7 @@ export class DataDigitaloceanImages extends cdktf.TerraformDataSource { terraformResourceType: 'digitalocean_images', terraformGeneratorMetadata: { providerName: 'digitalocean', - providerVersion: '2.20.0', + providerVersion: '2.21.0', providerVersionConstraint: '~> 2.19' }, provider: config.provider, diff --git a/src/data-digitalocean-kubernetes-cluster.ts b/src/data-digitalocean-kubernetes-cluster.ts index a11ff1e89..900cb97fb 100644 --- a/src/data-digitalocean-kubernetes-cluster.ts +++ b/src/data-digitalocean-kubernetes-cluster.ts @@ -503,7 +503,7 @@ export class DataDigitaloceanKubernetesCluster extends cdktf.TerraformDataSource terraformResourceType: 'digitalocean_kubernetes_cluster', terraformGeneratorMetadata: { providerName: 'digitalocean', - providerVersion: '2.20.0', + providerVersion: '2.21.0', providerVersionConstraint: '~> 2.19' }, provider: config.provider, diff --git a/src/data-digitalocean-kubernetes-versions.ts b/src/data-digitalocean-kubernetes-versions.ts index d98d6c20b..10ab5091c 100644 --- a/src/data-digitalocean-kubernetes-versions.ts +++ b/src/data-digitalocean-kubernetes-versions.ts @@ -46,7 +46,7 @@ export class DataDigitaloceanKubernetesVersions extends cdktf.TerraformDataSourc terraformResourceType: 'digitalocean_kubernetes_versions', terraformGeneratorMetadata: { providerName: 'digitalocean', - providerVersion: '2.20.0', + providerVersion: '2.21.0', providerVersionConstraint: '~> 2.19' }, provider: config.provider, diff --git a/src/data-digitalocean-loadbalancer.ts b/src/data-digitalocean-loadbalancer.ts index b4d4426ec..15aef2893 100644 --- a/src/data-digitalocean-loadbalancer.ts +++ b/src/data-digitalocean-loadbalancer.ts @@ -312,7 +312,7 @@ export class DataDigitaloceanLoadbalancer extends cdktf.TerraformDataSource { terraformResourceType: 'digitalocean_loadbalancer', terraformGeneratorMetadata: { providerName: 'digitalocean', - providerVersion: '2.20.0', + providerVersion: '2.21.0', providerVersionConstraint: '~> 2.19' }, provider: config.provider, diff --git a/src/data-digitalocean-project.ts b/src/data-digitalocean-project.ts index 165c8ef13..cf95dbbd9 100644 --- a/src/data-digitalocean-project.ts +++ b/src/data-digitalocean-project.ts @@ -46,7 +46,7 @@ export class DataDigitaloceanProject extends cdktf.TerraformDataSource { terraformResourceType: 'digitalocean_project', terraformGeneratorMetadata: { providerName: 'digitalocean', - providerVersion: '2.20.0', + providerVersion: '2.21.0', providerVersionConstraint: '~> 2.19' }, provider: config.provider, diff --git a/src/data-digitalocean-projects.ts b/src/data-digitalocean-projects.ts index c87c3a761..d4b390b9d 100644 --- a/src/data-digitalocean-projects.ts +++ b/src/data-digitalocean-projects.ts @@ -461,7 +461,7 @@ export class DataDigitaloceanProjects extends cdktf.TerraformDataSource { terraformResourceType: 'digitalocean_projects', terraformGeneratorMetadata: { providerName: 'digitalocean', - providerVersion: '2.20.0', + providerVersion: '2.21.0', providerVersionConstraint: '~> 2.19' }, provider: config.provider, diff --git a/src/data-digitalocean-record.ts b/src/data-digitalocean-record.ts index c9687a79f..39d389e46 100644 --- a/src/data-digitalocean-record.ts +++ b/src/data-digitalocean-record.ts @@ -54,7 +54,7 @@ export class DataDigitaloceanRecord extends cdktf.TerraformDataSource { terraformResourceType: 'digitalocean_record', terraformGeneratorMetadata: { providerName: 'digitalocean', - providerVersion: '2.20.0', + providerVersion: '2.21.0', providerVersionConstraint: '~> 2.19' }, provider: config.provider, diff --git a/src/data-digitalocean-records.ts b/src/data-digitalocean-records.ts index 2458fcfec..021e25e6e 100644 --- a/src/data-digitalocean-records.ts +++ b/src/data-digitalocean-records.ts @@ -465,7 +465,7 @@ export class DataDigitaloceanRecords extends cdktf.TerraformDataSource { terraformResourceType: 'digitalocean_records', terraformGeneratorMetadata: { providerName: 'digitalocean', - providerVersion: '2.20.0', + providerVersion: '2.21.0', providerVersionConstraint: '~> 2.19' }, provider: config.provider, diff --git a/src/data-digitalocean-region.ts b/src/data-digitalocean-region.ts index 373b17e72..80cb571f7 100644 --- a/src/data-digitalocean-region.ts +++ b/src/data-digitalocean-region.ts @@ -46,7 +46,7 @@ export class DataDigitaloceanRegion extends cdktf.TerraformDataSource { terraformResourceType: 'digitalocean_region', terraformGeneratorMetadata: { providerName: 'digitalocean', - providerVersion: '2.20.0', + providerVersion: '2.21.0', providerVersionConstraint: '~> 2.19' }, provider: config.provider, diff --git a/src/data-digitalocean-regions.ts b/src/data-digitalocean-regions.ts index 014daaa00..cac682b17 100644 --- a/src/data-digitalocean-regions.ts +++ b/src/data-digitalocean-regions.ts @@ -431,7 +431,7 @@ export class DataDigitaloceanRegions extends cdktf.TerraformDataSource { terraformResourceType: 'digitalocean_regions', terraformGeneratorMetadata: { providerName: 'digitalocean', - providerVersion: '2.20.0', + providerVersion: '2.21.0', providerVersionConstraint: '~> 2.19' }, provider: config.provider, diff --git a/src/data-digitalocean-reserved-ip.ts b/src/data-digitalocean-reserved-ip.ts new file mode 100644 index 000000000..c42a7ceb3 --- /dev/null +++ b/src/data-digitalocean-reserved-ip.ts @@ -0,0 +1,121 @@ +// https://www.terraform.io/docs/providers/digitalocean/d/reserved_ip +// generated from terraform resource schema + +import { Construct } from 'constructs'; +import * as cdktf from 'cdktf'; + +// Configuration + +export interface DataDigitaloceanReservedIpConfig extends cdktf.TerraformMetaArguments { + /** + * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/digitalocean/d/reserved_ip#id DataDigitaloceanReservedIp#id} + * + * Please be aware that the id field is automatically added to all resources in Terraform providers using a Terraform provider SDK version below 2. + * If you experience problems setting this value it might not be settable. Please take a look at the provider documentation to ensure it should be settable. + */ + readonly id?: string; + /** + * reserved ip address + * + * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/digitalocean/d/reserved_ip#ip_address DataDigitaloceanReservedIp#ip_address} + */ + readonly ipAddress: string; +} + +/** +* Represents a {@link https://www.terraform.io/docs/providers/digitalocean/d/reserved_ip digitalocean_reserved_ip} +*/ +export class DataDigitaloceanReservedIp extends cdktf.TerraformDataSource { + + // ================= + // STATIC PROPERTIES + // ================= + public static readonly tfResourceType = "digitalocean_reserved_ip"; + + // =========== + // INITIALIZER + // =========== + + /** + * Create a new {@link https://www.terraform.io/docs/providers/digitalocean/d/reserved_ip digitalocean_reserved_ip} Data Source + * + * @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 DataDigitaloceanReservedIpConfig + */ + public constructor(scope: Construct, id: string, config: DataDigitaloceanReservedIpConfig) { + super(scope, id, { + terraformResourceType: 'digitalocean_reserved_ip', + terraformGeneratorMetadata: { + providerName: 'digitalocean', + providerVersion: '2.21.0', + providerVersionConstraint: '~> 2.19' + }, + provider: config.provider, + dependsOn: config.dependsOn, + count: config.count, + lifecycle: config.lifecycle + }); + this._id = config.id; + this._ipAddress = config.ipAddress; + } + + // ========== + // ATTRIBUTES + // ========== + + // droplet_id - computed: true, optional: false, required: false + public get dropletId() { + return this.getNumberAttribute('droplet_id'); + } + + // id - computed: true, optional: true, required: false + private _id?: string; + public get id() { + return this.getStringAttribute('id'); + } + public set id(value: string) { + this._id = value; + } + public resetId() { + this._id = undefined; + } + // Temporarily expose input value. Use with caution. + public get idInput() { + return this._id; + } + + // ip_address - computed: false, optional: false, required: true + private _ipAddress?: string; + public get ipAddress() { + return this.getStringAttribute('ip_address'); + } + public set ipAddress(value: string) { + this._ipAddress = value; + } + // Temporarily expose input value. Use with caution. + public get ipAddressInput() { + return this._ipAddress; + } + + // region - computed: true, optional: false, required: false + public get region() { + return this.getStringAttribute('region'); + } + + // urn - computed: true, optional: false, required: false + public get urn() { + return this.getStringAttribute('urn'); + } + + // ========= + // SYNTHESIS + // ========= + + protected synthesizeAttributes(): { [name: string]: any } { + return { + id: cdktf.stringToTerraform(this._id), + ip_address: cdktf.stringToTerraform(this._ipAddress), + }; + } +} diff --git a/src/data-digitalocean-sizes.ts b/src/data-digitalocean-sizes.ts index 485e442e8..267095f65 100644 --- a/src/data-digitalocean-sizes.ts +++ b/src/data-digitalocean-sizes.ts @@ -451,7 +451,7 @@ export class DataDigitaloceanSizes extends cdktf.TerraformDataSource { terraformResourceType: 'digitalocean_sizes', terraformGeneratorMetadata: { providerName: 'digitalocean', - providerVersion: '2.20.0', + providerVersion: '2.21.0', providerVersionConstraint: '~> 2.19' }, provider: config.provider, diff --git a/src/data-digitalocean-spaces-bucket-object.ts b/src/data-digitalocean-spaces-bucket-object.ts index 5a75f909f..22da2bdb5 100644 --- a/src/data-digitalocean-spaces-bucket-object.ts +++ b/src/data-digitalocean-spaces-bucket-object.ts @@ -62,7 +62,7 @@ export class DataDigitaloceanSpacesBucketObject extends cdktf.TerraformDataSourc terraformResourceType: 'digitalocean_spaces_bucket_object', terraformGeneratorMetadata: { providerName: 'digitalocean', - providerVersion: '2.20.0', + providerVersion: '2.21.0', providerVersionConstraint: '~> 2.19' }, provider: config.provider, diff --git a/src/data-digitalocean-spaces-bucket-objects.ts b/src/data-digitalocean-spaces-bucket-objects.ts index e6ce17f36..930682b7c 100644 --- a/src/data-digitalocean-spaces-bucket-objects.ts +++ b/src/data-digitalocean-spaces-bucket-objects.ts @@ -66,7 +66,7 @@ export class DataDigitaloceanSpacesBucketObjects extends cdktf.TerraformDataSour terraformResourceType: 'digitalocean_spaces_bucket_objects', terraformGeneratorMetadata: { providerName: 'digitalocean', - providerVersion: '2.20.0', + providerVersion: '2.21.0', providerVersionConstraint: '~> 2.19' }, provider: config.provider, diff --git a/src/data-digitalocean-spaces-bucket.ts b/src/data-digitalocean-spaces-bucket.ts index 614bddbb6..4a55c23ee 100644 --- a/src/data-digitalocean-spaces-bucket.ts +++ b/src/data-digitalocean-spaces-bucket.ts @@ -54,7 +54,7 @@ export class DataDigitaloceanSpacesBucket extends cdktf.TerraformDataSource { terraformResourceType: 'digitalocean_spaces_bucket', terraformGeneratorMetadata: { providerName: 'digitalocean', - providerVersion: '2.20.0', + providerVersion: '2.21.0', providerVersionConstraint: '~> 2.19' }, provider: config.provider, diff --git a/src/data-digitalocean-spaces-buckets.ts b/src/data-digitalocean-spaces-buckets.ts index dd9b0b407..e9e023e89 100644 --- a/src/data-digitalocean-spaces-buckets.ts +++ b/src/data-digitalocean-spaces-buckets.ts @@ -426,7 +426,7 @@ export class DataDigitaloceanSpacesBuckets extends cdktf.TerraformDataSource { terraformResourceType: 'digitalocean_spaces_buckets', terraformGeneratorMetadata: { providerName: 'digitalocean', - providerVersion: '2.20.0', + providerVersion: '2.21.0', providerVersionConstraint: '~> 2.19' }, provider: config.provider, diff --git a/src/data-digitalocean-ssh-key.ts b/src/data-digitalocean-ssh-key.ts index 49532823b..5d6bebef6 100644 --- a/src/data-digitalocean-ssh-key.ts +++ b/src/data-digitalocean-ssh-key.ts @@ -41,7 +41,7 @@ export class DataDigitaloceanSshKey extends cdktf.TerraformDataSource { terraformResourceType: 'digitalocean_ssh_key', terraformGeneratorMetadata: { providerName: 'digitalocean', - providerVersion: '2.20.0', + providerVersion: '2.21.0', providerVersionConstraint: '~> 2.19' }, provider: config.provider, diff --git a/src/data-digitalocean-ssh-keys.ts b/src/data-digitalocean-ssh-keys.ts index 2fe10b19e..4cead0fea 100644 --- a/src/data-digitalocean-ssh-keys.ts +++ b/src/data-digitalocean-ssh-keys.ts @@ -426,7 +426,7 @@ export class DataDigitaloceanSshKeys extends cdktf.TerraformDataSource { terraformResourceType: 'digitalocean_ssh_keys', terraformGeneratorMetadata: { providerName: 'digitalocean', - providerVersion: '2.20.0', + providerVersion: '2.21.0', providerVersionConstraint: '~> 2.19' }, provider: config.provider, diff --git a/src/data-digitalocean-tag.ts b/src/data-digitalocean-tag.ts index 3df2a3453..0281c2f09 100644 --- a/src/data-digitalocean-tag.ts +++ b/src/data-digitalocean-tag.ts @@ -48,7 +48,7 @@ export class DataDigitaloceanTag extends cdktf.TerraformDataSource { terraformResourceType: 'digitalocean_tag', terraformGeneratorMetadata: { providerName: 'digitalocean', - providerVersion: '2.20.0', + providerVersion: '2.21.0', providerVersionConstraint: '~> 2.19' }, provider: config.provider, diff --git a/src/data-digitalocean-tags.ts b/src/data-digitalocean-tags.ts index 5a3a9e3d8..f51176a04 100644 --- a/src/data-digitalocean-tags.ts +++ b/src/data-digitalocean-tags.ts @@ -441,7 +441,7 @@ export class DataDigitaloceanTags extends cdktf.TerraformDataSource { terraformResourceType: 'digitalocean_tags', terraformGeneratorMetadata: { providerName: 'digitalocean', - providerVersion: '2.20.0', + providerVersion: '2.21.0', providerVersionConstraint: '~> 2.19' }, provider: config.provider, diff --git a/src/data-digitalocean-volume-snapshot.ts b/src/data-digitalocean-volume-snapshot.ts index 13e597960..50addbd4f 100644 --- a/src/data-digitalocean-volume-snapshot.ts +++ b/src/data-digitalocean-volume-snapshot.ts @@ -58,7 +58,7 @@ export class DataDigitaloceanVolumeSnapshot extends cdktf.TerraformDataSource { terraformResourceType: 'digitalocean_volume_snapshot', terraformGeneratorMetadata: { providerName: 'digitalocean', - providerVersion: '2.20.0', + providerVersion: '2.21.0', providerVersionConstraint: '~> 2.19' }, provider: config.provider, diff --git a/src/data-digitalocean-volume.ts b/src/data-digitalocean-volume.ts index 7749aa91c..b8a6d938c 100644 --- a/src/data-digitalocean-volume.ts +++ b/src/data-digitalocean-volume.ts @@ -60,7 +60,7 @@ export class DataDigitaloceanVolume extends cdktf.TerraformDataSource { terraformResourceType: 'digitalocean_volume', terraformGeneratorMetadata: { providerName: 'digitalocean', - providerVersion: '2.20.0', + providerVersion: '2.21.0', providerVersionConstraint: '~> 2.19' }, provider: config.provider, diff --git a/src/data-digitalocean-vpc.ts b/src/data-digitalocean-vpc.ts index 9fb5eb303..87164991c 100644 --- a/src/data-digitalocean-vpc.ts +++ b/src/data-digitalocean-vpc.ts @@ -50,7 +50,7 @@ export class DataDigitaloceanVpc extends cdktf.TerraformDataSource { terraformResourceType: 'digitalocean_vpc', terraformGeneratorMetadata: { providerName: 'digitalocean', - providerVersion: '2.20.0', + providerVersion: '2.21.0', providerVersionConstraint: '~> 2.19' }, provider: config.provider, diff --git a/src/database-cluster.ts b/src/database-cluster.ts index 2a89ad36b..c62015782 100644 --- a/src/database-cluster.ts +++ b/src/database-cluster.ts @@ -287,7 +287,7 @@ export class DatabaseCluster extends cdktf.TerraformResource { terraformResourceType: 'digitalocean_database_cluster', terraformGeneratorMetadata: { providerName: 'digitalocean', - providerVersion: '2.20.0', + providerVersion: '2.21.0', providerVersionConstraint: '~> 2.19' }, provider: config.provider, diff --git a/src/database-connection-pool.ts b/src/database-connection-pool.ts index 5f036756e..74c827bd2 100644 --- a/src/database-connection-pool.ts +++ b/src/database-connection-pool.ts @@ -66,7 +66,7 @@ export class DatabaseConnectionPool extends cdktf.TerraformResource { terraformResourceType: 'digitalocean_database_connection_pool', terraformGeneratorMetadata: { providerName: 'digitalocean', - providerVersion: '2.20.0', + providerVersion: '2.21.0', providerVersionConstraint: '~> 2.19' }, provider: config.provider, diff --git a/src/database-db.ts b/src/database-db.ts index 16ed14f6e..fa655b37e 100644 --- a/src/database-db.ts +++ b/src/database-db.ts @@ -50,7 +50,7 @@ export class DatabaseDb extends cdktf.TerraformResource { terraformResourceType: 'digitalocean_database_db', terraformGeneratorMetadata: { providerName: 'digitalocean', - providerVersion: '2.20.0', + providerVersion: '2.21.0', providerVersionConstraint: '~> 2.19' }, provider: config.provider, diff --git a/src/database-firewall.ts b/src/database-firewall.ts index 81082e16b..1348e6c80 100644 --- a/src/database-firewall.ts +++ b/src/database-firewall.ts @@ -180,7 +180,7 @@ export class DatabaseFirewall extends cdktf.TerraformResource { terraformResourceType: 'digitalocean_database_firewall', terraformGeneratorMetadata: { providerName: 'digitalocean', - providerVersion: '2.20.0', + providerVersion: '2.21.0', providerVersionConstraint: '~> 2.19' }, provider: config.provider, diff --git a/src/database-replica.ts b/src/database-replica.ts index 99bec814f..0d81dad32 100644 --- a/src/database-replica.ts +++ b/src/database-replica.ts @@ -66,7 +66,7 @@ export class DatabaseReplica extends cdktf.TerraformResource { terraformResourceType: 'digitalocean_database_replica', terraformGeneratorMetadata: { providerName: 'digitalocean', - providerVersion: '2.20.0', + providerVersion: '2.21.0', providerVersionConstraint: '~> 2.19' }, provider: config.provider, diff --git a/src/database-user.ts b/src/database-user.ts index 0a8524166..dabcf740f 100644 --- a/src/database-user.ts +++ b/src/database-user.ts @@ -54,7 +54,7 @@ export class DatabaseUser extends cdktf.TerraformResource { terraformResourceType: 'digitalocean_database_user', terraformGeneratorMetadata: { providerName: 'digitalocean', - providerVersion: '2.20.0', + providerVersion: '2.21.0', providerVersionConstraint: '~> 2.19' }, provider: config.provider, diff --git a/src/digitalocean-provider.ts b/src/digitalocean-provider.ts index a6556ccab..b6f82b599 100644 --- a/src/digitalocean-provider.ts +++ b/src/digitalocean-provider.ts @@ -71,7 +71,7 @@ export class DigitaloceanProvider extends cdktf.TerraformProvider { terraformResourceType: 'digitalocean', terraformGeneratorMetadata: { providerName: 'digitalocean', - providerVersion: '2.20.0', + providerVersion: '2.21.0', providerVersionConstraint: '~> 2.19' }, terraformProviderSource: 'digitalocean/digitalocean' diff --git a/src/domain.ts b/src/domain.ts index 6f45d6f8d..4e618c4f8 100644 --- a/src/domain.ts +++ b/src/domain.ts @@ -50,7 +50,7 @@ export class Domain extends cdktf.TerraformResource { terraformResourceType: 'digitalocean_domain', terraformGeneratorMetadata: { providerName: 'digitalocean', - providerVersion: '2.20.0', + providerVersion: '2.21.0', providerVersionConstraint: '~> 2.19' }, provider: config.provider, diff --git a/src/droplet-snapshot.ts b/src/droplet-snapshot.ts index 3007f523e..702c40d4c 100644 --- a/src/droplet-snapshot.ts +++ b/src/droplet-snapshot.ts @@ -50,7 +50,7 @@ export class DropletSnapshot extends cdktf.TerraformResource { terraformResourceType: 'digitalocean_droplet_snapshot', terraformGeneratorMetadata: { providerName: 'digitalocean', - providerVersion: '2.20.0', + providerVersion: '2.21.0', providerVersionConstraint: '~> 2.19' }, provider: config.provider, diff --git a/src/droplet.ts b/src/droplet.ts index 2e245947d..99efb7b55 100644 --- a/src/droplet.ts +++ b/src/droplet.ts @@ -106,7 +106,7 @@ export class Droplet extends cdktf.TerraformResource { terraformResourceType: 'digitalocean_droplet', terraformGeneratorMetadata: { providerName: 'digitalocean', - providerVersion: '2.20.0', + providerVersion: '2.21.0', providerVersionConstraint: '~> 2.19' }, provider: config.provider, diff --git a/src/firewall.ts b/src/firewall.ts index 15db8e39c..9a1c6868f 100644 --- a/src/firewall.ts +++ b/src/firewall.ts @@ -652,7 +652,7 @@ export class Firewall extends cdktf.TerraformResource { terraformResourceType: 'digitalocean_firewall', terraformGeneratorMetadata: { providerName: 'digitalocean', - providerVersion: '2.20.0', + providerVersion: '2.21.0', providerVersionConstraint: '~> 2.19' }, provider: config.provider, diff --git a/src/floating-ip-assignment.ts b/src/floating-ip-assignment.ts index e21fd79f9..9a944fe78 100644 --- a/src/floating-ip-assignment.ts +++ b/src/floating-ip-assignment.ts @@ -50,7 +50,7 @@ export class FloatingIpAssignment extends cdktf.TerraformResource { terraformResourceType: 'digitalocean_floating_ip_assignment', terraformGeneratorMetadata: { providerName: 'digitalocean', - providerVersion: '2.20.0', + providerVersion: '2.21.0', providerVersionConstraint: '~> 2.19' }, provider: config.provider, diff --git a/src/floating-ip.ts b/src/floating-ip.ts index 44d183ac2..85533aeaa 100644 --- a/src/floating-ip.ts +++ b/src/floating-ip.ts @@ -54,7 +54,7 @@ export class FloatingIp extends cdktf.TerraformResource { terraformResourceType: 'digitalocean_floating_ip', terraformGeneratorMetadata: { providerName: 'digitalocean', - providerVersion: '2.20.0', + providerVersion: '2.21.0', providerVersionConstraint: '~> 2.19' }, provider: config.provider, diff --git a/src/index.ts b/src/index.ts index 5b7e1f78e..7725a12e3 100644 --- a/src/index.ts +++ b/src/index.ts @@ -24,6 +24,8 @@ export * from './monitor-alert'; export * from './project'; export * from './project-resources'; export * from './record'; +export * from './reserved-ip'; +export * from './reserved-ip-assignment'; export * from './spaces-bucket'; export * from './spaces-bucket-object'; export * from './spaces-bucket-policy'; @@ -58,6 +60,7 @@ export * from './data-digitalocean-record'; export * from './data-digitalocean-records'; export * from './data-digitalocean-region'; export * from './data-digitalocean-regions'; +export * from './data-digitalocean-reserved-ip'; export * from './data-digitalocean-sizes'; export * from './data-digitalocean-spaces-bucket'; export * from './data-digitalocean-spaces-bucket-object'; diff --git a/src/kubernetes-cluster.ts b/src/kubernetes-cluster.ts index f4057e851..1021cafdf 100644 --- a/src/kubernetes-cluster.ts +++ b/src/kubernetes-cluster.ts @@ -882,7 +882,7 @@ export class KubernetesCluster extends cdktf.TerraformResource { terraformResourceType: 'digitalocean_kubernetes_cluster', terraformGeneratorMetadata: { providerName: 'digitalocean', - providerVersion: '2.20.0', + providerVersion: '2.21.0', providerVersionConstraint: '~> 2.19' }, provider: config.provider, diff --git a/src/kubernetes-node-pool.ts b/src/kubernetes-node-pool.ts index 3ef47c0a3..16159b67f 100644 --- a/src/kubernetes-node-pool.ts +++ b/src/kubernetes-node-pool.ts @@ -423,7 +423,7 @@ export class KubernetesNodePool extends cdktf.TerraformResource { terraformResourceType: 'digitalocean_kubernetes_node_pool', terraformGeneratorMetadata: { providerName: 'digitalocean', - providerVersion: '2.20.0', + providerVersion: '2.21.0', providerVersionConstraint: '~> 2.19' }, provider: config.provider, diff --git a/src/loadbalancer.ts b/src/loadbalancer.ts index 079d2de2c..112ca12b1 100644 --- a/src/loadbalancer.ts +++ b/src/loadbalancer.ts @@ -695,7 +695,7 @@ export class Loadbalancer extends cdktf.TerraformResource { terraformResourceType: 'digitalocean_loadbalancer', terraformGeneratorMetadata: { providerName: 'digitalocean', - providerVersion: '2.20.0', + providerVersion: '2.21.0', providerVersionConstraint: '~> 2.19' }, provider: config.provider, diff --git a/src/monitor-alert.ts b/src/monitor-alert.ts index ea24d8708..a683baa8a 100644 --- a/src/monitor-alert.ts +++ b/src/monitor-alert.ts @@ -304,7 +304,7 @@ export class MonitorAlert extends cdktf.TerraformResource { terraformResourceType: 'digitalocean_monitor_alert', terraformGeneratorMetadata: { providerName: 'digitalocean', - providerVersion: '2.20.0', + providerVersion: '2.21.0', providerVersionConstraint: '~> 2.19' }, provider: config.provider, diff --git a/src/project-resources.ts b/src/project-resources.ts index 189fd0873..5f61e1996 100644 --- a/src/project-resources.ts +++ b/src/project-resources.ts @@ -54,7 +54,7 @@ export class ProjectResources extends cdktf.TerraformResource { terraformResourceType: 'digitalocean_project_resources', terraformGeneratorMetadata: { providerName: 'digitalocean', - providerVersion: '2.20.0', + providerVersion: '2.21.0', providerVersionConstraint: '~> 2.19' }, provider: config.provider, diff --git a/src/project.ts b/src/project.ts index 1285f33f9..d116dd952 100644 --- a/src/project.ts +++ b/src/project.ts @@ -72,7 +72,7 @@ export class Project extends cdktf.TerraformResource { terraformResourceType: 'digitalocean_project', terraformGeneratorMetadata: { providerName: 'digitalocean', - providerVersion: '2.20.0', + providerVersion: '2.21.0', providerVersionConstraint: '~> 2.19' }, provider: config.provider, diff --git a/src/record.ts b/src/record.ts index 3583aa42c..059709d51 100644 --- a/src/record.ts +++ b/src/record.ts @@ -82,7 +82,7 @@ export class Record extends cdktf.TerraformResource { terraformResourceType: 'digitalocean_record', terraformGeneratorMetadata: { providerName: 'digitalocean', - providerVersion: '2.20.0', + providerVersion: '2.21.0', providerVersionConstraint: '~> 2.19' }, provider: config.provider, diff --git a/src/reserved-ip-assignment.ts b/src/reserved-ip-assignment.ts new file mode 100644 index 000000000..fe15b7df7 --- /dev/null +++ b/src/reserved-ip-assignment.ts @@ -0,0 +1,123 @@ +// https://www.terraform.io/docs/providers/digitalocean/r/reserved_ip_assignment +// generated from terraform resource schema + +import { Construct } from 'constructs'; +import * as cdktf from 'cdktf'; + +// Configuration + +export interface ReservedIpAssignmentConfig extends cdktf.TerraformMetaArguments { + /** + * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/digitalocean/r/reserved_ip_assignment#droplet_id ReservedIpAssignment#droplet_id} + */ + readonly dropletId: number; + /** + * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/digitalocean/r/reserved_ip_assignment#id ReservedIpAssignment#id} + * + * Please be aware that the id field is automatically added to all resources in Terraform providers using a Terraform provider SDK version below 2. + * If you experience problems setting this value it might not be settable. Please take a look at the provider documentation to ensure it should be settable. + */ + readonly id?: string; + /** + * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/digitalocean/r/reserved_ip_assignment#ip_address ReservedIpAssignment#ip_address} + */ + readonly ipAddress: string; +} + +/** +* Represents a {@link https://www.terraform.io/docs/providers/digitalocean/r/reserved_ip_assignment digitalocean_reserved_ip_assignment} +*/ +export class ReservedIpAssignment extends cdktf.TerraformResource { + + // ================= + // STATIC PROPERTIES + // ================= + public static readonly tfResourceType = "digitalocean_reserved_ip_assignment"; + + // =========== + // INITIALIZER + // =========== + + /** + * Create a new {@link https://www.terraform.io/docs/providers/digitalocean/r/reserved_ip_assignment digitalocean_reserved_ip_assignment} 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 ReservedIpAssignmentConfig + */ + public constructor(scope: Construct, id: string, config: ReservedIpAssignmentConfig) { + super(scope, id, { + terraformResourceType: 'digitalocean_reserved_ip_assignment', + terraformGeneratorMetadata: { + providerName: 'digitalocean', + providerVersion: '2.21.0', + providerVersionConstraint: '~> 2.19' + }, + provider: config.provider, + dependsOn: config.dependsOn, + count: config.count, + lifecycle: config.lifecycle + }); + this._dropletId = config.dropletId; + this._id = config.id; + this._ipAddress = config.ipAddress; + } + + // ========== + // ATTRIBUTES + // ========== + + // droplet_id - computed: false, optional: false, required: true + private _dropletId?: number; + public get dropletId() { + return this.getNumberAttribute('droplet_id'); + } + public set dropletId(value: number) { + this._dropletId = value; + } + // Temporarily expose input value. Use with caution. + public get dropletIdInput() { + return this._dropletId; + } + + // id - computed: true, optional: true, required: false + private _id?: string; + public get id() { + return this.getStringAttribute('id'); + } + public set id(value: string) { + this._id = value; + } + public resetId() { + this._id = undefined; + } + // Temporarily expose input value. Use with caution. + public get idInput() { + return this._id; + } + + // ip_address - computed: false, optional: false, required: true + private _ipAddress?: string; + public get ipAddress() { + return this.getStringAttribute('ip_address'); + } + public set ipAddress(value: string) { + this._ipAddress = value; + } + // Temporarily expose input value. Use with caution. + public get ipAddressInput() { + return this._ipAddress; + } + + // ========= + // SYNTHESIS + // ========= + + protected synthesizeAttributes(): { [name: string]: any } { + return { + droplet_id: cdktf.numberToTerraform(this._dropletId), + id: cdktf.stringToTerraform(this._id), + ip_address: cdktf.stringToTerraform(this._ipAddress), + }; + } +} diff --git a/src/reserved-ip.ts b/src/reserved-ip.ts new file mode 100644 index 000000000..acf78ece0 --- /dev/null +++ b/src/reserved-ip.ts @@ -0,0 +1,153 @@ +// https://www.terraform.io/docs/providers/digitalocean/r/reserved_ip +// generated from terraform resource schema + +import { Construct } from 'constructs'; +import * as cdktf from 'cdktf'; + +// Configuration + +export interface ReservedIpConfig extends cdktf.TerraformMetaArguments { + /** + * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/digitalocean/r/reserved_ip#droplet_id ReservedIp#droplet_id} + */ + readonly dropletId?: number; + /** + * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/digitalocean/r/reserved_ip#id ReservedIp#id} + * + * Please be aware that the id field is automatically added to all resources in Terraform providers using a Terraform provider SDK version below 2. + * If you experience problems setting this value it might not be settable. Please take a look at the provider documentation to ensure it should be settable. + */ + readonly id?: string; + /** + * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/digitalocean/r/reserved_ip#ip_address ReservedIp#ip_address} + */ + readonly ipAddress?: string; + /** + * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/digitalocean/r/reserved_ip#region ReservedIp#region} + */ + readonly region: string; +} + +/** +* Represents a {@link https://www.terraform.io/docs/providers/digitalocean/r/reserved_ip digitalocean_reserved_ip} +*/ +export class ReservedIp extends cdktf.TerraformResource { + + // ================= + // STATIC PROPERTIES + // ================= + public static readonly tfResourceType = "digitalocean_reserved_ip"; + + // =========== + // INITIALIZER + // =========== + + /** + * Create a new {@link https://www.terraform.io/docs/providers/digitalocean/r/reserved_ip digitalocean_reserved_ip} 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 ReservedIpConfig + */ + public constructor(scope: Construct, id: string, config: ReservedIpConfig) { + super(scope, id, { + terraformResourceType: 'digitalocean_reserved_ip', + terraformGeneratorMetadata: { + providerName: 'digitalocean', + providerVersion: '2.21.0', + providerVersionConstraint: '~> 2.19' + }, + provider: config.provider, + dependsOn: config.dependsOn, + count: config.count, + lifecycle: config.lifecycle + }); + this._dropletId = config.dropletId; + this._id = config.id; + this._ipAddress = config.ipAddress; + this._region = config.region; + } + + // ========== + // ATTRIBUTES + // ========== + + // droplet_id - computed: false, optional: true, required: false + private _dropletId?: number; + public get dropletId() { + return this.getNumberAttribute('droplet_id'); + } + public set dropletId(value: number) { + this._dropletId = value; + } + public resetDropletId() { + this._dropletId = undefined; + } + // Temporarily expose input value. Use with caution. + public get dropletIdInput() { + return this._dropletId; + } + + // id - computed: true, optional: true, required: false + private _id?: string; + public get id() { + return this.getStringAttribute('id'); + } + public set id(value: string) { + this._id = value; + } + public resetId() { + this._id = undefined; + } + // Temporarily expose input value. Use with caution. + public get idInput() { + return this._id; + } + + // ip_address - computed: true, optional: true, required: false + private _ipAddress?: string; + public get ipAddress() { + return this.getStringAttribute('ip_address'); + } + public set ipAddress(value: string) { + this._ipAddress = value; + } + public resetIpAddress() { + this._ipAddress = undefined; + } + // Temporarily expose input value. Use with caution. + public get ipAddressInput() { + return this._ipAddress; + } + + // region - computed: false, optional: false, required: true + private _region?: string; + public get region() { + return this.getStringAttribute('region'); + } + public set region(value: string) { + this._region = value; + } + // Temporarily expose input value. Use with caution. + public get regionInput() { + return this._region; + } + + // urn - computed: true, optional: false, required: false + public get urn() { + return this.getStringAttribute('urn'); + } + + // ========= + // SYNTHESIS + // ========= + + protected synthesizeAttributes(): { [name: string]: any } { + return { + droplet_id: cdktf.numberToTerraform(this._dropletId), + id: cdktf.stringToTerraform(this._id), + ip_address: cdktf.stringToTerraform(this._ipAddress), + region: cdktf.stringToTerraform(this._region), + }; + } +} diff --git a/src/spaces-bucket-object.ts b/src/spaces-bucket-object.ts index 7e86a12c4..8fcc5d657 100644 --- a/src/spaces-bucket-object.ts +++ b/src/spaces-bucket-object.ts @@ -106,7 +106,7 @@ export class SpacesBucketObject extends cdktf.TerraformResource { terraformResourceType: 'digitalocean_spaces_bucket_object', terraformGeneratorMetadata: { providerName: 'digitalocean', - providerVersion: '2.20.0', + providerVersion: '2.21.0', providerVersionConstraint: '~> 2.19' }, provider: config.provider, diff --git a/src/spaces-bucket-policy.ts b/src/spaces-bucket-policy.ts index 88f07508a..73a4f3fc2 100644 --- a/src/spaces-bucket-policy.ts +++ b/src/spaces-bucket-policy.ts @@ -54,7 +54,7 @@ export class SpacesBucketPolicy extends cdktf.TerraformResource { terraformResourceType: 'digitalocean_spaces_bucket_policy', terraformGeneratorMetadata: { providerName: 'digitalocean', - providerVersion: '2.20.0', + providerVersion: '2.21.0', providerVersionConstraint: '~> 2.19' }, provider: config.provider, diff --git a/src/spaces-bucket.ts b/src/spaces-bucket.ts index 6ac011f3c..ea8c6bdf4 100644 --- a/src/spaces-bucket.ts +++ b/src/spaces-bucket.ts @@ -747,7 +747,7 @@ export class SpacesBucket extends cdktf.TerraformResource { terraformResourceType: 'digitalocean_spaces_bucket', terraformGeneratorMetadata: { providerName: 'digitalocean', - providerVersion: '2.20.0', + providerVersion: '2.21.0', providerVersionConstraint: '~> 2.19' }, provider: config.provider, diff --git a/src/ssh-key.ts b/src/ssh-key.ts index c5d368fa9..f1c7f1710 100644 --- a/src/ssh-key.ts +++ b/src/ssh-key.ts @@ -50,7 +50,7 @@ export class SshKey extends cdktf.TerraformResource { terraformResourceType: 'digitalocean_ssh_key', terraformGeneratorMetadata: { providerName: 'digitalocean', - providerVersion: '2.20.0', + providerVersion: '2.21.0', providerVersionConstraint: '~> 2.19' }, provider: config.provider, diff --git a/src/tag.ts b/src/tag.ts index 773ff8e82..bec75ca49 100644 --- a/src/tag.ts +++ b/src/tag.ts @@ -46,7 +46,7 @@ export class Tag extends cdktf.TerraformResource { terraformResourceType: 'digitalocean_tag', terraformGeneratorMetadata: { providerName: 'digitalocean', - providerVersion: '2.20.0', + providerVersion: '2.21.0', providerVersionConstraint: '~> 2.19' }, provider: config.provider, diff --git a/src/version.json b/src/version.json index e5aae8c4f..8fd626d96 100644 --- a/src/version.json +++ b/src/version.json @@ -1,3 +1,3 @@ { - "registry.terraform.io/digitalocean/digitalocean": "2.20.0" + "registry.terraform.io/digitalocean/digitalocean": "2.21.0" } diff --git a/src/volume-attachment.ts b/src/volume-attachment.ts index b06b82339..3e84064f0 100644 --- a/src/volume-attachment.ts +++ b/src/volume-attachment.ts @@ -50,7 +50,7 @@ export class VolumeAttachment extends cdktf.TerraformResource { terraformResourceType: 'digitalocean_volume_attachment', terraformGeneratorMetadata: { providerName: 'digitalocean', - providerVersion: '2.20.0', + providerVersion: '2.21.0', providerVersionConstraint: '~> 2.19' }, provider: config.provider, diff --git a/src/volume-snapshot.ts b/src/volume-snapshot.ts index c09c77d08..e327ae11e 100644 --- a/src/volume-snapshot.ts +++ b/src/volume-snapshot.ts @@ -54,7 +54,7 @@ export class VolumeSnapshot extends cdktf.TerraformResource { terraformResourceType: 'digitalocean_volume_snapshot', terraformGeneratorMetadata: { providerName: 'digitalocean', - providerVersion: '2.20.0', + providerVersion: '2.21.0', providerVersionConstraint: '~> 2.19' }, provider: config.provider, diff --git a/src/volume.ts b/src/volume.ts index a4a813592..b4fd98548 100644 --- a/src/volume.ts +++ b/src/volume.ts @@ -78,7 +78,7 @@ export class Volume extends cdktf.TerraformResource { terraformResourceType: 'digitalocean_volume', terraformGeneratorMetadata: { providerName: 'digitalocean', - providerVersion: '2.20.0', + providerVersion: '2.21.0', providerVersionConstraint: '~> 2.19' }, provider: config.provider, diff --git a/src/vpc.ts b/src/vpc.ts index 096002a9c..2ae9f3408 100644 --- a/src/vpc.ts +++ b/src/vpc.ts @@ -147,7 +147,7 @@ export class Vpc extends cdktf.TerraformResource { terraformResourceType: 'digitalocean_vpc', terraformGeneratorMetadata: { providerName: 'digitalocean', - providerVersion: '2.20.0', + providerVersion: '2.21.0', providerVersionConstraint: '~> 2.19' }, provider: config.provider, diff --git a/yarn.lock b/yarn.lock index 2ec55d47f..0a8aea607 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3468,10 +3468,10 @@ progress@^2.0.3: resolved "https://registry.yarnpkg.com/progress/-/progress-2.0.3.tgz#7e8cf8d8f5b8f239c1bc68beb4eb78567d572ef8" integrity sha512-7PiHtLll5LdnKIMw100I+8xJXR5gW2QwWYkT6iJva0bXitZKa/XMrSbdmg3r2Xnaidz9Qumd0VPaMrZlF9V9sA== -projen@^0.58.14: - version "0.58.14" - resolved "https://registry.yarnpkg.com/projen/-/projen-0.58.14.tgz#ad5fe50df10f6f708163104f952f3eeac3f89698" - integrity sha512-xN7frkzQ1AV+UeNldiYW7sv+eW6g2CDG+YcOUmrFUvU4VEMzYBqyIu2NM2Vm4v+PMXI2vI06nu0GIm7kBwta5g== +projen@^0.58.15: + version "0.58.15" + resolved "https://registry.yarnpkg.com/projen/-/projen-0.58.15.tgz#37640b839c2af5d03dcfe276f25b9988d84308ab" + integrity sha512-js9tdlmyUqPdz46BDYcdCrN936Gcr8ndnjX0J5aYVgOxucS1EHWXdLHqAOyhZiuYevpQ2dXg2AYurEdgjRXPtA== dependencies: "@iarna/toml" "^2.2.5" case "^1.6.3"