SelfSignedCertState class
Input properties used for looking up and filtering SelfSignedCert resources.
Constructors
-
SelfSignedCertState({Input<
List< ? allowedUses, Input<String> ?>String?> ? certPem, Input<List< ? dnsNames, Input<String> ?>int?> ? earlyRenewalHours, Input<List< ? ipAddresses, Input<String> ?>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< ? uris, Input<String> ?>String?> ? validityEndTime, Input<int?> ? validityPeriodHours, Input<String?> ? validityStartTime}) -
Creates a new SelfSignedCertState.
allowedUsesList 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.certPemCertificate data in PEM (RFC 1421) format. NOTE: the underlying libraries that generate this value append a\nat the end of the PEM. In case this disrupts your use case, we recommend usingtrimspace().dnsNamesList of DNS names for which a certificate is being requested (i.e. certificate subjects).earlyRenewalHoursThe 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)ipAddressesList of IP addresses for which a certificate is being requested (i.e. certificate subjects).isCaCertificateIs the generated certificate representing a Certificate Authority (CA) (default:false).keyAlgorithmName of the algorithm used when generating the private key provided inprivateKeyPem.maxPathLengthMaximum number of intermediate certificates that may follow this certificate in a valid certification path. IfisCaCertificateisfalse, this value is ignored.privateKeyPemPrivate key in PEM (RFC 1421) format, that the certificate will belong to. This can be read from a separate file using thefileinterpolation function. Exactly one ofprivateKeyPemorprivateKeyPemWomust be set.privateKeyPemWoNOTE: This field is write-only and its value will not be updated in state as part of read operations.privateKeyPemWoVersionThe version of theprivateKeyPemWowrite-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.readyForRenewalIs the certificate either expired (i.e. beyond thevalidityPeriodHours) or ready for an early renewal (i.e. within theearlyRenewalHours)?setAuthorityKeyIdShould the generated certificate include an authority key identifier: for self-signed certificates this is the same value as the subject key identifier (default:false).setSubjectKeyIdShould the generated certificate include a subject key identifier (default:false).subjectThe 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.urisList of URIs for which a certificate is being requested (i.e. certificate subjects).validityEndTimeThe time until which the certificate is invalid, expressed as an RFC3339 timestamp.validityPeriodHoursNumber of hours, after initial issuing, that the certificate will remain valid for.validityStartTimeThe 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
\nat the end of the PEM. In case this disrupts your use case, we recommend usingtrimspace().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
isCaCertificateisfalse, 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
fileinterpolation function. Exactly one ofprivateKeyPemorprivateKeyPemWomust 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. RequiresprivateKeyPemWoVersionto be set, and exactly one ofprivateKeyPemorprivateKeyPemWomust be set.final -
privateKeyPemWoVersion
→ Input<
int?> ? -
The version of the
privateKeyPemWowrite-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 theearlyRenewalHours)?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