UNPKG

@volcengine/pulumi

Version:

A Pulumi package for creating and managing volcengine cloud resources.

133 lines (132 loc) 3.66 kB
import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * Use this data source to query detailed information of security groups * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as volcengine from "@pulumi/volcengine"; * * const default = volcengine.vpc.getSecurityGroups({ * ids: ["sg-273ycgql3ig3k7fap8t3dyvqx"], * }); * ``` */ /** @deprecated volcengine.vpc.SecurityGroups has been deprecated in favor of volcengine.vpc.getSecurityGroups */ export declare function securityGroups(args?: SecurityGroupsArgs, opts?: pulumi.InvokeOptions): Promise<SecurityGroupsResult>; /** * A collection of arguments for invoking SecurityGroups. */ export interface SecurityGroupsArgs { /** * A list of SecurityGroup IDs. */ ids?: string[]; /** * A Name Regex of SecurityGroup. */ nameRegex?: string; /** * File name where to save data source results. */ outputFile?: string; /** * The ProjectName of SecurityGroup. */ projectName?: string; /** * The list of security group name to query. */ securityGroupNames?: string[]; /** * Tags. */ tags?: inputs.vpc.SecurityGroupsTag[]; /** * The ID of vpc where security group is located. */ vpcId?: string; } /** * A collection of values returned by SecurityGroups. */ export interface SecurityGroupsResult { /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; readonly ids?: string[]; readonly nameRegex?: string; readonly outputFile?: string; /** * The ProjectName of SecurityGroup. */ readonly projectName?: string; readonly securityGroupNames?: string[]; /** * The collection of SecurityGroup query. */ readonly securityGroups: outputs.vpc.SecurityGroupsSecurityGroup[]; /** * Tags. */ readonly tags?: outputs.vpc.SecurityGroupsTag[]; /** * The total count of SecurityGroup query. */ readonly totalCount: number; /** * The ID of Vpc. */ readonly vpcId?: string; } /** * Use this data source to query detailed information of security groups * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as volcengine from "@pulumi/volcengine"; * * const default = volcengine.vpc.getSecurityGroups({ * ids: ["sg-273ycgql3ig3k7fap8t3dyvqx"], * }); * ``` */ /** @deprecated volcengine.vpc.SecurityGroups has been deprecated in favor of volcengine.vpc.getSecurityGroups */ export declare function securityGroupsOutput(args?: SecurityGroupsOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<SecurityGroupsResult>; /** * A collection of arguments for invoking SecurityGroups. */ export interface SecurityGroupsOutputArgs { /** * A list of SecurityGroup IDs. */ ids?: pulumi.Input<pulumi.Input<string>[]>; /** * A Name Regex of SecurityGroup. */ nameRegex?: pulumi.Input<string>; /** * File name where to save data source results. */ outputFile?: pulumi.Input<string>; /** * The ProjectName of SecurityGroup. */ projectName?: pulumi.Input<string>; /** * The list of security group name to query. */ securityGroupNames?: pulumi.Input<pulumi.Input<string>[]>; /** * Tags. */ tags?: pulumi.Input<pulumi.Input<inputs.vpc.SecurityGroupsTagArgs>[]>; /** * The ID of vpc where security group is located. */ vpcId?: pulumi.Input<string>; }