Class CfnServerCertificateProps.Builder

java.lang.Object
software.amazon.awscdk.services.iam.CfnServerCertificateProps.Builder
All Implemented Interfaces:
software.amazon.jsii.Builder<CfnServerCertificateProps>
Enclosing interface:
CfnServerCertificateProps

@Stability(Stable) public static final class CfnServerCertificateProps.Builder extends Object implements software.amazon.jsii.Builder<CfnServerCertificateProps>
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • certificateBody

      @Stability(Stable) public CfnServerCertificateProps.Builder certificateBody(String certificateBody)
      Parameters:
      certificateBody - The contents of the public key certificate.
      Returns:
      this
    • certificateChain

      @Stability(Stable) public CfnServerCertificateProps.Builder certificateChain(String certificateChain)
      Parameters:
      certificateChain - The contents of the public key certificate chain.
      Returns:
      this
    • path

      @Stability(Stable) public CfnServerCertificateProps.Builder path(String path)
      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

      @Stability(Stable) public CfnServerCertificateProps.Builder privateKey(String privateKey)
      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 ( ) through the end of the ASCII character range
      • The printable characters in the Basic Latin and Latin-1 Supplement character set (through ΓΏ )
      • The special characters tab ( ), line feed ( ), and carriage return ( )
      Returns:
      this
    • serverCertificateName

      @Stability(Stable) public CfnServerCertificateProps.Builder serverCertificateName(String serverCertificateName)
      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

      @Stability(Stable) public CfnServerCertificateProps.Builder tags(List<? extends CfnTag> tags)
      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

      @Stability(Stable) public CfnServerCertificateProps build()
      Builds the configured instance.
      Specified by:
      build in interface software.amazon.jsii.Builder<CfnServerCertificateProps>
      Returns:
      a new instance of CfnServerCertificateProps
      Throws:
      NullPointerException - if any required attribute was not provided