SSLCertificate class

An SslCertificate resource, used for HTTPS load balancing. This resource provides a mechanism to upload an SSL key and certificate to the load balancer to serve secure connections from the user.

To get more information about SslCertificate, see:

> Note: All arguments marked as write-only values will not be stored in the state: privateKeyWo. Read more about Write-only Arguments.

Example Usage

Import

SslCertificate can be imported using any of these accepted formats:

  • projects/{{project}}/global/sslCertificates/{{name}}
  • {{project}}/{{name}}
  • {{name}}

When using the pulumi import command, SslCertificate can be imported using one of the formats above. For example:

$ pulumi import gcp:compute/sSLCertificate:SSLCertificate default projects/{{project}}/global/sslCertificates/{{name}}
$ pulumi import gcp:compute/sSLCertificate:SSLCertificate default {{project}}/{{name}}
$ pulumi import gcp:compute/sSLCertificate:SSLCertificate default {{name}}

Constructors

SSLCertificate(String name, {SSLCertificateArgs? args, CustomResourceOptions? options})
Creates a new SSLCertificate. name The Pulumi resource name. args Arguments used to configure this SSLCertificate. The set of arguments for SSLCertificate. options Resource options controlling this resource's behavior.
SSLCertificate.reference(String urn)
Creates a typed reference to an existing SSLCertificate resource.

Properties

certificate ↔ Output<String>
The certificate in PEM format. The certificate chain must be no greater than 5 certs long. The chain must include at least one intermediate cert. Note: This property is sensitive and will not be displayed in the plan.
latefinal
certificateId ↔ Output<int>
The unique identifier for the resource.
latefinal
childResources → Set<Resource>
finalinherited
completionSources ↔ Map<String, IOutputCompletionSource>
latefinalinherited
creationTimestamp ↔ Output<String>
Creation timestamp in RFC3339 text format.
latefinal
deletionPolicy ↔ Output<String>
Whether Terraform will be prevented from destroying the resource. Defaults to DELETE. When a 'terraform destroy' or 'pulumi up' would delete the resource, the command will fail if this field is set to "PREVENT" in Terraform state. When set to "ABANDON", the command will remove the resource from Terraform management without updating or deleting the resource in the API. When set to "DELETE", deleting the resource is allowed.
latefinal
description ↔ Output<String?>
An optional description of this resource.
latefinal
expireTime ↔ Output<String>
Expire time of the certificate in RFC3339 text format.
latefinal
hashCode → int
The hash code for this object.
no setterinherited
id ↔ Output<String>
getter/setter pairinherited
isCustom → bool
Returns whether this resource is provider-managed.
no setterinherited
isProtected → bool
Returns whether this resource is protected from deletion.
no setterinherited
isRemote → bool
Whether this resource is registered as remote.
no setterinherited
isResourceReference → bool
Whether this instance represents a resource value returned over RPC.
finalinherited
name ↔ Output<String>
Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression a-z? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. These are in the same namespace as the managed SSL certificates.
latefinal
namePrefix ↔ Output<String>
Creates a unique name beginning with the specified prefix. Conflicts with name. Max length is 54 characters. Prefixes with lengths longer than 37 characters will use a shortened UUID that will be more prone to collisions. Resulting name for a namePrefix <= 37 characters: namePrefix + YYYYmmddHHSSssss + 8 digit incremental counter Resulting name for a namePrefix 38 - 54 characters: namePrefix + YYmmdd + 3 digit incremental counter
latefinal
privateKey ↔ Output<String?>
The write-only private key in PEM format. Note: This property is sensitive and will not be displayed in the plan.
latefinal
privateKeyWo ↔ Output<String?>
NOTE: This field is write-only and its value will not be updated in state as part of read operations. (Optional, Write-Only) The write-only private key in PEM format. Note: This property is write-only and will not be read from the API.
latefinal
privateKeyWoVersion ↔ Output<String?>
Triggers update of privateKeyWo write-only. Increment this value when an update to privateKeyWo is needed. For more info see updating write-only arguments
latefinal
project ↔ Output<String>
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
latefinal
resourceTransforms → List<ResourceTransform>
Inherited/explicit async transforms.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
The URI of the created resource.
latefinal
transformations → List<ResourceTransformation>
Inherited/explicit legacy transformations.
no setterinherited
urn ↔ Output<String>
latefinalinherited

Methods

failId(Object error) → void
Completes this resource ID with an error when registration fails.
inherited
failOutputs(Object error) → void
Completes all output properties with error.
inherited
failUrn(Object error) → void
Completes this resource URN with an error when registration fails.
inherited
getProvider(String moduleMember) → ProviderResource?
Returns provider for moduleMember's package, if configured.
inherited
getResourceName() → String
Returns this resource's logical name.
inherited
getResourceType() → String
Returns this resource's Pulumi type token.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
registerOutput<T>(String propertyName, {Object? decoder(Object?)?, bool isSecret = false}) → Output<T>
Registers a dynamic output property for this resource.
inherited
resolveId(String? value, {required bool isKnown}) → void
Resolves the provider-assigned ID for this resource.
inherited
resolveOutputs(Struct outputs) → void
Resolves all output properties from a monitor response payload.
inherited
resolveUrn(String value) → void
Resolves this resource's URN once assigned by the engine.
inherited
serializeProperties(Map<String, dynamic> properties) → Future<Struct>
Serializes resource properties for RPC transmission.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Static Methods

get(String name, Input<String> id, {SSLCertificateState? state, CustomResourceOptions? options}) → SSLCertificate
Gets an existing SSLCertificate resource's state with the given name and id.