Class CfnServerCertificateProps
Properties for defining a CfnServerCertificate
.
public class CfnServerCertificateProps : ICfnServerCertificateProps
- Inheritance
-
CfnServerCertificateProps
- Implements
- Inherited Members
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.IAM;
var cfnServerCertificateProps = new CfnServerCertificateProps {
CertificateBody = "certificateBody",
CertificateChain = "certificateChain",
Path = "path",
PrivateKey = "privateKey",
ServerCertificateName = "serverCertificateName",
Tags = new [] { new CfnTag {
Key = "key",
Value = "value"
} }
};
Remarks
ExampleMetadata: fixture=_generated
Constructors
CfnServerCertificateProps()
public CfnServerCertificateProps()
Properties
CertificateBody
The contents of the public key certificate.
public string? CertificateBody { get; set; }
Property Value
Remarks
CertificateChain
The contents of the public key certificate chain.
public string? CertificateChain { get; set; }
Property Value
Remarks
Path
The path for the server certificate.
public string? Path { get; set; }
Property Value
Remarks
For more information about paths, see IAM identifiers in the IAM User Guide .
This parameter is optional. If it is not included, it defaults to a slash (/). This parameter allows (through its regex pattern ) a string of characters consisting of either a forward slash (/) by itself or a string that must begin and end with forward slashes. In addition, it can contain any ASCII character from the ! ( \ u0021
) through the DEL character ( \ u007F
), including most punctuation characters, digits, and upper and lowercased letters.
If you are uploading a server certificate specifically for use with Amazon CloudFront distributions, you must specify a path using the <code>path</code> parameter. The path must begin with <code>/cloudfront</code> and must include a trailing slash (for example, <code>/cloudfront/test/</code> ).
PrivateKey
The contents of the private key in PEM-encoded format.
public string? PrivateKey { get; set; }
Property Value
Remarks
The regex pattern used to validate this parameter is a string of characters consisting of the following:
ServerCertificateName
The name for the server certificate.
public string? ServerCertificateName { get; set; }
Property Value
Remarks
Do not include the path in this value. The name of the certificate cannot contain any spaces.
This parameter allows (through its regex pattern ) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: _+=,.@-
Tags
A list of tags that are attached to the server certificate.
public ICfnTag[]? Tags { get; set; }
Property Value
- ICfnTag[]
Remarks
For more information about tagging, see Tagging IAM resources in the IAM User Guide .