#[non_exhaustive]pub struct RestoreTestingSelectionForCreateBuilder { /* private fields */ }Expand description
A builder for RestoreTestingSelectionForCreate.
Implementations§
source§impl RestoreTestingSelectionForCreateBuilder
impl RestoreTestingSelectionForCreateBuilder
sourcepub fn iam_role_arn(self, input: impl Into<String>) -> Self
pub fn iam_role_arn(self, input: impl Into<String>) -> Self
The Amazon Resource Name (ARN) of the IAM role that Backup uses to create the target resource; for example: arn:aws:iam::123456789012:role/S3Access.
sourcepub fn set_iam_role_arn(self, input: Option<String>) -> Self
pub fn set_iam_role_arn(self, input: Option<String>) -> Self
The Amazon Resource Name (ARN) of the IAM role that Backup uses to create the target resource; for example: arn:aws:iam::123456789012:role/S3Access.
sourcepub fn get_iam_role_arn(&self) -> &Option<String>
pub fn get_iam_role_arn(&self) -> &Option<String>
The Amazon Resource Name (ARN) of the IAM role that Backup uses to create the target resource; for example: arn:aws:iam::123456789012:role/S3Access.
sourcepub fn protected_resource_arns(self, input: impl Into<String>) -> Self
pub fn protected_resource_arns(self, input: impl Into<String>) -> Self
Appends an item to protected_resource_arns.
To override the contents of this collection use set_protected_resource_arns.
Each protected resource can be filtered by its specific ARNs, such as ProtectedResourceArns: ["arn:aws:...", "arn:aws:..."] or by a wildcard: ProtectedResourceArns: ["*"], but not both.
sourcepub fn set_protected_resource_arns(self, input: Option<Vec<String>>) -> Self
pub fn set_protected_resource_arns(self, input: Option<Vec<String>>) -> Self
Each protected resource can be filtered by its specific ARNs, such as ProtectedResourceArns: ["arn:aws:...", "arn:aws:..."] or by a wildcard: ProtectedResourceArns: ["*"], but not both.
sourcepub fn get_protected_resource_arns(&self) -> &Option<Vec<String>>
pub fn get_protected_resource_arns(&self) -> &Option<Vec<String>>
Each protected resource can be filtered by its specific ARNs, such as ProtectedResourceArns: ["arn:aws:...", "arn:aws:..."] or by a wildcard: ProtectedResourceArns: ["*"], but not both.
sourcepub fn protected_resource_conditions(
self,
input: ProtectedResourceConditions
) -> Self
pub fn protected_resource_conditions( self, input: ProtectedResourceConditions ) -> Self
If you have included the wildcard in ProtectedResourceArns, you can include resource conditions, such as ProtectedResourceConditions: { StringEquals: [{ key: "XXXX", value: "YYYY" }].
sourcepub fn set_protected_resource_conditions(
self,
input: Option<ProtectedResourceConditions>
) -> Self
pub fn set_protected_resource_conditions( self, input: Option<ProtectedResourceConditions> ) -> Self
If you have included the wildcard in ProtectedResourceArns, you can include resource conditions, such as ProtectedResourceConditions: { StringEquals: [{ key: "XXXX", value: "YYYY" }].
sourcepub fn get_protected_resource_conditions(
&self
) -> &Option<ProtectedResourceConditions>
pub fn get_protected_resource_conditions( &self ) -> &Option<ProtectedResourceConditions>
If you have included the wildcard in ProtectedResourceArns, you can include resource conditions, such as ProtectedResourceConditions: { StringEquals: [{ key: "XXXX", value: "YYYY" }].
sourcepub fn protected_resource_type(self, input: impl Into<String>) -> Self
pub fn protected_resource_type(self, input: impl Into<String>) -> Self
The type of Amazon Web Services resource included in a restore testing selection; for example, an Amazon EBS volume or an Amazon RDS database.
Supported resource types accepted include:
-
Aurorafor Amazon Aurora -
DocumentDBfor Amazon DocumentDB (with MongoDB compatibility) -
DynamoDBfor Amazon DynamoDB -
EBSfor Amazon Elastic Block Store -
EC2for Amazon Elastic Compute Cloud -
EFSfor Amazon Elastic File System -
FSxfor Amazon FSx -
Neptunefor Amazon Neptune -
RDSfor Amazon Relational Database Service -
S3for Amazon S3
sourcepub fn set_protected_resource_type(self, input: Option<String>) -> Self
pub fn set_protected_resource_type(self, input: Option<String>) -> Self
The type of Amazon Web Services resource included in a restore testing selection; for example, an Amazon EBS volume or an Amazon RDS database.
Supported resource types accepted include:
-
Aurorafor Amazon Aurora -
DocumentDBfor Amazon DocumentDB (with MongoDB compatibility) -
DynamoDBfor Amazon DynamoDB -
EBSfor Amazon Elastic Block Store -
EC2for Amazon Elastic Compute Cloud -
EFSfor Amazon Elastic File System -
FSxfor Amazon FSx -
Neptunefor Amazon Neptune -
RDSfor Amazon Relational Database Service -
S3for Amazon S3
sourcepub fn get_protected_resource_type(&self) -> &Option<String>
pub fn get_protected_resource_type(&self) -> &Option<String>
The type of Amazon Web Services resource included in a restore testing selection; for example, an Amazon EBS volume or an Amazon RDS database.
Supported resource types accepted include:
-
Aurorafor Amazon Aurora -
DocumentDBfor Amazon DocumentDB (with MongoDB compatibility) -
DynamoDBfor Amazon DynamoDB -
EBSfor Amazon Elastic Block Store -
EC2for Amazon Elastic Compute Cloud -
EFSfor Amazon Elastic File System -
FSxfor Amazon FSx -
Neptunefor Amazon Neptune -
RDSfor Amazon Relational Database Service -
S3for Amazon S3
sourcepub fn restore_metadata_overrides(
self,
k: impl Into<String>,
v: impl Into<String>
) -> Self
pub fn restore_metadata_overrides( self, k: impl Into<String>, v: impl Into<String> ) -> Self
Adds a key-value pair to restore_metadata_overrides.
To override the contents of this collection use set_restore_metadata_overrides.
You can override certain restore metadata keys by including the parameter RestoreMetadataOverrides in the body of RestoreTestingSelection. Key values are not case sensitive.
See the complete list of restore testing inferred metadata.
sourcepub fn set_restore_metadata_overrides(
self,
input: Option<HashMap<String, String>>
) -> Self
pub fn set_restore_metadata_overrides( self, input: Option<HashMap<String, String>> ) -> Self
You can override certain restore metadata keys by including the parameter RestoreMetadataOverrides in the body of RestoreTestingSelection. Key values are not case sensitive.
See the complete list of restore testing inferred metadata.
sourcepub fn get_restore_metadata_overrides(&self) -> &Option<HashMap<String, String>>
pub fn get_restore_metadata_overrides(&self) -> &Option<HashMap<String, String>>
You can override certain restore metadata keys by including the parameter RestoreMetadataOverrides in the body of RestoreTestingSelection. Key values are not case sensitive.
See the complete list of restore testing inferred metadata.
sourcepub fn restore_testing_selection_name(self, input: impl Into<String>) -> Self
pub fn restore_testing_selection_name(self, input: impl Into<String>) -> Self
This is the unique name of the restore testing selection that belongs to the related restore testing plan.
This field is required.sourcepub fn set_restore_testing_selection_name(self, input: Option<String>) -> Self
pub fn set_restore_testing_selection_name(self, input: Option<String>) -> Self
This is the unique name of the restore testing selection that belongs to the related restore testing plan.
sourcepub fn get_restore_testing_selection_name(&self) -> &Option<String>
pub fn get_restore_testing_selection_name(&self) -> &Option<String>
This is the unique name of the restore testing selection that belongs to the related restore testing plan.
sourcepub fn validation_window_hours(self, input: i32) -> Self
pub fn validation_window_hours(self, input: i32) -> Self
This is amount of hours (1 to 168) available to run a validation script on the data. The data will be deleted upon the completion of the validation script or the end of the specified retention period, whichever comes first.
sourcepub fn set_validation_window_hours(self, input: Option<i32>) -> Self
pub fn set_validation_window_hours(self, input: Option<i32>) -> Self
This is amount of hours (1 to 168) available to run a validation script on the data. The data will be deleted upon the completion of the validation script or the end of the specified retention period, whichever comes first.
sourcepub fn get_validation_window_hours(&self) -> &Option<i32>
pub fn get_validation_window_hours(&self) -> &Option<i32>
This is amount of hours (1 to 168) available to run a validation script on the data. The data will be deleted upon the completion of the validation script or the end of the specified retention period, whichever comes first.
sourcepub fn build(self) -> Result<RestoreTestingSelectionForCreate, BuildError>
pub fn build(self) -> Result<RestoreTestingSelectionForCreate, BuildError>
Consumes the builder and constructs a RestoreTestingSelectionForCreate.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for RestoreTestingSelectionForCreateBuilder
impl Clone for RestoreTestingSelectionForCreateBuilder
source§fn clone(&self) -> RestoreTestingSelectionForCreateBuilder
fn clone(&self) -> RestoreTestingSelectionForCreateBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Default for RestoreTestingSelectionForCreateBuilder
impl Default for RestoreTestingSelectionForCreateBuilder
source§fn default() -> RestoreTestingSelectionForCreateBuilder
fn default() -> RestoreTestingSelectionForCreateBuilder
source§impl PartialEq for RestoreTestingSelectionForCreateBuilder
impl PartialEq for RestoreTestingSelectionForCreateBuilder
source§fn eq(&self, other: &RestoreTestingSelectionForCreateBuilder) -> bool
fn eq(&self, other: &RestoreTestingSelectionForCreateBuilder) -> bool
self and other values to be equal, and is used
by ==.