@pulumi/yandex
Version:
A Pulumi package for creating and managing yandex cloud resources.
92 lines (91 loc) • 2.45 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
import { output as outputs } from "./types";
/**
* Get information about a Yandex VPC address. For more information, see
* Yandex.Cloud VPC.
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as yandex from "@pulumi/yandex";
*
* const addr = pulumi.output(yandex.getVpcAddress({
* addressId: "my-address-id",
* }));
* ```
*
* This data source is used to define [VPC Address] that can be used by other resources.
*/
export declare function getVpcAddress(args?: GetVpcAddressArgs, opts?: pulumi.InvokeOptions): Promise<GetVpcAddressResult>;
/**
* A collection of arguments for invoking getVpcAddress.
*/
export interface GetVpcAddressArgs {
/**
* ID of the address.
*/
addressId?: string;
/**
* Folder that the resource belongs to. If value is omitted, the default provider folder is used.
*/
folderId?: string;
/**
* Name of the address.
*/
name?: string;
}
/**
* A collection of values returned by getVpcAddress.
*/
export interface GetVpcAddressResult {
readonly addressId: string;
/**
* Creation timestamp of this address.
*/
readonly createdAt: string;
/**
* Description of the address.
*/
readonly description: string;
/**
* spec of IP v4 address.
*/
readonly externalIpv4Addresses: outputs.GetVpcAddressExternalIpv4Address[];
readonly folderId: string;
/**
* The provider-assigned unique ID for this managed resource.
*/
readonly id: string;
/**
* Labels assigned to this address.
*/
readonly labels: {
[key: string]: string;
};
readonly name: string;
/**
* `false` means that address is ephemeral.
*/
readonly reserved: boolean;
/**
* `true` if address is used.
*/
readonly used: boolean;
}
export declare function getVpcAddressOutput(args?: GetVpcAddressOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetVpcAddressResult>;
/**
* A collection of arguments for invoking getVpcAddress.
*/
export interface GetVpcAddressOutputArgs {
/**
* ID of the address.
*/
addressId?: pulumi.Input<string>;
/**
* Folder that the resource belongs to. If value is omitted, the default provider folder is used.
*/
folderId?: pulumi.Input<string>;
/**
* Name of the address.
*/
name?: pulumi.Input<string>;
}