UNPKG

@cdktf/provider-upcloud

Version:

Prebuilt upcloud Provider for Terraform CDK (cdktf)

83 lines (82 loc) 3.91 kB
/** * Copyright (c) HashiCorp, Inc. * SPDX-License-Identifier: MPL-2.0 */ import { Construct } from 'constructs'; import * as cdktf from 'cdktf'; export interface FloatingIpAddressConfig extends cdktf.TerraformMetaArguments { /** * Network access for the floating IP address. Supported value: `public`. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.23.3/docs/resources/floating_ip_address#access FloatingIpAddress#access} */ readonly access?: string; /** * The address family of the floating IP address. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.23.3/docs/resources/floating_ip_address#family FloatingIpAddress#family} */ readonly family?: string; /** * MAC address of a server interface to assign address to. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.23.3/docs/resources/floating_ip_address#mac_address FloatingIpAddress#mac_address} */ readonly macAddress?: string; /** * Zone of the address, e.g. `de-fra1`. Required when assigning a detached floating IP address. You can list available zones with `upctl zone list`. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.23.3/docs/resources/floating_ip_address#zone FloatingIpAddress#zone} */ readonly zone?: string; } /** * Represents a {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.23.3/docs/resources/floating_ip_address upcloud_floating_ip_address} */ export declare class FloatingIpAddress extends cdktf.TerraformResource { static readonly tfResourceType = "upcloud_floating_ip_address"; /** * Generates CDKTF code for importing a FloatingIpAddress resource upon running "cdktf plan <stack-name>" * @param scope The scope in which to define this construct * @param importToId The construct id used in the generated config for the FloatingIpAddress to import * @param importFromId The id of the existing FloatingIpAddress that should be imported. Refer to the {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.23.3/docs/resources/floating_ip_address#import import section} in the documentation of this resource for the id to use * @param provider? Optional instance of the provider where the FloatingIpAddress to import is found */ static generateConfigForImport(scope: Construct, importToId: string, importFromId: string, provider?: cdktf.TerraformProvider): cdktf.ImportableResource; /** * Create a new {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.23.3/docs/resources/floating_ip_address upcloud_floating_ip_address} 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 FloatingIpAddressConfig = {} */ constructor(scope: Construct, id: string, config?: FloatingIpAddressConfig); private _access?; get access(): string; set access(value: string); resetAccess(): void; get accessInput(): string | undefined; private _family?; get family(): string; set family(value: string); resetFamily(): void; get familyInput(): string | undefined; get id(): string; get ipAddress(): string; private _macAddress?; get macAddress(): string; set macAddress(value: string); resetMacAddress(): void; get macAddressInput(): string | undefined; private _zone?; get zone(): string; set zone(value: string); resetZone(): void; get zoneInput(): string | undefined; protected synthesizeAttributes(): { [name: string]: any; }; protected synthesizeHclAttributes(): { [name: string]: any; }; }