UNPKG

@huaweicloudos/pulumi

Version:

A Pulumi package for creating and managing Huaweicloud cloud resources.

149 lines (148 loc) 3.94 kB
import * as pulumi from "@pulumi/pulumi"; import { output as outputs } from "../types"; /** * Use this data source to get the list of CFW service group members. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as huaweicloud from "@pulumi/huaweicloud"; * * const config = new pulumi.Config(); * const groupId = config.requireObject("groupId"); * const test = huaweicloud.Cfw.getServiceGroupMembers({ * groupId: groupId, * }); * ``` */ export declare function getServiceGroupMembers(args: GetServiceGroupMembersArgs, opts?: pulumi.InvokeOptions): Promise<GetServiceGroupMembersResult>; /** * A collection of arguments for invoking getServiceGroupMembers. */ export interface GetServiceGroupMembersArgs { /** * Specifies the destination port. */ destPort?: string; /** * Specifies the firewall instance ID. */ fwInstanceId?: string; /** * Specifies the service group ID. */ groupId: string; /** * Specifies the service group type. * The value can be **0** (custom service group), **1** (predefined service group). */ groupType?: string; /** * Specifies the service group member ID. */ itemId?: string; /** * Specifies the key word. */ keyWord?: string; /** * Specifies the protocol type. * The options are as follows: * + **6**: TCP; * + **17**: UDP; * + **1**: ICMP. */ protocol?: number; /** * Specifies the region in which to query the resource. * If omitted, the provider-level region will be used. */ region?: string; /** * Specifies the source port. */ sourcePort?: string; } /** * A collection of values returned by getServiceGroupMembers. */ export interface GetServiceGroupMembersResult { /** * The destination port. */ readonly destPort?: string; readonly fwInstanceId?: string; readonly groupId: string; readonly groupType?: string; /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; /** * The service group member ID. */ readonly itemId?: string; readonly keyWord?: string; /** * The protocol type. */ readonly protocol?: number; /** * The service group member list. */ readonly records: outputs.Cfw.GetServiceGroupMembersRecord[]; readonly region: string; /** * The source port. */ readonly sourcePort?: string; } export declare function getServiceGroupMembersOutput(args: GetServiceGroupMembersOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetServiceGroupMembersResult>; /** * A collection of arguments for invoking getServiceGroupMembers. */ export interface GetServiceGroupMembersOutputArgs { /** * Specifies the destination port. */ destPort?: pulumi.Input<string>; /** * Specifies the firewall instance ID. */ fwInstanceId?: pulumi.Input<string>; /** * Specifies the service group ID. */ groupId: pulumi.Input<string>; /** * Specifies the service group type. * The value can be **0** (custom service group), **1** (predefined service group). */ groupType?: pulumi.Input<string>; /** * Specifies the service group member ID. */ itemId?: pulumi.Input<string>; /** * Specifies the key word. */ keyWord?: pulumi.Input<string>; /** * Specifies the protocol type. * The options are as follows: * + **6**: TCP; * + **17**: UDP; * + **1**: ICMP. */ protocol?: pulumi.Input<number>; /** * Specifies the region in which to query the resource. * If omitted, the provider-level region will be used. */ region?: pulumi.Input<string>; /** * Specifies the source port. */ sourcePort?: pulumi.Input<string>; }