@pulumi/openstack
Version:
A Pulumi package for creating and managing OpenStack cloud resources.
170 lines (169 loc) • 6.31 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
/**
* ## Import
*
* Security Groups can be imported using the `id`, e.g.
*
* ```sh
* $ pulumi import openstack:networking/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 collection of tags assigned on the security group, which have
* been explicitly and implicitly added.
*/
readonly allTags: pulumi.Output<string[]>;
/**
* Whether or not to delete the default
* egress security rules. This is `false` by default. See the below note
* for more information.
*/
readonly deleteDefaultRules: pulumi.Output<boolean | undefined>;
/**
* A unique name for the security group.
*/
readonly description: pulumi.Output<string>;
/**
* A unique name for the security group.
*/
readonly name: pulumi.Output<string>;
/**
* The region in which to obtain the V2 networking client.
* A networking client is needed to create a port. If omitted, the
* `region` argument of the provider is used. Changing this creates a new
* security group.
*/
readonly region: pulumi.Output<string>;
/**
* Indicates if the security group is stateful or
* stateless. Update of the stateful argument is allowed when there is no port
* associated with the security group. Available only in OpenStack environments
* with the `stateful-security-group` extension. Defaults to true.
*/
readonly stateful: pulumi.Output<boolean>;
/**
* A set of string tags for the security group.
*/
readonly tags: pulumi.Output<string[] | undefined>;
/**
* The owner of the security group. Required if admin
* wants to create a port for another tenant. Changing this creates a new
* security group.
*/
readonly tenantId: 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 collection of tags assigned on the security group, which have
* been explicitly and implicitly added.
*/
allTags?: pulumi.Input<pulumi.Input<string>[]>;
/**
* Whether or not to delete the default
* egress security rules. This is `false` by default. See the below note
* for more information.
*/
deleteDefaultRules?: pulumi.Input<boolean>;
/**
* A unique name for the security group.
*/
description?: pulumi.Input<string>;
/**
* A unique name for the security group.
*/
name?: pulumi.Input<string>;
/**
* The region in which to obtain the V2 networking client.
* A networking client is needed to create a port. If omitted, the
* `region` argument of the provider is used. Changing this creates a new
* security group.
*/
region?: pulumi.Input<string>;
/**
* Indicates if the security group is stateful or
* stateless. Update of the stateful argument is allowed when there is no port
* associated with the security group. Available only in OpenStack environments
* with the `stateful-security-group` extension. Defaults to true.
*/
stateful?: pulumi.Input<boolean>;
/**
* A set of string tags for the security group.
*/
tags?: pulumi.Input<pulumi.Input<string>[]>;
/**
* The owner of the security group. Required if admin
* wants to create a port for another tenant. Changing this creates a new
* security group.
*/
tenantId?: pulumi.Input<string>;
}
/**
* The set of arguments for constructing a SecGroup resource.
*/
export interface SecGroupArgs {
/**
* Whether or not to delete the default
* egress security rules. This is `false` by default. See the below note
* for more information.
*/
deleteDefaultRules?: pulumi.Input<boolean>;
/**
* A unique name for the security group.
*/
description?: pulumi.Input<string>;
/**
* A unique name for the security group.
*/
name?: pulumi.Input<string>;
/**
* The region in which to obtain the V2 networking client.
* A networking client is needed to create a port. If omitted, the
* `region` argument of the provider is used. Changing this creates a new
* security group.
*/
region?: pulumi.Input<string>;
/**
* Indicates if the security group is stateful or
* stateless. Update of the stateful argument is allowed when there is no port
* associated with the security group. Available only in OpenStack environments
* with the `stateful-security-group` extension. Defaults to true.
*/
stateful?: pulumi.Input<boolean>;
/**
* A set of string tags for the security group.
*/
tags?: pulumi.Input<pulumi.Input<string>[]>;
/**
* The owner of the security group. Required if admin
* wants to create a port for another tenant. Changing this creates a new
* security group.
*/
tenantId?: pulumi.Input<string>;
}