Struct aws_sdk_proton::types::Environment
source · #[non_exhaustive]pub struct Environment {Show 21 fields
pub name: String,
pub description: Option<String>,
pub created_at: DateTime,
pub last_deployment_attempted_at: DateTime,
pub last_deployment_succeeded_at: DateTime,
pub arn: String,
pub template_name: String,
pub template_major_version: String,
pub template_minor_version: String,
pub deployment_status: DeploymentStatus,
pub deployment_status_message: Option<String>,
pub proton_service_role_arn: Option<String>,
pub environment_account_connection_id: Option<String>,
pub environment_account_id: Option<String>,
pub spec: Option<String>,
pub provisioning: Option<Provisioning>,
pub provisioning_repository: Option<RepositoryBranch>,
pub component_role_arn: Option<String>,
pub codebuild_role_arn: Option<String>,
pub last_attempted_deployment_id: Option<String>,
pub last_succeeded_deployment_id: Option<String>,
}
Expand description
Detailed data of an Proton environment resource. An Proton environment is a set of resources shared across Proton services.
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.name: String
The name of the environment.
description: Option<String>
The description of the environment.
created_at: DateTime
The time when the environment was created.
last_deployment_attempted_at: DateTime
The time when a deployment of the environment was last attempted.
last_deployment_succeeded_at: DateTime
The time when the environment was last deployed successfully.
arn: String
The Amazon Resource Name (ARN) of the environment.
template_name: String
The Amazon Resource Name (ARN) of the environment template.
template_major_version: String
The major version of the environment template.
template_minor_version: String
The minor version of the environment template.
deployment_status: DeploymentStatus
The environment deployment status.
deployment_status_message: Option<String>
An environment deployment status message.
proton_service_role_arn: Option<String>
The Amazon Resource Name (ARN) of the Proton service role that allows Proton to make calls to other services on your behalf.
environment_account_connection_id: Option<String>
The ID of the environment account connection that's used to provision infrastructure resources in an environment account.
environment_account_id: Option<String>
The ID of the environment account that the environment infrastructure resources are provisioned in.
spec: Option<String>
The environment spec.
provisioning: Option<Provisioning>
When included, indicates that the environment template is for customer provisioned and managed infrastructure.
provisioning_repository: 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.
component_role_arn: 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.
codebuild_role_arn: 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.
last_attempted_deployment_id: Option<String>
The ID of the last attempted deployment of this environment.
last_succeeded_deployment_id: Option<String>
The ID of the last successful deployment of this environment.
Implementations§
source§impl Environment
impl Environment
sourcepub fn description(&self) -> Option<&str>
pub fn description(&self) -> Option<&str>
The description of the environment.
sourcepub fn created_at(&self) -> &DateTime
pub fn created_at(&self) -> &DateTime
The time when the environment was created.
sourcepub fn last_deployment_attempted_at(&self) -> &DateTime
pub fn last_deployment_attempted_at(&self) -> &DateTime
The time when a deployment of the environment was last attempted.
sourcepub fn last_deployment_succeeded_at(&self) -> &DateTime
pub fn last_deployment_succeeded_at(&self) -> &DateTime
The time when the environment was last deployed successfully.
sourcepub fn template_name(&self) -> &str
pub fn template_name(&self) -> &str
The Amazon Resource Name (ARN) of the environment template.
sourcepub fn template_major_version(&self) -> &str
pub fn template_major_version(&self) -> &str
The major version of the environment template.
sourcepub fn template_minor_version(&self) -> &str
pub fn template_minor_version(&self) -> &str
The minor version of the environment template.
sourcepub fn deployment_status(&self) -> &DeploymentStatus
pub fn deployment_status(&self) -> &DeploymentStatus
The environment deployment status.
sourcepub fn deployment_status_message(&self) -> Option<&str>
pub fn deployment_status_message(&self) -> Option<&str>
An environment deployment status message.
sourcepub fn proton_service_role_arn(&self) -> Option<&str>
pub fn proton_service_role_arn(&self) -> Option<&str>
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) -> Option<&str>
pub fn environment_account_connection_id(&self) -> Option<&str>
The ID of the environment account connection that's used to provision infrastructure resources in an environment account.
sourcepub fn environment_account_id(&self) -> Option<&str>
pub fn environment_account_id(&self) -> Option<&str>
The ID of the environment account that the environment infrastructure resources are provisioned in.
sourcepub fn provisioning(&self) -> Option<&Provisioning>
pub fn provisioning(&self) -> Option<&Provisioning>
When included, indicates that the environment template is for customer provisioned and managed infrastructure.
sourcepub fn provisioning_repository(&self) -> Option<&RepositoryBranch>
pub fn 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) -> Option<&str>
pub fn component_role_arn(&self) -> Option<&str>
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) -> Option<&str>
pub fn codebuild_role_arn(&self) -> Option<&str>
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) -> Option<&str>
pub fn last_attempted_deployment_id(&self) -> Option<&str>
The ID of the last attempted deployment of this environment.
sourcepub fn last_succeeded_deployment_id(&self) -> Option<&str>
pub fn last_succeeded_deployment_id(&self) -> Option<&str>
The ID of the last successful deployment of this environment.
source§impl Environment
impl Environment
sourcepub fn builder() -> EnvironmentBuilder
pub fn builder() -> EnvironmentBuilder
Creates a new builder-style object to manufacture Environment
.
Trait Implementations§
source§impl Clone for Environment
impl Clone for Environment
source§fn clone(&self) -> Environment
fn clone(&self) -> Environment
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for Environment
impl Debug for Environment
source§impl PartialEq for Environment
impl PartialEq for Environment
impl StructuralPartialEq for Environment
Auto Trait Implementations§
impl Freeze for Environment
impl RefUnwindSafe for Environment
impl Send for Environment
impl Sync for Environment
impl Unpin for Environment
impl UnwindSafe for Environment
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