Struct aws_sdk_proton::types::builders::EnvironmentBuilder
source · #[non_exhaustive]pub struct EnvironmentBuilder { /* private fields */ }
Expand description
A builder for Environment
.
Implementations§
source§impl EnvironmentBuilder
impl EnvironmentBuilder
sourcepub fn name(self, input: impl Into<String>) -> Self
pub fn name(self, input: impl Into<String>) -> Self
The name of the environment.
This field is required.sourcepub fn description(self, input: impl Into<String>) -> Self
pub fn description(self, input: impl Into<String>) -> Self
The description of the environment.
sourcepub fn set_description(self, input: Option<String>) -> Self
pub fn set_description(self, input: Option<String>) -> Self
The description of the environment.
sourcepub fn get_description(&self) -> &Option<String>
pub fn get_description(&self) -> &Option<String>
The description of the environment.
sourcepub fn created_at(self, input: DateTime) -> Self
pub fn created_at(self, input: DateTime) -> Self
The time when the environment was created.
This field is required.sourcepub fn set_created_at(self, input: Option<DateTime>) -> Self
pub fn set_created_at(self, input: Option<DateTime>) -> Self
The time when the environment was created.
sourcepub fn get_created_at(&self) -> &Option<DateTime>
pub fn get_created_at(&self) -> &Option<DateTime>
The time when the environment was created.
sourcepub fn last_deployment_attempted_at(self, input: DateTime) -> Self
pub fn last_deployment_attempted_at(self, input: DateTime) -> Self
The time when a deployment of the environment was last attempted.
This field is required.sourcepub fn set_last_deployment_attempted_at(self, input: Option<DateTime>) -> Self
pub fn set_last_deployment_attempted_at(self, input: Option<DateTime>) -> Self
The time when a deployment of the environment was last attempted.
sourcepub fn get_last_deployment_attempted_at(&self) -> &Option<DateTime>
pub fn get_last_deployment_attempted_at(&self) -> &Option<DateTime>
The time when a deployment of the environment was last attempted.
sourcepub fn last_deployment_succeeded_at(self, input: DateTime) -> Self
pub fn last_deployment_succeeded_at(self, input: DateTime) -> Self
The time when the environment was last deployed successfully.
This field is required.sourcepub fn set_last_deployment_succeeded_at(self, input: Option<DateTime>) -> Self
pub fn set_last_deployment_succeeded_at(self, input: Option<DateTime>) -> Self
The time when the environment was last deployed successfully.
sourcepub fn get_last_deployment_succeeded_at(&self) -> &Option<DateTime>
pub fn get_last_deployment_succeeded_at(&self) -> &Option<DateTime>
The time when the environment was last deployed successfully.
sourcepub fn arn(self, input: impl Into<String>) -> Self
pub fn arn(self, input: impl Into<String>) -> Self
The Amazon Resource Name (ARN) of the environment.
This field is required.sourcepub fn set_arn(self, input: Option<String>) -> Self
pub fn set_arn(self, input: Option<String>) -> Self
The Amazon Resource Name (ARN) of the environment.
sourcepub fn template_name(self, input: impl Into<String>) -> Self
pub fn template_name(self, input: impl Into<String>) -> Self
The Amazon Resource Name (ARN) of the environment template.
This field is required.sourcepub fn set_template_name(self, input: Option<String>) -> Self
pub fn set_template_name(self, input: Option<String>) -> Self
The Amazon Resource Name (ARN) of the environment template.
sourcepub fn get_template_name(&self) -> &Option<String>
pub fn get_template_name(&self) -> &Option<String>
The Amazon Resource Name (ARN) of the environment template.
sourcepub fn template_major_version(self, input: impl Into<String>) -> Self
pub fn template_major_version(self, input: impl Into<String>) -> Self
The major version of the environment template.
This field is required.sourcepub fn set_template_major_version(self, input: Option<String>) -> Self
pub fn set_template_major_version(self, input: Option<String>) -> Self
The major version of the environment template.
sourcepub fn get_template_major_version(&self) -> &Option<String>
pub fn get_template_major_version(&self) -> &Option<String>
The major version of the environment template.
sourcepub fn template_minor_version(self, input: impl Into<String>) -> Self
pub fn template_minor_version(self, input: impl Into<String>) -> Self
The minor version of the environment template.
This field is required.sourcepub fn set_template_minor_version(self, input: Option<String>) -> Self
pub fn set_template_minor_version(self, input: Option<String>) -> Self
The minor version of the environment template.
sourcepub fn get_template_minor_version(&self) -> &Option<String>
pub fn get_template_minor_version(&self) -> &Option<String>
The minor version of the environment template.
sourcepub fn deployment_status(self, input: DeploymentStatus) -> Self
pub fn deployment_status(self, input: DeploymentStatus) -> Self
The environment deployment status.
This field is required.sourcepub fn set_deployment_status(self, input: Option<DeploymentStatus>) -> Self
pub fn set_deployment_status(self, input: Option<DeploymentStatus>) -> Self
The environment deployment status.
sourcepub fn get_deployment_status(&self) -> &Option<DeploymentStatus>
pub fn get_deployment_status(&self) -> &Option<DeploymentStatus>
The environment deployment status.
sourcepub fn deployment_status_message(self, input: impl Into<String>) -> Self
pub fn deployment_status_message(self, input: impl Into<String>) -> Self
An environment deployment status message.
sourcepub fn set_deployment_status_message(self, input: Option<String>) -> Self
pub fn set_deployment_status_message(self, input: Option<String>) -> Self
An environment deployment status message.
sourcepub fn get_deployment_status_message(&self) -> &Option<String>
pub fn get_deployment_status_message(&self) -> &Option<String>
An environment deployment status message.
sourcepub fn proton_service_role_arn(self, input: impl Into<String>) -> Self
pub fn proton_service_role_arn(self, input: impl Into<String>) -> Self
The Amazon Resource Name (ARN) of the Proton service role that allows Proton to make calls to other services on your behalf.
sourcepub fn set_proton_service_role_arn(self, input: Option<String>) -> Self
pub fn set_proton_service_role_arn(self, input: Option<String>) -> Self
The Amazon Resource Name (ARN) of the Proton service role that allows Proton to make calls to other services on your behalf.
sourcepub fn get_proton_service_role_arn(&self) -> &Option<String>
pub fn get_proton_service_role_arn(&self) -> &Option<String>
The Amazon Resource Name (ARN) of the Proton service role that allows Proton to make calls to other services on your behalf.
sourcepub fn environment_account_connection_id(self, input: impl Into<String>) -> Self
pub fn environment_account_connection_id(self, input: impl Into<String>) -> Self
The ID of the environment account connection that's used to provision infrastructure resources in an environment account.
sourcepub fn set_environment_account_connection_id(
self,
input: Option<String>,
) -> Self
pub fn set_environment_account_connection_id( self, input: Option<String>, ) -> Self
The ID of the environment account connection that's used to provision infrastructure resources in an environment account.
sourcepub fn get_environment_account_connection_id(&self) -> &Option<String>
pub fn get_environment_account_connection_id(&self) -> &Option<String>
The ID of the environment account connection that's used to provision infrastructure resources in an environment account.
sourcepub fn environment_account_id(self, input: impl Into<String>) -> Self
pub fn environment_account_id(self, input: impl Into<String>) -> Self
The ID of the environment account that the environment infrastructure resources are provisioned in.
sourcepub fn set_environment_account_id(self, input: Option<String>) -> Self
pub fn set_environment_account_id(self, input: Option<String>) -> Self
The ID of the environment account that the environment infrastructure resources are provisioned in.
sourcepub fn get_environment_account_id(&self) -> &Option<String>
pub fn get_environment_account_id(&self) -> &Option<String>
The ID of the environment account that the environment infrastructure resources are provisioned in.
sourcepub fn provisioning(self, input: Provisioning) -> Self
pub fn provisioning(self, input: Provisioning) -> Self
When included, indicates that the environment template is for customer provisioned and managed infrastructure.
sourcepub fn set_provisioning(self, input: Option<Provisioning>) -> Self
pub fn set_provisioning(self, input: Option<Provisioning>) -> Self
When included, indicates that the environment template is for customer provisioned and managed infrastructure.
sourcepub fn get_provisioning(&self) -> &Option<Provisioning>
pub fn get_provisioning(&self) -> &Option<Provisioning>
When included, indicates that the environment template is for customer provisioned and managed infrastructure.
sourcepub fn provisioning_repository(self, input: RepositoryBranch) -> Self
pub fn provisioning_repository(self, input: RepositoryBranch) -> Self
The linked repository that you use to host your rendered infrastructure templates for self-managed provisioning. A linked repository is a repository that has been registered with Proton. For more information, see CreateRepository.
sourcepub fn set_provisioning_repository(
self,
input: Option<RepositoryBranch>,
) -> Self
pub fn set_provisioning_repository( self, input: Option<RepositoryBranch>, ) -> Self
The linked repository that you use to host your rendered infrastructure templates for self-managed provisioning. A linked repository is a repository that has been registered with Proton. For more information, see CreateRepository.
sourcepub fn get_provisioning_repository(&self) -> &Option<RepositoryBranch>
pub fn get_provisioning_repository(&self) -> &Option<RepositoryBranch>
The linked repository that you use to host your rendered infrastructure templates for self-managed provisioning. A linked repository is a repository that has been registered with Proton. For more information, see CreateRepository.
sourcepub fn component_role_arn(self, input: impl Into<String>) -> Self
pub fn component_role_arn(self, input: impl Into<String>) -> Self
The Amazon Resource Name (ARN) of the IAM service role that Proton uses when provisioning directly defined components in this environment. It determines the scope of infrastructure that a component can provision.
The environment must have a componentRoleArn
to allow directly defined components to be associated with the environment.
For more information about components, see Proton components in the Proton User Guide.
sourcepub fn set_component_role_arn(self, input: Option<String>) -> Self
pub fn set_component_role_arn(self, input: Option<String>) -> Self
The Amazon Resource Name (ARN) of the IAM service role that Proton uses when provisioning directly defined components in this environment. It determines the scope of infrastructure that a component can provision.
The environment must have a componentRoleArn
to allow directly defined components to be associated with the environment.
For more information about components, see Proton components in the Proton User Guide.
sourcepub fn get_component_role_arn(&self) -> &Option<String>
pub fn get_component_role_arn(&self) -> &Option<String>
The Amazon Resource Name (ARN) of the IAM service role that Proton uses when provisioning directly defined components in this environment. It determines the scope of infrastructure that a component can provision.
The environment must have a componentRoleArn
to allow directly defined components to be associated with the environment.
For more information about components, see Proton components in the Proton User Guide.
sourcepub fn codebuild_role_arn(self, input: impl Into<String>) -> Self
pub fn codebuild_role_arn(self, input: impl Into<String>) -> Self
The Amazon Resource Name (ARN) of the IAM service role that allows Proton to provision infrastructure using CodeBuild-based provisioning on your behalf.
sourcepub fn set_codebuild_role_arn(self, input: Option<String>) -> Self
pub fn set_codebuild_role_arn(self, input: Option<String>) -> Self
The Amazon Resource Name (ARN) of the IAM service role that allows Proton to provision infrastructure using CodeBuild-based provisioning on your behalf.
sourcepub fn get_codebuild_role_arn(&self) -> &Option<String>
pub fn get_codebuild_role_arn(&self) -> &Option<String>
The Amazon Resource Name (ARN) of the IAM service role that allows Proton to provision infrastructure using CodeBuild-based provisioning on your behalf.
sourcepub fn last_attempted_deployment_id(self, input: impl Into<String>) -> Self
pub fn last_attempted_deployment_id(self, input: impl Into<String>) -> Self
The ID of the last attempted deployment of this environment.
sourcepub fn set_last_attempted_deployment_id(self, input: Option<String>) -> Self
pub fn set_last_attempted_deployment_id(self, input: Option<String>) -> Self
The ID of the last attempted deployment of this environment.
sourcepub fn get_last_attempted_deployment_id(&self) -> &Option<String>
pub fn get_last_attempted_deployment_id(&self) -> &Option<String>
The ID of the last attempted deployment of this environment.
sourcepub fn last_succeeded_deployment_id(self, input: impl Into<String>) -> Self
pub fn last_succeeded_deployment_id(self, input: impl Into<String>) -> Self
The ID of the last successful deployment of this environment.
sourcepub fn set_last_succeeded_deployment_id(self, input: Option<String>) -> Self
pub fn set_last_succeeded_deployment_id(self, input: Option<String>) -> Self
The ID of the last successful deployment of this environment.
sourcepub fn get_last_succeeded_deployment_id(&self) -> &Option<String>
pub fn get_last_succeeded_deployment_id(&self) -> &Option<String>
The ID of the last successful deployment of this environment.
sourcepub fn build(self) -> Result<Environment, BuildError>
pub fn build(self) -> Result<Environment, BuildError>
Consumes the builder and constructs a Environment
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for EnvironmentBuilder
impl Clone for EnvironmentBuilder
source§fn clone(&self) -> EnvironmentBuilder
fn clone(&self) -> EnvironmentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for EnvironmentBuilder
impl Debug for EnvironmentBuilder
source§impl Default for EnvironmentBuilder
impl Default for EnvironmentBuilder
source§fn default() -> EnvironmentBuilder
fn default() -> EnvironmentBuilder
source§impl PartialEq for EnvironmentBuilder
impl PartialEq for EnvironmentBuilder
impl StructuralPartialEq for EnvironmentBuilder
Auto Trait Implementations§
impl Freeze for EnvironmentBuilder
impl RefUnwindSafe for EnvironmentBuilder
impl Send for EnvironmentBuilder
impl Sync for EnvironmentBuilder
impl Unpin for EnvironmentBuilder
impl UnwindSafe for EnvironmentBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more