SelfSignedCertState class

Input properties used for looking up and filtering SelfSignedCert resources.

Constructors

SelfSignedCertState({Input<List<String>?>? allowedUses, Input<String?>? certPem, Input<List<String>?>? dnsNames, Input<int?>? earlyRenewalHours, Input<List<String>?>? ipAddresses, Input<bool?>? isCaCertificate, Input<String?>? keyAlgorithm, Input<int?>? maxPathLength, Input<String?>? privateKeyPem, Input<String?>? privateKeyPemWo, Input<int?>? privateKeyPemWoVersion, Input<bool?>? readyForRenewal, Input<bool?>? setAuthorityKeyId, Input<bool?>? setSubjectKeyId, Input<SelfSignedCertSubject?>? subject, Input<List<String>?>? uris, Input<String?>? validityEndTime, Input<int?>? validityPeriodHours, Input<String?>? validityStartTime})
Creates a new SelfSignedCertState. allowedUses List of key usages allowed for the issued certificate. Values are defined in RFC 5280 and combine flags defined by both Key Usages and Extended Key Usages. Accepted values: anyExtended, certSigning, clientAuth, codeSigning, contentCommitment, crlSigning, dataEncipherment, decipherOnly, digitalSignature, emailProtection, encipherOnly, ipsecEndSystem, ipsecTunnel, ipsecUser, keyAgreement, keyEncipherment, microsoftCommercialCodeSigning, microsoftKernelCodeSigning, microsoftServerGatedCrypto, netscapeServerGatedCrypto, ocspSigning, serverAuth, timestamping. certPem Certificate data in PEM (RFC 1421) format. NOTE: the underlying libraries that generate this value append a \n at the end of the PEM. In case this disrupts your use case, we recommend using trimspace(). dnsNames List of DNS names for which a certificate is being requested (i.e. certificate subjects). earlyRenewalHours The resource will consider the certificate to have expired the given number of hours before its actual expiry time. This can be useful to deploy an updated certificate in advance of the expiration of the current certificate. However, the old certificate remains valid until its true expiration time, since this resource does not (and cannot) support certificate revocation. Also, this advance update can only be performed should the Terraform configuration be applied during the early renewal period. (default: 0) ipAddresses List of IP addresses for which a certificate is being requested (i.e. certificate subjects). isCaCertificate Is the generated certificate representing a Certificate Authority (CA) (default: false). keyAlgorithm Name of the algorithm used when generating the private key provided in privateKeyPem. maxPathLength Maximum number of intermediate certificates that may follow this certificate in a valid certification path. If isCaCertificate is false, this value is ignored. privateKeyPem Private key in PEM (RFC 1421) format, that the certificate will belong to. This can be read from a separate file using the file interpolation function. Exactly one of privateKeyPem or privateKeyPemWo must be set. privateKeyPemWo NOTE: This field is write-only and its value will not be updated in state as part of read operations. privateKeyPemWoVersion The version of the privateKeyPemWo write-only private key. Because the write-only key is not stored in state, this version is the only signal the provider has that the key changed: increment it to force the certificate to be re-issued when rotating the key. readyForRenewal Is the certificate either expired (i.e. beyond the validityPeriodHours) or ready for an early renewal (i.e. within the earlyRenewalHours)? setAuthorityKeyId Should the generated certificate include an authority key identifier: for self-signed certificates this is the same value as the subject key identifier (default: false). setSubjectKeyId Should the generated certificate include a subject key identifier (default: false). subject The subject for which a certificate is being requested. The acceptable arguments are all optional and their naming is based upon Issuer Distinguished Names (RFC5280) section. uris List of URIs for which a certificate is being requested (i.e. certificate subjects). validityEndTime The time until which the certificate is invalid, expressed as an RFC3339 timestamp. validityPeriodHours Number of hours, after initial issuing, that the certificate will remain valid for. validityStartTime The time after which the certificate is valid, expressed as an RFC3339 timestamp.
const
SelfSignedCertState.fromMap(Map<String, dynamic> map)
factory

Properties

allowedUses → Input<List<String>?>?
List of key usages allowed for the issued certificate. Values are defined in RFC 5280 and combine flags defined by both Key Usages and Extended Key Usages. Accepted values: anyExtended, certSigning, clientAuth, codeSigning, contentCommitment, crlSigning, dataEncipherment, decipherOnly, digitalSignature, emailProtection, encipherOnly, ipsecEndSystem, ipsecTunnel, ipsecUser, keyAgreement, keyEncipherment, microsoftCommercialCodeSigning, microsoftKernelCodeSigning, microsoftServerGatedCrypto, netscapeServerGatedCrypto, ocspSigning, serverAuth, timestamping.
final
certPem → Input<String?>?
Certificate data in PEM (RFC 1421) format. NOTE: the underlying libraries that generate this value append a \n at the end of the PEM. In case this disrupts your use case, we recommend using trimspace().
final
dnsNames → Input<List<String>?>?
List of DNS names for which a certificate is being requested (i.e. certificate subjects).
final
earlyRenewalHours → Input<int?>?
The resource will consider the certificate to have expired the given number of hours before its actual expiry time. This can be useful to deploy an updated certificate in advance of the expiration of the current certificate. However, the old certificate remains valid until its true expiration time, since this resource does not (and cannot) support certificate revocation. Also, this advance update can only be performed should the Terraform configuration be applied during the early renewal period. (default: 0)
final
hashCode → int
The hash code for this object.
no setterinherited
ipAddresses → Input<List<String>?>?
List of IP addresses for which a certificate is being requested (i.e. certificate subjects).
final
isCaCertificate → Input<bool?>?
Is the generated certificate representing a Certificate Authority (CA) (default: false).
final
keyAlgorithm → Input<String?>?
Name of the algorithm used when generating the private key provided in privateKeyPem.
final
maxPathLength → Input<int?>?
Maximum number of intermediate certificates that may follow this certificate in a valid certification path. If isCaCertificate is false, this value is ignored.
final
privateKeyPem → Input<String?>?
Private key in PEM (RFC 1421) format, that the certificate will belong to. This can be read from a separate file using the file interpolation function. Exactly one of privateKeyPem or privateKeyPemWo must be set.
final
privateKeyPemWo → Input<String?>?
NOTE: This field is write-only and its value will not be updated in state as part of read operations. Write-only private key in PEM (RFC 1421) format, that the certificate will belong to. Unlike privateKeyPem, the value provided here is never persisted to Terraform state. Requires privateKeyPemWoVersion to be set, and exactly one of privateKeyPem or privateKeyPemWo must be set.
final
privateKeyPemWoVersion → Input<int?>?
The version of the privateKeyPemWo write-only private key. Because the write-only key is not stored in state, this version is the only signal the provider has that the key changed: increment it to force the certificate to be re-issued when rotating the key.
final
readyForRenewal → Input<bool?>?
Is the certificate either expired (i.e. beyond the validityPeriodHours) or ready for an early renewal (i.e. within the earlyRenewalHours)?
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
setAuthorityKeyId → Input<bool?>?
Should the generated certificate include an authority key identifier: for self-signed certificates this is the same value as the subject key identifier (default: false).
final
setSubjectKeyId → Input<bool?>?
Should the generated certificate include a subject key identifier (default: false).
final
subject → Input<SelfSignedCertSubject?>?
The subject for which a certificate is being requested. The acceptable arguments are all optional and their naming is based upon Issuer Distinguished Names (RFC5280) section.
final
uris → Input<List<String>?>?
List of URIs for which a certificate is being requested (i.e. certificate subjects).
final
validityEndTime → Input<String?>?
The time until which the certificate is invalid, expressed as an RFC3339 timestamp.
final
validityPeriodHours → Input<int?>?
Number of hours, after initial issuing, that the certificate will remain valid for.
final
validityStartTime → Input<String?>?
The time after which the certificate is valid, expressed as an RFC3339 timestamp.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() → Map<String, dynamic>
toString() → String
A string representation of this object.
inherited

Operators

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