@volcengine/pulumi
Version:
A Pulumi package for creating and managing volcengine cloud resources.
131 lines (130 loc) • 3.48 kB
TypeScript
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"],
* });
* ```
*/
export declare function getSecurityGroups(args?: GetSecurityGroupsArgs, opts?: pulumi.InvokeOptions): Promise<GetSecurityGroupsResult>;
/**
* A collection of arguments for invoking getSecurityGroups.
*/
export interface GetSecurityGroupsArgs {
/**
* 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.GetSecurityGroupsTag[];
/**
* The ID of vpc where security group is located.
*/
vpcId?: string;
}
/**
* A collection of values returned by getSecurityGroups.
*/
export interface GetSecurityGroupsResult {
/**
* 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.GetSecurityGroupsSecurityGroup[];
/**
* Tags.
*/
readonly tags?: outputs.vpc.GetSecurityGroupsTag[];
/**
* 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"],
* });
* ```
*/
export declare function getSecurityGroupsOutput(args?: GetSecurityGroupsOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetSecurityGroupsResult>;
/**
* A collection of arguments for invoking getSecurityGroups.
*/
export interface GetSecurityGroupsOutputArgs {
/**
* 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.GetSecurityGroupsTagArgs>[]>;
/**
* The ID of vpc where security group is located.
*/
vpcId?: pulumi.Input<string>;
}