#[non_exhaustive]pub struct RegisterContainerInstanceInput {
pub cluster: Option<String>,
pub instance_identity_document: Option<String>,
pub instance_identity_document_signature: Option<String>,
pub total_resources: Option<Vec<Resource>>,
pub version_info: Option<VersionInfo>,
pub container_instance_arn: Option<String>,
pub attributes: Option<Vec<Attribute>>,
pub platform_devices: Option<Vec<PlatformDevice>>,
pub tags: Option<Vec<Tag>>,
}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.cluster: Option<String>The short name or full Amazon Resource Name (ARN) of the cluster to register your container instance with. If you do not specify a cluster, the default cluster is assumed.
instance_identity_document: Option<String>The instance identity document for the EC2 instance to register. This document can be found by running the following command from the instance: curl http://169.254.169.254/latest/dynamic/instance-identity/document/
instance_identity_document_signature: Option<String>The instance identity document signature for the EC2 instance to register. This signature can be found by running the following command from the instance: curl http://169.254.169.254/latest/dynamic/instance-identity/signature/
total_resources: Option<Vec<Resource>>The resources available on the instance.
version_info: Option<VersionInfo>The version information for the Amazon ECS container agent and Docker daemon that runs on the container instance.
container_instance_arn: Option<String>The ARN of the container instance (if it was previously registered).
attributes: Option<Vec<Attribute>>The container instance attributes that this container instance supports.
platform_devices: Option<Vec<PlatformDevice>>The devices that are available on the container instance. The only supported device type is a GPU.
The metadata that you apply to the container instance to help you categorize and organize them. Each tag consists of a key and an optional value. You define both.
The following basic restrictions apply to tags:
-
Maximum number of tags per resource - 50
-
For each resource, each tag key must be unique, and each tag key can have only one value.
-
Maximum key length - 128 Unicode characters in UTF-8
-
Maximum value length - 256 Unicode characters in UTF-8
-
If your tagging schema is used across multiple services and resources, remember that other services may have restrictions on allowed characters. Generally allowed characters are: letters, numbers, and spaces representable in UTF-8, and the following characters: + - = . _ : / @.
-
Tag keys and values are case-sensitive.
-
Do not use
aws:,AWS:, or any upper or lowercase combination of such as a prefix for either keys or values as it is reserved for Amazon Web Services use. You cannot edit or delete tag keys or values with this prefix. Tags with this prefix do not count against your tags per resource limit.
Implementations§
source§impl RegisterContainerInstanceInput
impl RegisterContainerInstanceInput
sourcepub fn cluster(&self) -> Option<&str>
pub fn cluster(&self) -> Option<&str>
The short name or full Amazon Resource Name (ARN) of the cluster to register your container instance with. If you do not specify a cluster, the default cluster is assumed.
sourcepub fn instance_identity_document(&self) -> Option<&str>
pub fn instance_identity_document(&self) -> Option<&str>
The instance identity document for the EC2 instance to register. This document can be found by running the following command from the instance: curl http://169.254.169.254/latest/dynamic/instance-identity/document/
sourcepub fn instance_identity_document_signature(&self) -> Option<&str>
pub fn instance_identity_document_signature(&self) -> Option<&str>
The instance identity document signature for the EC2 instance to register. This signature can be found by running the following command from the instance: curl http://169.254.169.254/latest/dynamic/instance-identity/signature/
sourcepub fn total_resources(&self) -> &[Resource]
pub fn total_resources(&self) -> &[Resource]
The resources available on the instance.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .total_resources.is_none().
sourcepub fn version_info(&self) -> Option<&VersionInfo>
pub fn version_info(&self) -> Option<&VersionInfo>
The version information for the Amazon ECS container agent and Docker daemon that runs on the container instance.
sourcepub fn container_instance_arn(&self) -> Option<&str>
pub fn container_instance_arn(&self) -> Option<&str>
The ARN of the container instance (if it was previously registered).
sourcepub fn attributes(&self) -> &[Attribute]
pub fn attributes(&self) -> &[Attribute]
The container instance attributes that this container instance supports.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .attributes.is_none().
sourcepub fn platform_devices(&self) -> &[PlatformDevice]
pub fn platform_devices(&self) -> &[PlatformDevice]
The devices that are available on the container instance. The only supported device type is a GPU.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .platform_devices.is_none().
The metadata that you apply to the container instance to help you categorize and organize them. Each tag consists of a key and an optional value. You define both.
The following basic restrictions apply to tags:
-
Maximum number of tags per resource - 50
-
For each resource, each tag key must be unique, and each tag key can have only one value.
-
Maximum key length - 128 Unicode characters in UTF-8
-
Maximum value length - 256 Unicode characters in UTF-8
-
If your tagging schema is used across multiple services and resources, remember that other services may have restrictions on allowed characters. Generally allowed characters are: letters, numbers, and spaces representable in UTF-8, and the following characters: + - = . _ : / @.
-
Tag keys and values are case-sensitive.
-
Do not use
aws:,AWS:, or any upper or lowercase combination of such as a prefix for either keys or values as it is reserved for Amazon Web Services use. You cannot edit or delete tag keys or values with this prefix. Tags with this prefix do not count against your tags per resource limit.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .tags.is_none().
source§impl RegisterContainerInstanceInput
impl RegisterContainerInstanceInput
sourcepub fn builder() -> RegisterContainerInstanceInputBuilder
pub fn builder() -> RegisterContainerInstanceInputBuilder
Creates a new builder-style object to manufacture RegisterContainerInstanceInput.
Trait Implementations§
source§impl Clone for RegisterContainerInstanceInput
impl Clone for RegisterContainerInstanceInput
source§fn clone(&self) -> RegisterContainerInstanceInput
fn clone(&self) -> RegisterContainerInstanceInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl PartialEq for RegisterContainerInstanceInput
impl PartialEq for RegisterContainerInstanceInput
source§fn eq(&self, other: &RegisterContainerInstanceInput) -> bool
fn eq(&self, other: &RegisterContainerInstanceInput) -> bool
self and other values to be equal, and is used
by ==.