public static final class CfnServerCertificateProps.Builder
extends java.lang.Object
CfnServerCertificateProps
Constructor and Description |
---|
Builder() |
public CfnServerCertificateProps.Builder certificateBody(java.lang.String certificateBody)
CfnServerCertificateProps.getCertificateBody()
certificateBody
- The contents of the public key certificate.this
public CfnServerCertificateProps.Builder certificateChain(java.lang.String certificateChain)
CfnServerCertificateProps.getCertificateChain()
certificateChain
- The contents of the public key certificate chain.this
public CfnServerCertificateProps.Builder path(java.lang.String path)
CfnServerCertificateProps.getPath()
path
- The path for the server certificate.
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/
).
this
public CfnServerCertificateProps.Builder privateKey(java.lang.String privateKey)
CfnServerCertificateProps.getPrivateKey()
privateKey
- The contents of the private key in PEM-encoded format.
The regex pattern used to validate this parameter is a string of characters consisting of the following:
\ u0020
) through the end of the ASCII character range\ u00FF
)\ u0009
), line feed ( \ u000A
), and carriage return ( \ u000D
)this
public CfnServerCertificateProps.Builder serverCertificateName(java.lang.String serverCertificateName)
CfnServerCertificateProps.getServerCertificateName()
serverCertificateName
- The name for the server certificate.
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: _+=,.@-
this
public CfnServerCertificateProps.Builder tags(java.util.List<? extends CfnTag> tags)
CfnServerCertificateProps.getTags()
tags
- A list of tags that are attached to the server certificate.
For more information about tagging, see Tagging IAM resources in the IAM User Guide .this
public CfnServerCertificateProps build()
CfnServerCertificateProps
java.lang.NullPointerException
- if any required attribute was not provided