Struct aws_sdk_ecs::operation::create_capacity_provider::builders::CreateCapacityProviderInputBuilder
source · #[non_exhaustive]pub struct CreateCapacityProviderInputBuilder { /* private fields */ }
Expand description
A builder for CreateCapacityProviderInput
.
Implementations§
source§impl CreateCapacityProviderInputBuilder
impl CreateCapacityProviderInputBuilder
sourcepub fn name(self, input: impl Into<String>) -> Self
pub fn name(self, input: impl Into<String>) -> Self
The name of the capacity provider. Up to 255 characters are allowed. They include letters (both upper and lowercase letters), numbers, underscores (_), and hyphens (-). The name can't be prefixed with "aws
", "ecs
", or "fargate
".
sourcepub fn set_name(self, input: Option<String>) -> Self
pub fn set_name(self, input: Option<String>) -> Self
The name of the capacity provider. Up to 255 characters are allowed. They include letters (both upper and lowercase letters), numbers, underscores (_), and hyphens (-). The name can't be prefixed with "aws
", "ecs
", or "fargate
".
sourcepub fn get_name(&self) -> &Option<String>
pub fn get_name(&self) -> &Option<String>
The name of the capacity provider. Up to 255 characters are allowed. They include letters (both upper and lowercase letters), numbers, underscores (_), and hyphens (-). The name can't be prefixed with "aws
", "ecs
", or "fargate
".
sourcepub fn auto_scaling_group_provider(
self,
input: AutoScalingGroupProvider
) -> Self
pub fn auto_scaling_group_provider( self, input: AutoScalingGroupProvider ) -> Self
The details of the Auto Scaling group for the capacity provider.
This field is required.sourcepub fn set_auto_scaling_group_provider(
self,
input: Option<AutoScalingGroupProvider>
) -> Self
pub fn set_auto_scaling_group_provider( self, input: Option<AutoScalingGroupProvider> ) -> Self
The details of the Auto Scaling group for the capacity provider.
sourcepub fn get_auto_scaling_group_provider(
&self
) -> &Option<AutoScalingGroupProvider>
pub fn get_auto_scaling_group_provider( &self ) -> &Option<AutoScalingGroupProvider>
The details of the Auto Scaling group for the capacity provider.
Appends an item to tags
.
To override the contents of this collection use set_tags
.
The metadata that you apply to the capacity provider to categorize and organize them more conveniently. Each tag consists of a key and an optional value. You define both of them.
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.
The metadata that you apply to the capacity provider to categorize and organize them more conveniently. Each tag consists of a key and an optional value. You define both of them.
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.
The metadata that you apply to the capacity provider to categorize and organize them more conveniently. Each tag consists of a key and an optional value. You define both of them.
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.
sourcepub fn build(self) -> Result<CreateCapacityProviderInput, BuildError>
pub fn build(self) -> Result<CreateCapacityProviderInput, BuildError>
Consumes the builder and constructs a CreateCapacityProviderInput
.
source§impl CreateCapacityProviderInputBuilder
impl CreateCapacityProviderInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<CreateCapacityProviderOutput, SdkError<CreateCapacityProviderError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<CreateCapacityProviderOutput, SdkError<CreateCapacityProviderError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for CreateCapacityProviderInputBuilder
impl Clone for CreateCapacityProviderInputBuilder
source§fn clone(&self) -> CreateCapacityProviderInputBuilder
fn clone(&self) -> CreateCapacityProviderInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for CreateCapacityProviderInputBuilder
impl Default for CreateCapacityProviderInputBuilder
source§fn default() -> CreateCapacityProviderInputBuilder
fn default() -> CreateCapacityProviderInputBuilder
source§impl PartialEq for CreateCapacityProviderInputBuilder
impl PartialEq for CreateCapacityProviderInputBuilder
source§fn eq(&self, other: &CreateCapacityProviderInputBuilder) -> bool
fn eq(&self, other: &CreateCapacityProviderInputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.