twingate.TwingateResource
Resources in Twingate represent servers on the private network that clients can connect to. Resources can be defined by IP, CIDR range, FQDN, or DNS zone. For more information, see the Twingate documentation.
Create TwingateResource Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new TwingateResource(name: string, args: TwingateResourceArgs, opts?: CustomResourceOptions);@overload
def TwingateResource(resource_name: str,
                     args: TwingateResourceArgs,
                     opts: Optional[ResourceOptions] = None)
@overload
def TwingateResource(resource_name: str,
                     opts: Optional[ResourceOptions] = None,
                     address: Optional[str] = None,
                     remote_network_id: Optional[str] = None,
                     is_authoritative: Optional[bool] = None,
                     alias: Optional[str] = None,
                     approval_mode: Optional[str] = None,
                     is_active: Optional[bool] = None,
                     access_groups: Optional[Sequence[TwingateResourceAccessGroupArgs]] = None,
                     is_browser_shortcut_enabled: Optional[bool] = None,
                     is_visible: Optional[bool] = None,
                     name: Optional[str] = None,
                     protocols: Optional[TwingateResourceProtocolsArgs] = None,
                     access_services: Optional[Sequence[TwingateResourceAccessServiceArgs]] = None,
                     security_policy_id: Optional[str] = None,
                     tags: Optional[Mapping[str, str]] = None,
                     usage_based_autolock_duration_days: Optional[int] = None)func NewTwingateResource(ctx *Context, name string, args TwingateResourceArgs, opts ...ResourceOption) (*TwingateResource, error)public TwingateResource(string name, TwingateResourceArgs args, CustomResourceOptions? opts = null)
public TwingateResource(String name, TwingateResourceArgs args)
public TwingateResource(String name, TwingateResourceArgs args, CustomResourceOptions options)
type: twingate:TwingateResource
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args TwingateResourceArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args TwingateResourceArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args TwingateResourceArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args TwingateResourceArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args TwingateResourceArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var twingateResourceResource = new Twingate.TwingateResource("twingateResourceResource", new()
{
    Address = "string",
    RemoteNetworkId = "string",
    IsAuthoritative = false,
    Alias = "string",
    ApprovalMode = "string",
    IsActive = false,
    AccessGroups = new[]
    {
        new Twingate.Inputs.TwingateResourceAccessGroupArgs
        {
            ApprovalMode = "string",
            GroupId = "string",
            SecurityPolicyId = "string",
            UsageBasedAutolockDurationDays = 0,
        },
    },
    IsBrowserShortcutEnabled = false,
    IsVisible = false,
    Name = "string",
    Protocols = new Twingate.Inputs.TwingateResourceProtocolsArgs
    {
        AllowIcmp = false,
        Tcp = new Twingate.Inputs.TwingateResourceProtocolsTcpArgs
        {
            Policy = "string",
            Ports = new[]
            {
                "string",
            },
        },
        Udp = new Twingate.Inputs.TwingateResourceProtocolsUdpArgs
        {
            Policy = "string",
            Ports = new[]
            {
                "string",
            },
        },
    },
    AccessServices = new[]
    {
        new Twingate.Inputs.TwingateResourceAccessServiceArgs
        {
            ServiceAccountId = "string",
        },
    },
    SecurityPolicyId = "string",
    Tags = 
    {
        { "string", "string" },
    },
    UsageBasedAutolockDurationDays = 0,
});
example, err := twingate.NewTwingateResource(ctx, "twingateResourceResource", &twingate.TwingateResourceArgs{
	Address:         pulumi.String("string"),
	RemoteNetworkId: pulumi.String("string"),
	IsAuthoritative: pulumi.Bool(false),
	Alias:           pulumi.String("string"),
	ApprovalMode:    pulumi.String("string"),
	IsActive:        pulumi.Bool(false),
	AccessGroups: twingate.TwingateResourceAccessGroupArray{
		&twingate.TwingateResourceAccessGroupArgs{
			ApprovalMode:                   pulumi.String("string"),
			GroupId:                        pulumi.String("string"),
			SecurityPolicyId:               pulumi.String("string"),
			UsageBasedAutolockDurationDays: pulumi.Int(0),
		},
	},
	IsBrowserShortcutEnabled: pulumi.Bool(false),
	IsVisible:                pulumi.Bool(false),
	Name:                     pulumi.String("string"),
	Protocols: &twingate.TwingateResourceProtocolsArgs{
		AllowIcmp: pulumi.Bool(false),
		Tcp: &twingate.TwingateResourceProtocolsTcpArgs{
			Policy: pulumi.String("string"),
			Ports: pulumi.StringArray{
				pulumi.String("string"),
			},
		},
		Udp: &twingate.TwingateResourceProtocolsUdpArgs{
			Policy: pulumi.String("string"),
			Ports: pulumi.StringArray{
				pulumi.String("string"),
			},
		},
	},
	AccessServices: twingate.TwingateResourceAccessServiceArray{
		&twingate.TwingateResourceAccessServiceArgs{
			ServiceAccountId: pulumi.String("string"),
		},
	},
	SecurityPolicyId: pulumi.String("string"),
	Tags: pulumi.StringMap{
		"string": pulumi.String("string"),
	},
	UsageBasedAutolockDurationDays: pulumi.Int(0),
})
var twingateResourceResource = new TwingateResource("twingateResourceResource", TwingateResourceArgs.builder()
    .address("string")
    .remoteNetworkId("string")
    .isAuthoritative(false)
    .alias("string")
    .approvalMode("string")
    .isActive(false)
    .accessGroups(TwingateResourceAccessGroupArgs.builder()
        .approvalMode("string")
        .groupId("string")
        .securityPolicyId("string")
        .usageBasedAutolockDurationDays(0)
        .build())
    .isBrowserShortcutEnabled(false)
    .isVisible(false)
    .name("string")
    .protocols(TwingateResourceProtocolsArgs.builder()
        .allowIcmp(false)
        .tcp(TwingateResourceProtocolsTcpArgs.builder()
            .policy("string")
            .ports("string")
            .build())
        .udp(TwingateResourceProtocolsUdpArgs.builder()
            .policy("string")
            .ports("string")
            .build())
        .build())
    .accessServices(TwingateResourceAccessServiceArgs.builder()
        .serviceAccountId("string")
        .build())
    .securityPolicyId("string")
    .tags(Map.of("string", "string"))
    .usageBasedAutolockDurationDays(0)
    .build());
twingate_resource_resource = twingate.TwingateResource("twingateResourceResource",
    address="string",
    remote_network_id="string",
    is_authoritative=False,
    alias="string",
    approval_mode="string",
    is_active=False,
    access_groups=[{
        "approval_mode": "string",
        "group_id": "string",
        "security_policy_id": "string",
        "usage_based_autolock_duration_days": 0,
    }],
    is_browser_shortcut_enabled=False,
    is_visible=False,
    name="string",
    protocols={
        "allow_icmp": False,
        "tcp": {
            "policy": "string",
            "ports": ["string"],
        },
        "udp": {
            "policy": "string",
            "ports": ["string"],
        },
    },
    access_services=[{
        "service_account_id": "string",
    }],
    security_policy_id="string",
    tags={
        "string": "string",
    },
    usage_based_autolock_duration_days=0)
const twingateResourceResource = new twingate.TwingateResource("twingateResourceResource", {
    address: "string",
    remoteNetworkId: "string",
    isAuthoritative: false,
    alias: "string",
    approvalMode: "string",
    isActive: false,
    accessGroups: [{
        approvalMode: "string",
        groupId: "string",
        securityPolicyId: "string",
        usageBasedAutolockDurationDays: 0,
    }],
    isBrowserShortcutEnabled: false,
    isVisible: false,
    name: "string",
    protocols: {
        allowIcmp: false,
        tcp: {
            policy: "string",
            ports: ["string"],
        },
        udp: {
            policy: "string",
            ports: ["string"],
        },
    },
    accessServices: [{
        serviceAccountId: "string",
    }],
    securityPolicyId: "string",
    tags: {
        string: "string",
    },
    usageBasedAutolockDurationDays: 0,
});
type: twingate:TwingateResource
properties:
    accessGroups:
        - approvalMode: string
          groupId: string
          securityPolicyId: string
          usageBasedAutolockDurationDays: 0
    accessServices:
        - serviceAccountId: string
    address: string
    alias: string
    approvalMode: string
    isActive: false
    isAuthoritative: false
    isBrowserShortcutEnabled: false
    isVisible: false
    name: string
    protocols:
        allowIcmp: false
        tcp:
            policy: string
            ports:
                - string
        udp:
            policy: string
            ports:
                - string
    remoteNetworkId: string
    securityPolicyId: string
    tags:
        string: string
    usageBasedAutolockDurationDays: 0
TwingateResource Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The TwingateResource resource accepts the following input properties:
- Address string
- The Resource's IP/CIDR or FQDN/DNS zone
- RemoteNetwork stringId 
- Remote Network ID where the Resource lives
- AccessGroups List<Twingate.Twingate. Inputs. Twingate Resource Access Group> 
- Restrict access to certain group
- AccessServices List<Twingate.Twingate. Inputs. Twingate Resource Access Service> 
- Restrict access to certain service account
- Alias string
- Set a DNS alias address for the Resource. Must be a DNS-valid name string.
- ApprovalMode string
- This will set the approval model for the Resource. The valid values are AUTOMATICandMANUAL.
- IsActive bool
- Set the resource as active or inactive. Default is true.
- bool
- IsBrowser boolShortcut Enabled 
- Controls whether an "Open in Browser" shortcut will be shown for this Resource in the Twingate Client. Default is false.
- IsVisible bool
- Controls whether this Resource will be visible in the main Resource list in the Twingate Client. Default is true.
- Name string
- The name of the Resource
- Protocols
Twingate.Twingate. Inputs. Twingate Resource Protocols 
- Restrict access to certain protocols and ports. By default or when this argument is not defined, there is no restriction, and all protocols and ports are allowed.
- SecurityPolicy stringId 
- The ID of a twingate.getTwingateSecurityPolicyto set as this Resource's Security Policy. Default isDefault Policy.
- Dictionary<string, string>
- A map of key-value pair tags to set on this resource.
- UsageBased intAutolock Duration Days 
- The usage-based auto-lock duration for the Resource (in days).
- Address string
- The Resource's IP/CIDR or FQDN/DNS zone
- RemoteNetwork stringId 
- Remote Network ID where the Resource lives
- AccessGroups []TwingateResource Access Group Args 
- Restrict access to certain group
- AccessServices []TwingateResource Access Service Args 
- Restrict access to certain service account
- Alias string
- Set a DNS alias address for the Resource. Must be a DNS-valid name string.
- ApprovalMode string
- This will set the approval model for the Resource. The valid values are AUTOMATICandMANUAL.
- IsActive bool
- Set the resource as active or inactive. Default is true.
- bool
- IsBrowser boolShortcut Enabled 
- Controls whether an "Open in Browser" shortcut will be shown for this Resource in the Twingate Client. Default is false.
- IsVisible bool
- Controls whether this Resource will be visible in the main Resource list in the Twingate Client. Default is true.
- Name string
- The name of the Resource
- Protocols
TwingateResource Protocols Args 
- Restrict access to certain protocols and ports. By default or when this argument is not defined, there is no restriction, and all protocols and ports are allowed.
- SecurityPolicy stringId 
- The ID of a twingate.getTwingateSecurityPolicyto set as this Resource's Security Policy. Default isDefault Policy.
- map[string]string
- A map of key-value pair tags to set on this resource.
- UsageBased intAutolock Duration Days 
- The usage-based auto-lock duration for the Resource (in days).
- address String
- The Resource's IP/CIDR or FQDN/DNS zone
- remoteNetwork StringId 
- Remote Network ID where the Resource lives
- accessGroups List<TwingateResource Access Group> 
- Restrict access to certain group
- accessServices List<TwingateResource Access Service> 
- Restrict access to certain service account
- alias String
- Set a DNS alias address for the Resource. Must be a DNS-valid name string.
- approvalMode String
- This will set the approval model for the Resource. The valid values are AUTOMATICandMANUAL.
- isActive Boolean
- Set the resource as active or inactive. Default is true.
- Boolean
- isBrowser BooleanShortcut Enabled 
- Controls whether an "Open in Browser" shortcut will be shown for this Resource in the Twingate Client. Default is false.
- isVisible Boolean
- Controls whether this Resource will be visible in the main Resource list in the Twingate Client. Default is true.
- name String
- The name of the Resource
- protocols
TwingateResource Protocols 
- Restrict access to certain protocols and ports. By default or when this argument is not defined, there is no restriction, and all protocols and ports are allowed.
- securityPolicy StringId 
- The ID of a twingate.getTwingateSecurityPolicyto set as this Resource's Security Policy. Default isDefault Policy.
- Map<String,String>
- A map of key-value pair tags to set on this resource.
- usageBased IntegerAutolock Duration Days 
- The usage-based auto-lock duration for the Resource (in days).
- address string
- The Resource's IP/CIDR or FQDN/DNS zone
- remoteNetwork stringId 
- Remote Network ID where the Resource lives
- accessGroups TwingateResource Access Group[] 
- Restrict access to certain group
- accessServices TwingateResource Access Service[] 
- Restrict access to certain service account
- alias string
- Set a DNS alias address for the Resource. Must be a DNS-valid name string.
- approvalMode string
- This will set the approval model for the Resource. The valid values are AUTOMATICandMANUAL.
- isActive boolean
- Set the resource as active or inactive. Default is true.
- boolean
- isBrowser booleanShortcut Enabled 
- Controls whether an "Open in Browser" shortcut will be shown for this Resource in the Twingate Client. Default is false.
- isVisible boolean
- Controls whether this Resource will be visible in the main Resource list in the Twingate Client. Default is true.
- name string
- The name of the Resource
- protocols
TwingateResource Protocols 
- Restrict access to certain protocols and ports. By default or when this argument is not defined, there is no restriction, and all protocols and ports are allowed.
- securityPolicy stringId 
- The ID of a twingate.getTwingateSecurityPolicyto set as this Resource's Security Policy. Default isDefault Policy.
- {[key: string]: string}
- A map of key-value pair tags to set on this resource.
- usageBased numberAutolock Duration Days 
- The usage-based auto-lock duration for the Resource (in days).
- address str
- The Resource's IP/CIDR or FQDN/DNS zone
- remote_network_ strid 
- Remote Network ID where the Resource lives
- access_groups Sequence[TwingateResource Access Group Args] 
- Restrict access to certain group
- access_services Sequence[TwingateResource Access Service Args] 
- Restrict access to certain service account
- alias str
- Set a DNS alias address for the Resource. Must be a DNS-valid name string.
- approval_mode str
- This will set the approval model for the Resource. The valid values are AUTOMATICandMANUAL.
- is_active bool
- Set the resource as active or inactive. Default is true.
- bool
- is_browser_ boolshortcut_ enabled 
- Controls whether an "Open in Browser" shortcut will be shown for this Resource in the Twingate Client. Default is false.
- is_visible bool
- Controls whether this Resource will be visible in the main Resource list in the Twingate Client. Default is true.
- name str
- The name of the Resource
- protocols
TwingateResource Protocols Args 
- Restrict access to certain protocols and ports. By default or when this argument is not defined, there is no restriction, and all protocols and ports are allowed.
- security_policy_ strid 
- The ID of a twingate.getTwingateSecurityPolicyto set as this Resource's Security Policy. Default isDefault Policy.
- Mapping[str, str]
- A map of key-value pair tags to set on this resource.
- usage_based_ intautolock_ duration_ days 
- The usage-based auto-lock duration for the Resource (in days).
- address String
- The Resource's IP/CIDR or FQDN/DNS zone
- remoteNetwork StringId 
- Remote Network ID where the Resource lives
- accessGroups List<Property Map>
- Restrict access to certain group
- accessServices List<Property Map>
- Restrict access to certain service account
- alias String
- Set a DNS alias address for the Resource. Must be a DNS-valid name string.
- approvalMode String
- This will set the approval model for the Resource. The valid values are AUTOMATICandMANUAL.
- isActive Boolean
- Set the resource as active or inactive. Default is true.
- Boolean
- isBrowser BooleanShortcut Enabled 
- Controls whether an "Open in Browser" shortcut will be shown for this Resource in the Twingate Client. Default is false.
- isVisible Boolean
- Controls whether this Resource will be visible in the main Resource list in the Twingate Client. Default is true.
- name String
- The name of the Resource
- protocols Property Map
- Restrict access to certain protocols and ports. By default or when this argument is not defined, there is no restriction, and all protocols and ports are allowed.
- securityPolicy StringId 
- The ID of a twingate.getTwingateSecurityPolicyto set as this Resource's Security Policy. Default isDefault Policy.
- Map<String>
- A map of key-value pair tags to set on this resource.
- usageBased NumberAutolock Duration Days 
- The usage-based auto-lock duration for the Resource (in days).
Outputs
All input properties are implicitly available as output properties. Additionally, the TwingateResource resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Dictionary<string, string>
- A map of key-value pairs that represents all tags on this resource, including default tags from provider configuration.
- Id string
- The provider-assigned unique ID for this managed resource.
- map[string]string
- A map of key-value pairs that represents all tags on this resource, including default tags from provider configuration.
- id String
- The provider-assigned unique ID for this managed resource.
- Map<String,String>
- A map of key-value pairs that represents all tags on this resource, including default tags from provider configuration.
- id string
- The provider-assigned unique ID for this managed resource.
- {[key: string]: string}
- A map of key-value pairs that represents all tags on this resource, including default tags from provider configuration.
- id str
- The provider-assigned unique ID for this managed resource.
- Mapping[str, str]
- A map of key-value pairs that represents all tags on this resource, including default tags from provider configuration.
- id String
- The provider-assigned unique ID for this managed resource.
- Map<String>
- A map of key-value pairs that represents all tags on this resource, including default tags from provider configuration.
Look up Existing TwingateResource Resource
Get an existing TwingateResource resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: TwingateResourceState, opts?: CustomResourceOptions): TwingateResource@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        access_groups: Optional[Sequence[TwingateResourceAccessGroupArgs]] = None,
        access_services: Optional[Sequence[TwingateResourceAccessServiceArgs]] = None,
        address: Optional[str] = None,
        alias: Optional[str] = None,
        approval_mode: Optional[str] = None,
        is_active: Optional[bool] = None,
        is_authoritative: Optional[bool] = None,
        is_browser_shortcut_enabled: Optional[bool] = None,
        is_visible: Optional[bool] = None,
        name: Optional[str] = None,
        protocols: Optional[TwingateResourceProtocolsArgs] = None,
        remote_network_id: Optional[str] = None,
        security_policy_id: Optional[str] = None,
        tags: Optional[Mapping[str, str]] = None,
        tags_all: Optional[Mapping[str, str]] = None,
        usage_based_autolock_duration_days: Optional[int] = None) -> TwingateResourcefunc GetTwingateResource(ctx *Context, name string, id IDInput, state *TwingateResourceState, opts ...ResourceOption) (*TwingateResource, error)public static TwingateResource Get(string name, Input<string> id, TwingateResourceState? state, CustomResourceOptions? opts = null)public static TwingateResource get(String name, Output<String> id, TwingateResourceState state, CustomResourceOptions options)resources:  _:    type: twingate:TwingateResource    get:      id: ${id}- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- AccessGroups List<Twingate.Twingate. Inputs. Twingate Resource Access Group> 
- Restrict access to certain group
- AccessServices List<Twingate.Twingate. Inputs. Twingate Resource Access Service> 
- Restrict access to certain service account
- Address string
- The Resource's IP/CIDR or FQDN/DNS zone
- Alias string
- Set a DNS alias address for the Resource. Must be a DNS-valid name string.
- ApprovalMode string
- This will set the approval model for the Resource. The valid values are AUTOMATICandMANUAL.
- IsActive bool
- Set the resource as active or inactive. Default is true.
- bool
- IsBrowser boolShortcut Enabled 
- Controls whether an "Open in Browser" shortcut will be shown for this Resource in the Twingate Client. Default is false.
- IsVisible bool
- Controls whether this Resource will be visible in the main Resource list in the Twingate Client. Default is true.
- Name string
- The name of the Resource
- Protocols
Twingate.Twingate. Inputs. Twingate Resource Protocols 
- Restrict access to certain protocols and ports. By default or when this argument is not defined, there is no restriction, and all protocols and ports are allowed.
- RemoteNetwork stringId 
- Remote Network ID where the Resource lives
- SecurityPolicy stringId 
- The ID of a twingate.getTwingateSecurityPolicyto set as this Resource's Security Policy. Default isDefault Policy.
- Dictionary<string, string>
- A map of key-value pair tags to set on this resource.
- Dictionary<string, string>
- A map of key-value pairs that represents all tags on this resource, including default tags from provider configuration.
- UsageBased intAutolock Duration Days 
- The usage-based auto-lock duration for the Resource (in days).
- AccessGroups []TwingateResource Access Group Args 
- Restrict access to certain group
- AccessServices []TwingateResource Access Service Args 
- Restrict access to certain service account
- Address string
- The Resource's IP/CIDR or FQDN/DNS zone
- Alias string
- Set a DNS alias address for the Resource. Must be a DNS-valid name string.
- ApprovalMode string
- This will set the approval model for the Resource. The valid values are AUTOMATICandMANUAL.
- IsActive bool
- Set the resource as active or inactive. Default is true.
- bool
- IsBrowser boolShortcut Enabled 
- Controls whether an "Open in Browser" shortcut will be shown for this Resource in the Twingate Client. Default is false.
- IsVisible bool
- Controls whether this Resource will be visible in the main Resource list in the Twingate Client. Default is true.
- Name string
- The name of the Resource
- Protocols
TwingateResource Protocols Args 
- Restrict access to certain protocols and ports. By default or when this argument is not defined, there is no restriction, and all protocols and ports are allowed.
- RemoteNetwork stringId 
- Remote Network ID where the Resource lives
- SecurityPolicy stringId 
- The ID of a twingate.getTwingateSecurityPolicyto set as this Resource's Security Policy. Default isDefault Policy.
- map[string]string
- A map of key-value pair tags to set on this resource.
- map[string]string
- A map of key-value pairs that represents all tags on this resource, including default tags from provider configuration.
- UsageBased intAutolock Duration Days 
- The usage-based auto-lock duration for the Resource (in days).
- accessGroups List<TwingateResource Access Group> 
- Restrict access to certain group
- accessServices List<TwingateResource Access Service> 
- Restrict access to certain service account
- address String
- The Resource's IP/CIDR or FQDN/DNS zone
- alias String
- Set a DNS alias address for the Resource. Must be a DNS-valid name string.
- approvalMode String
- This will set the approval model for the Resource. The valid values are AUTOMATICandMANUAL.
- isActive Boolean
- Set the resource as active or inactive. Default is true.
- Boolean
- isBrowser BooleanShortcut Enabled 
- Controls whether an "Open in Browser" shortcut will be shown for this Resource in the Twingate Client. Default is false.
- isVisible Boolean
- Controls whether this Resource will be visible in the main Resource list in the Twingate Client. Default is true.
- name String
- The name of the Resource
- protocols
TwingateResource Protocols 
- Restrict access to certain protocols and ports. By default or when this argument is not defined, there is no restriction, and all protocols and ports are allowed.
- remoteNetwork StringId 
- Remote Network ID where the Resource lives
- securityPolicy StringId 
- The ID of a twingate.getTwingateSecurityPolicyto set as this Resource's Security Policy. Default isDefault Policy.
- Map<String,String>
- A map of key-value pair tags to set on this resource.
- Map<String,String>
- A map of key-value pairs that represents all tags on this resource, including default tags from provider configuration.
- usageBased IntegerAutolock Duration Days 
- The usage-based auto-lock duration for the Resource (in days).
- accessGroups TwingateResource Access Group[] 
- Restrict access to certain group
- accessServices TwingateResource Access Service[] 
- Restrict access to certain service account
- address string
- The Resource's IP/CIDR or FQDN/DNS zone
- alias string
- Set a DNS alias address for the Resource. Must be a DNS-valid name string.
- approvalMode string
- This will set the approval model for the Resource. The valid values are AUTOMATICandMANUAL.
- isActive boolean
- Set the resource as active or inactive. Default is true.
- boolean
- isBrowser booleanShortcut Enabled 
- Controls whether an "Open in Browser" shortcut will be shown for this Resource in the Twingate Client. Default is false.
- isVisible boolean
- Controls whether this Resource will be visible in the main Resource list in the Twingate Client. Default is true.
- name string
- The name of the Resource
- protocols
TwingateResource Protocols 
- Restrict access to certain protocols and ports. By default or when this argument is not defined, there is no restriction, and all protocols and ports are allowed.
- remoteNetwork stringId 
- Remote Network ID where the Resource lives
- securityPolicy stringId 
- The ID of a twingate.getTwingateSecurityPolicyto set as this Resource's Security Policy. Default isDefault Policy.
- {[key: string]: string}
- A map of key-value pair tags to set on this resource.
- {[key: string]: string}
- A map of key-value pairs that represents all tags on this resource, including default tags from provider configuration.
- usageBased numberAutolock Duration Days 
- The usage-based auto-lock duration for the Resource (in days).
- access_groups Sequence[TwingateResource Access Group Args] 
- Restrict access to certain group
- access_services Sequence[TwingateResource Access Service Args] 
- Restrict access to certain service account
- address str
- The Resource's IP/CIDR or FQDN/DNS zone
- alias str
- Set a DNS alias address for the Resource. Must be a DNS-valid name string.
- approval_mode str
- This will set the approval model for the Resource. The valid values are AUTOMATICandMANUAL.
- is_active bool
- Set the resource as active or inactive. Default is true.
- bool
- is_browser_ boolshortcut_ enabled 
- Controls whether an "Open in Browser" shortcut will be shown for this Resource in the Twingate Client. Default is false.
- is_visible bool
- Controls whether this Resource will be visible in the main Resource list in the Twingate Client. Default is true.
- name str
- The name of the Resource
- protocols
TwingateResource Protocols Args 
- Restrict access to certain protocols and ports. By default or when this argument is not defined, there is no restriction, and all protocols and ports are allowed.
- remote_network_ strid 
- Remote Network ID where the Resource lives
- security_policy_ strid 
- The ID of a twingate.getTwingateSecurityPolicyto set as this Resource's Security Policy. Default isDefault Policy.
- Mapping[str, str]
- A map of key-value pair tags to set on this resource.
- Mapping[str, str]
- A map of key-value pairs that represents all tags on this resource, including default tags from provider configuration.
- usage_based_ intautolock_ duration_ days 
- The usage-based auto-lock duration for the Resource (in days).
- accessGroups List<Property Map>
- Restrict access to certain group
- accessServices List<Property Map>
- Restrict access to certain service account
- address String
- The Resource's IP/CIDR or FQDN/DNS zone
- alias String
- Set a DNS alias address for the Resource. Must be a DNS-valid name string.
- approvalMode String
- This will set the approval model for the Resource. The valid values are AUTOMATICandMANUAL.
- isActive Boolean
- Set the resource as active or inactive. Default is true.
- Boolean
- isBrowser BooleanShortcut Enabled 
- Controls whether an "Open in Browser" shortcut will be shown for this Resource in the Twingate Client. Default is false.
- isVisible Boolean
- Controls whether this Resource will be visible in the main Resource list in the Twingate Client. Default is true.
- name String
- The name of the Resource
- protocols Property Map
- Restrict access to certain protocols and ports. By default or when this argument is not defined, there is no restriction, and all protocols and ports are allowed.
- remoteNetwork StringId 
- Remote Network ID where the Resource lives
- securityPolicy StringId 
- The ID of a twingate.getTwingateSecurityPolicyto set as this Resource's Security Policy. Default isDefault Policy.
- Map<String>
- A map of key-value pair tags to set on this resource.
- Map<String>
- A map of key-value pairs that represents all tags on this resource, including default tags from provider configuration.
- usageBased NumberAutolock Duration Days 
- The usage-based auto-lock duration for the Resource (in days).
Supporting Types
TwingateResourceAccessGroup, TwingateResourceAccessGroupArgs        
- ApprovalMode string
- This will set the approval model on the edge. The valid values are AUTOMATICandMANUAL.
- GroupId string
- Group ID that will have permission to access the Resource.
- SecurityPolicy stringId 
- The ID of a twingate.getTwingateSecurityPolicyto use as the access policy for the group IDs in the access block.
- UsageBased intAutolock Duration Days 
- The usage-based auto-lock duration configured on the edge (in days).
- ApprovalMode string
- This will set the approval model on the edge. The valid values are AUTOMATICandMANUAL.
- GroupId string
- Group ID that will have permission to access the Resource.
- SecurityPolicy stringId 
- The ID of a twingate.getTwingateSecurityPolicyto use as the access policy for the group IDs in the access block.
- UsageBased intAutolock Duration Days 
- The usage-based auto-lock duration configured on the edge (in days).
- approvalMode String
- This will set the approval model on the edge. The valid values are AUTOMATICandMANUAL.
- groupId String
- Group ID that will have permission to access the Resource.
- securityPolicy StringId 
- The ID of a twingate.getTwingateSecurityPolicyto use as the access policy for the group IDs in the access block.
- usageBased IntegerAutolock Duration Days 
- The usage-based auto-lock duration configured on the edge (in days).
- approvalMode string
- This will set the approval model on the edge. The valid values are AUTOMATICandMANUAL.
- groupId string
- Group ID that will have permission to access the Resource.
- securityPolicy stringId 
- The ID of a twingate.getTwingateSecurityPolicyto use as the access policy for the group IDs in the access block.
- usageBased numberAutolock Duration Days 
- The usage-based auto-lock duration configured on the edge (in days).
- approval_mode str
- This will set the approval model on the edge. The valid values are AUTOMATICandMANUAL.
- group_id str
- Group ID that will have permission to access the Resource.
- security_policy_ strid 
- The ID of a twingate.getTwingateSecurityPolicyto use as the access policy for the group IDs in the access block.
- usage_based_ intautolock_ duration_ days 
- The usage-based auto-lock duration configured on the edge (in days).
- approvalMode String
- This will set the approval model on the edge. The valid values are AUTOMATICandMANUAL.
- groupId String
- Group ID that will have permission to access the Resource.
- securityPolicy StringId 
- The ID of a twingate.getTwingateSecurityPolicyto use as the access policy for the group IDs in the access block.
- usageBased NumberAutolock Duration Days 
- The usage-based auto-lock duration configured on the edge (in days).
TwingateResourceAccessService, TwingateResourceAccessServiceArgs        
- ServiceAccount stringId 
- The ID of the service account that should have access to this Resource.
- ServiceAccount stringId 
- The ID of the service account that should have access to this Resource.
- serviceAccount StringId 
- The ID of the service account that should have access to this Resource.
- serviceAccount stringId 
- The ID of the service account that should have access to this Resource.
- service_account_ strid 
- The ID of the service account that should have access to this Resource.
- serviceAccount StringId 
- The ID of the service account that should have access to this Resource.
TwingateResourceProtocols, TwingateResourceProtocolsArgs      
- AllowIcmp bool
- Whether to allow ICMP (ping) traffic
- Tcp
Twingate.Twingate. Inputs. Twingate Resource Protocols Tcp 
- Udp
Twingate.Twingate. Inputs. Twingate Resource Protocols Udp 
- AllowIcmp bool
- Whether to allow ICMP (ping) traffic
- Tcp
TwingateResource Protocols Tcp 
- Udp
TwingateResource Protocols Udp 
- allowIcmp Boolean
- Whether to allow ICMP (ping) traffic
- tcp
TwingateResource Protocols Tcp 
- udp
TwingateResource Protocols Udp 
- allowIcmp boolean
- Whether to allow ICMP (ping) traffic
- tcp
TwingateResource Protocols Tcp 
- udp
TwingateResource Protocols Udp 
- allow_icmp bool
- Whether to allow ICMP (ping) traffic
- tcp
TwingateResource Protocols Tcp 
- udp
TwingateResource Protocols Udp 
- allowIcmp Boolean
- Whether to allow ICMP (ping) traffic
- tcp Property Map
- udp Property Map
TwingateResourceProtocolsTcp, TwingateResourceProtocolsTcpArgs        
- Policy string
- 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, orDENY_ALL
- Ports List<string>
- List of port ranges between 1 and 65535 inclusive, in the format 100-200for a range, or8080for a single port
- Policy string
- 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, orDENY_ALL
- Ports []string
- List of port ranges between 1 and 65535 inclusive, in the format 100-200for a range, or8080for a single port
- policy String
- 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, orDENY_ALL
- ports List<String>
- List of port ranges between 1 and 65535 inclusive, in the format 100-200for a range, or8080for a single port
- policy string
- 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, orDENY_ALL
- ports string[]
- List of port ranges between 1 and 65535 inclusive, in the format 100-200for a range, or8080for a single port
- policy str
- 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, orDENY_ALL
- ports Sequence[str]
- List of port ranges between 1 and 65535 inclusive, in the format 100-200for a range, or8080for a single port
- policy String
- 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, orDENY_ALL
- ports List<String>
- List of port ranges between 1 and 65535 inclusive, in the format 100-200for a range, or8080for a single port
TwingateResourceProtocolsUdp, TwingateResourceProtocolsUdpArgs        
- Policy string
- 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, orDENY_ALL
- Ports List<string>
- List of port ranges between 1 and 65535 inclusive, in the format 100-200for a range, or8080for a single port
- Policy string
- 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, orDENY_ALL
- Ports []string
- List of port ranges between 1 and 65535 inclusive, in the format 100-200for a range, or8080for a single port
- policy String
- 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, orDENY_ALL
- ports List<String>
- List of port ranges between 1 and 65535 inclusive, in the format 100-200for a range, or8080for a single port
- policy string
- 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, orDENY_ALL
- ports string[]
- List of port ranges between 1 and 65535 inclusive, in the format 100-200for a range, or8080for a single port
- policy str
- 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, orDENY_ALL
- ports Sequence[str]
- List of port ranges between 1 and 65535 inclusive, in the format 100-200for a range, or8080for a single port
- policy String
- 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, orDENY_ALL
- ports List<String>
- List of port ranges between 1 and 65535 inclusive, in the format 100-200for a range, or8080for a single port
Import
$ pulumi import twingate:index/twingateResource:TwingateResource resource UmVzb3VyY2U6MzQwNDQ3
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- twingate Twingate/pulumi-twingate
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the twingateTerraform Provider.
 
