Class: AWSCDK::OpsWorksCM::CfnServer::EngineAttributeProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::OpsWorksCM::CfnServer::EngineAttributeProperty
- Defined in:
- ops_works_cm/cfn_server.rb
Overview
The EngineAttribute property type specifies administrator credentials for an AWS OpsWorks for Chef Automate or OpsWorks for Puppet Enterprise server.
EngineAttribute is a property of the AWS::OpsWorksCM::Server resource type.
Instance Attribute Summary collapse
-
#name ⇒ String?
readonly
The name of the engine attribute.
-
#value ⇒ String?
readonly
The value of the engine attribute.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(name: nil, value: nil) ⇒ EngineAttributeProperty
constructor
A new instance of EngineAttributeProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(name: nil, value: nil) ⇒ EngineAttributeProperty
Returns a new instance of EngineAttributeProperty.
785 786 787 788 789 790 |
# File 'ops_works_cm/cfn_server.rb', line 785 def initialize(name: nil, value: nil) @name = name Jsii::Type.check_type(@name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "name") unless @name.nil? @value = value Jsii::Type.check_type(@value, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "value") unless @value.nil? end |
Instance Attribute Details
#name ⇒ String? (readonly)
The name of the engine attribute.
Attribute name for Chef Automate servers:
CHEF_AUTOMATE_ADMIN_PASSWORD
Attribute names for Puppet Enterprise servers:
PUPPET_ADMIN_PASSWORDPUPPET_R10K_REMOTEPUPPET_R10K_PRIVATE_KEY
806 807 808 |
# File 'ops_works_cm/cfn_server.rb', line 806 def name @name end |
#value ⇒ String? (readonly)
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_KEYto specify a PEM-encoded private SSH key.
825 826 827 |
# File 'ops_works_cm/cfn_server.rb', line 825 def value @value end |
Class Method Details
.jsii_properties ⇒ Object
827 828 829 830 831 832 |
# File 'ops_works_cm/cfn_server.rb', line 827 def self.jsii_properties { :name => "name", :value => "value", } end |
Instance Method Details
#to_jsii ⇒ Object
834 835 836 837 838 839 840 841 |
# File 'ops_works_cm/cfn_server.rb', line 834 def to_jsii result = {} result.merge!({ "name" => @name, "value" => @value, }) result.compact end |