import * as pulumi from "@pulumi/pulumi"; import * as inputs from "./types/input"; import * as outputs from "./types/output"; /** * Creates a security group in a public cloud project. * * ## Import * * A cloud security group can be imported using the `service_name` and `security_group_id`, separated by `/`: * * terraform * * import { * * to = ovh_cloud_security_group.sg * * id = "/" * * } * * bash * * ```sh * $ pulumi import ovh:index/cloudSecurityGroup:CloudSecurityGroup sg service_name/security_group_id * ``` */ export declare class CloudSecurityGroup extends pulumi.CustomResource { /** * Get an existing CloudSecurityGroup 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, state?: CloudSecurityGroupState, opts?: pulumi.CustomResourceOptions): CloudSecurityGroup; /** * Returns true if the given object is an instance of CloudSecurityGroup. 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 CloudSecurityGroup; /** * Computed hash representing the current target specification value. */ readonly checksum: pulumi.Output; /** * Creation date of the security group. */ readonly createdAt: pulumi.Output; /** * Current state of the security group: */ readonly currentState: pulumi.Output; /** * Description of the security group. */ readonly description: pulumi.Output; /** * Name of the security group. */ readonly name: pulumi.Output; /** * Region where the security group will be created. **Changing this value recreates the resource.** */ readonly region: pulumi.Output; /** * Security group readiness in the system (`CREATING`, `DELETING`, `ERROR`, `OUT_OF_SYNC`, `READY`, `UPDATING`). */ readonly resourceStatus: pulumi.Output; /** * List of security group rules. Each rule supports: */ readonly rules: pulumi.Output; /** * Service name of the resource representing the id of the cloud project. **Changing this value recreates the resource.** */ readonly serviceName: pulumi.Output; /** * Last update date of the security group. */ readonly updatedAt: pulumi.Output; /** * Create a CloudSecurityGroup 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: CloudSecurityGroupArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering CloudSecurityGroup resources. */ export interface CloudSecurityGroupState { /** * Computed hash representing the current target specification value. */ checksum?: pulumi.Input; /** * Creation date of the security group. */ createdAt?: pulumi.Input; /** * Current state of the security group: */ currentState?: pulumi.Input; /** * Description of the security group. */ description?: pulumi.Input; /** * Name of the security group. */ name?: pulumi.Input; /** * Region where the security group will be created. **Changing this value recreates the resource.** */ region?: pulumi.Input; /** * Security group readiness in the system (`CREATING`, `DELETING`, `ERROR`, `OUT_OF_SYNC`, `READY`, `UPDATING`). */ resourceStatus?: pulumi.Input; /** * List of security group rules. Each rule supports: */ rules?: pulumi.Input[]>; /** * Service name of the resource representing the id of the cloud project. **Changing this value recreates the resource.** */ serviceName?: pulumi.Input; /** * Last update date of the security group. */ updatedAt?: pulumi.Input; } /** * The set of arguments for constructing a CloudSecurityGroup resource. */ export interface CloudSecurityGroupArgs { /** * Description of the security group. */ description?: pulumi.Input; /** * Name of the security group. */ name?: pulumi.Input; /** * Region where the security group will be created. **Changing this value recreates the resource.** */ region: pulumi.Input; /** * List of security group rules. Each rule supports: */ rules?: pulumi.Input[]>; /** * Service name of the resource representing the id of the cloud project. **Changing this value recreates the resource.** */ serviceName: pulumi.Input; }