nsxt.VpcGatewayPolicy
Explore with Pulumi AI
Create VpcGatewayPolicy Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new VpcGatewayPolicy(name: string, args: VpcGatewayPolicyArgs, opts?: CustomResourceOptions);
@overload
def VpcGatewayPolicy(resource_name: str,
args: VpcGatewayPolicyArgs,
opts: Optional[ResourceOptions] = None)
@overload
def VpcGatewayPolicy(resource_name: str,
opts: Optional[ResourceOptions] = None,
context: Optional[VpcGatewayPolicyContextArgs] = None,
display_name: Optional[str] = None,
comments: Optional[str] = None,
description: Optional[str] = None,
locked: Optional[bool] = None,
nsx_id: Optional[str] = None,
rules: Optional[Sequence[VpcGatewayPolicyRuleArgs]] = None,
sequence_number: Optional[float] = None,
stateful: Optional[bool] = None,
tags: Optional[Sequence[VpcGatewayPolicyTagArgs]] = None,
tcp_strict: Optional[bool] = None,
vpc_gateway_policy_id: Optional[str] = None)
func NewVpcGatewayPolicy(ctx *Context, name string, args VpcGatewayPolicyArgs, opts ...ResourceOption) (*VpcGatewayPolicy, error)
public VpcGatewayPolicy(string name, VpcGatewayPolicyArgs args, CustomResourceOptions? opts = null)
public VpcGatewayPolicy(String name, VpcGatewayPolicyArgs args)
public VpcGatewayPolicy(String name, VpcGatewayPolicyArgs args, CustomResourceOptions options)
type: nsxt:VpcGatewayPolicy
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 VpcGatewayPolicyArgs
- 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 VpcGatewayPolicyArgs
- 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 VpcGatewayPolicyArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args VpcGatewayPolicyArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args VpcGatewayPolicyArgs
- 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 vpcGatewayPolicyResource = new Nsxt.VpcGatewayPolicy("vpcGatewayPolicyResource", new()
{
Context = new Nsxt.Inputs.VpcGatewayPolicyContextArgs
{
ProjectId = "string",
VpcId = "string",
},
DisplayName = "string",
Comments = "string",
Description = "string",
Locked = false,
NsxId = "string",
Rules = new[]
{
new Nsxt.Inputs.VpcGatewayPolicyRuleArgs
{
DisplayName = "string",
Notes = "string",
Path = "string",
DestinationsExcluded = false,
Direction = "string",
Disabled = false,
Description = "string",
IpVersion = "string",
LogLabel = "string",
Logged = false,
Action = "string",
DestinationGroups = new[]
{
"string",
},
Profiles = new[]
{
"string",
},
NsxId = "string",
Revision = 0,
RuleId = 0,
Scopes = new[]
{
"string",
},
SequenceNumber = 0,
Services = new[]
{
"string",
},
SourceGroups = new[]
{
"string",
},
SourcesExcluded = false,
Tags = new[]
{
new Nsxt.Inputs.VpcGatewayPolicyRuleTagArgs
{
Scope = "string",
Tag = "string",
},
},
},
},
SequenceNumber = 0,
Stateful = false,
Tags = new[]
{
new Nsxt.Inputs.VpcGatewayPolicyTagArgs
{
Scope = "string",
Tag = "string",
},
},
TcpStrict = false,
VpcGatewayPolicyId = "string",
});
example, err := nsxt.NewVpcGatewayPolicy(ctx, "vpcGatewayPolicyResource", &nsxt.VpcGatewayPolicyArgs{
Context: &nsxt.VpcGatewayPolicyContextArgs{
ProjectId: pulumi.String("string"),
VpcId: pulumi.String("string"),
},
DisplayName: pulumi.String("string"),
Comments: pulumi.String("string"),
Description: pulumi.String("string"),
Locked: pulumi.Bool(false),
NsxId: pulumi.String("string"),
Rules: nsxt.VpcGatewayPolicyRuleArray{
&nsxt.VpcGatewayPolicyRuleArgs{
DisplayName: pulumi.String("string"),
Notes: pulumi.String("string"),
Path: pulumi.String("string"),
DestinationsExcluded: pulumi.Bool(false),
Direction: pulumi.String("string"),
Disabled: pulumi.Bool(false),
Description: pulumi.String("string"),
IpVersion: pulumi.String("string"),
LogLabel: pulumi.String("string"),
Logged: pulumi.Bool(false),
Action: pulumi.String("string"),
DestinationGroups: pulumi.StringArray{
pulumi.String("string"),
},
Profiles: pulumi.StringArray{
pulumi.String("string"),
},
NsxId: pulumi.String("string"),
Revision: pulumi.Float64(0),
RuleId: pulumi.Float64(0),
Scopes: pulumi.StringArray{
pulumi.String("string"),
},
SequenceNumber: pulumi.Float64(0),
Services: pulumi.StringArray{
pulumi.String("string"),
},
SourceGroups: pulumi.StringArray{
pulumi.String("string"),
},
SourcesExcluded: pulumi.Bool(false),
Tags: nsxt.VpcGatewayPolicyRuleTagArray{
&nsxt.VpcGatewayPolicyRuleTagArgs{
Scope: pulumi.String("string"),
Tag: pulumi.String("string"),
},
},
},
},
SequenceNumber: pulumi.Float64(0),
Stateful: pulumi.Bool(false),
Tags: nsxt.VpcGatewayPolicyTagArray{
&nsxt.VpcGatewayPolicyTagArgs{
Scope: pulumi.String("string"),
Tag: pulumi.String("string"),
},
},
TcpStrict: pulumi.Bool(false),
VpcGatewayPolicyId: pulumi.String("string"),
})
var vpcGatewayPolicyResource = new VpcGatewayPolicy("vpcGatewayPolicyResource", VpcGatewayPolicyArgs.builder()
.context(VpcGatewayPolicyContextArgs.builder()
.projectId("string")
.vpcId("string")
.build())
.displayName("string")
.comments("string")
.description("string")
.locked(false)
.nsxId("string")
.rules(VpcGatewayPolicyRuleArgs.builder()
.displayName("string")
.notes("string")
.path("string")
.destinationsExcluded(false)
.direction("string")
.disabled(false)
.description("string")
.ipVersion("string")
.logLabel("string")
.logged(false)
.action("string")
.destinationGroups("string")
.profiles("string")
.nsxId("string")
.revision(0)
.ruleId(0)
.scopes("string")
.sequenceNumber(0)
.services("string")
.sourceGroups("string")
.sourcesExcluded(false)
.tags(VpcGatewayPolicyRuleTagArgs.builder()
.scope("string")
.tag("string")
.build())
.build())
.sequenceNumber(0)
.stateful(false)
.tags(VpcGatewayPolicyTagArgs.builder()
.scope("string")
.tag("string")
.build())
.tcpStrict(false)
.vpcGatewayPolicyId("string")
.build());
vpc_gateway_policy_resource = nsxt.VpcGatewayPolicy("vpcGatewayPolicyResource",
context={
"project_id": "string",
"vpc_id": "string",
},
display_name="string",
comments="string",
description="string",
locked=False,
nsx_id="string",
rules=[{
"display_name": "string",
"notes": "string",
"path": "string",
"destinations_excluded": False,
"direction": "string",
"disabled": False,
"description": "string",
"ip_version": "string",
"log_label": "string",
"logged": False,
"action": "string",
"destination_groups": ["string"],
"profiles": ["string"],
"nsx_id": "string",
"revision": 0,
"rule_id": 0,
"scopes": ["string"],
"sequence_number": 0,
"services": ["string"],
"source_groups": ["string"],
"sources_excluded": False,
"tags": [{
"scope": "string",
"tag": "string",
}],
}],
sequence_number=0,
stateful=False,
tags=[{
"scope": "string",
"tag": "string",
}],
tcp_strict=False,
vpc_gateway_policy_id="string")
const vpcGatewayPolicyResource = new nsxt.VpcGatewayPolicy("vpcGatewayPolicyResource", {
context: {
projectId: "string",
vpcId: "string",
},
displayName: "string",
comments: "string",
description: "string",
locked: false,
nsxId: "string",
rules: [{
displayName: "string",
notes: "string",
path: "string",
destinationsExcluded: false,
direction: "string",
disabled: false,
description: "string",
ipVersion: "string",
logLabel: "string",
logged: false,
action: "string",
destinationGroups: ["string"],
profiles: ["string"],
nsxId: "string",
revision: 0,
ruleId: 0,
scopes: ["string"],
sequenceNumber: 0,
services: ["string"],
sourceGroups: ["string"],
sourcesExcluded: false,
tags: [{
scope: "string",
tag: "string",
}],
}],
sequenceNumber: 0,
stateful: false,
tags: [{
scope: "string",
tag: "string",
}],
tcpStrict: false,
vpcGatewayPolicyId: "string",
});
type: nsxt:VpcGatewayPolicy
properties:
comments: string
context:
projectId: string
vpcId: string
description: string
displayName: string
locked: false
nsxId: string
rules:
- action: string
description: string
destinationGroups:
- string
destinationsExcluded: false
direction: string
disabled: false
displayName: string
ipVersion: string
logLabel: string
logged: false
notes: string
nsxId: string
path: string
profiles:
- string
revision: 0
ruleId: 0
scopes:
- string
sequenceNumber: 0
services:
- string
sourceGroups:
- string
sourcesExcluded: false
tags:
- scope: string
tag: string
sequenceNumber: 0
stateful: false
tags:
- scope: string
tag: string
tcpStrict: false
vpcGatewayPolicyId: string
VpcGatewayPolicy 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 VpcGatewayPolicy resource accepts the following input properties:
- Context
Vpc
Gateway Policy Context - The context which the object belongs to
- Display
Name string - Display name of the resource.
- Comments string
- Comments for this Gateway Policy including lock/unlock comments.
- Description string
- Description of the resource.
- Locked bool
- A boolean value indicating if the policy is locked. If locked, no other users can update the resource.
- Nsx
Id string - The NSX ID of this resource. If set, this ID will be used to create the Gateway Policy resource.
- Rules
List<Vpc
Gateway Policy Rule> - A repeatable block to specify rules for the Gateway Policy. Each rule includes the following fields:
- Sequence
Number double - An int value used to resolve conflicts between security policies
- Stateful bool
- A boolean value to indicate if this Policy is stateful. When it is stateful, the state of the network connects are tracked and a stateful packet inspection is performed.
- List<Vpc
Gateway Policy Tag> - A list of scope + tag pairs to associate with this Gateway Policy.
- Tcp
Strict bool - A boolean value to enable/disable a 3 way TCP handshake is done before the data packets are sent.
- Vpc
Gateway stringPolicy Id - ID of the Security Policy.
- Context
Vpc
Gateway Policy Context Args - The context which the object belongs to
- Display
Name string - Display name of the resource.
- Comments string
- Comments for this Gateway Policy including lock/unlock comments.
- Description string
- Description of the resource.
- Locked bool
- A boolean value indicating if the policy is locked. If locked, no other users can update the resource.
- Nsx
Id string - The NSX ID of this resource. If set, this ID will be used to create the Gateway Policy resource.
- Rules
[]Vpc
Gateway Policy Rule Args - A repeatable block to specify rules for the Gateway Policy. Each rule includes the following fields:
- Sequence
Number float64 - An int value used to resolve conflicts between security policies
- Stateful bool
- A boolean value to indicate if this Policy is stateful. When it is stateful, the state of the network connects are tracked and a stateful packet inspection is performed.
- []Vpc
Gateway Policy Tag Args - A list of scope + tag pairs to associate with this Gateway Policy.
- Tcp
Strict bool - A boolean value to enable/disable a 3 way TCP handshake is done before the data packets are sent.
- Vpc
Gateway stringPolicy Id - ID of the Security Policy.
- context
Vpc
Gateway Policy Context - The context which the object belongs to
- display
Name String - Display name of the resource.
- comments String
- Comments for this Gateway Policy including lock/unlock comments.
- description String
- Description of the resource.
- locked Boolean
- A boolean value indicating if the policy is locked. If locked, no other users can update the resource.
- nsx
Id String - The NSX ID of this resource. If set, this ID will be used to create the Gateway Policy resource.
- rules
List<Vpc
Gateway Policy Rule> - A repeatable block to specify rules for the Gateway Policy. Each rule includes the following fields:
- sequence
Number Double - An int value used to resolve conflicts between security policies
- stateful Boolean
- A boolean value to indicate if this Policy is stateful. When it is stateful, the state of the network connects are tracked and a stateful packet inspection is performed.
- List<Vpc
Gateway Policy Tag> - A list of scope + tag pairs to associate with this Gateway Policy.
- tcp
Strict Boolean - A boolean value to enable/disable a 3 way TCP handshake is done before the data packets are sent.
- vpc
Gateway StringPolicy Id - ID of the Security Policy.
- context
Vpc
Gateway Policy Context - The context which the object belongs to
- display
Name string - Display name of the resource.
- comments string
- Comments for this Gateway Policy including lock/unlock comments.
- description string
- Description of the resource.
- locked boolean
- A boolean value indicating if the policy is locked. If locked, no other users can update the resource.
- nsx
Id string - The NSX ID of this resource. If set, this ID will be used to create the Gateway Policy resource.
- rules
Vpc
Gateway Policy Rule[] - A repeatable block to specify rules for the Gateway Policy. Each rule includes the following fields:
- sequence
Number number - An int value used to resolve conflicts between security policies
- stateful boolean
- A boolean value to indicate if this Policy is stateful. When it is stateful, the state of the network connects are tracked and a stateful packet inspection is performed.
- Vpc
Gateway Policy Tag[] - A list of scope + tag pairs to associate with this Gateway Policy.
- tcp
Strict boolean - A boolean value to enable/disable a 3 way TCP handshake is done before the data packets are sent.
- vpc
Gateway stringPolicy Id - ID of the Security Policy.
- context
Vpc
Gateway Policy Context Args - The context which the object belongs to
- display_
name str - Display name of the resource.
- comments str
- Comments for this Gateway Policy including lock/unlock comments.
- description str
- Description of the resource.
- locked bool
- A boolean value indicating if the policy is locked. If locked, no other users can update the resource.
- nsx_
id str - The NSX ID of this resource. If set, this ID will be used to create the Gateway Policy resource.
- rules
Sequence[Vpc
Gateway Policy Rule Args] - A repeatable block to specify rules for the Gateway Policy. Each rule includes the following fields:
- sequence_
number float - An int value used to resolve conflicts between security policies
- stateful bool
- A boolean value to indicate if this Policy is stateful. When it is stateful, the state of the network connects are tracked and a stateful packet inspection is performed.
- Sequence[Vpc
Gateway Policy Tag Args] - A list of scope + tag pairs to associate with this Gateway Policy.
- tcp_
strict bool - A boolean value to enable/disable a 3 way TCP handshake is done before the data packets are sent.
- vpc_
gateway_ strpolicy_ id - ID of the Security Policy.
- context Property Map
- The context which the object belongs to
- display
Name String - Display name of the resource.
- comments String
- Comments for this Gateway Policy including lock/unlock comments.
- description String
- Description of the resource.
- locked Boolean
- A boolean value indicating if the policy is locked. If locked, no other users can update the resource.
- nsx
Id String - The NSX ID of this resource. If set, this ID will be used to create the Gateway Policy resource.
- rules List<Property Map>
- A repeatable block to specify rules for the Gateway Policy. Each rule includes the following fields:
- sequence
Number Number - An int value used to resolve conflicts between security policies
- stateful Boolean
- A boolean value to indicate if this Policy is stateful. When it is stateful, the state of the network connects are tracked and a stateful packet inspection is performed.
- List<Property Map>
- A list of scope + tag pairs to associate with this Gateway Policy.
- tcp
Strict Boolean - A boolean value to enable/disable a 3 way TCP handshake is done before the data packets are sent.
- vpc
Gateway StringPolicy Id - ID of the Security Policy.
Outputs
All input properties are implicitly available as output properties. Additionally, the VpcGatewayPolicy resource produces the following output properties:
Look up Existing VpcGatewayPolicy Resource
Get an existing VpcGatewayPolicy 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?: VpcGatewayPolicyState, opts?: CustomResourceOptions): VpcGatewayPolicy
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
comments: Optional[str] = None,
context: Optional[VpcGatewayPolicyContextArgs] = None,
description: Optional[str] = None,
display_name: Optional[str] = None,
locked: Optional[bool] = None,
nsx_id: Optional[str] = None,
path: Optional[str] = None,
revision: Optional[float] = None,
rules: Optional[Sequence[VpcGatewayPolicyRuleArgs]] = None,
sequence_number: Optional[float] = None,
stateful: Optional[bool] = None,
tags: Optional[Sequence[VpcGatewayPolicyTagArgs]] = None,
tcp_strict: Optional[bool] = None,
vpc_gateway_policy_id: Optional[str] = None) -> VpcGatewayPolicy
func GetVpcGatewayPolicy(ctx *Context, name string, id IDInput, state *VpcGatewayPolicyState, opts ...ResourceOption) (*VpcGatewayPolicy, error)
public static VpcGatewayPolicy Get(string name, Input<string> id, VpcGatewayPolicyState? state, CustomResourceOptions? opts = null)
public static VpcGatewayPolicy get(String name, Output<String> id, VpcGatewayPolicyState state, CustomResourceOptions options)
resources: _: type: nsxt:VpcGatewayPolicy 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.
- Comments string
- Comments for this Gateway Policy including lock/unlock comments.
- Context
Vpc
Gateway Policy Context - The context which the object belongs to
- Description string
- Description of the resource.
- Display
Name string - Display name of the resource.
- Locked bool
- A boolean value indicating if the policy is locked. If locked, no other users can update the resource.
- Nsx
Id string - The NSX ID of this resource. If set, this ID will be used to create the Gateway Policy resource.
- Path string
- The NSX path of the policy resource.
- Revision double
- Indicates current revision number of the object as seen by NSX-T API server. This attribute can be useful for debugging.
- Rules
List<Vpc
Gateway Policy Rule> - A repeatable block to specify rules for the Gateway Policy. Each rule includes the following fields:
- Sequence
Number double - An int value used to resolve conflicts between security policies
- Stateful bool
- A boolean value to indicate if this Policy is stateful. When it is stateful, the state of the network connects are tracked and a stateful packet inspection is performed.
- List<Vpc
Gateway Policy Tag> - A list of scope + tag pairs to associate with this Gateway Policy.
- Tcp
Strict bool - A boolean value to enable/disable a 3 way TCP handshake is done before the data packets are sent.
- Vpc
Gateway stringPolicy Id - ID of the Security Policy.
- Comments string
- Comments for this Gateway Policy including lock/unlock comments.
- Context
Vpc
Gateway Policy Context Args - The context which the object belongs to
- Description string
- Description of the resource.
- Display
Name string - Display name of the resource.
- Locked bool
- A boolean value indicating if the policy is locked. If locked, no other users can update the resource.
- Nsx
Id string - The NSX ID of this resource. If set, this ID will be used to create the Gateway Policy resource.
- Path string
- The NSX path of the policy resource.
- Revision float64
- Indicates current revision number of the object as seen by NSX-T API server. This attribute can be useful for debugging.
- Rules
[]Vpc
Gateway Policy Rule Args - A repeatable block to specify rules for the Gateway Policy. Each rule includes the following fields:
- Sequence
Number float64 - An int value used to resolve conflicts between security policies
- Stateful bool
- A boolean value to indicate if this Policy is stateful. When it is stateful, the state of the network connects are tracked and a stateful packet inspection is performed.
- []Vpc
Gateway Policy Tag Args - A list of scope + tag pairs to associate with this Gateway Policy.
- Tcp
Strict bool - A boolean value to enable/disable a 3 way TCP handshake is done before the data packets are sent.
- Vpc
Gateway stringPolicy Id - ID of the Security Policy.
- comments String
- Comments for this Gateway Policy including lock/unlock comments.
- context
Vpc
Gateway Policy Context - The context which the object belongs to
- description String
- Description of the resource.
- display
Name String - Display name of the resource.
- locked Boolean
- A boolean value indicating if the policy is locked. If locked, no other users can update the resource.
- nsx
Id String - The NSX ID of this resource. If set, this ID will be used to create the Gateway Policy resource.
- path String
- The NSX path of the policy resource.
- revision Double
- Indicates current revision number of the object as seen by NSX-T API server. This attribute can be useful for debugging.
- rules
List<Vpc
Gateway Policy Rule> - A repeatable block to specify rules for the Gateway Policy. Each rule includes the following fields:
- sequence
Number Double - An int value used to resolve conflicts between security policies
- stateful Boolean
- A boolean value to indicate if this Policy is stateful. When it is stateful, the state of the network connects are tracked and a stateful packet inspection is performed.
- List<Vpc
Gateway Policy Tag> - A list of scope + tag pairs to associate with this Gateway Policy.
- tcp
Strict Boolean - A boolean value to enable/disable a 3 way TCP handshake is done before the data packets are sent.
- vpc
Gateway StringPolicy Id - ID of the Security Policy.
- comments string
- Comments for this Gateway Policy including lock/unlock comments.
- context
Vpc
Gateway Policy Context - The context which the object belongs to
- description string
- Description of the resource.
- display
Name string - Display name of the resource.
- locked boolean
- A boolean value indicating if the policy is locked. If locked, no other users can update the resource.
- nsx
Id string - The NSX ID of this resource. If set, this ID will be used to create the Gateway Policy resource.
- path string
- The NSX path of the policy resource.
- revision number
- Indicates current revision number of the object as seen by NSX-T API server. This attribute can be useful for debugging.
- rules
Vpc
Gateway Policy Rule[] - A repeatable block to specify rules for the Gateway Policy. Each rule includes the following fields:
- sequence
Number number - An int value used to resolve conflicts between security policies
- stateful boolean
- A boolean value to indicate if this Policy is stateful. When it is stateful, the state of the network connects are tracked and a stateful packet inspection is performed.
- Vpc
Gateway Policy Tag[] - A list of scope + tag pairs to associate with this Gateway Policy.
- tcp
Strict boolean - A boolean value to enable/disable a 3 way TCP handshake is done before the data packets are sent.
- vpc
Gateway stringPolicy Id - ID of the Security Policy.
- comments str
- Comments for this Gateway Policy including lock/unlock comments.
- context
Vpc
Gateway Policy Context Args - The context which the object belongs to
- description str
- Description of the resource.
- display_
name str - Display name of the resource.
- locked bool
- A boolean value indicating if the policy is locked. If locked, no other users can update the resource.
- nsx_
id str - The NSX ID of this resource. If set, this ID will be used to create the Gateway Policy resource.
- path str
- The NSX path of the policy resource.
- revision float
- Indicates current revision number of the object as seen by NSX-T API server. This attribute can be useful for debugging.
- rules
Sequence[Vpc
Gateway Policy Rule Args] - A repeatable block to specify rules for the Gateway Policy. Each rule includes the following fields:
- sequence_
number float - An int value used to resolve conflicts between security policies
- stateful bool
- A boolean value to indicate if this Policy is stateful. When it is stateful, the state of the network connects are tracked and a stateful packet inspection is performed.
- Sequence[Vpc
Gateway Policy Tag Args] - A list of scope + tag pairs to associate with this Gateway Policy.
- tcp_
strict bool - A boolean value to enable/disable a 3 way TCP handshake is done before the data packets are sent.
- vpc_
gateway_ strpolicy_ id - ID of the Security Policy.
- comments String
- Comments for this Gateway Policy including lock/unlock comments.
- context Property Map
- The context which the object belongs to
- description String
- Description of the resource.
- display
Name String - Display name of the resource.
- locked Boolean
- A boolean value indicating if the policy is locked. If locked, no other users can update the resource.
- nsx
Id String - The NSX ID of this resource. If set, this ID will be used to create the Gateway Policy resource.
- path String
- The NSX path of the policy resource.
- revision Number
- Indicates current revision number of the object as seen by NSX-T API server. This attribute can be useful for debugging.
- rules List<Property Map>
- A repeatable block to specify rules for the Gateway Policy. Each rule includes the following fields:
- sequence
Number Number - An int value used to resolve conflicts between security policies
- stateful Boolean
- A boolean value to indicate if this Policy is stateful. When it is stateful, the state of the network connects are tracked and a stateful packet inspection is performed.
- List<Property Map>
- A list of scope + tag pairs to associate with this Gateway Policy.
- tcp
Strict Boolean - A boolean value to enable/disable a 3 way TCP handshake is done before the data packets are sent.
- vpc
Gateway StringPolicy Id - ID of the Security Policy.
Supporting Types
VpcGatewayPolicyContext, VpcGatewayPolicyContextArgs
- project_
id str - The ID of the project which the object belongs to
- vpc_
id str - The ID of the VPC which the object belongs to
VpcGatewayPolicyRule, VpcGatewayPolicyRuleArgs
- Display
Name string - Display name of the resource.
- Action string
- The action for the Rule. Must be one of:
ALLOW
,DROP
orREJECT
. Defaults toALLOW
. - Description string
- Description of the resource.
- Destination
Groups List<string> - Set of group paths that serve as the destination for this rule. IPs, IP ranges, or CIDRs. An empty set can be used to specify "Any".
- Destinations
Excluded bool - A boolean value indicating negation of destination groups.
- Direction string
- The traffic direction for the policy. Must be one of:
IN
,OUT
orIN_OUT
. Defaults toIN_OUT
. - Disabled bool
- A boolean value to indicate the rule is disabled. Defaults to
false
. - Ip
Version string - The IP Protocol for the rule. Must be one of:
IPV4
,IPV6
orIPV4_IPV6
. Defaults toIPV4_IPV6
. - Log
Label string - Additional information (string) which will be propagated to the rule syslog.
- Logged bool
- A boolean flag to enable packet logging.
- Notes string
- Text for additional notes on changes for the rule.
- Nsx
Id string - The NSX ID of this resource. If set, this ID will be used to create the Gateway Policy resource.
- Path string
- The NSX path of the policy resource.
- Profiles List<string>
- A list of context profiles for the rule.
- Revision double
- Indicates current revision number of the object as seen by NSX-T API server. This attribute can be useful for debugging.
- Rule
Id double - Unique positive number that is assigned by the system and is useful for debugging.
- Scopes List<string>
- List of policy paths where the rule is applied
- Sequence
Number double - It is recommended not to specify sequence number for rules, but rather rely on provider to auto-assign them. If you choose to specify sequence numbers, you must make sure the numbers are consistent with order of the rules in configuration. Please note that sequence numbers should start with 1, not 0. To avoid confusion, either specify sequence numbers in all rules, or none at all.
- Services List<string>
- List of services to match.
- Source
Groups List<string> - Set of group paths that serve as the source for this rule. IPs, IP ranges, or CIDRs. An empty set can be used to specify "Any".
- Sources
Excluded bool - Negation of source groups
- List<Vpc
Gateway Policy Rule Tag> - A list of scope + tag pairs to associate with this Rule.
- Display
Name string - Display name of the resource.
- Action string
- The action for the Rule. Must be one of:
ALLOW
,DROP
orREJECT
. Defaults toALLOW
. - Description string
- Description of the resource.
- Destination
Groups []string - Set of group paths that serve as the destination for this rule. IPs, IP ranges, or CIDRs. An empty set can be used to specify "Any".
- Destinations
Excluded bool - A boolean value indicating negation of destination groups.
- Direction string
- The traffic direction for the policy. Must be one of:
IN
,OUT
orIN_OUT
. Defaults toIN_OUT
. - Disabled bool
- A boolean value to indicate the rule is disabled. Defaults to
false
. - Ip
Version string - The IP Protocol for the rule. Must be one of:
IPV4
,IPV6
orIPV4_IPV6
. Defaults toIPV4_IPV6
. - Log
Label string - Additional information (string) which will be propagated to the rule syslog.
- Logged bool
- A boolean flag to enable packet logging.
- Notes string
- Text for additional notes on changes for the rule.
- Nsx
Id string - The NSX ID of this resource. If set, this ID will be used to create the Gateway Policy resource.
- Path string
- The NSX path of the policy resource.
- Profiles []string
- A list of context profiles for the rule.
- Revision float64
- Indicates current revision number of the object as seen by NSX-T API server. This attribute can be useful for debugging.
- Rule
Id float64 - Unique positive number that is assigned by the system and is useful for debugging.
- Scopes []string
- List of policy paths where the rule is applied
- Sequence
Number float64 - It is recommended not to specify sequence number for rules, but rather rely on provider to auto-assign them. If you choose to specify sequence numbers, you must make sure the numbers are consistent with order of the rules in configuration. Please note that sequence numbers should start with 1, not 0. To avoid confusion, either specify sequence numbers in all rules, or none at all.
- Services []string
- List of services to match.
- Source
Groups []string - Set of group paths that serve as the source for this rule. IPs, IP ranges, or CIDRs. An empty set can be used to specify "Any".
- Sources
Excluded bool - Negation of source groups
- []Vpc
Gateway Policy Rule Tag - A list of scope + tag pairs to associate with this Rule.
- display
Name String - Display name of the resource.
- action String
- The action for the Rule. Must be one of:
ALLOW
,DROP
orREJECT
. Defaults toALLOW
. - description String
- Description of the resource.
- destination
Groups List<String> - Set of group paths that serve as the destination for this rule. IPs, IP ranges, or CIDRs. An empty set can be used to specify "Any".
- destinations
Excluded Boolean - A boolean value indicating negation of destination groups.
- direction String
- The traffic direction for the policy. Must be one of:
IN
,OUT
orIN_OUT
. Defaults toIN_OUT
. - disabled Boolean
- A boolean value to indicate the rule is disabled. Defaults to
false
. - ip
Version String - The IP Protocol for the rule. Must be one of:
IPV4
,IPV6
orIPV4_IPV6
. Defaults toIPV4_IPV6
. - log
Label String - Additional information (string) which will be propagated to the rule syslog.
- logged Boolean
- A boolean flag to enable packet logging.
- notes String
- Text for additional notes on changes for the rule.
- nsx
Id String - The NSX ID of this resource. If set, this ID will be used to create the Gateway Policy resource.
- path String
- The NSX path of the policy resource.
- profiles List<String>
- A list of context profiles for the rule.
- revision Double
- Indicates current revision number of the object as seen by NSX-T API server. This attribute can be useful for debugging.
- rule
Id Double - Unique positive number that is assigned by the system and is useful for debugging.
- scopes List<String>
- List of policy paths where the rule is applied
- sequence
Number Double - It is recommended not to specify sequence number for rules, but rather rely on provider to auto-assign them. If you choose to specify sequence numbers, you must make sure the numbers are consistent with order of the rules in configuration. Please note that sequence numbers should start with 1, not 0. To avoid confusion, either specify sequence numbers in all rules, or none at all.
- services List<String>
- List of services to match.
- source
Groups List<String> - Set of group paths that serve as the source for this rule. IPs, IP ranges, or CIDRs. An empty set can be used to specify "Any".
- sources
Excluded Boolean - Negation of source groups
- List<Vpc
Gateway Policy Rule Tag> - A list of scope + tag pairs to associate with this Rule.
- display
Name string - Display name of the resource.
- action string
- The action for the Rule. Must be one of:
ALLOW
,DROP
orREJECT
. Defaults toALLOW
. - description string
- Description of the resource.
- destination
Groups string[] - Set of group paths that serve as the destination for this rule. IPs, IP ranges, or CIDRs. An empty set can be used to specify "Any".
- destinations
Excluded boolean - A boolean value indicating negation of destination groups.
- direction string
- The traffic direction for the policy. Must be one of:
IN
,OUT
orIN_OUT
. Defaults toIN_OUT
. - disabled boolean
- A boolean value to indicate the rule is disabled. Defaults to
false
. - ip
Version string - The IP Protocol for the rule. Must be one of:
IPV4
,IPV6
orIPV4_IPV6
. Defaults toIPV4_IPV6
. - log
Label string - Additional information (string) which will be propagated to the rule syslog.
- logged boolean
- A boolean flag to enable packet logging.
- notes string
- Text for additional notes on changes for the rule.
- nsx
Id string - The NSX ID of this resource. If set, this ID will be used to create the Gateway Policy resource.
- path string
- The NSX path of the policy resource.
- profiles string[]
- A list of context profiles for the rule.
- revision number
- Indicates current revision number of the object as seen by NSX-T API server. This attribute can be useful for debugging.
- rule
Id number - Unique positive number that is assigned by the system and is useful for debugging.
- scopes string[]
- List of policy paths where the rule is applied
- sequence
Number number - It is recommended not to specify sequence number for rules, but rather rely on provider to auto-assign them. If you choose to specify sequence numbers, you must make sure the numbers are consistent with order of the rules in configuration. Please note that sequence numbers should start with 1, not 0. To avoid confusion, either specify sequence numbers in all rules, or none at all.
- services string[]
- List of services to match.
- source
Groups string[] - Set of group paths that serve as the source for this rule. IPs, IP ranges, or CIDRs. An empty set can be used to specify "Any".
- sources
Excluded boolean - Negation of source groups
- Vpc
Gateway Policy Rule Tag[] - A list of scope + tag pairs to associate with this Rule.
- display_
name str - Display name of the resource.
- action str
- The action for the Rule. Must be one of:
ALLOW
,DROP
orREJECT
. Defaults toALLOW
. - description str
- Description of the resource.
- destination_
groups Sequence[str] - Set of group paths that serve as the destination for this rule. IPs, IP ranges, or CIDRs. An empty set can be used to specify "Any".
- destinations_
excluded bool - A boolean value indicating negation of destination groups.
- direction str
- The traffic direction for the policy. Must be one of:
IN
,OUT
orIN_OUT
. Defaults toIN_OUT
. - disabled bool
- A boolean value to indicate the rule is disabled. Defaults to
false
. - ip_
version str - The IP Protocol for the rule. Must be one of:
IPV4
,IPV6
orIPV4_IPV6
. Defaults toIPV4_IPV6
. - log_
label str - Additional information (string) which will be propagated to the rule syslog.
- logged bool
- A boolean flag to enable packet logging.
- notes str
- Text for additional notes on changes for the rule.
- nsx_
id str - The NSX ID of this resource. If set, this ID will be used to create the Gateway Policy resource.
- path str
- The NSX path of the policy resource.
- profiles Sequence[str]
- A list of context profiles for the rule.
- revision float
- Indicates current revision number of the object as seen by NSX-T API server. This attribute can be useful for debugging.
- rule_
id float - Unique positive number that is assigned by the system and is useful for debugging.
- scopes Sequence[str]
- List of policy paths where the rule is applied
- sequence_
number float - It is recommended not to specify sequence number for rules, but rather rely on provider to auto-assign them. If you choose to specify sequence numbers, you must make sure the numbers are consistent with order of the rules in configuration. Please note that sequence numbers should start with 1, not 0. To avoid confusion, either specify sequence numbers in all rules, or none at all.
- services Sequence[str]
- List of services to match.
- source_
groups Sequence[str] - Set of group paths that serve as the source for this rule. IPs, IP ranges, or CIDRs. An empty set can be used to specify "Any".
- sources_
excluded bool - Negation of source groups
- Sequence[Vpc
Gateway Policy Rule Tag] - A list of scope + tag pairs to associate with this Rule.
- display
Name String - Display name of the resource.
- action String
- The action for the Rule. Must be one of:
ALLOW
,DROP
orREJECT
. Defaults toALLOW
. - description String
- Description of the resource.
- destination
Groups List<String> - Set of group paths that serve as the destination for this rule. IPs, IP ranges, or CIDRs. An empty set can be used to specify "Any".
- destinations
Excluded Boolean - A boolean value indicating negation of destination groups.
- direction String
- The traffic direction for the policy. Must be one of:
IN
,OUT
orIN_OUT
. Defaults toIN_OUT
. - disabled Boolean
- A boolean value to indicate the rule is disabled. Defaults to
false
. - ip
Version String - The IP Protocol for the rule. Must be one of:
IPV4
,IPV6
orIPV4_IPV6
. Defaults toIPV4_IPV6
. - log
Label String - Additional information (string) which will be propagated to the rule syslog.
- logged Boolean
- A boolean flag to enable packet logging.
- notes String
- Text for additional notes on changes for the rule.
- nsx
Id String - The NSX ID of this resource. If set, this ID will be used to create the Gateway Policy resource.
- path String
- The NSX path of the policy resource.
- profiles List<String>
- A list of context profiles for the rule.
- revision Number
- Indicates current revision number of the object as seen by NSX-T API server. This attribute can be useful for debugging.
- rule
Id Number - Unique positive number that is assigned by the system and is useful for debugging.
- scopes List<String>
- List of policy paths where the rule is applied
- sequence
Number Number - It is recommended not to specify sequence number for rules, but rather rely on provider to auto-assign them. If you choose to specify sequence numbers, you must make sure the numbers are consistent with order of the rules in configuration. Please note that sequence numbers should start with 1, not 0. To avoid confusion, either specify sequence numbers in all rules, or none at all.
- services List<String>
- List of services to match.
- source
Groups List<String> - Set of group paths that serve as the source for this rule. IPs, IP ranges, or CIDRs. An empty set can be used to specify "Any".
- sources
Excluded Boolean - Negation of source groups
- List<Property Map>
- A list of scope + tag pairs to associate with this Rule.
VpcGatewayPolicyRuleTag, VpcGatewayPolicyRuleTagArgs
VpcGatewayPolicyTag, VpcGatewayPolicyTagArgs
Package Details
- Repository
- nsxt vmware/terraform-provider-nsxt
- License
- Notes
- This Pulumi package is based on the
nsxt
Terraform Provider.