Interface CfnStack.SourceProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnStack.SourceProperty.Jsii$Proxy
- Enclosing class:
- CfnStack
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();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnStack.SourcePropertystatic final classAn implementation forCfnStack.SourceProperty -
Method Summary
Modifier and TypeMethodDescriptionbuilder()default StringWhen included in a request, the parameter depends on the repository type.default StringThe application's version.default StringThe repository's SSH key.default StringgetType()The repository type.default StringgetUrl()The source URL.default StringThis parameter depends on the repository type.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getPassword
When included in a request, the parameter depends on the repository type.- For Amazon S3 bundles, set
Passwordto the appropriate IAM secret access key. - For HTTP bundles and Subversion repositories, set
Passwordto 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. - For Amazon S3 bundles, set
-
getRevision
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.
-
getSshKey
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"} } ... -
getType
The repository type. -
getUrl
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. -
getUsername
This parameter depends on the repository type.- For Amazon S3 bundles, set
Usernameto the appropriate IAM access key ID. - For HTTP bundles, Git repositories, and Subversion repositories, set
Usernameto the user name.
- For Amazon S3 bundles, set
-
builder
- Returns:
- a
CfnStack.SourceProperty.BuilderofCfnStack.SourceProperty
-