twingate.TwingateResource
Explore with Pulumi AI
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,
access_groups: Optional[Sequence[TwingateResourceAccessGroupArgs]] = None,
access_services: Optional[Sequence[TwingateResourceAccessServiceArgs]] = None,
alias: 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,
security_policy_id: Optional[str] = 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",
AccessGroups = new[]
{
new Twingate.Inputs.TwingateResourceAccessGroupArgs
{
GroupId = "string",
SecurityPolicyId = "string",
UsageBasedAutolockDurationDays = 0,
},
},
AccessServices = new[]
{
new Twingate.Inputs.TwingateResourceAccessServiceArgs
{
ServiceAccountId = "string",
},
},
Alias = "string",
IsActive = false,
IsAuthoritative = false,
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",
},
},
},
SecurityPolicyId = "string",
});
example, err := twingate.NewTwingateResource(ctx, "twingateResourceResource", &twingate.TwingateResourceArgs{
Address: pulumi.String("string"),
RemoteNetworkId: pulumi.String("string"),
AccessGroups: twingate.TwingateResourceAccessGroupArray{
&twingate.TwingateResourceAccessGroupArgs{
GroupId: pulumi.String("string"),
SecurityPolicyId: pulumi.String("string"),
UsageBasedAutolockDurationDays: pulumi.Int(0),
},
},
AccessServices: twingate.TwingateResourceAccessServiceArray{
&twingate.TwingateResourceAccessServiceArgs{
ServiceAccountId: pulumi.String("string"),
},
},
Alias: pulumi.String("string"),
IsActive: pulumi.Bool(false),
IsAuthoritative: pulumi.Bool(false),
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"),
},
},
},
SecurityPolicyId: pulumi.String("string"),
})
var twingateResourceResource = new TwingateResource("twingateResourceResource", TwingateResourceArgs.builder()
.address("string")
.remoteNetworkId("string")
.accessGroups(TwingateResourceAccessGroupArgs.builder()
.groupId("string")
.securityPolicyId("string")
.usageBasedAutolockDurationDays(0)
.build())
.accessServices(TwingateResourceAccessServiceArgs.builder()
.serviceAccountId("string")
.build())
.alias("string")
.isActive(false)
.isAuthoritative(false)
.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())
.securityPolicyId("string")
.build());
twingate_resource_resource = twingate.TwingateResource("twingateResourceResource",
address="string",
remote_network_id="string",
access_groups=[twingate.TwingateResourceAccessGroupArgs(
group_id="string",
security_policy_id="string",
usage_based_autolock_duration_days=0,
)],
access_services=[twingate.TwingateResourceAccessServiceArgs(
service_account_id="string",
)],
alias="string",
is_active=False,
is_authoritative=False,
is_browser_shortcut_enabled=False,
is_visible=False,
name="string",
protocols=twingate.TwingateResourceProtocolsArgs(
allow_icmp=False,
tcp=twingate.TwingateResourceProtocolsTcpArgs(
policy="string",
ports=["string"],
),
udp=twingate.TwingateResourceProtocolsUdpArgs(
policy="string",
ports=["string"],
),
),
security_policy_id="string")
const twingateResourceResource = new twingate.TwingateResource("twingateResourceResource", {
address: "string",
remoteNetworkId: "string",
accessGroups: [{
groupId: "string",
securityPolicyId: "string",
usageBasedAutolockDurationDays: 0,
}],
accessServices: [{
serviceAccountId: "string",
}],
alias: "string",
isActive: false,
isAuthoritative: false,
isBrowserShortcutEnabled: false,
isVisible: false,
name: "string",
protocols: {
allowIcmp: false,
tcp: {
policy: "string",
ports: ["string"],
},
udp: {
policy: "string",
ports: ["string"],
},
},
securityPolicyId: "string",
});
type: twingate:TwingateResource
properties:
accessGroups:
- groupId: string
securityPolicyId: string
usageBasedAutolockDurationDays: 0
accessServices:
- serviceAccountId: string
address: string
alias: 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
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
The TwingateResource resource accepts the following input properties:
- Address string
- The Resource's IP/CIDR or FQDN/DNS zone
- Remote
Network stringId - Remote Network ID where the Resource lives
- Access
Groups List<Twingate.Twingate. Inputs. Twingate Resource Access Group> - Restrict access to certain group
- Access
Services 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.
- 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 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.
- Security
Policy stringId - The ID of a
twingate.getTwingateSecurityPolicy
to set as this Resource's Security Policy. Default isDefault Policy
.
- Address string
- The Resource's IP/CIDR or FQDN/DNS zone
- Remote
Network stringId - Remote Network ID where the Resource lives
- Access
Groups []TwingateResource Access Group Args - Restrict access to certain group
- Access
Services []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.
- 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 string
- The name of the Resource
- Protocols
Twingate
Resource 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 stringId - The ID of a
twingate.getTwingateSecurityPolicy
to set as this Resource's Security Policy. Default isDefault Policy
.
- address String
- The Resource's IP/CIDR or FQDN/DNS zone
- remote
Network StringId - Remote Network ID where the Resource lives
- access
Groups List<TwingateResource Access Group> - Restrict access to certain group
- access
Services 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.
- is
Active Boolean - Set the resource as active or inactive. Default is
true
. - Boolean
- is
Browser BooleanShortcut Enabled - Controls whether an "Open in Browser" shortcut will be shown for this Resource in the Twingate Client. Default is
false
. - is
Visible 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
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.
- security
Policy StringId - The ID of a
twingate.getTwingateSecurityPolicy
to set as this Resource's Security Policy. Default isDefault Policy
.
- address string
- The Resource's IP/CIDR or FQDN/DNS zone
- remote
Network stringId - Remote Network ID where the Resource lives
- access
Groups TwingateResource Access Group[] - Restrict access to certain group
- access
Services 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.
- is
Active boolean - Set the resource as active or inactive. Default is
true
. - boolean
- is
Browser booleanShortcut Enabled - Controls whether an "Open in Browser" shortcut will be shown for this Resource in the Twingate Client. Default is
false
. - is
Visible 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
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.
- security
Policy stringId - The ID of a
twingate.getTwingateSecurityPolicy
to set as this Resource's Security Policy. Default isDefault Policy
.
- 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.
- 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
Twingate
Resource 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.getTwingateSecurityPolicy
to set as this Resource's Security Policy. Default isDefault Policy
.
- address String
- The Resource's IP/CIDR or FQDN/DNS zone
- remote
Network StringId - Remote Network ID where the Resource lives
- access
Groups List<Property Map> - Restrict access to certain group
- access
Services 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.
- is
Active Boolean - Set the resource as active or inactive. Default is
true
. - Boolean
- is
Browser BooleanShortcut Enabled - Controls whether an "Open in Browser" shortcut will be shown for this Resource in the Twingate Client. Default is
false
. - is
Visible 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.
- security
Policy StringId - The ID of a
twingate.getTwingateSecurityPolicy
to set as this Resource's Security Policy. Default isDefault Policy
.
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.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
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,
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) -> TwingateResource
func 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)
Resource lookup is not supported in YAML
- 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.
- Access
Groups List<Twingate.Twingate. Inputs. Twingate Resource Access Group> - Restrict access to certain group
- Access
Services 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.
- 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 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.
- Remote
Network stringId - Remote Network ID where the Resource lives
- Security
Policy stringId - The ID of a
twingate.getTwingateSecurityPolicy
to set as this Resource's Security Policy. Default isDefault Policy
.
- Access
Groups []TwingateResource Access Group Args - Restrict access to certain group
- Access
Services []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.
- 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 string
- The name of the Resource
- Protocols
Twingate
Resource 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 stringId - Remote Network ID where the Resource lives
- Security
Policy stringId - The ID of a
twingate.getTwingateSecurityPolicy
to set as this Resource's Security Policy. Default isDefault Policy
.
- access
Groups List<TwingateResource Access Group> - Restrict access to certain group
- access
Services 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.
- is
Active Boolean - Set the resource as active or inactive. Default is
true
. - Boolean
- is
Browser BooleanShortcut Enabled - Controls whether an "Open in Browser" shortcut will be shown for this Resource in the Twingate Client. Default is
false
. - is
Visible 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
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.
- remote
Network StringId - Remote Network ID where the Resource lives
- security
Policy StringId - The ID of a
twingate.getTwingateSecurityPolicy
to set as this Resource's Security Policy. Default isDefault Policy
.
- access
Groups TwingateResource Access Group[] - Restrict access to certain group
- access
Services 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.
- is
Active boolean - Set the resource as active or inactive. Default is
true
. - boolean
- is
Browser booleanShortcut Enabled - Controls whether an "Open in Browser" shortcut will be shown for this Resource in the Twingate Client. Default is
false
. - is
Visible 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
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.
- remote
Network stringId - Remote Network ID where the Resource lives
- security
Policy stringId - The ID of a
twingate.getTwingateSecurityPolicy
to set as this Resource's Security Policy. Default isDefault Policy
.
- 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.
- 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
Twingate
Resource 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.getTwingateSecurityPolicy
to set as this Resource's Security Policy. Default isDefault Policy
.
- access
Groups List<Property Map> - Restrict access to certain group
- access
Services 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.
- is
Active Boolean - Set the resource as active or inactive. Default is
true
. - Boolean
- is
Browser BooleanShortcut Enabled - Controls whether an "Open in Browser" shortcut will be shown for this Resource in the Twingate Client. Default is
false
. - is
Visible 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.
- remote
Network StringId - Remote Network ID where the Resource lives
- security
Policy StringId - The ID of a
twingate.getTwingateSecurityPolicy
to set as this Resource's Security Policy. Default isDefault Policy
.
Supporting Types
TwingateResourceAccessGroup, TwingateResourceAccessGroupArgs
- Group
Id string - Group ID that will have permission to access the Resource.
- Security
Policy stringId - The ID of a
twingate.getTwingateSecurityPolicy
to 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).
- Group
Id string - Group ID that will have permission to access the Resource.
- Security
Policy stringId - The ID of a
twingate.getTwingateSecurityPolicy
to 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).
- group
Id String - Group ID that will have permission to access the Resource.
- security
Policy StringId - The ID of a
twingate.getTwingateSecurityPolicy
to use as the access policy for the group IDs in the access block. - usage
Based IntegerAutolock Duration Days - The usage-based auto-lock duration configured on the edge (in days).
- group
Id string - Group ID that will have permission to access the Resource.
- security
Policy stringId - The ID of a
twingate.getTwingateSecurityPolicy
to use as the access policy for the group IDs in the access block. - usage
Based numberAutolock Duration Days - The usage-based auto-lock duration configured on the edge (in days).
- group_
id str - Group ID that will have permission to access the Resource.
- security_
policy_ strid - The ID of a
twingate.getTwingateSecurityPolicy
to 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).
- group
Id String - Group ID that will have permission to access the Resource.
- security
Policy StringId - The ID of a
twingate.getTwingateSecurityPolicy
to use as the access policy for the group IDs in the access block. - usage
Based NumberAutolock Duration Days - The usage-based auto-lock duration configured on the edge (in days).
TwingateResourceAccessService, TwingateResourceAccessServiceArgs
- Service
Account stringId - The ID of the service account that should have access to this Resource.
- Service
Account stringId - The ID of the service account that should have access to this Resource.
- service
Account StringId - The ID of the service account that should have access to this Resource.
- service
Account 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.
- service
Account StringId - The ID of the service account that should have access to this Resource.
TwingateResourceProtocols, TwingateResourceProtocolsArgs
- Allow
Icmp bool - Whether to allow ICMP (ping) traffic
- Tcp
Twingate.
Twingate. Inputs. Twingate Resource Protocols Tcp - Udp
Twingate.
Twingate. Inputs. Twingate Resource Protocols Udp
- Allow
Icmp bool - Whether to allow ICMP (ping) traffic
- Tcp
Twingate
Resource Protocols Tcp - Udp
Twingate
Resource Protocols Udp
- allow
Icmp Boolean - Whether to allow ICMP (ping) traffic
- tcp
Twingate
Resource Protocols Tcp - udp
Twingate
Resource Protocols Udp
- allow
Icmp boolean - Whether to allow ICMP (ping) traffic
- tcp
Twingate
Resource Protocols Tcp - udp
Twingate
Resource Protocols Udp
- allow_
icmp bool - Whether to allow ICMP (ping) traffic
- tcp
Twingate
Resource Protocols Tcp - udp
Twingate
Resource Protocols Udp
- allow
Icmp 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-200
for a range, or8080
for 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-200
for a range, or8080
for 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-200
for a range, or8080
for 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-200
for a range, or8080
for 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-200
for a range, or8080
for 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-200
for a range, or8080
for 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-200
for a range, or8080
for 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-200
for a range, or8080
for 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-200
for a range, or8080
for 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-200
for a range, or8080
for 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-200
for a range, or8080
for 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-200
for a range, or8080
for 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
twingate
Terraform Provider.