@Generated(value="software.amazon.awssdk:codegen") public final class Source extends Object implements SdkPojo, Serializable, ToCopyableBuilder<Source.Builder,Source>
Contains the information required to retrieve an app or cookbook from a repository. For more information, see Creating Apps or Custom Recipes and Cookbooks.
| Modifier and Type | Class and Description |
|---|---|
static interface |
Source.Builder |
| Modifier and Type | Method and Description |
|---|---|
static Source.Builder |
builder() |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
String |
password()
When included in a request, the parameter depends on the repository type.
|
String |
revision()
The application's version.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends Source.Builder> |
serializableBuilderClass() |
String |
sshKey()
In requests, the repository's SSH key.
|
Source.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
SourceType |
type()
The repository type.
|
String |
typeAsString()
The repository type.
|
String |
url()
The source URL.
|
String |
username()
This parameter depends on the repository type.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final SourceType type()
The repository type.
If the service returns an enum value that is not available in the current SDK version, type will return
SourceType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
typeAsString().
SourceTypepublic final String typeAsString()
The repository type.
If the service returns an enum value that is not available in the current SDK version, type will return
SourceType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
typeAsString().
SourceTypepublic final String 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.
https://s3.amazonaws.com/opsworks-demo-bucket/opsworks_cookbook_demo.tar.gz.public final String 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.
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.
public final String 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 https://docs.aws.amazon.com/general/latest/gr/aws-access-keys-best-practices.html.
In responses, AWS OpsWorks Stacks returns *****FILTERED***** instead of the actual value.
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 https://docs.aws.amazon.com/general/latest/gr/aws-access-keys-best-practices.html.
In responses, AWS OpsWorks Stacks returns *****FILTERED***** instead of the actual value.
public final String sshKey()
In requests, the repository's SSH key.
In responses, AWS OpsWorks Stacks returns *****FILTERED***** instead of the actual value.
In responses, AWS OpsWorks Stacks returns *****FILTERED***** instead of the actual value.
public final String 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.
public Source.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<Source.Builder,Source>public static Source.Builder builder()
public static Class<? extends Source.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2023. All rights reserved.