Class CfnServerCertificateProps
Properties for defining a CfnServerCertificate
.
Implements
Inherited Members
Namespace: Amazon.CDK.AWS.IAM
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnServerCertificateProps : ICfnServerCertificateProps
Syntax (vb)
Public Class CfnServerCertificateProps Implements 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
Constructors
CfnServerCertificateProps() | Properties for defining a |
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. |
Constructors
CfnServerCertificateProps()
Properties for defining a CfnServerCertificate
.
public CfnServerCertificateProps()
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"
} }
};
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 .