Class CfnStack.SourceProperty.Builder

java.lang.Object
software.amazon.awscdk.services.opsworks.CfnStack.SourceProperty.Builder
All Implemented Interfaces:
software.amazon.jsii.Builder<CfnStack.SourceProperty>
Enclosing interface:
CfnStack.SourceProperty

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

    • Builder

      public Builder()
  • Method Details

    • password

      @Stability(Stable) public CfnStack.SourceProperty.Builder password(String password)
      Parameters:
      password - When included in a request, the parameter depends on the repository type.
      • For Amazon S3 bundles, set Password to the appropriate IAM secret access key.
      • For HTTP bundles and Subversion repositories, set Password to the password.

      For more information on how to safely handle IAM credentials, see .

      In responses, AWS OpsWorks Stacks returns *****FILTERED***** instead of the actual value.

      Returns:
      this
    • revision

      @Stability(Stable) public CfnStack.SourceProperty.Builder revision(String revision)
      Parameters:
      revision - The application's version. AWS OpsWorks Stacks enables you to easily deploy new versions of an application. One of the simplest approaches is to have branches or revisions in your repository that represent different versions that can potentially be deployed.
      Returns:
      this
    • sshKey

      @Stability(Stable) public CfnStack.SourceProperty.Builder sshKey(String sshKey)
      Parameters:
      sshKey - The repository's SSH key. For more information, see Using Git Repository SSH Keys in the AWS OpsWorks User Guide . To pass in an SSH key as a parameter, see the following example:

      "Parameters" : { "GitSSHKey" : { "Description" : "Change SSH key newlines to commas.", "Type" : "CommaDelimitedList", "NoEcho" : "true" }, ... "CustomCookbooksSource": { "Revision" : { "Ref": "GitRevision"}, "SshKey" : { "Fn::Join" : [ "\n", { "Ref": "GitSSHKey"} ] }, "Type": "git", "Url": { "Ref": "GitURL"} } ...

      Returns:
      this
    • type

      @Stability(Stable) public CfnStack.SourceProperty.Builder type(String type)
      Parameters:
      type - The repository type.
      Returns:
      this
    • url

      @Stability(Stable) public CfnStack.SourceProperty.Builder url(String url)
      Parameters:
      url - The source URL. The following is an example of an Amazon S3 source URL: https://s3.amazonaws.com/opsworks-demo-bucket/opsworks_cookbook_demo.tar.gz .
      Returns:
      this
    • username

      @Stability(Stable) public CfnStack.SourceProperty.Builder username(String username)
      Parameters:
      username - This parameter depends on the repository type.
      • For Amazon S3 bundles, set Username to the appropriate IAM access key ID.
      • For HTTP bundles, Git repositories, and Subversion repositories, set Username to the user name.
      Returns:
      this
    • build

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