Struct aws_sdk_opsworks::model::Source
source · [−]#[non_exhaustive]pub struct Source {
pub type: Option<SourceType>,
pub url: Option<String>,
pub username: Option<String>,
pub password: Option<String>,
pub ssh_key: Option<String>,
pub revision: Option<String>,
}Expand description
Contains the information required to retrieve an app or cookbook from a repository. For more information, see Creating Apps or Custom Recipes and Cookbooks.
Fields (Non-exhaustive)
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.type: Option<SourceType>The repository type.
url: Option<String>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.
username: Option<String>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.
password: Option<String>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 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.
ssh_key: Option<String>In requests, the repository's SSH key.
In responses, AWS OpsWorks Stacks returns *****FILTERED***** instead of the actual value.
revision: Option<String>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.
Implementations
sourceimpl Source
impl Source
sourcepub fn type(&self) -> Option<&SourceType>
pub fn type(&self) -> Option<&SourceType>
The repository type.
sourcepub fn url(&self) -> Option<&str>
pub fn url(&self) -> Option<&str>
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.
sourcepub fn username(&self) -> Option<&str>
pub fn username(&self) -> Option<&str>
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.
sourcepub fn password(&self) -> Option<&str>
pub fn password(&self) -> Option<&str>
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 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.
sourcepub fn ssh_key(&self) -> Option<&str>
pub fn ssh_key(&self) -> Option<&str>
In requests, the repository's SSH key.
In responses, AWS OpsWorks Stacks returns *****FILTERED***** instead of the actual value.
sourcepub fn revision(&self) -> Option<&str>
pub fn revision(&self) -> Option<&str>
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.
Trait Implementations
impl StructuralPartialEq for Source
Auto Trait Implementations
impl RefUnwindSafe for Source
impl Send for Source
impl Sync for Source
impl Unpin for Source
impl UnwindSafe for Source
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more