This package is deprecated. Active development has stopped. We recommend using the Google Cloud package instead.
published on Wednesday, Nov 29, 2023 by Pulumi
This package is deprecated. Active development has stopped. We recommend using the Google Cloud package instead.
published on Wednesday, Nov 29, 2023 by Pulumi
Creates an SSL certificate and returns it along with the private key and server certificate authority. The new certificate will not be usable until the instance is restarted. Auto-naming is currently not supported for this resource.
Create SslCert Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new SslCert(name: string, args: SslCertArgs, opts?: CustomResourceOptions);@overload
def SslCert(resource_name: str,
args: SslCertInitArgs,
opts: Optional[ResourceOptions] = None)
@overload
def SslCert(resource_name: str,
opts: Optional[ResourceOptions] = None,
instance: Optional[str] = None,
common_name: Optional[str] = None,
project: Optional[str] = None)func NewSslCert(ctx *Context, name string, args SslCertArgs, opts ...ResourceOption) (*SslCert, error)public SslCert(string name, SslCertArgs args, CustomResourceOptions? opts = null)
public SslCert(String name, SslCertArgs args)
public SslCert(String name, SslCertArgs args, CustomResourceOptions options)
type: google-native:sqladmin/v1:SslCert
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "google-native_sqladmin_v1_ssl_cert" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args SslCertArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args SslCertInitArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args SslCertArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args SslCertArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args SslCertArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var sslCertResource = new GoogleNative.SQLAdmin.V1.SslCert("sslCertResource", new()
{
Instance = "string",
CommonName = "string",
Project = "string",
});
example, err := sqladmin.NewSslCert(ctx, "sslCertResource", &sqladmin.SslCertArgs{
Instance: pulumi.String("string"),
CommonName: pulumi.String("string"),
Project: pulumi.String("string"),
})
resource "google-native_sqladmin_v1_ssl_cert" "sslCertResource" {
lifecycle {
create_before_destroy = true
}
instance = "string"
common_name = "string"
project = "string"
}
var sslCertResource = new com.pulumi.googlenative.sqladmin_v1.SslCert("sslCertResource", com.pulumi.googlenative.sqladmin_v1.SslCertArgs.builder()
.instance("string")
.commonName("string")
.project("string")
.build());
ssl_cert_resource = google_native.sqladmin.v1.SslCert("sslCertResource",
instance="string",
common_name="string",
project="string")
const sslCertResource = new google_native.sqladmin.v1.SslCert("sslCertResource", {
instance: "string",
commonName: "string",
project: "string",
});
type: google-native:sqladmin/v1:SslCert
properties:
commonName: string
instance: string
project: string
SslCert Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The SslCert resource accepts the following input properties:
- Instance string
- Common
Name string - User supplied name. Must be a distinct name from the other certificates for this instance.
- Project string
- Instance string
- Common
Name string - User supplied name. Must be a distinct name from the other certificates for this instance.
- Project string
- instance string
- common_
name string - User supplied name. Must be a distinct name from the other certificates for this instance.
- project string
- instance String
- common
Name String - User supplied name. Must be a distinct name from the other certificates for this instance.
- project String
- instance string
- common
Name string - User supplied name. Must be a distinct name from the other certificates for this instance.
- project string
- instance str
- common_
name str - User supplied name. Must be a distinct name from the other certificates for this instance.
- project str
- instance String
- common
Name String - User supplied name. Must be a distinct name from the other certificates for this instance.
- project String
Outputs
All input properties are implicitly available as output properties. Additionally, the SslCert resource produces the following output properties:
- Cert string
- PEM representation.
- Cert
Serial stringNumber - Serial number, as extracted from the certificate.
- Create
Time string - The time when the certificate was created in RFC 3339 format, for example
2012-11-15T16:19:00.094Z - Expiration
Time string - The time when the certificate expires in RFC 3339 format, for example
2012-11-15T16:19:00.094Z. - Id string
- The provider-assigned unique ID for this managed resource.
- Kind string
- This is always
sql#sslCert. - Self
Link string - The URI of this resource.
- Sha1Fingerprint string
- Sha1 Fingerprint.
- Cert string
- PEM representation.
- Cert
Serial stringNumber - Serial number, as extracted from the certificate.
- Create
Time string - The time when the certificate was created in RFC 3339 format, for example
2012-11-15T16:19:00.094Z - Expiration
Time string - The time when the certificate expires in RFC 3339 format, for example
2012-11-15T16:19:00.094Z. - Id string
- The provider-assigned unique ID for this managed resource.
- Kind string
- This is always
sql#sslCert. - Self
Link string - The URI of this resource.
- Sha1Fingerprint string
- Sha1 Fingerprint.
- cert string
- PEM representation.
- cert_
serial_ stringnumber - Serial number, as extracted from the certificate.
- create_
time string - The time when the certificate was created in RFC 3339 format, for example
2012-11-15T16:19:00.094Z - expiration_
time string - The time when the certificate expires in RFC 3339 format, for example
2012-11-15T16:19:00.094Z. - id string
- The provider-assigned unique ID for this managed resource.
- kind string
- This is always
sql#sslCert. - self_
link string - The URI of this resource.
- sha1_
fingerprint string - Sha1 Fingerprint.
- cert String
- PEM representation.
- cert
Serial StringNumber - Serial number, as extracted from the certificate.
- create
Time String - The time when the certificate was created in RFC 3339 format, for example
2012-11-15T16:19:00.094Z - expiration
Time String - The time when the certificate expires in RFC 3339 format, for example
2012-11-15T16:19:00.094Z. - id String
- The provider-assigned unique ID for this managed resource.
- kind String
- This is always
sql#sslCert. - self
Link String - The URI of this resource.
- sha1Fingerprint String
- Sha1 Fingerprint.
- cert string
- PEM representation.
- cert
Serial stringNumber - Serial number, as extracted from the certificate.
- create
Time string - The time when the certificate was created in RFC 3339 format, for example
2012-11-15T16:19:00.094Z - expiration
Time string - The time when the certificate expires in RFC 3339 format, for example
2012-11-15T16:19:00.094Z. - id string
- The provider-assigned unique ID for this managed resource.
- kind string
- This is always
sql#sslCert. - self
Link string - The URI of this resource.
- sha1Fingerprint string
- Sha1 Fingerprint.
- cert str
- PEM representation.
- cert_
serial_ strnumber - Serial number, as extracted from the certificate.
- create_
time str - The time when the certificate was created in RFC 3339 format, for example
2012-11-15T16:19:00.094Z - expiration_
time str - The time when the certificate expires in RFC 3339 format, for example
2012-11-15T16:19:00.094Z. - id str
- The provider-assigned unique ID for this managed resource.
- kind str
- This is always
sql#sslCert. - self_
link str - The URI of this resource.
- sha1_
fingerprint str - Sha1 Fingerprint.
- cert String
- PEM representation.
- cert
Serial StringNumber - Serial number, as extracted from the certificate.
- create
Time String - The time when the certificate was created in RFC 3339 format, for example
2012-11-15T16:19:00.094Z - expiration
Time String - The time when the certificate expires in RFC 3339 format, for example
2012-11-15T16:19:00.094Z. - id String
- The provider-assigned unique ID for this managed resource.
- kind String
- This is always
sql#sslCert. - self
Link String - The URI of this resource.
- sha1Fingerprint String
- Sha1 Fingerprint.
Look up Existing SslCert Resource
Get an existing SslCert resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, opts?: CustomResourceOptions): SslCert@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None) -> SslCertfunc GetSslCert(ctx *Context, name string, id IDInput, state *SslCertState, opts ...ResourceOption) (*SslCert, error)public static SslCert Get(string name, Input<string> id, CustomResourceOptions? opts = null)public static SslCert get(String name, Output<String> id, CustomResourceOptions options)resources: existingSslCert: type: google-native:sqladmin/v1:SslCert get: id: ${id}import {
to = google-native_sqladmin_v1_ssl_cert.example
id = "${id}"
}
- name string
- The unique name of the resulting resource.
- id Input<ID>
- The unique provider ID of the resource to look up.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resulting resource.
- id str
- The unique provider ID of the resource to look up.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resulting resource.
- id IDInput
- The unique provider ID of the resource to look up.
- state SslCertState
- Pass nil. This resource has no state arguments.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resulting resource.
- id Input<string>
- The unique provider ID of the resource to look up.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resulting resource.
- id Output<String>
- The unique provider ID of the resource to look up.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Package Details
- Repository
- Google Cloud Native pulumi/pulumi-google-native
- License
- Apache-2.0
This package is deprecated. Active development has stopped. We recommend using the Google Cloud package instead.
published on Wednesday, Nov 29, 2023 by Pulumi