UNPKG

@volcengine/pulumi

Version:

A Pulumi package for creating and managing volcengine cloud resources.

149 lines (148 loc) 4.56 kB
import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * Provides a resource to manage security group * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as volcengine from "@volcengine/pulumi"; * * const g1test1 = new volcengine.vpc.SecurityGroup("g1test1", { * projectName: "default", * vpcId: "vpc-2feppmy1ugt1c59gp688n1fld", * }); * ``` * * ## Import * * SecurityGroup can be imported using the id, e.g. * * ```sh * $ pulumi import volcengine:vpc/securityGroup:SecurityGroup default sg-273ycgql3ig3k7fap8t3dyvqx * ``` */ export declare class SecurityGroup extends pulumi.CustomResource { /** * Get an existing SecurityGroup 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?: SecurityGroupState, opts?: pulumi.CustomResourceOptions): SecurityGroup; /** * Returns true if the given object is an instance of SecurityGroup. 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 SecurityGroup; /** * Creation time of SecurityGroup. */ readonly creationTime: pulumi.Output<string>; /** * Description of SecurityGroup. */ readonly description: pulumi.Output<string | undefined>; /** * The ProjectName of SecurityGroup. */ readonly projectName: pulumi.Output<string>; /** * Name of SecurityGroup. */ readonly securityGroupName: pulumi.Output<string>; /** * Status of SecurityGroup. */ readonly status: pulumi.Output<string>; /** * Tags. */ readonly tags: pulumi.Output<outputs.vpc.SecurityGroupTag[] | undefined>; /** * Type of SecurityGroup. Valid values: `cidrOnly`. If this parameter is not specified, it is a normal security group. */ readonly type: pulumi.Output<string>; /** * Id of the VPC. */ readonly vpcId: pulumi.Output<string>; /** * Create a SecurityGroup 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: SecurityGroupArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering SecurityGroup resources. */ export interface SecurityGroupState { /** * Creation time of SecurityGroup. */ creationTime?: pulumi.Input<string>; /** * Description of SecurityGroup. */ description?: pulumi.Input<string>; /** * The ProjectName of SecurityGroup. */ projectName?: pulumi.Input<string>; /** * Name of SecurityGroup. */ securityGroupName?: pulumi.Input<string>; /** * Status of SecurityGroup. */ status?: pulumi.Input<string>; /** * Tags. */ tags?: pulumi.Input<pulumi.Input<inputs.vpc.SecurityGroupTag>[]>; /** * Type of SecurityGroup. Valid values: `cidrOnly`. If this parameter is not specified, it is a normal security group. */ type?: pulumi.Input<string>; /** * Id of the VPC. */ vpcId?: pulumi.Input<string>; } /** * The set of arguments for constructing a SecurityGroup resource. */ export interface SecurityGroupArgs { /** * Description of SecurityGroup. */ description?: pulumi.Input<string>; /** * The ProjectName of SecurityGroup. */ projectName?: pulumi.Input<string>; /** * Name of SecurityGroup. */ securityGroupName?: pulumi.Input<string>; /** * Tags. */ tags?: pulumi.Input<pulumi.Input<inputs.vpc.SecurityGroupTag>[]>; /** * Type of SecurityGroup. Valid values: `cidrOnly`. If this parameter is not specified, it is a normal security group. */ type?: pulumi.Input<string>; /** * Id of the VPC. */ vpcId: pulumi.Input<string>; }