@Stability(value=Stable)
public static interface CfnStack.SourceProperty
extends software.amazon.jsii.JsiiSerializable
For more information, see Creating Apps or Custom Recipes and Cookbooks .
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.opsworks.*;
SourceProperty sourceProperty = SourceProperty.builder()
.password("password")
.revision("revision")
.sshKey("sshKey")
.type("type")
.url("url")
.username("username")
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
CfnStack.SourceProperty.Builder
A builder for
CfnStack.SourceProperty |
static class |
CfnStack.SourceProperty.Jsii$Proxy
An implementation for
CfnStack.SourceProperty |
| Modifier and Type | Method and Description |
|---|---|
static CfnStack.SourceProperty.Builder |
builder() |
default String |
getPassword()
When included in a request, the parameter depends on the repository type.
|
default String |
getRevision()
The application's version.
|
default String |
getSshKey()
The repository's SSH key.
|
default String |
getType()
The repository type.
|
default String |
getUrl()
The source URL.
|
default String |
getUsername()
This parameter depends on the repository type.
|
@Stability(value=Stable) @Nullable default String getPassword()
Password to the appropriate IAM secret access key.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.
@Stability(value=Stable) @Nullable default String getRevision()
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.
@Stability(value=Stable) @Nullable default String getSshKey()
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"} } ...
@Stability(value=Stable) @Nullable default String getType()
@Stability(value=Stable) @Nullable default String getUrl()
The following is an example of an Amazon S3 source URL: https://s3.amazonaws.com/opsworks-demo-bucket/opsworks_cookbook_demo.tar.gz .
@Stability(value=Stable) @Nullable default String getUsername()
Username to the appropriate IAM access key ID.Username to the user name.@Stability(value=Stable) static CfnStack.SourceProperty.Builder builder()
CfnStack.SourceProperty.Builder of CfnStack.SourcePropertyCopyright © 2022. All rights reserved.