Class AccessContextManagerServicePerimeterConfig.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.access_context_manager_service_perimeter.AccessContextManagerServicePerimeterConfig.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<AccessContextManagerServicePerimeterConfig>
- Enclosing interface:
- AccessContextManagerServicePerimeterConfig
@Stability(Stable) public static final class AccessContextManagerServicePerimeterConfig.Builder extends Object implements software.amazon.jsii.Builder<AccessContextManagerServicePerimeterConfig>
A builder forAccessContextManagerServicePerimeterConfig
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
-
-
-
Method Detail
-
name
@Stability(Stable) public AccessContextManagerServicePerimeterConfig.Builder name(String name)
Sets the value ofAccessContextManagerServicePerimeterConfig.getName()- Parameters:
name- Resource name for the ServicePerimeter. The short_name component must begin with a letter and only include alphanumeric and '_'. Format: accessPolicies/{policy_id}/servicePerimeters/{short_name}. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/access_context_manager_service_perimeter#name AccessContextManagerServicePerimeter#name}- Returns:
this
-
parent
@Stability(Stable) public AccessContextManagerServicePerimeterConfig.Builder parent(String parent)
Sets the value ofAccessContextManagerServicePerimeterConfig.getParent()- Parameters:
parent- The AccessPolicy this ServicePerimeter lives in. Format: accessPolicies/{policy_id}. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/access_context_manager_service_perimeter#parent AccessContextManagerServicePerimeter#parent}- Returns:
this
-
title
@Stability(Stable) public AccessContextManagerServicePerimeterConfig.Builder title(String title)
Sets the value ofAccessContextManagerServicePerimeterConfig.getTitle()- Parameters:
title- Human readable title. Must be unique within the Policy. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/access_context_manager_service_perimeter#title AccessContextManagerServicePerimeter#title}- Returns:
this
-
description
@Stability(Stable) public AccessContextManagerServicePerimeterConfig.Builder description(String description)
Sets the value ofAccessContextManagerServicePerimeterConfig.getDescription()- Parameters:
description- Description of the ServicePerimeter and its use. Does not affect behavior. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/access_context_manager_service_perimeter#description AccessContextManagerServicePerimeter#description}- Returns:
this
-
id
@Stability(Stable) public AccessContextManagerServicePerimeterConfig.Builder id(String id)
Sets the value ofAccessContextManagerServicePerimeterConfig.getId()- Parameters:
id- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/access_context_manager_service_perimeter#id AccessContextManagerServicePerimeter#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.- Returns:
this
-
perimeterType
@Stability(Stable) public AccessContextManagerServicePerimeterConfig.Builder perimeterType(String perimeterType)
Sets the value ofAccessContextManagerServicePerimeterConfig.getPerimeterType()- Parameters:
perimeterType- Specifies the type of the Perimeter. There are two types: regular and bridge. Regular Service Perimeter contains resources, access levels, and restricted services. Every resource can be in at most ONE regular Service Perimeter. In addition to being in a regular service perimeter, a resource can also be in zero or more perimeter bridges. A perimeter bridge only contains resources. Cross project operations are permitted if all effected resources share some perimeter (whether bridge or regular). Perimeter Bridge does not contain access levels or services: those are governed entirely by the regular perimeter that resource is in. Perimeter Bridges are typically useful when building more complex topologies with many independent perimeters that need to share some data with a common perimeter, but should not be able to share data among themselves. Default value: "PERIMETER_TYPE_REGULAR" Possible values: ["PERIMETER_TYPE_REGULAR", "PERIMETER_TYPE_BRIDGE"] Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/access_context_manager_service_perimeter#perimeter_type AccessContextManagerServicePerimeter#perimeter_type}- Returns:
this
-
spec
@Stability(Stable) public AccessContextManagerServicePerimeterConfig.Builder spec(AccessContextManagerServicePerimeterSpec spec)
Sets the value ofAccessContextManagerServicePerimeterConfig.getSpec()- Parameters:
spec- spec block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/access_context_manager_service_perimeter#spec AccessContextManagerServicePerimeter#spec}- Returns:
this
-
status
@Stability(Stable) public AccessContextManagerServicePerimeterConfig.Builder status(AccessContextManagerServicePerimeterStatus status)
Sets the value ofAccessContextManagerServicePerimeterConfig.getStatus()- Parameters:
status- status block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/access_context_manager_service_perimeter#status AccessContextManagerServicePerimeter#status}- Returns:
this
-
timeouts
@Stability(Stable) public AccessContextManagerServicePerimeterConfig.Builder timeouts(AccessContextManagerServicePerimeterTimeouts timeouts)
Sets the value ofAccessContextManagerServicePerimeterConfig.getTimeouts()- Parameters:
timeouts- timeouts block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/access_context_manager_service_perimeter#timeouts AccessContextManagerServicePerimeter#timeouts}- Returns:
this
-
useExplicitDryRunSpec
@Stability(Stable) public AccessContextManagerServicePerimeterConfig.Builder useExplicitDryRunSpec(Boolean useExplicitDryRunSpec)
Sets the value ofAccessContextManagerServicePerimeterConfig.getUseExplicitDryRunSpec()- Parameters:
useExplicitDryRunSpec- Use explicit dry run spec flag. Ordinarily, a dry-run spec implicitly exists for all Service Perimeters, and that spec is identical to the status for those Service Perimeters. When this flag is set, it inhibits the generation of the implicit spec, thereby allowing the user to explicitly provide a configuration ("spec") to use in a dry-run version of the Service Perimeter. This allows the user to test changes to the enforced config ("status") without actually enforcing them. This testing is done through analyzing the differences between currently enforced and suggested restrictions. useExplicitDryRunSpec must bet set to True if any of the fields in the spec are set to non-default values. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/access_context_manager_service_perimeter#use_explicit_dry_run_spec AccessContextManagerServicePerimeter#use_explicit_dry_run_spec}- Returns:
this
-
useExplicitDryRunSpec
@Stability(Stable) public AccessContextManagerServicePerimeterConfig.Builder useExplicitDryRunSpec(com.hashicorp.cdktf.IResolvable useExplicitDryRunSpec)
Sets the value ofAccessContextManagerServicePerimeterConfig.getUseExplicitDryRunSpec()- Parameters:
useExplicitDryRunSpec- Use explicit dry run spec flag. Ordinarily, a dry-run spec implicitly exists for all Service Perimeters, and that spec is identical to the status for those Service Perimeters. When this flag is set, it inhibits the generation of the implicit spec, thereby allowing the user to explicitly provide a configuration ("spec") to use in a dry-run version of the Service Perimeter. This allows the user to test changes to the enforced config ("status") without actually enforcing them. This testing is done through analyzing the differences between currently enforced and suggested restrictions. useExplicitDryRunSpec must bet set to True if any of the fields in the spec are set to non-default values. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/access_context_manager_service_perimeter#use_explicit_dry_run_spec AccessContextManagerServicePerimeter#use_explicit_dry_run_spec}- Returns:
this
-
connection
@Stability(Experimental) public AccessContextManagerServicePerimeterConfig.Builder connection(com.hashicorp.cdktf.SSHProvisionerConnection connection)
Sets the value ofTerraformMetaArguments.getConnection()- Parameters:
connection- the value to be set.- Returns:
this
-
connection
@Stability(Experimental) public AccessContextManagerServicePerimeterConfig.Builder connection(com.hashicorp.cdktf.WinrmProvisionerConnection connection)
Sets the value ofTerraformMetaArguments.getConnection()- Parameters:
connection- the value to be set.- Returns:
this
-
count
@Stability(Experimental) public AccessContextManagerServicePerimeterConfig.Builder count(Number count)
Sets the value ofTerraformMetaArguments.getCount()- Parameters:
count- the value to be set.- Returns:
this
-
count
@Stability(Experimental) public AccessContextManagerServicePerimeterConfig.Builder count(com.hashicorp.cdktf.TerraformCount count)
Sets the value ofTerraformMetaArguments.getCount()- Parameters:
count- the value to be set.- Returns:
this
-
dependsOn
@Stability(Experimental) public AccessContextManagerServicePerimeterConfig.Builder dependsOn(List<? extends com.hashicorp.cdktf.ITerraformDependable> dependsOn)
Sets the value ofTerraformMetaArguments.getDependsOn()- Parameters:
dependsOn- the value to be set.- Returns:
this
-
forEach
@Stability(Experimental) public AccessContextManagerServicePerimeterConfig.Builder forEach(com.hashicorp.cdktf.ITerraformIterator forEach)
Sets the value ofTerraformMetaArguments.getForEach()- Parameters:
forEach- the value to be set.- Returns:
this
-
lifecycle
@Stability(Experimental) public AccessContextManagerServicePerimeterConfig.Builder lifecycle(com.hashicorp.cdktf.TerraformResourceLifecycle lifecycle)
Sets the value ofTerraformMetaArguments.getLifecycle()- Parameters:
lifecycle- the value to be set.- Returns:
this
-
provider
@Stability(Experimental) public AccessContextManagerServicePerimeterConfig.Builder provider(com.hashicorp.cdktf.TerraformProvider provider)
Sets the value ofTerraformMetaArguments.getProvider()- Parameters:
provider- the value to be set.- Returns:
this
-
provisioners
@Stability(Experimental) public AccessContextManagerServicePerimeterConfig.Builder provisioners(List<? extends Object> provisioners)
Sets the value ofTerraformMetaArguments.getProvisioners()- Parameters:
provisioners- the value to be set.- Returns:
this
-
build
@Stability(Stable) public AccessContextManagerServicePerimeterConfig build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<AccessContextManagerServicePerimeterConfig>- Returns:
- a new instance of
AccessContextManagerServicePerimeterConfig - Throws:
NullPointerException- if any required attribute was not provided
-
-