Interface ICfnServerCertificateProps
Properties for defining a CfnServerCertificate
.
Namespace: Amazon.CDK.AWS.IAM
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public interface ICfnServerCertificateProps
Syntax (vb)
Public Interface ICfnServerCertificateProps
Remarks
ExampleMetadata: fixture=_generated
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"
} }
};
Synopsis
Properties
CertificateBody | The contents of the public key certificate. |
CertificateChain | The contents of the public key certificate chain. |
Path | The path for the server certificate. |
PrivateKey | The contents of the private key in PEM-encoded format. |
ServerCertificateName | The name for the server certificate. |
Tags | A list of tags that are attached to the server certificate. |
Properties
CertificateBody
The contents of the public key certificate.
virtual string CertificateBody { get; }
Property Value
System.String
Remarks
CertificateChain
The contents of the public key certificate chain.
virtual string CertificateChain { get; }
Property Value
System.String
Remarks
Path
The path for the server certificate.
virtual string Path { get; }
Property Value
System.String
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 path
parameter. The path must begin with /cloudfront
and must include a trailing slash (for example, /cloudfront/test/
).
PrivateKey
The contents of the private key in PEM-encoded format.
virtual string PrivateKey { get; }
Property Value
System.String
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.
virtual string ServerCertificateName { get; }
Property Value
System.String
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.
virtual ICfnTag[] Tags { get; }
Property Value
ICfnTag[]
Remarks
For more information about tagging, see Tagging IAM resources in the IAM User Guide .