Struct aws_sdk_gamelift::types::ContainerGroupDefinition
source · #[non_exhaustive]pub struct ContainerGroupDefinition {
pub container_group_definition_arn: Option<String>,
pub creation_time: Option<DateTime>,
pub operating_system: Option<ContainerOperatingSystem>,
pub name: Option<String>,
pub scheduling_strategy: Option<ContainerSchedulingStrategy>,
pub total_memory_limit: Option<i32>,
pub total_cpu_limit: Option<i32>,
pub container_definitions: Option<Vec<ContainerDefinition>>,
pub status: Option<ContainerGroupDefinitionStatus>,
pub status_reason: Option<String>,
}
Expand description
This data type is used with the Amazon GameLift containers feature, which is currently in public preview.
The properties that describe a container group resource. Container group definition properties can't be updated. To change a property, create a new container group definition.
Used with: CreateContainerGroupDefinition
Returned by: DescribeContainerGroupDefinition
, ListContainerGroupDefinitions
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.container_group_definition_arn: Option<String>
The Amazon Resource Name (ARN) that is assigned to an Amazon GameLift ContainerGroupDefinition
resource. It uniquely identifies the resource across all Amazon Web Services Regions. Format is arn:aws:gamelift:
.
creation_time: Option<DateTime>
A time stamp indicating when this data object was created. Format is a number expressed in Unix time as milliseconds (for example "1469498468.057"
).
operating_system: Option<ContainerOperatingSystem>
The platform required for all containers in the container group definition.
name: Option<String>
A descriptive identifier for the container group definition. The name value is unique in an Amazon Web Services Region.
scheduling_strategy: Option<ContainerSchedulingStrategy>
The method for deploying the container group across fleet instances. A replica container group might have multiple copies on each fleet instance. A daemon container group maintains only one copy per fleet instance.
total_memory_limit: Option<i32>
The amount of memory (in MiB) on a fleet instance to allocate for the container group. All containers in the group share these resources.
You can set additional limits for each ContainerDefinition
in the group. If individual containers have limits, this value must meet the following requirements:
-
Equal to or greater than the sum of all container-specific soft memory limits in the group.
-
Equal to or greater than any container-specific hard limits in the group.
For more details on memory allocation, see the Container fleet design guide.
total_cpu_limit: Option<i32>
The amount of CPU units on a fleet instance to allocate for the container group. All containers in the group share these resources. This property is an integer value in CPU units (1 vCPU is equal to 1024 CPU units).
You can set additional limits for each ContainerDefinition
in the group. If individual containers have limits, this value must be equal to or greater than the sum of all container-specific CPU limits in the group.
For more details on memory allocation, see the Container fleet design guide.
container_definitions: Option<Vec<ContainerDefinition>>
The set of container definitions that are included in the container group.
status: Option<ContainerGroupDefinitionStatus>
Current status of the container group definition resource. Values include:
-
COPYING
-- Amazon GameLift is in the process of making copies of all container images that are defined in the group. While in this state, the resource can't be used to create a container fleet. -
READY
-- Amazon GameLift has copied the registry images for all containers that are defined in the group. You can use a container group definition in this status to create a container fleet. -
FAILED
-- Amazon GameLift failed to create a valid container group definition resource. For more details on the cause of the failure, seeStatusReason
. A container group definition resource in failed status will be deleted within a few minutes.
status_reason: Option<String>
Additional information about a container group definition that's in FAILED
status. Possible reasons include:
-
An internal issue prevented Amazon GameLift from creating the container group definition resource. Delete the failed resource and call
CreateContainerGroupDefinition
again. -
An access-denied message means that you don't have permissions to access the container image on ECR. See IAM permission examples for help setting up required IAM permissions for Amazon GameLift.
-
The
ImageUri
value for at least one of the containers in the container group definition was invalid or not found in the current Amazon Web Services account. -
At least one of the container images referenced in the container group definition exceeds the allowed size. For size limits, see Amazon GameLift endpoints and quotas.
-
At least one of the container images referenced in the container group definition uses a different operating system than the one defined for the container group.
Implementations§
source§impl ContainerGroupDefinition
impl ContainerGroupDefinition
sourcepub fn container_group_definition_arn(&self) -> Option<&str>
pub fn container_group_definition_arn(&self) -> Option<&str>
The Amazon Resource Name (ARN) that is assigned to an Amazon GameLift ContainerGroupDefinition
resource. It uniquely identifies the resource across all Amazon Web Services Regions. Format is arn:aws:gamelift:
.
sourcepub fn creation_time(&self) -> Option<&DateTime>
pub fn creation_time(&self) -> Option<&DateTime>
A time stamp indicating when this data object was created. Format is a number expressed in Unix time as milliseconds (for example "1469498468.057"
).
sourcepub fn operating_system(&self) -> Option<&ContainerOperatingSystem>
pub fn operating_system(&self) -> Option<&ContainerOperatingSystem>
The platform required for all containers in the container group definition.
sourcepub fn name(&self) -> Option<&str>
pub fn name(&self) -> Option<&str>
A descriptive identifier for the container group definition. The name value is unique in an Amazon Web Services Region.
sourcepub fn scheduling_strategy(&self) -> Option<&ContainerSchedulingStrategy>
pub fn scheduling_strategy(&self) -> Option<&ContainerSchedulingStrategy>
The method for deploying the container group across fleet instances. A replica container group might have multiple copies on each fleet instance. A daemon container group maintains only one copy per fleet instance.
sourcepub fn total_memory_limit(&self) -> Option<i32>
pub fn total_memory_limit(&self) -> Option<i32>
The amount of memory (in MiB) on a fleet instance to allocate for the container group. All containers in the group share these resources.
You can set additional limits for each ContainerDefinition
in the group. If individual containers have limits, this value must meet the following requirements:
-
Equal to or greater than the sum of all container-specific soft memory limits in the group.
-
Equal to or greater than any container-specific hard limits in the group.
For more details on memory allocation, see the Container fleet design guide.
sourcepub fn total_cpu_limit(&self) -> Option<i32>
pub fn total_cpu_limit(&self) -> Option<i32>
The amount of CPU units on a fleet instance to allocate for the container group. All containers in the group share these resources. This property is an integer value in CPU units (1 vCPU is equal to 1024 CPU units).
You can set additional limits for each ContainerDefinition
in the group. If individual containers have limits, this value must be equal to or greater than the sum of all container-specific CPU limits in the group.
For more details on memory allocation, see the Container fleet design guide.
sourcepub fn container_definitions(&self) -> &[ContainerDefinition]
pub fn container_definitions(&self) -> &[ContainerDefinition]
The set of container definitions that are included in the container group.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .container_definitions.is_none()
.
sourcepub fn status(&self) -> Option<&ContainerGroupDefinitionStatus>
pub fn status(&self) -> Option<&ContainerGroupDefinitionStatus>
Current status of the container group definition resource. Values include:
-
COPYING
-- Amazon GameLift is in the process of making copies of all container images that are defined in the group. While in this state, the resource can't be used to create a container fleet. -
READY
-- Amazon GameLift has copied the registry images for all containers that are defined in the group. You can use a container group definition in this status to create a container fleet. -
FAILED
-- Amazon GameLift failed to create a valid container group definition resource. For more details on the cause of the failure, seeStatusReason
. A container group definition resource in failed status will be deleted within a few minutes.
sourcepub fn status_reason(&self) -> Option<&str>
pub fn status_reason(&self) -> Option<&str>
Additional information about a container group definition that's in FAILED
status. Possible reasons include:
-
An internal issue prevented Amazon GameLift from creating the container group definition resource. Delete the failed resource and call
CreateContainerGroupDefinition
again. -
An access-denied message means that you don't have permissions to access the container image on ECR. See IAM permission examples for help setting up required IAM permissions for Amazon GameLift.
-
The
ImageUri
value for at least one of the containers in the container group definition was invalid or not found in the current Amazon Web Services account. -
At least one of the container images referenced in the container group definition exceeds the allowed size. For size limits, see Amazon GameLift endpoints and quotas.
-
At least one of the container images referenced in the container group definition uses a different operating system than the one defined for the container group.
source§impl ContainerGroupDefinition
impl ContainerGroupDefinition
sourcepub fn builder() -> ContainerGroupDefinitionBuilder
pub fn builder() -> ContainerGroupDefinitionBuilder
Creates a new builder-style object to manufacture ContainerGroupDefinition
.
Trait Implementations§
source§impl Clone for ContainerGroupDefinition
impl Clone for ContainerGroupDefinition
source§fn clone(&self) -> ContainerGroupDefinition
fn clone(&self) -> ContainerGroupDefinition
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ContainerGroupDefinition
impl Debug for ContainerGroupDefinition
source§impl PartialEq for ContainerGroupDefinition
impl PartialEq for ContainerGroupDefinition
source§fn eq(&self, other: &ContainerGroupDefinition) -> bool
fn eq(&self, other: &ContainerGroupDefinition) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ContainerGroupDefinition
Auto Trait Implementations§
impl Freeze for ContainerGroupDefinition
impl RefUnwindSafe for ContainerGroupDefinition
impl Send for ContainerGroupDefinition
impl Sync for ContainerGroupDefinition
impl Unpin for ContainerGroupDefinition
impl UnwindSafe for ContainerGroupDefinition
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> 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