@lbrlabs/pulumi-scaleway
Version:
A Pulumi package for creating and managing scaleway cloud resources.
203 lines (202 loc) • 8.43 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
import * as inputs from "./types/input";
import * as outputs from "./types/output";
/**
* ## Import
*
* Instance security group can be imported using the `{zone}/{id}`, e.g. bash
*
* ```sh
* $ pulumi import scaleway:index/instanceSecurityGroup:InstanceSecurityGroup web fr-par-1/11111111-1111-1111-1111-111111111111
* ```
*/
export declare class InstanceSecurityGroup extends pulumi.CustomResource {
/**
* Get an existing InstanceSecurityGroup 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?: InstanceSecurityGroupState, opts?: pulumi.CustomResourceOptions): InstanceSecurityGroup;
/**
* Returns true if the given object is an instance of InstanceSecurityGroup. 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 InstanceSecurityGroup;
/**
* The description of the security group.
*/
readonly description: pulumi.Output<string | undefined>;
/**
* Whether to block SMTP on IPv4/IPv6 (Port 25, 465, 587). Set to false will unblock SMTP if your account is authorized to. If your organization is not yet authorized to send SMTP traffic, [open a support ticket](https://console.scaleway.com/support/tickets).
*/
readonly enableDefaultSecurity: pulumi.Output<boolean | undefined>;
/**
* A boolean to specify whether to use instance_security_group_rules.
* If `externalRules` is set to `true`, `inboundRule` and `outboundRule` can not be set directly in the security group.
*/
readonly externalRules: pulumi.Output<boolean | undefined>;
/**
* The default policy on incoming traffic. Possible values are: `accept` or `drop`.
*/
readonly inboundDefaultPolicy: pulumi.Output<string | undefined>;
/**
* A list of inbound rule to add to the security group. (Structure is documented below.)
*/
readonly inboundRules: pulumi.Output<outputs.InstanceSecurityGroupInboundRule[] | undefined>;
/**
* The name of the security group.
*/
readonly name: pulumi.Output<string>;
/**
* The organization ID the security group is associated with.
*/
readonly organizationId: pulumi.Output<string>;
/**
* The default policy on outgoing traffic. Possible values are: `accept` or `drop`.
*/
readonly outboundDefaultPolicy: pulumi.Output<string | undefined>;
/**
* A list of outbound rule to add to the security group. (Structure is documented below.)
*/
readonly outboundRules: pulumi.Output<outputs.InstanceSecurityGroupOutboundRule[] | undefined>;
/**
* `projectId`) The ID of the project the security group is associated with.
*/
readonly projectId: pulumi.Output<string>;
/**
* A boolean to specify whether the security group should be stateful or not.
*/
readonly stateful: pulumi.Output<boolean | undefined>;
/**
* The tags of the security group.
*/
readonly tags: pulumi.Output<string[] | undefined>;
/**
* `zone`) The zone in which the security group should be created.
*/
readonly zone: pulumi.Output<string>;
/**
* Create a InstanceSecurityGroup 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?: InstanceSecurityGroupArgs, opts?: pulumi.CustomResourceOptions);
}
/**
* Input properties used for looking up and filtering InstanceSecurityGroup resources.
*/
export interface InstanceSecurityGroupState {
/**
* The description of the security group.
*/
description?: pulumi.Input<string>;
/**
* Whether to block SMTP on IPv4/IPv6 (Port 25, 465, 587). Set to false will unblock SMTP if your account is authorized to. If your organization is not yet authorized to send SMTP traffic, [open a support ticket](https://console.scaleway.com/support/tickets).
*/
enableDefaultSecurity?: pulumi.Input<boolean>;
/**
* A boolean to specify whether to use instance_security_group_rules.
* If `externalRules` is set to `true`, `inboundRule` and `outboundRule` can not be set directly in the security group.
*/
externalRules?: pulumi.Input<boolean>;
/**
* The default policy on incoming traffic. Possible values are: `accept` or `drop`.
*/
inboundDefaultPolicy?: pulumi.Input<string>;
/**
* A list of inbound rule to add to the security group. (Structure is documented below.)
*/
inboundRules?: pulumi.Input<pulumi.Input<inputs.InstanceSecurityGroupInboundRule>[]>;
/**
* The name of the security group.
*/
name?: pulumi.Input<string>;
/**
* The organization ID the security group is associated with.
*/
organizationId?: pulumi.Input<string>;
/**
* The default policy on outgoing traffic. Possible values are: `accept` or `drop`.
*/
outboundDefaultPolicy?: pulumi.Input<string>;
/**
* A list of outbound rule to add to the security group. (Structure is documented below.)
*/
outboundRules?: pulumi.Input<pulumi.Input<inputs.InstanceSecurityGroupOutboundRule>[]>;
/**
* `projectId`) The ID of the project the security group is associated with.
*/
projectId?: pulumi.Input<string>;
/**
* A boolean to specify whether the security group should be stateful or not.
*/
stateful?: pulumi.Input<boolean>;
/**
* The tags of the security group.
*/
tags?: pulumi.Input<pulumi.Input<string>[]>;
/**
* `zone`) The zone in which the security group should be created.
*/
zone?: pulumi.Input<string>;
}
/**
* The set of arguments for constructing a InstanceSecurityGroup resource.
*/
export interface InstanceSecurityGroupArgs {
/**
* The description of the security group.
*/
description?: pulumi.Input<string>;
/**
* Whether to block SMTP on IPv4/IPv6 (Port 25, 465, 587). Set to false will unblock SMTP if your account is authorized to. If your organization is not yet authorized to send SMTP traffic, [open a support ticket](https://console.scaleway.com/support/tickets).
*/
enableDefaultSecurity?: pulumi.Input<boolean>;
/**
* A boolean to specify whether to use instance_security_group_rules.
* If `externalRules` is set to `true`, `inboundRule` and `outboundRule` can not be set directly in the security group.
*/
externalRules?: pulumi.Input<boolean>;
/**
* The default policy on incoming traffic. Possible values are: `accept` or `drop`.
*/
inboundDefaultPolicy?: pulumi.Input<string>;
/**
* A list of inbound rule to add to the security group. (Structure is documented below.)
*/
inboundRules?: pulumi.Input<pulumi.Input<inputs.InstanceSecurityGroupInboundRule>[]>;
/**
* The name of the security group.
*/
name?: pulumi.Input<string>;
/**
* The default policy on outgoing traffic. Possible values are: `accept` or `drop`.
*/
outboundDefaultPolicy?: pulumi.Input<string>;
/**
* A list of outbound rule to add to the security group. (Structure is documented below.)
*/
outboundRules?: pulumi.Input<pulumi.Input<inputs.InstanceSecurityGroupOutboundRule>[]>;
/**
* `projectId`) The ID of the project the security group is associated with.
*/
projectId?: pulumi.Input<string>;
/**
* A boolean to specify whether the security group should be stateful or not.
*/
stateful?: pulumi.Input<boolean>;
/**
* The tags of the security group.
*/
tags?: pulumi.Input<pulumi.Input<string>[]>;
/**
* `zone`) The zone in which the security group should be created.
*/
zone?: pulumi.Input<string>;
}