Struct aws_sdk_backup::types::builders::ControlScopeBuilder
source · #[non_exhaustive]pub struct ControlScopeBuilder { /* private fields */ }
Expand description
A builder for ControlScope
.
Implementations§
source§impl ControlScopeBuilder
impl ControlScopeBuilder
sourcepub fn compliance_resource_ids(self, input: impl Into<String>) -> Self
pub fn compliance_resource_ids(self, input: impl Into<String>) -> Self
Appends an item to compliance_resource_ids
.
To override the contents of this collection use set_compliance_resource_ids
.
The ID of the only Amazon Web Services resource that you want your control scope to contain.
sourcepub fn set_compliance_resource_ids(self, input: Option<Vec<String>>) -> Self
pub fn set_compliance_resource_ids(self, input: Option<Vec<String>>) -> Self
The ID of the only Amazon Web Services resource that you want your control scope to contain.
sourcepub fn get_compliance_resource_ids(&self) -> &Option<Vec<String>>
pub fn get_compliance_resource_ids(&self) -> &Option<Vec<String>>
The ID of the only Amazon Web Services resource that you want your control scope to contain.
sourcepub fn compliance_resource_types(self, input: impl Into<String>) -> Self
pub fn compliance_resource_types(self, input: impl Into<String>) -> Self
Appends an item to compliance_resource_types
.
To override the contents of this collection use set_compliance_resource_types
.
Describes whether the control scope includes one or more types of resources, such as EFS
or RDS
.
sourcepub fn set_compliance_resource_types(self, input: Option<Vec<String>>) -> Self
pub fn set_compliance_resource_types(self, input: Option<Vec<String>>) -> Self
Describes whether the control scope includes one or more types of resources, such as EFS
or RDS
.
sourcepub fn get_compliance_resource_types(&self) -> &Option<Vec<String>>
pub fn get_compliance_resource_types(&self) -> &Option<Vec<String>>
Describes whether the control scope includes one or more types of resources, such as EFS
or RDS
.
Adds a key-value pair to tags
.
To override the contents of this collection use set_tags
.
The tag key-value pair applied to those Amazon Web Services resources that you want to trigger an evaluation for a rule. A maximum of one key-value pair can be provided. The tag value is optional, but it cannot be an empty string. The structure to assign a tag is: [{"Key":"string","Value":"string"}]
.
The tag key-value pair applied to those Amazon Web Services resources that you want to trigger an evaluation for a rule. A maximum of one key-value pair can be provided. The tag value is optional, but it cannot be an empty string. The structure to assign a tag is: [{"Key":"string","Value":"string"}]
.
The tag key-value pair applied to those Amazon Web Services resources that you want to trigger an evaluation for a rule. A maximum of one key-value pair can be provided. The tag value is optional, but it cannot be an empty string. The structure to assign a tag is: [{"Key":"string","Value":"string"}]
.
sourcepub fn build(self) -> ControlScope
pub fn build(self) -> ControlScope
Consumes the builder and constructs a ControlScope
.
Trait Implementations§
source§impl Clone for ControlScopeBuilder
impl Clone for ControlScopeBuilder
source§fn clone(&self) -> ControlScopeBuilder
fn clone(&self) -> ControlScopeBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ControlScopeBuilder
impl Debug for ControlScopeBuilder
source§impl Default for ControlScopeBuilder
impl Default for ControlScopeBuilder
source§fn default() -> ControlScopeBuilder
fn default() -> ControlScopeBuilder
source§impl PartialEq for ControlScopeBuilder
impl PartialEq for ControlScopeBuilder
source§fn eq(&self, other: &ControlScopeBuilder) -> bool
fn eq(&self, other: &ControlScopeBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.