Class NetworkSecurityGatewaySecurityPolicyRule.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.network_security_gateway_security_policy_rule.NetworkSecurityGatewaySecurityPolicyRule.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<NetworkSecurityGatewaySecurityPolicyRule>
- Enclosing class:
- NetworkSecurityGatewaySecurityPolicyRule
@Stability(Stable) public static final class NetworkSecurityGatewaySecurityPolicyRule.Builder extends Object implements software.amazon.jsii.Builder<NetworkSecurityGatewaySecurityPolicyRule>
A fluent builder forNetworkSecurityGatewaySecurityPolicyRule.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description NetworkSecurityGatewaySecurityPolicyRule.BuilderapplicationMatcher(String applicationMatcher)CEL expression for matching on L7/application level criteria.NetworkSecurityGatewaySecurityPolicyRule.BuilderbasicProfile(String basicProfile)Profile which tells what the primitive action should be.NetworkSecurityGatewaySecurityPolicyRulebuild()NetworkSecurityGatewaySecurityPolicyRule.Builderconnection(com.hashicorp.cdktf.SSHProvisionerConnection connection)NetworkSecurityGatewaySecurityPolicyRule.Builderconnection(com.hashicorp.cdktf.WinrmProvisionerConnection connection)NetworkSecurityGatewaySecurityPolicyRule.Buildercount(com.hashicorp.cdktf.TerraformCount count)NetworkSecurityGatewaySecurityPolicyRule.Buildercount(Number count)static NetworkSecurityGatewaySecurityPolicyRule.Buildercreate(software.constructs.Construct scope, String id)NetworkSecurityGatewaySecurityPolicyRule.BuilderdependsOn(List<? extends com.hashicorp.cdktf.ITerraformDependable> dependsOn)NetworkSecurityGatewaySecurityPolicyRule.Builderdescription(String description)Free-text description of the resource.NetworkSecurityGatewaySecurityPolicyRule.Builderenabled(com.hashicorp.cdktf.IResolvable enabled)Whether the rule is enforced.NetworkSecurityGatewaySecurityPolicyRule.Builderenabled(Boolean enabled)Whether the rule is enforced.NetworkSecurityGatewaySecurityPolicyRule.BuilderforEach(com.hashicorp.cdktf.ITerraformIterator forEach)NetworkSecurityGatewaySecurityPolicyRule.BuildergatewaySecurityPolicy(String gatewaySecurityPolicy)The name of the gatewat security policy this rule belongs to.NetworkSecurityGatewaySecurityPolicyRule.Builderid(String id)Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/network_security_gateway_security_policy_rule#id NetworkSecurityGatewaySecurityPolicyRule#id}.NetworkSecurityGatewaySecurityPolicyRule.Builderlifecycle(com.hashicorp.cdktf.TerraformResourceLifecycle lifecycle)NetworkSecurityGatewaySecurityPolicyRule.Builderlocation(String location)The location of the gateway security policy.NetworkSecurityGatewaySecurityPolicyRule.Buildername(String name)Name of the resource.NetworkSecurityGatewaySecurityPolicyRule.Builderpriority(Number priority)Priority of the rule.NetworkSecurityGatewaySecurityPolicyRule.Builderproject(String project)Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/network_security_gateway_security_policy_rule#project NetworkSecurityGatewaySecurityPolicyRule#project}.NetworkSecurityGatewaySecurityPolicyRule.Builderprovider(com.hashicorp.cdktf.TerraformProvider provider)NetworkSecurityGatewaySecurityPolicyRule.Builderprovisioners(List<? extends Object> provisioners)NetworkSecurityGatewaySecurityPolicyRule.BuildersessionMatcher(String sessionMatcher)CEL expression for matching on session criteria.NetworkSecurityGatewaySecurityPolicyRule.Buildertimeouts(NetworkSecurityGatewaySecurityPolicyRuleTimeouts timeouts)timeouts block.NetworkSecurityGatewaySecurityPolicyRule.BuildertlsInspectionEnabled(com.hashicorp.cdktf.IResolvable tlsInspectionEnabled)Flag to enable TLS inspection of traffic matching on.NetworkSecurityGatewaySecurityPolicyRule.BuildertlsInspectionEnabled(Boolean tlsInspectionEnabled)Flag to enable TLS inspection of traffic matching on.
-
-
-
Method Detail
-
create
@Stability(Stable) public static NetworkSecurityGatewaySecurityPolicyRule.Builder create(software.constructs.Construct scope, String id)
- Parameters:
scope- The scope in which to define this construct. This parameter is required.id- The scoped construct ID. This parameter is required.- Returns:
- a new instance of
NetworkSecurityGatewaySecurityPolicyRule.Builder.
-
connection
@Stability(Experimental) public NetworkSecurityGatewaySecurityPolicyRule.Builder connection(com.hashicorp.cdktf.SSHProvisionerConnection connection)
- Parameters:
connection- This parameter is required.- Returns:
this
-
connection
@Stability(Experimental) public NetworkSecurityGatewaySecurityPolicyRule.Builder connection(com.hashicorp.cdktf.WinrmProvisionerConnection connection)
- Parameters:
connection- This parameter is required.- Returns:
this
-
count
@Stability(Experimental) public NetworkSecurityGatewaySecurityPolicyRule.Builder count(Number count)
- Parameters:
count- This parameter is required.- Returns:
this
-
count
@Stability(Experimental) public NetworkSecurityGatewaySecurityPolicyRule.Builder count(com.hashicorp.cdktf.TerraformCount count)
- Parameters:
count- This parameter is required.- Returns:
this
-
dependsOn
@Stability(Experimental) public NetworkSecurityGatewaySecurityPolicyRule.Builder dependsOn(List<? extends com.hashicorp.cdktf.ITerraformDependable> dependsOn)
- Parameters:
dependsOn- This parameter is required.- Returns:
this
-
forEach
@Stability(Experimental) public NetworkSecurityGatewaySecurityPolicyRule.Builder forEach(com.hashicorp.cdktf.ITerraformIterator forEach)
- Parameters:
forEach- This parameter is required.- Returns:
this
-
lifecycle
@Stability(Experimental) public NetworkSecurityGatewaySecurityPolicyRule.Builder lifecycle(com.hashicorp.cdktf.TerraformResourceLifecycle lifecycle)
- Parameters:
lifecycle- This parameter is required.- Returns:
this
-
provider
@Stability(Experimental) public NetworkSecurityGatewaySecurityPolicyRule.Builder provider(com.hashicorp.cdktf.TerraformProvider provider)
- Parameters:
provider- This parameter is required.- Returns:
this
-
provisioners
@Stability(Experimental) public NetworkSecurityGatewaySecurityPolicyRule.Builder provisioners(List<? extends Object> provisioners)
- Parameters:
provisioners- This parameter is required.- Returns:
this
-
basicProfile
@Stability(Stable) public NetworkSecurityGatewaySecurityPolicyRule.Builder basicProfile(String basicProfile)
Profile which tells what the primitive action should be.Possible values are: * ALLOW * DENY. Possible values: ["BASIC_PROFILE_UNSPECIFIED", "ALLOW", "DENY"] Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/network_security_gateway_security_policy_rule#basic_profile NetworkSecurityGatewaySecurityPolicyRule#basic_profile}
- Parameters:
basicProfile- Profile which tells what the primitive action should be. This parameter is required.- Returns:
this
-
enabled
@Stability(Stable) public NetworkSecurityGatewaySecurityPolicyRule.Builder enabled(Boolean enabled)
Whether the rule is enforced.Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/network_security_gateway_security_policy_rule#enabled NetworkSecurityGatewaySecurityPolicyRule#enabled}
- Parameters:
enabled- Whether the rule is enforced. This parameter is required.- Returns:
this
-
enabled
@Stability(Stable) public NetworkSecurityGatewaySecurityPolicyRule.Builder enabled(com.hashicorp.cdktf.IResolvable enabled)
Whether the rule is enforced.Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/network_security_gateway_security_policy_rule#enabled NetworkSecurityGatewaySecurityPolicyRule#enabled}
- Parameters:
enabled- Whether the rule is enforced. This parameter is required.- Returns:
this
-
gatewaySecurityPolicy
@Stability(Stable) public NetworkSecurityGatewaySecurityPolicyRule.Builder gatewaySecurityPolicy(String gatewaySecurityPolicy)
The name of the gatewat security policy this rule belongs to.Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/network_security_gateway_security_policy_rule#gateway_security_policy NetworkSecurityGatewaySecurityPolicyRule#gateway_security_policy}
- Parameters:
gatewaySecurityPolicy- The name of the gatewat security policy this rule belongs to. This parameter is required.- Returns:
this
-
location
@Stability(Stable) public NetworkSecurityGatewaySecurityPolicyRule.Builder location(String location)
The location of the gateway security policy.Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/network_security_gateway_security_policy_rule#location NetworkSecurityGatewaySecurityPolicyRule#location}
- Parameters:
location- The location of the gateway security policy. This parameter is required.- Returns:
this
-
name
@Stability(Stable) public NetworkSecurityGatewaySecurityPolicyRule.Builder name(String name)
Name of the resource. ame is the full resource name so projects/{project}/locations/{location}/gatewaySecurityPolicies/{gateway_security_policy}/rules/{rule} rule should match the pattern: (^a-z?$).Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/network_security_gateway_security_policy_rule#name NetworkSecurityGatewaySecurityPolicyRule#name}
- Parameters:
name- Name of the resource. ame is the full resource name so projects/{project}/locations/{location}/gatewaySecurityPolicies/{gateway_security_policy}/rules/{rule} rule should match the pattern: (^a-z?$). This parameter is required.- Returns:
this
-
priority
@Stability(Stable) public NetworkSecurityGatewaySecurityPolicyRule.Builder priority(Number priority)
Priority of the rule. Lower number corresponds to higher precedence.Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/network_security_gateway_security_policy_rule#priority NetworkSecurityGatewaySecurityPolicyRule#priority}
- Parameters:
priority- Priority of the rule. Lower number corresponds to higher precedence. This parameter is required.- Returns:
this
-
sessionMatcher
@Stability(Stable) public NetworkSecurityGatewaySecurityPolicyRule.Builder sessionMatcher(String sessionMatcher)
CEL expression for matching on session criteria.Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/network_security_gateway_security_policy_rule#session_matcher NetworkSecurityGatewaySecurityPolicyRule#session_matcher}
- Parameters:
sessionMatcher- CEL expression for matching on session criteria. This parameter is required.- Returns:
this
-
applicationMatcher
@Stability(Stable) public NetworkSecurityGatewaySecurityPolicyRule.Builder applicationMatcher(String applicationMatcher)
CEL expression for matching on L7/application level criteria.Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/network_security_gateway_security_policy_rule#application_matcher NetworkSecurityGatewaySecurityPolicyRule#application_matcher}
- Parameters:
applicationMatcher- CEL expression for matching on L7/application level criteria. This parameter is required.- Returns:
this
-
description
@Stability(Stable) public NetworkSecurityGatewaySecurityPolicyRule.Builder description(String description)
Free-text description of the resource.Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/network_security_gateway_security_policy_rule#description NetworkSecurityGatewaySecurityPolicyRule#description}
- Parameters:
description- Free-text description of the resource. This parameter is required.- Returns:
this
-
id
@Stability(Stable) public NetworkSecurityGatewaySecurityPolicyRule.Builder id(String id)
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/network_security_gateway_security_policy_rule#id NetworkSecurityGatewaySecurityPolicyRule#id}.Please be aware that the id field is automatically added to all resources in Terraform providers using a Terraform provider SDK version below 2. If you experience problems setting this value it might not be settable. Please take a look at the provider documentation to ensure it should be settable.
- Parameters:
id- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/network_security_gateway_security_policy_rule#id NetworkSecurityGatewaySecurityPolicyRule#id}. This parameter is required.- Returns:
this
-
project
@Stability(Stable) public NetworkSecurityGatewaySecurityPolicyRule.Builder project(String project)
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/network_security_gateway_security_policy_rule#project NetworkSecurityGatewaySecurityPolicyRule#project}.- Parameters:
project- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/network_security_gateway_security_policy_rule#project NetworkSecurityGatewaySecurityPolicyRule#project}. This parameter is required.- Returns:
this
-
timeouts
@Stability(Stable) public NetworkSecurityGatewaySecurityPolicyRule.Builder timeouts(NetworkSecurityGatewaySecurityPolicyRuleTimeouts timeouts)
timeouts block.Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/network_security_gateway_security_policy_rule#timeouts NetworkSecurityGatewaySecurityPolicyRule#timeouts}
- Parameters:
timeouts- timeouts block. This parameter is required.- Returns:
this
-
tlsInspectionEnabled
@Stability(Stable) public NetworkSecurityGatewaySecurityPolicyRule.Builder tlsInspectionEnabled(Boolean tlsInspectionEnabled)
Flag to enable TLS inspection of traffic matching on. Can only be true if the parent GatewaySecurityPolicy references a TLSInspectionConfig.Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/network_security_gateway_security_policy_rule#tls_inspection_enabled NetworkSecurityGatewaySecurityPolicyRule#tls_inspection_enabled}
- Parameters:
tlsInspectionEnabled- Flag to enable TLS inspection of traffic matching on. Can only be true if the parent GatewaySecurityPolicy references a TLSInspectionConfig. This parameter is required.- Returns:
this
-
tlsInspectionEnabled
@Stability(Stable) public NetworkSecurityGatewaySecurityPolicyRule.Builder tlsInspectionEnabled(com.hashicorp.cdktf.IResolvable tlsInspectionEnabled)
Flag to enable TLS inspection of traffic matching on. Can only be true if the parent GatewaySecurityPolicy references a TLSInspectionConfig.Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/network_security_gateway_security_policy_rule#tls_inspection_enabled NetworkSecurityGatewaySecurityPolicyRule#tls_inspection_enabled}
- Parameters:
tlsInspectionEnabled- Flag to enable TLS inspection of traffic matching on. Can only be true if the parent GatewaySecurityPolicy references a TLSInspectionConfig. This parameter is required.- Returns:
this
-
build
@Stability(Stable) public NetworkSecurityGatewaySecurityPolicyRule build()
- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<NetworkSecurityGatewaySecurityPolicyRule>- Returns:
- a newly built instance of
NetworkSecurityGatewaySecurityPolicyRule.
-
-