@huaweicloudos/pulumi
Version:
A Pulumi package for creating and managing Huaweicloud cloud resources.
100 lines (99 loc) • 3.1 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
import { output as outputs } from "../types";
/**
* Use this data source to get a list of VPC IP address groups.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as huaweicloud from "@pulumi/huaweicloud";
*
* const demo1 = pulumi.output(huaweicloud.Vpc.getAddressGroups());
* ```
*/
export declare function getAddressGroups(args?: GetAddressGroupsArgs, opts?: pulumi.InvokeOptions): Promise<GetAddressGroupsResult>;
/**
* A collection of arguments for invoking getAddressGroups.
*/
export interface GetAddressGroupsArgs {
/**
* Provides supplementary information about an IP address group,
* which can be used to filter the IP address group.
*/
description?: string;
/**
* Unique ID of an IP address group, which can be used to filter the IP address group.
*/
groupId?: string;
/**
* Version of IP addresses in an IP address group,
* which can be used to filter the IP address group.
*/
ipVersion?: number;
/**
* Name of an IP address group, which can be used to filter the IP address group.
*/
name?: string;
/**
* Specifies the region in which to query the resource.
* If omitted, the provider-level region will be used.
*/
region?: string;
}
/**
* A collection of values returned by getAddressGroups.
*/
export interface GetAddressGroupsResult {
/**
* The IP address groups.
*/
readonly addressGroups: outputs.Vpc.GetAddressGroupsAddressGroup[];
/**
* The supplementary information about the IP address group.
*/
readonly description?: string;
readonly groupId?: string;
/**
* The provider-assigned unique ID for this managed resource.
*/
readonly id: string;
/**
* Whether it is an IPv4 or IPv6 address group.
*/
readonly ipVersion?: number;
/**
* IP address group name.
*/
readonly name?: string;
readonly region: string;
}
export declare function getAddressGroupsOutput(args?: GetAddressGroupsOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetAddressGroupsResult>;
/**
* A collection of arguments for invoking getAddressGroups.
*/
export interface GetAddressGroupsOutputArgs {
/**
* Provides supplementary information about an IP address group,
* which can be used to filter the IP address group.
*/
description?: pulumi.Input<string>;
/**
* Unique ID of an IP address group, which can be used to filter the IP address group.
*/
groupId?: pulumi.Input<string>;
/**
* Version of IP addresses in an IP address group,
* which can be used to filter the IP address group.
*/
ipVersion?: pulumi.Input<number>;
/**
* Name of an IP address group, which can be used to filter the IP address group.
*/
name?: pulumi.Input<string>;
/**
* Specifies the region in which to query the resource.
* If omitted, the provider-level region will be used.
*/
region?: pulumi.Input<string>;
}