Class AccessContextManagerAccessLevelCondition.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.access_context_manager_access_level_condition.AccessContextManagerAccessLevelCondition.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<AccessContextManagerAccessLevelCondition>
- Enclosing class:
- AccessContextManagerAccessLevelCondition
@Stability(Stable) public static final class AccessContextManagerAccessLevelCondition.Builder extends Object implements software.amazon.jsii.Builder<AccessContextManagerAccessLevelCondition>
A fluent builder forAccessContextManagerAccessLevelCondition.
-
-
Method Summary
-
-
-
Method Detail
-
create
@Stability(Stable) public static AccessContextManagerAccessLevelCondition.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
AccessContextManagerAccessLevelCondition.Builder.
-
connection
@Stability(Experimental) public AccessContextManagerAccessLevelCondition.Builder connection(com.hashicorp.cdktf.SSHProvisionerConnection connection)
- Parameters:
connection- This parameter is required.- Returns:
this
-
connection
@Stability(Experimental) public AccessContextManagerAccessLevelCondition.Builder connection(com.hashicorp.cdktf.WinrmProvisionerConnection connection)
- Parameters:
connection- This parameter is required.- Returns:
this
-
count
@Stability(Experimental) public AccessContextManagerAccessLevelCondition.Builder count(Number count)
- Parameters:
count- This parameter is required.- Returns:
this
-
count
@Stability(Experimental) public AccessContextManagerAccessLevelCondition.Builder count(com.hashicorp.cdktf.TerraformCount count)
- Parameters:
count- This parameter is required.- Returns:
this
-
dependsOn
@Stability(Experimental) public AccessContextManagerAccessLevelCondition.Builder dependsOn(List<? extends com.hashicorp.cdktf.ITerraformDependable> dependsOn)
- Parameters:
dependsOn- This parameter is required.- Returns:
this
-
forEach
@Stability(Experimental) public AccessContextManagerAccessLevelCondition.Builder forEach(com.hashicorp.cdktf.ITerraformIterator forEach)
- Parameters:
forEach- This parameter is required.- Returns:
this
-
lifecycle
@Stability(Experimental) public AccessContextManagerAccessLevelCondition.Builder lifecycle(com.hashicorp.cdktf.TerraformResourceLifecycle lifecycle)
- Parameters:
lifecycle- This parameter is required.- Returns:
this
-
provider
@Stability(Experimental) public AccessContextManagerAccessLevelCondition.Builder provider(com.hashicorp.cdktf.TerraformProvider provider)
- Parameters:
provider- This parameter is required.- Returns:
this
-
provisioners
@Stability(Experimental) public AccessContextManagerAccessLevelCondition.Builder provisioners(List<? extends Object> provisioners)
- Parameters:
provisioners- This parameter is required.- Returns:
this
-
accessLevel
@Stability(Stable) public AccessContextManagerAccessLevelCondition.Builder accessLevel(String accessLevel)
The name of the Access Level to add this condition to.Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/access_context_manager_access_level_condition#access_level AccessContextManagerAccessLevelCondition#access_level}
- Parameters:
accessLevel- The name of the Access Level to add this condition to. This parameter is required.- Returns:
this
-
devicePolicy
@Stability(Stable) public AccessContextManagerAccessLevelCondition.Builder devicePolicy(AccessContextManagerAccessLevelConditionDevicePolicy devicePolicy)
device_policy block.Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/access_context_manager_access_level_condition#device_policy AccessContextManagerAccessLevelCondition#device_policy}
- Parameters:
devicePolicy- device_policy block. This parameter is required.- Returns:
this
-
id
@Stability(Stable) public AccessContextManagerAccessLevelCondition.Builder id(String id)
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/access_context_manager_access_level_condition#id AccessContextManagerAccessLevelCondition#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/access_context_manager_access_level_condition#id AccessContextManagerAccessLevelCondition#id}. This parameter is required.- Returns:
this
-
ipSubnetworks
@Stability(Stable) public AccessContextManagerAccessLevelCondition.Builder ipSubnetworks(List<String> ipSubnetworks)
A list of CIDR block IP subnetwork specification.May be IPv4 or IPv6. Note that for a CIDR IP address block, the specified IP address portion must be properly truncated (i.e. all the host bits must be zero) or the input is considered malformed. For example, "192.0.2.0/24" is accepted but "192.0.2.1/24" is not. Similarly, for IPv6, "2001:db8::/32" is accepted whereas "2001:db8::1/32" is not. The originating IP of a request must be in one of the listed subnets in order for this Condition to be true. If empty, all IP addresses are allowed. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/access_context_manager_access_level_condition#ip_subnetworks AccessContextManagerAccessLevelCondition#ip_subnetworks}
- Parameters:
ipSubnetworks- A list of CIDR block IP subnetwork specification. This parameter is required.- Returns:
this
-
members
@Stability(Stable) public AccessContextManagerAccessLevelCondition.Builder members(List<String> members)
An allowed list of members (users, service accounts). Using groups is not supported yet.The signed-in user originating the request must be a part of one of the provided members. If not specified, a request may come from any user (logged in/not logged in, not present in any groups, etc.). Formats: 'user:{emailid}', 'serviceAccount:{emailid}' Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/access_context_manager_access_level_condition#members AccessContextManagerAccessLevelCondition#members}
- Parameters:
members- An allowed list of members (users, service accounts). Using groups is not supported yet. This parameter is required.- Returns:
this
-
negate
@Stability(Stable) public AccessContextManagerAccessLevelCondition.Builder negate(Boolean negate)
Whether to negate the Condition.If true, the Condition becomes a NAND over its non-empty fields, each field must be false for the Condition overall to be satisfied. Defaults to false. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/access_context_manager_access_level_condition#negate AccessContextManagerAccessLevelCondition#negate}
- Parameters:
negate- Whether to negate the Condition. This parameter is required.- Returns:
this
-
negate
@Stability(Stable) public AccessContextManagerAccessLevelCondition.Builder negate(com.hashicorp.cdktf.IResolvable negate)
Whether to negate the Condition.If true, the Condition becomes a NAND over its non-empty fields, each field must be false for the Condition overall to be satisfied. Defaults to false. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/access_context_manager_access_level_condition#negate AccessContextManagerAccessLevelCondition#negate}
- Parameters:
negate- Whether to negate the Condition. This parameter is required.- Returns:
this
-
regions
@Stability(Stable) public AccessContextManagerAccessLevelCondition.Builder regions(List<String> regions)
The request must originate from one of the provided countries/regions. Format: A valid ISO 3166-1 alpha-2 code.Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/access_context_manager_access_level_condition#regions AccessContextManagerAccessLevelCondition#regions}
- Parameters:
regions- The request must originate from one of the provided countries/regions. Format: A valid ISO 3166-1 alpha-2 code. This parameter is required.- Returns:
this
-
requiredAccessLevels
@Stability(Stable) public AccessContextManagerAccessLevelCondition.Builder requiredAccessLevels(List<String> requiredAccessLevels)
A list of other access levels defined in the same Policy, referenced by resource name.Referencing an AccessLevel which does not exist is an error. All access levels listed must be granted for the Condition to be true. Format: accessPolicies/{policy_id}/accessLevels/{short_name} Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/access_context_manager_access_level_condition#required_access_levels AccessContextManagerAccessLevelCondition#required_access_levels}
- Parameters:
requiredAccessLevels- A list of other access levels defined in the same Policy, referenced by resource name. This parameter is required.- Returns:
this
-
timeouts
@Stability(Stable) public AccessContextManagerAccessLevelCondition.Builder timeouts(AccessContextManagerAccessLevelConditionTimeouts timeouts)
timeouts block.Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/access_context_manager_access_level_condition#timeouts AccessContextManagerAccessLevelCondition#timeouts}
- Parameters:
timeouts- timeouts block. This parameter is required.- Returns:
this
-
vpcNetworkSources
@Stability(Stable) public AccessContextManagerAccessLevelCondition.Builder vpcNetworkSources(com.hashicorp.cdktf.IResolvable vpcNetworkSources)
vpc_network_sources block.Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/access_context_manager_access_level_condition#vpc_network_sources AccessContextManagerAccessLevelCondition#vpc_network_sources}
- Parameters:
vpcNetworkSources- vpc_network_sources block. This parameter is required.- Returns:
this
-
vpcNetworkSources
@Stability(Stable) public AccessContextManagerAccessLevelCondition.Builder vpcNetworkSources(List<? extends AccessContextManagerAccessLevelConditionVpcNetworkSources> vpcNetworkSources)
vpc_network_sources block.Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/access_context_manager_access_level_condition#vpc_network_sources AccessContextManagerAccessLevelCondition#vpc_network_sources}
- Parameters:
vpcNetworkSources- vpc_network_sources block. This parameter is required.- Returns:
this
-
build
@Stability(Stable) public AccessContextManagerAccessLevelCondition build()
- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<AccessContextManagerAccessLevelCondition>- Returns:
- a newly built instance of
AccessContextManagerAccessLevelCondition.
-
-