All Downloads are FREE. Search and download functionalities are using the official Maven repository.

cloudshift.awscdk.dsl.services.opsworkscm.CfnServerEngineAttributePropertyDsl.kt Maven / Gradle / Ivy

There is a newer version: 0.7.0
Show newest version
@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION")

package cloudshift.awscdk.dsl.services.opsworkscm

import cloudshift.awscdk.common.CdkDslMarker
import kotlin.String
import software.amazon.awscdk.services.opsworkscm.CfnServer

/**
 * 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.
 *
 * Example:
 *
 * ```
 * // The code below shows an example of how to instantiate this type.
 * // The values are placeholders you should change.
 * import software.amazon.awscdk.services.opsworkscm.*;
 * EngineAttributeProperty engineAttributeProperty = EngineAttributeProperty.builder()
 * .name("name")
 * .value("value")
 * .build();
 * ```
 *
 * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-opsworkscm-server-engineattribute.html)
 */
@CdkDslMarker
public class CfnServerEngineAttributePropertyDsl {
  private val cdkBuilder: CfnServer.EngineAttributeProperty.Builder =
      CfnServer.EngineAttributeProperty.builder()

  /**
   * @param 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`
   */
  public fun name(name: String) {
    cdkBuilder.name(name)
  }

  /**
   * @param 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](https://docs.aws.amazon.com/https://www.openssl.org/) 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](https://docs.aws.amazon.com/https://www.ssh.com/ssh/putty/windows/puttygen) 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, add
   * `PUPPET_R10K_PRIVATE_KEY` to specify a PEM-encoded private SSH key.
   */
  public fun `value`(`value`: String) {
    cdkBuilder.`value`(`value`)
  }

  public fun build(): CfnServer.EngineAttributeProperty = cdkBuilder.build()
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy