#[non_exhaustive]pub struct LifecycleExecutionResource {
pub account_id: Option<String>,
pub resource_id: Option<String>,
pub state: Option<LifecycleExecutionResourceState>,
pub action: Option<LifecycleExecutionResourceAction>,
pub region: Option<String>,
pub snapshots: Option<Vec<LifecycleExecutionSnapshotResource>>,
pub image_uris: Option<Vec<String>>,
pub start_time: Option<DateTime>,
pub end_time: Option<DateTime>,
}
Expand description
Contains details for a resource that the runtime instance of the lifecycle policy identified for action.
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.account_id: Option<String>
The account that owns the impacted resource.
resource_id: Option<String>
Identifies the impacted resource. The resource ID depends on the type of resource, as follows.
-
Image Builder image resources: Amazon Resource Name (ARN)
-
Distributed AMIs: AMI ID
-
Container images distributed to an ECR repository: image URI or SHA Digest
state: Option<LifecycleExecutionResourceState>
The runtime state for the lifecycle execution.
action: Option<LifecycleExecutionResourceAction>
The action to take for the identified resource.
region: Option<String>
The Amazon Web Services Region where the lifecycle execution resource is stored.
snapshots: Option<Vec<LifecycleExecutionSnapshotResource>>
A list of associated resource snapshots for the impacted resource if it’s an AMI.
image_uris: Option<Vec<String>>
For an impacted container image, this identifies a list of URIs for associated container images distributed to ECR repositories.
start_time: Option<DateTime>
The starting timestamp from the lifecycle action that was applied to the resource.
end_time: Option<DateTime>
The ending timestamp from the lifecycle action that was applied to the resource.
Implementations§
source§impl LifecycleExecutionResource
impl LifecycleExecutionResource
sourcepub fn account_id(&self) -> Option<&str>
pub fn account_id(&self) -> Option<&str>
The account that owns the impacted resource.
sourcepub fn resource_id(&self) -> Option<&str>
pub fn resource_id(&self) -> Option<&str>
Identifies the impacted resource. The resource ID depends on the type of resource, as follows.
-
Image Builder image resources: Amazon Resource Name (ARN)
-
Distributed AMIs: AMI ID
-
Container images distributed to an ECR repository: image URI or SHA Digest
sourcepub fn state(&self) -> Option<&LifecycleExecutionResourceState>
pub fn state(&self) -> Option<&LifecycleExecutionResourceState>
The runtime state for the lifecycle execution.
sourcepub fn action(&self) -> Option<&LifecycleExecutionResourceAction>
pub fn action(&self) -> Option<&LifecycleExecutionResourceAction>
The action to take for the identified resource.
sourcepub fn region(&self) -> Option<&str>
pub fn region(&self) -> Option<&str>
The Amazon Web Services Region where the lifecycle execution resource is stored.
sourcepub fn snapshots(&self) -> &[LifecycleExecutionSnapshotResource]
pub fn snapshots(&self) -> &[LifecycleExecutionSnapshotResource]
A list of associated resource snapshots for the impacted resource if it’s an AMI.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .snapshots.is_none()
.
sourcepub fn image_uris(&self) -> &[String]
pub fn image_uris(&self) -> &[String]
For an impacted container image, this identifies a list of URIs for associated container images distributed to ECR repositories.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .image_uris.is_none()
.
sourcepub fn start_time(&self) -> Option<&DateTime>
pub fn start_time(&self) -> Option<&DateTime>
The starting timestamp from the lifecycle action that was applied to the resource.
source§impl LifecycleExecutionResource
impl LifecycleExecutionResource
sourcepub fn builder() -> LifecycleExecutionResourceBuilder
pub fn builder() -> LifecycleExecutionResourceBuilder
Creates a new builder-style object to manufacture LifecycleExecutionResource
.
Trait Implementations§
source§impl Clone for LifecycleExecutionResource
impl Clone for LifecycleExecutionResource
source§fn clone(&self) -> LifecycleExecutionResource
fn clone(&self) -> LifecycleExecutionResource
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for LifecycleExecutionResource
impl Debug for LifecycleExecutionResource
source§impl PartialEq for LifecycleExecutionResource
impl PartialEq for LifecycleExecutionResource
source§fn eq(&self, other: &LifecycleExecutionResource) -> bool
fn eq(&self, other: &LifecycleExecutionResource) -> bool
self
and other
values to be equal, and is used
by ==
.