Skip to content

googleComputeRegionSslCertificate

Get info about a Region Google Compute SSL Certificate from its name.

Example Usage

import * as cdktf from "cdktf";
/*Provider bindings are generated by running cdktf get.
See https://cdk.tf/provider-generation for more details.*/
import * as google from "./.gen/providers/google";
/*The following providers are missing schema information and might need manual adjustments to synthesize correctly: google.
For a more precise conversion please use the --provider flag in convert.*/
const dataGoogleComputeRegionSslCertificateMyCert =
  new google.dataGoogleComputeRegionSslCertificate.DataGoogleComputeRegionSslCertificate(
    this,
    "my_cert",
    {
      name: "my-cert",
    }
  );
new cdktf.TerraformOutput(this, "certificate", {
  value: dataGoogleComputeRegionSslCertificateMyCert.certificate,
});
new cdktf.TerraformOutput(this, "certificate_id", {
  value: dataGoogleComputeRegionSslCertificateMyCert.certificateId,
});
new cdktf.TerraformOutput(this, "self_link", {
  value: dataGoogleComputeRegionSslCertificateMyCert.selfLink,
});

Argument Reference

The following arguments are supported:

  • name (Required) - The name of the certificate.

  • project - (Optional) The project in which the resource belongs. If it is not provided, the provider project is used.

  • region - (Optional) The region in which the resource belongs. If it is not provided, the provider region is used.

Attributes Reference

See google_compute_region_ssl_certificate resource for details of the available attributes.