UNPKG

@huaweicloudos/pulumi

Version:

A Pulumi package for creating and managing Huaweicloud cloud resources.

103 lines (102 loc) 2.86 kB
import * as pulumi from "@pulumi/pulumi"; import { output as outputs } from "../types"; /** * Use this data source to get the list of CFW service groups. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as huaweicloud from "@pulumi/huaweicloud"; * * const config = new pulumi.Config(); * const objectId = config.requireObject("objectId"); * const test = huaweicloud.Cfw.getServiceGroups({ * objectId: objectId, * }); * ``` */ export declare function getServiceGroups(args: GetServiceGroupsArgs, opts?: pulumi.InvokeOptions): Promise<GetServiceGroupsResult>; /** * A collection of arguments for invoking getServiceGroups. */ export interface GetServiceGroupsArgs { /** * Specifies the enterprise project ID. */ enterpriseProjectId?: string; /** * Specifies the firewall instance ID. */ fwInstanceId?: string; /** * Specifies the keyword of the service group description. */ keyWord?: string; /** * Specifies the name of the service group. */ name?: string; /** * Specifies the protected object ID. */ objectId: 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 getServiceGroups. */ export interface GetServiceGroupsResult { readonly enterpriseProjectId?: string; readonly fwInstanceId?: string; /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; readonly keyWord?: string; /** * The name of the service group. */ readonly name?: string; readonly objectId: string; readonly region: string; /** * Service group list */ readonly serviceGroups: outputs.Cfw.GetServiceGroupsServiceGroup[]; } export declare function getServiceGroupsOutput(args: GetServiceGroupsOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetServiceGroupsResult>; /** * A collection of arguments for invoking getServiceGroups. */ export interface GetServiceGroupsOutputArgs { /** * Specifies the enterprise project ID. */ enterpriseProjectId?: pulumi.Input<string>; /** * Specifies the firewall instance ID. */ fwInstanceId?: pulumi.Input<string>; /** * Specifies the keyword of the service group description. */ keyWord?: pulumi.Input<string>; /** * Specifies the name of the service group. */ name?: pulumi.Input<string>; /** * Specifies the protected object ID. */ objectId: 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>; }