@huaweicloudos/pulumi
Version:
A Pulumi package for creating and managing Huaweicloud cloud resources.
160 lines (159 loc) • 5.61 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
import { input as inputs, output as outputs } from "../types";
/**
* ## Import
*
* Security Groups can be imported using the `id`, e.g. bash
*
* ```sh
* $ pulumi import huaweicloud:Vpc/secgroup:Secgroup secgroup_1 38809219-5e8a-4852-9139-6f461c90e8bc
* ```
*/
export declare class Secgroup extends pulumi.CustomResource {
/**
* Get an existing Secgroup 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?: SecgroupState, opts?: pulumi.CustomResourceOptions): Secgroup;
/**
* Returns true if the given object is an instance of Secgroup. 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 Secgroup;
/**
* The creation time, in UTC format.
*/
readonly createdAt: pulumi.Output<string>;
/**
* Specifies whether or not to delete the default security rules.
* This is `false` by default.
*/
readonly deleteDefaultRules: pulumi.Output<boolean | undefined>;
/**
* Specifies the description for the security group.
*/
readonly description: pulumi.Output<string | undefined>;
/**
* Specifies the enterprise project id of the security group.
* Changing this creates a new security group.
*/
readonly enterpriseProjectId: pulumi.Output<string>;
/**
* Specifies a unique name for the security group.
*/
readonly name: pulumi.Output<string>;
/**
* The region in which to create the security group resource. If omitted, the
* provider-level region will be used. Changing this creates a new security group resource.
*/
readonly region: pulumi.Output<string>;
/**
* The array of security group rules associating with the security group.
* The rule object is documented below.
*/
readonly rules: pulumi.Output<outputs.Vpc.SecgroupRule[]>;
/**
* Specifies the key/value pairs to associate with the security group.
*/
readonly tags: pulumi.Output<{
[key: string]: string;
} | undefined>;
/**
* The last update time, in UTC format.
*/
readonly updatedAt: pulumi.Output<string>;
/**
* Create a Secgroup 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?: SecgroupArgs, opts?: pulumi.CustomResourceOptions);
}
/**
* Input properties used for looking up and filtering Secgroup resources.
*/
export interface SecgroupState {
/**
* The creation time, in UTC format.
*/
createdAt?: pulumi.Input<string>;
/**
* Specifies whether or not to delete the default security rules.
* This is `false` by default.
*/
deleteDefaultRules?: pulumi.Input<boolean>;
/**
* Specifies the description for the security group.
*/
description?: pulumi.Input<string>;
/**
* Specifies the enterprise project id of the security group.
* Changing this creates a new security group.
*/
enterpriseProjectId?: pulumi.Input<string>;
/**
* Specifies a unique name for the security group.
*/
name?: pulumi.Input<string>;
/**
* The region in which to create the security group resource. If omitted, the
* provider-level region will be used. Changing this creates a new security group resource.
*/
region?: pulumi.Input<string>;
/**
* The array of security group rules associating with the security group.
* The rule object is documented below.
*/
rules?: pulumi.Input<pulumi.Input<inputs.Vpc.SecgroupRule>[]>;
/**
* Specifies the key/value pairs to associate with the security group.
*/
tags?: pulumi.Input<{
[key: string]: pulumi.Input<string>;
}>;
/**
* The last update time, in UTC format.
*/
updatedAt?: pulumi.Input<string>;
}
/**
* The set of arguments for constructing a Secgroup resource.
*/
export interface SecgroupArgs {
/**
* Specifies whether or not to delete the default security rules.
* This is `false` by default.
*/
deleteDefaultRules?: pulumi.Input<boolean>;
/**
* Specifies the description for the security group.
*/
description?: pulumi.Input<string>;
/**
* Specifies the enterprise project id of the security group.
* Changing this creates a new security group.
*/
enterpriseProjectId?: pulumi.Input<string>;
/**
* Specifies a unique name for the security group.
*/
name?: pulumi.Input<string>;
/**
* The region in which to create the security group resource. If omitted, the
* provider-level region will be used. Changing this creates a new security group resource.
*/
region?: pulumi.Input<string>;
/**
* Specifies the key/value pairs to associate with the security group.
*/
tags?: pulumi.Input<{
[key: string]: pulumi.Input<string>;
}>;
}