Struct aws_sdk_iot::input::create_mitigation_action_input::Builder
source · pub struct Builder { /* private fields */ }
Expand description
A builder for CreateMitigationActionInput
.
Implementations§
source§impl Builder
impl Builder
sourcepub fn action_name(self, input: impl Into<String>) -> Self
pub fn action_name(self, input: impl Into<String>) -> Self
A friendly name for the action. Choose a friendly name that accurately describes the action (for example, EnableLoggingAction
).
sourcepub fn set_action_name(self, input: Option<String>) -> Self
pub fn set_action_name(self, input: Option<String>) -> Self
A friendly name for the action. Choose a friendly name that accurately describes the action (for example, EnableLoggingAction
).
sourcepub fn role_arn(self, input: impl Into<String>) -> Self
pub fn role_arn(self, input: impl Into<String>) -> Self
The ARN of the IAM role that is used to apply the mitigation action.
sourcepub fn set_role_arn(self, input: Option<String>) -> Self
pub fn set_role_arn(self, input: Option<String>) -> Self
The ARN of the IAM role that is used to apply the mitigation action.
sourcepub fn action_params(self, input: MitigationActionParams) -> Self
pub fn action_params(self, input: MitigationActionParams) -> Self
Defines the type of action and the parameters for that action.
sourcepub fn set_action_params(self, input: Option<MitigationActionParams>) -> Self
pub fn set_action_params(self, input: Option<MitigationActionParams>) -> Self
Defines the type of action and the parameters for that action.
Appends an item to tags
.
To override the contents of this collection use set_tags
.
Metadata that can be used to manage the mitigation action.
Metadata that can be used to manage the mitigation action.
sourcepub fn build(self) -> Result<CreateMitigationActionInput, BuildError>
pub fn build(self) -> Result<CreateMitigationActionInput, BuildError>
Consumes the builder and constructs a CreateMitigationActionInput
.