UNPKG

@lbrlabs/pulumi-scaleway

Version:

A Pulumi package for creating and managing scaleway cloud resources.

108 lines (107 loc) 3.5 kB
import * as pulumi from "@pulumi/pulumi"; import * as outputs from "./types/output"; /** * Gets information about a Security Group. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as scaleway from "@pulumi/scaleway"; * * const myKey = scaleway.getInstanceSecurityGroup({ * securityGroupId: "11111111-1111-1111-1111-111111111111", * }); * ``` */ export declare function getInstanceSecurityGroup(args?: GetInstanceSecurityGroupArgs, opts?: pulumi.InvokeOptions): Promise<GetInstanceSecurityGroupResult>; /** * A collection of arguments for invoking getInstanceSecurityGroup. */ export interface GetInstanceSecurityGroupArgs { /** * The security group name. Only one of `name` and `securityGroupId` should be specified. */ name?: string; /** * The security group id. Only one of `name` and `securityGroupId` should be specified. */ securityGroupId?: string; /** * `zone`) The zone in which the security group exists. */ zone?: string; } /** * A collection of values returned by getInstanceSecurityGroup. */ export interface GetInstanceSecurityGroupResult { readonly description: string; readonly enableDefaultSecurity: boolean; readonly externalRules: boolean; /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; /** * The default policy on incoming traffic. Possible values are: `accept` or `drop`. */ readonly inboundDefaultPolicy: string; /** * A list of inbound rule to add to the security group. (Structure is documented below.) */ readonly inboundRules: outputs.GetInstanceSecurityGroupInboundRule[]; readonly name?: string; /** * The ID of the organization the security group is associated with. */ readonly organizationId: string; /** * The default policy on outgoing traffic. Possible values are: `accept` or `drop`. */ readonly outboundDefaultPolicy: string; /** * A list of outbound rule to add to the security group. (Structure is documented below.) */ readonly outboundRules: outputs.GetInstanceSecurityGroupOutboundRule[]; /** * The ID of the project the security group is associated with. */ readonly projectId: string; readonly securityGroupId?: string; readonly stateful: boolean; readonly tags: string[]; readonly zone?: string; } /** * Gets information about a Security Group. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as scaleway from "@pulumi/scaleway"; * * const myKey = scaleway.getInstanceSecurityGroup({ * securityGroupId: "11111111-1111-1111-1111-111111111111", * }); * ``` */ export declare function getInstanceSecurityGroupOutput(args?: GetInstanceSecurityGroupOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetInstanceSecurityGroupResult>; /** * A collection of arguments for invoking getInstanceSecurityGroup. */ export interface GetInstanceSecurityGroupOutputArgs { /** * The security group name. Only one of `name` and `securityGroupId` should be specified. */ name?: pulumi.Input<string>; /** * The security group id. Only one of `name` and `securityGroupId` should be specified. */ securityGroupId?: pulumi.Input<string>; /** * `zone`) The zone in which the security group exists. */ zone?: pulumi.Input<string>; }