Class PrivatecaCertificate.Builder

    • Method Detail

      • create

        @Stability(Stable)
        public static PrivatecaCertificate.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 PrivatecaCertificate.Builder.
      • connection

        @Stability(Experimental)
        public PrivatecaCertificate.Builder connection​(com.hashicorp.cdktf.SSHProvisionerConnection connection)
        Parameters:
        connection - This parameter is required.
        Returns:
        this
      • connection

        @Stability(Experimental)
        public PrivatecaCertificate.Builder connection​(com.hashicorp.cdktf.WinrmProvisionerConnection connection)
        Parameters:
        connection - This parameter is required.
        Returns:
        this
      • count

        @Stability(Experimental)
        public PrivatecaCertificate.Builder count​(com.hashicorp.cdktf.TerraformCount count)
        Parameters:
        count - This parameter is required.
        Returns:
        this
      • dependsOn

        @Stability(Experimental)
        public PrivatecaCertificate.Builder dependsOn​(List<? extends com.hashicorp.cdktf.ITerraformDependable> dependsOn)
        Parameters:
        dependsOn - This parameter is required.
        Returns:
        this
      • forEach

        @Stability(Experimental)
        public PrivatecaCertificate.Builder forEach​(com.hashicorp.cdktf.ITerraformIterator forEach)
        Parameters:
        forEach - This parameter is required.
        Returns:
        this
      • lifecycle

        @Stability(Experimental)
        public PrivatecaCertificate.Builder lifecycle​(com.hashicorp.cdktf.TerraformResourceLifecycle lifecycle)
        Parameters:
        lifecycle - This parameter is required.
        Returns:
        this
      • provider

        @Stability(Experimental)
        public PrivatecaCertificate.Builder provider​(com.hashicorp.cdktf.TerraformProvider provider)
        Parameters:
        provider - This parameter is required.
        Returns:
        this
      • provisioners

        @Stability(Experimental)
        public PrivatecaCertificate.Builder provisioners​(List<? extends Object> provisioners)
        Parameters:
        provisioners - This parameter is required.
        Returns:
        this
      • location

        @Stability(Stable)
        public PrivatecaCertificate.Builder location​(String location)
        Location of the Certificate. A full list of valid locations can be found by running 'gcloud privateca locations list'.

        Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/privateca_certificate#location PrivatecaCertificate#location}

        Parameters:
        location - Location of the Certificate. A full list of valid locations can be found by running 'gcloud privateca locations list'. This parameter is required.
        Returns:
        this
      • name

        @Stability(Stable)
        public PrivatecaCertificate.Builder name​(String name)
        The name for this Certificate.

        Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/privateca_certificate#name PrivatecaCertificate#name}

        Parameters:
        name - The name for this Certificate. This parameter is required.
        Returns:
        this
      • pool

        @Stability(Stable)
        public PrivatecaCertificate.Builder pool​(String pool)
        The name of the CaPool this Certificate belongs to.

        Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/privateca_certificate#pool PrivatecaCertificate#pool}

        Parameters:
        pool - The name of the CaPool this Certificate belongs to. This parameter is required.
        Returns:
        this
      • certificateAuthority

        @Stability(Stable)
        public PrivatecaCertificate.Builder certificateAuthority​(String certificateAuthority)
        The Certificate Authority ID that should issue the certificate.

        For example, to issue a Certificate from a Certificate Authority with resource name 'projects/my-project/locations/us-central1/caPools/my-pool/certificateAuthorities/my-ca', argument 'pool' should be set to 'projects/my-project/locations/us-central1/caPools/my-pool', argument 'certificate_authority' should be set to 'my-ca'. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/privateca_certificate#certificate_authority PrivatecaCertificate#certificate_authority}

        Parameters:
        certificateAuthority - The Certificate Authority ID that should issue the certificate. This parameter is required.
        Returns:
        this
      • certificateTemplate

        @Stability(Stable)
        public PrivatecaCertificate.Builder certificateTemplate​(String certificateTemplate)
        The resource name for a CertificateTemplate used to issue this certificate, in the format 'projects/* /locations/* /certificateTemplates/*'.

        If this is specified, the caller must have the necessary permission to use this template. If this is omitted, no template will be used. This template must be in the same location as the Certificate. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/privateca_certificate#certificate_template PrivatecaCertificate#certificate_template} Note: The above comment contained a comment block ending sequence (* followed by /). We have introduced a space between to prevent syntax errors. Please ignore the space.

        Parameters:
        certificateTemplate - The resource name for a CertificateTemplate used to issue this certificate, in the format 'projects/* /locations/* /certificateTemplates/*'. This parameter is required.
        Returns:
        this
      • config

        @Stability(Stable)
        public PrivatecaCertificate.Builder config​(PrivatecaCertificateConfigA config)
        config block.

        Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/privateca_certificate#config PrivatecaCertificate#config}

        Parameters:
        config - config block. This parameter is required.
        Returns:
        this
      • id

        @Stability(Stable)
        public PrivatecaCertificate.Builder id​(String id)
        Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/privateca_certificate#id PrivatecaCertificate#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/privateca_certificate#id PrivatecaCertificate#id}. This parameter is required.
        Returns:
        this
      • labels

        @Stability(Stable)
        public PrivatecaCertificate.Builder labels​(Map<String,​String> labels)
        Labels with user-defined metadata to apply to this resource.

        **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#labels PrivatecaCertificate#labels}

        Parameters:
        labels - Labels with user-defined metadata to apply to this resource. This parameter is required.
        Returns:
        this
      • lifetime

        @Stability(Stable)
        public PrivatecaCertificate.Builder lifetime​(String 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#lifetime PrivatecaCertificate#lifetime}

        Parameters:
        lifetime - The desired lifetime of the CA certificate. This parameter is required.
        Returns:
        this
      • pemCsr

        @Stability(Stable)
        public PrivatecaCertificate.Builder pemCsr​(String pemCsr)
        Immutable. A pem-encoded X.509 certificate signing request (CSR).

        Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/privateca_certificate#pem_csr PrivatecaCertificate#pem_csr}

        Parameters:
        pemCsr - Immutable. A pem-encoded X.509 certificate signing request (CSR). This parameter is required.
        Returns:
        this
      • project

        @Stability(Stable)
        public PrivatecaCertificate.Builder project​(String project)
        Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/privateca_certificate#project PrivatecaCertificate#project}.

        Parameters:
        project - Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/privateca_certificate#project PrivatecaCertificate#project}. This parameter is required.
        Returns:
        this
      • timeouts

        @Stability(Stable)
        public PrivatecaCertificate.Builder timeouts​(PrivatecaCertificateTimeouts timeouts)
        timeouts block.

        Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/privateca_certificate#timeouts PrivatecaCertificate#timeouts}

        Parameters:
        timeouts - timeouts block. This parameter is required.
        Returns:
        this