Class PrivatecaCertificateAuthorityConfig.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.privateca_certificate_authority.PrivatecaCertificateAuthorityConfig.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<PrivatecaCertificateAuthorityConfig>
- Enclosing interface:
- PrivatecaCertificateAuthorityConfig
@Stability(Stable) public static final class PrivatecaCertificateAuthorityConfig.Builder extends Object implements software.amazon.jsii.Builder<PrivatecaCertificateAuthorityConfig>
A builder forPrivatecaCertificateAuthorityConfig
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
-
-
-
Method Detail
-
certificateAuthorityId
@Stability(Stable) public PrivatecaCertificateAuthorityConfig.Builder certificateAuthorityId(String certificateAuthorityId)
Sets the value ofPrivatecaCertificateAuthorityConfig.getCertificateAuthorityId()- Parameters:
certificateAuthorityId- The user provided Resource ID for this Certificate Authority. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/privateca_certificate_authority#certificate_authority_id PrivatecaCertificateAuthority#certificate_authority_id}- Returns:
this
-
config
@Stability(Stable) public PrivatecaCertificateAuthorityConfig.Builder config(PrivatecaCertificateAuthorityConfigA config)
Sets the value ofPrivatecaCertificateAuthorityConfig.getConfig()- Parameters:
config- config block. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/privateca_certificate_authority#config PrivatecaCertificateAuthority#config}- Returns:
this
-
keySpec
@Stability(Stable) public PrivatecaCertificateAuthorityConfig.Builder keySpec(PrivatecaCertificateAuthorityKeySpec keySpec)
Sets the value ofPrivatecaCertificateAuthorityConfig.getKeySpec()- Parameters:
keySpec- key_spec block. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/privateca_certificate_authority#key_spec PrivatecaCertificateAuthority#key_spec}- Returns:
this
-
location
@Stability(Stable) public PrivatecaCertificateAuthorityConfig.Builder location(String location)
Sets the value ofPrivatecaCertificateAuthorityConfig.getLocation()- Parameters:
location- Location of the CertificateAuthority. A full list of valid locations can be found by running 'gcloud privateca locations list'. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/privateca_certificate_authority#location PrivatecaCertificateAuthority#location}- Returns:
this
-
pool
@Stability(Stable) public PrivatecaCertificateAuthorityConfig.Builder pool(String pool)
Sets the value ofPrivatecaCertificateAuthorityConfig.getPool()- Parameters:
pool- The name of the CaPool this Certificate Authority belongs to. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/privateca_certificate_authority#pool PrivatecaCertificateAuthority#pool}- Returns:
this
-
deletionProtection
@Stability(Stable) public PrivatecaCertificateAuthorityConfig.Builder deletionProtection(Boolean deletionProtection)
Sets the value ofPrivatecaCertificateAuthorityConfig.getDeletionProtection()- Parameters:
deletionProtection- Whether Terraform will be prevented from destroying the CertificateAuthority. When the field is set to true or unset in Terraform state, a 'terraform apply' or 'terraform destroy' that would delete the CertificateAuthority will fail. When the field is set to false, deleting the CertificateAuthority is allowed. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/privateca_certificate_authority#deletion_protection PrivatecaCertificateAuthority#deletion_protection}- Returns:
this
-
deletionProtection
@Stability(Stable) public PrivatecaCertificateAuthorityConfig.Builder deletionProtection(com.hashicorp.cdktf.IResolvable deletionProtection)
Sets the value ofPrivatecaCertificateAuthorityConfig.getDeletionProtection()- Parameters:
deletionProtection- Whether Terraform will be prevented from destroying the CertificateAuthority. When the field is set to true or unset in Terraform state, a 'terraform apply' or 'terraform destroy' that would delete the CertificateAuthority will fail. When the field is set to false, deleting the CertificateAuthority is allowed. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/privateca_certificate_authority#deletion_protection PrivatecaCertificateAuthority#deletion_protection}- Returns:
this
-
desiredState
@Stability(Stable) public PrivatecaCertificateAuthorityConfig.Builder desiredState(String desiredState)
Sets the value ofPrivatecaCertificateAuthorityConfig.getDesiredState()- Parameters:
desiredState- Desired state of the CertificateAuthority. Set this field to 'STAGED' to create a 'STAGED' root CA. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/privateca_certificate_authority#desired_state PrivatecaCertificateAuthority#desired_state}- Returns:
this
-
gcsBucket
@Stability(Stable) public PrivatecaCertificateAuthorityConfig.Builder gcsBucket(String gcsBucket)
Sets the value ofPrivatecaCertificateAuthorityConfig.getGcsBucket()- Parameters:
gcsBucket- The name of a Cloud Storage bucket where this CertificateAuthority will publish content, such as the CA certificate and CRLs. This must be a bucket name, without any prefixes (such as 'gs://') or suffixes (such as '.googleapis.com'). For example, to use a bucket named my-bucket, you would simply specify 'my-bucket'. If not specified, a managed bucket will be created. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/privateca_certificate_authority#gcs_bucket PrivatecaCertificateAuthority#gcs_bucket}- Returns:
this
-
id
@Stability(Stable) public PrivatecaCertificateAuthorityConfig.Builder id(String id)
Sets the value ofPrivatecaCertificateAuthorityConfig.getId()- Parameters:
id- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/privateca_certificate_authority#id PrivatecaCertificateAuthority#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
-
ignoreActiveCertificatesOnDeletion
@Stability(Stable) public PrivatecaCertificateAuthorityConfig.Builder ignoreActiveCertificatesOnDeletion(Boolean ignoreActiveCertificatesOnDeletion)
- Parameters:
ignoreActiveCertificatesOnDeletion- This field allows the CA to be deleted even if the CA has active certs. Active certs include both unrevoked and unexpired certs. Use with care. Defaults to 'false'. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/privateca_certificate_authority#ignore_active_certificates_on_deletion PrivatecaCertificateAuthority#ignore_active_certificates_on_deletion}- Returns:
this
-
ignoreActiveCertificatesOnDeletion
@Stability(Stable) public PrivatecaCertificateAuthorityConfig.Builder ignoreActiveCertificatesOnDeletion(com.hashicorp.cdktf.IResolvable ignoreActiveCertificatesOnDeletion)
- Parameters:
ignoreActiveCertificatesOnDeletion- This field allows the CA to be deleted even if the CA has active certs. Active certs include both unrevoked and unexpired certs. Use with care. Defaults to 'false'. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/privateca_certificate_authority#ignore_active_certificates_on_deletion PrivatecaCertificateAuthority#ignore_active_certificates_on_deletion}- Returns:
this
-
labels
@Stability(Stable) public PrivatecaCertificateAuthorityConfig.Builder labels(Map<String,String> labels)
Sets the value ofPrivatecaCertificateAuthorityConfig.getLabels()- Parameters:
labels- Labels with user-defined metadata. An object containing a list of "key": value pairs. Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }. **Note**: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field 'effective_labels' for all of the labels present on the resource. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/privateca_certificate_authority#labels PrivatecaCertificateAuthority#labels}- Returns:
this
-
lifetime
@Stability(Stable) public PrivatecaCertificateAuthorityConfig.Builder lifetime(String lifetime)
Sets the value ofPrivatecaCertificateAuthorityConfig.getLifetime()- Parameters:
lifetime- The desired lifetime of the CA certificate. Used to create the "notBeforeTime" and "notAfterTime" fields inside an X.509 certificate. A duration in seconds with up to nine fractional digits, terminated by 's'. Example: "3.5s". Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/privateca_certificate_authority#lifetime PrivatecaCertificateAuthority#lifetime}- Returns:
this
-
pemCaCertificate
@Stability(Stable) public PrivatecaCertificateAuthorityConfig.Builder pemCaCertificate(String pemCaCertificate)
Sets the value ofPrivatecaCertificateAuthorityConfig.getPemCaCertificate()- Parameters:
pemCaCertificate- The signed CA certificate issued from the subordinated CA's CSR. This is needed when activating the subordiante CA with a third party issuer. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/privateca_certificate_authority#pem_ca_certificate PrivatecaCertificateAuthority#pem_ca_certificate}- Returns:
this
-
project
@Stability(Stable) public PrivatecaCertificateAuthorityConfig.Builder project(String project)
Sets the value ofPrivatecaCertificateAuthorityConfig.getProject()- Parameters:
project- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/privateca_certificate_authority#project PrivatecaCertificateAuthority#project}.- Returns:
this
-
skipGracePeriod
@Stability(Stable) public PrivatecaCertificateAuthorityConfig.Builder skipGracePeriod(Boolean skipGracePeriod)
Sets the value ofPrivatecaCertificateAuthorityConfig.getSkipGracePeriod()- Parameters:
skipGracePeriod- If this flag is set, the Certificate Authority will be deleted as soon as possible without a 30-day grace period where undeletion would have been allowed. If you proceed, there will be no way to recover this CA. Use with care. Defaults to 'false'. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/privateca_certificate_authority#skip_grace_period PrivatecaCertificateAuthority#skip_grace_period}- Returns:
this
-
skipGracePeriod
@Stability(Stable) public PrivatecaCertificateAuthorityConfig.Builder skipGracePeriod(com.hashicorp.cdktf.IResolvable skipGracePeriod)
Sets the value ofPrivatecaCertificateAuthorityConfig.getSkipGracePeriod()- Parameters:
skipGracePeriod- If this flag is set, the Certificate Authority will be deleted as soon as possible without a 30-day grace period where undeletion would have been allowed. If you proceed, there will be no way to recover this CA. Use with care. Defaults to 'false'. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/privateca_certificate_authority#skip_grace_period PrivatecaCertificateAuthority#skip_grace_period}- Returns:
this
-
subordinateConfig
@Stability(Stable) public PrivatecaCertificateAuthorityConfig.Builder subordinateConfig(PrivatecaCertificateAuthoritySubordinateConfig subordinateConfig)
Sets the value ofPrivatecaCertificateAuthorityConfig.getSubordinateConfig()- Parameters:
subordinateConfig- subordinate_config block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/privateca_certificate_authority#subordinate_config PrivatecaCertificateAuthority#subordinate_config}- Returns:
this
-
timeouts
@Stability(Stable) public PrivatecaCertificateAuthorityConfig.Builder timeouts(PrivatecaCertificateAuthorityTimeouts timeouts)
Sets the value ofPrivatecaCertificateAuthorityConfig.getTimeouts()- Parameters:
timeouts- timeouts block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/privateca_certificate_authority#timeouts PrivatecaCertificateAuthority#timeouts}- Returns:
this
-
type
@Stability(Stable) public PrivatecaCertificateAuthorityConfig.Builder type(String type)
Sets the value ofPrivatecaCertificateAuthorityConfig.getType()- Parameters:
type- The Type of this CertificateAuthority. ~> **Note:** For 'SUBORDINATE' Certificate Authorities, they need to be activated before they can issue certificates. Default value: "SELF_SIGNED" Possible values: ["SELF_SIGNED", "SUBORDINATE"] Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/privateca_certificate_authority#type PrivatecaCertificateAuthority#type}- Returns:
this
-
connection
@Stability(Experimental) public PrivatecaCertificateAuthorityConfig.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 PrivatecaCertificateAuthorityConfig.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 PrivatecaCertificateAuthorityConfig.Builder count(Number count)
Sets the value ofTerraformMetaArguments.getCount()- Parameters:
count- the value to be set.- Returns:
this
-
count
@Stability(Experimental) public PrivatecaCertificateAuthorityConfig.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 PrivatecaCertificateAuthorityConfig.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 PrivatecaCertificateAuthorityConfig.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 PrivatecaCertificateAuthorityConfig.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 PrivatecaCertificateAuthorityConfig.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 PrivatecaCertificateAuthorityConfig.Builder provisioners(List<? extends Object> provisioners)
Sets the value ofTerraformMetaArguments.getProvisioners()- Parameters:
provisioners- the value to be set.- Returns:
this
-
build
@Stability(Stable) public PrivatecaCertificateAuthorityConfig build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<PrivatecaCertificateAuthorityConfig>- Returns:
- a new instance of
PrivatecaCertificateAuthorityConfig - Throws:
NullPointerException- if any required attribute was not provided
-
-