#[non_exhaustive]pub struct PredefinedLoadMetricSpecificationBuilder { /* private fields */ }
Expand description
A builder for PredefinedLoadMetricSpecification
.
Implementations§
source§impl PredefinedLoadMetricSpecificationBuilder
impl PredefinedLoadMetricSpecificationBuilder
sourcepub fn predefined_load_metric_type(self, input: LoadMetricType) -> Self
pub fn predefined_load_metric_type(self, input: LoadMetricType) -> Self
The metric type.
This field is required.sourcepub fn set_predefined_load_metric_type(
self,
input: Option<LoadMetricType>
) -> Self
pub fn set_predefined_load_metric_type( self, input: Option<LoadMetricType> ) -> Self
The metric type.
sourcepub fn get_predefined_load_metric_type(&self) -> &Option<LoadMetricType>
pub fn get_predefined_load_metric_type(&self) -> &Option<LoadMetricType>
The metric type.
sourcepub fn resource_label(self, input: impl Into<String>) -> Self
pub fn resource_label(self, input: impl Into<String>) -> Self
Identifies the resource associated with the metric type. You can't specify a resource label unless the metric type is ALBTargetGroupRequestCount
and there is a target group for an Application Load Balancer attached to the Auto Scaling group.
You create the resource label by appending the final portion of the load balancer ARN and the final portion of the target group ARN into a single value, separated by a forward slash (/). The format is app/
-
app/
/ is the final portion of the load balancer ARN -
targetgroup/
/ is the final portion of the target group ARN.
This is an example: app/EC2Co-EcsEl-1TKLTMITMM0EO/f37c06a68c1748aa/targetgroup/EC2Co-Defau-LDNM7Q3ZH1ZN/6d4ea56ca2d6a18d.
To find the ARN for an Application Load Balancer, use the DescribeLoadBalancers API operation. To find the ARN for the target group, use the DescribeTargetGroups API operation.
sourcepub fn set_resource_label(self, input: Option<String>) -> Self
pub fn set_resource_label(self, input: Option<String>) -> Self
Identifies the resource associated with the metric type. You can't specify a resource label unless the metric type is ALBTargetGroupRequestCount
and there is a target group for an Application Load Balancer attached to the Auto Scaling group.
You create the resource label by appending the final portion of the load balancer ARN and the final portion of the target group ARN into a single value, separated by a forward slash (/). The format is app/
-
app/
/ is the final portion of the load balancer ARN -
targetgroup/
/ is the final portion of the target group ARN.
This is an example: app/EC2Co-EcsEl-1TKLTMITMM0EO/f37c06a68c1748aa/targetgroup/EC2Co-Defau-LDNM7Q3ZH1ZN/6d4ea56ca2d6a18d.
To find the ARN for an Application Load Balancer, use the DescribeLoadBalancers API operation. To find the ARN for the target group, use the DescribeTargetGroups API operation.
sourcepub fn get_resource_label(&self) -> &Option<String>
pub fn get_resource_label(&self) -> &Option<String>
Identifies the resource associated with the metric type. You can't specify a resource label unless the metric type is ALBTargetGroupRequestCount
and there is a target group for an Application Load Balancer attached to the Auto Scaling group.
You create the resource label by appending the final portion of the load balancer ARN and the final portion of the target group ARN into a single value, separated by a forward slash (/). The format is app/
-
app/
/ is the final portion of the load balancer ARN -
targetgroup/
/ is the final portion of the target group ARN.
This is an example: app/EC2Co-EcsEl-1TKLTMITMM0EO/f37c06a68c1748aa/targetgroup/EC2Co-Defau-LDNM7Q3ZH1ZN/6d4ea56ca2d6a18d.
To find the ARN for an Application Load Balancer, use the DescribeLoadBalancers API operation. To find the ARN for the target group, use the DescribeTargetGroups API operation.
sourcepub fn build(self) -> Result<PredefinedLoadMetricSpecification, BuildError>
pub fn build(self) -> Result<PredefinedLoadMetricSpecification, BuildError>
Consumes the builder and constructs a PredefinedLoadMetricSpecification
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for PredefinedLoadMetricSpecificationBuilder
impl Clone for PredefinedLoadMetricSpecificationBuilder
source§fn clone(&self) -> PredefinedLoadMetricSpecificationBuilder
fn clone(&self) -> PredefinedLoadMetricSpecificationBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for PredefinedLoadMetricSpecificationBuilder
impl Default for PredefinedLoadMetricSpecificationBuilder
source§fn default() -> PredefinedLoadMetricSpecificationBuilder
fn default() -> PredefinedLoadMetricSpecificationBuilder
source§impl PartialEq for PredefinedLoadMetricSpecificationBuilder
impl PartialEq for PredefinedLoadMetricSpecificationBuilder
source§fn eq(&self, other: &PredefinedLoadMetricSpecificationBuilder) -> bool
fn eq(&self, other: &PredefinedLoadMetricSpecificationBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for PredefinedLoadMetricSpecificationBuilder
Auto Trait Implementations§
impl Freeze for PredefinedLoadMetricSpecificationBuilder
impl RefUnwindSafe for PredefinedLoadMetricSpecificationBuilder
impl Send for PredefinedLoadMetricSpecificationBuilder
impl Sync for PredefinedLoadMetricSpecificationBuilder
impl Unpin for PredefinedLoadMetricSpecificationBuilder
impl UnwindSafe for PredefinedLoadMetricSpecificationBuilder
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