Struct aws_sdk_codedeploy::model::revision_location::Builder
source · pub struct Builder { /* private fields */ }
Expand description
A builder for RevisionLocation
.
Implementations§
source§impl Builder
impl Builder
sourcepub fn revision_type(self, input: RevisionLocationType) -> Self
pub fn revision_type(self, input: RevisionLocationType) -> Self
The type of application revision:
-
S3: An application revision stored in Amazon S3.
-
GitHub: An application revision stored in GitHub (EC2/On-premises deployments only).
-
String: A YAML-formatted or JSON-formatted string (Lambda deployments only).
-
AppSpecContent: An
AppSpecContent
object that contains the contents of an AppSpec file for an Lambda or Amazon ECS deployment. The content is formatted as JSON or YAML stored as a RawString.
sourcepub fn set_revision_type(self, input: Option<RevisionLocationType>) -> Self
pub fn set_revision_type(self, input: Option<RevisionLocationType>) -> Self
The type of application revision:
-
S3: An application revision stored in Amazon S3.
-
GitHub: An application revision stored in GitHub (EC2/On-premises deployments only).
-
String: A YAML-formatted or JSON-formatted string (Lambda deployments only).
-
AppSpecContent: An
AppSpecContent
object that contains the contents of an AppSpec file for an Lambda or Amazon ECS deployment. The content is formatted as JSON or YAML stored as a RawString.
sourcepub fn s3_location(self, input: S3Location) -> Self
pub fn s3_location(self, input: S3Location) -> Self
Information about the location of a revision stored in Amazon S3.
sourcepub fn set_s3_location(self, input: Option<S3Location>) -> Self
pub fn set_s3_location(self, input: Option<S3Location>) -> Self
Information about the location of a revision stored in Amazon S3.
sourcepub fn git_hub_location(self, input: GitHubLocation) -> Self
pub fn git_hub_location(self, input: GitHubLocation) -> Self
Information about the location of application artifacts stored in GitHub.
sourcepub fn set_git_hub_location(self, input: Option<GitHubLocation>) -> Self
pub fn set_git_hub_location(self, input: Option<GitHubLocation>) -> Self
Information about the location of application artifacts stored in GitHub.
sourcepub fn string(self, input: RawString) -> Self
pub fn string(self, input: RawString) -> Self
Information about the location of an Lambda deployment revision stored as a RawString.
sourcepub fn set_string(self, input: Option<RawString>) -> Self
pub fn set_string(self, input: Option<RawString>) -> Self
Information about the location of an Lambda deployment revision stored as a RawString.
sourcepub fn app_spec_content(self, input: AppSpecContent) -> Self
pub fn app_spec_content(self, input: AppSpecContent) -> Self
The content of an AppSpec file for an Lambda or Amazon ECS deployment. The content is formatted as JSON or YAML and stored as a RawString.
sourcepub fn set_app_spec_content(self, input: Option<AppSpecContent>) -> Self
pub fn set_app_spec_content(self, input: Option<AppSpecContent>) -> Self
The content of an AppSpec file for an Lambda or Amazon ECS deployment. The content is formatted as JSON or YAML and stored as a RawString.
sourcepub fn build(self) -> RevisionLocation
pub fn build(self) -> RevisionLocation
Consumes the builder and constructs a RevisionLocation
.