Class CfnServerCertificateProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnServerCertificateProps>
- Enclosing interface:
CfnServerCertificateProps
CfnServerCertificateProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.certificateBody
(String certificateBody) Sets the value ofCfnServerCertificateProps.getCertificateBody()
certificateChain
(String certificateChain) Sets the value ofCfnServerCertificateProps.getCertificateChain()
Sets the value ofCfnServerCertificateProps.getPath()
privateKey
(String privateKey) Sets the value ofCfnServerCertificateProps.getPrivateKey()
serverCertificateName
(String serverCertificateName) Sets the value ofCfnServerCertificateProps.getServerCertificateName()
Sets the value ofCfnServerCertificateProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
certificateBody
Sets the value ofCfnServerCertificateProps.getCertificateBody()
- Parameters:
certificateBody
- The contents of the public key certificate.- Returns:
this
-
certificateChain
@Stability(Stable) public CfnServerCertificateProps.Builder certificateChain(String certificateChain) Sets the value ofCfnServerCertificateProps.getCertificateChain()
- Parameters:
certificateChain
- The contents of the public key certificate chain.- Returns:
this
-
path
Sets the value ofCfnServerCertificateProps.getPath()
- Parameters:
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 ! (
!
) through the DEL character (
), 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/
).- Returns:
this
-
privateKey
Sets the value ofCfnServerCertificateProps.getPrivateKey()
- Parameters:
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:- Any printable ASCII character ranging from the space character (
- The printable characters in the Basic Latin and Latin-1 Supplement character set (through
ΓΏ
) - The special characters tab (
- Any printable ASCII character ranging from the space character (
- Returns:
this
-
serverCertificateName
@Stability(Stable) public CfnServerCertificateProps.Builder serverCertificateName(String serverCertificateName) Sets the value ofCfnServerCertificateProps.getServerCertificateName()
- Parameters:
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: _+=,.@-
- Returns:
this
-
tags
Sets the value ofCfnServerCertificateProps.getTags()
- Parameters:
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 .- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnServerCertificateProps>
- Returns:
- a new instance of
CfnServerCertificateProps
- Throws:
NullPointerException
- if any required attribute was not provided
-