Google Cloud Native is in preview. Google Cloud Classic is fully supported.
google-native.sqladmin/v1beta4.SslCert
Explore with Pulumi AI
Google Cloud Native is in preview. Google Cloud Classic is fully supported.
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/v1beta4:SslCert
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
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 google_nativeSslCertResource = new GoogleNative.SQLAdmin.V1Beta4.SslCert("google-nativeSslCertResource", new()
{
Instance = "string",
CommonName = "string",
Project = "string",
});
example, err := sqladminv1beta4.NewSslCert(ctx, "google-nativeSslCertResource", &sqladminv1beta4.SslCertArgs{
Instance: pulumi.String("string"),
CommonName: pulumi.String("string"),
Project: pulumi.String("string"),
})
var google_nativeSslCertResource = new SslCert("google-nativeSslCertResource", SslCertArgs.builder()
.instance("string")
.commonName("string")
.project("string")
.build());
google_native_ssl_cert_resource = google_native.sqladmin.v1beta4.SslCert("google-nativeSslCertResource",
instance="string",
common_name="string",
project="string")
const google_nativeSslCertResource = new google_native.sqladmin.v1beta4.SslCert("google-nativeSslCertResource", {
instance: "string",
commonName: "string",
project: "string",
});
type: google-native:sqladmin/v1beta4: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 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.
- 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.
Package Details
- Repository
- Google Cloud Native pulumi/pulumi-google-native
- License
- Apache-2.0
Google Cloud Native is in preview. Google Cloud Classic is fully supported.