@huaweicloudos/pulumi
Version:
A Pulumi package for creating and managing Huaweicloud cloud resources.
172 lines (171 loc) • 5.65 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
/**
* Manages a CFW service group member resource within HuaweiCloud.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as pulumi from "@huaweicloudos/pulumi";
*
* const config = new pulumi.Config();
* const groupId = config.requireObject("groupId");
* const protocol = config.requireObject("protocol");
* const sourcePort = config.requireObject("sourcePort");
* const destPort = config.requireObject("destPort");
* const test = new huaweicloud.cfw.ServiceGroupMember("test", {
* groupId: groupId,
* protocol: protocol,
* sourcePort: sourcePort,
* destPort: destPort,
* });
* ```
*
* ## Import
*
* The service group member can be imported using service group ID and member ID, separated by a slash, e.g. bash
*
* ```sh
* $ pulumi import huaweicloud:Cfw/serviceGroupMember:ServiceGroupMember test <group_id>/<member_id>
* ```
*/
export declare class ServiceGroupMember extends pulumi.CustomResource {
/**
* Get an existing ServiceGroupMember resource's state with the given name, ID, and optional extra
* properties used to qualify the lookup.
*
* @param name The _unique_ name of the resulting resource.
* @param id The _unique_ provider ID of the resource to lookup.
* @param state Any extra arguments used during the lookup.
* @param opts Optional settings to control the behavior of the CustomResource.
*/
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: ServiceGroupMemberState, opts?: pulumi.CustomResourceOptions): ServiceGroupMember;
/**
* Returns true if the given object is an instance of ServiceGroupMember. This is designed to work even
* when multiple copies of the Pulumi SDK have been loaded into the same process.
*/
static isInstance(obj: any): obj is ServiceGroupMember;
/**
* Specifies the service group member description.
*/
readonly description: pulumi.Output<string>;
/**
* Specifies the destination port.
*/
readonly destPort: pulumi.Output<string>;
/**
* Specifies the ID of the service group.
*/
readonly groupId: pulumi.Output<string>;
/**
* Specifies the service group member name.
*/
readonly name: pulumi.Output<string>;
/**
* Specifies the protocol type.
* The valid values are:
* + **6**: indicates TCP;
* + **17**: indicates UDP;
* + **1**: indicates ICMP;
* + **58**: indicates ICMPv6;
* + **-1**: indicates any protocol.
*/
readonly protocol: pulumi.Output<number>;
/**
* Specifies the region in which to create the resource.
* If omitted, the provider-level region will be used. Changing this parameter will create a new resource.
*/
readonly region: pulumi.Output<string>;
/**
* Specifies the source port.
*/
readonly sourcePort: pulumi.Output<string>;
/**
* Create a ServiceGroupMember resource with the given unique name, arguments, and options.
*
* @param name The _unique_ name of the resource.
* @param args The arguments to use to populate this resource's properties.
* @param opts A bag of options that control this resource's behavior.
*/
constructor(name: string, args: ServiceGroupMemberArgs, opts?: pulumi.CustomResourceOptions);
}
/**
* Input properties used for looking up and filtering ServiceGroupMember resources.
*/
export interface ServiceGroupMemberState {
/**
* Specifies the service group member description.
*/
description?: pulumi.Input<string>;
/**
* Specifies the destination port.
*/
destPort?: pulumi.Input<string>;
/**
* Specifies the ID of the service group.
*/
groupId?: pulumi.Input<string>;
/**
* Specifies the service group member name.
*/
name?: pulumi.Input<string>;
/**
* Specifies the protocol type.
* The valid values are:
* + **6**: indicates TCP;
* + **17**: indicates UDP;
* + **1**: indicates ICMP;
* + **58**: indicates ICMPv6;
* + **-1**: indicates any protocol.
*/
protocol?: pulumi.Input<number>;
/**
* Specifies the region in which to create the resource.
* If omitted, the provider-level region will be used. Changing this parameter will create a new resource.
*/
region?: pulumi.Input<string>;
/**
* Specifies the source port.
*/
sourcePort?: pulumi.Input<string>;
}
/**
* The set of arguments for constructing a ServiceGroupMember resource.
*/
export interface ServiceGroupMemberArgs {
/**
* Specifies the service group member description.
*/
description?: pulumi.Input<string>;
/**
* Specifies the destination port.
*/
destPort: pulumi.Input<string>;
/**
* Specifies the ID of the service group.
*/
groupId: pulumi.Input<string>;
/**
* Specifies the service group member name.
*/
name?: pulumi.Input<string>;
/**
* Specifies the protocol type.
* The valid values are:
* + **6**: indicates TCP;
* + **17**: indicates UDP;
* + **1**: indicates ICMP;
* + **58**: indicates ICMPv6;
* + **-1**: indicates any protocol.
*/
protocol: pulumi.Input<number>;
/**
* Specifies the region in which to create the resource.
* If omitted, the provider-level region will be used. Changing this parameter will create a new resource.
*/
region?: pulumi.Input<string>;
/**
* Specifies the source port.
*/
sourcePort: pulumi.Input<string>;
}