Class CfnServer.EngineAttributeProperty.Builder
java.lang.Object
software.amazon.awscdk.services.opsworkscm.CfnServer.EngineAttributeProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnServer.EngineAttributeProperty>
- Enclosing interface:
CfnServer.EngineAttributeProperty
@Stability(Stable)
public static final class CfnServer.EngineAttributeProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnServer.EngineAttributeProperty>
A builder for
CfnServer.EngineAttributeProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofCfnServer.EngineAttributeProperty.getName()
Sets the value ofCfnServer.EngineAttributeProperty.getValue()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
name
Sets the value ofCfnServer.EngineAttributeProperty.getName()
- Parameters:
name
- The name of the engine attribute. Attribute name for Chef Automate servers:CHEF_AUTOMATE_ADMIN_PASSWORD
Attribute names for Puppet Enterprise servers:
PUPPET_ADMIN_PASSWORD
PUPPET_R10K_REMOTE
PUPPET_R10K_PRIVATE_KEY
- Returns:
this
-
value
Sets the value ofCfnServer.EngineAttributeProperty.getValue()
- Parameters:
value
- The value of the engine attribute. Attribute value for Chef Automate servers:CHEF_AUTOMATE_PIVOTAL_KEY
: A base64-encoded RSA public key. The corresponding private key is required to access the Chef API. You can generate this key by running the following OpenSSL command on Linux-based computers.
openssl genrsa -out *pivotal_key_file_name* .pem 2048
On Windows-based computers, you can use the PuTTYgen utility to generate a base64-encoded RSA private key. For more information, see PuTTYgen - Key Generator for PuTTY on Windows on SSH.com.
Attribute values for Puppet Enterprise servers:
PUPPET_ADMIN_PASSWORD
: An administrator password that you can use to sign in to the Puppet Enterprise console webpage after the server is online. The password must use between 8 and 32 ASCII characters.PUPPET_R10K_REMOTE
: The r10k remote is the URL of your control repository (for example, ssh://git@your.git-repo.com:user/control-repo.git). Specifying an r10k remote opens TCP port 8170.PUPPET_R10K_PRIVATE_KEY
: If you are using a private Git repository, addPUPPET_R10K_PRIVATE_KEY
to specify a PEM-encoded private SSH key.
- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnServer.EngineAttributeProperty>
- Returns:
- a new instance of
CfnServer.EngineAttributeProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-