Struct aws_sdk_resiliencehub::operation::create_recommendation_template::builders::CreateRecommendationTemplateFluentBuilder
source · pub struct CreateRecommendationTemplateFluentBuilder { /* private fields */ }
Expand description
Fluent builder constructing a request to CreateRecommendationTemplate
.
Creates a new recommendation template for the Resilience Hub application.
Implementations§
source§impl CreateRecommendationTemplateFluentBuilder
impl CreateRecommendationTemplateFluentBuilder
sourcepub fn as_input(&self) -> &CreateRecommendationTemplateInputBuilder
pub fn as_input(&self) -> &CreateRecommendationTemplateInputBuilder
Access the CreateRecommendationTemplate as a reference.
sourcepub async fn send(
self
) -> Result<CreateRecommendationTemplateOutput, SdkError<CreateRecommendationTemplateError, HttpResponse>>
pub async fn send( self ) -> Result<CreateRecommendationTemplateOutput, SdkError<CreateRecommendationTemplateError, HttpResponse>>
Sends the request and returns the response.
If an error occurs, an SdkError
will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
sourcepub fn customize(
self
) -> CustomizableOperation<CreateRecommendationTemplateOutput, CreateRecommendationTemplateError, Self>
pub fn customize( self ) -> CustomizableOperation<CreateRecommendationTemplateOutput, CreateRecommendationTemplateError, Self>
Consumes this builder, creating a customizable operation that can be modified before being sent.
sourcepub fn recommendation_ids(self, input: impl Into<String>) -> Self
pub fn recommendation_ids(self, input: impl Into<String>) -> Self
Appends an item to recommendationIds
.
To override the contents of this collection use set_recommendation_ids
.
Identifiers for the recommendations used to create a recommendation template.
sourcepub fn set_recommendation_ids(self, input: Option<Vec<String>>) -> Self
pub fn set_recommendation_ids(self, input: Option<Vec<String>>) -> Self
Identifiers for the recommendations used to create a recommendation template.
sourcepub fn get_recommendation_ids(&self) -> &Option<Vec<String>>
pub fn get_recommendation_ids(&self) -> &Option<Vec<String>>
Identifiers for the recommendations used to create a recommendation template.
sourcepub fn format(self, input: TemplateFormat) -> Self
pub fn format(self, input: TemplateFormat) -> Self
The format for the recommendation template.
- CfnJson
-
The template is CloudFormation JSON.
- CfnYaml
-
The template is CloudFormation YAML.
sourcepub fn set_format(self, input: Option<TemplateFormat>) -> Self
pub fn set_format(self, input: Option<TemplateFormat>) -> Self
The format for the recommendation template.
- CfnJson
-
The template is CloudFormation JSON.
- CfnYaml
-
The template is CloudFormation YAML.
sourcepub fn get_format(&self) -> &Option<TemplateFormat>
pub fn get_format(&self) -> &Option<TemplateFormat>
The format for the recommendation template.
- CfnJson
-
The template is CloudFormation JSON.
- CfnYaml
-
The template is CloudFormation YAML.
sourcepub fn recommendation_types(self, input: RenderRecommendationType) -> Self
pub fn recommendation_types(self, input: RenderRecommendationType) -> Self
Appends an item to recommendationTypes
.
To override the contents of this collection use set_recommendation_types
.
An array of strings that specify the recommendation template type or types.
- Alarm
-
The template is an
AlarmRecommendation
template. - Sop
-
The template is a
SopRecommendation
template. - Test
-
The template is a
TestRecommendation
template.
sourcepub fn set_recommendation_types(
self,
input: Option<Vec<RenderRecommendationType>>
) -> Self
pub fn set_recommendation_types( self, input: Option<Vec<RenderRecommendationType>> ) -> Self
An array of strings that specify the recommendation template type or types.
- Alarm
-
The template is an
AlarmRecommendation
template. - Sop
-
The template is a
SopRecommendation
template. - Test
-
The template is a
TestRecommendation
template.
sourcepub fn get_recommendation_types(&self) -> &Option<Vec<RenderRecommendationType>>
pub fn get_recommendation_types(&self) -> &Option<Vec<RenderRecommendationType>>
An array of strings that specify the recommendation template type or types.
- Alarm
-
The template is an
AlarmRecommendation
template. - Sop
-
The template is a
SopRecommendation
template. - Test
-
The template is a
TestRecommendation
template.
sourcepub fn assessment_arn(self, input: impl Into<String>) -> Self
pub fn assessment_arn(self, input: impl Into<String>) -> Self
Amazon Resource Name (ARN) of the assessment. The format for this ARN is: arn:partition
:resiliencehub:region
:account
:app-assessment/app-id
. For more information about ARNs, see Amazon Resource Names (ARNs) in the Amazon Web Services General Reference guide.
sourcepub fn set_assessment_arn(self, input: Option<String>) -> Self
pub fn set_assessment_arn(self, input: Option<String>) -> Self
Amazon Resource Name (ARN) of the assessment. The format for this ARN is: arn:partition
:resiliencehub:region
:account
:app-assessment/app-id
. For more information about ARNs, see Amazon Resource Names (ARNs) in the Amazon Web Services General Reference guide.
sourcepub fn get_assessment_arn(&self) -> &Option<String>
pub fn get_assessment_arn(&self) -> &Option<String>
Amazon Resource Name (ARN) of the assessment. The format for this ARN is: arn:partition
:resiliencehub:region
:account
:app-assessment/app-id
. For more information about ARNs, see Amazon Resource Names (ARNs) in the Amazon Web Services General Reference guide.
sourcepub fn client_token(self, input: impl Into<String>) -> Self
pub fn client_token(self, input: impl Into<String>) -> Self
Used for an idempotency token. A client token is a unique, case-sensitive string of up to 64 ASCII characters. You should not reuse the same client token for other API requests.
sourcepub fn set_client_token(self, input: Option<String>) -> Self
pub fn set_client_token(self, input: Option<String>) -> Self
Used for an idempotency token. A client token is a unique, case-sensitive string of up to 64 ASCII characters. You should not reuse the same client token for other API requests.
sourcepub fn get_client_token(&self) -> &Option<String>
pub fn get_client_token(&self) -> &Option<String>
Used for an idempotency token. A client token is a unique, case-sensitive string of up to 64 ASCII characters. You should not reuse the same client token for other API requests.
Adds a key-value pair to tags
.
To override the contents of this collection use set_tags
.
Tags assigned to the resource. A tag is a label that you assign to an Amazon Web Services resource. Each tag consists of a key/value pair.
Tags assigned to the resource. A tag is a label that you assign to an Amazon Web Services resource. Each tag consists of a key/value pair.
Tags assigned to the resource. A tag is a label that you assign to an Amazon Web Services resource. Each tag consists of a key/value pair.
sourcepub fn bucket_name(self, input: impl Into<String>) -> Self
pub fn bucket_name(self, input: impl Into<String>) -> Self
The name of the Amazon S3 bucket that will contain the recommendation template.
sourcepub fn set_bucket_name(self, input: Option<String>) -> Self
pub fn set_bucket_name(self, input: Option<String>) -> Self
The name of the Amazon S3 bucket that will contain the recommendation template.
sourcepub fn get_bucket_name(&self) -> &Option<String>
pub fn get_bucket_name(&self) -> &Option<String>
The name of the Amazon S3 bucket that will contain the recommendation template.
Trait Implementations§
source§impl Clone for CreateRecommendationTemplateFluentBuilder
impl Clone for CreateRecommendationTemplateFluentBuilder
source§fn clone(&self) -> CreateRecommendationTemplateFluentBuilder
fn clone(&self) -> CreateRecommendationTemplateFluentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreAuto Trait Implementations§
impl Freeze for CreateRecommendationTemplateFluentBuilder
impl !RefUnwindSafe for CreateRecommendationTemplateFluentBuilder
impl Send for CreateRecommendationTemplateFluentBuilder
impl Sync for CreateRecommendationTemplateFluentBuilder
impl Unpin for CreateRecommendationTemplateFluentBuilder
impl !UnwindSafe for CreateRecommendationTemplateFluentBuilder
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