UNPKG

@emailbob/twingate

Version:

A Pulumi package for creating and managing Twingate cloud resources.

103 lines (102 loc) 4.17 kB
import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; export interface GetTwingateResourceProtocols { /** * Whether to allow ICMP (ping) traffic */ allowIcmp?: boolean; tcp?: inputs.GetTwingateResourceProtocolsTcp; udp?: inputs.GetTwingateResourceProtocolsUdp; } export interface GetTwingateResourceProtocolsArgs { /** * Whether to allow ICMP (ping) traffic */ allowIcmp?: pulumi.Input<boolean>; tcp?: pulumi.Input<inputs.GetTwingateResourceProtocolsTcpArgs>; udp?: pulumi.Input<inputs.GetTwingateResourceProtocolsUdpArgs>; } export interface GetTwingateResourceProtocolsTcp { /** * Whether to allow or deny all ports, or restrict protocol access within certain port ranges: Can be `RESTRICTED` (only listed ports are allowed), `ALLOW_ALL`, or `DENY_ALL` */ policy?: string; /** * List of port ranges between 1 and 65535 inclusive, in the format `100-200` for a range, or `8080` for a single port */ ports?: string[]; } export interface GetTwingateResourceProtocolsTcpArgs { /** * Whether to allow or deny all ports, or restrict protocol access within certain port ranges: Can be `RESTRICTED` (only listed ports are allowed), `ALLOW_ALL`, or `DENY_ALL` */ policy?: pulumi.Input<string>; /** * List of port ranges between 1 and 65535 inclusive, in the format `100-200` for a range, or `8080` for a single port */ ports?: pulumi.Input<pulumi.Input<string>[]>; } export interface GetTwingateResourceProtocolsUdp { /** * Whether to allow or deny all ports, or restrict protocol access within certain port ranges: Can be `RESTRICTED` (only listed ports are allowed), `ALLOW_ALL`, or `DENY_ALL` */ policy?: string; /** * List of port ranges between 1 and 65535 inclusive, in the format `100-200` for a range, or `8080` for a single port */ ports?: string[]; } export interface GetTwingateResourceProtocolsUdpArgs { /** * Whether to allow or deny all ports, or restrict protocol access within certain port ranges: Can be `RESTRICTED` (only listed ports are allowed), `ALLOW_ALL`, or `DENY_ALL` */ policy?: pulumi.Input<string>; /** * List of port ranges between 1 and 65535 inclusive, in the format `100-200` for a range, or `8080` for a single port */ ports?: pulumi.Input<pulumi.Input<string>[]>; } export interface TwingateResourceAccessGroup { /** * Group ID that will have permission to access the Resource. */ groupId?: pulumi.Input<string>; /** * The ID of a `twingate.getTwingateSecurityPolicy` to use as the access policy for the group IDs in the access block. */ securityPolicyId?: pulumi.Input<string>; } export interface TwingateResourceAccessService { /** * The ID of the service account that should have access to this Resource. */ serviceAccountId?: pulumi.Input<string>; } export interface TwingateResourceProtocols { /** * Whether to allow ICMP (ping) traffic */ allowIcmp?: pulumi.Input<boolean>; tcp?: pulumi.Input<inputs.TwingateResourceProtocolsTcp>; udp?: pulumi.Input<inputs.TwingateResourceProtocolsUdp>; } export interface TwingateResourceProtocolsTcp { /** * Whether to allow or deny all ports, or restrict protocol access within certain port ranges: Can be `RESTRICTED` (only listed ports are allowed), `ALLOW_ALL`, or `DENY_ALL` */ policy?: pulumi.Input<string>; /** * List of port ranges between 1 and 65535 inclusive, in the format `100-200` for a range, or `8080` for a single port */ ports?: pulumi.Input<pulumi.Input<string>[]>; } export interface TwingateResourceProtocolsUdp { /** * Whether to allow or deny all ports, or restrict protocol access within certain port ranges: Can be `RESTRICTED` (only listed ports are allowed), `ALLOW_ALL`, or `DENY_ALL` */ policy?: pulumi.Input<string>; /** * List of port ranges between 1 and 65535 inclusive, in the format `100-200` for a range, or `8080` for a single port */ ports?: pulumi.Input<pulumi.Input<string>[]>; }